UNPKG

1.69 kBTypeScriptView Raw
1import { DockerImageAssetLocation, DockerImageAssetSource, FileAssetLocation, FileAssetSource } from '../assets';
2import { ISynthesisSession } from '../construct-compat';
3import { DefaultStackSynthesizer } from './default-synthesizer';
4/**
5 * Construction properties of {@link BootstraplessSynthesizer}.
6 */
7export interface BootstraplessSynthesizerProps {
8 /**
9 * The deploy Role ARN to use.
10 *
11 * @default - No deploy role (use CLI credentials)
12 *
13 */
14 readonly deployRoleArn?: string;
15 /**
16 * The CFN execution Role ARN to use.
17 *
18 * @default - No CloudFormation role (use CLI credentials)
19 */
20 readonly cloudFormationExecutionRoleArn?: string;
21}
22/**
23 * Synthesizer that reuses bootstrap roles from a different region
24 *
25 * A special synthesizer that behaves similarly to `DefaultStackSynthesizer`,
26 * but doesn't require bootstrapping the environment it operates in. Instead,
27 * it will re-use the Roles that were created for a different region (which
28 * is possible because IAM is a global service).
29 *
30 * However, it will not assume asset buckets or repositories have been created,
31 * and therefore does not support assets.
32 *
33 * Used by the CodePipeline construct for the support stacks needed for
34 * cross-region replication S3 buckets. App builders do not need to use this
35 * synthesizer directly.
36 */
37export declare class BootstraplessSynthesizer extends DefaultStackSynthesizer {
38 constructor(props: BootstraplessSynthesizerProps);
39 addFileAsset(_asset: FileAssetSource): FileAssetLocation;
40 addDockerImageAsset(_asset: DockerImageAssetSource): DockerImageAssetLocation;
41 synthesize(session: ISynthesisSession): void;
42}