Class CreateStackSetRequest
- All Implemented Interfaces:
 SdkPojo,ToCopyableBuilder<CreateStackSetRequest.Builder,CreateStackSetRequest> 
- 
Nested Class Summary
Nested Classes - 
Method Summary
Modifier and TypeMethodDescriptionfinal StringThe Amazon Resource Name (ARN) of the IAM role to use to create this StackSet.final AutoDeploymentDescribes whether StackSets automatically deploys to Organizations accounts that are added to the target organization or organizational unit (OU).builder()final CallAscallAs()Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.final StringSpecifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.final List<Capability> In some cases, you must explicitly acknowledge that your StackSet template contains certain capabilities in order for CloudFormation to create the StackSet and related stack instances.In some cases, you must explicitly acknowledge that your StackSet template contains certain capabilities in order for CloudFormation to create the StackSet and related stack instances.final StringA unique identifier for thisCreateStackSetrequest.final StringA description of the StackSet.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final StringThe name of the IAM execution role to use to create the StackSet.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) Used to retrieve the value of a field from any class that extendsSdkRequest.final booleanFor responses, this returns true if the service returned a value for the Capabilities property.final inthashCode()final booleanFor responses, this returns true if the service returned a value for the Parameters property.final booleanhasTags()For responses, this returns true if the service returned a value for the Tags property.final ManagedExecutionDescribes whether CloudFormation performs non-conflicting operations concurrently and queues conflicting operations.The input parameters for the StackSet template.final PermissionModelsDescribes how the IAM roles required for StackSet operations are created.final StringDescribes how the IAM roles required for StackSet operations are created.static Class<? extends CreateStackSetRequest.Builder> final StringstackId()The stack ID you are importing into a new StackSet.final StringThe name to associate with the StackSet.tags()The key-value pairs to associate with this StackSet and the stacks created from it.final StringThe structure that contains the template body, with a minimum length of 1 byte and a maximum length of 51,200 bytes.final StringThe URL of a file that contains the template body.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy 
- 
Method Details
- 
stackSetName
The name to associate with the StackSet. The name must be unique in the Region where you create your StackSet.
A stack name can contain only alphanumeric characters (case-sensitive) and hyphens. It must start with an alphabetic character and can't be longer than 128 characters.
- Returns:
 - The name to associate with the StackSet. The name must be unique in the Region where you create your
         StackSet. 
A stack name can contain only alphanumeric characters (case-sensitive) and hyphens. It must start with an alphabetic character and can't be longer than 128 characters.
 
 - 
description
A description of the StackSet. You can use the description to identify the StackSet's purpose or other important information.
- Returns:
 - A description of the StackSet. You can use the description to identify the StackSet's purpose or other important information.
 
 - 
templateBody
The structure that contains the template body, with a minimum length of 1 byte and a maximum length of 51,200 bytes.
Conditional: You must specify either the
TemplateBodyor theTemplateURLparameter, but not both.- Returns:
 - The structure that contains the template body, with a minimum length of 1 byte and a maximum length of
         51,200 bytes.
         
Conditional: You must specify either the
TemplateBodyor theTemplateURLparameter, but not both. 
 - 
templateURL
The URL of a file that contains the template body. The URL must point to a template (maximum size: 1 MB) that's located in an Amazon S3 bucket or a Systems Manager document. The location for an Amazon S3 bucket must start with
https://. S3 static website URLs are not supported.Conditional: You must specify either the
TemplateBodyor theTemplateURLparameter, but not both.- Returns:
 - The URL of a file that contains the template body. The URL must point to a template (maximum size: 1 MB)
         that's located in an Amazon S3 bucket or a Systems Manager document. The location for an Amazon S3 bucket
         must start with 
https://. S3 static website URLs are not supported.Conditional: You must specify either the
TemplateBodyor theTemplateURLparameter, but not both. 
 - 
stackId
The stack ID you are importing into a new StackSet. Specify the Amazon Resource Name (ARN) of the stack.
- Returns:
 - The stack ID you are importing into a new StackSet. Specify the Amazon Resource Name (ARN) of the stack.
 
 - 
hasParameters
public final boolean hasParameters()For responses, this returns true if the service returned a value for the Parameters property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. - 
parameters
The input parameters for the StackSet template.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasParameters()method.- Returns:
 - The input parameters for the StackSet template.
 
 - 
capabilities
In some cases, you must explicitly acknowledge that your StackSet template contains certain capabilities in order for CloudFormation to create the StackSet and related stack instances.
- 
 
CAPABILITY_IAMandCAPABILITY_NAMED_IAMSome stack templates might include resources that can affect permissions in your Amazon Web Services account; for example, by creating new IAM users. For those StackSets, you must explicitly acknowledge this by specifying one of these capabilities.
The following IAM resources require you to specify either the
CAPABILITY_IAMorCAPABILITY_NAMED_IAMcapability.- 
 
If you have IAM resources, you can specify either capability.
 - 
 
If you have IAM resources with custom names, you must specify
CAPABILITY_NAMED_IAM. - 
 
If you don't specify either of these capabilities, CloudFormation returns an
InsufficientCapabilitieserror. 
If your stack template contains these resources, we recommend that you review all permissions associated with them and edit their permissions if necessary.
For more information, see Acknowledging IAM resources in CloudFormation templates.
 - 
 
 - 
 
CAPABILITY_AUTO_EXPANDSome templates reference macros. If your StackSet template references one or more macros, you must create the StackSet directly from the processed template, without first reviewing the resulting changes in a change set. To create the StackSet directly, you must acknowledge this capability. For more information, see Perform custom processing on CloudFormation templates with template macros.
StackSets with service-managed permissions don't currently support the use of macros in templates. (This includes the AWS::Include and AWS:: Serverless transforms, which are macros hosted by CloudFormation.) Even if you specify this capability for a StackSet with service-managed permissions, if you reference a macro in your template the StackSet operation will fail.
 
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasCapabilities()method.- Returns:
 - In some cases, you must explicitly acknowledge that your StackSet template contains certain capabilities
         in order for CloudFormation to create the StackSet and related stack instances.
         
- 
         
CAPABILITY_IAMandCAPABILITY_NAMED_IAMSome stack templates might include resources that can affect permissions in your Amazon Web Services account; for example, by creating new IAM users. For those StackSets, you must explicitly acknowledge this by specifying one of these capabilities.
The following IAM resources require you to specify either the
CAPABILITY_IAMorCAPABILITY_NAMED_IAMcapability.- 
         
If you have IAM resources, you can specify either capability.
 - 
         
If you have IAM resources with custom names, you must specify
CAPABILITY_NAMED_IAM. - 
         
If you don't specify either of these capabilities, CloudFormation returns an
InsufficientCapabilitieserror. 
If your stack template contains these resources, we recommend that you review all permissions associated with them and edit their permissions if necessary.
For more information, see Acknowledging IAM resources in CloudFormation templates.
 - 
         
 - 
         
CAPABILITY_AUTO_EXPANDSome templates reference macros. If your StackSet template references one or more macros, you must create the StackSet directly from the processed template, without first reviewing the resulting changes in a change set. To create the StackSet directly, you must acknowledge this capability. For more information, see Perform custom processing on CloudFormation templates with template macros.
StackSets with service-managed permissions don't currently support the use of macros in templates. (This includes the AWS::Include and AWS::Serverless transforms, which are macros hosted by CloudFormation.) Even if you specify this capability for a StackSet with service-managed permissions, if you reference a macro in your template the StackSet operation will fail.
 
 - 
         
 
 - 
 
 - 
hasCapabilities
public final boolean hasCapabilities()For responses, this returns true if the service returned a value for the Capabilities property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. - 
capabilitiesAsStrings
In some cases, you must explicitly acknowledge that your StackSet template contains certain capabilities in order for CloudFormation to create the StackSet and related stack instances.
- 
 
CAPABILITY_IAMandCAPABILITY_NAMED_IAMSome stack templates might include resources that can affect permissions in your Amazon Web Services account; for example, by creating new IAM users. For those StackSets, you must explicitly acknowledge this by specifying one of these capabilities.
The following IAM resources require you to specify either the
CAPABILITY_IAMorCAPABILITY_NAMED_IAMcapability.- 
 
If you have IAM resources, you can specify either capability.
 - 
 
If you have IAM resources with custom names, you must specify
CAPABILITY_NAMED_IAM. - 
 
If you don't specify either of these capabilities, CloudFormation returns an
InsufficientCapabilitieserror. 
If your stack template contains these resources, we recommend that you review all permissions associated with them and edit their permissions if necessary.
For more information, see Acknowledging IAM resources in CloudFormation templates.
 - 
 
 - 
 
CAPABILITY_AUTO_EXPANDSome templates reference macros. If your StackSet template references one or more macros, you must create the StackSet directly from the processed template, without first reviewing the resulting changes in a change set. To create the StackSet directly, you must acknowledge this capability. For more information, see Perform custom processing on CloudFormation templates with template macros.
StackSets with service-managed permissions don't currently support the use of macros in templates. (This includes the AWS::Include and AWS:: Serverless transforms, which are macros hosted by CloudFormation.) Even if you specify this capability for a StackSet with service-managed permissions, if you reference a macro in your template the StackSet operation will fail.
 
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasCapabilities()method.- Returns:
 - In some cases, you must explicitly acknowledge that your StackSet template contains certain capabilities
         in order for CloudFormation to create the StackSet and related stack instances.
         
- 
         
CAPABILITY_IAMandCAPABILITY_NAMED_IAMSome stack templates might include resources that can affect permissions in your Amazon Web Services account; for example, by creating new IAM users. For those StackSets, you must explicitly acknowledge this by specifying one of these capabilities.
The following IAM resources require you to specify either the
CAPABILITY_IAMorCAPABILITY_NAMED_IAMcapability.- 
         
If you have IAM resources, you can specify either capability.
 - 
         
If you have IAM resources with custom names, you must specify
CAPABILITY_NAMED_IAM. - 
         
If you don't specify either of these capabilities, CloudFormation returns an
InsufficientCapabilitieserror. 
If your stack template contains these resources, we recommend that you review all permissions associated with them and edit their permissions if necessary.
For more information, see Acknowledging IAM resources in CloudFormation templates.
 - 
         
 - 
         
CAPABILITY_AUTO_EXPANDSome templates reference macros. If your StackSet template references one or more macros, you must create the StackSet directly from the processed template, without first reviewing the resulting changes in a change set. To create the StackSet directly, you must acknowledge this capability. For more information, see Perform custom processing on CloudFormation templates with template macros.
StackSets with service-managed permissions don't currently support the use of macros in templates. (This includes the AWS::Include and AWS::Serverless transforms, which are macros hosted by CloudFormation.) Even if you specify this capability for a StackSet with service-managed permissions, if you reference a macro in your template the StackSet operation will fail.
 
 - 
         
 
 - 
 
 - 
hasTags
public final boolean hasTags()For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. - 
tags
The key-value pairs to associate with this StackSet and the stacks created from it. CloudFormation also propagates these tags to supported resources that are created in the stacks. A maximum number of 50 tags can be specified.
If you specify tags as part of a
CreateStackSetaction, CloudFormation checks to see if you have the required IAM permission to tag resources. If you don't, the entireCreateStackSetaction fails with anaccess deniederror, and the StackSet is not created.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasTags()method.- Returns:
 - The key-value pairs to associate with this StackSet and the stacks created from it. CloudFormation also
         propagates these tags to supported resources that are created in the stacks. A maximum number of 50 tags
         can be specified.
         
If you specify tags as part of a
CreateStackSetaction, CloudFormation checks to see if you have the required IAM permission to tag resources. If you don't, the entireCreateStackSetaction fails with anaccess deniederror, and the StackSet is not created. 
 - 
administrationRoleARN
The Amazon Resource Name (ARN) of the IAM role to use to create this StackSet.
Specify an IAM role only if you are using customized administrator roles to control which users or groups can manage specific StackSets within the same administrator account. For more information, see Grant self-managed permissions in the CloudFormation User Guide.
Valid only if the permissions model is
SELF_MANAGED.- Returns:
 - The Amazon Resource Name (ARN) of the IAM role to use to create this StackSet.
         
Specify an IAM role only if you are using customized administrator roles to control which users or groups can manage specific StackSets within the same administrator account. For more information, see Grant self-managed permissions in the CloudFormation User Guide.
Valid only if the permissions model is
SELF_MANAGED. 
 - 
executionRoleName
The name of the IAM execution role to use to create the StackSet. If you do not specify an execution role, CloudFormation uses the
AWSCloudFormationStackSetExecutionRolerole for the StackSet operation.Specify an IAM role only if you are using customized execution roles to control which stack resources users and groups can include in their StackSets.
Valid only if the permissions model is
SELF_MANAGED.- Returns:
 - The name of the IAM execution role to use to create the StackSet. If you do not specify an execution
         role, CloudFormation uses the 
AWSCloudFormationStackSetExecutionRolerole for the StackSet operation.Specify an IAM role only if you are using customized execution roles to control which stack resources users and groups can include in their StackSets.
Valid only if the permissions model is
SELF_MANAGED. 
 - 
permissionModel
Describes how the IAM roles required for StackSet operations are created. By default,
SELF-MANAGEDis specified.- 
 
With
self-managedpermissions, you must create the administrator and execution roles required to deploy to target accounts. For more information, see Grant self-managed permissions. - 
 
With
service-managedpermissions, StackSets automatically creates the IAM roles required to deploy to accounts managed by Organizations. For more information, see Activate trusted access for StackSets with Organizations. 
If the service returns an enum value that is not available in the current SDK version,
permissionModelwill returnPermissionModels.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompermissionModelAsString().- Returns:
 - Describes how the IAM roles required for StackSet operations are created. By default,
         
SELF-MANAGEDis specified.- 
         
With
self-managedpermissions, you must create the administrator and execution roles required to deploy to target accounts. For more information, see Grant self-managed permissions. - 
         
With
service-managedpermissions, StackSets automatically creates the IAM roles required to deploy to accounts managed by Organizations. For more information, see Activate trusted access for StackSets with Organizations. 
 - 
         
 - See Also:
 
 - 
 
 - 
permissionModelAsString
Describes how the IAM roles required for StackSet operations are created. By default,
SELF-MANAGEDis specified.- 
 
With
self-managedpermissions, you must create the administrator and execution roles required to deploy to target accounts. For more information, see Grant self-managed permissions. - 
 
With
service-managedpermissions, StackSets automatically creates the IAM roles required to deploy to accounts managed by Organizations. For more information, see Activate trusted access for StackSets with Organizations. 
If the service returns an enum value that is not available in the current SDK version,
permissionModelwill returnPermissionModels.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompermissionModelAsString().- Returns:
 - Describes how the IAM roles required for StackSet operations are created. By default,
         
SELF-MANAGEDis specified.- 
         
With
self-managedpermissions, you must create the administrator and execution roles required to deploy to target accounts. For more information, see Grant self-managed permissions. - 
         
With
service-managedpermissions, StackSets automatically creates the IAM roles required to deploy to accounts managed by Organizations. For more information, see Activate trusted access for StackSets with Organizations. 
 - 
         
 - See Also:
 
 - 
 
 - 
autoDeployment
Describes whether StackSets automatically deploys to Organizations accounts that are added to the target organization or organizational unit (OU). For more information, see Enable or disable automatic deployments for StackSets in Organizations in the CloudFormation User Guide.
Required if the permissions model is
SERVICE_MANAGED. (Not used with self-managed permissions.)- Returns:
 - Describes whether StackSets automatically deploys to Organizations accounts that are added to the target
         organization or organizational unit (OU). For more information, see Enable or disable automatic deployments for StackSets in Organizations in the CloudFormation User
         Guide.
         
Required if the permissions model is
SERVICE_MANAGED. (Not used with self-managed permissions.) 
 - 
callAs
Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.
By default,
SELFis specified. UseSELFfor StackSets with self-managed permissions.- 
 
To create a StackSet with service-managed permissions while signed in to the management account, specify
SELF. - 
 
To create a StackSet with service-managed permissions while signed in to a delegated administrator account, specify
DELEGATED_ADMIN.Your Amazon Web Services account must be registered as a delegated admin in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
 
StackSets with service-managed permissions are created in the management account, including StackSets that are created by delegated administrators.
Valid only if the permissions model is
SERVICE_MANAGED.If the service returns an enum value that is not available in the current SDK version,
callAswill returnCallAs.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcallAsAsString().- Returns:
 - Specifies whether you are acting as an account administrator in the organization's management account or
         as a delegated administrator in a member account.
         
By default,
SELFis specified. UseSELFfor StackSets with self-managed permissions.- 
         
To create a StackSet with service-managed permissions while signed in to the management account, specify
SELF. - 
         
To create a StackSet with service-managed permissions while signed in to a delegated administrator account, specify
DELEGATED_ADMIN.Your Amazon Web Services account must be registered as a delegated admin in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
 
StackSets with service-managed permissions are created in the management account, including StackSets that are created by delegated administrators.
Valid only if the permissions model is
SERVICE_MANAGED. - 
         
 - See Also:
 
 - 
 
 - 
callAsAsString
Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.
By default,
SELFis specified. UseSELFfor StackSets with self-managed permissions.- 
 
To create a StackSet with service-managed permissions while signed in to the management account, specify
SELF. - 
 
To create a StackSet with service-managed permissions while signed in to a delegated administrator account, specify
DELEGATED_ADMIN.Your Amazon Web Services account must be registered as a delegated admin in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
 
StackSets with service-managed permissions are created in the management account, including StackSets that are created by delegated administrators.
Valid only if the permissions model is
SERVICE_MANAGED.If the service returns an enum value that is not available in the current SDK version,
callAswill returnCallAs.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcallAsAsString().- Returns:
 - Specifies whether you are acting as an account administrator in the organization's management account or
         as a delegated administrator in a member account.
         
By default,
SELFis specified. UseSELFfor StackSets with self-managed permissions.- 
         
To create a StackSet with service-managed permissions while signed in to the management account, specify
SELF. - 
         
To create a StackSet with service-managed permissions while signed in to a delegated administrator account, specify
DELEGATED_ADMIN.Your Amazon Web Services account must be registered as a delegated admin in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
 
StackSets with service-managed permissions are created in the management account, including StackSets that are created by delegated administrators.
Valid only if the permissions model is
SERVICE_MANAGED. - 
         
 - See Also:
 
 - 
 
 - 
clientRequestToken
A unique identifier for this
CreateStackSetrequest. Specify this token if you plan to retry requests so that CloudFormation knows that you're not attempting to create another StackSet with the same name. You might retryCreateStackSetrequests to ensure that CloudFormation successfully received them.If you don't specify an operation ID, the SDK generates one automatically.
- Returns:
 - A unique identifier for this 
CreateStackSetrequest. Specify this token if you plan to retry requests so that CloudFormation knows that you're not attempting to create another StackSet with the same name. You might retryCreateStackSetrequests to ensure that CloudFormation successfully received them.If you don't specify an operation ID, the SDK generates one automatically.
 
 - 
managedExecution
Describes whether CloudFormation performs non-conflicting operations concurrently and queues conflicting operations.
- Returns:
 - Describes whether CloudFormation performs non-conflicting operations concurrently and queues conflicting operations.
 
 - 
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
 toBuilderin interfaceToCopyableBuilder<CreateStackSetRequest.Builder,CreateStackSetRequest> - Specified by:
 toBuilderin classCloudFormationRequest- Returns:
 - a builder for type T
 
 - 
builder
 - 
serializableBuilderClass
 - 
hashCode
public final int hashCode()- Overrides:
 hashCodein classAwsRequest
 - 
equals
- Overrides:
 equalsin classAwsRequest
 - 
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
 equalsBySdkFieldsin interfaceSdkPojo- Parameters:
 obj- the object to be compared with- Returns:
 - true if the other object equals to this object by sdk fields, false otherwise.
 
 - 
toString
 - 
getValueForField
Description copied from class:SdkRequestUsed to retrieve the value of a field from any class that extendsSdkRequest. The field name specified should match the member name from the corresponding service-2.json model specified in the codegen-resources folder for a given service. The class specifies what class to cast the returned value to. If the returned value is also a modeled class, theSdkRequest.getValueForField(String, Class)method will again be available.- Overrides:
 getValueForFieldin classSdkRequest- Parameters:
 fieldName- The name of the member to be retrieved.clazz- The class to cast the returned object to.- Returns:
 - Optional containing the casted return value
 
 - 
sdkFields
 - 
sdkFieldNameToField
- Specified by:
 sdkFieldNameToFieldin interfaceSdkPojo- Returns:
 - The mapping between the field name and its corresponding field.
 
 
 -