aws_sdk_cloudformation/operation/delete_stack_set/_delete_stack_set_input.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct DeleteStackSetInput {
6 /// <p>The name or unique ID of the StackSet that you're deleting. You can obtain this value by running <code>ListStackSets</code>.</p>
7 pub stack_set_name: ::std::option::Option<::std::string::String>,
8 /// <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>
9 /// <p>By default, <code>SELF</code> is specified. Use <code>SELF</code> for StackSets with self-managed permissions.</p>
10 /// <ul>
11 /// <li>
12 /// <p>If you are signed in to the management account, specify <code>SELF</code>.</p></li>
13 /// <li>
14 /// <p>If you are signed in to a delegated administrator account, specify <code>DELEGATED_ADMIN</code>.</p>
15 /// <p>Your Amazon Web Services account must be registered as a delegated administrator 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>
16 /// </ul>
17 pub call_as: ::std::option::Option<crate::types::CallAs>,
18}
19impl DeleteStackSetInput {
20 /// <p>The name or unique ID of the StackSet that you're deleting. You can obtain this value by running <code>ListStackSets</code>.</p>
21 pub fn stack_set_name(&self) -> ::std::option::Option<&str> {
22 self.stack_set_name.as_deref()
23 }
24 /// <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>
25 /// <p>By default, <code>SELF</code> is specified. Use <code>SELF</code> for StackSets with self-managed permissions.</p>
26 /// <ul>
27 /// <li>
28 /// <p>If you are signed in to the management account, specify <code>SELF</code>.</p></li>
29 /// <li>
30 /// <p>If you are signed in to a delegated administrator account, specify <code>DELEGATED_ADMIN</code>.</p>
31 /// <p>Your Amazon Web Services account must be registered as a delegated administrator 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>
32 /// </ul>
33 pub fn call_as(&self) -> ::std::option::Option<&crate::types::CallAs> {
34 self.call_as.as_ref()
35 }
36}
37impl DeleteStackSetInput {
38 /// Creates a new builder-style object to manufacture [`DeleteStackSetInput`](crate::operation::delete_stack_set::DeleteStackSetInput).
39 pub fn builder() -> crate::operation::delete_stack_set::builders::DeleteStackSetInputBuilder {
40 crate::operation::delete_stack_set::builders::DeleteStackSetInputBuilder::default()
41 }
42}
43
44/// A builder for [`DeleteStackSetInput`](crate::operation::delete_stack_set::DeleteStackSetInput).
45#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
46#[non_exhaustive]
47pub struct DeleteStackSetInputBuilder {
48 pub(crate) stack_set_name: ::std::option::Option<::std::string::String>,
49 pub(crate) call_as: ::std::option::Option<crate::types::CallAs>,
50}
51impl DeleteStackSetInputBuilder {
52 /// <p>The name or unique ID of the StackSet that you're deleting. You can obtain this value by running <code>ListStackSets</code>.</p>
53 /// This field is required.
54 pub fn stack_set_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
55 self.stack_set_name = ::std::option::Option::Some(input.into());
56 self
57 }
58 /// <p>The name or unique ID of the StackSet that you're deleting. You can obtain this value by running <code>ListStackSets</code>.</p>
59 pub fn set_stack_set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
60 self.stack_set_name = input;
61 self
62 }
63 /// <p>The name or unique ID of the StackSet that you're deleting. You can obtain this value by running <code>ListStackSets</code>.</p>
64 pub fn get_stack_set_name(&self) -> &::std::option::Option<::std::string::String> {
65 &self.stack_set_name
66 }
67 /// <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>
68 /// <p>By default, <code>SELF</code> is specified. Use <code>SELF</code> for StackSets with self-managed permissions.</p>
69 /// <ul>
70 /// <li>
71 /// <p>If you are signed in to the management account, specify <code>SELF</code>.</p></li>
72 /// <li>
73 /// <p>If you are signed in to a delegated administrator account, specify <code>DELEGATED_ADMIN</code>.</p>
74 /// <p>Your Amazon Web Services account must be registered as a delegated administrator 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>
75 /// </ul>
76 pub fn call_as(mut self, input: crate::types::CallAs) -> Self {
77 self.call_as = ::std::option::Option::Some(input);
78 self
79 }
80 /// <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>
81 /// <p>By default, <code>SELF</code> is specified. Use <code>SELF</code> for StackSets with self-managed permissions.</p>
82 /// <ul>
83 /// <li>
84 /// <p>If you are signed in to the management account, specify <code>SELF</code>.</p></li>
85 /// <li>
86 /// <p>If you are signed in to a delegated administrator account, specify <code>DELEGATED_ADMIN</code>.</p>
87 /// <p>Your Amazon Web Services account must be registered as a delegated administrator 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>
88 /// </ul>
89 pub fn set_call_as(mut self, input: ::std::option::Option<crate::types::CallAs>) -> Self {
90 self.call_as = input;
91 self
92 }
93 /// <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>
94 /// <p>By default, <code>SELF</code> is specified. Use <code>SELF</code> for StackSets with self-managed permissions.</p>
95 /// <ul>
96 /// <li>
97 /// <p>If you are signed in to the management account, specify <code>SELF</code>.</p></li>
98 /// <li>
99 /// <p>If you are signed in to a delegated administrator account, specify <code>DELEGATED_ADMIN</code>.</p>
100 /// <p>Your Amazon Web Services account must be registered as a delegated administrator 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>
101 /// </ul>
102 pub fn get_call_as(&self) -> &::std::option::Option<crate::types::CallAs> {
103 &self.call_as
104 }
105 /// Consumes the builder and constructs a [`DeleteStackSetInput`](crate::operation::delete_stack_set::DeleteStackSetInput).
106 pub fn build(
107 self,
108 ) -> ::std::result::Result<crate::operation::delete_stack_set::DeleteStackSetInput, ::aws_smithy_types::error::operation::BuildError> {
109 ::std::result::Result::Ok(crate::operation::delete_stack_set::DeleteStackSetInput {
110 stack_set_name: self.stack_set_name,
111 call_as: self.call_as,
112 })
113 }
114}