pulumi-eks 4.3.0a1766451683__py3-none-any.whl → 4.3.0a1768307250__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
pulumi_eks/addon.py CHANGED
@@ -2,8 +2,7 @@
2
2
  # *** WARNING: this file was generated by pulumi-gen-eks. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
- import builtins
6
- import copy
5
+ import builtins as _builtins
7
6
  import warnings
8
7
  import sys
9
8
  import pulumi
@@ -21,28 +20,28 @@ __all__ = ['AddonArgs', 'Addon']
21
20
  @pulumi.input_type
22
21
  class AddonArgs:
23
22
  def __init__(__self__, *,
24
- addon_name: pulumi.Input[builtins.str],
23
+ addon_name: pulumi.Input[_builtins.str],
25
24
  cluster: pulumi.Input['Cluster'],
26
- addon_version: Optional[pulumi.Input[builtins.str]] = None,
25
+ addon_version: Optional[pulumi.Input[_builtins.str]] = None,
27
26
  configuration_values: Optional[pulumi.Input[Mapping[str, Any]]] = None,
28
- preserve: Optional[pulumi.Input[builtins.bool]] = None,
29
- resolve_conflicts_on_create: Optional[pulumi.Input[builtins.str]] = None,
30
- resolve_conflicts_on_update: Optional[pulumi.Input[builtins.str]] = None,
31
- service_account_role_arn: Optional[pulumi.Input[builtins.str]] = None,
32
- tags: Optional[pulumi.Input[Sequence[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]]] = None):
27
+ preserve: Optional[pulumi.Input[_builtins.bool]] = None,
28
+ resolve_conflicts_on_create: Optional[pulumi.Input[_builtins.str]] = None,
29
+ resolve_conflicts_on_update: Optional[pulumi.Input[_builtins.str]] = None,
30
+ service_account_role_arn: Optional[pulumi.Input[_builtins.str]] = None,
31
+ tags: Optional[pulumi.Input[Sequence[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]]] = None):
33
32
  """
34
33
  The set of arguments for constructing a Addon resource.
35
- :param pulumi.Input[builtins.str] addon_name: Name of the EKS add-on. The name must match one of the names returned by describe-addon-versions.
34
+ :param pulumi.Input[_builtins.str] addon_name: Name of the EKS add-on. The name must match one of the names returned by describe-addon-versions.
36
35
  :param pulumi.Input['Cluster'] cluster: The target EKS cluster.
37
- :param pulumi.Input[builtins.str] addon_version: The version of the EKS add-on. The version must match one of the versions returned by describe-addon-versions.
36
+ :param pulumi.Input[_builtins.str] addon_version: The version of the EKS add-on. The version must match one of the versions returned by describe-addon-versions.
38
37
  :param pulumi.Input[Mapping[str, Any]] configuration_values: Custom configuration values for addons specified as an object. This object value must match the JSON schema derived from describe-addon-configuration.
39
- :param pulumi.Input[builtins.bool] preserve: Indicates if you want to preserve the created resources when deleting the EKS add-on.
40
- :param pulumi.Input[builtins.str] resolve_conflicts_on_create: How to resolve field value conflicts when migrating a self-managed add-on to an Amazon EKS add-on. Valid values are NONE and OVERWRITE. For more details see the CreateAddon API Docs.
41
- :param pulumi.Input[builtins.str] resolve_conflicts_on_update: How to resolve field value conflicts for an Amazon EKS add-on if you've changed a value from the Amazon EKS default value. Valid values are NONE, OVERWRITE, and PRESERVE. For more details see the UpdateAddon API Docs.
42
- :param pulumi.Input[builtins.str] service_account_role_arn: 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 Amazon EKS node IAM role in the Amazon EKS User Guide.
38
+ :param pulumi.Input[_builtins.bool] preserve: Indicates if you want to preserve the created resources when deleting the EKS add-on.
39
+ :param pulumi.Input[_builtins.str] resolve_conflicts_on_create: How to resolve field value conflicts when migrating a self-managed add-on to an Amazon EKS add-on. Valid values are NONE and OVERWRITE. For more details see the CreateAddon API Docs.
40
+ :param pulumi.Input[_builtins.str] resolve_conflicts_on_update: How to resolve field value conflicts for an Amazon EKS add-on if you've changed a value from the Amazon EKS default value. Valid values are NONE, OVERWRITE, and PRESERVE. For more details see the UpdateAddon API Docs.
41
+ :param pulumi.Input[_builtins.str] service_account_role_arn: 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 Amazon EKS node IAM role in the Amazon EKS User Guide.
43
42
 
44
43
  Note: To specify an existing IAM role, you must have an IAM OpenID Connect (OIDC) provider created for your cluster. For more information, see Enabling IAM roles for service accounts on your cluster in the Amazon EKS User Guide.
45
- :param pulumi.Input[Sequence[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]] tags: Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
44
+ :param pulumi.Input[Sequence[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]] tags: Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
46
45
  """
47
46
  pulumi.set(__self__, "addon_name", addon_name)
48
47
  pulumi.set(__self__, "cluster", cluster)
@@ -61,19 +60,19 @@ class AddonArgs:
61
60
  if tags is not None:
62
61
  pulumi.set(__self__, "tags", tags)
63
62
 
64
- @property
63
+ @_builtins.property
65
64
  @pulumi.getter(name="addonName")
66
- def addon_name(self) -> pulumi.Input[builtins.str]:
65
+ def addon_name(self) -> pulumi.Input[_builtins.str]:
67
66
  """
68
67
  Name of the EKS add-on. The name must match one of the names returned by describe-addon-versions.
69
68
  """
70
69
  return pulumi.get(self, "addon_name")
71
70
 
72
71
  @addon_name.setter
73
- def addon_name(self, value: pulumi.Input[builtins.str]):
72
+ def addon_name(self, value: pulumi.Input[_builtins.str]):
74
73
  pulumi.set(self, "addon_name", value)
75
74
 
76
- @property
75
+ @_builtins.property
77
76
  @pulumi.getter
78
77
  def cluster(self) -> pulumi.Input['Cluster']:
79
78
  """
@@ -85,19 +84,19 @@ class AddonArgs:
85
84
  def cluster(self, value: pulumi.Input['Cluster']):
86
85
  pulumi.set(self, "cluster", value)
87
86
 
88
- @property
87
+ @_builtins.property
89
88
  @pulumi.getter(name="addonVersion")
90
- def addon_version(self) -> Optional[pulumi.Input[builtins.str]]:
89
+ def addon_version(self) -> Optional[pulumi.Input[_builtins.str]]:
91
90
  """
92
91
  The version of the EKS add-on. The version must match one of the versions returned by describe-addon-versions.
93
92
  """
94
93
  return pulumi.get(self, "addon_version")
95
94
 
96
95
  @addon_version.setter
97
- def addon_version(self, value: Optional[pulumi.Input[builtins.str]]):
96
+ def addon_version(self, value: Optional[pulumi.Input[_builtins.str]]):
98
97
  pulumi.set(self, "addon_version", value)
99
98
 
100
- @property
99
+ @_builtins.property
101
100
  @pulumi.getter(name="configurationValues")
102
101
  def configuration_values(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
103
102
  """
@@ -109,45 +108,45 @@ class AddonArgs:
109
108
  def configuration_values(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
110
109
  pulumi.set(self, "configuration_values", value)
111
110
 
112
- @property
111
+ @_builtins.property
113
112
  @pulumi.getter
114
- def preserve(self) -> Optional[pulumi.Input[builtins.bool]]:
113
+ def preserve(self) -> Optional[pulumi.Input[_builtins.bool]]:
115
114
  """
116
115
  Indicates if you want to preserve the created resources when deleting the EKS add-on.
117
116
  """
118
117
  return pulumi.get(self, "preserve")
119
118
 
120
119
  @preserve.setter
121
- def preserve(self, value: Optional[pulumi.Input[builtins.bool]]):
120
+ def preserve(self, value: Optional[pulumi.Input[_builtins.bool]]):
122
121
  pulumi.set(self, "preserve", value)
123
122
 
124
- @property
123
+ @_builtins.property
125
124
  @pulumi.getter(name="resolveConflictsOnCreate")
126
- def resolve_conflicts_on_create(self) -> Optional[pulumi.Input[builtins.str]]:
125
+ def resolve_conflicts_on_create(self) -> Optional[pulumi.Input[_builtins.str]]:
127
126
  """
128
127
  How to resolve field value conflicts when migrating a self-managed add-on to an Amazon EKS add-on. Valid values are NONE and OVERWRITE. For more details see the CreateAddon API Docs.
129
128
  """
130
129
  return pulumi.get(self, "resolve_conflicts_on_create")
131
130
 
132
131
  @resolve_conflicts_on_create.setter
133
- def resolve_conflicts_on_create(self, value: Optional[pulumi.Input[builtins.str]]):
132
+ def resolve_conflicts_on_create(self, value: Optional[pulumi.Input[_builtins.str]]):
134
133
  pulumi.set(self, "resolve_conflicts_on_create", value)
135
134
 
136
- @property
135
+ @_builtins.property
137
136
  @pulumi.getter(name="resolveConflictsOnUpdate")
138
- def resolve_conflicts_on_update(self) -> Optional[pulumi.Input[builtins.str]]:
137
+ def resolve_conflicts_on_update(self) -> Optional[pulumi.Input[_builtins.str]]:
139
138
  """
140
139
  How to resolve field value conflicts for an Amazon EKS add-on if you've changed a value from the Amazon EKS default value. Valid values are NONE, OVERWRITE, and PRESERVE. For more details see the UpdateAddon API Docs.
141
140
  """
142
141
  return pulumi.get(self, "resolve_conflicts_on_update")
143
142
 
144
143
  @resolve_conflicts_on_update.setter
145
- def resolve_conflicts_on_update(self, value: Optional[pulumi.Input[builtins.str]]):
144
+ def resolve_conflicts_on_update(self, value: Optional[pulumi.Input[_builtins.str]]):
146
145
  pulumi.set(self, "resolve_conflicts_on_update", value)
147
146
 
148
- @property
147
+ @_builtins.property
149
148
  @pulumi.getter(name="serviceAccountRoleArn")
150
- def service_account_role_arn(self) -> Optional[pulumi.Input[builtins.str]]:
149
+ def service_account_role_arn(self) -> Optional[pulumi.Input[_builtins.str]]:
151
150
  """
152
151
  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 Amazon EKS node IAM role in the Amazon EKS User Guide.
153
152
 
@@ -156,19 +155,19 @@ class AddonArgs:
156
155
  return pulumi.get(self, "service_account_role_arn")
157
156
 
158
157
  @service_account_role_arn.setter
159
- def service_account_role_arn(self, value: Optional[pulumi.Input[builtins.str]]):
158
+ def service_account_role_arn(self, value: Optional[pulumi.Input[_builtins.str]]):
160
159
  pulumi.set(self, "service_account_role_arn", value)
161
160
 
162
- @property
161
+ @_builtins.property
163
162
  @pulumi.getter
164
- def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]]]:
163
+ def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]]]:
165
164
  """
166
165
  Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
167
166
  """
168
167
  return pulumi.get(self, "tags")
169
168
 
170
169
  @tags.setter
171
- def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]]]):
170
+ def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]]]):
172
171
  pulumi.set(self, "tags", value)
173
172
 
174
173
 
@@ -178,15 +177,15 @@ class Addon(pulumi.ComponentResource):
178
177
  def __init__(__self__,
179
178
  resource_name: str,
180
179
  opts: Optional[pulumi.ResourceOptions] = None,
181
- addon_name: Optional[pulumi.Input[builtins.str]] = None,
182
- addon_version: Optional[pulumi.Input[builtins.str]] = None,
180
+ addon_name: Optional[pulumi.Input[_builtins.str]] = None,
181
+ addon_version: Optional[pulumi.Input[_builtins.str]] = None,
183
182
  cluster: Optional[pulumi.Input['Cluster']] = None,
184
183
  configuration_values: Optional[pulumi.Input[Mapping[str, Any]]] = None,
185
- preserve: Optional[pulumi.Input[builtins.bool]] = None,
186
- resolve_conflicts_on_create: Optional[pulumi.Input[builtins.str]] = None,
187
- resolve_conflicts_on_update: Optional[pulumi.Input[builtins.str]] = None,
188
- service_account_role_arn: Optional[pulumi.Input[builtins.str]] = None,
189
- tags: Optional[pulumi.Input[Sequence[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]]] = None,
184
+ preserve: Optional[pulumi.Input[_builtins.bool]] = None,
185
+ resolve_conflicts_on_create: Optional[pulumi.Input[_builtins.str]] = None,
186
+ resolve_conflicts_on_update: Optional[pulumi.Input[_builtins.str]] = None,
187
+ service_account_role_arn: Optional[pulumi.Input[_builtins.str]] = None,
188
+ tags: Optional[pulumi.Input[Sequence[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]]] = None,
190
189
  __props__=None):
191
190
  """
192
191
  Addon manages an EKS add-on.
@@ -194,17 +193,17 @@ class Addon(pulumi.ComponentResource):
194
193
 
195
194
  :param str resource_name: The name of the resource.
196
195
  :param pulumi.ResourceOptions opts: Options for the resource.
197
- :param pulumi.Input[builtins.str] addon_name: Name of the EKS add-on. The name must match one of the names returned by describe-addon-versions.
198
- :param pulumi.Input[builtins.str] addon_version: The version of the EKS add-on. The version must match one of the versions returned by describe-addon-versions.
196
+ :param pulumi.Input[_builtins.str] addon_name: Name of the EKS add-on. The name must match one of the names returned by describe-addon-versions.
197
+ :param pulumi.Input[_builtins.str] addon_version: The version of the EKS add-on. The version must match one of the versions returned by describe-addon-versions.
199
198
  :param pulumi.Input['Cluster'] cluster: The target EKS cluster.
200
199
  :param pulumi.Input[Mapping[str, Any]] configuration_values: Custom configuration values for addons specified as an object. This object value must match the JSON schema derived from describe-addon-configuration.
201
- :param pulumi.Input[builtins.bool] preserve: Indicates if you want to preserve the created resources when deleting the EKS add-on.
202
- :param pulumi.Input[builtins.str] resolve_conflicts_on_create: How to resolve field value conflicts when migrating a self-managed add-on to an Amazon EKS add-on. Valid values are NONE and OVERWRITE. For more details see the CreateAddon API Docs.
203
- :param pulumi.Input[builtins.str] resolve_conflicts_on_update: How to resolve field value conflicts for an Amazon EKS add-on if you've changed a value from the Amazon EKS default value. Valid values are NONE, OVERWRITE, and PRESERVE. For more details see the UpdateAddon API Docs.
204
- :param pulumi.Input[builtins.str] service_account_role_arn: 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 Amazon EKS node IAM role in the Amazon EKS User Guide.
200
+ :param pulumi.Input[_builtins.bool] preserve: Indicates if you want to preserve the created resources when deleting the EKS add-on.
201
+ :param pulumi.Input[_builtins.str] resolve_conflicts_on_create: How to resolve field value conflicts when migrating a self-managed add-on to an Amazon EKS add-on. Valid values are NONE and OVERWRITE. For more details see the CreateAddon API Docs.
202
+ :param pulumi.Input[_builtins.str] resolve_conflicts_on_update: How to resolve field value conflicts for an Amazon EKS add-on if you've changed a value from the Amazon EKS default value. Valid values are NONE, OVERWRITE, and PRESERVE. For more details see the UpdateAddon API Docs.
203
+ :param pulumi.Input[_builtins.str] service_account_role_arn: 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 Amazon EKS node IAM role in the Amazon EKS User Guide.
205
204
 
206
205
  Note: To specify an existing IAM role, you must have an IAM OpenID Connect (OIDC) provider created for your cluster. For more information, see Enabling IAM roles for service accounts on your cluster in the Amazon EKS User Guide.
207
- :param pulumi.Input[Sequence[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]] tags: Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
206
+ :param pulumi.Input[Sequence[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]] tags: Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
208
207
  """
209
208
  ...
210
209
  @overload
@@ -231,15 +230,15 @@ class Addon(pulumi.ComponentResource):
231
230
  def _internal_init(__self__,
232
231
  resource_name: str,
233
232
  opts: Optional[pulumi.ResourceOptions] = None,
234
- addon_name: Optional[pulumi.Input[builtins.str]] = None,
235
- addon_version: Optional[pulumi.Input[builtins.str]] = None,
233
+ addon_name: Optional[pulumi.Input[_builtins.str]] = None,
234
+ addon_version: Optional[pulumi.Input[_builtins.str]] = None,
236
235
  cluster: Optional[pulumi.Input['Cluster']] = None,
237
236
  configuration_values: Optional[pulumi.Input[Mapping[str, Any]]] = None,
238
- preserve: Optional[pulumi.Input[builtins.bool]] = None,
239
- resolve_conflicts_on_create: Optional[pulumi.Input[builtins.str]] = None,
240
- resolve_conflicts_on_update: Optional[pulumi.Input[builtins.str]] = None,
241
- service_account_role_arn: Optional[pulumi.Input[builtins.str]] = None,
242
- tags: Optional[pulumi.Input[Sequence[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]]] = None,
237
+ preserve: Optional[pulumi.Input[_builtins.bool]] = None,
238
+ resolve_conflicts_on_create: Optional[pulumi.Input[_builtins.str]] = None,
239
+ resolve_conflicts_on_update: Optional[pulumi.Input[_builtins.str]] = None,
240
+ service_account_role_arn: Optional[pulumi.Input[_builtins.str]] = None,
241
+ tags: Optional[pulumi.Input[Sequence[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]]] = None,
243
242
  __props__=None):
244
243
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
245
244
  if not isinstance(opts, pulumi.ResourceOptions):