aws_sdk_eks/operation/create_addon/_create_addon_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 CreateAddonInput {
6 /// <p>The name of your cluster.</p>
7 pub cluster_name: ::std::option::Option<::std::string::String>,
8 /// <p>The name of the add-on. The name must match one of the names returned by <code>DescribeAddonVersions</code>.</p>
9 pub addon_name: ::std::option::Option<::std::string::String>,
10 /// <p>The version of the add-on. The version must match one of the versions returned by <a href="https://docs.aws.amazon.com/eks/latest/APIReference/API_DescribeAddonVersions.html"> <code>DescribeAddonVersions</code> </a>.</p>
11 pub addon_version: ::std::option::Option<::std::string::String>,
12 /// <p>The Amazon Resource Name (ARN) of an existing IAM role to bind to the add-on's service account. The role must be assigned the IAM permissions required by the add-on. If you don't specify an existing IAM role, then the add-on uses the permissions assigned to the node IAM role. For more information, see <a href="https://docs.aws.amazon.com/eks/latest/userguide/create-node-role.html">Amazon EKS node IAM role</a> in the <i>Amazon EKS User Guide</i>.</p><note>
13 /// <p>To specify an existing IAM role, you must have an IAM OpenID Connect (OIDC) provider created for your cluster. For more information, see <a href="https://docs.aws.amazon.com/eks/latest/userguide/enable-iam-roles-for-service-accounts.html">Enabling IAM roles for service accounts on your cluster</a> in the <i>Amazon EKS User Guide</i>.</p>
14 /// </note>
15 pub service_account_role_arn: ::std::option::Option<::std::string::String>,
16 /// <p>How to resolve field value conflicts for an Amazon EKS add-on. Conflicts are handled based on the value you choose:</p>
17 /// <ul>
18 /// <li>
19 /// <p><b>None</b> – If the self-managed version of the add-on is installed on your cluster, Amazon EKS doesn't change the value. Creation of the add-on might fail.</p></li>
20 /// <li>
21 /// <p><b>Overwrite</b> – If the self-managed version of the add-on is installed on your cluster and the Amazon EKS default value is different than the existing value, Amazon EKS changes the value to the Amazon EKS default value.</p></li>
22 /// <li>
23 /// <p><b>Preserve</b> – This is similar to the NONE option. If the self-managed version of the add-on is installed on your cluster Amazon EKS doesn't change the add-on resource properties. Creation of the add-on might fail if conflicts are detected. This option works differently during the update operation. For more information, see <a href="https://docs.aws.amazon.com/eks/latest/APIReference/API_UpdateAddon.html"> <code>UpdateAddon</code> </a>.</p></li>
24 /// </ul>
25 /// <p>If you don't currently have the self-managed version of the add-on installed on your cluster, the Amazon EKS add-on is installed. Amazon EKS sets all values to default values, regardless of the option that you specify.</p>
26 pub resolve_conflicts: ::std::option::Option<crate::types::ResolveConflicts>,
27 /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.</p>
28 pub client_request_token: ::std::option::Option<::std::string::String>,
29 /// <p>Metadata that assists with categorization and organization. Each tag consists of a key and an optional value. You define both. Tags don't propagate to any other cluster or Amazon Web Services resources.</p>
30 pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
31 /// <p>The set of configuration values for the add-on that's created. The values that you provide are validated against the schema returned by <code>DescribeAddonConfiguration</code>.</p>
32 pub configuration_values: ::std::option::Option<::std::string::String>,
33 /// <p>An array of Pod Identity Assocations to be created. Each EKS Pod Identity association maps a Kubernetes service account to an IAM Role.</p>
34 /// <p>For more information, see <a href="https://docs.aws.amazon.com/eks/latest/userguide/add-ons-iam.html">Attach an IAM Role to an Amazon EKS add-on using Pod Identity</a> in the <i>Amazon EKS User Guide</i>.</p>
35 pub pod_identity_associations: ::std::option::Option<::std::vec::Vec<crate::types::AddonPodIdentityAssociations>>,
36}
37impl CreateAddonInput {
38 /// <p>The name of your cluster.</p>
39 pub fn cluster_name(&self) -> ::std::option::Option<&str> {
40 self.cluster_name.as_deref()
41 }
42 /// <p>The name of the add-on. The name must match one of the names returned by <code>DescribeAddonVersions</code>.</p>
43 pub fn addon_name(&self) -> ::std::option::Option<&str> {
44 self.addon_name.as_deref()
45 }
46 /// <p>The version of the add-on. The version must match one of the versions returned by <a href="https://docs.aws.amazon.com/eks/latest/APIReference/API_DescribeAddonVersions.html"> <code>DescribeAddonVersions</code> </a>.</p>
47 pub fn addon_version(&self) -> ::std::option::Option<&str> {
48 self.addon_version.as_deref()
49 }
50 /// <p>The Amazon Resource Name (ARN) of an existing IAM role to bind to the add-on's service account. The role must be assigned the IAM permissions required by the add-on. If you don't specify an existing IAM role, then the add-on uses the permissions assigned to the node IAM role. For more information, see <a href="https://docs.aws.amazon.com/eks/latest/userguide/create-node-role.html">Amazon EKS node IAM role</a> in the <i>Amazon EKS User Guide</i>.</p><note>
51 /// <p>To specify an existing IAM role, you must have an IAM OpenID Connect (OIDC) provider created for your cluster. For more information, see <a href="https://docs.aws.amazon.com/eks/latest/userguide/enable-iam-roles-for-service-accounts.html">Enabling IAM roles for service accounts on your cluster</a> in the <i>Amazon EKS User Guide</i>.</p>
52 /// </note>
53 pub fn service_account_role_arn(&self) -> ::std::option::Option<&str> {
54 self.service_account_role_arn.as_deref()
55 }
56 /// <p>How to resolve field value conflicts for an Amazon EKS add-on. Conflicts are handled based on the value you choose:</p>
57 /// <ul>
58 /// <li>
59 /// <p><b>None</b> – If the self-managed version of the add-on is installed on your cluster, Amazon EKS doesn't change the value. Creation of the add-on might fail.</p></li>
60 /// <li>
61 /// <p><b>Overwrite</b> – If the self-managed version of the add-on is installed on your cluster and the Amazon EKS default value is different than the existing value, Amazon EKS changes the value to the Amazon EKS default value.</p></li>
62 /// <li>
63 /// <p><b>Preserve</b> – This is similar to the NONE option. If the self-managed version of the add-on is installed on your cluster Amazon EKS doesn't change the add-on resource properties. Creation of the add-on might fail if conflicts are detected. This option works differently during the update operation. For more information, see <a href="https://docs.aws.amazon.com/eks/latest/APIReference/API_UpdateAddon.html"> <code>UpdateAddon</code> </a>.</p></li>
64 /// </ul>
65 /// <p>If you don't currently have the self-managed version of the add-on installed on your cluster, the Amazon EKS add-on is installed. Amazon EKS sets all values to default values, regardless of the option that you specify.</p>
66 pub fn resolve_conflicts(&self) -> ::std::option::Option<&crate::types::ResolveConflicts> {
67 self.resolve_conflicts.as_ref()
68 }
69 /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.</p>
70 pub fn client_request_token(&self) -> ::std::option::Option<&str> {
71 self.client_request_token.as_deref()
72 }
73 /// <p>Metadata that assists with categorization and organization. Each tag consists of a key and an optional value. You define both. Tags don't propagate to any other cluster or Amazon Web Services resources.</p>
74 pub fn tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
75 self.tags.as_ref()
76 }
77 /// <p>The set of configuration values for the add-on that's created. The values that you provide are validated against the schema returned by <code>DescribeAddonConfiguration</code>.</p>
78 pub fn configuration_values(&self) -> ::std::option::Option<&str> {
79 self.configuration_values.as_deref()
80 }
81 /// <p>An array of Pod Identity Assocations to be created. Each EKS Pod Identity association maps a Kubernetes service account to an IAM Role.</p>
82 /// <p>For more information, see <a href="https://docs.aws.amazon.com/eks/latest/userguide/add-ons-iam.html">Attach an IAM Role to an Amazon EKS add-on using Pod Identity</a> in the <i>Amazon EKS User Guide</i>.</p>
83 ///
84 /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.pod_identity_associations.is_none()`.
85 pub fn pod_identity_associations(&self) -> &[crate::types::AddonPodIdentityAssociations] {
86 self.pod_identity_associations.as_deref().unwrap_or_default()
87 }
88}
89impl CreateAddonInput {
90 /// Creates a new builder-style object to manufacture [`CreateAddonInput`](crate::operation::create_addon::CreateAddonInput).
91 pub fn builder() -> crate::operation::create_addon::builders::CreateAddonInputBuilder {
92 crate::operation::create_addon::builders::CreateAddonInputBuilder::default()
93 }
94}
95
96/// A builder for [`CreateAddonInput`](crate::operation::create_addon::CreateAddonInput).
97#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
98#[non_exhaustive]
99pub struct CreateAddonInputBuilder {
100 pub(crate) cluster_name: ::std::option::Option<::std::string::String>,
101 pub(crate) addon_name: ::std::option::Option<::std::string::String>,
102 pub(crate) addon_version: ::std::option::Option<::std::string::String>,
103 pub(crate) service_account_role_arn: ::std::option::Option<::std::string::String>,
104 pub(crate) resolve_conflicts: ::std::option::Option<crate::types::ResolveConflicts>,
105 pub(crate) client_request_token: ::std::option::Option<::std::string::String>,
106 pub(crate) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
107 pub(crate) configuration_values: ::std::option::Option<::std::string::String>,
108 pub(crate) pod_identity_associations: ::std::option::Option<::std::vec::Vec<crate::types::AddonPodIdentityAssociations>>,
109}
110impl CreateAddonInputBuilder {
111 /// <p>The name of your cluster.</p>
112 /// This field is required.
113 pub fn cluster_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
114 self.cluster_name = ::std::option::Option::Some(input.into());
115 self
116 }
117 /// <p>The name of your cluster.</p>
118 pub fn set_cluster_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
119 self.cluster_name = input;
120 self
121 }
122 /// <p>The name of your cluster.</p>
123 pub fn get_cluster_name(&self) -> &::std::option::Option<::std::string::String> {
124 &self.cluster_name
125 }
126 /// <p>The name of the add-on. The name must match one of the names returned by <code>DescribeAddonVersions</code>.</p>
127 /// This field is required.
128 pub fn addon_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
129 self.addon_name = ::std::option::Option::Some(input.into());
130 self
131 }
132 /// <p>The name of the add-on. The name must match one of the names returned by <code>DescribeAddonVersions</code>.</p>
133 pub fn set_addon_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
134 self.addon_name = input;
135 self
136 }
137 /// <p>The name of the add-on. The name must match one of the names returned by <code>DescribeAddonVersions</code>.</p>
138 pub fn get_addon_name(&self) -> &::std::option::Option<::std::string::String> {
139 &self.addon_name
140 }
141 /// <p>The version of the add-on. The version must match one of the versions returned by <a href="https://docs.aws.amazon.com/eks/latest/APIReference/API_DescribeAddonVersions.html"> <code>DescribeAddonVersions</code> </a>.</p>
142 pub fn addon_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
143 self.addon_version = ::std::option::Option::Some(input.into());
144 self
145 }
146 /// <p>The version of the add-on. The version must match one of the versions returned by <a href="https://docs.aws.amazon.com/eks/latest/APIReference/API_DescribeAddonVersions.html"> <code>DescribeAddonVersions</code> </a>.</p>
147 pub fn set_addon_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
148 self.addon_version = input;
149 self
150 }
151 /// <p>The version of the add-on. The version must match one of the versions returned by <a href="https://docs.aws.amazon.com/eks/latest/APIReference/API_DescribeAddonVersions.html"> <code>DescribeAddonVersions</code> </a>.</p>
152 pub fn get_addon_version(&self) -> &::std::option::Option<::std::string::String> {
153 &self.addon_version
154 }
155 /// <p>The Amazon Resource Name (ARN) of an existing IAM role to bind to the add-on's service account. The role must be assigned the IAM permissions required by the add-on. If you don't specify an existing IAM role, then the add-on uses the permissions assigned to the node IAM role. For more information, see <a href="https://docs.aws.amazon.com/eks/latest/userguide/create-node-role.html">Amazon EKS node IAM role</a> in the <i>Amazon EKS User Guide</i>.</p><note>
156 /// <p>To specify an existing IAM role, you must have an IAM OpenID Connect (OIDC) provider created for your cluster. For more information, see <a href="https://docs.aws.amazon.com/eks/latest/userguide/enable-iam-roles-for-service-accounts.html">Enabling IAM roles for service accounts on your cluster</a> in the <i>Amazon EKS User Guide</i>.</p>
157 /// </note>
158 pub fn service_account_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
159 self.service_account_role_arn = ::std::option::Option::Some(input.into());
160 self
161 }
162 /// <p>The Amazon Resource Name (ARN) of an existing IAM role to bind to the add-on's service account. The role must be assigned the IAM permissions required by the add-on. If you don't specify an existing IAM role, then the add-on uses the permissions assigned to the node IAM role. For more information, see <a href="https://docs.aws.amazon.com/eks/latest/userguide/create-node-role.html">Amazon EKS node IAM role</a> in the <i>Amazon EKS User Guide</i>.</p><note>
163 /// <p>To specify an existing IAM role, you must have an IAM OpenID Connect (OIDC) provider created for your cluster. For more information, see <a href="https://docs.aws.amazon.com/eks/latest/userguide/enable-iam-roles-for-service-accounts.html">Enabling IAM roles for service accounts on your cluster</a> in the <i>Amazon EKS User Guide</i>.</p>
164 /// </note>
165 pub fn set_service_account_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
166 self.service_account_role_arn = input;
167 self
168 }
169 /// <p>The Amazon Resource Name (ARN) of an existing IAM role to bind to the add-on's service account. The role must be assigned the IAM permissions required by the add-on. If you don't specify an existing IAM role, then the add-on uses the permissions assigned to the node IAM role. For more information, see <a href="https://docs.aws.amazon.com/eks/latest/userguide/create-node-role.html">Amazon EKS node IAM role</a> in the <i>Amazon EKS User Guide</i>.</p><note>
170 /// <p>To specify an existing IAM role, you must have an IAM OpenID Connect (OIDC) provider created for your cluster. For more information, see <a href="https://docs.aws.amazon.com/eks/latest/userguide/enable-iam-roles-for-service-accounts.html">Enabling IAM roles for service accounts on your cluster</a> in the <i>Amazon EKS User Guide</i>.</p>
171 /// </note>
172 pub fn get_service_account_role_arn(&self) -> &::std::option::Option<::std::string::String> {
173 &self.service_account_role_arn
174 }
175 /// <p>How to resolve field value conflicts for an Amazon EKS add-on. Conflicts are handled based on the value you choose:</p>
176 /// <ul>
177 /// <li>
178 /// <p><b>None</b> – If the self-managed version of the add-on is installed on your cluster, Amazon EKS doesn't change the value. Creation of the add-on might fail.</p></li>
179 /// <li>
180 /// <p><b>Overwrite</b> – If the self-managed version of the add-on is installed on your cluster and the Amazon EKS default value is different than the existing value, Amazon EKS changes the value to the Amazon EKS default value.</p></li>
181 /// <li>
182 /// <p><b>Preserve</b> – This is similar to the NONE option. If the self-managed version of the add-on is installed on your cluster Amazon EKS doesn't change the add-on resource properties. Creation of the add-on might fail if conflicts are detected. This option works differently during the update operation. For more information, see <a href="https://docs.aws.amazon.com/eks/latest/APIReference/API_UpdateAddon.html"> <code>UpdateAddon</code> </a>.</p></li>
183 /// </ul>
184 /// <p>If you don't currently have the self-managed version of the add-on installed on your cluster, the Amazon EKS add-on is installed. Amazon EKS sets all values to default values, regardless of the option that you specify.</p>
185 pub fn resolve_conflicts(mut self, input: crate::types::ResolveConflicts) -> Self {
186 self.resolve_conflicts = ::std::option::Option::Some(input);
187 self
188 }
189 /// <p>How to resolve field value conflicts for an Amazon EKS add-on. Conflicts are handled based on the value you choose:</p>
190 /// <ul>
191 /// <li>
192 /// <p><b>None</b> – If the self-managed version of the add-on is installed on your cluster, Amazon EKS doesn't change the value. Creation of the add-on might fail.</p></li>
193 /// <li>
194 /// <p><b>Overwrite</b> – If the self-managed version of the add-on is installed on your cluster and the Amazon EKS default value is different than the existing value, Amazon EKS changes the value to the Amazon EKS default value.</p></li>
195 /// <li>
196 /// <p><b>Preserve</b> – This is similar to the NONE option. If the self-managed version of the add-on is installed on your cluster Amazon EKS doesn't change the add-on resource properties. Creation of the add-on might fail if conflicts are detected. This option works differently during the update operation. For more information, see <a href="https://docs.aws.amazon.com/eks/latest/APIReference/API_UpdateAddon.html"> <code>UpdateAddon</code> </a>.</p></li>
197 /// </ul>
198 /// <p>If you don't currently have the self-managed version of the add-on installed on your cluster, the Amazon EKS add-on is installed. Amazon EKS sets all values to default values, regardless of the option that you specify.</p>
199 pub fn set_resolve_conflicts(mut self, input: ::std::option::Option<crate::types::ResolveConflicts>) -> Self {
200 self.resolve_conflicts = input;
201 self
202 }
203 /// <p>How to resolve field value conflicts for an Amazon EKS add-on. Conflicts are handled based on the value you choose:</p>
204 /// <ul>
205 /// <li>
206 /// <p><b>None</b> – If the self-managed version of the add-on is installed on your cluster, Amazon EKS doesn't change the value. Creation of the add-on might fail.</p></li>
207 /// <li>
208 /// <p><b>Overwrite</b> – If the self-managed version of the add-on is installed on your cluster and the Amazon EKS default value is different than the existing value, Amazon EKS changes the value to the Amazon EKS default value.</p></li>
209 /// <li>
210 /// <p><b>Preserve</b> – This is similar to the NONE option. If the self-managed version of the add-on is installed on your cluster Amazon EKS doesn't change the add-on resource properties. Creation of the add-on might fail if conflicts are detected. This option works differently during the update operation. For more information, see <a href="https://docs.aws.amazon.com/eks/latest/APIReference/API_UpdateAddon.html"> <code>UpdateAddon</code> </a>.</p></li>
211 /// </ul>
212 /// <p>If you don't currently have the self-managed version of the add-on installed on your cluster, the Amazon EKS add-on is installed. Amazon EKS sets all values to default values, regardless of the option that you specify.</p>
213 pub fn get_resolve_conflicts(&self) -> &::std::option::Option<crate::types::ResolveConflicts> {
214 &self.resolve_conflicts
215 }
216 /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.</p>
217 pub fn client_request_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
218 self.client_request_token = ::std::option::Option::Some(input.into());
219 self
220 }
221 /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.</p>
222 pub fn set_client_request_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
223 self.client_request_token = input;
224 self
225 }
226 /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.</p>
227 pub fn get_client_request_token(&self) -> &::std::option::Option<::std::string::String> {
228 &self.client_request_token
229 }
230 /// Adds a key-value pair to `tags`.
231 ///
232 /// To override the contents of this collection use [`set_tags`](Self::set_tags).
233 ///
234 /// <p>Metadata that assists with categorization and organization. Each tag consists of a key and an optional value. You define both. Tags don't propagate to any other cluster or Amazon Web Services resources.</p>
235 pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
236 let mut hash_map = self.tags.unwrap_or_default();
237 hash_map.insert(k.into(), v.into());
238 self.tags = ::std::option::Option::Some(hash_map);
239 self
240 }
241 /// <p>Metadata that assists with categorization and organization. Each tag consists of a key and an optional value. You define both. Tags don't propagate to any other cluster or Amazon Web Services resources.</p>
242 pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
243 self.tags = input;
244 self
245 }
246 /// <p>Metadata that assists with categorization and organization. Each tag consists of a key and an optional value. You define both. Tags don't propagate to any other cluster or Amazon Web Services resources.</p>
247 pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
248 &self.tags
249 }
250 /// <p>The set of configuration values for the add-on that's created. The values that you provide are validated against the schema returned by <code>DescribeAddonConfiguration</code>.</p>
251 pub fn configuration_values(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
252 self.configuration_values = ::std::option::Option::Some(input.into());
253 self
254 }
255 /// <p>The set of configuration values for the add-on that's created. The values that you provide are validated against the schema returned by <code>DescribeAddonConfiguration</code>.</p>
256 pub fn set_configuration_values(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
257 self.configuration_values = input;
258 self
259 }
260 /// <p>The set of configuration values for the add-on that's created. The values that you provide are validated against the schema returned by <code>DescribeAddonConfiguration</code>.</p>
261 pub fn get_configuration_values(&self) -> &::std::option::Option<::std::string::String> {
262 &self.configuration_values
263 }
264 /// Appends an item to `pod_identity_associations`.
265 ///
266 /// To override the contents of this collection use [`set_pod_identity_associations`](Self::set_pod_identity_associations).
267 ///
268 /// <p>An array of Pod Identity Assocations to be created. Each EKS Pod Identity association maps a Kubernetes service account to an IAM Role.</p>
269 /// <p>For more information, see <a href="https://docs.aws.amazon.com/eks/latest/userguide/add-ons-iam.html">Attach an IAM Role to an Amazon EKS add-on using Pod Identity</a> in the <i>Amazon EKS User Guide</i>.</p>
270 pub fn pod_identity_associations(mut self, input: crate::types::AddonPodIdentityAssociations) -> Self {
271 let mut v = self.pod_identity_associations.unwrap_or_default();
272 v.push(input);
273 self.pod_identity_associations = ::std::option::Option::Some(v);
274 self
275 }
276 /// <p>An array of Pod Identity Assocations to be created. Each EKS Pod Identity association maps a Kubernetes service account to an IAM Role.</p>
277 /// <p>For more information, see <a href="https://docs.aws.amazon.com/eks/latest/userguide/add-ons-iam.html">Attach an IAM Role to an Amazon EKS add-on using Pod Identity</a> in the <i>Amazon EKS User Guide</i>.</p>
278 pub fn set_pod_identity_associations(
279 mut self,
280 input: ::std::option::Option<::std::vec::Vec<crate::types::AddonPodIdentityAssociations>>,
281 ) -> Self {
282 self.pod_identity_associations = input;
283 self
284 }
285 /// <p>An array of Pod Identity Assocations to be created. Each EKS Pod Identity association maps a Kubernetes service account to an IAM Role.</p>
286 /// <p>For more information, see <a href="https://docs.aws.amazon.com/eks/latest/userguide/add-ons-iam.html">Attach an IAM Role to an Amazon EKS add-on using Pod Identity</a> in the <i>Amazon EKS User Guide</i>.</p>
287 pub fn get_pod_identity_associations(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::AddonPodIdentityAssociations>> {
288 &self.pod_identity_associations
289 }
290 /// Consumes the builder and constructs a [`CreateAddonInput`](crate::operation::create_addon::CreateAddonInput).
291 pub fn build(self) -> ::std::result::Result<crate::operation::create_addon::CreateAddonInput, ::aws_smithy_types::error::operation::BuildError> {
292 ::std::result::Result::Ok(crate::operation::create_addon::CreateAddonInput {
293 cluster_name: self.cluster_name,
294 addon_name: self.addon_name,
295 addon_version: self.addon_version,
296 service_account_role_arn: self.service_account_role_arn,
297 resolve_conflicts: self.resolve_conflicts,
298 client_request_token: self.client_request_token,
299 tags: self.tags,
300 configuration_values: self.configuration_values,
301 pod_identity_associations: self.pod_identity_associations,
302 })
303 }
304}