StackInstancesProperty Struct
Stack instances in some specific accounts and Regions.
| 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 * as cdk from 'aws-cdk-lib';
const stackInstancesProperty: cdk.CfnStackSet.StackInstancesProperty = {
deploymentTargets: {
accountFilterType: 'accountFilterType',
accounts: ['accounts'],
accountsUrl: 'accountsUrl',
organizationalUnitIds: ['organizationalUnitIds'],
},
regions: ['regions'],
// the properties below are optional
parameterOverrides: [{
parameterKey: 'parameterKey',
parameterValue: 'parameterValue',
}],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk
stack_instances_property = cdk.CfnStackSet.StackInstancesProperty(
deployment_targets=cdk.CfnStackSet.DeploymentTargetsProperty(
account_filter_type="accountFilterType",
accounts=["accounts"],
accounts_url="accountsUrl",
organizational_unit_ids=["organizationalUnitIds"]
),
regions=["regions"],
# the properties below are optional
parameter_overrides=[cdk.CfnStackSet.ParameterProperty(
parameter_key="parameterKey",
parameter_value="parameterValue"
)]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
StackInstancesProperty stackInstancesProperty = StackInstancesProperty.builder()
.deploymentTargets(DeploymentTargetsProperty.builder()
.accountFilterType("accountFilterType")
.accounts(List.of("accounts"))
.accountsUrl("accountsUrl")
.organizationalUnitIds(List.of("organizationalUnitIds"))
.build())
.regions(List.of("regions"))
// the properties below are optional
.parameterOverrides(List.of(ParameterProperty.builder()
.parameterKey("parameterKey")
.parameterValue("parameterValue")
.build()))
.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;
var stackInstancesProperty = new StackInstancesProperty {
DeploymentTargets = new DeploymentTargetsProperty {
AccountFilterType = "accountFilterType",
Accounts = new [] { "accounts" },
AccountsUrl = "accountsUrl",
OrganizationalUnitIds = new [] { "organizationalUnitIds" }
},
Regions = new [] { "regions" },
// the properties below are optional
ParameterOverrides = new [] { new ParameterProperty {
ParameterKey = "parameterKey",
ParameterValue = "parameterValue"
} }
};
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 cdk "github.com/aws/aws-cdk-go/awscdk"
stackInstancesProperty := &StackInstancesProperty{
DeploymentTargets: &DeploymentTargetsProperty{
AccountFilterType: jsii.String("accountFilterType"),
Accounts: []*string{
jsii.String("accounts"),
},
AccountsUrl: jsii.String("accountsUrl"),
OrganizationalUnitIds: []*string{
jsii.String("organizationalUnitIds"),
},
},
Regions: []*string{
jsii.String("regions"),
},
// the properties below are optional
ParameterOverrides: []interface{}{
&ParameterProperty{
ParameterKey: jsii.String("parameterKey"),
ParameterValue: jsii.String("parameterValue"),
},
},
}
Properties
deploymentTargetsIResolvable | CfnStackSet.deployment_targetstyping.Union[IResolvable, DeploymentTargetsProperty]deploymentTargetsIResolvableDeploymentTargetsIResolvableDeploymentTargetsinterface{} required #The AWS Organizations accounts or AWS accounts to deploy stacks to in the specified Regions.
parameterOverridesoptionalIResolvable | IResolvable | CfnStackSet.ParameterProperty[]parameter_overridesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ParameterProperty]]]parameterOverridesoptionalIResolvableParameterOverridesoptionalIResolvableParameterOverridesoptionalinterface{} #A list of StackSet parameters whose values you want to override in the selected stack instances.
regionsstring[]regionstyping.List[str]regionsList<String>Regionsstring[]Regions*[]*string required #The names of one or more Regions where you want to create stack instances using the specified AWS accounts .