Class: AWSCDK::Datasync::CfnLocationFSXONTAP::CustomSecretConfigProperty

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

Overview

Specifies configuration information for a customer-managed secret, such as an authentication token or set of credentials that DataSync uses to access a specific transfer location, and an IAM role that DataSync can assume and access the customer-managed secret.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(secret_access_role_arn:, secret_arn:) ⇒ CustomSecretConfigProperty

Returns a new instance of CustomSecretConfigProperty.

Parameters:

  • secret_access_role_arn (String)

    Specifies the ARN for the AWS Identity and Access Management role that DataSync uses to access the secret specified for SecretArn.

  • secret_arn (String)

    Specifies the ARN for a customer created AWS Secrets Manager secret.



645
646
647
648
649
650
# File 'datasync/cfn_location_fsxontap.rb', line 645

def initialize(secret_access_role_arn:, secret_arn:)
  @secret_access_role_arn = secret_access_role_arn
  Jsii::Type.check_type(@secret_access_role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "secretAccessRoleArn")
  @secret_arn = secret_arn
  Jsii::Type.check_type(@secret_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "secretArn")
end

Instance Attribute Details

#secret_access_role_arnString (readonly)

Specifies the ARN for the AWS Identity and Access Management role that DataSync uses to access the secret specified for SecretArn.



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

def secret_access_role_arn
  @secret_access_role_arn
end

#secret_arnString (readonly)

Specifies the ARN for a customer created AWS Secrets Manager secret.



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

def secret_arn
  @secret_arn
end

Class Method Details

.jsii_propertiesObject



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

def self.jsii_properties
  {
    :secret_access_role_arn => "secretAccessRoleArn",
    :secret_arn => "secretArn",
  }
end

Instance Method Details

#to_jsiiObject



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

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