@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:35.879Z") @Stability(value=Stable) public class CliCredentialsStackSynthesizer extends StackSynthesizer
Instead of assuming the bootstrapped deployment roles, all stack operations will be performed using the CLI's current credentials.
DefaultStackSynthesizer.LegacyStackSynthesizer.Be aware that your CLI credentials must be valid for the duration of the entire deployment. If you are using session credentials, make sure the session lifetime is long enough.
By default, expects the environment to have been bootstrapped with just the staging resources of the Bootstrap Stack V2 (also known as "modern bootstrap stack"). You can override the default names using the synthesizer's construction properties.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
CliCredentialsStackSynthesizer cliCredentialsStackSynthesizer = CliCredentialsStackSynthesizer.Builder.create()
.bucketPrefix("bucketPrefix")
.dockerTagPrefix("dockerTagPrefix")
.fileAssetsBucketName("fileAssetsBucketName")
.imageAssetsRepositoryName("imageAssetsRepositoryName")
.qualifier("qualifier")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CliCredentialsStackSynthesizer.Builder
A fluent builder for
CliCredentialsStackSynthesizer. |
software.amazon.jsii.JsiiObject.InitializationModeIStackSynthesizer.Jsii$Default| Modifier | Constructor and Description |
|---|---|
|
CliCredentialsStackSynthesizer() |
|
CliCredentialsStackSynthesizer(CliCredentialsStackSynthesizerProps props) |
protected |
CliCredentialsStackSynthesizer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CliCredentialsStackSynthesizer(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
DockerImageAssetLocation |
addDockerImageAsset(DockerImageAssetSource asset)
Register a Docker Image Asset.
|
FileAssetLocation |
addFileAsset(FileAssetSource asset)
Register a File Asset.
|
void |
bind(Stack stack)
Bind to the stack this environment is going to be used on.
|
void |
synthesize(ISynthesisSession session)
Synthesize the associated stack to the session.
|
emitStackArtifact, emitStackArtifact, synthesizeStackTemplatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected CliCredentialsStackSynthesizer(software.amazon.jsii.JsiiObjectRef objRef)
protected CliCredentialsStackSynthesizer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CliCredentialsStackSynthesizer(@Nullable
CliCredentialsStackSynthesizerProps props)
props - @Stability(value=Stable) public CliCredentialsStackSynthesizer()
@Stability(value=Stable) @NotNull public DockerImageAssetLocation addDockerImageAsset(@NotNull DockerImageAssetSource asset)
Returns the parameters that can be used to refer to the asset inside the template.
addDockerImageAsset in interface IStackSynthesizeraddDockerImageAsset in class StackSynthesizerasset - This parameter is required.@Stability(value=Stable) @NotNull public FileAssetLocation addFileAsset(@NotNull FileAssetSource asset)
Returns the parameters that can be used to refer to the asset inside the template.
addFileAsset in interface IStackSynthesizeraddFileAsset in class StackSynthesizerasset - This parameter is required.@Stability(value=Stable)
public void bind(@NotNull
Stack stack)
Must be called before any of the other methods are called.
bind in interface IStackSynthesizerbind in class StackSynthesizerstack - This parameter is required.@Stability(value=Stable)
public void synthesize(@NotNull
ISynthesisSession session)
synthesize in interface IStackSynthesizersynthesize in class StackSynthesizersession - This parameter is required.Copyright © 2022. All rights reserved.