@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.240Z") @Stability(value=Stable) public class CfnVirtualCluster extends CfnResource implements IInspectable
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.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.emrcontainers.*;
CfnVirtualCluster cfnVirtualCluster = CfnVirtualCluster.Builder.create(this, "MyCfnVirtualCluster")
.containerProvider(ContainerProviderProperty.builder()
.id("id")
.info(ContainerInfoProperty.builder()
.eksInfo(EksInfoProperty.builder()
.namespace("namespace")
.build())
.build())
.type("type")
.build())
.name("name")
// the properties below are optional
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnVirtualCluster.Builder
A fluent builder for
CfnVirtualCluster. |
static interface |
CfnVirtualCluster.ContainerInfoProperty
The information about the container used for a job run or a managed endpoint.
|
static interface |
CfnVirtualCluster.ContainerProviderProperty
The information about the container provider.
|
static interface |
CfnVirtualCluster.EksInfoProperty
The information about the EKS cluster.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnVirtualCluster(software.constructs.Construct scope,
String id,
CfnVirtualClusterProps props)
Create a new `AWS::EMRContainers::VirtualCluster`.
|
protected |
CfnVirtualCluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnVirtualCluster(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrArn()
The Amazon Resource Name (ARN) of the project, such as `arn:aws:emr-containers:us-east-1:123456789012:/virtualclusters/ab4rp1abcs8xz47n3x0example` .
|
String |
getAttrId()
The ID of the virtual cluster, such as `ab4rp1abcs8xz47n3x0example` .
|
protected Map<String,Object> |
getCfnProperties() |
Object |
getContainerProvider()
The container provider of the virtual cluster.
|
String |
getName()
The name of the virtual cluster.
|
TagManager |
getTags()
An array of key-value pairs to apply to this resource.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setContainerProvider(CfnVirtualCluster.ContainerProviderProperty value)
The container provider of the virtual cluster.
|
void |
setContainerProvider(IResolvable value)
The container provider of the virtual cluster.
|
void |
setName(String value)
The name of the virtual cluster.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnVirtualCluster(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnVirtualCluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnVirtualCluster(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnVirtualClusterProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull public String getAttrId()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
For more information, see Tag .
@Stability(value=Stable) @NotNull public Object getContainerProvider()
@Stability(value=Stable)
public void setContainerProvider(@NotNull
CfnVirtualCluster.ContainerProviderProperty value)
@Stability(value=Stable)
public void setContainerProvider(@NotNull
IResolvable value)
@Stability(value=Stable) @NotNull public String getName()
@Stability(value=Stable)
public void setName(@NotNull
String value)
Copyright © 2022. All rights reserved.