aws_sdk_eks/operation/create_capability/
_create_capability_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 CreateCapabilityInput {
6    /// <p>A unique name for the capability. The name must be unique within your cluster and can contain alphanumeric characters, hyphens, and underscores.</p>
7    pub capability_name: ::std::option::Option<::std::string::String>,
8    /// <p>The name of the Amazon EKS cluster where you want to create the capability.</p>
9    pub cluster_name: ::std::option::Option<::std::string::String>,
10    /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This token is valid for 24 hours after creation. If you retry a request with the same client request token and the same parameters after the original request has completed successfully, the result of the original request is returned.</p>
11    pub client_request_token: ::std::option::Option<::std::string::String>,
12    /// <p>The type of capability to create. Valid values are:</p>
13    /// <ul>
14    /// <li>
15    /// <p><code>ACK</code> – Amazon Web Services Controllers for Kubernetes (ACK), which lets you manage resources directly from Kubernetes.</p></li>
16    /// <li>
17    /// <p><code>ARGOCD</code> – Argo CD for GitOps-based continuous delivery.</p></li>
18    /// <li>
19    /// <p><code>KRO</code> – Kube Resource Orchestrator (KRO) for composing and managing custom Kubernetes resources.</p></li>
20    /// </ul>
21    pub r#type: ::std::option::Option<crate::types::CapabilityType>,
22    /// <p>The Amazon Resource Name (ARN) of the IAM role that the capability uses to interact with Amazon Web Services services. This role must have a trust policy that allows the EKS service principal to assume it, and it must have the necessary permissions for the capability type you're creating.</p>
23    /// <p>For ACK capabilities, the role needs permissions to manage the resources you want to control through Kubernetes. For Argo CD capabilities, the role needs permissions to access Git repositories and Secrets Manager. For KRO capabilities, the role needs permissions based on the resources you'll be orchestrating.</p>
24    pub role_arn: ::std::option::Option<::std::string::String>,
25    /// <p>The configuration settings for the capability. The structure of this object varies depending on the capability type. For Argo CD capabilities, you can configure IAM Identity CenterIAM; Identity Center integration, RBAC role mappings, and network access settings.</p>
26    pub configuration: ::std::option::Option<crate::types::CapabilityConfigurationRequest>,
27    /// <p>The metadata that you apply to a resource to help you categorize and organize them. Each tag consists of a key and an optional value. You define them.</p>
28    /// <p>The following basic restrictions apply to tags:</p>
29    /// <ul>
30    /// <li>
31    /// <p>Maximum number of tags per resource – 50</p></li>
32    /// <li>
33    /// <p>For each resource, each tag key must be unique, and each tag key can have only one value.</p></li>
34    /// <li>
35    /// <p>Maximum key length – 128 Unicode characters in UTF-8</p></li>
36    /// <li>
37    /// <p>Maximum value length – 256 Unicode characters in UTF-8</p></li>
38    /// <li>
39    /// <p>If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.</p></li>
40    /// <li>
41    /// <p>Tag keys and values are case-sensitive.</p></li>
42    /// <li>
43    /// <p>Do not use <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.</p></li>
44    /// </ul>
45    pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
46    /// <p>Specifies how Kubernetes resources managed by the capability should be handled when the capability is deleted. Currently, the only supported value is <code>RETAIN</code> which retains all Kubernetes resources managed by the capability when the capability is deleted.</p>
47    /// <p>Because resources are retained, all Kubernetes resources created by the capability should be deleted from the cluster before deleting the capability itself. After the capability is deleted, these resources become difficult to manage because the controller is no longer available.</p>
48    pub delete_propagation_policy: ::std::option::Option<crate::types::CapabilityDeletePropagationPolicy>,
49}
50impl CreateCapabilityInput {
51    /// <p>A unique name for the capability. The name must be unique within your cluster and can contain alphanumeric characters, hyphens, and underscores.</p>
52    pub fn capability_name(&self) -> ::std::option::Option<&str> {
53        self.capability_name.as_deref()
54    }
55    /// <p>The name of the Amazon EKS cluster where you want to create the capability.</p>
56    pub fn cluster_name(&self) -> ::std::option::Option<&str> {
57        self.cluster_name.as_deref()
58    }
59    /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This token is valid for 24 hours after creation. If you retry a request with the same client request token and the same parameters after the original request has completed successfully, the result of the original request is returned.</p>
60    pub fn client_request_token(&self) -> ::std::option::Option<&str> {
61        self.client_request_token.as_deref()
62    }
63    /// <p>The type of capability to create. Valid values are:</p>
64    /// <ul>
65    /// <li>
66    /// <p><code>ACK</code> – Amazon Web Services Controllers for Kubernetes (ACK), which lets you manage resources directly from Kubernetes.</p></li>
67    /// <li>
68    /// <p><code>ARGOCD</code> – Argo CD for GitOps-based continuous delivery.</p></li>
69    /// <li>
70    /// <p><code>KRO</code> – Kube Resource Orchestrator (KRO) for composing and managing custom Kubernetes resources.</p></li>
71    /// </ul>
72    pub fn r#type(&self) -> ::std::option::Option<&crate::types::CapabilityType> {
73        self.r#type.as_ref()
74    }
75    /// <p>The Amazon Resource Name (ARN) of the IAM role that the capability uses to interact with Amazon Web Services services. This role must have a trust policy that allows the EKS service principal to assume it, and it must have the necessary permissions for the capability type you're creating.</p>
76    /// <p>For ACK capabilities, the role needs permissions to manage the resources you want to control through Kubernetes. For Argo CD capabilities, the role needs permissions to access Git repositories and Secrets Manager. For KRO capabilities, the role needs permissions based on the resources you'll be orchestrating.</p>
77    pub fn role_arn(&self) -> ::std::option::Option<&str> {
78        self.role_arn.as_deref()
79    }
80    /// <p>The configuration settings for the capability. The structure of this object varies depending on the capability type. For Argo CD capabilities, you can configure IAM Identity CenterIAM; Identity Center integration, RBAC role mappings, and network access settings.</p>
81    pub fn configuration(&self) -> ::std::option::Option<&crate::types::CapabilityConfigurationRequest> {
82        self.configuration.as_ref()
83    }
84    /// <p>The metadata that you apply to a resource to help you categorize and organize them. Each tag consists of a key and an optional value. You define them.</p>
85    /// <p>The following basic restrictions apply to tags:</p>
86    /// <ul>
87    /// <li>
88    /// <p>Maximum number of tags per resource – 50</p></li>
89    /// <li>
90    /// <p>For each resource, each tag key must be unique, and each tag key can have only one value.</p></li>
91    /// <li>
92    /// <p>Maximum key length – 128 Unicode characters in UTF-8</p></li>
93    /// <li>
94    /// <p>Maximum value length – 256 Unicode characters in UTF-8</p></li>
95    /// <li>
96    /// <p>If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.</p></li>
97    /// <li>
98    /// <p>Tag keys and values are case-sensitive.</p></li>
99    /// <li>
100    /// <p>Do not use <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.</p></li>
101    /// </ul>
102    pub fn tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
103        self.tags.as_ref()
104    }
105    /// <p>Specifies how Kubernetes resources managed by the capability should be handled when the capability is deleted. Currently, the only supported value is <code>RETAIN</code> which retains all Kubernetes resources managed by the capability when the capability is deleted.</p>
106    /// <p>Because resources are retained, all Kubernetes resources created by the capability should be deleted from the cluster before deleting the capability itself. After the capability is deleted, these resources become difficult to manage because the controller is no longer available.</p>
107    pub fn delete_propagation_policy(&self) -> ::std::option::Option<&crate::types::CapabilityDeletePropagationPolicy> {
108        self.delete_propagation_policy.as_ref()
109    }
110}
111impl CreateCapabilityInput {
112    /// Creates a new builder-style object to manufacture [`CreateCapabilityInput`](crate::operation::create_capability::CreateCapabilityInput).
113    pub fn builder() -> crate::operation::create_capability::builders::CreateCapabilityInputBuilder {
114        crate::operation::create_capability::builders::CreateCapabilityInputBuilder::default()
115    }
116}
117
118/// A builder for [`CreateCapabilityInput`](crate::operation::create_capability::CreateCapabilityInput).
119#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
120#[non_exhaustive]
121pub struct CreateCapabilityInputBuilder {
122    pub(crate) capability_name: ::std::option::Option<::std::string::String>,
123    pub(crate) cluster_name: ::std::option::Option<::std::string::String>,
124    pub(crate) client_request_token: ::std::option::Option<::std::string::String>,
125    pub(crate) r#type: ::std::option::Option<crate::types::CapabilityType>,
126    pub(crate) role_arn: ::std::option::Option<::std::string::String>,
127    pub(crate) configuration: ::std::option::Option<crate::types::CapabilityConfigurationRequest>,
128    pub(crate) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
129    pub(crate) delete_propagation_policy: ::std::option::Option<crate::types::CapabilityDeletePropagationPolicy>,
130}
131impl CreateCapabilityInputBuilder {
132    /// <p>A unique name for the capability. The name must be unique within your cluster and can contain alphanumeric characters, hyphens, and underscores.</p>
133    /// This field is required.
134    pub fn capability_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
135        self.capability_name = ::std::option::Option::Some(input.into());
136        self
137    }
138    /// <p>A unique name for the capability. The name must be unique within your cluster and can contain alphanumeric characters, hyphens, and underscores.</p>
139    pub fn set_capability_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
140        self.capability_name = input;
141        self
142    }
143    /// <p>A unique name for the capability. The name must be unique within your cluster and can contain alphanumeric characters, hyphens, and underscores.</p>
144    pub fn get_capability_name(&self) -> &::std::option::Option<::std::string::String> {
145        &self.capability_name
146    }
147    /// <p>The name of the Amazon EKS cluster where you want to create the capability.</p>
148    /// This field is required.
149    pub fn cluster_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
150        self.cluster_name = ::std::option::Option::Some(input.into());
151        self
152    }
153    /// <p>The name of the Amazon EKS cluster where you want to create the capability.</p>
154    pub fn set_cluster_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
155        self.cluster_name = input;
156        self
157    }
158    /// <p>The name of the Amazon EKS cluster where you want to create the capability.</p>
159    pub fn get_cluster_name(&self) -> &::std::option::Option<::std::string::String> {
160        &self.cluster_name
161    }
162    /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This token is valid for 24 hours after creation. If you retry a request with the same client request token and the same parameters after the original request has completed successfully, the result of the original request is returned.</p>
163    pub fn client_request_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
164        self.client_request_token = ::std::option::Option::Some(input.into());
165        self
166    }
167    /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This token is valid for 24 hours after creation. If you retry a request with the same client request token and the same parameters after the original request has completed successfully, the result of the original request is returned.</p>
168    pub fn set_client_request_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
169        self.client_request_token = input;
170        self
171    }
172    /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This token is valid for 24 hours after creation. If you retry a request with the same client request token and the same parameters after the original request has completed successfully, the result of the original request is returned.</p>
173    pub fn get_client_request_token(&self) -> &::std::option::Option<::std::string::String> {
174        &self.client_request_token
175    }
176    /// <p>The type of capability to create. Valid values are:</p>
177    /// <ul>
178    /// <li>
179    /// <p><code>ACK</code> – Amazon Web Services Controllers for Kubernetes (ACK), which lets you manage resources directly from Kubernetes.</p></li>
180    /// <li>
181    /// <p><code>ARGOCD</code> – Argo CD for GitOps-based continuous delivery.</p></li>
182    /// <li>
183    /// <p><code>KRO</code> – Kube Resource Orchestrator (KRO) for composing and managing custom Kubernetes resources.</p></li>
184    /// </ul>
185    /// This field is required.
186    pub fn r#type(mut self, input: crate::types::CapabilityType) -> Self {
187        self.r#type = ::std::option::Option::Some(input);
188        self
189    }
190    /// <p>The type of capability to create. Valid values are:</p>
191    /// <ul>
192    /// <li>
193    /// <p><code>ACK</code> – Amazon Web Services Controllers for Kubernetes (ACK), which lets you manage resources directly from Kubernetes.</p></li>
194    /// <li>
195    /// <p><code>ARGOCD</code> – Argo CD for GitOps-based continuous delivery.</p></li>
196    /// <li>
197    /// <p><code>KRO</code> – Kube Resource Orchestrator (KRO) for composing and managing custom Kubernetes resources.</p></li>
198    /// </ul>
199    pub fn set_type(mut self, input: ::std::option::Option<crate::types::CapabilityType>) -> Self {
200        self.r#type = input;
201        self
202    }
203    /// <p>The type of capability to create. Valid values are:</p>
204    /// <ul>
205    /// <li>
206    /// <p><code>ACK</code> – Amazon Web Services Controllers for Kubernetes (ACK), which lets you manage resources directly from Kubernetes.</p></li>
207    /// <li>
208    /// <p><code>ARGOCD</code> – Argo CD for GitOps-based continuous delivery.</p></li>
209    /// <li>
210    /// <p><code>KRO</code> – Kube Resource Orchestrator (KRO) for composing and managing custom Kubernetes resources.</p></li>
211    /// </ul>
212    pub fn get_type(&self) -> &::std::option::Option<crate::types::CapabilityType> {
213        &self.r#type
214    }
215    /// <p>The Amazon Resource Name (ARN) of the IAM role that the capability uses to interact with Amazon Web Services services. This role must have a trust policy that allows the EKS service principal to assume it, and it must have the necessary permissions for the capability type you're creating.</p>
216    /// <p>For ACK capabilities, the role needs permissions to manage the resources you want to control through Kubernetes. For Argo CD capabilities, the role needs permissions to access Git repositories and Secrets Manager. For KRO capabilities, the role needs permissions based on the resources you'll be orchestrating.</p>
217    /// This field is required.
218    pub fn role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
219        self.role_arn = ::std::option::Option::Some(input.into());
220        self
221    }
222    /// <p>The Amazon Resource Name (ARN) of the IAM role that the capability uses to interact with Amazon Web Services services. This role must have a trust policy that allows the EKS service principal to assume it, and it must have the necessary permissions for the capability type you're creating.</p>
223    /// <p>For ACK capabilities, the role needs permissions to manage the resources you want to control through Kubernetes. For Argo CD capabilities, the role needs permissions to access Git repositories and Secrets Manager. For KRO capabilities, the role needs permissions based on the resources you'll be orchestrating.</p>
224    pub fn set_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
225        self.role_arn = input;
226        self
227    }
228    /// <p>The Amazon Resource Name (ARN) of the IAM role that the capability uses to interact with Amazon Web Services services. This role must have a trust policy that allows the EKS service principal to assume it, and it must have the necessary permissions for the capability type you're creating.</p>
229    /// <p>For ACK capabilities, the role needs permissions to manage the resources you want to control through Kubernetes. For Argo CD capabilities, the role needs permissions to access Git repositories and Secrets Manager. For KRO capabilities, the role needs permissions based on the resources you'll be orchestrating.</p>
230    pub fn get_role_arn(&self) -> &::std::option::Option<::std::string::String> {
231        &self.role_arn
232    }
233    /// <p>The configuration settings for the capability. The structure of this object varies depending on the capability type. For Argo CD capabilities, you can configure IAM Identity CenterIAM; Identity Center integration, RBAC role mappings, and network access settings.</p>
234    pub fn configuration(mut self, input: crate::types::CapabilityConfigurationRequest) -> Self {
235        self.configuration = ::std::option::Option::Some(input);
236        self
237    }
238    /// <p>The configuration settings for the capability. The structure of this object varies depending on the capability type. For Argo CD capabilities, you can configure IAM Identity CenterIAM; Identity Center integration, RBAC role mappings, and network access settings.</p>
239    pub fn set_configuration(mut self, input: ::std::option::Option<crate::types::CapabilityConfigurationRequest>) -> Self {
240        self.configuration = input;
241        self
242    }
243    /// <p>The configuration settings for the capability. The structure of this object varies depending on the capability type. For Argo CD capabilities, you can configure IAM Identity CenterIAM; Identity Center integration, RBAC role mappings, and network access settings.</p>
244    pub fn get_configuration(&self) -> &::std::option::Option<crate::types::CapabilityConfigurationRequest> {
245        &self.configuration
246    }
247    /// Adds a key-value pair to `tags`.
248    ///
249    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
250    ///
251    /// <p>The metadata that you apply to a resource to help you categorize and organize them. Each tag consists of a key and an optional value. You define them.</p>
252    /// <p>The following basic restrictions apply to tags:</p>
253    /// <ul>
254    /// <li>
255    /// <p>Maximum number of tags per resource – 50</p></li>
256    /// <li>
257    /// <p>For each resource, each tag key must be unique, and each tag key can have only one value.</p></li>
258    /// <li>
259    /// <p>Maximum key length – 128 Unicode characters in UTF-8</p></li>
260    /// <li>
261    /// <p>Maximum value length – 256 Unicode characters in UTF-8</p></li>
262    /// <li>
263    /// <p>If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.</p></li>
264    /// <li>
265    /// <p>Tag keys and values are case-sensitive.</p></li>
266    /// <li>
267    /// <p>Do not use <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.</p></li>
268    /// </ul>
269    pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
270        let mut hash_map = self.tags.unwrap_or_default();
271        hash_map.insert(k.into(), v.into());
272        self.tags = ::std::option::Option::Some(hash_map);
273        self
274    }
275    /// <p>The metadata that you apply to a resource to help you categorize and organize them. Each tag consists of a key and an optional value. You define them.</p>
276    /// <p>The following basic restrictions apply to tags:</p>
277    /// <ul>
278    /// <li>
279    /// <p>Maximum number of tags per resource – 50</p></li>
280    /// <li>
281    /// <p>For each resource, each tag key must be unique, and each tag key can have only one value.</p></li>
282    /// <li>
283    /// <p>Maximum key length – 128 Unicode characters in UTF-8</p></li>
284    /// <li>
285    /// <p>Maximum value length – 256 Unicode characters in UTF-8</p></li>
286    /// <li>
287    /// <p>If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.</p></li>
288    /// <li>
289    /// <p>Tag keys and values are case-sensitive.</p></li>
290    /// <li>
291    /// <p>Do not use <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.</p></li>
292    /// </ul>
293    pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
294        self.tags = input;
295        self
296    }
297    /// <p>The metadata that you apply to a resource to help you categorize and organize them. Each tag consists of a key and an optional value. You define them.</p>
298    /// <p>The following basic restrictions apply to tags:</p>
299    /// <ul>
300    /// <li>
301    /// <p>Maximum number of tags per resource – 50</p></li>
302    /// <li>
303    /// <p>For each resource, each tag key must be unique, and each tag key can have only one value.</p></li>
304    /// <li>
305    /// <p>Maximum key length – 128 Unicode characters in UTF-8</p></li>
306    /// <li>
307    /// <p>Maximum value length – 256 Unicode characters in UTF-8</p></li>
308    /// <li>
309    /// <p>If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.</p></li>
310    /// <li>
311    /// <p>Tag keys and values are case-sensitive.</p></li>
312    /// <li>
313    /// <p>Do not use <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.</p></li>
314    /// </ul>
315    pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
316        &self.tags
317    }
318    /// <p>Specifies how Kubernetes resources managed by the capability should be handled when the capability is deleted. Currently, the only supported value is <code>RETAIN</code> which retains all Kubernetes resources managed by the capability when the capability is deleted.</p>
319    /// <p>Because resources are retained, all Kubernetes resources created by the capability should be deleted from the cluster before deleting the capability itself. After the capability is deleted, these resources become difficult to manage because the controller is no longer available.</p>
320    /// This field is required.
321    pub fn delete_propagation_policy(mut self, input: crate::types::CapabilityDeletePropagationPolicy) -> Self {
322        self.delete_propagation_policy = ::std::option::Option::Some(input);
323        self
324    }
325    /// <p>Specifies how Kubernetes resources managed by the capability should be handled when the capability is deleted. Currently, the only supported value is <code>RETAIN</code> which retains all Kubernetes resources managed by the capability when the capability is deleted.</p>
326    /// <p>Because resources are retained, all Kubernetes resources created by the capability should be deleted from the cluster before deleting the capability itself. After the capability is deleted, these resources become difficult to manage because the controller is no longer available.</p>
327    pub fn set_delete_propagation_policy(mut self, input: ::std::option::Option<crate::types::CapabilityDeletePropagationPolicy>) -> Self {
328        self.delete_propagation_policy = input;
329        self
330    }
331    /// <p>Specifies how Kubernetes resources managed by the capability should be handled when the capability is deleted. Currently, the only supported value is <code>RETAIN</code> which retains all Kubernetes resources managed by the capability when the capability is deleted.</p>
332    /// <p>Because resources are retained, all Kubernetes resources created by the capability should be deleted from the cluster before deleting the capability itself. After the capability is deleted, these resources become difficult to manage because the controller is no longer available.</p>
333    pub fn get_delete_propagation_policy(&self) -> &::std::option::Option<crate::types::CapabilityDeletePropagationPolicy> {
334        &self.delete_propagation_policy
335    }
336    /// Consumes the builder and constructs a [`CreateCapabilityInput`](crate::operation::create_capability::CreateCapabilityInput).
337    pub fn build(
338        self,
339    ) -> ::std::result::Result<crate::operation::create_capability::CreateCapabilityInput, ::aws_smithy_types::error::operation::BuildError> {
340        ::std::result::Result::Ok(crate::operation::create_capability::CreateCapabilityInput {
341            capability_name: self.capability_name,
342            cluster_name: self.cluster_name,
343            client_request_token: self.client_request_token,
344            r#type: self.r#type,
345            role_arn: self.role_arn,
346            configuration: self.configuration,
347            tags: self.tags,
348            delete_propagation_policy: self.delete_propagation_policy,
349        })
350    }
351}