Class: AWSCDK::MemoryDB::CfnACLProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
memory_db/cfn_acl_props.rb

Overview

Properties for defining a CfnACL.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(acl_name:, tags: nil, user_names: nil) ⇒ CfnACLProps

Returns a new instance of CfnACLProps.

Parameters:

  • acl_name (String)

    The name of the Access Control List.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    An array of key-value pairs to apply to this resource.

  • user_names (Array<String>, nil) (defaults to: nil)

    The list of users that belong to the Access Control List.



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 = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  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_nameString (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

#tagsArray<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
  @tags
end

#user_namesArray<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_propertiesObject



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_jsiiObject



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