Class DevEndpoint


  • public class DevEndpoint
    extends com.pulumi.resources.CustomResource
    Provides a Glue Development Endpoint resource. ## Example Usage Basic usage:
     
     package generated_program;
     
     import com.pulumi.Context;
     import com.pulumi.Pulumi;
     import com.pulumi.core.Output;
     import com.pulumi.aws.iam.IamFunctions;
     import com.pulumi.aws.iam.inputs.GetPolicyDocumentArgs;
     import com.pulumi.aws.iam.inputs.GetPolicyDocumentStatementArgs;
     import com.pulumi.aws.iam.inputs.GetPolicyDocumentStatementPrincipalArgs;
     import com.pulumi.aws.iam.Role;
     import com.pulumi.aws.iam.RoleArgs;
     import com.pulumi.aws.glue.DevEndpoint;
     import com.pulumi.aws.glue.DevEndpointArgs;
     import com.pulumi.aws.iam.RolePolicyAttachment;
     import com.pulumi.aws.iam.RolePolicyAttachmentArgs;
     import java.util.ArrayList;
     import java.util.Arrays;
     import java.util.Map;
     import java.io.File;
     import java.nio.file.Files;
     import java.nio.file.Paths;
     
     public class App {
         public static void main(String[] args) {
             Pulumi.run(App::stack);
         }
     
         public static void stack(Context ctx) {
             final var example = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder()
                 .statements(GetPolicyDocumentStatementArgs.builder()
                     .principals(GetPolicyDocumentStatementPrincipalArgs.builder()
                         .type("Service")
                         .identifiers("glue.amazonaws.com")
                         .build())
                     .actions("sts:AssumeRole")
                     .build())
                 .build());
     
             var exampleRole = new Role("exampleRole", RoleArgs.builder()
                 .name("AWSGlueServiceRole-foo")
                 .assumeRolePolicy(example.json())
                 .build());
     
             var exampleDevEndpoint = new DevEndpoint("exampleDevEndpoint", DevEndpointArgs.builder()
                 .name("foo")
                 .roleArn(exampleRole.arn())
                 .build());
     
             var example_AWSGlueServiceRole = new RolePolicyAttachment("example-AWSGlueServiceRole", RolePolicyAttachmentArgs.builder()
                 .policyArn("arn:aws:iam::aws:policy/service-role/AWSGlueServiceRole")
                 .role(exampleRole.name())
                 .build());
     
         }
     }
     
     
    ## Import Using `pulumi import`, import a Glue Development Endpoint using the `name`. For example: ```sh $ pulumi import aws:glue/devEndpoint:DevEndpoint example foo ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>> arguments()  
      com.pulumi.core.Output<java.lang.String> arn()  
      com.pulumi.core.Output<java.lang.String> availabilityZone()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> extraJarsS3Path()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> extraPythonLibsS3Path()  
      com.pulumi.core.Output<java.lang.String> failureReason()  
      static DevEndpoint get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, DevEndpointState state, com.pulumi.resources.CustomResourceOptions options)
      Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> glueVersion()  
      com.pulumi.core.Output<java.lang.String> name()  
      com.pulumi.core.Output<java.util.Optional<java.lang.Integer>> numberOfNodes()  
      com.pulumi.core.Output<java.util.Optional<java.lang.Integer>> numberOfWorkers()  
      com.pulumi.core.Output<java.lang.String> privateAddress()  
      com.pulumi.core.Output<java.lang.String> publicAddress()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> publicKey()  
      com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> publicKeys()  
      com.pulumi.core.Output<java.lang.String> region()  
      com.pulumi.core.Output<java.lang.String> roleArn()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> securityConfiguration()  
      com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> securityGroupIds()  
      com.pulumi.core.Output<java.lang.String> status()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> subnetId()  
      com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>> tags()  
      com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll()  
      com.pulumi.core.Output<java.lang.String> vpcId()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> workerType()  
      com.pulumi.core.Output<java.lang.String> yarnEndpointAddress()  
      com.pulumi.core.Output<java.lang.Integer> zeppelinRemoteSparkInterpreterPort()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, id, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DevEndpoint

        public DevEndpoint​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • DevEndpoint

        public DevEndpoint​(java.lang.String name,
                           DevEndpointArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • DevEndpoint

        public DevEndpoint​(java.lang.String name,
                           DevEndpointArgs args,
                           @Nullable
                           com.pulumi.resources.CustomResourceOptions options)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
        options - A bag of options that control this resource's behavior.
    • Method Detail

      • arguments

        public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>> arguments()
        Returns:
        Map of arguments used to configure the endpoint.
      • arn

        public com.pulumi.core.Output<java.lang.String> arn()
        Returns:
        ARN of the endpoint.
      • availabilityZone

        public com.pulumi.core.Output<java.lang.String> availabilityZone()
        Returns:
        AWS availability zone where this endpoint is located.
      • extraJarsS3Path

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> extraJarsS3Path()
        Returns:
        Path to one or more Java Jars in an S3 bucket that should be loaded in this endpoint.
      • extraPythonLibsS3Path

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> extraPythonLibsS3Path()
        Returns:
        Path(s) to one or more Python libraries in an S3 bucket that should be loaded in this endpoint. Multiple values must be complete paths separated by a comma.
      • failureReason

        public com.pulumi.core.Output<java.lang.String> failureReason()
        Returns:
        Reason for a current failure in this endpoint.
      • glueVersion

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> glueVersion()
        Returns:
        Specifies the versions of Python and Apache Spark to use. Defaults to AWS Glue version 0.9.
      • name

        public com.pulumi.core.Output<java.lang.String> name()
        Returns:
        Name of this endpoint. It must be unique in your account.
      • numberOfNodes

        public com.pulumi.core.Output<java.util.Optional<java.lang.Integer>> numberOfNodes()
        Returns:
        Number of AWS Glue Data Processing Units (DPUs) to allocate to this endpoint. Conflicts with `workerType`.
      • numberOfWorkers

        public com.pulumi.core.Output<java.util.Optional<java.lang.Integer>> numberOfWorkers()
        Returns:
        Number of workers of a defined worker type that are allocated to this endpoint. This field is available only when you choose worker type G.1X or G.2X.
      • privateAddress

        public com.pulumi.core.Output<java.lang.String> privateAddress()
        Returns:
        Private IP address to access the endpoint within a VPC, if this endpoint is created within one.
      • publicAddress

        public com.pulumi.core.Output<java.lang.String> publicAddress()
        Returns:
        Public IP address used by this endpoint. The PublicAddress field is present only when you create a non-VPC endpoint.
      • publicKey

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> publicKey()
        Returns:
        Public key to be used by this endpoint for authentication.
      • publicKeys

        public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> publicKeys()
        Returns:
        List of public keys to be used by this endpoint for authentication.
      • region

        public com.pulumi.core.Output<java.lang.String> region()
        Returns:
        Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
      • roleArn

        public com.pulumi.core.Output<java.lang.String> roleArn()
        Returns:
        IAM role for this endpoint.
      • securityConfiguration

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> securityConfiguration()
        Returns:
        Name of the Security Configuration structure to be used with this endpoint.
      • securityGroupIds

        public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> securityGroupIds()
        Returns:
        Security group IDs for the security groups to be used by this endpoint.
      • status

        public com.pulumi.core.Output<java.lang.String> status()
        Returns:
        Current status of this endpoint.
      • subnetId

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> subnetId()
        Returns:
        Subnet ID for the new endpoint to use.
      • tags

        public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>> tags()
        Returns:
        Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
      • tagsAll

        public com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll()
        Returns:
        Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
      • vpcId

        public com.pulumi.core.Output<java.lang.String> vpcId()
        Returns:
        ID of the VPC used by this endpoint.
      • workerType

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> workerType()
        Returns:
        Type of predefined worker that is allocated to this endpoint. Accepts a value of Standard, G.1X, or G.2X.
      • yarnEndpointAddress

        public com.pulumi.core.Output<java.lang.String> yarnEndpointAddress()
        Returns:
        YARN endpoint address used by this endpoint.
      • zeppelinRemoteSparkInterpreterPort

        public com.pulumi.core.Output<java.lang.Integer> zeppelinRemoteSparkInterpreterPort()
        Returns:
        Apache Zeppelin port for the remote Apache Spark interpreter.
      • get

        public static DevEndpoint get​(java.lang.String name,
                                      com.pulumi.core.Output<java.lang.String> id,
                                      @Nullable
                                      DevEndpointState state,
                                      @Nullable
                                      com.pulumi.resources.CustomResourceOptions options)
        Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
        Parameters:
        name - The _unique_ name of the resulting resource.
        id - The _unique_ provider ID of the resource to lookup.
        state -
        options - Optional settings to control the behavior of the CustomResource.