Class: AWSCDK::Interfaces::AWSIAM::UserPolicyReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSIAM::UserPolicyReference
- Defined in:
- interfaces/awsiam/user_policy_reference.rb
Overview
A reference to a UserPolicy resource.
Instance Attribute Summary collapse
-
#policy_name ⇒ String
readonly
The PolicyName of the UserPolicy resource.
-
#user_name ⇒ String
readonly
The UserName of the UserPolicy resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(policy_name:, user_name:) ⇒ UserPolicyReference
constructor
A new instance of UserPolicyReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(policy_name:, user_name:) ⇒ UserPolicyReference
Returns a new instance of UserPolicyReference.
9 10 11 12 13 14 |
# File 'interfaces/awsiam/user_policy_reference.rb', line 9 def initialize(policy_name:, user_name:) @policy_name = policy_name Jsii::Type.check_type(@policy_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "policyName") @user_name = user_name Jsii::Type.check_type(@user_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "userName") end |
Instance Attribute Details
#policy_name ⇒ String (readonly)
The PolicyName of the UserPolicy resource.
19 20 21 |
# File 'interfaces/awsiam/user_policy_reference.rb', line 19 def policy_name @policy_name end |
#user_name ⇒ String (readonly)
The UserName of the UserPolicy resource.
23 24 25 |
# File 'interfaces/awsiam/user_policy_reference.rb', line 23 def user_name @user_name end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'interfaces/awsiam/user_policy_reference.rb', line 25 def self.jsii_properties { :policy_name => "policyName", :user_name => "userName", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'interfaces/awsiam/user_policy_reference.rb', line 32 def to_jsii result = {} result.merge!({ "policyName" => @policy_name, "userName" => @user_name, }) result.compact end |