Class: AWSCDK::MSK::CfnBatchScramSecretProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
msk/cfn_batch_scram_secret_props.rb

Overview

Properties for defining a CfnBatchScramSecret.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cluster_arn:, secret_arn_list: nil) ⇒ CfnBatchScramSecretProps

Returns a new instance of CfnBatchScramSecretProps.

Parameters:

  • cluster_arn (String)

    The Amazon Resource Name (ARN) that uniquely identifies the cluster.

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

    List of Amazon Resource Name (ARN)s of Secrets Manager secrets.



11
12
13
14
15
16
# File 'msk/cfn_batch_scram_secret_props.rb', line 11

def initialize(cluster_arn:, secret_arn_list: nil)
  @cluster_arn = cluster_arn
  Jsii::Type.check_type(@cluster_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clusterArn")
  @secret_arn_list = secret_arn_list
  Jsii::Type.check_type(@secret_arn_list, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "secretArnList") unless @secret_arn_list.nil?
end

Instance Attribute Details

#cluster_arnString (readonly)

The Amazon Resource Name (ARN) that uniquely identifies the cluster.



22
23
24
# File 'msk/cfn_batch_scram_secret_props.rb', line 22

def cluster_arn
  @cluster_arn
end

#secret_arn_listArray<String>? (readonly)

List of Amazon Resource Name (ARN)s of Secrets Manager secrets.



27
28
29
# File 'msk/cfn_batch_scram_secret_props.rb', line 27

def secret_arn_list
  @secret_arn_list
end

Class Method Details

.jsii_propertiesObject



29
30
31
32
33
34
# File 'msk/cfn_batch_scram_secret_props.rb', line 29

def self.jsii_properties
  {
    :cluster_arn => "clusterArn",
    :secret_arn_list => "secretArnList",
  }
end

Instance Method Details

#to_jsiiObject



36
37
38
39
40
41
42
43
# File 'msk/cfn_batch_scram_secret_props.rb', line 36

def to_jsii
  result = {}
  result.merge!({
    "clusterArn" => @cluster_arn,
    "secretArnList" => @secret_arn_list,
  })
  result.compact
end