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.
3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/types.rb', line 3931 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.
3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/types.rb', line 3931 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.
3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/types.rb', line 3931 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.
3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/types.rb', line 3931 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
3931 3932 3933 |
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/types.rb', line 3931 def unknown @unknown end |