Try AWS Native preview for resources not in the classic version.
aws.apprunner.VpcIngressConnection
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Manages an App Runner VPC Ingress Connection.
Example Usage
using System.Collections.Generic;
using System.Linq;
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:
- Ingress
Vpc VpcConfiguration Ingress Connection Ingress Vpc Configuration Args 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 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.
- 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.
- Ingress
Vpc VpcConfiguration Ingress Connection Ingress Vpc Configuration Args 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 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.
- 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.
- ingress
Vpc VpcConfiguration Ingress Connection Ingress Vpc Configuration Args 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 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.
- 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.
- ingress
Vpc VpcConfiguration Ingress Connection Ingress Vpc Configuration Args 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 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.
- {[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_ Vpcconfiguration Ingress Connection Ingress Vpc Configuration Args 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.
- 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.
- ingress
Vpc Property MapConfiguration 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 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.
- 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.
- Domain
Name 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.
- 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.
- Domain
Name 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.
- 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.
- domain
Name 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.
- 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.
- domain
Name 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.
- {[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.
- 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.
- domain
Name 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.
- 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.
- Arn string
The Amazon Resource Name (ARN) of the VPC Ingress Connection.
- Domain
Name string The domain name associated with the VPC Ingress Connection resource.
- Ingress
Vpc VpcConfiguration Ingress Connection Ingress Vpc Configuration Args 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.
- Service
Arn 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.
- 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.- 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.
- Domain
Name string The domain name associated with the VPC Ingress Connection resource.
- Ingress
Vpc VpcConfiguration Ingress Connection Ingress Vpc Configuration Args 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.
- Service
Arn 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.
- 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.- 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.
- domain
Name String The domain name associated with the VPC Ingress Connection resource.
- ingress
Vpc VpcConfiguration Ingress Connection Ingress Vpc Configuration Args 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.
- service
Arn 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.
- 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.- 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.
- domain
Name string The domain name associated with the VPC Ingress Connection resource.
- ingress
Vpc VpcConfiguration Ingress Connection Ingress Vpc Configuration Args 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.
- service
Arn 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.
- {[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.- {[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_ Vpcconfiguration Ingress Connection Ingress Vpc Configuration Args 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.
- 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.- 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.
- domain
Name String The domain name associated with the VPC Ingress Connection resource.
- ingress
Vpc Property MapConfiguration 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.
- service
Arn 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.
- 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.- Map<String>
Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Supporting Types
VpcIngressConnectionIngressVpcConfiguration
- Vpc
Endpoint stringId The ID of the VPC endpoint that your App Runner service connects to.
- Vpc
Id string The ID of the VPC that is used for the VPC endpoint.
- Vpc
Endpoint stringId The ID of the VPC endpoint that your App Runner service connects to.
- Vpc
Id string The ID of the VPC that is used for the VPC endpoint.
- vpc
Endpoint StringId The ID of the VPC endpoint that your App Runner service connects to.
- vpc
Id String The ID of the VPC that is used for the VPC endpoint.
- vpc
Endpoint stringId The ID of the VPC endpoint that your App Runner service connects to.
- vpc
Id string The ID of the VPC that is used for the VPC endpoint.
- vpc_
endpoint_ strid 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.
- vpc
Endpoint StringId The ID of the VPC endpoint that your App Runner service connects to.
- vpc
Id 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.
Try AWS Native preview for resources not in the classic version.