Class: Aws::Resiliencehubv2::Types::PolicyEventMetadata
- Inherits:
-
Struct
- Object
- Struct
- Aws::Resiliencehubv2::Types::PolicyEventMetadata
- Defined in:
- gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/types.rb
Overview
PolicyEventMetadata is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of PolicyEventMetadata corresponding to the set member.
Contains the event-specific metadata for a policy event. Exactly one member is populated, according to the event type.
policyAttachedToService — a service started using the policy.
policyDetachedFromService — a service stopped using the policy.
policySharingRevoked — cross-account sharing was disabled for the policy.
policyDeleted — the policy was deleted.
Defined Under Namespace
Classes: PolicyAttachedToService, PolicyDeleted, PolicyDetachedFromService, PolicySharingRevoked, Unknown
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#policy_attached_to_service ⇒ Types::PolicyAttachedToServiceMetadata
Contains details about the service that started using the policy, such as the account that owns the service.
-
#policy_deleted ⇒ Types::PolicyDeletedMetadata
Contains details about a policy that was deleted, including the number of services that were affected.
-
#policy_detached_from_service ⇒ Types::PolicyDetachedFromServiceMetadata
Contains details about the service that stopped using the policy, such as the account that owns the service.
-
#policy_sharing_revoked ⇒ Types::PolicySharingRevokedMetadata
Contains details about a policy for which organization sharing was revoked, including the number of services that were affected.
-
#unknown ⇒ Object
Returns the value of attribute unknown.
Instance Attribute Details
#policy_attached_to_service ⇒ Types::PolicyAttachedToServiceMetadata
Contains details about the service that started using the policy, such as the account that owns the service.
3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/types.rb', line 3948 class PolicyEventMetadata < Struct.new( :policy_attached_to_service, :policy_detached_from_service, :policy_sharing_revoked, :policy_deleted, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class PolicyAttachedToService < PolicyEventMetadata; end class PolicyDetachedFromService < PolicyEventMetadata; end class PolicySharingRevoked < PolicyEventMetadata; end class PolicyDeleted < PolicyEventMetadata; end class Unknown < PolicyEventMetadata; end end |
#policy_deleted ⇒ Types::PolicyDeletedMetadata
Contains details about a policy that was deleted, including the number of services that were affected.
3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/types.rb', line 3948 class PolicyEventMetadata < Struct.new( :policy_attached_to_service, :policy_detached_from_service, :policy_sharing_revoked, :policy_deleted, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class PolicyAttachedToService < PolicyEventMetadata; end class PolicyDetachedFromService < PolicyEventMetadata; end class PolicySharingRevoked < PolicyEventMetadata; end class PolicyDeleted < PolicyEventMetadata; end class Unknown < PolicyEventMetadata; end end |
#policy_detached_from_service ⇒ Types::PolicyDetachedFromServiceMetadata
Contains details about the service that stopped using the policy, such as the account that owns the service.
3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/types.rb', line 3948 class PolicyEventMetadata < Struct.new( :policy_attached_to_service, :policy_detached_from_service, :policy_sharing_revoked, :policy_deleted, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class PolicyAttachedToService < PolicyEventMetadata; end class PolicyDetachedFromService < PolicyEventMetadata; end class PolicySharingRevoked < PolicyEventMetadata; end class PolicyDeleted < PolicyEventMetadata; end class Unknown < PolicyEventMetadata; end end |
#policy_sharing_revoked ⇒ Types::PolicySharingRevokedMetadata
Contains details about a policy for which organization sharing was revoked, including the number of services that were affected.
3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/types.rb', line 3948 class PolicyEventMetadata < Struct.new( :policy_attached_to_service, :policy_detached_from_service, :policy_sharing_revoked, :policy_deleted, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class PolicyAttachedToService < PolicyEventMetadata; end class PolicyDetachedFromService < PolicyEventMetadata; end class PolicySharingRevoked < PolicyEventMetadata; end class PolicyDeleted < PolicyEventMetadata; end class Unknown < PolicyEventMetadata; end end |
#unknown ⇒ Object
Returns the value of attribute unknown
3948 3949 3950 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/types.rb', line 3948 def unknown @unknown end |