Class: Aws::VerifiedPermissions::Types::PolicyDefinitionDetail

Inherits:
Struct
  • Object
show all
Includes:
Structure, Structure::Union
Defined in:
lib/aws-sdk-verifiedpermissions/types.rb

Overview

Note:

PolicyDefinitionDetail is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of PolicyDefinitionDetail corresponding to the set member.

A structure that describes a policy definition. It must always have either an ‘static` or a `templateLinked` element.

This data type is used as a response parameter for the [GetPolicy] operation.

[1]: docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_GetPolicy.html

Direct Known Subclasses

Static, TemplateLinked, Unknown

Defined Under Namespace

Classes: Static, TemplateLinked, Unknown

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#staticTypes::StaticPolicyDefinitionDetail

Information about a static policy that wasn’t created with a policy template.



3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
# File 'lib/aws-sdk-verifiedpermissions/types.rb', line 3270

class PolicyDefinitionDetail < Struct.new(
  :static,
  :template_linked,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class Static < PolicyDefinitionDetail; end
  class TemplateLinked < PolicyDefinitionDetail; end
  class Unknown < PolicyDefinitionDetail; end
end

#template_linkedTypes::TemplateLinkedPolicyDefinitionDetail

Information about a template-linked policy that was created by instantiating a policy template.



3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
# File 'lib/aws-sdk-verifiedpermissions/types.rb', line 3270

class PolicyDefinitionDetail < Struct.new(
  :static,
  :template_linked,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class Static < PolicyDefinitionDetail; end
  class TemplateLinked < PolicyDefinitionDetail; end
  class Unknown < PolicyDefinitionDetail; end
end

#unknownObject

Returns the value of attribute unknown

Returns:

  • (Object)

    the current value of unknown



3270
3271
3272
# File 'lib/aws-sdk-verifiedpermissions/types.rb', line 3270

def unknown
  @unknown
end