Class: AWSCDK::Datasync::CfnLocationAzureBlob::CustomSecretConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Datasync::CfnLocationAzureBlob::CustomSecretConfigProperty
- Defined in:
- datasync/cfn_location_azure_blob.rb
Overview
Specifies configuration information for a customer-managed Secrets Manager secret where a storage location credentials is stored in Secrets Manager as plain text (for authentication token, secret key, or password) or as binary (for Kerberos keytab).
This configuration includes the secret ARN, and the ARN for an IAM role that provides access to the secret.
You can use either
CmkSecretConfigorCustomSecretConfigto provide credentials for aCreateLocationrequest. Do not provide both parameters for the same request.
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 an 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.
755 756 757 758 759 760 |
# File 'datasync/cfn_location_azure_blob.rb', line 755 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 .
766 767 768 |
# File 'datasync/cfn_location_azure_blob.rb', line 766 def secret_access_role_arn @secret_access_role_arn end |
#secret_arn ⇒ String (readonly)
Specifies the ARN for an AWS Secrets Manager secret.
771 772 773 |
# File 'datasync/cfn_location_azure_blob.rb', line 771 def secret_arn @secret_arn end |
Class Method Details
.jsii_properties ⇒ Object
773 774 775 776 777 778 |
# File 'datasync/cfn_location_azure_blob.rb', line 773 def self.jsii_properties { :secret_access_role_arn => "secretAccessRoleArn", :secret_arn => "secretArn", } end |
Instance Method Details
#to_jsii ⇒ Object
780 781 782 783 784 785 786 787 |
# File 'datasync/cfn_location_azure_blob.rb', line 780 def to_jsii result = {} result.merge!({ "secretAccessRoleArn" => @secret_access_role_arn, "secretArn" => @secret_arn, }) result.compact end |