Package com.pulumi.aws.vpclattice
Class ResourceGateway
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.vpclattice.ResourceGateway
-
public class ResourceGateway extends com.pulumi.resources.CustomResourceResource for managing an AWS VPC Lattice Resource Gateway. ## Example Usage ### Basic Usage
### Specifying IP address typepackage 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.ArrayList; import java.util.Arrays; 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()); } }
### With security groupspackage 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.ArrayList; import java.util.Arrays; 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()); } }
## Import Using `pulumi import`, import VPC Lattice Resource Gateway using the `id`. For example: ```sh $ pulumi import aws:vpclattice/resourceGateway:ResourceGateway example rgw-0a1b2c3d4e5f ```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.ArrayList; import java.util.Arrays; 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()); } }
-
-
Constructor Summary
Constructors Constructor Description ResourceGateway(java.lang.String name)ResourceGateway(java.lang.String name, ResourceGatewayArgs args)ResourceGateway(java.lang.String name, ResourceGatewayArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>arn()static ResourceGatewayget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, ResourceGatewayState state, com.pulumi.resources.CustomResourceOptions options)Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>ipAddressType()com.pulumi.core.Output<java.lang.Integer>ipv4AddressesPerEni()com.pulumi.core.Output<java.lang.String>name()com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<java.lang.String>resourceConfigDnsResolution()com.pulumi.core.Output<java.util.List<java.lang.String>>securityGroupIds()com.pulumi.core.Output<java.lang.String>status()com.pulumi.core.Output<java.util.List<java.lang.String>>subnetIds()com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>>tags()com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>tagsAll()com.pulumi.core.Output<java.util.Optional<ResourceGatewayTimeouts>>timeouts()com.pulumi.core.Output<java.lang.String>vpcId()
-
-
-
Constructor Detail
-
ResourceGateway
public ResourceGateway(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
ResourceGateway
public ResourceGateway(java.lang.String name, ResourceGatewayArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
ResourceGateway
public ResourceGateway(java.lang.String name, ResourceGatewayArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
arn
public com.pulumi.core.Output<java.lang.String> arn()
- Returns:
- ARN of the resource gateway.
-
ipAddressType
public com.pulumi.core.Output<java.lang.String> ipAddressType()
- Returns:
- 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.
-
ipv4AddressesPerEni
public com.pulumi.core.Output<java.lang.Integer> ipv4AddressesPerEni()
- Returns:
- Number of IPv4 addresses per ENI for your resource. This argument is only applicable to `IPV4` and `DUALSTACK` IP address types. Defaults to `16`.
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- Name of the resource gateway.
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
resourceConfigDnsResolution
public com.pulumi.core.Output<java.lang.String> resourceConfigDnsResolution()
- Returns:
- How DNS is resolved for resource configurations associated to this resource gateway. Valid values are `IN_VPC` and `PUBLIC`. Defaults to `PUBLIC`. Changing this value will trigger a resource replacement.
-
securityGroupIds
public com.pulumi.core.Output<java.util.List<java.lang.String>> securityGroupIds()
- Returns:
- Security group IDs associated with the resource gateway. The security groups must be in the same VPC.
-
status
public com.pulumi.core.Output<java.lang.String> status()
- Returns:
- Status of the resource gateway.
-
subnetIds
public com.pulumi.core.Output<java.util.List<java.lang.String>> subnetIds()
- Returns:
- IDs of the VPC subnets in which to create the resource gateway.
-
tags
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- Key-value mapping of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
-
tagsAll
public com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll()
- Returns:
- Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
-
timeouts
public com.pulumi.core.Output<java.util.Optional<ResourceGatewayTimeouts>> timeouts()
-
vpcId
public com.pulumi.core.Output<java.lang.String> vpcId()
- Returns:
- ID of the VPC for the resource gateway. The following arguments are optional:
-
get
public static ResourceGateway get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable ResourceGatewayState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name- The _unique_ name of the resulting resource.id- The _unique_ provider ID of the resource to lookup.state-options- Optional settings to control the behavior of the CustomResource.
-
-