aws logo
AWS Classic v5.29.1, Feb 4 23

aws.apprunner.VpcIngressConnection

Manages an App Runner VPC Ingress Connection.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = new Aws.AppRunner.VpcIngressConnection("example", new()
    {
        ServiceArn = aws_apprunner_service.Example.Arn,
        IngressVpcConfiguration = new Aws.AppRunner.Inputs.VpcIngressConnectionIngressVpcConfigurationArgs
        {
            VpcId = aws_default_vpc.Default.Id,
            VpcEndpointId = aws_vpc_endpoint.Apprunner.Id,
        },
        Tags = 
        {
            { "foo", "bar" },
        },
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/apprunner"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := apprunner.NewVpcIngressConnection(ctx, "example", &apprunner.VpcIngressConnectionArgs{
			ServiceArn: pulumi.Any(aws_apprunner_service.Example.Arn),
			IngressVpcConfiguration: &apprunner.VpcIngressConnectionIngressVpcConfigurationArgs{
				VpcId:         pulumi.Any(aws_default_vpc.Default.Id),
				VpcEndpointId: pulumi.Any(aws_vpc_endpoint.Apprunner.Id),
			},
			Tags: pulumi.StringMap{
				"foo": pulumi.String("bar"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.apprunner.VpcIngressConnection;
import com.pulumi.aws.apprunner.VpcIngressConnectionArgs;
import com.pulumi.aws.apprunner.inputs.VpcIngressConnectionIngressVpcConfigurationArgs;
import java.util.List;
import java.util.ArrayList;
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) {
        var example = new VpcIngressConnection("example", VpcIngressConnectionArgs.builder()        
            .serviceArn(aws_apprunner_service.example().arn())
            .ingressVpcConfiguration(VpcIngressConnectionIngressVpcConfigurationArgs.builder()
                .vpcId(aws_default_vpc.default().id())
                .vpcEndpointId(aws_vpc_endpoint.apprunner().id())
                .build())
            .tags(Map.of("foo", "bar"))
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example = aws.apprunner.VpcIngressConnection("example",
    service_arn=aws_apprunner_service["example"]["arn"],
    ingress_vpc_configuration=aws.apprunner.VpcIngressConnectionIngressVpcConfigurationArgs(
        vpc_id=aws_default_vpc["default"]["id"],
        vpc_endpoint_id=aws_vpc_endpoint["apprunner"]["id"],
    ),
    tags={
        "foo": "bar",
    })
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.apprunner.VpcIngressConnection("example", {
    serviceArn: aws_apprunner_service.example.arn,
    ingressVpcConfiguration: {
        vpcId: aws_default_vpc["default"].id,
        vpcEndpointId: aws_vpc_endpoint.apprunner.id,
    },
    tags: {
        foo: "bar",
    },
});
resources:
  example:
    type: aws:apprunner:VpcIngressConnection
    properties:
      serviceArn: ${aws_apprunner_service.example.arn}
      ingressVpcConfiguration:
        vpcId: ${aws_default_vpc.default.id}
        vpcEndpointId: ${aws_vpc_endpoint.apprunner.id}
      tags:
        foo: bar

Create VpcIngressConnection Resource

new VpcIngressConnection(name: string, args: VpcIngressConnectionArgs, opts?: CustomResourceOptions);
@overload
def VpcIngressConnection(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         ingress_vpc_configuration: Optional[VpcIngressConnectionIngressVpcConfigurationArgs] = None,
                         name: Optional[str] = None,
                         service_arn: Optional[str] = None,
                         tags: Optional[Mapping[str, str]] = None)
@overload
def VpcIngressConnection(resource_name: str,
                         args: VpcIngressConnectionArgs,
                         opts: Optional[ResourceOptions] = None)
func NewVpcIngressConnection(ctx *Context, name string, args VpcIngressConnectionArgs, opts ...ResourceOption) (*VpcIngressConnection, error)
public VpcIngressConnection(string name, VpcIngressConnectionArgs args, CustomResourceOptions? opts = null)
public VpcIngressConnection(String name, VpcIngressConnectionArgs args)
public VpcIngressConnection(String name, VpcIngressConnectionArgs args, CustomResourceOptions options)
type: aws:apprunner:VpcIngressConnection
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args VpcIngressConnectionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args VpcIngressConnectionArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args VpcIngressConnectionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args VpcIngressConnectionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args VpcIngressConnectionArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

VpcIngressConnection Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The VpcIngressConnection resource accepts the following input properties:

IngressVpcConfiguration VpcIngressConnectionIngressVpcConfigurationArgs

Specifications for the customer’s Amazon VPC and the related AWS PrivateLink VPC endpoint that are used to create the VPC Ingress Connection resource. See Ingress VPC Configuration below for more details.

ServiceArn string

The Amazon Resource Name (ARN) for this App Runner service that is used to create the VPC Ingress Connection resource.

Name string

A name for the VPC Ingress Connection resource. It must be unique across all the active VPC Ingress Connections in your AWS account in the AWS Region.

Tags Dictionary<string, string>

Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

IngressVpcConfiguration VpcIngressConnectionIngressVpcConfigurationArgs

Specifications for the customer’s Amazon VPC and the related AWS PrivateLink VPC endpoint that are used to create the VPC Ingress Connection resource. See Ingress VPC Configuration below for more details.

ServiceArn string

The Amazon Resource Name (ARN) for this App Runner service that is used to create the VPC Ingress Connection resource.

Name string

A name for the VPC Ingress Connection resource. It must be unique across all the active VPC Ingress Connections in your AWS account in the AWS Region.

Tags map[string]string

Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

ingressVpcConfiguration VpcIngressConnectionIngressVpcConfigurationArgs

Specifications for the customer’s Amazon VPC and the related AWS PrivateLink VPC endpoint that are used to create the VPC Ingress Connection resource. See Ingress VPC Configuration below for more details.

serviceArn String

The Amazon Resource Name (ARN) for this App Runner service that is used to create the VPC Ingress Connection resource.

name String

A name for the VPC Ingress Connection resource. It must be unique across all the active VPC Ingress Connections in your AWS account in the AWS Region.

tags Map<String,String>

Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

ingressVpcConfiguration VpcIngressConnectionIngressVpcConfigurationArgs

Specifications for the customer’s Amazon VPC and the related AWS PrivateLink VPC endpoint that are used to create the VPC Ingress Connection resource. See Ingress VPC Configuration below for more details.

serviceArn string

The Amazon Resource Name (ARN) for this App Runner service that is used to create the VPC Ingress Connection resource.

name string

A name for the VPC Ingress Connection resource. It must be unique across all the active VPC Ingress Connections in your AWS account in the AWS Region.

tags {[key: string]: string}

Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

ingress_vpc_configuration VpcIngressConnectionIngressVpcConfigurationArgs

Specifications for the customer’s Amazon VPC and the related AWS PrivateLink VPC endpoint that are used to create the VPC Ingress Connection resource. See Ingress VPC Configuration below for more details.

service_arn str

The Amazon Resource Name (ARN) for this App Runner service that is used to create the VPC Ingress Connection resource.

name str

A name for the VPC Ingress Connection resource. It must be unique across all the active VPC Ingress Connections in your AWS account in the AWS Region.

tags Mapping[str, str]

Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

ingressVpcConfiguration Property Map

Specifications for the customer’s Amazon VPC and the related AWS PrivateLink VPC endpoint that are used to create the VPC Ingress Connection resource. See Ingress VPC Configuration below for more details.

serviceArn String

The Amazon Resource Name (ARN) for this App Runner service that is used to create the VPC Ingress Connection resource.

name String

A name for the VPC Ingress Connection resource. It must be unique across all the active VPC Ingress Connections in your AWS account in the AWS Region.

tags Map<String>

Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Outputs

All input properties are implicitly available as output properties. Additionally, the VpcIngressConnection resource produces the following output properties:

Arn string

The Amazon Resource Name (ARN) of the VPC Ingress Connection.

DomainName string

The domain name associated with the VPC Ingress Connection resource.

Id string

The provider-assigned unique ID for this managed resource.

Status string

The current status of the VPC Ingress Connection.

TagsAll Dictionary<string, string>

Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Arn string

The Amazon Resource Name (ARN) of the VPC Ingress Connection.

DomainName string

The domain name associated with the VPC Ingress Connection resource.

Id string

The provider-assigned unique ID for this managed resource.

Status string

The current status of the VPC Ingress Connection.

TagsAll map[string]string

Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

arn String

The Amazon Resource Name (ARN) of the VPC Ingress Connection.

domainName String

The domain name associated with the VPC Ingress Connection resource.

id String

The provider-assigned unique ID for this managed resource.

status String

The current status of the VPC Ingress Connection.

tagsAll Map<String,String>

Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

arn string

The Amazon Resource Name (ARN) of the VPC Ingress Connection.

domainName string

The domain name associated with the VPC Ingress Connection resource.

id string

The provider-assigned unique ID for this managed resource.

status string

The current status of the VPC Ingress Connection.

tagsAll {[key: string]: string}

Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

arn str

The Amazon Resource Name (ARN) of the VPC Ingress Connection.

domain_name str

The domain name associated with the VPC Ingress Connection resource.

id str

The provider-assigned unique ID for this managed resource.

status str

The current status of the VPC Ingress Connection.

tags_all Mapping[str, str]

Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

arn String

The Amazon Resource Name (ARN) of the VPC Ingress Connection.

domainName String

The domain name associated with the VPC Ingress Connection resource.

id String

The provider-assigned unique ID for this managed resource.

status String

The current status of the VPC Ingress Connection.

tagsAll Map<String>

Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Look up Existing VpcIngressConnection Resource

Get an existing VpcIngressConnection resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: VpcIngressConnectionState, opts?: CustomResourceOptions): VpcIngressConnection
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        arn: Optional[str] = None,
        domain_name: Optional[str] = None,
        ingress_vpc_configuration: Optional[VpcIngressConnectionIngressVpcConfigurationArgs] = None,
        name: Optional[str] = None,
        service_arn: Optional[str] = None,
        status: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None) -> VpcIngressConnection
func GetVpcIngressConnection(ctx *Context, name string, id IDInput, state *VpcIngressConnectionState, opts ...ResourceOption) (*VpcIngressConnection, error)
public static VpcIngressConnection Get(string name, Input<string> id, VpcIngressConnectionState? state, CustomResourceOptions? opts = null)
public static VpcIngressConnection get(String name, Output<String> id, VpcIngressConnectionState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Arn string

The Amazon Resource Name (ARN) of the VPC Ingress Connection.

DomainName string

The domain name associated with the VPC Ingress Connection resource.

IngressVpcConfiguration VpcIngressConnectionIngressVpcConfigurationArgs

Specifications for the customer’s Amazon VPC and the related AWS PrivateLink VPC endpoint that are used to create the VPC Ingress Connection resource. See Ingress VPC Configuration below for more details.

Name string

A name for the VPC Ingress Connection resource. It must be unique across all the active VPC Ingress Connections in your AWS account in the AWS Region.

ServiceArn string

The Amazon Resource Name (ARN) for this App Runner service that is used to create the VPC Ingress Connection resource.

Status string

The current status of the VPC Ingress Connection.

Tags Dictionary<string, string>

Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

TagsAll Dictionary<string, string>

Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Arn string

The Amazon Resource Name (ARN) of the VPC Ingress Connection.

DomainName string

The domain name associated with the VPC Ingress Connection resource.

IngressVpcConfiguration VpcIngressConnectionIngressVpcConfigurationArgs

Specifications for the customer’s Amazon VPC and the related AWS PrivateLink VPC endpoint that are used to create the VPC Ingress Connection resource. See Ingress VPC Configuration below for more details.

Name string

A name for the VPC Ingress Connection resource. It must be unique across all the active VPC Ingress Connections in your AWS account in the AWS Region.

ServiceArn string

The Amazon Resource Name (ARN) for this App Runner service that is used to create the VPC Ingress Connection resource.

Status string

The current status of the VPC Ingress Connection.

Tags map[string]string

Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

TagsAll map[string]string

Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

arn String

The Amazon Resource Name (ARN) of the VPC Ingress Connection.

domainName String

The domain name associated with the VPC Ingress Connection resource.

ingressVpcConfiguration VpcIngressConnectionIngressVpcConfigurationArgs

Specifications for the customer’s Amazon VPC and the related AWS PrivateLink VPC endpoint that are used to create the VPC Ingress Connection resource. See Ingress VPC Configuration below for more details.

name String

A name for the VPC Ingress Connection resource. It must be unique across all the active VPC Ingress Connections in your AWS account in the AWS Region.

serviceArn String

The Amazon Resource Name (ARN) for this App Runner service that is used to create the VPC Ingress Connection resource.

status String

The current status of the VPC Ingress Connection.

tags Map<String,String>

Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tagsAll Map<String,String>

Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

arn string

The Amazon Resource Name (ARN) of the VPC Ingress Connection.

domainName string

The domain name associated with the VPC Ingress Connection resource.

ingressVpcConfiguration VpcIngressConnectionIngressVpcConfigurationArgs

Specifications for the customer’s Amazon VPC and the related AWS PrivateLink VPC endpoint that are used to create the VPC Ingress Connection resource. See Ingress VPC Configuration below for more details.

name string

A name for the VPC Ingress Connection resource. It must be unique across all the active VPC Ingress Connections in your AWS account in the AWS Region.

serviceArn string

The Amazon Resource Name (ARN) for this App Runner service that is used to create the VPC Ingress Connection resource.

status string

The current status of the VPC Ingress Connection.

tags {[key: string]: string}

Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tagsAll {[key: string]: string}

Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

arn str

The Amazon Resource Name (ARN) of the VPC Ingress Connection.

domain_name str

The domain name associated with the VPC Ingress Connection resource.

ingress_vpc_configuration VpcIngressConnectionIngressVpcConfigurationArgs

Specifications for the customer’s Amazon VPC and the related AWS PrivateLink VPC endpoint that are used to create the VPC Ingress Connection resource. See Ingress VPC Configuration below for more details.

name str

A name for the VPC Ingress Connection resource. It must be unique across all the active VPC Ingress Connections in your AWS account in the AWS Region.

service_arn str

The Amazon Resource Name (ARN) for this App Runner service that is used to create the VPC Ingress Connection resource.

status str

The current status of the VPC Ingress Connection.

tags Mapping[str, str]

Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tags_all Mapping[str, str]

Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

arn String

The Amazon Resource Name (ARN) of the VPC Ingress Connection.

domainName String

The domain name associated with the VPC Ingress Connection resource.

ingressVpcConfiguration Property Map

Specifications for the customer’s Amazon VPC and the related AWS PrivateLink VPC endpoint that are used to create the VPC Ingress Connection resource. See Ingress VPC Configuration below for more details.

name String

A name for the VPC Ingress Connection resource. It must be unique across all the active VPC Ingress Connections in your AWS account in the AWS Region.

serviceArn String

The Amazon Resource Name (ARN) for this App Runner service that is used to create the VPC Ingress Connection resource.

status String

The current status of the VPC Ingress Connection.

tags Map<String>

Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tagsAll Map<String>

Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Supporting Types

VpcIngressConnectionIngressVpcConfiguration

VpcEndpointId string

The ID of the VPC endpoint that your App Runner service connects to.

VpcId string

The ID of the VPC that is used for the VPC endpoint.

VpcEndpointId string

The ID of the VPC endpoint that your App Runner service connects to.

VpcId string

The ID of the VPC that is used for the VPC endpoint.

vpcEndpointId String

The ID of the VPC endpoint that your App Runner service connects to.

vpcId String

The ID of the VPC that is used for the VPC endpoint.

vpcEndpointId string

The ID of the VPC endpoint that your App Runner service connects to.

vpcId string

The ID of the VPC that is used for the VPC endpoint.

vpc_endpoint_id str

The ID of the VPC endpoint that your App Runner service connects to.

vpc_id str

The ID of the VPC that is used for the VPC endpoint.

vpcEndpointId String

The ID of the VPC endpoint that your App Runner service connects to.

vpcId String

The ID of the VPC that is used for the VPC endpoint.

Import

App Runner VPC Ingress Connection can be imported by using the arn, e.g.,

 $ pulumi import aws:apprunner/vpcIngressConnection:VpcIngressConnection example "arn:aws:apprunner:us-west-2:837424938642:vpcingressconnection/example/b379f86381d74825832c2e82080342fa"

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.