From 75cc4e74a39809938641989dc551196bf6164948 Mon Sep 17 00:00:00 2001 From: Ramon Quitales Date: Fri, 17 May 2024 12:32:18 -0700 Subject: [PATCH] chore: run `make build_java` --- .../src/main/java/com/pulumi/eks/Addon.java | 52 +++ .../main/java/com/pulumi/eks/AddonArgs.java | 403 ++++++++++++++++++ 2 files changed, 455 insertions(+) create mode 100644 sdk/java/src/main/java/com/pulumi/eks/Addon.java create mode 100644 sdk/java/src/main/java/com/pulumi/eks/AddonArgs.java diff --git a/sdk/java/src/main/java/com/pulumi/eks/Addon.java b/sdk/java/src/main/java/com/pulumi/eks/Addon.java new file mode 100644 index 000000000..ac40941d3 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/eks/Addon.java @@ -0,0 +1,52 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.eks; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.ResourceType; +import com.pulumi.core.internal.Codegen; +import com.pulumi.eks.AddonArgs; +import com.pulumi.eks.Utilities; +import javax.annotation.Nullable; + +/** + * Addon manages an EKS add-on. + * For more information about supported add-ons, see: https://docs.aws.amazon.com/eks/latest/userguide/eks-add-ons.html + * + */ +@ResourceType(type="eks:index:Addon") +public class Addon extends com.pulumi.resources.ComponentResource { + /** + * + * @param name The _unique_ name of the resulting resource. + */ + public Addon(String name) { + this(name, AddonArgs.Empty); + } + /** + * + * @param name The _unique_ name of the resulting resource. + * @param args The arguments to use to populate this resource's properties. + */ + public Addon(String name, AddonArgs args) { + this(name, args, null); + } + /** + * + * @param name The _unique_ name of the resulting resource. + * @param args The arguments to use to populate this resource's properties. + * @param options A bag of options that control this resource's behavior. + */ + public Addon(String name, AddonArgs args, @Nullable com.pulumi.resources.ComponentResourceOptions options) { + super("eks:index:Addon", name, args == null ? AddonArgs.Empty : args, makeResourceOptions(options, Codegen.empty()), true); + } + + private static com.pulumi.resources.ComponentResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.ComponentResourceOptions options, @Nullable Output id) { + var defaultOptions = com.pulumi.resources.ComponentResourceOptions.builder() + .version(Utilities.getVersion()) + .build(); + return com.pulumi.resources.ComponentResourceOptions.merge(defaultOptions, options, id); + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/eks/AddonArgs.java b/sdk/java/src/main/java/com/pulumi/eks/AddonArgs.java new file mode 100644 index 000000000..a076457b0 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/eks/AddonArgs.java @@ -0,0 +1,403 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.eks; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import com.pulumi.eks.Cluster; +import java.lang.Boolean; +import java.lang.String; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class AddonArgs extends com.pulumi.resources.ResourceArgs { + + public static final AddonArgs Empty = new AddonArgs(); + + /** + * Name of the EKS add-on. The name must match one of the names returned by describe-addon-versions. + * + */ + @Import(name="addonName", required=true) + private Output addonName; + + /** + * @return Name of the EKS add-on. The name must match one of the names returned by describe-addon-versions. + * + */ + public Output addonName() { + return this.addonName; + } + + /** + * The version of the EKS add-on. The version must match one of the versions returned by describe-addon-versions. + * + */ + @Import(name="addonVersion") + private @Nullable Output addonVersion; + + /** + * @return The version of the EKS add-on. The version must match one of the versions returned by describe-addon-versions. + * + */ + public Optional> addonVersion() { + return Optional.ofNullable(this.addonVersion); + } + + /** + * The target EKS cluster. + * + */ + @Import(name="cluster", required=true) + private Output cluster; + + /** + * @return The target EKS cluster. + * + */ + public Output cluster() { + return this.cluster; + } + + /** + * Custom configuration values for addons with single JSON string. This JSON string value must match the JSON schema derived from describe-addon-configuration. + * + */ + @Import(name="configurationValues") + private @Nullable Output configurationValues; + + /** + * @return Custom configuration values for addons with single JSON string. This JSON string value must match the JSON schema derived from describe-addon-configuration. + * + */ + public Optional> configurationValues() { + return Optional.ofNullable(this.configurationValues); + } + + /** + * Indicates if you want to preserve the created resources when deleting the EKS add-on. + * + */ + @Import(name="preserve") + private @Nullable Output preserve; + + /** + * @return Indicates if you want to preserve the created resources when deleting the EKS add-on. + * + */ + public Optional> preserve() { + return Optional.ofNullable(this.preserve); + } + + /** + * 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. + * + */ + @Import(name="resolveConflictsOnCreate") + private @Nullable Output resolveConflictsOnCreate; + + /** + * @return 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. + * + */ + public Optional> resolveConflictsOnCreate() { + return Optional.ofNullable(this.resolveConflictsOnCreate); + } + + /** + * 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. + * + */ + @Import(name="resolveConflictsOnUpdate") + private @Nullable Output resolveConflictsOnUpdate; + + /** + * @return 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. + * + */ + public Optional> resolveConflictsOnUpdate() { + return Optional.ofNullable(this.resolveConflictsOnUpdate); + } + + /** + * 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. + * + * 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. + * + */ + @Import(name="serviceAccountRoleArn") + private @Nullable Output serviceAccountRoleArn; + + /** + * @return 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. + * + * 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. + * + */ + public Optional> serviceAccountRoleArn() { + return Optional.ofNullable(this.serviceAccountRoleArn); + } + + /** + * 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. + * + */ + @Import(name="tags") + private @Nullable Output>> tags; + + /** + * @return 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. + * + */ + public Optional>>> tags() { + return Optional.ofNullable(this.tags); + } + + private AddonArgs() {} + + private AddonArgs(AddonArgs $) { + this.addonName = $.addonName; + this.addonVersion = $.addonVersion; + this.cluster = $.cluster; + this.configurationValues = $.configurationValues; + this.preserve = $.preserve; + this.resolveConflictsOnCreate = $.resolveConflictsOnCreate; + this.resolveConflictsOnUpdate = $.resolveConflictsOnUpdate; + this.serviceAccountRoleArn = $.serviceAccountRoleArn; + this.tags = $.tags; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(AddonArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private AddonArgs $; + + public Builder() { + $ = new AddonArgs(); + } + + public Builder(AddonArgs defaults) { + $ = new AddonArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param addonName Name of the EKS add-on. The name must match one of the names returned by describe-addon-versions. + * + * @return builder + * + */ + public Builder addonName(Output addonName) { + $.addonName = addonName; + return this; + } + + /** + * @param addonName Name of the EKS add-on. The name must match one of the names returned by describe-addon-versions. + * + * @return builder + * + */ + public Builder addonName(String addonName) { + return addonName(Output.of(addonName)); + } + + /** + * @param addonVersion The version of the EKS add-on. The version must match one of the versions returned by describe-addon-versions. + * + * @return builder + * + */ + public Builder addonVersion(@Nullable Output addonVersion) { + $.addonVersion = addonVersion; + return this; + } + + /** + * @param addonVersion The version of the EKS add-on. The version must match one of the versions returned by describe-addon-versions. + * + * @return builder + * + */ + public Builder addonVersion(String addonVersion) { + return addonVersion(Output.of(addonVersion)); + } + + /** + * @param cluster The target EKS cluster. + * + * @return builder + * + */ + public Builder cluster(Output cluster) { + $.cluster = cluster; + return this; + } + + /** + * @param cluster The target EKS cluster. + * + * @return builder + * + */ + public Builder cluster(Cluster cluster) { + return cluster(Output.of(cluster)); + } + + /** + * @param configurationValues Custom configuration values for addons with single JSON string. This JSON string value must match the JSON schema derived from describe-addon-configuration. + * + * @return builder + * + */ + public Builder configurationValues(@Nullable Output configurationValues) { + $.configurationValues = configurationValues; + return this; + } + + /** + * @param configurationValues Custom configuration values for addons with single JSON string. This JSON string value must match the JSON schema derived from describe-addon-configuration. + * + * @return builder + * + */ + public Builder configurationValues(String configurationValues) { + return configurationValues(Output.of(configurationValues)); + } + + /** + * @param preserve Indicates if you want to preserve the created resources when deleting the EKS add-on. + * + * @return builder + * + */ + public Builder preserve(@Nullable Output preserve) { + $.preserve = preserve; + return this; + } + + /** + * @param preserve Indicates if you want to preserve the created resources when deleting the EKS add-on. + * + * @return builder + * + */ + public Builder preserve(Boolean preserve) { + return preserve(Output.of(preserve)); + } + + /** + * @param resolveConflictsOnCreate 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. + * + * @return builder + * + */ + public Builder resolveConflictsOnCreate(@Nullable Output resolveConflictsOnCreate) { + $.resolveConflictsOnCreate = resolveConflictsOnCreate; + return this; + } + + /** + * @param resolveConflictsOnCreate 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. + * + * @return builder + * + */ + public Builder resolveConflictsOnCreate(String resolveConflictsOnCreate) { + return resolveConflictsOnCreate(Output.of(resolveConflictsOnCreate)); + } + + /** + * @param resolveConflictsOnUpdate 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. + * + * @return builder + * + */ + public Builder resolveConflictsOnUpdate(@Nullable Output resolveConflictsOnUpdate) { + $.resolveConflictsOnUpdate = resolveConflictsOnUpdate; + return this; + } + + /** + * @param resolveConflictsOnUpdate 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. + * + * @return builder + * + */ + public Builder resolveConflictsOnUpdate(String resolveConflictsOnUpdate) { + return resolveConflictsOnUpdate(Output.of(resolveConflictsOnUpdate)); + } + + /** + * @param 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. + * + * 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. + * + * @return builder + * + */ + public Builder serviceAccountRoleArn(@Nullable Output serviceAccountRoleArn) { + $.serviceAccountRoleArn = serviceAccountRoleArn; + return this; + } + + /** + * @param 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. + * + * 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. + * + * @return builder + * + */ + public Builder serviceAccountRoleArn(String serviceAccountRoleArn) { + return serviceAccountRoleArn(Output.of(serviceAccountRoleArn)); + } + + /** + * @param 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. + * + * @return builder + * + */ + public Builder tags(@Nullable Output>> tags) { + $.tags = tags; + return this; + } + + /** + * @param 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. + * + * @return builder + * + */ + public Builder tags(List> tags) { + return tags(Output.of(tags)); + } + + /** + * @param 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. + * + * @return builder + * + */ + public Builder tags(Map... tags) { + return tags(List.of(tags)); + } + + public AddonArgs build() { + $.addonName = Objects.requireNonNull($.addonName, "expected parameter 'addonName' to be non-null"); + $.cluster = Objects.requireNonNull($.cluster, "expected parameter 'cluster' to be non-null"); + return $; + } + } + +}