Class: Aws::VerifiedPermissions::Types::PolicyDefinitionItem

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

Overview

Note:

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

A structure that describes a PolicyDefinintion. It will always have either an StaticPolicy or a TemplateLinkedPolicy element.

This data type is used as a response parameter for the CreatePolicy and ListPolicies operations.

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::StaticPolicyDefinitionItem

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



3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
# File 'gems/aws-sdk-verifiedpermissions/lib/aws-sdk-verifiedpermissions/types.rb', line 3154

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

  class Static < PolicyDefinitionItem; end
  class TemplateLinked < PolicyDefinitionItem; end
  class Unknown < PolicyDefinitionItem; end
end

#template_linkedTypes::TemplateLinkedPolicyDefinitionItem

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



3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
# File 'gems/aws-sdk-verifiedpermissions/lib/aws-sdk-verifiedpermissions/types.rb', line 3154

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

  class Static < PolicyDefinitionItem; end
  class TemplateLinked < PolicyDefinitionItem; end
  class Unknown < PolicyDefinitionItem; end
end

#unknownObject

Returns the value of attribute unknown

Returns:

  • (Object)

    the current value of unknown



3154
3155
3156
# File 'gems/aws-sdk-verifiedpermissions/lib/aws-sdk-verifiedpermissions/types.rb', line 3154

def unknown
  @unknown
end