Struct aws_sdk_codepipeline::model::pipeline_declaration::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for PipelineDeclaration
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) for AWS CodePipeline to use to either perform actions with no actionRoleArn
, or to use to assume roles for actions with an actionRoleArn
.
sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) for AWS CodePipeline to use to either perform actions with no actionRoleArn
, or to use to assume roles for actions with an actionRoleArn
.
sourcepub fn artifact_store(self, input: ArtifactStore) -> Self
pub fn artifact_store(self, input: ArtifactStore) -> Self
Represents information about the S3 bucket where artifacts are stored for the pipeline.
You must include either artifactStore
or artifactStores
in your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must use artifactStores
.
sourcepub fn set_artifact_store(self, input: Option<ArtifactStore>) -> Self
pub fn set_artifact_store(self, input: Option<ArtifactStore>) -> Self
Represents information about the S3 bucket where artifacts are stored for the pipeline.
You must include either artifactStore
or artifactStores
in your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must use artifactStores
.
sourcepub fn artifact_stores(self, k: impl Into<String>, v: ArtifactStore) -> Self
pub fn artifact_stores(self, k: impl Into<String>, v: ArtifactStore) -> Self
Adds a key-value pair to artifact_stores
.
To override the contents of this collection use set_artifact_stores
.
A mapping of artifactStore
objects 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 artifactStore
or artifactStores
in your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must use artifactStores
.
sourcepub fn set_artifact_stores(
self,
input: Option<HashMap<String, ArtifactStore>>
) -> Self
pub fn set_artifact_stores(
self,
input: Option<HashMap<String, ArtifactStore>>
) -> Self
A mapping of artifactStore
objects 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 artifactStore
or artifactStores
in your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must use artifactStores
.
sourcepub fn stages(self, input: StageDeclaration) -> Self
pub fn stages(self, input: StageDeclaration) -> Self
Appends an item to stages
.
To override the contents of this collection use set_stages
.
The stage in which to perform the action.
sourcepub fn set_stages(self, input: Option<Vec<StageDeclaration>>) -> Self
pub fn set_stages(self, input: Option<Vec<StageDeclaration>>) -> Self
The stage in which to perform the action.
sourcepub fn version(self, input: i32) -> Self
pub fn version(self, input: i32) -> Self
The version number of the pipeline. A new pipeline always has a version number of 1. This number is incremented when a pipeline is updated.
sourcepub fn set_version(self, input: Option<i32>) -> Self
pub fn set_version(self, input: Option<i32>) -> Self
The version number of the pipeline. A new pipeline always has a version number of 1. This number is incremented when a pipeline is updated.
sourcepub fn build(self) -> PipelineDeclaration
pub fn build(self) -> PipelineDeclaration
Consumes the builder and constructs a PipelineDeclaration
.