Class: AWSCDK::Elasticache::CfnUserGroupProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
elasticache/cfn_user_group_props.rb

Overview

Properties for defining a CfnUserGroup.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(engine:, user_group_id:, user_ids:, tags: nil) ⇒ CfnUserGroupProps

Returns a new instance of CfnUserGroupProps.

Parameters:

  • engine (String)

    The current supported values are valkey and redis.

  • user_group_id (String)

    The ID of the user group.

  • user_ids (Array<String>)

    The list of user IDs that belong to the user group.

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

    The list of tags.



13
14
15
16
17
18
19
20
21
22
# File 'elasticache/cfn_user_group_props.rb', line 13

def initialize(engine:, user_group_id:, user_ids:, tags: nil)
  @engine = engine
  Jsii::Type.check_type(@engine, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "engine")
  @user_group_id = user_group_id
  Jsii::Type.check_type(@user_group_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "userGroupId")
  @user_ids = user_ids
  Jsii::Type.check_type(@user_ids, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "userIds")
  @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?
end

Instance Attribute Details

#engineString (readonly)

The current supported values are valkey and redis.



28
29
30
# File 'elasticache/cfn_user_group_props.rb', line 28

def engine
  @engine
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

The list of tags.



45
46
47
# File 'elasticache/cfn_user_group_props.rb', line 45

def tags
  @tags
end

#user_group_idString (readonly)

The ID of the user group.



33
34
35
# File 'elasticache/cfn_user_group_props.rb', line 33

def user_group_id
  @user_group_id
end

#user_idsArray<String> (readonly)

The list of user IDs that belong to the user group.

A user named default must be included.



40
41
42
# File 'elasticache/cfn_user_group_props.rb', line 40

def user_ids
  @user_ids
end

Class Method Details

.jsii_propertiesObject



47
48
49
50
51
52
53
54
# File 'elasticache/cfn_user_group_props.rb', line 47

def self.jsii_properties
  {
    :engine => "engine",
    :user_group_id => "userGroupId",
    :user_ids => "userIds",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



56
57
58
59
60
61
62
63
64
65
# File 'elasticache/cfn_user_group_props.rb', line 56

def to_jsii
  result = {}
  result.merge!({
    "engine" => @engine,
    "userGroupId" => @user_group_id,
    "userIds" => @user_ids,
    "tags" => @tags,
  })
  result.compact
end