DevEndpoint class
Provides a Glue Development Endpoint resource.
Example Usage
Basic usage:
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.iam.getPolicyDocument({
statements: [{
principals: [{
type: "Service",
identifiers: ["glue.amazonaws.com"],
}],
actions: ["sts:AssumeRole"],
}],
});
const exampleRole = new aws.iam.Role("example", {
name: "AWSGlueServiceRole-foo",
assumeRolePolicy: example.then(example => example.json),
});
const exampleDevEndpoint = new aws.glue.DevEndpoint("example", {
name: "foo",
roleArn: exampleRole.arn,
});
const example_AWSGlueServiceRole = new aws.iam.RolePolicyAttachment("example-AWSGlueServiceRole", {
policyArn: "arn:aws:iam::aws:policy/service-role/AWSGlueServiceRole",
role: exampleRole.name,
});
import pulumi
import pulumi_aws as aws
example = aws.iam.get_policy_document(statements=[{
"principals": [{
"type": "Service",
"identifiers": ["glue.amazonaws.com"],
}],
"actions": ["sts:AssumeRole"],
}])
example_role = aws.iam.Role("example",
name="AWSGlueServiceRole-foo",
assume_role_policy=example.json)
example_dev_endpoint = aws.glue.DevEndpoint("example",
name="foo",
role_arn=example_role.arn)
example__aws_glue_service_role = aws.iam.RolePolicyAttachment("example-AWSGlueServiceRole",
policy_arn="arn:aws:iam::aws:policy/service-role/AWSGlueServiceRole",
role=example_role.name)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.Iam.GetPolicyDocument.Invoke(new()
{
Statements = new[]
{
new Aws.Iam.Inputs.GetPolicyDocumentStatementInputArgs
{
Principals = new[]
{
new Aws.Iam.Inputs.GetPolicyDocumentStatementPrincipalInputArgs
{
Type = "Service",
Identifiers = new[]
{
"glue.amazonaws.com",
},
},
},
Actions = new[]
{
"sts:AssumeRole",
},
},
},
});
var exampleRole = new Aws.Iam.Role("example", new()
{
Name = "AWSGlueServiceRole-foo",
AssumeRolePolicy = example.Apply(getPolicyDocumentResult => getPolicyDocumentResult.Json),
});
var exampleDevEndpoint = new Aws.Glue.DevEndpoint("example", new()
{
Name = "foo",
RoleArn = exampleRole.Arn,
});
var example_AWSGlueServiceRole = new Aws.Iam.RolePolicyAttachment("example-AWSGlueServiceRole", new()
{
PolicyArn = "arn:aws:iam::aws:policy/service-role/AWSGlueServiceRole",
Role = exampleRole.Name,
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/glue"
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/iam"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := iam.GetPolicyDocument(ctx, &iam.GetPolicyDocumentArgs{
Statements: []iam.GetPolicyDocumentStatement{
{
Principals: []iam.GetPolicyDocumentStatementPrincipal{
{
Type: "Service",
Identifiers: []string{
"glue.amazonaws.com",
},
},
},
Actions: []string{
"sts:AssumeRole",
},
},
},
}, nil)
if err != nil {
return err
}
exampleRole, err := iam.NewRole(ctx, "example", &iam.RoleArgs{
Name: pulumi.String("AWSGlueServiceRole-foo"),
AssumeRolePolicy: pulumi.String(example.Json),
})
if err != nil {
return err
}
_, err = glue.NewDevEndpoint(ctx, "example", &glue.DevEndpointArgs{
Name: pulumi.String("foo"),
RoleArn: exampleRole.Arn,
})
if err != nil {
return err
}
_, err = iam.NewRolePolicyAttachment(ctx, "example-AWSGlueServiceRole", &iam.RolePolicyAttachmentArgs{
PolicyArn: pulumi.String("arn:aws:iam::aws:policy/service-role/AWSGlueServiceRole"),
Role: exampleRole.Name,
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
data "aws_iam_getpolicydocument" "example" {
statements {
principals {
type = "Service"
identifiers = ["glue.amazonaws.com"]
}
actions = ["sts:AssumeRole"]
}
}
resource "aws_glue_devendpoint" "example" {
name = "foo"
role_arn = aws_iam_role.example.arn
}
resource "aws_iam_role" "example" {
name = "AWSGlueServiceRole-foo"
assume_role_policy = data.aws_iam_getpolicydocument.example.json
}
resource "aws_iam_rolepolicyattachment" "example-AWSGlueServiceRole" {
policy_arn = "arn:aws:iam::aws:policy/service-role/AWSGlueServiceRole"
role = aws_iam_role.example.name
}
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());
}
}
resources:
exampleDevEndpoint:
type: aws:glue:DevEndpoint
name: example
properties:
name: foo
roleArn: ${exampleRole.arn}
exampleRole:
type: aws:iam:Role
name: example
properties:
name: AWSGlueServiceRole-foo
assumeRolePolicy: ${example.json}
example-AWSGlueServiceRole:
type: aws:iam:RolePolicyAttachment
properties:
policyArn: arn:aws:iam::aws:policy/service-role/AWSGlueServiceRole
role: ${exampleRole.name}
variables:
example:
fn::invoke:
function: aws:iam:getPolicyDocument
arguments:
statements:
- principals:
- type: Service
identifiers:
- glue.amazonaws.com
actions:
- sts:AssumeRole
Import
Using pulumi import, import a Glue Development Endpoint using the name. For example:
$ pulumi import aws:glue/devEndpoint:DevEndpoint example foo
Constructors
- DevEndpoint(String name, {DevEndpointArgs? args, CustomResourceOptions? options})
-
Creates a new DevEndpoint.
nameThe Pulumi resource name.argsArguments used to configure this DevEndpoint. The set of arguments for DevEndpoint.optionsResource options controlling this resource's behavior. - DevEndpoint.reference(String urn)
- Creates a typed reference to an existing DevEndpoint resource.
Properties
-
arguments
↔ Output<
Map< String, String> ?> -
A map of arguments used to configure the endpoint.
latefinal
-
arn
↔ Output<
String> -
The ARN of the endpoint.
latefinal
-
availabilityZone
↔ Output<
String> -
The AWS availability zone where this endpoint is located.
latefinal
-
childResources
→ Set<
Resource> -
finalinherited
-
completionSources
↔ Map<
String, IOutputCompletionSource> -
latefinalinherited
-
extraJarsS3Path
↔ Output<
String?> -
Path to one or more Java Jars in an S3 bucket that should be loaded in this endpoint.
latefinal
-
extraPythonLibsS3Path
↔ Output<
String?> -
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.
latefinal
-
failureReason
↔ Output<
String> -
The reason for a current failure in this endpoint.
latefinal
-
glueVersion
↔ Output<
String?> -
Specifies the versions of Python and Apache Spark to use. Defaults to AWS Glue version 0.9.
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
-
id
↔ Output<
String> -
getter/setter pairinherited
- isCustom → bool
-
Returns whether this resource is provider-managed.
no setterinherited
- isProtected → bool
-
Returns whether this resource is protected from deletion.
no setterinherited
- isRemote → bool
-
Whether this resource is registered as remote.
no setterinherited
- isResourceReference → bool
-
Whether this instance represents a resource value returned over RPC.
finalinherited
-
name
↔ Output<
String> -
The name of this endpoint. It must be unique in your account.
latefinal
-
numberOfNodes
↔ Output<
int?> -
The number of AWS Glue Data Processing Units (DPUs) to allocate to this endpoint. Conflicts with
workerType.latefinal -
numberOfWorkers
↔ Output<
int?> -
The 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.
latefinal
-
privateAddress
↔ Output<
String> -
A private IP address to access the endpoint within a VPC, if this endpoint is created within one.
latefinal
-
publicAddress
↔ Output<
String> -
The public IP address used by this endpoint. The PublicAddress field is present only when you create a non-VPC endpoint.
latefinal
-
publicKey
↔ Output<
String?> -
The public key to be used by this endpoint for authentication.
latefinal
-
publicKeys
↔ Output<
List< String> ?> -
A list of public keys to be used by this endpoint for authentication.
latefinal
-
region
↔ Output<
String> -
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
latefinal
-
resourceTransforms
→ List<
ResourceTransform> -
Inherited/explicit async transforms.
no setterinherited
-
roleArn
↔ Output<
String> -
The IAM role for this endpoint.
latefinal
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
securityConfiguration
↔ Output<
String?> -
The name of the Security Configuration structure to be used with this endpoint.
latefinal
-
securityGroupIds
↔ Output<
List< String> ?> -
Security group IDs for the security groups to be used by this endpoint.
latefinal
-
status
↔ Output<
String> -
The current status of this endpoint.
latefinal
-
subnetId
↔ Output<
String?> -
The subnet ID for the new endpoint to use.
latefinal
-
Key-value map of resource tags. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.latefinal -
A map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.latefinal -
transformations
→ List<
ResourceTransformation> -
Inherited/explicit legacy transformations.
no setterinherited
-
urn
↔ Output<
String> -
latefinalinherited
-
vpcId
↔ Output<
String> -
he ID of the VPC used by this endpoint.
latefinal
-
workerType
↔ Output<
String?> -
The type of predefined worker that is allocated to this endpoint. Accepts a value of Standard, G.1X, or G.2X.
latefinal
-
yarnEndpointAddress
↔ Output<
String> -
The YARN endpoint address used by this endpoint.
latefinal
-
zeppelinRemoteSparkInterpreterPort
↔ Output<
int> -
The Apache Zeppelin port for the remote Apache Spark interpreter.
latefinal
Methods
-
failId(
Object error) → void -
Completes this resource ID with an error when registration fails.
inherited
-
failOutputs(
Object error) → void -
Completes all output properties with
error.inherited -
failUrn(
Object error) → void -
Completes this resource URN with an error when registration fails.
inherited
-
getProvider(
String moduleMember) → ProviderResource? -
Returns provider for
moduleMember's package, if configured.inherited -
getResourceName(
) → String -
Returns this resource's logical name.
inherited
-
getResourceType(
) → String -
Returns this resource's Pulumi type token.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerOutput<
T> (String propertyName, {Object? decoder(Object?)?, bool isSecret = false}) → Output< T> -
Registers a dynamic output property for this resource.
inherited
-
resolveId(
String? value, {required bool isKnown}) → void -
Resolves the provider-assigned ID for this resource.
inherited
-
resolveOutputs(
Struct outputs) → void -
Resolves all output properties from a monitor response payload.
inherited
-
resolveUrn(
String value) → void -
Resolves this resource's URN once assigned by the engine.
inherited
-
serializeProperties(
Map< String, dynamic> properties) → Future<Struct> -
Serializes resource properties for RPC transmission.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
get(
String name, Input< String> id, {DevEndpointState? state, CustomResourceOptions? options}) → DevEndpoint -
Gets an existing DevEndpoint resource's state with the given
nameandid.