UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

107 lines 4.35 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.VpcIngressConnection = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Manages an App Runner VPC Ingress Connection. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.apprunner.VpcIngressConnection("example", { * name: "example", * serviceArn: exampleAwsApprunnerService.arn, * ingressVpcConfiguration: { * vpcId: _default.id, * vpcEndpointId: apprunner.id, * }, * tags: { * foo: "bar", * }, * }); * ``` * * ## Import * * ### Identity Schema * * #### Required * * - `arn` (String) Amazon Resource Name (ARN) of the App Runner VPC ingress connection. * * Using `pulumi import`, import App Runner VPC Ingress Connection using the `arn`. For example: * * console * * % pulumi import aws_apprunner_vpc_ingress_connection.example "arn:aws:apprunner:us-west-2:837424938642:vpcingressconnection/example/b379f86381d74825832c2e82080342fa" */ class VpcIngressConnection extends pulumi.CustomResource { /** * Get an existing VpcIngressConnection 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 VpcIngressConnection(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of VpcIngressConnection. 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'] === VpcIngressConnection.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["arn"] = state?.arn; resourceInputs["domainName"] = state?.domainName; resourceInputs["ingressVpcConfiguration"] = state?.ingressVpcConfiguration; resourceInputs["name"] = state?.name; resourceInputs["region"] = state?.region; resourceInputs["serviceArn"] = state?.serviceArn; resourceInputs["status"] = state?.status; resourceInputs["tags"] = state?.tags; resourceInputs["tagsAll"] = state?.tagsAll; } else { const args = argsOrState; if (args?.ingressVpcConfiguration === undefined && !opts.urn) { throw new Error("Missing required property 'ingressVpcConfiguration'"); } if (args?.serviceArn === undefined && !opts.urn) { throw new Error("Missing required property 'serviceArn'"); } resourceInputs["ingressVpcConfiguration"] = args?.ingressVpcConfiguration; resourceInputs["name"] = args?.name; resourceInputs["region"] = args?.region; resourceInputs["serviceArn"] = args?.serviceArn; resourceInputs["tags"] = args?.tags; resourceInputs["arn"] = undefined /*out*/; resourceInputs["domainName"] = undefined /*out*/; resourceInputs["status"] = undefined /*out*/; resourceInputs["tagsAll"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(VpcIngressConnection.__pulumiType, name, resourceInputs, opts); } } exports.VpcIngressConnection = VpcIngressConnection; /** @internal */ VpcIngressConnection.__pulumiType = 'aws:apprunner/vpcIngressConnection:VpcIngressConnection'; //# sourceMappingURL=vpcIngressConnection.js.map