Class: AWSCDK::IAM::CfnUserToGroupAdditionProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IAM::CfnUserToGroupAdditionProps
- Defined in:
- iam/cfn_user_to_group_addition_props.rb
Overview
Properties for defining a CfnUserToGroupAddition.
Instance Attribute Summary collapse
-
#group_name ⇒ String
readonly
The name of the group to update.
-
#users ⇒ Array<String>
readonly
A list of the names of the users that you want to add to the group.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(group_name:, users:) ⇒ CfnUserToGroupAdditionProps
constructor
A new instance of CfnUserToGroupAdditionProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(group_name:, users:) ⇒ CfnUserToGroupAdditionProps
Returns a new instance of CfnUserToGroupAdditionProps.
11 12 13 14 15 16 |
# File 'iam/cfn_user_to_group_addition_props.rb', line 11 def initialize(group_name:, users:) @group_name = group_name Jsii::Type.check_type(@group_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "groupName") @users = users Jsii::Type.check_type(@users, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "users") end |
Instance Attribute Details
#group_name ⇒ String (readonly)
The name of the group to update.
This parameter allows (through its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
24 25 26 |
# File 'iam/cfn_user_to_group_addition_props.rb', line 24 def group_name @group_name end |
#users ⇒ Array<String> (readonly)
A list of the names of the users that you want to add to the group.
29 30 31 |
# File 'iam/cfn_user_to_group_addition_props.rb', line 29 def users @users end |
Class Method Details
.jsii_properties ⇒ Object
31 32 33 34 35 36 |
# File 'iam/cfn_user_to_group_addition_props.rb', line 31 def self.jsii_properties { :group_name => "groupName", :users => "users", } end |
Instance Method Details
#to_jsii ⇒ Object
38 39 40 41 42 43 44 45 |
# File 'iam/cfn_user_to_group_addition_props.rb', line 38 def to_jsii result = {} result.merge!({ "groupName" => @group_name, "users" => @users, }) result.compact end |