Skip to main content

virtual_clusters

Creates, updates, deletes, gets or lists a virtual_clusters resource.

Overview

Namevirtual_clusters
TypeResource
Idaws.emr_containers.virtual_clusters

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the virtual cluster. (pattern: <code>[0-9a-z]+</code>)
namestringThe name of the virtual cluster. (pattern: <code>[.-_/#A-Za-z0-9]+</code>)
arnstringThe ARN of the virtual cluster. (pattern: <code>^arn:(aws[a-zA-Z0-9-]*):emr-containers:.+:(\d{12}):/virtualclusters/[0-9a-zA-Z]+$</code>)
container_providerobjectThe information about the container provider.
created_atstring (date-time)The date and time when the virtual cluster is created.
scheduler_configurationobjectThe scheduler configuration for a virtual cluster on Amazon EMR on EKS. It controls how many job runs can run concurrently and how many can wait in the queue. When not set, no concurrency or queue limits are applied.
scheduler_statusobjectThe current in-queue and concurrent job-run counts for the virtual cluster.
security_configuration_idstringThe ID of the security configuration. (pattern: <code>[0-9a-z]+</code>)
session_enabledbooleanSpecifies whether the virtual cluster has session support enabled.
statestringThe state of the virtual cluster. (RUNNING, TERMINATING, TERMINATED, ARRESTED)
tagsobjectThe assigned tags of the virtual cluster.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_virtual_clusterselectvirtual_cluster_id, regionDisplays detailed information about a specified virtual cluster. Virtual cluster is a managed entity on Amazon EMR on EKS. You can create, update, describe, list and delete virtual clusters. They do not consume any additional resource 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.
list_virtual_clustersselectregioncontainerProviderId, containerProviderType, createdAfter, createdBefore, states, maxResults, nextToken, eksAccessEntryIntegratedLists information about the specified virtual cluster. Virtual cluster is a managed entity on Amazon EMR on EKS. You can create, update, describe, list and delete virtual clusters. They do not consume any additional resource 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.
create_virtual_clusterinsertregion, name, containerProvider, clientTokenCreates a virtual cluster. Virtual cluster is a managed entity on Amazon EMR on EKS. You can create, update, describe, list and delete virtual clusters. They do not consume any additional resource 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.
update_virtual_clusterupdatevirtual_cluster_id, region, clientTokenUpdates a virtual cluster. Virtual cluster is a managed entity on Amazon EMR on EKS. You can create, update, describe, list and delete virtual clusters. They do not consume any additional resource 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.
delete_virtual_clusterdeletevirtual_cluster_id, regionDeletes a virtual cluster. Virtual cluster is a managed entity on Amazon EMR on EKS. You can create, update, describe, list and delete virtual clusters. They do not consume any additional resource 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.
cancel_job_runexecjob_run_id, virtual_cluster_id, regionCancels a job run. A job run is a unit of work, such as a Spark jar, PySpark script, or SparkSQL query, that you submit to Amazon EMR on EKS.
start_job_runexecvirtual_cluster_id, region, clientTokenStarts a job run. A job run is a unit of work, such as a Spark jar, PySpark script, or SparkSQL query, that you submit to Amazon EMR on EKS.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
job_run_idstringThe ID of the job run to cancel.
regionstringAWS region (default: us-east-1)
virtual_cluster_idstringThe virtual cluster ID for which the job run request is submitted.
containerProviderIdstringThe container provider ID of the virtual cluster.
containerProviderTypestringThe container provider type of the virtual cluster. Amazon EKS is the only supported type as of now.
createdAfterstring (date-time)The date and time after which the virtual clusters are created.
createdBeforestring (date-time)The date and time before which the virtual clusters are created.
eksAccessEntryIntegratedbooleanOptional Boolean that specifies whether the operation should return the virtual clusters that have the access entry integration enabled or disabled. If not specified, the operation returns all applicable virtual clusters.
maxResultsintegerThe maximum number of virtual clusters that can be listed.
nextTokenstringThe token for the next set of virtual clusters to return.
statesarrayThe states of the requested virtual clusters.

SELECT examples

Displays detailed information about a specified virtual cluster. Virtual cluster is a managed entity on Amazon EMR on EKS. You can create, update, describe, list and delete virtual clusters. They do not consume any additional resource 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.

SELECT
id,
name,
arn,
container_provider,
created_at,
scheduler_configuration,
scheduler_status,
security_configuration_id,
session_enabled,
state,
tags
FROM aws.emr_containers.virtual_clusters
WHERE virtual_cluster_id = '{{ virtual_cluster_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a virtual cluster. Virtual cluster is a managed entity on Amazon EMR on EKS. You can create, update, describe, list and delete virtual clusters. They do not consume any additional resource 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.

INSERT INTO aws.emr_containers.virtual_clusters (
name,
containerProvider,
clientToken,
tags,
securityConfigurationId,
sessionEnabled,
schedulerConfiguration,
region
)
SELECT
'{{ name }}' /* required */,
'{{ containerProvider }}' /* required */,
'{{ clientToken }}' /* required */,
'{{ tags }}',
'{{ securityConfigurationId }}',
{{ sessionEnabled }},
'{{ schedulerConfiguration }}',
'{{ region }}'
RETURNING
id,
name,
arn
;

UPDATE examples

Updates a virtual cluster. Virtual cluster is a managed entity on Amazon EMR on EKS. You can create, update, describe, list and delete virtual clusters. They do not consume any additional resource 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.

UPDATE aws.emr_containers.virtual_clusters
SET
schedulerConfiguration = '{{ schedulerConfiguration }}',
clientToken = '{{ clientToken }}'
WHERE
virtual_cluster_id = '{{ virtual_cluster_id }}' --required
AND region = '{{ region }}' --required
AND clientToken = '{{ clientToken }}' --required
RETURNING
virtual_cluster;

DELETE examples

Deletes a virtual cluster. Virtual cluster is a managed entity on Amazon EMR on EKS. You can create, update, describe, list and delete virtual clusters. They do not consume any additional resource 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.

DELETE FROM aws.emr_containers.virtual_clusters
WHERE virtual_cluster_id = '{{ virtual_cluster_id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Cancels a job run. A job run is a unit of work, such as a Spark jar, PySpark script, or SparkSQL query, that you submit to Amazon EMR on EKS.

EXEC aws.emr_containers.virtual_clusters.cancel_job_run
@job_run_id='{{ job_run_id }}' --required,
@virtual_cluster_id='{{ virtual_cluster_id }}' --required,
@region='{{ region }}' --required
;