Class CfnVirtualCluster
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.emrcontainers.CfnVirtualCluster
- All Implemented Interfaces:
IInspectable,IVirtualClusterRef,IEnvironmentAware,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:36.819Z")
@Stability(Stable)
public class CfnVirtualCluster
extends CfnResource
implements IInspectable, IVirtualClusterRef, ITaggable
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
.securityConfigurationId("securityConfigurationId")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnVirtualCluster.static interfaceThe information about the container used for a job run or a managed endpoint.static interfaceThe information about the container provider.static interfaceThe information about the Amazon EKS cluster.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.emrcontainers.IVirtualClusterRef
IVirtualClusterRef.Jsii$Default, IVirtualClusterRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnVirtualCluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnVirtualCluster(software.amazon.jsii.JsiiObjectRef objRef) CfnVirtualCluster(software.constructs.Construct scope, String id, CfnVirtualClusterProps props) Create a newAWS::EMRContainers::VirtualCluster. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForVirtualCluster(IVirtualClusterRef resource) static IVirtualClusterReffromVirtualClusterArn(software.constructs.Construct scope, String id, String arn) Creates a new IVirtualClusterRef from an ARN.static IVirtualClusterReffromVirtualClusterId(software.constructs.Construct scope, String id, String virtualClusterId) Creates a new IVirtualClusterRef from a virtualClusterId.The Amazon Resource Name (ARN) of the project, such asarn:aws:emr-containers:us-east-1:123456789012:/virtualclusters/ab4rp1abcs8xz47n3x0example.The ID of the virtual cluster, such asab4rp1abcs8xz47n3x0example.The container provider of the virtual cluster.getName()The name of the virtual cluster.The ID of the security configuration.getTags()Tag Manager which manages the tags for this resource.An array of key-value pairs to apply to this resource.A reference to a VirtualCluster resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnVirtualCluster.renderProperties(Map<String, Object> props) voidsetContainerProvider(IResolvable value) The container provider of the virtual cluster.voidThe container provider of the virtual cluster.voidThe name of the virtual cluster.voidsetSecurityConfigurationId(String value) The ID of the security configuration.voidsetTagsRaw(List<CfnTag> value) An array of key-value pairs to apply to this resource.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnVirtualCluster
protected CfnVirtualCluster(software.amazon.jsii.JsiiObjectRef objRef) -
CfnVirtualCluster
protected CfnVirtualCluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnVirtualCluster
@Stability(Stable) public CfnVirtualCluster(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnVirtualClusterProps props) Create a newAWS::EMRContainers::VirtualCluster.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForVirtualCluster
@Stability(Stable) @NotNull public static String arnForVirtualCluster(@NotNull IVirtualClusterRef resource) - Parameters:
resource- This parameter is required.
-
fromVirtualClusterArn
@Stability(Stable) @NotNull public static IVirtualClusterRef fromVirtualClusterArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn) Creates a new IVirtualClusterRef from an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.arn- This parameter is required.
-
fromVirtualClusterId
@Stability(Stable) @NotNull public static IVirtualClusterRef fromVirtualClusterId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String virtualClusterId) Creates a new IVirtualClusterRef from a virtualClusterId.- Parameters:
scope- This parameter is required.id- This parameter is required.virtualClusterId- This parameter is required.
-
isCfnVirtualCluster
Checks whether the given object is a CfnVirtualCluster.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) of the project, such asarn:aws:emr-containers:us-east-1:123456789012:/virtualclusters/ab4rp1abcs8xz47n3x0example. -
getAttrId
The ID of the virtual cluster, such asab4rp1abcs8xz47n3x0example. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getVirtualClusterRef
A reference to a VirtualCluster resource.- Specified by:
getVirtualClusterRefin interfaceIVirtualClusterRef
-
getContainerProvider
The container provider of the virtual cluster.Returns union: either
IResolvableorCfnVirtualCluster.ContainerProviderProperty -
setContainerProvider
The container provider of the virtual cluster. -
setContainerProvider
@Stability(Stable) public void setContainerProvider(@NotNull CfnVirtualCluster.ContainerProviderProperty value) The container provider of the virtual cluster. -
getName
The name of the virtual cluster. -
setName
The name of the virtual cluster. -
getSecurityConfigurationId
The ID of the security configuration. -
setSecurityConfigurationId
The ID of the security configuration. -
getTagsRaw
An array of key-value pairs to apply to this resource. -
setTagsRaw
An array of key-value pairs to apply to this resource.
-