Class: AWSCDK::Datasync::CfnLocationFSXONTAP::CmkSecretConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Datasync::CfnLocationFSXONTAP::CmkSecretConfigProperty
- Defined in:
- datasync/cfn_location_fsxontap.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
-
#kms_key_arn ⇒ String?
readonly
Specifies the ARN for the customer-managed AWS KMS key used to encrypt the secret specified for SecretArn.
-
#secret_arn ⇒ String?
readonly
Specifies the ARN for an AWS Secrets Manager secret, managed by DataSync.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(kms_key_arn: nil, secret_arn: nil) ⇒ CmkSecretConfigProperty
constructor
A new instance of CmkSecretConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(kms_key_arn: nil, secret_arn: nil) ⇒ CmkSecretConfigProperty
Returns a new instance of CmkSecretConfigProperty.
600 601 602 603 604 605 |
# File 'datasync/cfn_location_fsxontap.rb', line 600 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_arn ⇒ String? (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.
613 614 615 |
# File 'datasync/cfn_location_fsxontap.rb', line 613 def kms_key_arn @kms_key_arn end |
#secret_arn ⇒ String? (readonly)
Specifies the ARN for an AWS Secrets Manager secret, managed by DataSync.
618 619 620 |
# File 'datasync/cfn_location_fsxontap.rb', line 618 def secret_arn @secret_arn end |
Class Method Details
.jsii_properties ⇒ Object
620 621 622 623 624 625 |
# File 'datasync/cfn_location_fsxontap.rb', line 620 def self.jsii_properties { :kms_key_arn => "kmsKeyArn", :secret_arn => "secretArn", } end |
Instance Method Details
#to_jsii ⇒ Object
627 628 629 630 631 632 633 634 |
# File 'datasync/cfn_location_fsxontap.rb', line 627 def to_jsii result = {} result.merge!({ "kmsKeyArn" => @kms_key_arn, "secretArn" => @secret_arn, }) result.compact end |