Class: AWSCDK::ElasticLoadBalancingv2::TrustStoreProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
elastic_load_balancingv2/trust_store_props.rb

Overview

Properties used for the Trust Store.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bucket:, key:, trust_store_name: nil, version: nil) ⇒ TrustStoreProps

Returns a new instance of TrustStoreProps.

Parameters:

  • bucket (AWSCDK::Interfaces::AWSS3::IBucketRef)

    The bucket that the trust store is hosted in.

  • key (String)

    The key in S3 to look at for the trust store.

  • trust_store_name (String, nil) (defaults to: nil)

    The name of the trust store.

  • version (String, nil) (defaults to: nil)

    The version of the S3 object that contains your truststore.



11
12
13
14
15
16
17
18
19
20
# File 'elastic_load_balancingv2/trust_store_props.rb', line 11

def initialize(bucket:, key:, trust_store_name: nil, version: nil)
  @bucket = bucket
  Jsii::Type.check_type(@bucket, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19zMy5JQnVja2V0UmVmIn0=")), "bucket")
  @key = key
  Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key")
  @trust_store_name = trust_store_name
  Jsii::Type.check_type(@trust_store_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "trustStoreName") unless @trust_store_name.nil?
  @version = version
  Jsii::Type.check_type(@version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "version") unless @version.nil?
end

Instance Attribute Details

#bucketAWSCDK::Interfaces::AWSS3::IBucketRef (readonly)

The bucket that the trust store is hosted in.



25
26
27
# File 'elastic_load_balancingv2/trust_store_props.rb', line 25

def bucket
  @bucket
end

#keyString (readonly)

The key in S3 to look at for the trust store.

Returns:

  • (String)


29
30
31
# File 'elastic_load_balancingv2/trust_store_props.rb', line 29

def key
  @key
end

#trust_store_nameString? (readonly)

Note:

Default: - Auto generated

The name of the trust store.

Returns:

  • (String, nil)


34
35
36
# File 'elastic_load_balancingv2/trust_store_props.rb', line 34

def trust_store_name
  @trust_store_name
end

#versionString? (readonly)

Note:

Default: - latest version

The version of the S3 object that contains your truststore.

To specify a version, you must have versioning enabled for the S3 bucket.

Returns:

  • (String, nil)


41
42
43
# File 'elastic_load_balancingv2/trust_store_props.rb', line 41

def version
  @version
end

Class Method Details

.jsii_propertiesObject



43
44
45
46
47
48
49
50
# File 'elastic_load_balancingv2/trust_store_props.rb', line 43

def self.jsii_properties
  {
    :bucket => "bucket",
    :key => "key",
    :trust_store_name => "trustStoreName",
    :version => "version",
  }
end

Instance Method Details

#to_jsiiObject



52
53
54
55
56
57
58
59
60
61
# File 'elastic_load_balancingv2/trust_store_props.rb', line 52

def to_jsii
  result = {}
  result.merge!({
    "bucket" => @bucket,
    "key" => @key,
    "trustStoreName" => @trust_store_name,
    "version" => @version,
  })
  result.compact
end