aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
183 lines (182 loc) • 7.69 kB
TypeScript
import * as cdk from "../../core";
import * as constructs from "constructs";
import * as cfn_parse from "../../core/lib/helpers-internal";
/**
* The `AWS::EMRContainers::VirtualCluster` resource specifies a virtual cluster.
*
* A virtual cluster is a managed entity on Amazon EMR on EKS. You can create, describe, list, and delete virtual clusters. They do not consume any additional resources in your system. A single virtual cluster maps to a single Kubernetes namespace. Given this relationship, you can model virtual clusters the same way you model Kubernetes namespaces to meet your requirements.
*
* @cloudformationResource AWS::EMRContainers::VirtualCluster
* @stability external
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrcontainers-virtualcluster.html
*/
export declare class CfnVirtualCluster extends cdk.CfnResource implements cdk.IInspectable, cdk.ITaggable {
/**
* The CloudFormation resource type name for this resource class.
*/
static readonly CFN_RESOURCE_TYPE_NAME: string;
/**
* Build a CfnVirtualCluster from CloudFormation properties
*
* A factory method that creates a new instance of this class from an object
* containing the CloudFormation properties of this resource.
* Used in the @aws-cdk/cloudformation-include module.
*
* @internal
*/
static _fromCloudFormation(scope: constructs.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnVirtualCluster;
/**
* The Amazon Resource Name (ARN) of the project, such as `arn:aws:emr-containers:us-east-1:123456789012:/virtualclusters/ab4rp1abcs8xz47n3x0example` .
*
* @cloudformationAttribute Arn
*/
readonly attrArn: string;
/**
* The ID of the virtual cluster, such as `ab4rp1abcs8xz47n3x0example` .
*
* @cloudformationAttribute Id
*/
readonly attrId: string;
/**
* The container provider of the virtual cluster.
*/
containerProvider: CfnVirtualCluster.ContainerProviderProperty | cdk.IResolvable;
/**
* The name of the virtual cluster.
*/
name: string;
/**
* The ID of the security configuration.
*/
securityConfigurationId?: string;
/**
* Tag Manager which manages the tags for this resource
*/
readonly tags: cdk.TagManager;
/**
* An array of key-value pairs to apply to this resource.
*/
tagsRaw?: Array<cdk.CfnTag>;
/**
* @param scope Scope in which this resource is defined
* @param id Construct identifier for this resource (unique in its scope)
* @param props Resource properties
*/
constructor(scope: constructs.Construct, id: string, props: CfnVirtualClusterProps);
protected get cfnProperties(): Record<string, any>;
/**
* Examines the CloudFormation resource and discloses attributes
*
* @param inspector tree inspector to collect and process attributes
*/
inspect(inspector: cdk.TreeInspector): void;
protected renderProperties(props: Record<string, any>): Record<string, any>;
}
export declare namespace CfnVirtualCluster {
/**
* The information about the container provider.
*
* @struct
* @stability external
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrcontainers-virtualcluster-containerprovider.html
*/
interface ContainerProviderProperty {
/**
* The ID of the container cluster.
*
* *Minimum* : 1
*
* *Maximum* : 100
*
* *Pattern* : `^[0-9A-Za-z][A-Za-z0-9\-_]*`
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrcontainers-virtualcluster-containerprovider.html#cfn-emrcontainers-virtualcluster-containerprovider-id
*/
readonly id: string;
/**
* The information about the container cluster.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrcontainers-virtualcluster-containerprovider.html#cfn-emrcontainers-virtualcluster-containerprovider-info
*/
readonly info: CfnVirtualCluster.ContainerInfoProperty | cdk.IResolvable;
/**
* The type of the container provider.
*
* Amazon EKS is the only supported type as of now.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrcontainers-virtualcluster-containerprovider.html#cfn-emrcontainers-virtualcluster-containerprovider-type
*/
readonly type: string;
}
/**
* The information about the container used for a job run or a managed endpoint.
*
* @struct
* @stability external
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrcontainers-virtualcluster-containerinfo.html
*/
interface ContainerInfoProperty {
/**
* The information about the Amazon EKS cluster.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrcontainers-virtualcluster-containerinfo.html#cfn-emrcontainers-virtualcluster-containerinfo-eksinfo
*/
readonly eksInfo: CfnVirtualCluster.EksInfoProperty | cdk.IResolvable;
}
/**
* The information about the Amazon EKS cluster.
*
* @struct
* @stability external
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrcontainers-virtualcluster-eksinfo.html
*/
interface EksInfoProperty {
/**
* The namespaces of the EKS cluster.
*
* *Minimum* : 1
*
* *Maximum* : 63
*
* *Pattern* : `[a-z0-9]([-a-z0-9]*[a-z0-9])?`
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrcontainers-virtualcluster-eksinfo.html#cfn-emrcontainers-virtualcluster-eksinfo-namespace
*/
readonly namespace: string;
}
}
/**
* Properties for defining a `CfnVirtualCluster`
*
* @struct
* @stability external
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrcontainers-virtualcluster.html
*/
export interface CfnVirtualClusterProps {
/**
* The container provider of the virtual cluster.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrcontainers-virtualcluster.html#cfn-emrcontainers-virtualcluster-containerprovider
*/
readonly containerProvider: CfnVirtualCluster.ContainerProviderProperty | cdk.IResolvable;
/**
* The name of the virtual cluster.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrcontainers-virtualcluster.html#cfn-emrcontainers-virtualcluster-name
*/
readonly name: string;
/**
* The ID of the security configuration.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrcontainers-virtualcluster.html#cfn-emrcontainers-virtualcluster-securityconfigurationid
*/
readonly securityConfigurationId?: string;
/**
* An array of key-value pairs to apply to this resource.
*
* For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrcontainers-virtualcluster.html#cfn-emrcontainers-virtualcluster-tags
*/
readonly tags?: Array<cdk.CfnTag>;
}