pulumi-eks 3.9.0a1742626547__py3-none-any.whl → 4.2.0__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/_utilities.py CHANGED
@@ -89,12 +89,16 @@ def _get_semver_version():
89
89
  elif pep440_version.pre_tag == 'rc':
90
90
  prerelease = f"rc.{pep440_version.pre}"
91
91
  elif pep440_version.dev is not None:
92
+ # PEP440 has explicit support for dev builds, while semver encodes them as "prerelease" versions. To bridge
93
+ # between the two, we convert our dev build version into a prerelease tag. This matches what all of our other
94
+ # packages do when constructing their own semver string.
92
95
  prerelease = f"dev.{pep440_version.dev}"
96
+ elif pep440_version.local is not None:
97
+ # PEP440 only allows a small set of prerelease tags, so when converting an arbitrary prerelease,
98
+ # PypiVersion in /pkg/codegen/python/utilities.go converts it to a local version. Therefore, we need to
99
+ # do the reverse conversion here and set the local version as the prerelease tag.
100
+ prerelease = pep440_version.local
93
101
 
94
- # The only significant difference between PEP440 and semver as it pertains to us is that PEP440 has explicit support
95
- # for dev builds, while semver encodes them as "prerelease" versions. In order to bridge between the two, we convert
96
- # our dev build version into a prerelease tag. This matches what all of our other packages do when constructing
97
- # their own semver string.
98
102
  return SemverVersion(major=major, minor=minor, patch=patch, prerelease=prerelease)
99
103
 
100
104
 
pulumi_eks/addon.py CHANGED
@@ -2,6 +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
5
6
  import copy
6
7
  import warnings
7
8
  import sys
@@ -20,28 +21,28 @@ __all__ = ['AddonArgs', 'Addon']
20
21
  @pulumi.input_type
21
22
  class AddonArgs:
22
23
  def __init__(__self__, *,
23
- addon_name: pulumi.Input[str],
24
+ addon_name: pulumi.Input[builtins.str],
24
25
  cluster: pulumi.Input['Cluster'],
25
- addon_version: Optional[pulumi.Input[str]] = None,
26
+ addon_version: Optional[pulumi.Input[builtins.str]] = None,
26
27
  configuration_values: Optional[pulumi.Input[Mapping[str, Any]]] = None,
27
- preserve: Optional[pulumi.Input[bool]] = None,
28
- resolve_conflicts_on_create: Optional[pulumi.Input[str]] = None,
29
- resolve_conflicts_on_update: Optional[pulumi.Input[str]] = None,
30
- service_account_role_arn: Optional[pulumi.Input[str]] = None,
31
- tags: Optional[pulumi.Input[Sequence[pulumi.Input[Mapping[str, pulumi.Input[str]]]]]] = 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):
32
33
  """
33
34
  The set of arguments for constructing a Addon resource.
34
- :param pulumi.Input[str] addon_name: Name of the EKS add-on. The name must match one of the names returned by describe-addon-versions.
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.
35
36
  :param pulumi.Input['Cluster'] cluster: The target EKS cluster.
36
- :param pulumi.Input[str] addon_version: The version of the EKS add-on. The version must match one of the versions returned by describe-addon-versions.
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.
37
38
  :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.
38
- :param pulumi.Input[bool] preserve: Indicates if you want to preserve the created resources when deleting the EKS add-on.
39
- :param pulumi.Input[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[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[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.
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.
42
43
 
43
44
  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.
44
- :param pulumi.Input[Sequence[pulumi.Input[Mapping[str, pulumi.Input[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.
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.
45
46
  """
46
47
  pulumi.set(__self__, "addon_name", addon_name)
47
48
  pulumi.set(__self__, "cluster", cluster)
@@ -62,14 +63,14 @@ class AddonArgs:
62
63
 
63
64
  @property
64
65
  @pulumi.getter(name="addonName")
65
- def addon_name(self) -> pulumi.Input[str]:
66
+ def addon_name(self) -> pulumi.Input[builtins.str]:
66
67
  """
67
68
  Name of the EKS add-on. The name must match one of the names returned by describe-addon-versions.
68
69
  """
69
70
  return pulumi.get(self, "addon_name")
70
71
 
71
72
  @addon_name.setter
72
- def addon_name(self, value: pulumi.Input[str]):
73
+ def addon_name(self, value: pulumi.Input[builtins.str]):
73
74
  pulumi.set(self, "addon_name", value)
74
75
 
75
76
  @property
@@ -86,14 +87,14 @@ class AddonArgs:
86
87
 
87
88
  @property
88
89
  @pulumi.getter(name="addonVersion")
89
- def addon_version(self) -> Optional[pulumi.Input[str]]:
90
+ def addon_version(self) -> Optional[pulumi.Input[builtins.str]]:
90
91
  """
91
92
  The version of the EKS add-on. The version must match one of the versions returned by describe-addon-versions.
92
93
  """
93
94
  return pulumi.get(self, "addon_version")
94
95
 
95
96
  @addon_version.setter
96
- def addon_version(self, value: Optional[pulumi.Input[str]]):
97
+ def addon_version(self, value: Optional[pulumi.Input[builtins.str]]):
97
98
  pulumi.set(self, "addon_version", value)
98
99
 
99
100
  @property
@@ -110,43 +111,43 @@ class AddonArgs:
110
111
 
111
112
  @property
112
113
  @pulumi.getter
113
- def preserve(self) -> Optional[pulumi.Input[bool]]:
114
+ def preserve(self) -> Optional[pulumi.Input[builtins.bool]]:
114
115
  """
115
116
  Indicates if you want to preserve the created resources when deleting the EKS add-on.
116
117
  """
117
118
  return pulumi.get(self, "preserve")
118
119
 
119
120
  @preserve.setter
120
- def preserve(self, value: Optional[pulumi.Input[bool]]):
121
+ def preserve(self, value: Optional[pulumi.Input[builtins.bool]]):
121
122
  pulumi.set(self, "preserve", value)
122
123
 
123
124
  @property
124
125
  @pulumi.getter(name="resolveConflictsOnCreate")
125
- def resolve_conflicts_on_create(self) -> Optional[pulumi.Input[str]]:
126
+ def resolve_conflicts_on_create(self) -> Optional[pulumi.Input[builtins.str]]:
126
127
  """
127
128
  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.
128
129
  """
129
130
  return pulumi.get(self, "resolve_conflicts_on_create")
130
131
 
131
132
  @resolve_conflicts_on_create.setter
132
- def resolve_conflicts_on_create(self, value: Optional[pulumi.Input[str]]):
133
+ def resolve_conflicts_on_create(self, value: Optional[pulumi.Input[builtins.str]]):
133
134
  pulumi.set(self, "resolve_conflicts_on_create", value)
134
135
 
135
136
  @property
136
137
  @pulumi.getter(name="resolveConflictsOnUpdate")
137
- def resolve_conflicts_on_update(self) -> Optional[pulumi.Input[str]]:
138
+ def resolve_conflicts_on_update(self) -> Optional[pulumi.Input[builtins.str]]:
138
139
  """
139
140
  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.
140
141
  """
141
142
  return pulumi.get(self, "resolve_conflicts_on_update")
142
143
 
143
144
  @resolve_conflicts_on_update.setter
144
- def resolve_conflicts_on_update(self, value: Optional[pulumi.Input[str]]):
145
+ def resolve_conflicts_on_update(self, value: Optional[pulumi.Input[builtins.str]]):
145
146
  pulumi.set(self, "resolve_conflicts_on_update", value)
146
147
 
147
148
  @property
148
149
  @pulumi.getter(name="serviceAccountRoleArn")
149
- def service_account_role_arn(self) -> Optional[pulumi.Input[str]]:
150
+ def service_account_role_arn(self) -> Optional[pulumi.Input[builtins.str]]:
150
151
  """
151
152
  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.
152
153
 
@@ -155,36 +156,37 @@ class AddonArgs:
155
156
  return pulumi.get(self, "service_account_role_arn")
156
157
 
157
158
  @service_account_role_arn.setter
158
- def service_account_role_arn(self, value: Optional[pulumi.Input[str]]):
159
+ def service_account_role_arn(self, value: Optional[pulumi.Input[builtins.str]]):
159
160
  pulumi.set(self, "service_account_role_arn", value)
160
161
 
161
162
  @property
162
163
  @pulumi.getter
163
- def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[Mapping[str, pulumi.Input[str]]]]]]:
164
+ def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]]]:
164
165
  """
165
166
  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.
166
167
  """
167
168
  return pulumi.get(self, "tags")
168
169
 
169
170
  @tags.setter
170
- def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[Mapping[str, pulumi.Input[str]]]]]]):
171
+ def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]]]):
171
172
  pulumi.set(self, "tags", value)
172
173
 
173
174
 
175
+ @pulumi.type_token("eks:index:Addon")
174
176
  class Addon(pulumi.ComponentResource):
175
177
  @overload
176
178
  def __init__(__self__,
177
179
  resource_name: str,
178
180
  opts: Optional[pulumi.ResourceOptions] = None,
179
- addon_name: Optional[pulumi.Input[str]] = None,
180
- addon_version: Optional[pulumi.Input[str]] = None,
181
+ addon_name: Optional[pulumi.Input[builtins.str]] = None,
182
+ addon_version: Optional[pulumi.Input[builtins.str]] = None,
181
183
  cluster: Optional[pulumi.Input['Cluster']] = None,
182
184
  configuration_values: Optional[pulumi.Input[Mapping[str, Any]]] = None,
183
- preserve: Optional[pulumi.Input[bool]] = None,
184
- resolve_conflicts_on_create: Optional[pulumi.Input[str]] = None,
185
- resolve_conflicts_on_update: Optional[pulumi.Input[str]] = None,
186
- service_account_role_arn: Optional[pulumi.Input[str]] = None,
187
- tags: Optional[pulumi.Input[Sequence[pulumi.Input[Mapping[str, pulumi.Input[str]]]]]] = 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,
188
190
  __props__=None):
189
191
  """
190
192
  Addon manages an EKS add-on.
@@ -192,17 +194,17 @@ class Addon(pulumi.ComponentResource):
192
194
 
193
195
  :param str resource_name: The name of the resource.
194
196
  :param pulumi.ResourceOptions opts: Options for the resource.
195
- :param pulumi.Input[str] addon_name: Name of the EKS add-on. The name must match one of the names returned by describe-addon-versions.
196
- :param pulumi.Input[str] addon_version: The version of the EKS add-on. The version must match one of the versions returned by describe-addon-versions.
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.
197
199
  :param pulumi.Input['Cluster'] cluster: The target EKS cluster.
198
200
  :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.
199
- :param pulumi.Input[bool] preserve: Indicates if you want to preserve the created resources when deleting the EKS add-on.
200
- :param pulumi.Input[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.
201
- :param pulumi.Input[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.
202
- :param pulumi.Input[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.
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.
203
205
 
204
206
  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.
205
- :param pulumi.Input[Sequence[pulumi.Input[Mapping[str, pulumi.Input[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.
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
208
  """
207
209
  ...
208
210
  @overload
@@ -229,15 +231,15 @@ class Addon(pulumi.ComponentResource):
229
231
  def _internal_init(__self__,
230
232
  resource_name: str,
231
233
  opts: Optional[pulumi.ResourceOptions] = None,
232
- addon_name: Optional[pulumi.Input[str]] = None,
233
- addon_version: Optional[pulumi.Input[str]] = None,
234
+ addon_name: Optional[pulumi.Input[builtins.str]] = None,
235
+ addon_version: Optional[pulumi.Input[builtins.str]] = None,
234
236
  cluster: Optional[pulumi.Input['Cluster']] = None,
235
237
  configuration_values: Optional[pulumi.Input[Mapping[str, Any]]] = None,
236
- preserve: Optional[pulumi.Input[bool]] = None,
237
- resolve_conflicts_on_create: Optional[pulumi.Input[str]] = None,
238
- resolve_conflicts_on_update: Optional[pulumi.Input[str]] = None,
239
- service_account_role_arn: Optional[pulumi.Input[str]] = None,
240
- tags: Optional[pulumi.Input[Sequence[pulumi.Input[Mapping[str, pulumi.Input[str]]]]]] = 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,
241
243
  __props__=None):
242
244
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
243
245
  if not isinstance(opts, pulumi.ResourceOptions):