Class: AWSCDK::CodePipelineActions::StackInstances
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::CodePipelineActions::StackInstances
- Defined in:
- code_pipeline_actions/stack_instances.rb
Overview
Where Stack Instances will be created from the StackSet.
Class Method Summary collapse
-
.from_artifact_path(artifact_path, regions) ⇒ AWSCDK::CodePipelineActions::StackInstances
Create stack instances in a set of accounts or organizational units taken from the pipeline artifacts, and a set of regions The file must be a JSON file containing a list of strings.
-
.in_accounts(accounts, regions) ⇒ AWSCDK::CodePipelineActions::StackInstances
Create stack instances in a set of accounts and regions passed as literal lists.
-
.in_organizational_units(ous, regions) ⇒ AWSCDK::CodePipelineActions::StackInstances
Create stack instances in all accounts in a set of Organizational Units (OUs) and regions passed as literal lists.
- .jsii_overridable_methods ⇒ Object
Instance Method Summary collapse
-
#initialize ⇒ StackInstances
constructor
A new instance of StackInstances.
Constructor Details
#initialize ⇒ StackInstances
Returns a new instance of StackInstances.
8 9 10 |
# File 'code_pipeline_actions/stack_instances.rb', line 8 def initialize Jsii::Object.instance_method(:initialize).bind(self).call end |
Class Method Details
.from_artifact_path(artifact_path, regions) ⇒ AWSCDK::CodePipelineActions::StackInstances
Create stack instances in a set of accounts or organizational units taken from the pipeline artifacts, and a set of regions The file must be a JSON file containing a list of strings.
For example:
[
"111111111111",
"222222222222",
"333333333333"
]
Stack Instances will be created in every combination of region and account, or region and Organizational Units (OUs).
If this is set of Organizational Units, you must have selected StackSetDeploymentModel.organizations()
as deployment model.
38 39 40 41 42 |
# File 'code_pipeline_actions/stack_instances.rb', line 38 def self.from_artifact_path(artifact_path, regions) Jsii::Type.check_type(artifact_path, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29kZXBpcGVsaW5lLkFydGlmYWN0UGF0aCJ9")), "artifactPath") Jsii::Type.check_type(regions, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "regions") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_codepipeline_actions.StackInstances", "fromArtifactPath", [artifact_path, regions]) end |
.in_accounts(accounts, regions) ⇒ AWSCDK::CodePipelineActions::StackInstances
Create stack instances in a set of accounts and regions passed as literal lists.
Stack Instances will be created in every combination of region and account.
NOTE:
StackInstances.inAccounts()andStackInstances.inOrganizationalUnits()have exactly the same behavior, and you can use them interchangeably if you want. The only difference between them is that your code clearly indicates what entity it's working with.
56 57 58 59 60 |
# File 'code_pipeline_actions/stack_instances.rb', line 56 def self.in_accounts(accounts, regions) Jsii::Type.check_type(accounts, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "accounts") Jsii::Type.check_type(regions, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "regions") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_codepipeline_actions.StackInstances", "inAccounts", [accounts, regions]) end |
.in_organizational_units(ous, regions) ⇒ AWSCDK::CodePipelineActions::StackInstances
Create stack instances in all accounts in a set of Organizational Units (OUs) and regions passed as literal lists.
If you want to deploy to Organization Units, you must choose have created the StackSet
with deploymentModel: DeploymentModel.organizations().
Stack Instances will be created in every combination of region and account.
NOTE:
StackInstances.inAccounts()andStackInstances.inOrganizationalUnits()have exactly the same behavior, and you can use them interchangeably if you want. The only difference between them is that your code clearly indicates what entity it's working with.
77 78 79 80 81 |
# File 'code_pipeline_actions/stack_instances.rb', line 77 def self.in_organizational_units(ous, regions) Jsii::Type.check_type(ous, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "ous") Jsii::Type.check_type(regions, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "regions") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_codepipeline_actions.StackInstances", "inOrganizationalUnits", [ous, regions]) end |
.jsii_overridable_methods ⇒ Object
12 13 14 15 |
# File 'code_pipeline_actions/stack_instances.rb', line 12 def self.jsii_overridable_methods { } end |