Class: Aws::VerifiedPermissions::Types::PolicyDefinitionItem
- Inherits:
-
Struct
- Object
- Struct
- Aws::VerifiedPermissions::Types::PolicyDefinitionItem
- Includes:
- Structure, Structure::Union
- Defined in:
- lib/aws-sdk-verifiedpermissions/types.rb
Overview
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][2
-
and [ListPolicies] operations.
[1]: docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_PolicyDefinintion.html [2]: docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_CreatePolicy.html [3]: docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_ListPolicies.html
Direct Known Subclasses
Defined Under Namespace
Classes: Static, TemplateLinked, Unknown
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#static ⇒ Types::StaticPolicyDefinitionItem
Information about a static policy that wasn’t created with a policy template.
-
#template_linked ⇒ Types::TemplateLinkedPolicyDefinitionItem
Information about a template-linked policy that was created by instantiating a policy template.
-
#unknown ⇒ Object
Returns the value of attribute unknown.
Instance Attribute Details
#static ⇒ Types::StaticPolicyDefinitionItem
Information about a static policy that wasn’t created with a policy template.
3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 |
# File 'lib/aws-sdk-verifiedpermissions/types.rb', line 3309 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_linked ⇒ Types::TemplateLinkedPolicyDefinitionItem
Information about a template-linked policy that was created by instantiating a policy template.
3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 |
# File 'lib/aws-sdk-verifiedpermissions/types.rb', line 3309 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 |
#unknown ⇒ Object
Returns the value of attribute unknown
3309 3310 3311 |
# File 'lib/aws-sdk-verifiedpermissions/types.rb', line 3309 def unknown @unknown end |