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.
3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/types.rb', line 3769 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.
3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/types.rb', line 3769 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.
3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/types.rb', line 3769 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.
3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/types.rb', line 3769 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
3769 3770 3771 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/types.rb', line 3769 def unknown @unknown end |