Class: AWSCDK::Datasync::CfnLocationFSXWindows::CustomSecretConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Datasync::CfnLocationFSXWindows::CustomSecretConfigProperty
- Defined in:
- datasync/cfn_location_fsx_windows.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
-
#secret_access_role_arn ⇒ String
readonly
Specifies the ARN for the AWS Identity and Access Management role that DataSync uses to access the secret specified for SecretArn.
-
#secret_arn ⇒ String
readonly
Specifies the ARN for a customer created AWS Secrets Manager secret.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(secret_access_role_arn:, secret_arn:) ⇒ CustomSecretConfigProperty
constructor
A new instance of CustomSecretConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(secret_access_role_arn:, secret_arn:) ⇒ CustomSecretConfigProperty
Returns a new instance of CustomSecretConfigProperty.
688 689 690 691 692 693 |
# File 'datasync/cfn_location_fsx_windows.rb', line 688 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_arn ⇒ String (readonly)
Specifies the ARN for the AWS Identity and Access Management role that DataSync uses to access the secret specified for SecretArn.
699 700 701 |
# File 'datasync/cfn_location_fsx_windows.rb', line 699 def secret_access_role_arn @secret_access_role_arn end |
#secret_arn ⇒ String (readonly)
Specifies the ARN for a customer created AWS Secrets Manager secret.
704 705 706 |
# File 'datasync/cfn_location_fsx_windows.rb', line 704 def secret_arn @secret_arn end |
Class Method Details
.jsii_properties ⇒ Object
706 707 708 709 710 711 |
# File 'datasync/cfn_location_fsx_windows.rb', line 706 def self.jsii_properties { :secret_access_role_arn => "secretAccessRoleArn", :secret_arn => "secretArn", } end |
Instance Method Details
#to_jsii ⇒ Object
713 714 715 716 717 718 719 720 |
# File 'datasync/cfn_location_fsx_windows.rb', line 713 def to_jsii result = {} result.merge!({ "secretAccessRoleArn" => @secret_access_role_arn, "secretArn" => @secret_arn, }) result.compact end |