aws_sdk_cloudformation/operation/create_stack_set/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::create_stack_set::_create_stack_set_output::CreateStackSetOutputBuilder;
3
4pub use crate::operation::create_stack_set::_create_stack_set_input::CreateStackSetInputBuilder;
5
6impl crate::operation::create_stack_set::builders::CreateStackSetInputBuilder {
7    /// Sends a request with this input using the given client.
8    pub async fn send_with(
9        self,
10        client: &crate::Client,
11    ) -> ::std::result::Result<
12        crate::operation::create_stack_set::CreateStackSetOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::create_stack_set::CreateStackSetError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.create_stack_set();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23/// Fluent builder constructing a request to `CreateStackSet`.
24///
25/// <p>Creates a stack set.</p>
26#[derive(::std::clone::Clone, ::std::fmt::Debug)]
27pub struct CreateStackSetFluentBuilder {
28    handle: ::std::sync::Arc<crate::client::Handle>,
29    inner: crate::operation::create_stack_set::builders::CreateStackSetInputBuilder,
30    config_override: ::std::option::Option<crate::config::Builder>,
31}
32impl
33    crate::client::customize::internal::CustomizableSend<
34        crate::operation::create_stack_set::CreateStackSetOutput,
35        crate::operation::create_stack_set::CreateStackSetError,
36    > for CreateStackSetFluentBuilder
37{
38    fn send(
39        self,
40        config_override: crate::config::Builder,
41    ) -> crate::client::customize::internal::BoxFuture<
42        crate::client::customize::internal::SendResult<
43            crate::operation::create_stack_set::CreateStackSetOutput,
44            crate::operation::create_stack_set::CreateStackSetError,
45        >,
46    > {
47        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
48    }
49}
50impl CreateStackSetFluentBuilder {
51    /// Creates a new `CreateStackSetFluentBuilder`.
52    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
53        Self {
54            handle,
55            inner: ::std::default::Default::default(),
56            config_override: ::std::option::Option::None,
57        }
58    }
59    /// Access the CreateStackSet as a reference.
60    pub fn as_input(&self) -> &crate::operation::create_stack_set::builders::CreateStackSetInputBuilder {
61        &self.inner
62    }
63    /// Sends the request and returns the response.
64    ///
65    /// If an error occurs, an `SdkError` will be returned with additional details that
66    /// can be matched against.
67    ///
68    /// By default, any retryable failures will be retried twice. Retry behavior
69    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
70    /// set when configuring the client.
71    pub async fn send(
72        self,
73    ) -> ::std::result::Result<
74        crate::operation::create_stack_set::CreateStackSetOutput,
75        ::aws_smithy_runtime_api::client::result::SdkError<
76            crate::operation::create_stack_set::CreateStackSetError,
77            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
78        >,
79    > {
80        let input = self
81            .inner
82            .build()
83            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
84        let runtime_plugins = crate::operation::create_stack_set::CreateStackSet::operation_runtime_plugins(
85            self.handle.runtime_plugins.clone(),
86            &self.handle.conf,
87            self.config_override,
88        );
89        crate::operation::create_stack_set::CreateStackSet::orchestrate(&runtime_plugins, input).await
90    }
91
92    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
93    pub fn customize(
94        self,
95    ) -> crate::client::customize::CustomizableOperation<
96        crate::operation::create_stack_set::CreateStackSetOutput,
97        crate::operation::create_stack_set::CreateStackSetError,
98        Self,
99    > {
100        crate::client::customize::CustomizableOperation::new(self)
101    }
102    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
103        self.set_config_override(::std::option::Option::Some(config_override.into()));
104        self
105    }
106
107    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
108        self.config_override = config_override;
109        self
110    }
111    /// <p>The name to associate with the stack set. The name must be unique in the Region where you create your stack set.</p><note>
112    /// <p>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.</p>
113    /// </note>
114    pub fn stack_set_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
115        self.inner = self.inner.stack_set_name(input.into());
116        self
117    }
118    /// <p>The name to associate with the stack set. The name must be unique in the Region where you create your stack set.</p><note>
119    /// <p>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.</p>
120    /// </note>
121    pub fn set_stack_set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
122        self.inner = self.inner.set_stack_set_name(input);
123        self
124    }
125    /// <p>The name to associate with the stack set. The name must be unique in the Region where you create your stack set.</p><note>
126    /// <p>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.</p>
127    /// </note>
128    pub fn get_stack_set_name(&self) -> &::std::option::Option<::std::string::String> {
129        self.inner.get_stack_set_name()
130    }
131    /// <p>A description of the stack set. You can use the description to identify the stack set's purpose or other important information.</p>
132    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
133        self.inner = self.inner.description(input.into());
134        self
135    }
136    /// <p>A description of the stack set. You can use the description to identify the stack set's purpose or other important information.</p>
137    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
138        self.inner = self.inner.set_description(input);
139        self
140    }
141    /// <p>A description of the stack set. You can use the description to identify the stack set's purpose or other important information.</p>
142    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
143        self.inner.get_description()
144    }
145    /// <p>The structure that contains the template body, with a minimum length of 1 byte and a maximum length of 51,200 bytes.</p>
146    /// <p>Conditional: You must specify either the TemplateBody or the TemplateURL parameter, but not both.</p>
147    pub fn template_body(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
148        self.inner = self.inner.template_body(input.into());
149        self
150    }
151    /// <p>The structure that contains the template body, with a minimum length of 1 byte and a maximum length of 51,200 bytes.</p>
152    /// <p>Conditional: You must specify either the TemplateBody or the TemplateURL parameter, but not both.</p>
153    pub fn set_template_body(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
154        self.inner = self.inner.set_template_body(input);
155        self
156    }
157    /// <p>The structure that contains the template body, with a minimum length of 1 byte and a maximum length of 51,200 bytes.</p>
158    /// <p>Conditional: You must specify either the TemplateBody or the TemplateURL parameter, but not both.</p>
159    pub fn get_template_body(&self) -> &::std::option::Option<::std::string::String> {
160        self.inner.get_template_body()
161    }
162    /// <p>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 <code>https://</code>.</p>
163    /// <p>Conditional: You must specify either the TemplateBody or the TemplateURL parameter, but not both.</p>
164    pub fn template_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
165        self.inner = self.inner.template_url(input.into());
166        self
167    }
168    /// <p>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 <code>https://</code>.</p>
169    /// <p>Conditional: You must specify either the TemplateBody or the TemplateURL parameter, but not both.</p>
170    pub fn set_template_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
171        self.inner = self.inner.set_template_url(input);
172        self
173    }
174    /// <p>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 <code>https://</code>.</p>
175    /// <p>Conditional: You must specify either the TemplateBody or the TemplateURL parameter, but not both.</p>
176    pub fn get_template_url(&self) -> &::std::option::Option<::std::string::String> {
177        self.inner.get_template_url()
178    }
179    /// <p>The stack ID you are importing into a new stack set. Specify the Amazon Resource Name (ARN) of the stack.</p>
180    pub fn stack_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
181        self.inner = self.inner.stack_id(input.into());
182        self
183    }
184    /// <p>The stack ID you are importing into a new stack set. Specify the Amazon Resource Name (ARN) of the stack.</p>
185    pub fn set_stack_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
186        self.inner = self.inner.set_stack_id(input);
187        self
188    }
189    /// <p>The stack ID you are importing into a new stack set. Specify the Amazon Resource Name (ARN) of the stack.</p>
190    pub fn get_stack_id(&self) -> &::std::option::Option<::std::string::String> {
191        self.inner.get_stack_id()
192    }
193    ///
194    /// Appends an item to `Parameters`.
195    ///
196    /// To override the contents of this collection use [`set_parameters`](Self::set_parameters).
197    ///
198    /// <p>The input parameters for the stack set template.</p>
199    pub fn parameters(mut self, input: crate::types::Parameter) -> Self {
200        self.inner = self.inner.parameters(input);
201        self
202    }
203    /// <p>The input parameters for the stack set template.</p>
204    pub fn set_parameters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Parameter>>) -> Self {
205        self.inner = self.inner.set_parameters(input);
206        self
207    }
208    /// <p>The input parameters for the stack set template.</p>
209    pub fn get_parameters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Parameter>> {
210        self.inner.get_parameters()
211    }
212    ///
213    /// Appends an item to `Capabilities`.
214    ///
215    /// To override the contents of this collection use [`set_capabilities`](Self::set_capabilities).
216    ///
217    /// <p>In some cases, you must explicitly acknowledge that your stack set template contains certain capabilities in order for CloudFormation to create the stack set and related stack instances.</p>
218    /// <ul>
219    /// <li>
220    /// <p><code>CAPABILITY_IAM</code> and <code>CAPABILITY_NAMED_IAM</code></p>
221    /// <p>Some stack templates might include resources that can affect permissions in your Amazon Web Services account; for example, by creating new IAM users. For those stack sets, you must explicitly acknowledge this by specifying one of these capabilities.</p>
222    /// <p>The following IAM resources require you to specify either the <code>CAPABILITY_IAM</code> or <code>CAPABILITY_NAMED_IAM</code> capability.</p>
223    /// <ul>
224    /// <li>
225    /// <p>If you have IAM resources, you can specify either capability.</p></li>
226    /// <li>
227    /// <p>If you have IAM resources with custom names, you <i>must</i> specify <code>CAPABILITY_NAMED_IAM</code>.</p></li>
228    /// <li>
229    /// <p>If you don't specify either of these capabilities, CloudFormation returns an <code>InsufficientCapabilities</code> error.</p></li>
230    /// </ul>
231    /// <p>If your stack template contains these resources, we recommend that you review all permissions associated with them and edit their permissions if necessary.</p>
232    /// <ul>
233    /// <li>
234    /// <p><a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-accesskey.html">AWS::IAM::AccessKey</a></p></li>
235    /// <li>
236    /// <p><a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-group.html">AWS::IAM::Group</a></p></li>
237    /// <li>
238    /// <p><a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html">AWS::IAM::InstanceProfile</a></p></li>
239    /// <li>
240    /// <p><a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-policy.html">AWS::IAM::Policy</a></p></li>
241    /// <li>
242    /// <p><a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html">AWS::IAM::Role</a></p></li>
243    /// <li>
244    /// <p><a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-user.html">AWS::IAM::User</a></p></li>
245    /// <li>
246    /// <p><a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-usertogroupaddition.html">AWS::IAM::UserToGroupAddition</a></p></li>
247    /// </ul>
248    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/control-access-with-iam.html#using-iam-capabilities">Acknowledging IAM resources in CloudFormation templates</a>.</p></li>
249    /// <li>
250    /// <p><code>CAPABILITY_AUTO_EXPAND</code></p>
251    /// <p>Some templates reference macros. If your stack set template references one or more macros, you must create the stack set directly from the processed template, without first reviewing the resulting changes in a change set. To create the stack set directly, you must acknowledge this capability. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-macros.html">Perform custom processing on CloudFormation templates with template macros</a>.</p><important>
252    /// <p>Stack sets with service-managed permissions don't currently support the use of macros in templates. (This includes the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-include.html">AWS::Include</a> and <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-serverless.html">AWS::Serverless</a> transforms, which are macros hosted by CloudFormation.) Even if you specify this capability for a stack set with service-managed permissions, if you reference a macro in your template the stack set operation will fail.</p>
253    /// </important></li>
254    /// </ul>
255    pub fn capabilities(mut self, input: crate::types::Capability) -> Self {
256        self.inner = self.inner.capabilities(input);
257        self
258    }
259    /// <p>In some cases, you must explicitly acknowledge that your stack set template contains certain capabilities in order for CloudFormation to create the stack set and related stack instances.</p>
260    /// <ul>
261    /// <li>
262    /// <p><code>CAPABILITY_IAM</code> and <code>CAPABILITY_NAMED_IAM</code></p>
263    /// <p>Some stack templates might include resources that can affect permissions in your Amazon Web Services account; for example, by creating new IAM users. For those stack sets, you must explicitly acknowledge this by specifying one of these capabilities.</p>
264    /// <p>The following IAM resources require you to specify either the <code>CAPABILITY_IAM</code> or <code>CAPABILITY_NAMED_IAM</code> capability.</p>
265    /// <ul>
266    /// <li>
267    /// <p>If you have IAM resources, you can specify either capability.</p></li>
268    /// <li>
269    /// <p>If you have IAM resources with custom names, you <i>must</i> specify <code>CAPABILITY_NAMED_IAM</code>.</p></li>
270    /// <li>
271    /// <p>If you don't specify either of these capabilities, CloudFormation returns an <code>InsufficientCapabilities</code> error.</p></li>
272    /// </ul>
273    /// <p>If your stack template contains these resources, we recommend that you review all permissions associated with them and edit their permissions if necessary.</p>
274    /// <ul>
275    /// <li>
276    /// <p><a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-accesskey.html">AWS::IAM::AccessKey</a></p></li>
277    /// <li>
278    /// <p><a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-group.html">AWS::IAM::Group</a></p></li>
279    /// <li>
280    /// <p><a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html">AWS::IAM::InstanceProfile</a></p></li>
281    /// <li>
282    /// <p><a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-policy.html">AWS::IAM::Policy</a></p></li>
283    /// <li>
284    /// <p><a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html">AWS::IAM::Role</a></p></li>
285    /// <li>
286    /// <p><a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-user.html">AWS::IAM::User</a></p></li>
287    /// <li>
288    /// <p><a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-usertogroupaddition.html">AWS::IAM::UserToGroupAddition</a></p></li>
289    /// </ul>
290    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/control-access-with-iam.html#using-iam-capabilities">Acknowledging IAM resources in CloudFormation templates</a>.</p></li>
291    /// <li>
292    /// <p><code>CAPABILITY_AUTO_EXPAND</code></p>
293    /// <p>Some templates reference macros. If your stack set template references one or more macros, you must create the stack set directly from the processed template, without first reviewing the resulting changes in a change set. To create the stack set directly, you must acknowledge this capability. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-macros.html">Perform custom processing on CloudFormation templates with template macros</a>.</p><important>
294    /// <p>Stack sets with service-managed permissions don't currently support the use of macros in templates. (This includes the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-include.html">AWS::Include</a> and <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-serverless.html">AWS::Serverless</a> transforms, which are macros hosted by CloudFormation.) Even if you specify this capability for a stack set with service-managed permissions, if you reference a macro in your template the stack set operation will fail.</p>
295    /// </important></li>
296    /// </ul>
297    pub fn set_capabilities(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Capability>>) -> Self {
298        self.inner = self.inner.set_capabilities(input);
299        self
300    }
301    /// <p>In some cases, you must explicitly acknowledge that your stack set template contains certain capabilities in order for CloudFormation to create the stack set and related stack instances.</p>
302    /// <ul>
303    /// <li>
304    /// <p><code>CAPABILITY_IAM</code> and <code>CAPABILITY_NAMED_IAM</code></p>
305    /// <p>Some stack templates might include resources that can affect permissions in your Amazon Web Services account; for example, by creating new IAM users. For those stack sets, you must explicitly acknowledge this by specifying one of these capabilities.</p>
306    /// <p>The following IAM resources require you to specify either the <code>CAPABILITY_IAM</code> or <code>CAPABILITY_NAMED_IAM</code> capability.</p>
307    /// <ul>
308    /// <li>
309    /// <p>If you have IAM resources, you can specify either capability.</p></li>
310    /// <li>
311    /// <p>If you have IAM resources with custom names, you <i>must</i> specify <code>CAPABILITY_NAMED_IAM</code>.</p></li>
312    /// <li>
313    /// <p>If you don't specify either of these capabilities, CloudFormation returns an <code>InsufficientCapabilities</code> error.</p></li>
314    /// </ul>
315    /// <p>If your stack template contains these resources, we recommend that you review all permissions associated with them and edit their permissions if necessary.</p>
316    /// <ul>
317    /// <li>
318    /// <p><a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-accesskey.html">AWS::IAM::AccessKey</a></p></li>
319    /// <li>
320    /// <p><a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-group.html">AWS::IAM::Group</a></p></li>
321    /// <li>
322    /// <p><a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html">AWS::IAM::InstanceProfile</a></p></li>
323    /// <li>
324    /// <p><a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-policy.html">AWS::IAM::Policy</a></p></li>
325    /// <li>
326    /// <p><a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html">AWS::IAM::Role</a></p></li>
327    /// <li>
328    /// <p><a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-user.html">AWS::IAM::User</a></p></li>
329    /// <li>
330    /// <p><a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-usertogroupaddition.html">AWS::IAM::UserToGroupAddition</a></p></li>
331    /// </ul>
332    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/control-access-with-iam.html#using-iam-capabilities">Acknowledging IAM resources in CloudFormation templates</a>.</p></li>
333    /// <li>
334    /// <p><code>CAPABILITY_AUTO_EXPAND</code></p>
335    /// <p>Some templates reference macros. If your stack set template references one or more macros, you must create the stack set directly from the processed template, without first reviewing the resulting changes in a change set. To create the stack set directly, you must acknowledge this capability. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-macros.html">Perform custom processing on CloudFormation templates with template macros</a>.</p><important>
336    /// <p>Stack sets with service-managed permissions don't currently support the use of macros in templates. (This includes the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-include.html">AWS::Include</a> and <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-serverless.html">AWS::Serverless</a> transforms, which are macros hosted by CloudFormation.) Even if you specify this capability for a stack set with service-managed permissions, if you reference a macro in your template the stack set operation will fail.</p>
337    /// </important></li>
338    /// </ul>
339    pub fn get_capabilities(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Capability>> {
340        self.inner.get_capabilities()
341    }
342    ///
343    /// Appends an item to `Tags`.
344    ///
345    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
346    ///
347    /// <p>The key-value pairs to associate with this stack set 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.</p>
348    /// <p>If you specify tags as part of a <code>CreateStackSet</code> action, CloudFormation checks to see if you have the required IAM permission to tag resources. If you don't, the entire <code>CreateStackSet</code> action fails with an <code>access denied</code> error, and the stack set is not created.</p>
349    pub fn tags(mut self, input: crate::types::Tag) -> Self {
350        self.inner = self.inner.tags(input);
351        self
352    }
353    /// <p>The key-value pairs to associate with this stack set 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.</p>
354    /// <p>If you specify tags as part of a <code>CreateStackSet</code> action, CloudFormation checks to see if you have the required IAM permission to tag resources. If you don't, the entire <code>CreateStackSet</code> action fails with an <code>access denied</code> error, and the stack set is not created.</p>
355    pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
356        self.inner = self.inner.set_tags(input);
357        self
358    }
359    /// <p>The key-value pairs to associate with this stack set 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.</p>
360    /// <p>If you specify tags as part of a <code>CreateStackSet</code> action, CloudFormation checks to see if you have the required IAM permission to tag resources. If you don't, the entire <code>CreateStackSet</code> action fails with an <code>access denied</code> error, and the stack set is not created.</p>
361    pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
362        self.inner.get_tags()
363    }
364    /// <p>The Amazon Resource Name (ARN) of the IAM role to use to create this stack set.</p>
365    /// <p>Specify an IAM role only if you are using customized administrator roles to control which users or groups can manage specific stack sets within the same administrator account. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs.html">Prerequisites for using StackSets</a> in the <i>CloudFormation User Guide</i>.</p>
366    pub fn administration_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
367        self.inner = self.inner.administration_role_arn(input.into());
368        self
369    }
370    /// <p>The Amazon Resource Name (ARN) of the IAM role to use to create this stack set.</p>
371    /// <p>Specify an IAM role only if you are using customized administrator roles to control which users or groups can manage specific stack sets within the same administrator account. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs.html">Prerequisites for using StackSets</a> in the <i>CloudFormation User Guide</i>.</p>
372    pub fn set_administration_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
373        self.inner = self.inner.set_administration_role_arn(input);
374        self
375    }
376    /// <p>The Amazon Resource Name (ARN) of the IAM role to use to create this stack set.</p>
377    /// <p>Specify an IAM role only if you are using customized administrator roles to control which users or groups can manage specific stack sets within the same administrator account. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs.html">Prerequisites for using StackSets</a> in the <i>CloudFormation User Guide</i>.</p>
378    pub fn get_administration_role_arn(&self) -> &::std::option::Option<::std::string::String> {
379        self.inner.get_administration_role_arn()
380    }
381    /// <p>The name of the IAM execution role to use to create the stack set. If you do not specify an execution role, CloudFormation uses the <code>AWSCloudFormationStackSetExecutionRole</code> role for the stack set operation.</p>
382    /// <p>Specify an IAM role only if you are using customized execution roles to control which stack resources users and groups can include in their stack sets.</p>
383    pub fn execution_role_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
384        self.inner = self.inner.execution_role_name(input.into());
385        self
386    }
387    /// <p>The name of the IAM execution role to use to create the stack set. If you do not specify an execution role, CloudFormation uses the <code>AWSCloudFormationStackSetExecutionRole</code> role for the stack set operation.</p>
388    /// <p>Specify an IAM role only if you are using customized execution roles to control which stack resources users and groups can include in their stack sets.</p>
389    pub fn set_execution_role_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
390        self.inner = self.inner.set_execution_role_name(input);
391        self
392    }
393    /// <p>The name of the IAM execution role to use to create the stack set. If you do not specify an execution role, CloudFormation uses the <code>AWSCloudFormationStackSetExecutionRole</code> role for the stack set operation.</p>
394    /// <p>Specify an IAM role only if you are using customized execution roles to control which stack resources users and groups can include in their stack sets.</p>
395    pub fn get_execution_role_name(&self) -> &::std::option::Option<::std::string::String> {
396        self.inner.get_execution_role_name()
397    }
398    /// <p>Describes how the IAM roles required for stack set operations are created. By default, <code>SELF-MANAGED</code> is specified.</p>
399    /// <ul>
400    /// <li>
401    /// <p>With <code>self-managed</code> permissions, you must create the administrator and execution roles required to deploy to target accounts. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs-self-managed.html">Grant self-managed permissions</a>.</p></li>
402    /// <li>
403    /// <p>With <code>service-managed</code> permissions, StackSets automatically creates the IAM roles required to deploy to accounts managed by Organizations. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-activate-trusted-access.html">Activate trusted access for stack sets with Organizations</a>.</p></li>
404    /// </ul>
405    pub fn permission_model(mut self, input: crate::types::PermissionModels) -> Self {
406        self.inner = self.inner.permission_model(input);
407        self
408    }
409    /// <p>Describes how the IAM roles required for stack set operations are created. By default, <code>SELF-MANAGED</code> is specified.</p>
410    /// <ul>
411    /// <li>
412    /// <p>With <code>self-managed</code> permissions, you must create the administrator and execution roles required to deploy to target accounts. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs-self-managed.html">Grant self-managed permissions</a>.</p></li>
413    /// <li>
414    /// <p>With <code>service-managed</code> permissions, StackSets automatically creates the IAM roles required to deploy to accounts managed by Organizations. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-activate-trusted-access.html">Activate trusted access for stack sets with Organizations</a>.</p></li>
415    /// </ul>
416    pub fn set_permission_model(mut self, input: ::std::option::Option<crate::types::PermissionModels>) -> Self {
417        self.inner = self.inner.set_permission_model(input);
418        self
419    }
420    /// <p>Describes how the IAM roles required for stack set operations are created. By default, <code>SELF-MANAGED</code> is specified.</p>
421    /// <ul>
422    /// <li>
423    /// <p>With <code>self-managed</code> permissions, you must create the administrator and execution roles required to deploy to target accounts. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs-self-managed.html">Grant self-managed permissions</a>.</p></li>
424    /// <li>
425    /// <p>With <code>service-managed</code> permissions, StackSets automatically creates the IAM roles required to deploy to accounts managed by Organizations. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-activate-trusted-access.html">Activate trusted access for stack sets with Organizations</a>.</p></li>
426    /// </ul>
427    pub fn get_permission_model(&self) -> &::std::option::Option<crate::types::PermissionModels> {
428        self.inner.get_permission_model()
429    }
430    /// <p>Describes whether StackSets automatically deploys to Organizations accounts that are added to the target organization or organizational unit (OU). Specify only if <code>PermissionModel</code> is <code>SERVICE_MANAGED</code>.</p>
431    pub fn auto_deployment(mut self, input: crate::types::AutoDeployment) -> Self {
432        self.inner = self.inner.auto_deployment(input);
433        self
434    }
435    /// <p>Describes whether StackSets automatically deploys to Organizations accounts that are added to the target organization or organizational unit (OU). Specify only if <code>PermissionModel</code> is <code>SERVICE_MANAGED</code>.</p>
436    pub fn set_auto_deployment(mut self, input: ::std::option::Option<crate::types::AutoDeployment>) -> Self {
437        self.inner = self.inner.set_auto_deployment(input);
438        self
439    }
440    /// <p>Describes whether StackSets automatically deploys to Organizations accounts that are added to the target organization or organizational unit (OU). Specify only if <code>PermissionModel</code> is <code>SERVICE_MANAGED</code>.</p>
441    pub fn get_auto_deployment(&self) -> &::std::option::Option<crate::types::AutoDeployment> {
442        self.inner.get_auto_deployment()
443    }
444    /// <p>\[Service-managed permissions\] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.</p>
445    /// <p>By default, <code>SELF</code> is specified. Use <code>SELF</code> for stack sets with self-managed permissions.</p>
446    /// <ul>
447    /// <li>
448    /// <p>To create a stack set with service-managed permissions while signed in to the management account, specify <code>SELF</code>.</p></li>
449    /// <li>
450    /// <p>To create a stack set with service-managed permissions while signed in to a delegated administrator account, specify <code>DELEGATED_ADMIN</code>.</p>
451    /// <p>Your Amazon Web Services account must be registered as a delegated admin in the management account. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html">Register a delegated administrator</a> in the <i>CloudFormation User Guide</i>.</p></li>
452    /// </ul>
453    /// <p>Stack sets with service-managed permissions are created in the management account, including stack sets that are created by delegated administrators.</p>
454    pub fn call_as(mut self, input: crate::types::CallAs) -> Self {
455        self.inner = self.inner.call_as(input);
456        self
457    }
458    /// <p>\[Service-managed permissions\] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.</p>
459    /// <p>By default, <code>SELF</code> is specified. Use <code>SELF</code> for stack sets with self-managed permissions.</p>
460    /// <ul>
461    /// <li>
462    /// <p>To create a stack set with service-managed permissions while signed in to the management account, specify <code>SELF</code>.</p></li>
463    /// <li>
464    /// <p>To create a stack set with service-managed permissions while signed in to a delegated administrator account, specify <code>DELEGATED_ADMIN</code>.</p>
465    /// <p>Your Amazon Web Services account must be registered as a delegated admin in the management account. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html">Register a delegated administrator</a> in the <i>CloudFormation User Guide</i>.</p></li>
466    /// </ul>
467    /// <p>Stack sets with service-managed permissions are created in the management account, including stack sets that are created by delegated administrators.</p>
468    pub fn set_call_as(mut self, input: ::std::option::Option<crate::types::CallAs>) -> Self {
469        self.inner = self.inner.set_call_as(input);
470        self
471    }
472    /// <p>\[Service-managed permissions\] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account.</p>
473    /// <p>By default, <code>SELF</code> is specified. Use <code>SELF</code> for stack sets with self-managed permissions.</p>
474    /// <ul>
475    /// <li>
476    /// <p>To create a stack set with service-managed permissions while signed in to the management account, specify <code>SELF</code>.</p></li>
477    /// <li>
478    /// <p>To create a stack set with service-managed permissions while signed in to a delegated administrator account, specify <code>DELEGATED_ADMIN</code>.</p>
479    /// <p>Your Amazon Web Services account must be registered as a delegated admin in the management account. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html">Register a delegated administrator</a> in the <i>CloudFormation User Guide</i>.</p></li>
480    /// </ul>
481    /// <p>Stack sets with service-managed permissions are created in the management account, including stack sets that are created by delegated administrators.</p>
482    pub fn get_call_as(&self) -> &::std::option::Option<crate::types::CallAs> {
483        self.inner.get_call_as()
484    }
485    /// <p>A unique identifier for this <code>CreateStackSet</code> request. Specify this token if you plan to retry requests so that CloudFormation knows that you're not attempting to create another stack set with the same name. You might retry <code>CreateStackSet</code> requests to ensure that CloudFormation successfully received them.</p>
486    /// <p>If you don't specify an operation ID, the SDK generates one automatically.</p>
487    pub fn client_request_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
488        self.inner = self.inner.client_request_token(input.into());
489        self
490    }
491    /// <p>A unique identifier for this <code>CreateStackSet</code> request. Specify this token if you plan to retry requests so that CloudFormation knows that you're not attempting to create another stack set with the same name. You might retry <code>CreateStackSet</code> requests to ensure that CloudFormation successfully received them.</p>
492    /// <p>If you don't specify an operation ID, the SDK generates one automatically.</p>
493    pub fn set_client_request_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
494        self.inner = self.inner.set_client_request_token(input);
495        self
496    }
497    /// <p>A unique identifier for this <code>CreateStackSet</code> request. Specify this token if you plan to retry requests so that CloudFormation knows that you're not attempting to create another stack set with the same name. You might retry <code>CreateStackSet</code> requests to ensure that CloudFormation successfully received them.</p>
498    /// <p>If you don't specify an operation ID, the SDK generates one automatically.</p>
499    pub fn get_client_request_token(&self) -> &::std::option::Option<::std::string::String> {
500        self.inner.get_client_request_token()
501    }
502    /// <p>Describes whether StackSets performs non-conflicting operations concurrently and queues conflicting operations.</p>
503    pub fn managed_execution(mut self, input: crate::types::ManagedExecution) -> Self {
504        self.inner = self.inner.managed_execution(input);
505        self
506    }
507    /// <p>Describes whether StackSets performs non-conflicting operations concurrently and queues conflicting operations.</p>
508    pub fn set_managed_execution(mut self, input: ::std::option::Option<crate::types::ManagedExecution>) -> Self {
509        self.inner = self.inner.set_managed_execution(input);
510        self
511    }
512    /// <p>Describes whether StackSets performs non-conflicting operations concurrently and queues conflicting operations.</p>
513    pub fn get_managed_execution(&self) -> &::std::option::Option<crate::types::ManagedExecution> {
514        self.inner.get_managed_execution()
515    }
516}