Class: Aws::Resiliencehubv2::Types::PolicyEventMetadata

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/types.rb

Overview

Note:

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

Instance Attribute Details

#policy_attached_to_serviceTypes::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_deletedTypes::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_serviceTypes::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_revokedTypes::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

#unknownObject

Returns the value of attribute unknown

Returns:

  • (Object)

    the current value of unknown



3769
3770
3771
# File 'gems/aws-sdk-resiliencehubv2/lib/aws-sdk-resiliencehubv2/types.rb', line 3769

def unknown
  @unknown
end