MaxCapacity
- class aws_cdk.aws_glue_alpha.MaxCapacity(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
Enum
(experimental) The number of AWS Glue data processing units (DPUs) that can be allocated when this job runs.
A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory.
- Stability:
experimental
- ExampleMetadata:
infused
Example:
import aws_cdk as cdk import aws_cdk.aws_iam as iam # stack: cdk.Stack # role: iam.IRole # script: glue.Code glue.PythonShellJob(stack, "PythonShellJob", job_name="PythonShellJobCustomName", description="This is a description", python_version=glue.PythonVersion.TWO, max_capacity=glue.MaxCapacity.DPU_1, role=role, script=script, glue_version=glue.GlueVersion.V2_0, continuous_logging=glue.ContinuousLoggingProps(enabled=False), worker_type=glue.WorkerType.G_2X, max_concurrent_runs=100, timeout=cdk.Duration.hours(2), connections=[glue.Connection.from_connection_name(stack, "Connection", "connectionName")], security_configuration=glue.SecurityConfiguration.from_security_configuration_name(stack, "SecurityConfig", "securityConfigName"), tags={ "FirstTagName": "FirstTagValue", "SecondTagName": "SecondTagValue", "XTagName": "XTagValue" }, number_of_workers=2, max_retries=2 )
Attributes
- DPU_1
(experimental) DPU value of 1.
- Stability:
experimental
- DPU_1_16TH
(experimental) DPU value of 1/16th.
- Stability:
experimental