AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Specifies the Organizations accounts where you want to create, update, or delete stack instances. You can target either your entire organization or specific accounts using organizational units (OUs) and account filter options.
CloudFormation doesn't deploy stack instances to the organization management account, even if the organization management account is in your organization or in an OU in your organization.
When performing create operations, if you specify both OrganizationalUnitIds
and Accounts
, you must also specify the AccountFilterType
property.
Namespace: Amazon.CloudFormation.Model
Assembly: AWSSDK.CloudFormation.dll
Version: 3.x.y.z
public class DeploymentTargets
The DeploymentTargets type exposes the following members
Name | Description | |
---|---|---|
![]() |
DeploymentTargets() |
Name | Type | Description | |
---|---|---|---|
![]() |
AccountFilterType | Amazon.CloudFormation.AccountFilterType |
Gets and sets the property AccountFilterType.
Refines which accounts will have stack operations performed on them by specifying
how to use the The following values determine how CloudFormation selects target accounts:
|
![]() |
Accounts | System.Collections.Generic.List<System.String> |
Gets and sets the property Accounts.
The Amazon Web Services account IDs where you want to perform stack operations. How
these accounts are used depends on the
If you have many account numbers, you can provide those accounts using the |
![]() |
AccountsUrl | System.String |
Gets and sets the property AccountsUrl.
The Amazon S3 URL path to a file that contains a list of Amazon Web Services account
IDs. The file format must be either
This property serves the same purpose as |
![]() |
OrganizationalUnitIds | System.Collections.Generic.List<System.String> |
Gets and sets the property OrganizationalUnitIds. The organization root ID or organizational unit (OU) IDs where you want to perform stack operations. CloudFormation will perform operations on accounts within these OUs and their child OUs. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.7.2 and newer