Class: AWSCDK::Pipelines::StackDeployment
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::Pipelines::StackDeployment
- Defined in:
- pipelines/stack_deployment.rb
Overview
Deployment of a single Stack.
You don't need to instantiate this class -- it will
be automatically instantiated as necessary when you
add a Stage to a pipeline.
Class Method Summary collapse
-
.from_artifact(stack_artifact) ⇒ AWSCDK::Pipelines::StackDeployment
Build a
StackDeploymentfrom a Stack Artifact in a Cloud Assembly. - .jsii_overridable_methods ⇒ Object
Instance Method Summary collapse
-
#absolute_template_path ⇒ String
Template path on disk to CloudAssembly.
-
#account ⇒ String?
Account where the stack should be deployed.
-
#add_stack_dependency(stack_deployment) ⇒ void
Add a dependency on another stack.
-
#add_stack_steps(pre, change_set, post) ⇒ void
Adds steps to each phase of the stack.
-
#assets ⇒ Array<AWSCDK::Pipelines::StackAsset>
Assets referenced by this stack.
-
#assume_role_arn ⇒ String?
Role to assume before deploying this stack.
-
#change_set ⇒ Array<AWSCDK::Pipelines::Step>
Steps that take place after stack is prepared but before stack deploys.
-
#construct_path ⇒ String
Construct path for this stack.
-
#execution_role_arn ⇒ String?
Execution role to pass to CloudFormation.
-
#initialize(*args) ⇒ StackDeployment
constructor
A new instance of StackDeployment.
-
#post ⇒ Array<AWSCDK::Pipelines::Step>
Steps to execute after stack deploys.
-
#pre ⇒ Array<AWSCDK::Pipelines::Step>
Steps that take place before stack is prepared.
-
#region ⇒ String?
Region where the stack should be deployed.
-
#stack_artifact_id ⇒ String
Artifact ID for this stack.
-
#stack_dependencies ⇒ Array<AWSCDK::Pipelines::StackDeployment>
Other stacks this stack depends on.
-
#stack_name ⇒ String
Name for this stack.
-
#tags ⇒ Hash{String => String}
Tags to apply to the stack.
-
#template_asset ⇒ AWSCDK::Pipelines::StackAsset?
The asset that represents the CloudFormation template for this stack.
-
#template_url ⇒ String?
The S3 URL which points to the template asset location in the publishing bucket.
Constructor Details
#initialize(*args) ⇒ StackDeployment
Returns a new instance of StackDeployment.
12 13 14 |
# File 'pipelines/stack_deployment.rb', line 12 def initialize(*args) raise NoMethodError, "aws-cdk-lib.pipelines.StackDeployment does not have a visible constructor; use the provided factory methods" end |
Class Method Details
.from_artifact(stack_artifact) ⇒ AWSCDK::Pipelines::StackDeployment
Build a StackDeployment from a Stack Artifact in a Cloud Assembly.
43 44 45 46 |
# File 'pipelines/stack_deployment.rb', line 43 def self.from_artifact(stack_artifact) Jsii::Type.check_type(stack_artifact, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5jeF9hcGkuQ2xvdWRGb3JtYXRpb25TdGFja0FydGlmYWN0In0=")), "stackArtifact") Jsii::Kernel.instance.call_static("aws-cdk-lib.pipelines.StackDeployment", "fromArtifact", [stack_artifact]) end |
.jsii_overridable_methods ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'pipelines/stack_deployment.rb', line 16 def self.jsii_overridable_methods { :absolute_template_path => { kind: :property, name: "absoluteTemplatePath", is_optional: false }, :assets => { kind: :property, name: "assets", is_optional: false }, :change_set => { kind: :property, name: "changeSet", is_optional: false }, :construct_path => { kind: :property, name: "constructPath", is_optional: false }, :post => { kind: :property, name: "post", is_optional: false }, :pre => { kind: :property, name: "pre", is_optional: false }, :stack_artifact_id => { kind: :property, name: "stackArtifactId", is_optional: false }, :stack_dependencies => { kind: :property, name: "stackDependencies", is_optional: false }, :stack_name => { kind: :property, name: "stackName", is_optional: false }, :tags => { kind: :property, name: "tags", is_optional: false }, :account => { kind: :property, name: "account", is_optional: true }, :assume_role_arn => { kind: :property, name: "assumeRoleArn", is_optional: true }, :execution_role_arn => { kind: :property, name: "executionRoleArn", is_optional: true }, :region => { kind: :property, name: "region", is_optional: true }, :template_asset => { kind: :property, name: "templateAsset", is_optional: true }, :template_url => { kind: :property, name: "templateUrl", is_optional: true }, :add_stack_dependency => { kind: :method, name: "addStackDependency", is_optional: false }, :add_stack_steps => { kind: :method, name: "addStackSteps", is_optional: false }, } end |
Instance Method Details
#absolute_template_path ⇒ String
Template path on disk to CloudAssembly.
51 52 53 |
# File 'pipelines/stack_deployment.rb', line 51 def absolute_template_path() jsii_get_property("absoluteTemplatePath") end |
#account ⇒ String?
Default: - Pipeline account
Account where the stack should be deployed.
126 127 128 |
# File 'pipelines/stack_deployment.rb', line 126 def account() jsii_get_property("account") end |
#add_stack_dependency(stack_deployment) ⇒ void
This method returns an undefined value.
Add a dependency on another stack.
177 178 179 180 |
# File 'pipelines/stack_deployment.rb', line 177 def add_stack_dependency(stack_deployment) Jsii::Type.check_type(stack_deployment, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5waXBlbGluZXMuU3RhY2tEZXBsb3ltZW50In0=")), "stackDeployment") jsii_call_method("addStackDependency", [stack_deployment]) end |
#add_stack_steps(pre, change_set, post) ⇒ void
This method returns an undefined value.
Adds steps to each phase of the stack.
188 189 190 191 192 193 |
# File 'pipelines/stack_deployment.rb', line 188 def add_stack_steps(pre, change_set, post) Jsii::Type.check_type(pre, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLnBpcGVsaW5lcy5TdGVwIn0sImtpbmQiOiJhcnJheSJ9fQ==")), "pre") Jsii::Type.check_type(change_set, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLnBpcGVsaW5lcy5TdGVwIn0sImtpbmQiOiJhcnJheSJ9fQ==")), "changeSet") Jsii::Type.check_type(post, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLnBpcGVsaW5lcy5TdGVwIn0sImtpbmQiOiJhcnJheSJ9fQ==")), "post") jsii_call_method("addStackSteps", [pre, change_set, post]) end |
#assets ⇒ Array<AWSCDK::Pipelines::StackAsset>
Assets referenced by this stack.
58 59 60 |
# File 'pipelines/stack_deployment.rb', line 58 def assets() jsii_get_property("assets") end |
#assume_role_arn ⇒ String?
Default: - Don't assume any role
Role to assume before deploying this stack.
134 135 136 |
# File 'pipelines/stack_deployment.rb', line 134 def assume_role_arn() jsii_get_property("assumeRoleArn") end |
#change_set ⇒ Array<AWSCDK::Pipelines::Step>
Steps that take place after stack is prepared but before stack deploys.
Your pipeline engine may not disable prepare_step.
67 68 69 |
# File 'pipelines/stack_deployment.rb', line 67 def change_set() jsii_get_property("changeSet") end |
#construct_path ⇒ String
Construct path for this stack.
74 75 76 |
# File 'pipelines/stack_deployment.rb', line 74 def construct_path() jsii_get_property("constructPath") end |
#execution_role_arn ⇒ String?
Default: - No execution role
Execution role to pass to CloudFormation.
142 143 144 |
# File 'pipelines/stack_deployment.rb', line 142 def execution_role_arn() jsii_get_property("executionRoleArn") end |
#post ⇒ Array<AWSCDK::Pipelines::Step>
Steps to execute after stack deploys.
81 82 83 |
# File 'pipelines/stack_deployment.rb', line 81 def post() jsii_get_property("post") end |
#pre ⇒ Array<AWSCDK::Pipelines::Step>
Steps that take place before stack is prepared.
If your pipeline engine disables 'prepareStep', then this will happen before stack deploys
90 91 92 |
# File 'pipelines/stack_deployment.rb', line 90 def pre() jsii_get_property("pre") end |
#region ⇒ String?
Default: - Pipeline region
Region where the stack should be deployed.
150 151 152 |
# File 'pipelines/stack_deployment.rb', line 150 def region() jsii_get_property("region") end |
#stack_artifact_id ⇒ String
Artifact ID for this stack.
97 98 99 |
# File 'pipelines/stack_deployment.rb', line 97 def stack_artifact_id() jsii_get_property("stackArtifactId") end |
#stack_dependencies ⇒ Array<AWSCDK::Pipelines::StackDeployment>
Other stacks this stack depends on.
104 105 106 |
# File 'pipelines/stack_deployment.rb', line 104 def stack_dependencies() jsii_get_property("stackDependencies") end |
#stack_name ⇒ String
Name for this stack.
111 112 113 |
# File 'pipelines/stack_deployment.rb', line 111 def stack_name() jsii_get_property("stackName") end |
#tags ⇒ Hash{String => String}
Tags to apply to the stack.
118 119 120 |
# File 'pipelines/stack_deployment.rb', line 118 def () jsii_get_property("tags") end |
#template_asset ⇒ AWSCDK::Pipelines::StackAsset?
The asset that represents the CloudFormation template for this stack.
157 158 159 |
# File 'pipelines/stack_deployment.rb', line 157 def template_asset() jsii_get_property("templateAsset") end |
#template_url ⇒ String?
The S3 URL which points to the template asset location in the publishing bucket.
This is undefined if the stack template is not published. Use the
DefaultStackSynthesizer to ensure it is.
Example value: https://bucket.s3.amazonaws.com/object/key
169 170 171 |
# File 'pipelines/stack_deployment.rb', line 169 def template_url() jsii_get_property("templateUrl") end |