Class: AWSCDK::Elasticache::CfnUserGroupProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Elasticache::CfnUserGroupProps
- Defined in:
- elasticache/cfn_user_group_props.rb
Overview
Properties for defining a CfnUserGroup.
Instance Attribute Summary collapse
-
#engine ⇒ String
readonly
The current supported values are valkey and redis.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The list of tags.
-
#user_group_id ⇒ String
readonly
The ID of the user group.
-
#user_ids ⇒ Array<String>
readonly
The list of user IDs that belong to the user group.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(engine:, user_group_id:, user_ids:, tags: nil) ⇒ CfnUserGroupProps
constructor
A new instance of CfnUserGroupProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(engine:, user_group_id:, user_ids:, tags: nil) ⇒ CfnUserGroupProps
Returns a new instance of CfnUserGroupProps.
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 = .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? end |
Instance Attribute Details
#engine ⇒ String (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 |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
The list of tags.
45 46 47 |
# File 'elasticache/cfn_user_group_props.rb', line 45 def @tags end |
#user_group_id ⇒ String (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_ids ⇒ Array<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_properties ⇒ Object
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_jsii ⇒ Object
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 |