ResourceGateway

class ResourceGateway : KotlinCustomResource

Resource for managing an AWS VPC Lattice Resource Gateway.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.vpclattice.ResourceGateway("example", {
name: "Example",
vpcId: exampleAwsVpc.id,
subnetIds: [exampleAwsSubnet.id],
tags: {
Environment: "Example",
},
});
import pulumi
import pulumi_aws as aws
example = aws.vpclattice.ResourceGateway("example",
name="Example",
vpc_id=example_aws_vpc["id"],
subnet_ids=[example_aws_subnet["id"]],
tags={
"Environment": "Example",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.VpcLattice.ResourceGateway("example", new()
{
Name = "Example",
VpcId = exampleAwsVpc.Id,
SubnetIds = new[]
{
exampleAwsSubnet.Id,
},
Tags =
{
{ "Environment", "Example" },
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/vpclattice"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vpclattice.NewResourceGateway(ctx, "example", &vpclattice.ResourceGatewayArgs{
Name: pulumi.String("Example"),
VpcId: pulumi.Any(exampleAwsVpc.Id),
SubnetIds: pulumi.StringArray{
exampleAwsSubnet.Id,
},
Tags: pulumi.StringMap{
"Environment": pulumi.String("Example"),
},
})
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.vpclattice.ResourceGateway;
import com.pulumi.aws.vpclattice.ResourceGatewayArgs;
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 ResourceGateway("example", ResourceGatewayArgs.builder()
.name("Example")
.vpcId(exampleAwsVpc.id())
.subnetIds(exampleAwsSubnet.id())
.tags(Map.of("Environment", "Example"))
.build());
}
}
resources:
example:
type: aws:vpclattice:ResourceGateway
properties:
name: Example
vpcId: ${exampleAwsVpc.id}
subnetIds:
- ${exampleAwsSubnet.id}
tags:
Environment: Example

Specifying IP address type

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.vpclattice.ResourceGateway("example", {
name: "Example",
vpcId: exampleAwsVpc.id,
subnetIds: [exampleAwsSubnet.id],
ipAddressType: "DUALSTACK",
tags: {
Environment: "Example",
},
});
import pulumi
import pulumi_aws as aws
example = aws.vpclattice.ResourceGateway("example",
name="Example",
vpc_id=example_aws_vpc["id"],
subnet_ids=[example_aws_subnet["id"]],
ip_address_type="DUALSTACK",
tags={
"Environment": "Example",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.VpcLattice.ResourceGateway("example", new()
{
Name = "Example",
VpcId = exampleAwsVpc.Id,
SubnetIds = new[]
{
exampleAwsSubnet.Id,
},
IpAddressType = "DUALSTACK",
Tags =
{
{ "Environment", "Example" },
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/vpclattice"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vpclattice.NewResourceGateway(ctx, "example", &vpclattice.ResourceGatewayArgs{
Name: pulumi.String("Example"),
VpcId: pulumi.Any(exampleAwsVpc.Id),
SubnetIds: pulumi.StringArray{
exampleAwsSubnet.Id,
},
IpAddressType: pulumi.String("DUALSTACK"),
Tags: pulumi.StringMap{
"Environment": pulumi.String("Example"),
},
})
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.vpclattice.ResourceGateway;
import com.pulumi.aws.vpclattice.ResourceGatewayArgs;
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 ResourceGateway("example", ResourceGatewayArgs.builder()
.name("Example")
.vpcId(exampleAwsVpc.id())
.subnetIds(exampleAwsSubnet.id())
.ipAddressType("DUALSTACK")
.tags(Map.of("Environment", "Example"))
.build());
}
}
resources:
example:
type: aws:vpclattice:ResourceGateway
properties:
name: Example
vpcId: ${exampleAwsVpc.id}
subnetIds:
- ${exampleAwsSubnet.id}
ipAddressType: DUALSTACK
tags:
Environment: Example

With security groups

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.vpclattice.ResourceGateway("example", {
name: "Example",
vpcId: exampleAwsVpc.id,
securityGroupIds: [test.id],
subnetIds: [exampleAwsSubnet.id],
});
import pulumi
import pulumi_aws as aws
example = aws.vpclattice.ResourceGateway("example",
name="Example",
vpc_id=example_aws_vpc["id"],
security_group_ids=[test["id"]],
subnet_ids=[example_aws_subnet["id"]])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.VpcLattice.ResourceGateway("example", new()
{
Name = "Example",
VpcId = exampleAwsVpc.Id,
SecurityGroupIds = new[]
{
test.Id,
},
SubnetIds = new[]
{
exampleAwsSubnet.Id,
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/vpclattice"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vpclattice.NewResourceGateway(ctx, "example", &vpclattice.ResourceGatewayArgs{
Name: pulumi.String("Example"),
VpcId: pulumi.Any(exampleAwsVpc.Id),
SecurityGroupIds: pulumi.StringArray{
test.Id,
},
SubnetIds: pulumi.StringArray{
exampleAwsSubnet.Id,
},
})
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.vpclattice.ResourceGateway;
import com.pulumi.aws.vpclattice.ResourceGatewayArgs;
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 ResourceGateway("example", ResourceGatewayArgs.builder()
.name("Example")
.vpcId(exampleAwsVpc.id())
.securityGroupIds(test.id())
.subnetIds(exampleAwsSubnet.id())
.build());
}
}
resources:
example:
type: aws:vpclattice:ResourceGateway
properties:
name: Example
vpcId: ${exampleAwsVpc.id}
securityGroupIds:
- ${test.id}
subnetIds:
- ${exampleAwsSubnet.id}

Import

Using pulumi import, import VPC Lattice Resource Gateway using the id. For example:

$ pulumi import aws:vpclattice/resourceGateway:ResourceGateway example rgw-0a1b2c3d4e5f

Properties

Link copied to clipboard
val arn: Output<String>

ARN of the resource gateway.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val ipAddressType: Output<String>

IP address type used by the resource gateway. Valid values are IPV4, IPV6, and DUALSTACK. The IP address type of a resource gateway must be compatible with the subnets of the resource gateway and the IP address type of the resource.

Link copied to clipboard
val name: Output<String>

Name of the resource gateway.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Security group IDs associated with the resource gateway. The security groups must be in the same VPC.

Link copied to clipboard
val status: Output<String>

Status of the resource gateway.

Link copied to clipboard
val subnetIds: Output<List<String>>

IDs of the VPC subnets in which to create the resource gateway.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Key-value mapping 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.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

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

Link copied to clipboard
Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val vpcId: Output<String>

ID of the VPC for the resource gateway. The following arguments are optional: