@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
81 lines (80 loc) • 2.68 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Retrieve the EKS Node Groups associated with a named EKS cluster. This will allow you to pass a list of Node Group names to other resources.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.eks.getNodeGroups({
* clusterName: "example",
* });
* const exampleGetNodeGroup = example.then(example => .reduce((__obj, [__key, __value]) => ({ ...__obj, [__key]: aws.eks.getNodeGroup({
* clusterName: "example",
* nodeGroupName: __value,
* }) })));
* ```
*/
export declare function getNodeGroups(args: GetNodeGroupsArgs, opts?: pulumi.InvokeOptions): Promise<GetNodeGroupsResult>;
/**
* A collection of arguments for invoking getNodeGroups.
*/
export interface GetNodeGroupsArgs {
/**
* Name of the cluster.
*/
clusterName: string;
/**
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
*/
region?: string;
}
/**
* A collection of values returned by getNodeGroups.
*/
export interface GetNodeGroupsResult {
readonly clusterName: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* Set of all node group names in an EKS Cluster.
*/
readonly names: string[];
readonly region: string;
}
/**
* Retrieve the EKS Node Groups associated with a named EKS cluster. This will allow you to pass a list of Node Group names to other resources.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.eks.getNodeGroups({
* clusterName: "example",
* });
* const exampleGetNodeGroup = example.then(example => .reduce((__obj, [__key, __value]) => ({ ...__obj, [__key]: aws.eks.getNodeGroup({
* clusterName: "example",
* nodeGroupName: __value,
* }) })));
* ```
*/
export declare function getNodeGroupsOutput(args: GetNodeGroupsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNodeGroupsResult>;
/**
* A collection of arguments for invoking getNodeGroups.
*/
export interface GetNodeGroupsOutputArgs {
/**
* Name of the cluster.
*/
clusterName: pulumi.Input<string>;
/**
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
*/
region?: pulumi.Input<string>;
}