Class: AWSCDK::Datasync::CfnLocationHDFS::CmkSecretConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
datasync/cfn_location_hdfs.rb

Overview

Specifies configuration information for a DataSync-managed secret, such as an authentication token or set of credentials that DataSync uses to access a specific transfer location, and a customer-managed AWS KMS key.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(kms_key_arn: nil, secret_arn: nil) ⇒ CmkSecretConfigProperty

Returns a new instance of CmkSecretConfigProperty.

Parameters:

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

    Specifies the ARN for the customer-managed AWS KMS key used to encrypt the secret specified for SecretArn.

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

    Specifies the ARN for an AWS Secrets Manager secret, managed by DataSync.



722
723
724
725
726
727
# File 'datasync/cfn_location_hdfs.rb', line 722

def initialize(kms_key_arn: nil, secret_arn: nil)
  @kms_key_arn = kms_key_arn
  Jsii::Type.check_type(@kms_key_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "kmsKeyArn") unless @kms_key_arn.nil?
  @secret_arn = secret_arn
  Jsii::Type.check_type(@secret_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "secretArn") unless @secret_arn.nil?
end

Instance Attribute Details

#kms_key_arnString? (readonly)

Specifies the ARN for the customer-managed AWS KMS key used to encrypt the secret specified for SecretArn.

DataSync provides this key to AWS Secrets Manager.



735
736
737
# File 'datasync/cfn_location_hdfs.rb', line 735

def kms_key_arn
  @kms_key_arn
end

#secret_arnString? (readonly)

Specifies the ARN for an AWS Secrets Manager secret, managed by DataSync.



740
741
742
# File 'datasync/cfn_location_hdfs.rb', line 740

def secret_arn
  @secret_arn
end

Class Method Details

.jsii_propertiesObject



742
743
744
745
746
747
# File 'datasync/cfn_location_hdfs.rb', line 742

def self.jsii_properties
  {
    :kms_key_arn => "kmsKeyArn",
    :secret_arn => "secretArn",
  }
end

Instance Method Details

#to_jsiiObject



749
750
751
752
753
754
755
756
# File 'datasync/cfn_location_hdfs.rb', line 749

def to_jsii
  result = {}
  result.merge!({
    "kmsKeyArn" => @kms_key_arn,
    "secretArn" => @secret_arn,
  })
  result.compact
end