aws-cdk-lib.aws_codepipeline_actions.StackSetParameters

class StackSetParameters

LanguageType name
.NETAmazon.CDK.AWS.CodePipeline.Actions.StackSetParameters
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscodepipelineactions#StackSetParameters
Javasoftware.amazon.awscdk.services.codepipeline.actions.StackSetParameters
Pythonaws_cdk.aws_codepipeline_actions.StackSetParameters
TypeScript (source)aws-cdk-lib » aws_codepipeline_actions » StackSetParameters

Base parameters for the StackSet.

Example

const parameters = codepipeline_actions.StackSetParameters.fromLiteral({
 BucketName: 'my-bucket',
 Asset1: 'true',
});

Initializer

new StackSetParameters()

Methods

NameDescription
static fromArtifactPath(artifactPath)Read the parameters from a JSON file from one of the pipeline's artifacts.
static fromLiteral(parameters, usePreviousValues?)A list of template parameters for your stack set.

static fromArtifactPath(artifactPath)

public static fromArtifactPath(artifactPath: ArtifactPath): StackSetParameters

Parameters

  • artifactPath ArtifactPath

Returns

  • StackSetParameters

Read the parameters from a JSON file from one of the pipeline's artifacts.

The file needs to contain a list of { ParameterKey, ParameterValue, UsePreviousValue } objects, like this:

[
    {
        "ParameterKey": "BucketName",
        "ParameterValue": "my-bucket"
    },
    {
        "ParameterKey": "Asset1",
        "ParameterValue": "true"
    },
    {
        "ParameterKey": "Asset2",
        "UsePreviousValue": true
    }
]

You must specify all template parameters. Parameters you don't specify will revert to their Default values as specified in the template.

For of parameters you want to retain their existing values without specifying what those values are, set UsePreviousValue: true. Use of this feature is discouraged. CDK is for specifying desired-state infrastructure, and use of this feature makes the parameter values unmanaged.


static fromLiteral(parameters, usePreviousValues?)

public static fromLiteral(parameters: { [string]: string }, usePreviousValues?: string[]): StackSetParameters

Parameters

  • parameters { [string]: string }
  • usePreviousValues string[]

Returns

  • StackSetParameters

A list of template parameters for your stack set.

You must specify all template parameters. Parameters you don't specify will revert to their Default values as specified in the template.

Specify the names of parameters you want to retain their existing values, without specifying what those values are, in an array in the second argument to this function. Use of this feature is discouraged. CDK is for specifying desired-state infrastructure, and use of this feature makes the parameter values unmanaged. Example

const parameters = codepipeline_actions.StackSetParameters.fromLiteral({
 BucketName: 'my-bucket',
 Asset1: 'true',
});