CfnLocationObjectStorageProps Struct
Properties for defining a CfnLocationObjectStorage.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_datasync as datasync } from 'aws-cdk-lib';
const cfnLocationObjectStorageProps: datasync.CfnLocationObjectStorageProps = {
accessKey: 'accessKey',
agentArns: ['agentArns'],
bucketName: 'bucketName',
cmkSecretConfig: {
kmsKeyArn: 'kmsKeyArn',
secretArn: 'secretArn',
},
customSecretConfig: {
secretAccessRoleArn: 'secretAccessRoleArn',
secretArn: 'secretArn',
},
federatedIdentity: {
awsIamRole: 'awsIamRole',
externalIdentity: {
googleOidc: {
identityPoolName: 'identityPoolName',
identityProviderName: 'identityProviderName',
projectName: 'projectName',
projectNumber: 'projectNumber',
},
},
},
secretKey: 'secretKey',
serverCertificate: 'serverCertificate',
serverHostname: 'serverHostname',
serverPort: 123,
serverProtocol: 'serverProtocol',
subdirectory: 'subdirectory',
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
accessKeyoptionalstringaccess_keyoptionalstraccessKeyoptionalStringAccessKeyoptionalstringAccessKeyoptional*string#agentArnsoptionalstring[]agent_arnsoptionaltyping.List[str]agentArnsoptionalList<String>AgentArnsoptionalstring[]AgentArnsoptional*[]*string#notes
If you are setting up an agentless cross-cloud transfer, you do not need to specify a value for this parameter.
Make sure you configure this parameter correctly when you first create your storage location. You cannot add or remove agents from a storage location after you create it.
bucketNameoptionalstringbucket_nameoptionalstrbucketNameoptionalStringBucketNameoptionalstringBucketNameoptional*string#cmkSecretConfigoptionalIResolvable | CfnLocationObjectStorage.CmkSecretConfigPropertycmk_secret_configoptionaltyping.Union[IResolvable, CmkSecretConfigProperty]cmkSecretConfigoptionalIResolvableCmkSecretConfigoptionalIResolvableCmkSecretConfigoptionalinterface{}#notes
When you include this parameter as part of a CreateLocationObjectStorage request, you provide only the KMS key ARN. DataSync uses this KMS key together with the value you specify for the SecretKey parameter to create a DataSync-managed secret to store the location access credentials.
Make sure that DataSync has permission to access the KMS key that you specify.
You can use either
CmkSecretConfig(withSecretKey) orCustomSecretConfig(withoutSecretKey) to provide credentials for aCreateLocationObjectStoragerequest. Do not provide both parameters for the same request.
customSecretConfigoptionalIResolvable | CfnLocationObjectStorage.CustomSecretConfigPropertycustom_secret_configoptionaltyping.Union[IResolvable, CustomSecretConfigProperty]customSecretConfigoptionalIResolvableCustomSecretConfigoptionalIResolvableCustomSecretConfigoptionalinterface{}#notes
This configuration includes the secret ARN, and the ARN for an IAM role that provides access to the secret.
You can use either
CmkSecretConfig(withSecretKey) orCustomSecretConfig(withoutSecretKey) to provide credentials for aCreateLocationObjectStoragerequest. Do not provide both parameters for the same request.
federatedIdentityoptionalIResolvable | CfnLocationObjectStorage.ObjectStorageFederatedIdentityConfigPropertyfederated_identityoptionaltyping.Union[IResolvable, ObjectStorageFederatedIdentityConfigProperty]federatedIdentityoptionalIResolvableFederatedIdentityoptionalIResolvableFederatedIdentityoptionalinterface{}#secretKeyoptionalstringsecret_keyoptionalstrsecretKeyoptionalStringSecretKeyoptionalstringSecretKeyoptional*string#If you provide a secret using
SecretKey, but do not provide secret configuration details usingCmkSecretConfigorCustomSecretConfig, then DataSync stores the token using your AWS account's Secrets Manager secret.
serverCertificateoptionalstringserver_certificateoptionalstrserverCertificateoptionalStringServerCertificateoptionalstringServerCertificateoptional*string#notes
You must specify a single .pem file with a full certificate chain (for example, file:///home/user/.ssh/object_storage_certificates.pem ).
The certificate chain might include:
- The object storage system's certificate
- All intermediate certificates (if there are any)
- The root certificate of the signing CA
You can concatenate your certificates into a .pem file (which can be up to 32768 bytes before base64 encoding). The following example cat command creates an object_storage_certificates.pem file that includes three certificates:
cat object_server_certificate.pem intermediate_certificate.pem ca_root_certificate.pem > object_storage_certificates.pem
To use this parameter, configure ServerProtocol to HTTPS .
serverHostnameoptionalstringserver_hostnameoptionalstrserverHostnameoptionalStringServerHostnameoptionalstringServerHostnameoptional*string#serverPortoptionalnumberserver_portoptionalint | floatserverPortoptionalNumberServerPortoptionaldoubleServerPortoptional*float64#serverProtocoloptionalstringserver_protocoloptionalstrserverProtocoloptionalStringServerProtocoloptionalstringServerProtocoloptional*string#If not specified, the default value is HTTPS .
subdirectoryoptionalstringsubdirectoryoptionalstrsubdirectoryoptionalStringSubdirectoryoptionalstringSubdirectoryoptional*string#If this is a source location, DataSync only copies objects with this prefix. If this is a destination location, DataSync writes all objects with this prefix.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#Tags can help you manage, filter, and search for your resources. We recommend creating a name tag for your location.