Package com.pulumi.aws.directconnect
Class Gateway
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.directconnect.Gateway
-
public class Gateway extends com.pulumi.resources.CustomResourceProvides a Direct Connect Gateway. ## Example Usage
## Import ### Identity Schema #### Required * `id` (String) ID of the Direct Connect Gateway. #### Optional * `accountId` (String) AWS Account where this resource is managed. Using `pulumi import`, import Direct Connect Gateways using the gateway `id`. For example: ```sh $ pulumi import aws:directconnect/gateway:Gateway example abcd1234-dcba-5678-be23-cdef9876ab45 ```package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.directconnect.Gateway; import com.pulumi.aws.directconnect.GatewayArgs; 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 Gateway("example", GatewayArgs.builder() .name("tf-dxg-example") .amazonSideAsn("64512") .build()); } }
-
-
Constructor Summary
Constructors Constructor Description Gateway(java.lang.String name)Gateway(java.lang.String name, GatewayArgs args)Gateway(java.lang.String name, GatewayArgs 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>amazonSideAsn()com.pulumi.core.Output<java.lang.String>arn()static Gatewayget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, GatewayState 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>name()com.pulumi.core.Output<java.lang.String>ownerAccountId()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()
-
-
-
Constructor Detail
-
Gateway
public Gateway(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
Gateway
public Gateway(java.lang.String name, GatewayArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
Gateway
public Gateway(java.lang.String name, GatewayArgs 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
-
amazonSideAsn
public com.pulumi.core.Output<java.lang.String> amazonSideAsn()
- Returns:
- The ASN to be configured on the Amazon side of the connection. The ASN must be in the private range of 64,512 to 65,534 or 4,200,000,000 to 4,294,967,294.
-
arn
public com.pulumi.core.Output<java.lang.String> arn()
- Returns:
- The ARN of the gateway.
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- The name of the connection.
-
ownerAccountId
public com.pulumi.core.Output<java.lang.String> ownerAccountId()
- Returns:
- AWS Account ID of the gateway.
-
tags
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- Key-value map 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:
- A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
-
get
public static Gateway get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable GatewayState 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.
-
-