@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
144 lines • 6.58 kB
JavaScript
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.DevEndpoint = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Provides a Glue Development Endpoint resource.
*
* ## Example Usage
*
* Basic usage:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.iam.getPolicyDocument({
* statements: [{
* actions: ["sts:AssumeRole"],
* principals: [{
* type: "Service",
* identifiers: ["glue.amazonaws.com"],
* }],
* }],
* });
* 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
*
* Using `pulumi import`, import a Glue Development Endpoint using the `name`. For example:
*
* ```sh
* $ pulumi import aws:glue/devEndpoint:DevEndpoint example foo
* ```
*/
class DevEndpoint extends pulumi.CustomResource {
/**
* Get an existing DevEndpoint resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name, id, state, opts) {
return new DevEndpoint(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of DevEndpoint. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj) {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === DevEndpoint.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["arguments"] = state?.arguments;
resourceInputs["arn"] = state?.arn;
resourceInputs["availabilityZone"] = state?.availabilityZone;
resourceInputs["extraJarsS3Path"] = state?.extraJarsS3Path;
resourceInputs["extraPythonLibsS3Path"] = state?.extraPythonLibsS3Path;
resourceInputs["failureReason"] = state?.failureReason;
resourceInputs["glueVersion"] = state?.glueVersion;
resourceInputs["name"] = state?.name;
resourceInputs["numberOfNodes"] = state?.numberOfNodes;
resourceInputs["numberOfWorkers"] = state?.numberOfWorkers;
resourceInputs["privateAddress"] = state?.privateAddress;
resourceInputs["publicAddress"] = state?.publicAddress;
resourceInputs["publicKey"] = state?.publicKey;
resourceInputs["publicKeys"] = state?.publicKeys;
resourceInputs["region"] = state?.region;
resourceInputs["roleArn"] = state?.roleArn;
resourceInputs["securityConfiguration"] = state?.securityConfiguration;
resourceInputs["securityGroupIds"] = state?.securityGroupIds;
resourceInputs["status"] = state?.status;
resourceInputs["subnetId"] = state?.subnetId;
resourceInputs["tags"] = state?.tags;
resourceInputs["tagsAll"] = state?.tagsAll;
resourceInputs["vpcId"] = state?.vpcId;
resourceInputs["workerType"] = state?.workerType;
resourceInputs["yarnEndpointAddress"] = state?.yarnEndpointAddress;
resourceInputs["zeppelinRemoteSparkInterpreterPort"] = state?.zeppelinRemoteSparkInterpreterPort;
}
else {
const args = argsOrState;
if (args?.roleArn === undefined && !opts.urn) {
throw new Error("Missing required property 'roleArn'");
}
resourceInputs["arguments"] = args?.arguments;
resourceInputs["extraJarsS3Path"] = args?.extraJarsS3Path;
resourceInputs["extraPythonLibsS3Path"] = args?.extraPythonLibsS3Path;
resourceInputs["glueVersion"] = args?.glueVersion;
resourceInputs["name"] = args?.name;
resourceInputs["numberOfNodes"] = args?.numberOfNodes;
resourceInputs["numberOfWorkers"] = args?.numberOfWorkers;
resourceInputs["publicKey"] = args?.publicKey;
resourceInputs["publicKeys"] = args?.publicKeys;
resourceInputs["region"] = args?.region;
resourceInputs["roleArn"] = args?.roleArn;
resourceInputs["securityConfiguration"] = args?.securityConfiguration;
resourceInputs["securityGroupIds"] = args?.securityGroupIds;
resourceInputs["subnetId"] = args?.subnetId;
resourceInputs["tags"] = args?.tags;
resourceInputs["workerType"] = args?.workerType;
resourceInputs["arn"] = undefined /*out*/;
resourceInputs["availabilityZone"] = undefined /*out*/;
resourceInputs["failureReason"] = undefined /*out*/;
resourceInputs["privateAddress"] = undefined /*out*/;
resourceInputs["publicAddress"] = undefined /*out*/;
resourceInputs["status"] = undefined /*out*/;
resourceInputs["tagsAll"] = undefined /*out*/;
resourceInputs["vpcId"] = undefined /*out*/;
resourceInputs["yarnEndpointAddress"] = undefined /*out*/;
resourceInputs["zeppelinRemoteSparkInterpreterPort"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(DevEndpoint.__pulumiType, name, resourceInputs, opts);
}
}
exports.DevEndpoint = DevEndpoint;
/** @internal */
DevEndpoint.__pulumiType = 'aws:glue/devEndpoint:DevEndpoint';
//# sourceMappingURL=devEndpoint.js.map
;