Class CfnPipeline
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::CodePipeline::Pipeline.
The AWS::CodePipeline::Pipeline resource creates a CodePipeline pipeline that describes how software changes go through a release process. For more information, see What Is CodePipeline? in the AWS CodePipeline User Guide .
Example:
// 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.*;
Object configuration;
CfnPipeline cfnPipeline = CfnPipeline.Builder.create(this, "MyCfnPipeline")
.roleArn("roleArn")
.stages(List.of(StageDeclarationProperty.builder()
.actions(List.of(ActionDeclarationProperty.builder()
.actionTypeId(ActionTypeIdProperty.builder()
.category("category")
.owner("owner")
.provider("provider")
.version("version")
.build())
.name("name")
// the properties below are optional
.configuration(configuration)
.inputArtifacts(List.of(InputArtifactProperty.builder()
.name("name")
.build()))
.namespace("namespace")
.outputArtifacts(List.of(OutputArtifactProperty.builder()
.name("name")
.build()))
.region("region")
.roleArn("roleArn")
.runOrder(123)
.build()))
.name("name")
// the properties below are optional
.blockers(List.of(BlockerDeclarationProperty.builder()
.name("name")
.type("type")
.build()))
.build()))
// the properties below are optional
.artifactStore(ArtifactStoreProperty.builder()
.location("location")
.type("type")
// the properties below are optional
.encryptionKey(EncryptionKeyProperty.builder()
.id("id")
.type("type")
.build())
.build())
.artifactStores(List.of(ArtifactStoreMapProperty.builder()
.artifactStore(ArtifactStoreProperty.builder()
.location("location")
.type("type")
// the properties below are optional
.encryptionKey(EncryptionKeyProperty.builder()
.id("id")
.type("type")
.build())
.build())
.region("region")
.build()))
.disableInboundStageTransitions(List.of(StageTransitionProperty.builder()
.reason("reason")
.stageName("stageName")
.build()))
.name("name")
.restartExecutionOnUpdate(false)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceRepresents information about an action declaration.static interfaceRepresents information about an action type.static interfaceA mapping ofartifactStoreobjects and their corresponding AWS Regions.static interfaceThe S3 bucket where artifacts for the pipeline are stored.static interfaceReserved for future use.static final classA fluent builder forCfnPipeline.static interfaceRepresents information about the key used to encrypt data in the artifact store, such as an AWS Key Management Service ( AWS KMS) key.static interfaceRepresents information about an artifact to be worked on, such as a test or build artifact.static interfaceRepresents information about the output of an action.static interfaceRepresents information about a stage and its definition.static interfaceThe name of the pipeline in which you want to disable the flow of artifacts from one stage to another.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnPipeline(Construct scope, String id, CfnPipelineProps props) Create a newAWS::CodePipeline::Pipeline.protectedCfnPipeline(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnPipeline(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe S3 bucket where artifacts for the pipeline are stored.A mapping ofartifactStoreobjects and their corresponding AWS Regions.The version of the pipeline.Represents the input of aDisableStageTransitionaction.getName()The name of the pipeline.Indicates whether to rerun the CodePipeline pipeline after you update it.The Amazon Resource Name (ARN) for CodePipeline to use to either perform actions with noactionRoleArn, or to use to assume roles for actions with anactionRoleArn.Represents information about a stage and its definition.getTags()Specifies the tags applied to the pipeline.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetArtifactStore(IResolvable value) The S3 bucket where artifacts for the pipeline are stored.voidThe S3 bucket where artifacts for the pipeline are stored.voidsetArtifactStores(List<Object> value) A mapping ofartifactStoreobjects and their corresponding AWS Regions.voidsetArtifactStores(IResolvable value) A mapping ofartifactStoreobjects and their corresponding AWS Regions.voidRepresents the input of aDisableStageTransitionaction.voidRepresents the input of aDisableStageTransitionaction.voidThe name of the pipeline.voidIndicates whether to rerun the CodePipeline pipeline after you update it.voidIndicates whether to rerun the CodePipeline pipeline after you update it.voidsetRoleArn(String value) The Amazon Resource Name (ARN) for CodePipeline to use to either perform actions with noactionRoleArn, or to use to assume roles for actions with anactionRoleArn.voidRepresents information about a stage and its definition.voidsetStages(IResolvable value) Represents information about a stage and its definition.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnPipeline
protected CfnPipeline(software.amazon.jsii.JsiiObjectRef objRef) -
CfnPipeline
protected CfnPipeline(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnPipeline
@Stability(Stable) public CfnPipeline(@NotNull Construct scope, @NotNull String id, @NotNull CfnPipelineProps props) Create a newAWS::CodePipeline::Pipeline.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrVersion
The version of the pipeline.A new pipeline is always assigned a version number of 1. This number increments when a pipeline is updated.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
Specifies the tags applied to the pipeline. -
getRoleArn
The Amazon Resource Name (ARN) for CodePipeline to use to either perform actions with noactionRoleArn, or to use to assume roles for actions with anactionRoleArn. -
setRoleArn
The Amazon Resource Name (ARN) for CodePipeline to use to either perform actions with noactionRoleArn, or to use to assume roles for actions with anactionRoleArn. -
getStages
Represents information about a stage and its definition. -
setStages
Represents information about a stage and its definition. -
setStages
Represents information about a stage and its definition. -
getArtifactStore
The S3 bucket where artifacts for the pipeline are stored.You must include either
artifactStoreorartifactStoresin your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must useartifactStores. -
setArtifactStore
The S3 bucket where artifacts for the pipeline are stored.You must include either
artifactStoreorartifactStoresin your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must useartifactStores. -
setArtifactStore
The S3 bucket where artifacts for the pipeline are stored.You must include either
artifactStoreorartifactStoresin your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must useartifactStores. -
getArtifactStores
A mapping ofartifactStoreobjects and their corresponding AWS Regions.There must be an artifact store for the pipeline Region and for each cross-region action in the pipeline.
You must include either
artifactStoreorartifactStoresin your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must useartifactStores. -
setArtifactStores
A mapping ofartifactStoreobjects and their corresponding AWS Regions.There must be an artifact store for the pipeline Region and for each cross-region action in the pipeline.
You must include either
artifactStoreorartifactStoresin your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must useartifactStores. -
setArtifactStores
A mapping ofartifactStoreobjects and their corresponding AWS Regions.There must be an artifact store for the pipeline Region and for each cross-region action in the pipeline.
You must include either
artifactStoreorartifactStoresin your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must useartifactStores. -
getDisableInboundStageTransitions
Represents the input of aDisableStageTransitionaction. -
setDisableInboundStageTransitions
Represents the input of aDisableStageTransitionaction. -
setDisableInboundStageTransitions
Represents the input of aDisableStageTransitionaction. -
getName
The name of the pipeline. -
setName
The name of the pipeline. -
getRestartExecutionOnUpdate
Indicates whether to rerun the CodePipeline pipeline after you update it. -
setRestartExecutionOnUpdate
Indicates whether to rerun the CodePipeline pipeline after you update it. -
setRestartExecutionOnUpdate
Indicates whether to rerun the CodePipeline pipeline after you update it.
-