Class CfnDevEndpoint
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::Glue::DevEndpoint.
The AWS::Glue::DevEndpoint resource specifies a development endpoint where a developer can remotely debug ETL scripts for AWS Glue . For more information, see DevEndpoint Structure in the AWS Glue Developer Guide.
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.glue.*;
Object arguments_;
Object tags;
CfnDevEndpoint cfnDevEndpoint = CfnDevEndpoint.Builder.create(this, "MyCfnDevEndpoint")
.roleArn("roleArn")
// the properties below are optional
.arguments(arguments_)
.endpointName("endpointName")
.extraJarsS3Path("extraJarsS3Path")
.extraPythonLibsS3Path("extraPythonLibsS3Path")
.glueVersion("glueVersion")
.numberOfNodes(123)
.numberOfWorkers(123)
.publicKey("publicKey")
.publicKeys(List.of("publicKeys"))
.securityConfiguration("securityConfiguration")
.securityGroupIds(List.of("securityGroupIds"))
.subnetId("subnetId")
.tags(tags)
.workerType("workerType")
.build();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnDevEndpoint(Construct scope, String id, CfnDevEndpointProps props) Create a newAWS::Glue::DevEndpoint.protectedCfnDevEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDevEndpoint(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionA map of arguments used to configure theDevEndpoint.The name of theDevEndpoint.The path to one or more Java.jarfiles in an S3 bucket that should be loaded in yourDevEndpoint.The paths to one or more Python libraries in an Amazon S3 bucket that should be loaded in yourDevEndpoint.The AWS Glue version determines the versions of Apache Spark and Python that AWS Glue supports.The number of AWS Glue Data Processing Units (DPUs) allocated to thisDevEndpoint.The number of workers of a definedworkerTypethat are allocated to the development endpoint.The public key to be used by thisDevEndpointfor authentication.A list of public keys to be used by theDevEndpointsfor authentication.The Amazon Resource Name (ARN) of the IAM role used in thisDevEndpoint.The name of theSecurityConfigurationstructure to be used with thisDevEndpoint.A list of security group identifiers used in thisDevEndpoint.The subnet ID for thisDevEndpoint.getTags()The tags to use with this DevEndpoint.The type of predefined worker that is allocated to the development endpoint.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetArguments(Object value) A map of arguments used to configure theDevEndpoint.voidsetEndpointName(String value) The name of theDevEndpoint.voidsetExtraJarsS3Path(String value) The path to one or more Java.jarfiles in an S3 bucket that should be loaded in yourDevEndpoint.voidsetExtraPythonLibsS3Path(String value) The paths to one or more Python libraries in an Amazon S3 bucket that should be loaded in yourDevEndpoint.voidsetGlueVersion(String value) The AWS Glue version determines the versions of Apache Spark and Python that AWS Glue supports.voidsetNumberOfNodes(Number value) The number of AWS Glue Data Processing Units (DPUs) allocated to thisDevEndpoint.voidsetNumberOfWorkers(Number value) The number of workers of a definedworkerTypethat are allocated to the development endpoint.voidsetPublicKey(String value) The public key to be used by thisDevEndpointfor authentication.voidsetPublicKeys(List<String> value) A list of public keys to be used by theDevEndpointsfor authentication.voidsetRoleArn(String value) The Amazon Resource Name (ARN) of the IAM role used in thisDevEndpoint.voidsetSecurityConfiguration(String value) The name of theSecurityConfigurationstructure to be used with thisDevEndpoint.voidsetSecurityGroupIds(List<String> value) A list of security group identifiers used in thisDevEndpoint.voidsetSubnetId(String value) The subnet ID for thisDevEndpoint.voidsetWorkerType(String value) The type of predefined worker that is allocated to the development endpoint.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnDevEndpoint
protected CfnDevEndpoint(software.amazon.jsii.JsiiObjectRef objRef) -
CfnDevEndpoint
protected CfnDevEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnDevEndpoint
@Stability(Stable) public CfnDevEndpoint(@NotNull Construct scope, @NotNull String id, @NotNull CfnDevEndpointProps props) Create a newAWS::Glue::DevEndpoint.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
The tags to use with this DevEndpoint. -
getArguments
A map of arguments used to configure theDevEndpoint.Valid arguments are:
"--enable-glue-datacatalog": """GLUE_PYTHON_VERSION": "3""GLUE_PYTHON_VERSION": "2"
You can specify a version of Python support for development endpoints by using the
Argumentsparameter in theCreateDevEndpointorUpdateDevEndpointAPIs. If no arguments are provided, the version defaults to Python 2. -
setArguments
A map of arguments used to configure theDevEndpoint.Valid arguments are:
"--enable-glue-datacatalog": """GLUE_PYTHON_VERSION": "3""GLUE_PYTHON_VERSION": "2"
You can specify a version of Python support for development endpoints by using the
Argumentsparameter in theCreateDevEndpointorUpdateDevEndpointAPIs. If no arguments are provided, the version defaults to Python 2. -
getRoleArn
The Amazon Resource Name (ARN) of the IAM role used in thisDevEndpoint. -
setRoleArn
The Amazon Resource Name (ARN) of the IAM role used in thisDevEndpoint. -
getEndpointName
The name of theDevEndpoint. -
setEndpointName
The name of theDevEndpoint. -
getExtraJarsS3Path
The path to one or more Java.jarfiles in an S3 bucket that should be loaded in yourDevEndpoint.You can only use pure Java/Scala libraries with a
DevEndpoint. -
setExtraJarsS3Path
The path to one or more Java.jarfiles in an S3 bucket that should be loaded in yourDevEndpoint.You can only use pure Java/Scala libraries with a
DevEndpoint. -
getExtraPythonLibsS3Path
The paths to one or more Python libraries in an Amazon S3 bucket that should be loaded in yourDevEndpoint.Multiple values must be complete paths separated by a comma.
You can only use pure Python libraries with a
DevEndpoint. Libraries that rely on C extensions, such as the pandas Python data analysis library, are not currently supported. -
setExtraPythonLibsS3Path
The paths to one or more Python libraries in an Amazon S3 bucket that should be loaded in yourDevEndpoint.Multiple values must be complete paths separated by a comma.
You can only use pure Python libraries with a
DevEndpoint. Libraries that rely on C extensions, such as the pandas Python data analysis library, are not currently supported. -
getGlueVersion
The AWS Glue version determines the versions of Apache Spark and Python that AWS Glue supports.The Python version indicates the version supported for running your ETL scripts on development endpoints.
For more information about the available AWS Glue versions and corresponding Spark and Python versions, see Glue version in the developer guide.
Development endpoints that are created without specifying a Glue version default to Glue 0.9.
You can specify a version of Python support for development endpoints by using the
Argumentsparameter in theCreateDevEndpointorUpdateDevEndpointAPIs. If no arguments are provided, the version defaults to Python 2. -
setGlueVersion
The AWS Glue version determines the versions of Apache Spark and Python that AWS Glue supports.The Python version indicates the version supported for running your ETL scripts on development endpoints.
For more information about the available AWS Glue versions and corresponding Spark and Python versions, see Glue version in the developer guide.
Development endpoints that are created without specifying a Glue version default to Glue 0.9.
You can specify a version of Python support for development endpoints by using the
Argumentsparameter in theCreateDevEndpointorUpdateDevEndpointAPIs. If no arguments are provided, the version defaults to Python 2. -
getNumberOfNodes
The number of AWS Glue Data Processing Units (DPUs) allocated to thisDevEndpoint. -
setNumberOfNodes
The number of AWS Glue Data Processing Units (DPUs) allocated to thisDevEndpoint. -
getNumberOfWorkers
The number of workers of a definedworkerTypethat are allocated to the development endpoint.The maximum number of workers you can define are 299 for
G.1X, and 149 forG.2X. -
setNumberOfWorkers
The number of workers of a definedworkerTypethat are allocated to the development endpoint.The maximum number of workers you can define are 299 for
G.1X, and 149 forG.2X. -
getPublicKey
The public key to be used by thisDevEndpointfor authentication.This attribute is provided for backward compatibility because the recommended attribute to use is public keys.
-
setPublicKey
The public key to be used by thisDevEndpointfor authentication.This attribute is provided for backward compatibility because the recommended attribute to use is public keys.
-
getPublicKeys
A list of public keys to be used by theDevEndpointsfor authentication.Using this attribute is preferred over a single public key because the public keys allow you to have a different private key per client.
If you previously created an endpoint with a public key, you must remove that key to be able to set a list of public keys. Call the
UpdateDevEndpointAPI operation with the public key content in thedeletePublicKeysattribute, and the list of new keys in theaddPublicKeysattribute. -
setPublicKeys
A list of public keys to be used by theDevEndpointsfor authentication.Using this attribute is preferred over a single public key because the public keys allow you to have a different private key per client.
If you previously created an endpoint with a public key, you must remove that key to be able to set a list of public keys. Call the
UpdateDevEndpointAPI operation with the public key content in thedeletePublicKeysattribute, and the list of new keys in theaddPublicKeysattribute. -
getSecurityConfiguration
The name of theSecurityConfigurationstructure to be used with thisDevEndpoint. -
setSecurityConfiguration
The name of theSecurityConfigurationstructure to be used with thisDevEndpoint. -
getSecurityGroupIds
A list of security group identifiers used in thisDevEndpoint. -
setSecurityGroupIds
A list of security group identifiers used in thisDevEndpoint. -
getSubnetId
The subnet ID for thisDevEndpoint. -
setSubnetId
The subnet ID for thisDevEndpoint. -
getWorkerType
The type of predefined worker that is allocated to the development endpoint.Accepts a value of Standard, G.1X, or G.2X.
- For the
Standardworker type, each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2 executors per worker. - For the
G.1Xworker type, each worker maps to 1 DPU (4 vCPU, 16 GB of memory, 64 GB disk), and provides 1 executor per worker. We recommend this worker type for memory-intensive jobs. - For the
G.2Xworker type, each worker maps to 2 DPU (8 vCPU, 32 GB of memory, 128 GB disk), and provides 1 executor per worker. We recommend this worker type for memory-intensive jobs.
Known issue: when a development endpoint is created with the
G.2XWorkerTypeconfiguration, the Spark drivers for the development endpoint will run on 4 vCPU, 16 GB of memory, and a 64 GB disk. - For the
-
setWorkerType
The type of predefined worker that is allocated to the development endpoint.Accepts a value of Standard, G.1X, or G.2X.
- For the
Standardworker type, each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2 executors per worker. - For the
G.1Xworker type, each worker maps to 1 DPU (4 vCPU, 16 GB of memory, 64 GB disk), and provides 1 executor per worker. We recommend this worker type for memory-intensive jobs. - For the
G.2Xworker type, each worker maps to 2 DPU (8 vCPU, 32 GB of memory, 128 GB disk), and provides 1 executor per worker. We recommend this worker type for memory-intensive jobs.
Known issue: when a development endpoint is created with the
G.2XWorkerTypeconfiguration, the Spark drivers for the development endpoint will run on 4 vCPU, 16 GB of memory, and a 64 GB disk. - For the
-