Resource Gateway Args
data class ResourceGatewayArgs(val ipAddressType: Output<String>? = null, val name: Output<String>? = null, val securityGroupIds: Output<List<String>>? = null, val subnetIds: Output<List<String>>? = null, val tags: Output<Map<String, String>>? = null, val timeouts: Output<ResourceGatewayTimeoutsArgs>? = null, val vpcId: Output<String>? = null) : ConvertibleToJava<ResourceGatewayArgs>
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",
},
});
Content copied to clipboard
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",
})
Content copied to clipboard
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" },
},
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
resources:
example:
type: aws:vpclattice:ResourceGateway
properties:
name: Example
vpcId: ${exampleAwsVpc.id}
subnetIds:
- ${exampleAwsSubnet.id}
tags:
Environment: Example
Content copied to clipboard
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",
},
});
Content copied to clipboard
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",
})
Content copied to clipboard
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" },
},
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
resources:
example:
type: aws:vpclattice:ResourceGateway
properties:
name: Example
vpcId: ${exampleAwsVpc.id}
subnetIds:
- ${exampleAwsSubnet.id}
ipAddressType: DUALSTACK
tags:
Environment: Example
Content copied to clipboard
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],
});
Content copied to clipboard
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"]])
Content copied to clipboard
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,
},
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
resources:
example:
type: aws:vpclattice:ResourceGateway
properties:
name: Example
vpcId: ${exampleAwsVpc.id}
securityGroupIds:
- ${test.id}
subnetIds:
- ${exampleAwsSubnet.id}
Content copied to clipboard
Import
Using pulumi import
, import VPC Lattice Resource Gateway using the id
. For example:
$ pulumi import aws:vpclattice/resourceGateway:ResourceGateway example rgw-0a1b2c3d4e5f
Content copied to clipboard
Properties
Link copied to clipboard
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
Security group IDs associated with the resource gateway. The security groups must be in the same VPC.
Link copied to clipboard