Class CfnLocationObjectStorage.CmkSecretConfigProperty
Specifies configuration information for a DataSync-managed secret, such as an authentication token, secret key, password, or Kerberos keytab that DataSync uses to access a specific storage location, with a customer-managed AWS KMS key .
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.DataSync
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnLocationObjectStorage.CmkSecretConfigProperty : CfnLocationObjectStorage.ICmkSecretConfigProperty
Syntax (vb)
Public Class CfnLocationObjectStorage.CmkSecretConfigProperty Implements CfnLocationObjectStorage.ICmkSecretConfigProperty
Remarks
You can use either <code>CmkSecretConfig</code> or <code>CustomSecretConfig</code> to provide credentials for a <code>CreateLocation</code> request. Do not provide both parameters for the same request.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DataSync;
var cmkSecretConfigProperty = new CmkSecretConfigProperty {
KmsKeyArn = "kmsKeyArn",
SecretArn = "secretArn"
};
Synopsis
Constructors
| CmkSecretConfigProperty() | Specifies configuration information for a DataSync-managed secret, such as an authentication token, secret key, password, or Kerberos keytab that DataSync uses to access a specific storage location, with a customer-managed AWS KMS key . |
Properties
| KmsKeyArn | Specifies the ARN for the customer-managed AWS KMS key that DataSync uses to encrypt the DataSync-managed secret stored for |
| SecretArn | Specifies the ARN for the DataSync-managed AWS Secrets Manager secret that that is used to access a specific storage location. |
Constructors
CmkSecretConfigProperty()
Specifies configuration information for a DataSync-managed secret, such as an authentication token, secret key, password, or Kerberos keytab that DataSync uses to access a specific storage location, with a customer-managed AWS KMS key .
public CmkSecretConfigProperty()
Remarks
You can use either <code>CmkSecretConfig</code> or <code>CustomSecretConfig</code> to provide credentials for a <code>CreateLocation</code> request. Do not provide both parameters for the same request.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DataSync;
var cmkSecretConfigProperty = new CmkSecretConfigProperty {
KmsKeyArn = "kmsKeyArn",
SecretArn = "secretArn"
};
Properties
KmsKeyArn
Specifies the ARN for the customer-managed AWS KMS key that DataSync uses to encrypt the DataSync-managed secret stored for SecretArn .
public string? KmsKeyArn { get; set; }
Property Value
Remarks
DataSync provides this key to AWS Secrets Manager .
SecretArn
Specifies the ARN for the DataSync-managed AWS Secrets Manager secret that that is used to access a specific storage location.
public string? SecretArn { get; set; }
Property Value
Remarks
This property is generated by DataSync and is read-only. DataSync encrypts this secret with the KMS key that you specify for KmsKeyArn .