Skip to content
v2.278.0

Experimental

@aws-cdk/app-staging-synthesizer-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

FileStagingLocation Struct ​

Information returned by the Staging Stack for each file asset.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as app_staging_synthesizer_alpha from '@aws-cdk/app-staging-synthesizer-alpha';
import * as cdk from 'aws-cdk-lib';

declare const stack: cdk.Stack;
const fileStagingLocation: app_staging_synthesizer_alpha.FileStagingLocation = {
  bucketName: 'bucketName',

  // the properties below are optional
  assumeRoleArn: 'assumeRoleArn',
  dependencyStack: stack,
  prefix: 'prefix',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.app_staging_synthesizer_alpha as app_staging_synthesizer_alpha
import aws_cdk as cdk

# stack: cdk.Stack

file_staging_location = app_staging_synthesizer_alpha.FileStagingLocation(
    bucket_name="bucketName",

    # the properties below are optional
    assume_role_arn="assumeRoleArn",
    dependency_stack=stack,
    prefix="prefix"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.app.staging.synthesizer.alpha.*;
import software.amazon.awscdk.*;

Stack stack;

FileStagingLocation fileStagingLocation = FileStagingLocation.builder()
        .bucketName("bucketName")

        // the properties below are optional
        .assumeRoleArn("assumeRoleArn")
        .dependencyStack(stack)
        .prefix("prefix")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.AppStagingSynthesizer.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AppStagingSynthesizer.Alpha;
using Amazon.CDK;

Stack stack;

var fileStagingLocation = new FileStagingLocation {
    BucketName = "bucketName",

    // the properties below are optional
    AssumeRoleArn = "assumeRoleArn",
    DependencyStack = stack,
    Prefix = "prefix"
};
go
// Install: go get github.com/aws/aws-cdk-go/appstagingsynthesizeralpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import app_staging_synthesizer_alpha "github.com/aws/aws-cdk-go/appstagingsynthesizeralpha"
import cdk "github.com/aws/aws-cdk-go/awscdk"

var stack Stack

fileStagingLocation := &FileStagingLocation{
	BucketName: jsii.String("bucketName"),

	// the properties below are optional
	AssumeRoleArn: jsii.String("assumeRoleArn"),
	DependencyStack: stack,
	Prefix: jsii.String("prefix"),
}

Properties ​

assumeRoleArnoptionalstringassume_role_arnoptionalstrassumeRoleArnoptionalStringAssumeRoleArnoptionalstringAssumeRoleArnoptional*string #
The ARN to assume to write files to this bucket.

Default: Don't assume a role

bucketNamestringbucket_namestrbucketNameStringBucketNamestringBucketName*string required #
The name of the staging bucket.
dependencyStackoptionalStackdependency_stackoptionalStackdependencyStackoptionalStackDependencyStackoptionalStackDependencyStackoptionalStack #
The stack that creates this bucket (leads to dependencies on it).

Default: Don't add dependencies

prefixoptionalstringprefixoptionalstrprefixoptionalStringPrefixoptionalstringPrefixoptional*string = '' #
A prefix to add to the keys.