UNPKG

@pulumi/aws-native

Version:

The Pulumi AWS Cloud Control Provider enables you to build, deploy, and manage [any AWS resource that's supported by the AWS Cloud Control API](https://github.com/pulumi/pulumi-aws-native/blob/master/provider/cmd/pulumi-gen-aws-native/supported-types.txt)

101 lines 6.44 kB
"use strict"; // *** 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.VpcEndpoint = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Specifies a VPC endpoint. A VPC endpoint provides a private connection between your VPC and an endpoint service. You can use an endpoint service provided by AWS , an AWS Marketplace Partner, or another AWS accounts in your organization. For more information, see the [AWS PrivateLink User Guide](https://docs.aws.amazon.com/vpc/latest/privatelink/) . * * An endpoint of type `Interface` establishes connections between the subnets in your VPC and an AWS service , your own service, or a service hosted by another AWS account . With an interface VPC endpoint, you specify the subnets in which to create the endpoint and the security groups to associate with the endpoint network interfaces. * * An endpoint of type `gateway` serves as a target for a route in your route table for traffic destined for Amazon S3 or DynamoDB . You can specify an endpoint policy for the endpoint, which controls access to the service from your VPC. You can also specify the VPC route tables that use the endpoint. For more information about connectivity to Amazon S3 , see [Why can't I connect to an S3 bucket using a gateway VPC endpoint?](https://docs.aws.amazon.com/premiumsupport/knowledge-center/connect-s3-vpc-endpoint) * * An endpoint of type `GatewayLoadBalancer` provides private connectivity between your VPC and virtual appliances from a service provider. */ class VpcEndpoint extends pulumi.CustomResource { /** * Get an existing VpcEndpoint 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 opts Optional settings to control the behavior of the CustomResource. */ static get(name, id, opts) { return new VpcEndpoint(name, undefined, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of VpcEndpoint. 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'] === VpcEndpoint.__pulumiType; } /** * Create a VpcEndpoint resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name, args, opts) { let resourceInputs = {}; opts = opts || {}; if (!opts.id) { if ((!args || args.vpcId === undefined) && !opts.urn) { throw new Error("Missing required property 'vpcId'"); } resourceInputs["dnsOptions"] = args ? args.dnsOptions : undefined; resourceInputs["ipAddressType"] = args ? args.ipAddressType : undefined; resourceInputs["policyDocument"] = args ? args.policyDocument : undefined; resourceInputs["privateDnsEnabled"] = args ? args.privateDnsEnabled : undefined; resourceInputs["resourceConfigurationArn"] = args ? args.resourceConfigurationArn : undefined; resourceInputs["routeTableIds"] = args ? args.routeTableIds : undefined; resourceInputs["securityGroupIds"] = args ? args.securityGroupIds : undefined; resourceInputs["serviceName"] = args ? args.serviceName : undefined; resourceInputs["serviceNetworkArn"] = args ? args.serviceNetworkArn : undefined; resourceInputs["serviceRegion"] = args ? args.serviceRegion : undefined; resourceInputs["subnetIds"] = args ? args.subnetIds : undefined; resourceInputs["tags"] = args ? args.tags : undefined; resourceInputs["vpcEndpointType"] = args ? args.vpcEndpointType : undefined; resourceInputs["vpcId"] = args ? args.vpcId : undefined; resourceInputs["awsId"] = undefined /*out*/; resourceInputs["creationTimestamp"] = undefined /*out*/; resourceInputs["dnsEntries"] = undefined /*out*/; resourceInputs["networkInterfaceIds"] = undefined /*out*/; } else { resourceInputs["awsId"] = undefined /*out*/; resourceInputs["creationTimestamp"] = undefined /*out*/; resourceInputs["dnsEntries"] = undefined /*out*/; resourceInputs["dnsOptions"] = undefined /*out*/; resourceInputs["ipAddressType"] = undefined /*out*/; resourceInputs["networkInterfaceIds"] = undefined /*out*/; resourceInputs["policyDocument"] = undefined /*out*/; resourceInputs["privateDnsEnabled"] = undefined /*out*/; resourceInputs["resourceConfigurationArn"] = undefined /*out*/; resourceInputs["routeTableIds"] = undefined /*out*/; resourceInputs["securityGroupIds"] = undefined /*out*/; resourceInputs["serviceName"] = undefined /*out*/; resourceInputs["serviceNetworkArn"] = undefined /*out*/; resourceInputs["serviceRegion"] = undefined /*out*/; resourceInputs["subnetIds"] = undefined /*out*/; resourceInputs["tags"] = undefined /*out*/; resourceInputs["vpcEndpointType"] = undefined /*out*/; resourceInputs["vpcId"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const replaceOnChanges = { replaceOnChanges: ["resourceConfigurationArn", "serviceName", "serviceNetworkArn", "serviceRegion", "vpcEndpointType", "vpcId"] }; opts = pulumi.mergeOptions(opts, replaceOnChanges); super(VpcEndpoint.__pulumiType, name, resourceInputs, opts); } } exports.VpcEndpoint = VpcEndpoint; /** @internal */ VpcEndpoint.__pulumiType = 'aws-native:ec2:VpcEndpoint'; //# sourceMappingURL=vpcEndpoint.js.map