create_dev_endpoint
¶
create_dev_endpoint(
endpoint_name: GenericString,
role_arn: RoleArn,
*,
config_overrides: Optional[GlueClientConfig] = None,
security_group_ids: Optional[StringList] = None,
subnet_id: Optional[GenericString] = None,
public_key: Optional[GenericString] = None,
public_keys: Optional[PublicKeysList] = None,
number_of_nodes: Optional[IntegerValue] = None,
worker_type: Optional[WorkerType] = None,
glue_version: Optional[GlueVersionString] = None,
number_of_workers: Optional[NullableInteger] = None,
extra_python_libs_s3_path: Optional[GenericString] = None,
extra_jars_s3_path: Optional[GenericString] = None,
security_configuration: Optional[NameString] = None,
tags: Optional[TagsMap] = None,
arguments: Optional[MapValue] = None,
) -> CreateDevEndpointResponse
Creates a new development endpoint.
Parameters:
-
endpoint_name(GenericString) –The name to be assigned to the new
DevEndpoint. -
role_arn(RoleArn) –The IAM role for the
DevEndpoint. -
security_group_ids(Optional[StringList], default:None) –Security group IDs for the security groups to be used by the new
DevEndpoint. -
subnet_id(Optional[GenericString], default:None) –The subnet ID for the new
DevEndpointto use. -
public_key(Optional[GenericString], default:None) –The public key to be used by this
DevEndpointfor authentication. This attribute is provided for backward compatibility because the recommended attribute to use is public keys. -
public_keys(Optional[PublicKeysList], default:None) –A list of public keys to be used by the development endpoints for authentication. The use of 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 with the public key content in thedeletePublicKeysattribute, and the list of new keys in theaddPublicKeysattribute. -
number_of_nodes(Optional[IntegerValue], default:None) –The number of Glue Data Processing Units (DPUs) to allocate to this
DevEndpoint. -
worker_type(Optional[WorkerType], default:None) –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. -
-
glue_version(Optional[GlueVersionString], default:None) –Glue version determines the versions of Apache Spark and Python that Glue supports. The Python version indicates the version supported for running your ETL scripts on development endpoints.
For more information about the available 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. -
number_of_workers(Optional[NullableInteger], default:None) –The number of workers of a defined
workerTypethat are allocated to the development endpoint.The maximum number of workers you can define are 299 for
G.1X, and 149 forG.2X. -
extra_python_libs_s3_path(Optional[GenericString], default:None) –The paths to one or more Python libraries in an Amazon S3 bucket that should be loaded in your
DevEndpoint. 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 yet supported. -
extra_jars_s3_path(Optional[GenericString], default:None) –The path to one or more Java
.jarfiles in an S3 bucket that should be loaded in yourDevEndpoint. -
security_configuration(Optional[NameString], default:None) –The name of the
SecurityConfigurationstructure to be used with thisDevEndpoint. -
tags(Optional[TagsMap], default:None) –The tags to use with this DevEndpoint. You may use tags to limit access to the DevEndpoint. For more information about tags in Glue, see Amazon Web Services Tags in Glue in the developer guide.
-
arguments(Optional[MapValue], default:None) –A map of arguments used to configure the
DevEndpoint.
Raises:
-
AccessDeniedException–Access to a resource was denied.
-
AlreadyExistsException–A resource to be created or added already exists.
-
IdempotentParameterMismatchException–The same unique identifier was associated with two different records.
-
InternalServiceException–An internal service error occurred.
-
InvalidInputException–The input provided was not valid.
-
OperationTimeoutException–The operation timed out.
-
ResourceNumberLimitExceededException–A resource numerical limit was exceeded.
-
ValidationException–A value could not be validated.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_glue/_services/glue.py
3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 | |