Class: AWSCDK::IAM::CfnGroup::PolicyProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IAM::CfnGroup::PolicyProperty
- Defined in:
- iam/cfn_group.rb
Overview
Contains information about an attached policy.
An attached policy is a managed policy that has been attached to a user, group, or role.
For more information about managed policies, see Managed Policies and Inline Policies in the IAM User Guide .
Instance Attribute Summary collapse
-
#policy_document ⇒ Object
readonly
The policy document.
-
#policy_name ⇒ String
readonly
The friendly name (not ARN) identifying the policy.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(policy_document:, policy_name:) ⇒ PolicyProperty
constructor
A new instance of PolicyProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(policy_document:, policy_name:) ⇒ PolicyProperty
Returns a new instance of PolicyProperty.
559 560 561 562 563 564 |
# File 'iam/cfn_group.rb', line 559 def initialize(policy_document:, policy_name:) @policy_document = policy_document Jsii::Type.check_type(@policy_document, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "policyDocument") @policy_name = policy_name Jsii::Type.check_type(@policy_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "policyName") end |
Instance Attribute Details
#policy_document ⇒ Object (readonly)
The policy document.
570 571 572 |
# File 'iam/cfn_group.rb', line 570 def policy_document @policy_document end |
#policy_name ⇒ String (readonly)
The friendly name (not ARN) identifying the policy.
575 576 577 |
# File 'iam/cfn_group.rb', line 575 def policy_name @policy_name end |
Class Method Details
.jsii_properties ⇒ Object
577 578 579 580 581 582 |
# File 'iam/cfn_group.rb', line 577 def self.jsii_properties { :policy_document => "policyDocument", :policy_name => "policyName", } end |
Instance Method Details
#to_jsii ⇒ Object
584 585 586 587 588 589 590 591 |
# File 'iam/cfn_group.rb', line 584 def to_jsii result = {} result.merge!({ "policyDocument" => @policy_document, "policyName" => @policy_name, }) result.compact end |