Class CfnDevEndpointMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDevEndpointMixinProps>
- Enclosing interface:
CfnDevEndpointMixinProps
CfnDevEndpointMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnDevEndpointMixinProps.getArguments()build()Builds the configured instance.endpointName(String endpointName) Sets the value ofCfnDevEndpointMixinProps.getEndpointName()extraJarsS3Path(String extraJarsS3Path) Sets the value ofCfnDevEndpointMixinProps.getExtraJarsS3Path()extraPythonLibsS3Path(String extraPythonLibsS3Path) Sets the value ofCfnDevEndpointMixinProps.getExtraPythonLibsS3Path()glueVersion(String glueVersion) Sets the value ofCfnDevEndpointMixinProps.getGlueVersion()numberOfNodes(Number numberOfNodes) Sets the value ofCfnDevEndpointMixinProps.getNumberOfNodes()numberOfWorkers(Number numberOfWorkers) Sets the value ofCfnDevEndpointMixinProps.getNumberOfWorkers()Sets the value ofCfnDevEndpointMixinProps.getPublicKey()publicKeys(List<String> publicKeys) Sets the value ofCfnDevEndpointMixinProps.getPublicKeys()Sets the value ofCfnDevEndpointMixinProps.getRoleArn()securityConfiguration(String securityConfiguration) Sets the value ofCfnDevEndpointMixinProps.getSecurityConfiguration()securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnDevEndpointMixinProps.getSecurityGroupIds()Sets the value ofCfnDevEndpointMixinProps.getSubnetId()Sets the value ofCfnDevEndpointMixinProps.getTags()workerType(String workerType) Sets the value ofCfnDevEndpointMixinProps.getWorkerType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
arguments
Sets the value ofCfnDevEndpointMixinProps.getArguments()- Parameters:
arguments- 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.- Returns:
this
-
endpointName
Sets the value ofCfnDevEndpointMixinProps.getEndpointName()- Parameters:
endpointName- The name of theDevEndpoint.- Returns:
this
-
extraJarsS3Path
Sets the value ofCfnDevEndpointMixinProps.getExtraJarsS3Path()- Parameters:
extraJarsS3Path- 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.- Returns:
this
-
extraPythonLibsS3Path
@Stability(Stable) public CfnDevEndpointMixinProps.Builder extraPythonLibsS3Path(String extraPythonLibsS3Path) Sets the value ofCfnDevEndpointMixinProps.getExtraPythonLibsS3Path()- Parameters:
extraPythonLibsS3Path- 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.- Returns:
this
-
glueVersion
Sets the value ofCfnDevEndpointMixinProps.getGlueVersion()- Parameters:
glueVersion- 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.- Returns:
this
-
numberOfNodes
Sets the value ofCfnDevEndpointMixinProps.getNumberOfNodes()- Parameters:
numberOfNodes- The number of AWS Glue Data Processing Units (DPUs) allocated to thisDevEndpoint.- Returns:
this
-
numberOfWorkers
Sets the value ofCfnDevEndpointMixinProps.getNumberOfWorkers()- Parameters:
numberOfWorkers- The number of workers of a definedworkerTypethat are allocated to the development endpoint. The maximum number of workers you can define are 299 forG.1X, and 149 forG.2X.- Returns:
this
-
publicKey
Sets the value ofCfnDevEndpointMixinProps.getPublicKey()- Parameters:
publicKey- 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.- Returns:
this
-
publicKeys
Sets the value ofCfnDevEndpointMixinProps.getPublicKeys()- Parameters:
publicKeys- 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.- Returns:
this
-
roleArn
Sets the value ofCfnDevEndpointMixinProps.getRoleArn()- Parameters:
roleArn- The Amazon Resource Name (ARN) of the IAM role used in thisDevEndpoint.- Returns:
this
-
securityConfiguration
@Stability(Stable) public CfnDevEndpointMixinProps.Builder securityConfiguration(String securityConfiguration) Sets the value ofCfnDevEndpointMixinProps.getSecurityConfiguration()- Parameters:
securityConfiguration- The name of theSecurityConfigurationstructure to be used with thisDevEndpoint.- Returns:
this
-
securityGroupIds
@Stability(Stable) public CfnDevEndpointMixinProps.Builder securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnDevEndpointMixinProps.getSecurityGroupIds()- Parameters:
securityGroupIds- A list of security group identifiers used in thisDevEndpoint.- Returns:
this
-
subnetId
Sets the value ofCfnDevEndpointMixinProps.getSubnetId()- Parameters:
subnetId- The subnet ID for thisDevEndpoint.- Returns:
this
-
tags
Sets the value ofCfnDevEndpointMixinProps.getTags()- Parameters:
tags- The tags to use with this DevEndpoint.- Returns:
this
-
workerType
Sets the value ofCfnDevEndpointMixinProps.getWorkerType()- Parameters:
workerType- 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
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDevEndpointMixinProps>- Returns:
- a new instance of
CfnDevEndpointMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-