AssetManifestFileDestination Struct
The destination for a file asset, when it is given to the AssetManifestBuilder.
| Source | core/lib/stack-synthesizers/asset-manifest-builder.ts |
|---|---|
| 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 * as cdk from 'aws-cdk-lib';
declare const assumeRoleAdditionalOptions: any;
const assetManifestFileDestination: cdk.AssetManifestFileDestination = {
bucketName: 'bucketName',
// the properties below are optional
bucketPrefix: 'bucketPrefix',
role: {
assumeRoleArn: 'assumeRoleArn',
// the properties below are optional
assumeRoleAdditionalOptions: {
assumeRoleAdditionalOptionsKey: assumeRoleAdditionalOptions,
},
assumeRoleExternalId: 'assumeRoleExternalId',
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk
# assume_role_additional_options: Any
asset_manifest_file_destination = cdk.AssetManifestFileDestination(
bucket_name="bucketName",
# the properties below are optional
bucket_prefix="bucketPrefix",
role=cdk.RoleOptions(
assume_role_arn="assumeRoleArn",
# the properties below are optional
assume_role_additional_options={
"assume_role_additional_options_key": assume_role_additional_options
},
assume_role_external_id="assumeRoleExternalId"
)
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
Object assumeRoleAdditionalOptions;
AssetManifestFileDestination assetManifestFileDestination = AssetManifestFileDestination.builder()
.bucketName("bucketName")
// the properties below are optional
.bucketPrefix("bucketPrefix")
.role(RoleOptions.builder()
.assumeRoleArn("assumeRoleArn")
// the properties below are optional
.assumeRoleAdditionalOptions(Map.of(
"assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions))
.assumeRoleExternalId("assumeRoleExternalId")
.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;
var assumeRoleAdditionalOptions;
var assetManifestFileDestination = new AssetManifestFileDestination {
BucketName = "bucketName",
// the properties below are optional
BucketPrefix = "bucketPrefix",
Role = new RoleOptions {
AssumeRoleArn = "assumeRoleArn",
// the properties below are optional
AssumeRoleAdditionalOptions = new Dictionary<string, object> {
{ "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions }
},
AssumeRoleExternalId = "assumeRoleExternalId"
}
};
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 cdk "github.com/aws/aws-cdk-go/awscdk"
var assumeRoleAdditionalOptions interface{}
assetManifestFileDestination := &AssetManifestFileDestination{
BucketName: jsii.String("bucketName"),
// the properties below are optional
BucketPrefix: jsii.String("bucketPrefix"),
Role: &RoleOptions{
AssumeRoleArn: jsii.String("assumeRoleArn"),
// the properties below are optional
AssumeRoleAdditionalOptions: map[string]interface{}{
"assumeRoleAdditionalOptionsKey": assumeRoleAdditionalOptions,
},
AssumeRoleExternalId: jsii.String("assumeRoleExternalId"),
},
}
Properties
Bucket name where the file asset should be written.
bucketPrefixoptionalstringbucket_prefixoptionalstrbucketPrefixoptionalStringBucketPrefixoptionalstringBucketPrefixoptional*string = '' #Prefix to prepend to the asset hash.
roleoptionalRoleOptionsroleoptionalRoleOptionsroleoptionalRoleOptionsRoleoptionalRoleOptionsRoleoptionalRoleOptions #Role to use for uploading.
Default: current role