Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Creates an Amazon EKS add-on.
Amazon EKS add-ons help to automate the provisioning and lifecycle management of common operational software for Amazon EKS clusters. For more information, see Amazon EKS add-ons in the Amazon EKS User Guide.
Synopsis
- data CreateAddon = CreateAddon' {}
- newCreateAddon :: Text -> Text -> CreateAddon
- createAddon_addonVersion :: Lens' CreateAddon (Maybe Text)
- createAddon_clientRequestToken :: Lens' CreateAddon (Maybe Text)
- createAddon_configurationValues :: Lens' CreateAddon (Maybe Text)
- createAddon_resolveConflicts :: Lens' CreateAddon (Maybe ResolveConflicts)
- createAddon_serviceAccountRoleArn :: Lens' CreateAddon (Maybe Text)
- createAddon_tags :: Lens' CreateAddon (Maybe (HashMap Text Text))
- createAddon_clusterName :: Lens' CreateAddon Text
- createAddon_addonName :: Lens' CreateAddon Text
- data CreateAddonResponse = CreateAddonResponse' {
- addon :: Maybe Addon
- httpStatus :: Int
- newCreateAddonResponse :: Int -> CreateAddonResponse
- createAddonResponse_addon :: Lens' CreateAddonResponse (Maybe Addon)
- createAddonResponse_httpStatus :: Lens' CreateAddonResponse Int
Creating a Request
data CreateAddon Source #
See: newCreateAddon
smart constructor.
CreateAddon' | |
|
Instances
Create a value of CreateAddon
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateAddon
, createAddon_addonVersion
- The version of the add-on. The version must match one of the versions
returned by
DescribeAddonVersions
.
CreateAddon
, createAddon_clientRequestToken
- A unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
CreateAddon
, createAddon_configurationValues
- The set of configuration values for the add-on that's created. The
values that you provide are validated against the schema in
DescribeAddonConfiguration
.
$sel:resolveConflicts:CreateAddon'
, createAddon_resolveConflicts
- How to resolve field value conflicts for an Amazon EKS add-on. Conflicts
are handled based on the value you choose:
- None – 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.
- Overwrite – 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.
- Preserve – Not supported. You can set this value when updating an add-on though. For more information, see UpdateAddon.
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.
CreateAddon
, createAddon_serviceAccountRoleArn
- 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.
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.
CreateAddon
, createAddon_tags
- The metadata to apply to the cluster to assist with categorization and
organization. Each tag consists of a key and an optional value. You
define both.
CreateAddon
, createAddon_clusterName
- The name of the cluster to create the add-on for.
CreateAddon
, createAddon_addonName
- The name of the add-on. The name must match one of the names that
DescribeAddonVersions
returns.
Request Lenses
createAddon_addonVersion :: Lens' CreateAddon (Maybe Text) Source #
The version of the add-on. The version must match one of the versions returned by DescribeAddonVersions .
createAddon_clientRequestToken :: Lens' CreateAddon (Maybe Text) Source #
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
createAddon_configurationValues :: Lens' CreateAddon (Maybe Text) Source #
The set of configuration values for the add-on that's created. The values that you provide are validated against the schema in DescribeAddonConfiguration .
createAddon_resolveConflicts :: Lens' CreateAddon (Maybe ResolveConflicts) Source #
How to resolve field value conflicts for an Amazon EKS add-on. Conflicts are handled based on the value you choose:
- None – 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.
- Overwrite – 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.
- Preserve – Not supported. You can set this value when updating an add-on though. For more information, see UpdateAddon.
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.
createAddon_serviceAccountRoleArn :: Lens' CreateAddon (Maybe Text) Source #
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.
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.
createAddon_tags :: Lens' CreateAddon (Maybe (HashMap Text Text)) Source #
The metadata to apply to the cluster to assist with categorization and organization. Each tag consists of a key and an optional value. You define both.
createAddon_clusterName :: Lens' CreateAddon Text Source #
The name of the cluster to create the add-on for.
createAddon_addonName :: Lens' CreateAddon Text Source #
The name of the add-on. The name must match one of the names that DescribeAddonVersions returns.
Destructuring the Response
data CreateAddonResponse Source #
See: newCreateAddonResponse
smart constructor.
CreateAddonResponse' | |
|
Instances
newCreateAddonResponse Source #
Create a value of CreateAddonResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:addon:CreateAddonResponse'
, createAddonResponse_addon
- Undocumented member.
$sel:httpStatus:CreateAddonResponse'
, createAddonResponse_httpStatus
- The response's http status code.
Response Lenses
createAddonResponse_addon :: Lens' CreateAddonResponse (Maybe Addon) Source #
Undocumented member.
createAddonResponse_httpStatus :: Lens' CreateAddonResponse Int Source #
The response's http status code.