ImportSourceConfigurationProperty Struct Added in v2.278.0
The Amazon S3 location to import a snapshot from, and the role the service assumes to read it.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_kinesisanalytics as kinesisanalytics } from 'aws-cdk-lib';
const importSourceConfigurationProperty: kinesisanalytics.CfnSnapshotV2.ImportSourceConfigurationProperty = {
importRoleArn: 'importRoleArn',
sourceS3PrefixLocation: {
bucketArn: 'bucketArn',
keyPrefix: 'keyPrefix',
},
sourceType: 'sourceType',
// the properties below are optional
sourceEncryptionConfiguration: {
keyType: 'keyType',
// the properties below are optional
keyId: 'keyId',
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_kinesisanalytics as kinesisanalytics
import_source_configuration_property = kinesisanalytics.CfnSnapshotV2.ImportSourceConfigurationProperty(
import_role_arn="importRoleArn",
source_s3_prefix_location=kinesisanalytics.CfnSnapshotV2.S3PrefixLocationProperty(
bucket_arn="bucketArn",
key_prefix="keyPrefix"
),
source_type="sourceType",
# the properties below are optional
source_encryption_configuration=kinesisanalytics.CfnSnapshotV2.SnapshotEncryptionConfigurationDescriptionProperty(
key_type="keyType",
# the properties below are optional
key_id="keyId"
)
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.kinesisanalytics.*;
ImportSourceConfigurationProperty importSourceConfigurationProperty = ImportSourceConfigurationProperty.builder()
.importRoleArn("importRoleArn")
.sourceS3PrefixLocation(S3PrefixLocationProperty.builder()
.bucketArn("bucketArn")
.keyPrefix("keyPrefix")
.build())
.sourceType("sourceType")
// the properties below are optional
.sourceEncryptionConfiguration(SnapshotEncryptionConfigurationDescriptionProperty.builder()
.keyType("keyType")
// the properties below are optional
.keyId("keyId")
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.KinesisAnalytics;
var importSourceConfigurationProperty = new ImportSourceConfigurationProperty {
ImportRoleArn = "importRoleArn",
SourceS3PrefixLocation = new S3PrefixLocationProperty {
BucketArn = "bucketArn",
KeyPrefix = "keyPrefix"
},
SourceType = "sourceType",
// the properties below are optional
SourceEncryptionConfiguration = new SnapshotEncryptionConfigurationDescriptionProperty {
KeyType = "keyType",
// the properties below are optional
KeyId = "keyId"
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
importSourceConfigurationProperty := &ImportSourceConfigurationProperty{
ImportRoleArn: jsii.String("importRoleArn"),
SourceS3PrefixLocation: &S3PrefixLocationProperty{
BucketArn: jsii.String("bucketArn"),
KeyPrefix: jsii.String("keyPrefix"),
},
SourceType: jsii.String("sourceType"),
// the properties below are optional
SourceEncryptionConfiguration: &SnapshotEncryptionConfigurationDescriptionProperty{
KeyType: jsii.String("keyType"),
// the properties below are optional
KeyId: jsii.String("keyId"),
},
}
Properties
importRoleArnstringimport_role_arnstrimportRoleArnStringImportRoleArnstringImportRoleArn*string required #The ARN of the IAM role that the service assumes to read the snapshot files from Amazon S3 (and to decrypt them, if they are encrypted with a customer managed key).
sourceEncryptionConfigurationoptionalIResolvable | CfnSnapshotV2.source_encryption_configurationoptionaltyping.Union[IResolvable, SnapshotEncryptionConfigurationDescriptionProperty]sourceEncryptionConfigurationoptionalIResolvableSourceEncryptionConfigurationoptionalIResolvableSourceEncryptionConfigurationoptionalinterface{} #A KMS encryption configuration for snapshot data: the key type, and the key when it is a customer managed key.
sourceS3PrefixLocationIResolvable | CfnSnapshotV2.source_s3_prefix_locationtyping.Union[IResolvable, S3PrefixLocationProperty]sourceS3PrefixLocationIResolvableSourceS3PrefixLocationIResolvableSourceS3PrefixLocationinterface{} required #An Amazon S3 prefix location.
The type of storage the snapshot is imported from.