Class CustomFactoryOptions
(experimental) Properties for customFactory static method.
Inheritance
Namespace: Amazon.CDK.AppStagingSynthesizer.Alpha
Assembly: Amazon.CDK.AppStagingSynthesizer.Alpha.dll
Syntax (csharp)
public class CustomFactoryOptions : Object, ICustomFactoryOptions, IAppStagingSynthesizerOptions
Syntax (vb)
Public Class CustomFactoryOptions
Inherits Object
Implements ICustomFactoryOptions, IAppStagingSynthesizerOptions
Remarks
Stability: Experimental
ExampleMetadata: fixture=with-custom-staging infused
Examples
class CustomFactory : IStagingResourcesFactory
{
public CustomStagingStack ObtainStagingResources(Stack stack, ObtainStagingResourcesContext context)
{
var myApp = App.Of(stack);
return new CustomStagingStack(myApp, $"CustomStagingStack-{context.environmentString}", new CustomStagingStackProps { });
}
}
var app = new App(new AppProps {
DefaultStackSynthesizer = AppStagingSynthesizer.CustomFactory(new CustomFactoryOptions {
Factory = new CustomFactory(),
OncePerEnv = true
})
});
Synopsis
Constructors
CustomFactoryOptions() |
Properties
BootstrapQualifier | (experimental) Qualifier to disambiguate multiple bootstrapped environments in the same account. |
DeploymentIdentities | (experimental) What roles to use to deploy applications. |
Factory | (experimental) The factory that will be used to return staging resources for each stack. |
OncePerEnv | (experimental) Reuse the answer from the factory for stacks in the same environment. |
Constructors
CustomFactoryOptions()
public CustomFactoryOptions()
Properties
BootstrapQualifier
(experimental) Qualifier to disambiguate multiple bootstrapped environments in the same account.
public string BootstrapQualifier { get; set; }
Property Value
System.String
Remarks
This qualifier is only used to reference bootstrapped resources. It will not
be used in the creation of app-specific staging resources: appId
is used for that
instead.
Default: - Value of context key '@aws-cdk/core:bootstrapQualifier' if set, otherwise DEFAULT_QUALIFIER
Stability: Experimental
DeploymentIdentities
(experimental) What roles to use to deploy applications.
public DeploymentIdentities DeploymentIdentities { get; set; }
Property Value
Remarks
These are the roles that have permissions to interact with CloudFormation on your behalf. By default these are the standard bootstrapped CDK roles, but you can customize them or turn them off and use the CLI credentials to deploy.
Default: - The standard bootstrapped CDK roles
Stability: Experimental
Factory
(experimental) The factory that will be used to return staging resources for each stack.
public IStagingResourcesFactory Factory { get; set; }
Property Value
Remarks
Stability: Experimental
OncePerEnv
(experimental) Reuse the answer from the factory for stacks in the same environment.
public Nullable<bool> OncePerEnv { get; set; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: true
Stability: Experimental