Skip to content

Commit

Permalink
feat(client-eks): Adds support for EKS add-ons pod identity associati…
Browse files Browse the repository at this point in the history
…ons integration
  • Loading branch information
awstools committed Jun 3, 2024
1 parent 822d606 commit d391abe
Show file tree
Hide file tree
Showing 25 changed files with 385 additions and 125 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export interface AssociateEncryptionConfigCommandOutput extends AssociateEncrypt
* // type: "VersionUpdate" || "EndpointAccessUpdate" || "LoggingUpdate" || "ConfigUpdate" || "AssociateIdentityProviderConfig" || "DisassociateIdentityProviderConfig" || "AssociateEncryptionConfig" || "AddonUpdate" || "VpcConfigUpdate" || "AccessConfigUpdate",
* // params: [ // UpdateParams
* // { // UpdateParam
* // type: "Version" || "PlatformVersion" || "EndpointPrivateAccess" || "EndpointPublicAccess" || "ClusterLogging" || "DesiredSize" || "LabelsToAdd" || "LabelsToRemove" || "TaintsToAdd" || "TaintsToRemove" || "MaxSize" || "MinSize" || "ReleaseVersion" || "PublicAccessCidrs" || "LaunchTemplateName" || "LaunchTemplateVersion" || "IdentityProviderConfig" || "EncryptionConfig" || "AddonVersion" || "ServiceAccountRoleArn" || "ResolveConflicts" || "MaxUnavailable" || "MaxUnavailablePercentage" || "ConfigurationValues" || "SecurityGroups" || "Subnets" || "AuthenticationMode",
* // type: "Version" || "PlatformVersion" || "EndpointPrivateAccess" || "EndpointPublicAccess" || "ClusterLogging" || "DesiredSize" || "LabelsToAdd" || "LabelsToRemove" || "TaintsToAdd" || "TaintsToRemove" || "MaxSize" || "MinSize" || "ReleaseVersion" || "PublicAccessCidrs" || "LaunchTemplateName" || "LaunchTemplateVersion" || "IdentityProviderConfig" || "EncryptionConfig" || "AddonVersion" || "ServiceAccountRoleArn" || "ResolveConflicts" || "MaxUnavailable" || "MaxUnavailablePercentage" || "ConfigurationValues" || "SecurityGroups" || "Subnets" || "AuthenticationMode" || "PodIdentityAssociations",
* // value: "STRING_VALUE",
* // },
* // ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export interface AssociateIdentityProviderConfigCommandOutput
* // type: "VersionUpdate" || "EndpointAccessUpdate" || "LoggingUpdate" || "ConfigUpdate" || "AssociateIdentityProviderConfig" || "DisassociateIdentityProviderConfig" || "AssociateEncryptionConfig" || "AddonUpdate" || "VpcConfigUpdate" || "AccessConfigUpdate",
* // params: [ // UpdateParams
* // { // UpdateParam
* // type: "Version" || "PlatformVersion" || "EndpointPrivateAccess" || "EndpointPublicAccess" || "ClusterLogging" || "DesiredSize" || "LabelsToAdd" || "LabelsToRemove" || "TaintsToAdd" || "TaintsToRemove" || "MaxSize" || "MinSize" || "ReleaseVersion" || "PublicAccessCidrs" || "LaunchTemplateName" || "LaunchTemplateVersion" || "IdentityProviderConfig" || "EncryptionConfig" || "AddonVersion" || "ServiceAccountRoleArn" || "ResolveConflicts" || "MaxUnavailable" || "MaxUnavailablePercentage" || "ConfigurationValues" || "SecurityGroups" || "Subnets" || "AuthenticationMode",
* // type: "Version" || "PlatformVersion" || "EndpointPrivateAccess" || "EndpointPublicAccess" || "ClusterLogging" || "DesiredSize" || "LabelsToAdd" || "LabelsToRemove" || "TaintsToAdd" || "TaintsToRemove" || "MaxSize" || "MinSize" || "ReleaseVersion" || "PublicAccessCidrs" || "LaunchTemplateName" || "LaunchTemplateVersion" || "IdentityProviderConfig" || "EncryptionConfig" || "AddonVersion" || "ServiceAccountRoleArn" || "ResolveConflicts" || "MaxUnavailable" || "MaxUnavailablePercentage" || "ConfigurationValues" || "SecurityGroups" || "Subnets" || "AuthenticationMode" || "PodIdentityAssociations",
* // value: "STRING_VALUE",
* // },
* // ],
Expand Down
11 changes: 10 additions & 1 deletion clients/client-eks/src/commands/CreateAddonCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ export interface CreateAddonCommandOutput extends CreateAddonResponse, __Metadat
* "<keys>": "STRING_VALUE",
* },
* configurationValues: "STRING_VALUE",
* podIdentityAssociations: [ // AddonPodIdentityAssociationsList
* { // AddonPodIdentityAssociations
* serviceAccount: "STRING_VALUE", // required
* roleArn: "STRING_VALUE", // required
* },
* ],
* };
* const command = new CreateAddonCommand(input);
* const response = await client.send(command);
Expand All @@ -60,7 +66,7 @@ export interface CreateAddonCommandOutput extends CreateAddonResponse, __Metadat
* // health: { // AddonHealth
* // issues: [ // AddonIssueList
* // { // AddonIssue
* // code: "AccessDenied" || "InternalFailure" || "ClusterUnreachable" || "InsufficientNumberOfReplicas" || "ConfigurationConflict" || "AdmissionRequestDenied" || "UnsupportedAddonModification" || "K8sResourceNotFound",
* // code: "AccessDenied" || "InternalFailure" || "ClusterUnreachable" || "InsufficientNumberOfReplicas" || "ConfigurationConflict" || "AdmissionRequestDenied" || "UnsupportedAddonModification" || "K8sResourceNotFound" || "AddonSubscriptionNeeded" || "AddonPermissionFailure",
* // message: "STRING_VALUE",
* // resourceIds: [ // StringList
* // "STRING_VALUE",
Expand All @@ -82,6 +88,9 @@ export interface CreateAddonCommandOutput extends CreateAddonResponse, __Metadat
* // productUrl: "STRING_VALUE",
* // },
* // configurationValues: "STRING_VALUE",
* // podIdentityAssociations: [
* // "STRING_VALUE",
* // ],
* // },
* // };
*
Expand Down
6 changes: 3 additions & 3 deletions clients/client-eks/src/commands/CreateClusterCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ export interface CreateClusterCommandOutput extends CreateClusterResponse, __Met
* </note>
* <p>In most cases, it takes several minutes to create a cluster. After you create an
* Amazon EKS cluster, you must configure your Kubernetes tooling to communicate
* with the API server and launch nodes into your cluster. For more information, see <a href="https://docs.aws.amazon.com/eks/latest/userguide/managing-auth.html">Managing Cluster
* Authentication</a> and <a href="https://docs.aws.amazon.com/eks/latest/userguide/launch-workers.html">Launching Amazon EKS nodes</a> in the
* <i>Amazon EKS User Guide</i>.</p>
* with the API server and launch nodes into your cluster. For more information, see <a href="https://docs.aws.amazon.com/eks/latest/userguide/cluster-auth.html">Allowing users to
* access your cluster</a> and <a href="https://docs.aws.amazon.com/eks/latest/userguide/launch-workers.html">Launching
* Amazon EKS nodes</a> in the <i>Amazon EKS User Guide</i>.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
3 changes: 1 addition & 2 deletions clients/client-eks/src/commands/CreateNodegroupCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ export interface CreateNodegroupCommandOutput extends CreateNodegroupResponse, _
* <p>You can only create a node group for your cluster that is equal to the current Kubernetes
* version for the cluster. All node groups are created with the latest AMI release version
* for the respective minor Kubernetes version of the cluster, unless you deploy a custom AMI
* using a launch template. For more information about using launch templates, see <a href="https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html">Launch
* template support</a>.</p>
* using a launch template. For more information about using launch templates, see <a href="https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html">Customizing managed nodes with launch templates</a>.</p>
* <p>An Amazon EKS managed node group is an Amazon EC2
* Auto Scaling group and associated Amazon EC2 instances that are managed by
* Amazon Web Services for an Amazon EKS cluster. For more information, see
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export interface CreatePodIdentityAssociationCommandOutput
* // },
* // createdAt: new Date("TIMESTAMP"),
* // modifiedAt: new Date("TIMESTAMP"),
* // ownerArn: "STRING_VALUE",
* // },
* // };
*
Expand Down
5 changes: 4 additions & 1 deletion clients/client-eks/src/commands/DeleteAddonCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export interface DeleteAddonCommandOutput extends DeleteAddonResponse, __Metadat
* // health: { // AddonHealth
* // issues: [ // AddonIssueList
* // { // AddonIssue
* // code: "AccessDenied" || "InternalFailure" || "ClusterUnreachable" || "InsufficientNumberOfReplicas" || "ConfigurationConflict" || "AdmissionRequestDenied" || "UnsupportedAddonModification" || "K8sResourceNotFound",
* // code: "AccessDenied" || "InternalFailure" || "ClusterUnreachable" || "InsufficientNumberOfReplicas" || "ConfigurationConflict" || "AdmissionRequestDenied" || "UnsupportedAddonModification" || "K8sResourceNotFound" || "AddonSubscriptionNeeded" || "AddonPermissionFailure",
* // message: "STRING_VALUE",
* // resourceIds: [ // StringList
* // "STRING_VALUE",
Expand All @@ -74,6 +74,9 @@ export interface DeleteAddonCommandOutput extends DeleteAddonResponse, __Metadat
* // productUrl: "STRING_VALUE",
* // },
* // configurationValues: "STRING_VALUE",
* // podIdentityAssociations: [
* // "STRING_VALUE",
* // ],
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export interface DeletePodIdentityAssociationCommandOutput
* // },
* // createdAt: new Date("TIMESTAMP"),
* // modifiedAt: new Date("TIMESTAMP"),
* // ownerArn: "STRING_VALUE",
* // },
* // };
*
Expand Down
5 changes: 4 additions & 1 deletion clients/client-eks/src/commands/DescribeAddonCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export interface DescribeAddonCommandOutput extends DescribeAddonResponse, __Met
* // health: { // AddonHealth
* // issues: [ // AddonIssueList
* // { // AddonIssue
* // code: "AccessDenied" || "InternalFailure" || "ClusterUnreachable" || "InsufficientNumberOfReplicas" || "ConfigurationConflict" || "AdmissionRequestDenied" || "UnsupportedAddonModification" || "K8sResourceNotFound",
* // code: "AccessDenied" || "InternalFailure" || "ClusterUnreachable" || "InsufficientNumberOfReplicas" || "ConfigurationConflict" || "AdmissionRequestDenied" || "UnsupportedAddonModification" || "K8sResourceNotFound" || "AddonSubscriptionNeeded" || "AddonPermissionFailure",
* // message: "STRING_VALUE",
* // resourceIds: [ // StringList
* // "STRING_VALUE",
Expand All @@ -71,6 +71,9 @@ export interface DescribeAddonCommandOutput extends DescribeAddonResponse, __Met
* // productUrl: "STRING_VALUE",
* // },
* // configurationValues: "STRING_VALUE",
* // podIdentityAssociations: [
* // "STRING_VALUE",
* // ],
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ export interface DescribeAddonConfigurationCommandOutput extends DescribeAddonCo
* // addonName: "STRING_VALUE",
* // addonVersion: "STRING_VALUE",
* // configurationSchema: "STRING_VALUE",
* // podIdentityConfiguration: [ // AddonPodIdentityConfigurationList
* // { // AddonPodIdentityConfiguration
* // serviceAccount: "STRING_VALUE",
* // recommendedManagedPolicies: [ // StringList
* // "STRING_VALUE",
* // ],
* // },
* // ],
* // };
*
* ```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export interface DescribeAddonVersionsCommandOutput extends DescribeAddonVersion
* // },
* // ],
* // requiresConfiguration: true || false,
* // requiresIamPermissions: true || false,
* // },
* // ],
* // publisher: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export interface DescribePodIdentityAssociationCommandOutput
* // },
* // createdAt: new Date("TIMESTAMP"),
* // modifiedAt: new Date("TIMESTAMP"),
* // ownerArn: "STRING_VALUE",
* // },
* // };
*
Expand Down
2 changes: 1 addition & 1 deletion clients/client-eks/src/commands/DescribeUpdateCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export interface DescribeUpdateCommandOutput extends DescribeUpdateResponse, __M
* // type: "VersionUpdate" || "EndpointAccessUpdate" || "LoggingUpdate" || "ConfigUpdate" || "AssociateIdentityProviderConfig" || "DisassociateIdentityProviderConfig" || "AssociateEncryptionConfig" || "AddonUpdate" || "VpcConfigUpdate" || "AccessConfigUpdate",
* // params: [ // UpdateParams
* // { // UpdateParam
* // type: "Version" || "PlatformVersion" || "EndpointPrivateAccess" || "EndpointPublicAccess" || "ClusterLogging" || "DesiredSize" || "LabelsToAdd" || "LabelsToRemove" || "TaintsToAdd" || "TaintsToRemove" || "MaxSize" || "MinSize" || "ReleaseVersion" || "PublicAccessCidrs" || "LaunchTemplateName" || "LaunchTemplateVersion" || "IdentityProviderConfig" || "EncryptionConfig" || "AddonVersion" || "ServiceAccountRoleArn" || "ResolveConflicts" || "MaxUnavailable" || "MaxUnavailablePercentage" || "ConfigurationValues" || "SecurityGroups" || "Subnets" || "AuthenticationMode",
* // type: "Version" || "PlatformVersion" || "EndpointPrivateAccess" || "EndpointPublicAccess" || "ClusterLogging" || "DesiredSize" || "LabelsToAdd" || "LabelsToRemove" || "TaintsToAdd" || "TaintsToRemove" || "MaxSize" || "MinSize" || "ReleaseVersion" || "PublicAccessCidrs" || "LaunchTemplateName" || "LaunchTemplateVersion" || "IdentityProviderConfig" || "EncryptionConfig" || "AddonVersion" || "ServiceAccountRoleArn" || "ResolveConflicts" || "MaxUnavailable" || "MaxUnavailablePercentage" || "ConfigurationValues" || "SecurityGroups" || "Subnets" || "AuthenticationMode" || "PodIdentityAssociations",
* // value: "STRING_VALUE",
* // },
* // ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export interface DisassociateIdentityProviderConfigCommandOutput
* // type: "VersionUpdate" || "EndpointAccessUpdate" || "LoggingUpdate" || "ConfigUpdate" || "AssociateIdentityProviderConfig" || "DisassociateIdentityProviderConfig" || "AssociateEncryptionConfig" || "AddonUpdate" || "VpcConfigUpdate" || "AccessConfigUpdate",
* // params: [ // UpdateParams
* // { // UpdateParam
* // type: "Version" || "PlatformVersion" || "EndpointPrivateAccess" || "EndpointPublicAccess" || "ClusterLogging" || "DesiredSize" || "LabelsToAdd" || "LabelsToRemove" || "TaintsToAdd" || "TaintsToRemove" || "MaxSize" || "MinSize" || "ReleaseVersion" || "PublicAccessCidrs" || "LaunchTemplateName" || "LaunchTemplateVersion" || "IdentityProviderConfig" || "EncryptionConfig" || "AddonVersion" || "ServiceAccountRoleArn" || "ResolveConflicts" || "MaxUnavailable" || "MaxUnavailablePercentage" || "ConfigurationValues" || "SecurityGroups" || "Subnets" || "AuthenticationMode",
* // type: "Version" || "PlatformVersion" || "EndpointPrivateAccess" || "EndpointPublicAccess" || "ClusterLogging" || "DesiredSize" || "LabelsToAdd" || "LabelsToRemove" || "TaintsToAdd" || "TaintsToRemove" || "MaxSize" || "MinSize" || "ReleaseVersion" || "PublicAccessCidrs" || "LaunchTemplateName" || "LaunchTemplateVersion" || "IdentityProviderConfig" || "EncryptionConfig" || "AddonVersion" || "ServiceAccountRoleArn" || "ResolveConflicts" || "MaxUnavailable" || "MaxUnavailablePercentage" || "ConfigurationValues" || "SecurityGroups" || "Subnets" || "AuthenticationMode" || "PodIdentityAssociations",
* // value: "STRING_VALUE",
* // },
* // ],
Expand Down
4 changes: 3 additions & 1 deletion clients/client-eks/src/commands/ListInsightsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ export interface ListInsightsCommandInput extends ListInsightsRequest {}
export interface ListInsightsCommandOutput extends ListInsightsResponse, __MetadataBearer {}

/**
* <p>Returns a list of all insights checked for against the specified cluster. You can filter which insights are returned by category, associated Kubernetes version, and status.</p>
* <p>Returns a list of all insights checked for against the specified cluster. You can
* filter which insights are returned by category, associated Kubernetes version, and
* status.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export interface ListPodIdentityAssociationsCommandOutput
* // serviceAccount: "STRING_VALUE",
* // associationArn: "STRING_VALUE",
* // associationId: "STRING_VALUE",
* // ownerArn: "STRING_VALUE",
* // },
* // ],
* // nextToken: "STRING_VALUE",
Expand Down
8 changes: 7 additions & 1 deletion clients/client-eks/src/commands/UpdateAddonCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ export interface UpdateAddonCommandOutput extends UpdateAddonResponse, __Metadat
* resolveConflicts: "OVERWRITE" || "NONE" || "PRESERVE",
* clientRequestToken: "STRING_VALUE",
* configurationValues: "STRING_VALUE",
* podIdentityAssociations: [ // AddonPodIdentityAssociationsList
* { // AddonPodIdentityAssociations
* serviceAccount: "STRING_VALUE", // required
* roleArn: "STRING_VALUE", // required
* },
* ],
* };
* const command = new UpdateAddonCommand(input);
* const response = await client.send(command);
Expand All @@ -52,7 +58,7 @@ export interface UpdateAddonCommandOutput extends UpdateAddonResponse, __Metadat
* // type: "VersionUpdate" || "EndpointAccessUpdate" || "LoggingUpdate" || "ConfigUpdate" || "AssociateIdentityProviderConfig" || "DisassociateIdentityProviderConfig" || "AssociateEncryptionConfig" || "AddonUpdate" || "VpcConfigUpdate" || "AccessConfigUpdate",
* // params: [ // UpdateParams
* // { // UpdateParam
* // type: "Version" || "PlatformVersion" || "EndpointPrivateAccess" || "EndpointPublicAccess" || "ClusterLogging" || "DesiredSize" || "LabelsToAdd" || "LabelsToRemove" || "TaintsToAdd" || "TaintsToRemove" || "MaxSize" || "MinSize" || "ReleaseVersion" || "PublicAccessCidrs" || "LaunchTemplateName" || "LaunchTemplateVersion" || "IdentityProviderConfig" || "EncryptionConfig" || "AddonVersion" || "ServiceAccountRoleArn" || "ResolveConflicts" || "MaxUnavailable" || "MaxUnavailablePercentage" || "ConfigurationValues" || "SecurityGroups" || "Subnets" || "AuthenticationMode",
* // type: "Version" || "PlatformVersion" || "EndpointPrivateAccess" || "EndpointPublicAccess" || "ClusterLogging" || "DesiredSize" || "LabelsToAdd" || "LabelsToRemove" || "TaintsToAdd" || "TaintsToRemove" || "MaxSize" || "MinSize" || "ReleaseVersion" || "PublicAccessCidrs" || "LaunchTemplateName" || "LaunchTemplateVersion" || "IdentityProviderConfig" || "EncryptionConfig" || "AddonVersion" || "ServiceAccountRoleArn" || "ResolveConflicts" || "MaxUnavailable" || "MaxUnavailablePercentage" || "ConfigurationValues" || "SecurityGroups" || "Subnets" || "AuthenticationMode" || "PodIdentityAssociations",
* // value: "STRING_VALUE",
* // },
* // ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export interface UpdateClusterConfigCommandOutput extends UpdateClusterConfigRes
* // type: "VersionUpdate" || "EndpointAccessUpdate" || "LoggingUpdate" || "ConfigUpdate" || "AssociateIdentityProviderConfig" || "DisassociateIdentityProviderConfig" || "AssociateEncryptionConfig" || "AddonUpdate" || "VpcConfigUpdate" || "AccessConfigUpdate",
* // params: [ // UpdateParams
* // { // UpdateParam
* // type: "Version" || "PlatformVersion" || "EndpointPrivateAccess" || "EndpointPublicAccess" || "ClusterLogging" || "DesiredSize" || "LabelsToAdd" || "LabelsToRemove" || "TaintsToAdd" || "TaintsToRemove" || "MaxSize" || "MinSize" || "ReleaseVersion" || "PublicAccessCidrs" || "LaunchTemplateName" || "LaunchTemplateVersion" || "IdentityProviderConfig" || "EncryptionConfig" || "AddonVersion" || "ServiceAccountRoleArn" || "ResolveConflicts" || "MaxUnavailable" || "MaxUnavailablePercentage" || "ConfigurationValues" || "SecurityGroups" || "Subnets" || "AuthenticationMode",
* // type: "Version" || "PlatformVersion" || "EndpointPrivateAccess" || "EndpointPublicAccess" || "ClusterLogging" || "DesiredSize" || "LabelsToAdd" || "LabelsToRemove" || "TaintsToAdd" || "TaintsToRemove" || "MaxSize" || "MinSize" || "ReleaseVersion" || "PublicAccessCidrs" || "LaunchTemplateName" || "LaunchTemplateVersion" || "IdentityProviderConfig" || "EncryptionConfig" || "AddonVersion" || "ServiceAccountRoleArn" || "ResolveConflicts" || "MaxUnavailable" || "MaxUnavailablePercentage" || "ConfigurationValues" || "SecurityGroups" || "Subnets" || "AuthenticationMode" || "PodIdentityAssociations",
* // value: "STRING_VALUE",
* // },
* // ],
Expand Down
Loading

0 comments on commit d391abe

Please sign in to comment.