Class: AWSCDK::ECS::CfnService::ServiceConnectTLSConfigurationProperty

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

Overview

The key that encrypts and decrypts your resources for Service Connect TLS.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(issuer_certificate_authority:, kms_key: nil, role_arn: nil) ⇒ ServiceConnectTLSConfigurationProperty

Returns a new instance of ServiceConnectTLSConfigurationProperty.

Parameters:



2870
2871
2872
2873
2874
2875
2876
2877
# File 'ecs/cfn_service.rb', line 2870

def initialize(issuer_certificate_authority:, kms_key: nil, role_arn: nil)
  @issuer_certificate_authority = issuer_certificate_authority.is_a?(Hash) ? ::AWSCDK::ECS::CfnService::ServiceConnectTLSCertificateAuthorityProperty.new(**issuer_certificate_authority.transform_keys(&:to_sym)) : issuer_certificate_authority
  Jsii::Type.check_type(@issuer_certificate_authority, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lY3MuQ2ZuU2VydmljZS5TZXJ2aWNlQ29ubmVjdFRsc0NlcnRpZmljYXRlQXV0aG9yaXR5UHJvcGVydHkifV19fQ==")), "issuerCertificateAuthority")
  @kms_key = kms_key
  Jsii::Type.check_type(@kms_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "kmsKey") unless @kms_key.nil?
  @role_arn = role_arn
  Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn") unless @role_arn.nil?
end

Instance Attribute Details

#kms_keyString? (readonly)

The AWS Key Management Service key.



2888
2889
2890
# File 'ecs/cfn_service.rb', line 2888

def kms_key
  @kms_key
end

#role_arnString? (readonly)

The Amazon Resource Name (ARN) of the IAM role that's associated with the Service Connect TLS.



2893
2894
2895
# File 'ecs/cfn_service.rb', line 2893

def role_arn
  @role_arn
end

Class Method Details

.jsii_propertiesObject



2895
2896
2897
2898
2899
2900
2901
# File 'ecs/cfn_service.rb', line 2895

def self.jsii_properties
  {
    :issuer_certificate_authority => "issuerCertificateAuthority",
    :kms_key => "kmsKey",
    :role_arn => "roleArn",
  }
end

Instance Method Details

#to_jsiiObject



2903
2904
2905
2906
2907
2908
2909
2910
2911
# File 'ecs/cfn_service.rb', line 2903

def to_jsii
  result = {}
  result.merge!({
    "issuerCertificateAuthority" => @issuer_certificate_authority,
    "kmsKey" => @kms_key,
    "roleArn" => @role_arn,
  })
  result.compact
end