Skip to content
v2.277.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.

AppStagingSynthesizer Class ​

App Staging Synthesizer.

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';

declare const deploymentIdentities: app_staging_synthesizer_alpha.DeploymentIdentities;
declare const stagingResourcesFactory: app_staging_synthesizer_alpha.IStagingResourcesFactory;
const appStagingSynthesizer = app_staging_synthesizer_alpha.AppStagingSynthesizer.customFactory({
  factory: stagingResourcesFactory,

  // the properties below are optional
  bootstrapQualifier: 'bootstrapQualifier',
  deploymentIdentities: deploymentIdentities,
  oncePerEnv: false,
});
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

# deployment_identities: app_staging_synthesizer_alpha.DeploymentIdentities
# staging_resources_factory: app_staging_synthesizer_alpha.IStagingResourcesFactory

app_staging_synthesizer = app_staging_synthesizer_alpha.AppStagingSynthesizer.custom_factory(
    factory=staging_resources_factory,

    # the properties below are optional
    bootstrap_qualifier="bootstrapQualifier",
    deployment_identities=deployment_identities,
    once_per_env=False
)
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.*;

DeploymentIdentities deploymentIdentities;
IStagingResourcesFactory stagingResourcesFactory;

AppStagingSynthesizer appStagingSynthesizer = AppStagingSynthesizer.customFactory(CustomFactoryOptions.builder()
        .factory(stagingResourcesFactory)

        // the properties below are optional
        .bootstrapQualifier("bootstrapQualifier")
        .deploymentIdentities(deploymentIdentities)
        .oncePerEnv(false)
        .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;

DeploymentIdentities deploymentIdentities;
IStagingResourcesFactory stagingResourcesFactory;

var appStagingSynthesizer = AppStagingSynthesizer.CustomFactory(new CustomFactoryOptions {
    Factory = stagingResourcesFactory,

    // the properties below are optional
    BootstrapQualifier = "bootstrapQualifier",
    DeploymentIdentities = deploymentIdentities,
    OncePerEnv = false
});
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"

var deploymentIdentities DeploymentIdentities
var stagingResourcesFactory IStagingResourcesFactory

appStagingSynthesizer := app_staging_synthesizer_alpha.AppStagingSynthesizer_CustomFactory(&CustomFactoryOptions{
	Factory: stagingResourcesFactory,

	// the properties below are optional
	BootstrapQualifier: jsii.String("bootstrapQualifier"),
	DeploymentIdentities: deploymentIdentities,
	OncePerEnv: jsii.Boolean(false),
})

Properties ​

bootstrapQualifiermay be undefinedstringbootstrap_qualifiermay be undefinedstrbootstrapQualifiermay be undefinedStringBootstrapQualifiermay be undefinedstringBootstrapQualifiermay be undefined*string#
The qualifier used to bootstrap this stack.
cloudFormationExecutionRolemay be undefinedstringcloud_formation_execution_rolemay be undefinedstrcloudFormationExecutionRolemay be undefinedStringCloudFormationExecutionRolemay be undefinedstringCloudFormationExecutionRolemay be undefined*string#
The role that is passed to CloudFormation to execute the change set.
DEFAULT_CLOUDFORMATION_ROLE_ARNstringdefault_cloudformation_role_arnstrDEFAULT_CLOUDFORMATION_ROLE_ARNStringDEFAULT_CLOUDFORMATION_ROLE_ARNstringDEFAULT_CLOUDFORMATION_ROLE_ARN*stringstatic#
Default CloudFormation role ARN.
DEFAULT_DEPLOY_ROLE_ARNstringdefault_deploy_role_arnstrDEFAULT_DEPLOY_ROLE_ARNStringDEFAULT_DEPLOY_ROLE_ARNstringDEFAULT_DEPLOY_ROLE_ARN*stringstatic#
Default deploy role ARN.
DEFAULT_LOOKUP_ROLE_ARNstringdefault_lookup_role_arnstrDEFAULT_LOOKUP_ROLE_ARNStringDEFAULT_LOOKUP_ROLE_ARNstringDEFAULT_LOOKUP_ROLE_ARN*stringstatic#
Default lookup role ARN for missing values.
DEFAULT_QUALIFIERstringdefault_qualifierstrDEFAULT_QUALIFIERStringDEFAULT_QUALIFIERstringDEFAULT_QUALIFIER*stringstatic#
Default ARN qualifier.
lookupRolemay be undefinedstringlookup_rolemay be undefinedstrlookupRolemay be undefinedStringLookupRolemay be undefinedstringLookupRolemay be undefined*string#
The role used to lookup for this stack.

Methods ​

addDockerImageAsset(_asset: DockerImageAssetSource): DockerImageAssetLocationdef add_docker_image_asset(self, _asset: DockerImageAssetSource) -> DockerImageAssetLocationpublic DockerImageAssetLocation addDockerImageAsset(DockerImageAssetSource _asset)public DockerImageAssetLocation AddDockerImageAsset(DockerImageAssetSource _asset)func AddDockerImageAsset(_asset DockerImageAssetSource) DockerImageAssetLocation#
Implemented for legacy purposes;

this will never be called.

addFileAsset(_asset: FileAssetSource): FileAssetLocationdef add_file_asset(self, _asset: FileAssetSource) -> FileAssetLocationpublic FileAssetLocation addFileAsset(FileAssetSource _asset)public FileAssetLocation AddFileAsset(FileAssetSource _asset)func AddFileAsset(_asset FileAssetSource) FileAssetLocation#
Implemented for legacy purposes;

this will never be called.

bind(_stack: Stack): voiddef bind(self, _stack: Stack) -> Nonepublic void bind(Stack _stack)public void Bind(Stack _stack)func Bind(_stack Stack)#
Implemented for legacy purposes;

this will never be called.

customFactory(options: CustomFactoryOptions): AppStagingSynthesizer // chainable@staticmethod def custom_factory(options: CustomFactoryOptions) -> AppStagingSynthesizerpublic static AppStagingSynthesizer customFactory(CustomFactoryOptions options)public static AppStagingSynthesizer CustomFactory(CustomFactoryOptions options)func CustomFactory(Options CustomFactoryOptions) AppStagingSynthesizerstatic#
Supply your own stagingStackFactory method for creating an IStagingStack when a stack is bound to the synthesizer.

By default, oncePerEnv = true, which means that a new instance of the IStagingStack will be created in new environments. Set oncePerEnv = false to turn off that behavior.

customResources(options: CustomResourcesOptions): AppStagingSynthesizer // chainable@staticmethod def custom_resources(options: CustomResourcesOptions) -> AppStagingSynthesizerpublic static AppStagingSynthesizer customResources(CustomResourcesOptions options)public static AppStagingSynthesizer CustomResources(CustomResourcesOptions options)func CustomResources(Options CustomResourcesOptions) AppStagingSynthesizerstatic#
Use these exact staging resources for every stack that this synthesizer is used for.
defaultResources(options: DefaultResourcesOptions): AppStagingSynthesizer // chainable@staticmethod def default_resources(options: DefaultResourcesOptions) -> AppStagingSynthesizerpublic static AppStagingSynthesizer defaultResources(DefaultResourcesOptions options)public static AppStagingSynthesizer DefaultResources(DefaultResourcesOptions options)func DefaultResources(Options DefaultResourcesOptions) AppStagingSynthesizerstatic#
Use the Default Staging Resources, creating a single stack per environment this app is deployed in.
reusableBind(stack: Stack): IBoundStackSynthesizerdef reusable_bind(self, stack: Stack) -> IBoundStackSynthesizerpublic IBoundStackSynthesizer reusableBind(Stack stack)public IBoundStackSynthesizer ReusableBind(Stack stack)func ReusableBind(Stack Stack) IBoundStackSynthesizer#
Returns a version of the synthesizer bound to a stack.
synthesize(_session: ISynthesisSession): voiddef synthesize(self, _session: ISynthesisSession) -> Nonepublic void synthesize(ISynthesisSession _session)public void Synthesize(ISynthesisSession _session)func Synthesize(_session ISynthesisSession)#
Implemented for legacy purposes;

this will never be called.