@aws-sdk/client-eks
Version:
AWS SDK for JavaScript Eks Client for Node.js, Browser and React Native
101 lines (100 loc) • 4.5 kB
TypeScript
import { Command as $Command } from "@smithy/core/client";
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { EKSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EKSClient";
import type { ListFargateProfilesRequest, ListFargateProfilesResponse } from "../models/models_0";
/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link ListFargateProfilesCommand}.
*/
export interface ListFargateProfilesCommandInput extends ListFargateProfilesRequest {
}
/**
* @public
*
* The output of {@link ListFargateProfilesCommand}.
*/
export interface ListFargateProfilesCommandOutput extends ListFargateProfilesResponse, __MetadataBearer {
}
declare const ListFargateProfilesCommand_base: {
new (input: ListFargateProfilesCommandInput): import("@smithy/core/client").CommandImpl<ListFargateProfilesCommandInput, ListFargateProfilesCommandOutput, EKSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
new (input: ListFargateProfilesCommandInput): import("@smithy/core/client").CommandImpl<ListFargateProfilesCommandInput, ListFargateProfilesCommandOutput, EKSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
getEndpointParameterInstructions(): {
[x: string]: unknown;
};
};
/**
* <p>Lists the Fargate profiles associated with the specified cluster in your Amazon Web Services
* account in the specified Amazon Web Services Region.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { EKSClient, ListFargateProfilesCommand } from "@aws-sdk/client-eks"; // ES Modules import
* // const { EKSClient, ListFargateProfilesCommand } = require("@aws-sdk/client-eks"); // CommonJS import
* // import type { EKSClientConfig } from "@aws-sdk/client-eks";
* const config = {}; // type is EKSClientConfig
* const client = new EKSClient(config);
* const input = { // ListFargateProfilesRequest
* clusterName: "STRING_VALUE", // required
* maxResults: Number("int"),
* nextToken: "STRING_VALUE",
* };
* const command = new ListFargateProfilesCommand(input);
* const response = await client.send(command);
* // { // ListFargateProfilesResponse
* // fargateProfileNames: [ // StringList
* // "STRING_VALUE",
* // ],
* // nextToken: "STRING_VALUE",
* // };
*
* ```
*
* @param ListFargateProfilesCommandInput - {@link ListFargateProfilesCommandInput}
* @returns {@link ListFargateProfilesCommandOutput}
* @see {@link ListFargateProfilesCommandInput} for command's `input` shape.
* @see {@link ListFargateProfilesCommandOutput} for command's `response` shape.
* @see {@link EKSClientResolvedConfig | config} for EKSClient's `config` shape.
*
* @throws {@link ClientException} (client fault)
* <p>These errors are usually caused by a client action. Actions can include using an
* action or resource on behalf of an <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html">IAM principal</a> that doesn't have permissions to use
* the action or resource or specifying an identifier that is not valid.</p>
*
* @throws {@link InvalidParameterException} (client fault)
* <p>The specified parameter is invalid. Review the available parameters for the API
* request.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>The specified resource could not be found. You can view your available clusters with
* <code>ListClusters</code>. You can view your available managed node groups with
* <code>ListNodegroups</code>. Amazon EKS clusters and node groups are Amazon Web Services Region
* specific.</p>
*
* @throws {@link ServerException} (server fault)
* <p>These errors are usually caused by a server-side issue.</p>
*
* @throws {@link EKSServiceException}
* <p>Base exception class for all service exceptions from EKS service.</p>
*
*
* @public
*/
export declare class ListFargateProfilesCommand extends ListFargateProfilesCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: ListFargateProfilesRequest;
output: ListFargateProfilesResponse;
};
sdk: {
input: ListFargateProfilesCommandInput;
output: ListFargateProfilesCommandOutput;
};
};
}