Skip to content
v2.278.0

CfnVirtualClusterProps ​

Struct External

Properties for defining a CfnVirtualCluster.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_emrcontainers as emrcontainers } from 'aws-cdk-lib';
const cfnVirtualClusterProps: emrcontainers.CfnVirtualClusterProps = {
  containerProvider: {
    id: 'id',
    info: {
      eksInfo: {
        namespace: 'namespace',
      },
    },
    type: 'type',
  },
  name: 'name',

  // the properties below are optional
  securityConfigurationId: 'securityConfigurationId',
  sessionEnabled: false,
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_emrcontainers as emrcontainers

cfn_virtual_cluster_props = emrcontainers.CfnVirtualClusterProps(
    container_provider=emrcontainers.CfnVirtualCluster.ContainerProviderProperty(
        id="id",
        info=emrcontainers.CfnVirtualCluster.ContainerInfoProperty(
            eks_info=emrcontainers.CfnVirtualCluster.EksInfoProperty(
                namespace="namespace"
            )
        ),
        type="type"
    ),
    name="name",

    # the properties below are optional
    security_configuration_id="securityConfigurationId",
    session_enabled=False,
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
java
// 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.*;

CfnVirtualClusterProps cfnVirtualClusterProps = CfnVirtualClusterProps.builder()
        .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")
        .sessionEnabled(false)
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EMRContainers;

var cfnVirtualClusterProps = new CfnVirtualClusterProps {
    ContainerProvider = new ContainerProviderProperty {
        Id = "id",
        Info = new ContainerInfoProperty {
            EksInfo = new EksInfoProperty {
                Namespace = "namespace"
            }
        },
        Type = "type"
    },
    Name = "name",

    // the properties below are optional
    SecurityConfigurationId = "securityConfigurationId",
    SessionEnabled = false,
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnVirtualClusterProps := &CfnVirtualClusterProps{
	ContainerProvider: &ContainerProviderProperty{
		Id: jsii.String("id"),
		Info: &ContainerInfoProperty{
			EksInfo: &EksInfoProperty{
				Namespace: jsii.String("namespace"),
			},
		},
		Type: jsii.String("type"),
	},
	Name: jsii.String("name"),

	// the properties below are optional
	SecurityConfigurationId: jsii.String("securityConfigurationId"),
	SessionEnabled: jsii.Boolean(false),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

containerProviderIResolvable | CfnVirtualCluster.ContainerProviderPropertycontainer_providertyping.Union[IResolvable, ContainerProviderProperty]containerProviderIResolvableContainerProviderIResolvableContainerProviderinterface{} required #
The container provider of the virtual cluster.
namestringnamestrnameStringNamestringName*string required #
The name of the virtual cluster.
securityConfigurationIdoptionalstringsecurity_configuration_idoptionalstrsecurityConfigurationIdoptionalStringSecurityConfigurationIdoptionalstringSecurityConfigurationIdoptional*string #
The ID of the security configuration.
sessionEnabledoptionalboolean | IResolvablesession_enabledoptionaltyping.Union[bool, IResolvable]sessionEnabledoptionalBooleanSessionEnabledoptionalboolSessionEnabledoptionalinterface{} #
Whether the virtual cluster is session-enabled for Spark Connect.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
An array of key-value pairs to apply to this resource.

For more information, see Tag .