Class: AWSCDK::Datasync::CfnLocationFSXWindows::CmkSecretConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
datasync/cfn_location_fsx_windows.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.



643
644
645
646
647
648
# File 'datasync/cfn_location_fsx_windows.rb', line 643

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.



656
657
658
# File 'datasync/cfn_location_fsx_windows.rb', line 656

def kms_key_arn
  @kms_key_arn
end

#secret_arnString? (readonly)

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



661
662
663
# File 'datasync/cfn_location_fsx_windows.rb', line 661

def secret_arn
  @secret_arn
end

Class Method Details

.jsii_propertiesObject



663
664
665
666
667
668
# File 'datasync/cfn_location_fsx_windows.rb', line 663

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

Instance Method Details

#to_jsiiObject



670
671
672
673
674
675
676
677
# File 'datasync/cfn_location_fsx_windows.rb', line 670

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