Class: AWSCDK::MemoryDB::CfnACLProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MemoryDB::CfnACLProps
- Defined in:
- memory_db/cfn_acl_props.rb
Overview
Properties for defining a CfnACL.
Instance Attribute Summary collapse
-
#acl_name ⇒ String
readonly
The name of the Access Control List.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
An array of key-value pairs to apply to this resource.
-
#user_names ⇒ Array<String>?
readonly
The list of users that belong to the Access Control List.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(acl_name:, tags: nil, user_names: nil) ⇒ CfnACLProps
constructor
A new instance of CfnACLProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(acl_name:, tags: nil, user_names: nil) ⇒ CfnACLProps
Returns a new instance of CfnACLProps.
12 13 14 15 16 17 18 19 |
# File 'memory_db/cfn_acl_props.rb', line 12 def initialize(acl_name:, tags: nil, user_names: nil) @acl_name = acl_name Jsii::Type.check_type(@acl_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "aclName") @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? @user_names = user_names Jsii::Type.check_type(@user_names, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "userNames") unless @user_names.nil? end |
Instance Attribute Details
#acl_name ⇒ String (readonly)
The name of the Access Control List.
25 26 27 |
# File 'memory_db/cfn_acl_props.rb', line 25 def acl_name @acl_name end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
An array of key-value pairs to apply to this resource.
For more information, see Tag .
32 33 34 |
# File 'memory_db/cfn_acl_props.rb', line 32 def @tags end |
#user_names ⇒ Array<String>? (readonly)
The list of users that belong to the Access Control List.
37 38 39 |
# File 'memory_db/cfn_acl_props.rb', line 37 def user_names @user_names end |
Class Method Details
.jsii_properties ⇒ Object
39 40 41 42 43 44 45 |
# File 'memory_db/cfn_acl_props.rb', line 39 def self.jsii_properties { :acl_name => "aclName", :tags => "tags", :user_names => "userNames", } end |
Instance Method Details
#to_jsii ⇒ Object
47 48 49 50 51 52 53 54 55 |
# File 'memory_db/cfn_acl_props.rb', line 47 def to_jsii result = {} result.merge!({ "aclName" => @acl_name, "tags" => @tags, "userNames" => @user_names, }) result.compact end |