VariableDeclarationProperty Struct
A variable declared at the pipeline level.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codepipeline as codepipeline } from 'aws-cdk-lib';
const variableDeclarationProperty: codepipeline.CfnPipeline.VariableDeclarationProperty = {
name: 'name',
// the properties below are optional
defaultValue: 'defaultValue',
description: 'description',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_codepipeline as codepipeline
variable_declaration_property = codepipeline.CfnPipeline.VariableDeclarationProperty(
name="name",
# the properties below are optional
default_value="defaultValue",
description="description"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.codepipeline.*;
VariableDeclarationProperty variableDeclarationProperty = VariableDeclarationProperty.builder()
.name("name")
// the properties below are optional
.defaultValue("defaultValue")
.description("description")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodePipeline;
var variableDeclarationProperty = new VariableDeclarationProperty {
Name = "name",
// the properties below are optional
DefaultValue = "defaultValue",
Description = "description"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
variableDeclarationProperty := &VariableDeclarationProperty{
Name: jsii.String("name"),
// the properties below are optional
DefaultValue: jsii.String("defaultValue"),
Description: jsii.String("description"),
}
Properties
defaultValueoptionalstringdefault_valueoptionalstrdefaultValueoptionalStringDefaultValueoptionalstringDefaultValueoptional*string #The value of a pipeline-level variable.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #The description of a pipeline-level variable.
It's used to add additional context about the variable, and not being used at time when pipeline executes.
The name of a pipeline-level variable.