Class: AWSCDK::WorkspacesWeb::CfnTrustStoreProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
workspaces_web/cfn_trust_store_props.rb

Overview

Properties for defining a CfnTrustStore.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(certificate_list:, tags: nil) ⇒ CfnTrustStoreProps

Returns a new instance of CfnTrustStoreProps.

Parameters:

  • certificate_list (Array<String>)

    A list of CA certificates to be added to the trust store.

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

    The tags to add to the trust store.



11
12
13
14
15
16
# File 'workspaces_web/cfn_trust_store_props.rb', line 11

def initialize(certificate_list:, tags: nil)
  @certificate_list = certificate_list
  Jsii::Type.check_type(@certificate_list, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "certificateList")
  @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

#certificate_listArray<String> (readonly)

A list of CA certificates to be added to the trust store.



22
23
24
# File 'workspaces_web/cfn_trust_store_props.rb', line 22

def certificate_list
  @certificate_list
end

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

The tags to add to the trust store.

A tag is a key-value pair.



29
30
31
# File 'workspaces_web/cfn_trust_store_props.rb', line 29

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



31
32
33
34
35
36
# File 'workspaces_web/cfn_trust_store_props.rb', line 31

def self.jsii_properties
  {
    :certificate_list => "certificateList",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



38
39
40
41
42
43
44
45
# File 'workspaces_web/cfn_trust_store_props.rb', line 38

def to_jsii
  result = {}
  result.merge!({
    "certificateList" => @certificate_list,
    "tags" => @tags,
  })
  result.compact
end