Class: AWSCDK::ECS::ServiceConnectTLSConfiguration

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ecs/service_connect_tls_configuration.rb

Overview

TLS configuration for Service Connect service.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(aws_pca_authority_arn: nil, kms_key: nil, role: nil) ⇒ ServiceConnectTLSConfiguration

Returns a new instance of ServiceConnectTLSConfiguration.

Parameters:

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

    The ARN of the certificate root authority that secures your service.

  • kms_key (AWSCDK::Interfaces::AWSKMS::IKeyRef, nil) (defaults to: nil)

    The KMS key used for encryption and decryption.

  • role (AWSCDK::IAM::IRole, nil) (defaults to: nil)

    The IAM role that's associated with the Service Connect TLS.



10
11
12
13
14
15
16
17
# File 'ecs/service_connect_tls_configuration.rb', line 10

def initialize(aws_pca_authority_arn: nil, kms_key: nil, role: nil)
  @aws_pca_authority_arn = aws_pca_authority_arn
  Jsii::Type.check_type(@aws_pca_authority_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "awsPcaAuthorityArn") unless @aws_pca_authority_arn.nil?
  @kms_key = kms_key
  Jsii::Type.check_type(@kms_key, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19rbXMuSUtleVJlZiJ9")), "kmsKey") unless @kms_key.nil?
  @role = role
  Jsii::Type.check_type(@role, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklSb2xlIn0=")), "role") unless @role.nil?
end

Instance Attribute Details

#aws_pca_authority_arnString? (readonly)

Note:

Default: - none

The ARN of the certificate root authority that secures your service.

Returns:

  • (String, nil)


23
24
25
# File 'ecs/service_connect_tls_configuration.rb', line 23

def aws_pca_authority_arn
  @aws_pca_authority_arn
end

#kms_keyAWSCDK::Interfaces::AWSKMS::IKeyRef? (readonly)

Note:

Default: - none

The KMS key used for encryption and decryption.



28
29
30
# File 'ecs/service_connect_tls_configuration.rb', line 28

def kms_key
  @kms_key
end

#roleAWSCDK::IAM::IRole? (readonly)

Note:

Default: - none

The IAM role that's associated with the Service Connect TLS.

Returns:



33
34
35
# File 'ecs/service_connect_tls_configuration.rb', line 33

def role
  @role
end

Class Method Details

.jsii_propertiesObject



35
36
37
38
39
40
41
# File 'ecs/service_connect_tls_configuration.rb', line 35

def self.jsii_properties
  {
    :aws_pca_authority_arn => "awsPcaAuthorityArn",
    :kms_key => "kmsKey",
    :role => "role",
  }
end

Instance Method Details

#to_jsiiObject



43
44
45
46
47
48
49
50
51
# File 'ecs/service_connect_tls_configuration.rb', line 43

def to_jsii
  result = {}
  result.merge!({
    "awsPcaAuthorityArn" => @aws_pca_authority_arn,
    "kmsKey" => @kms_key,
    "role" => @role,
  })
  result.compact
end