1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. ec2
  5. getVpcGatewayAttachment

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi

aws-native.ec2.getVpcGatewayAttachment

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi

Resource Type definition for AWS::EC2::VPCGatewayAttachment

Using getVpcGatewayAttachment

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getVpcGatewayAttachment(args: GetVpcGatewayAttachmentArgs, opts?: InvokeOptions): Promise<GetVpcGatewayAttachmentResult>
function getVpcGatewayAttachmentOutput(args: GetVpcGatewayAttachmentOutputArgs, opts?: InvokeOptions): Output<GetVpcGatewayAttachmentResult>
Copy
def get_vpc_gateway_attachment(attachment_type: Optional[str] = None,
                               vpc_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetVpcGatewayAttachmentResult
def get_vpc_gateway_attachment_output(attachment_type: Optional[pulumi.Input[str]] = None,
                               vpc_id: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetVpcGatewayAttachmentResult]
Copy
func LookupVpcGatewayAttachment(ctx *Context, args *LookupVpcGatewayAttachmentArgs, opts ...InvokeOption) (*LookupVpcGatewayAttachmentResult, error)
func LookupVpcGatewayAttachmentOutput(ctx *Context, args *LookupVpcGatewayAttachmentOutputArgs, opts ...InvokeOption) LookupVpcGatewayAttachmentResultOutput
Copy

> Note: This function is named LookupVpcGatewayAttachment in the Go SDK.

public static class GetVpcGatewayAttachment 
{
    public static Task<GetVpcGatewayAttachmentResult> InvokeAsync(GetVpcGatewayAttachmentArgs args, InvokeOptions? opts = null)
    public static Output<GetVpcGatewayAttachmentResult> Invoke(GetVpcGatewayAttachmentInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetVpcGatewayAttachmentResult> getVpcGatewayAttachment(GetVpcGatewayAttachmentArgs args, InvokeOptions options)
public static Output<GetVpcGatewayAttachmentResult> getVpcGatewayAttachment(GetVpcGatewayAttachmentArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws-native:ec2:getVpcGatewayAttachment
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AttachmentType This property is required. string
Used to identify if this resource is an Internet Gateway or Vpn Gateway Attachment
VpcId This property is required. string
The ID of the VPC.
AttachmentType This property is required. string
Used to identify if this resource is an Internet Gateway or Vpn Gateway Attachment
VpcId This property is required. string
The ID of the VPC.
attachmentType This property is required. String
Used to identify if this resource is an Internet Gateway or Vpn Gateway Attachment
vpcId This property is required. String
The ID of the VPC.
attachmentType This property is required. string
Used to identify if this resource is an Internet Gateway or Vpn Gateway Attachment
vpcId This property is required. string
The ID of the VPC.
attachment_type This property is required. str
Used to identify if this resource is an Internet Gateway or Vpn Gateway Attachment
vpc_id This property is required. str
The ID of the VPC.
attachmentType This property is required. String
Used to identify if this resource is an Internet Gateway or Vpn Gateway Attachment
vpcId This property is required. String
The ID of the VPC.

getVpcGatewayAttachment Result

The following output properties are available:

AttachmentType string
Used to identify if this resource is an Internet Gateway or Vpn Gateway Attachment
InternetGatewayId string
The ID of the internet gateway. You must specify either InternetGatewayId or VpnGatewayId, but not both.
VpnGatewayId string
The ID of the virtual private gateway. You must specify either InternetGatewayId or VpnGatewayId, but not both.
AttachmentType string
Used to identify if this resource is an Internet Gateway or Vpn Gateway Attachment
InternetGatewayId string
The ID of the internet gateway. You must specify either InternetGatewayId or VpnGatewayId, but not both.
VpnGatewayId string
The ID of the virtual private gateway. You must specify either InternetGatewayId or VpnGatewayId, but not both.
attachmentType String
Used to identify if this resource is an Internet Gateway or Vpn Gateway Attachment
internetGatewayId String
The ID of the internet gateway. You must specify either InternetGatewayId or VpnGatewayId, but not both.
vpnGatewayId String
The ID of the virtual private gateway. You must specify either InternetGatewayId or VpnGatewayId, but not both.
attachmentType string
Used to identify if this resource is an Internet Gateway or Vpn Gateway Attachment
internetGatewayId string
The ID of the internet gateway. You must specify either InternetGatewayId or VpnGatewayId, but not both.
vpnGatewayId string
The ID of the virtual private gateway. You must specify either InternetGatewayId or VpnGatewayId, but not both.
attachment_type str
Used to identify if this resource is an Internet Gateway or Vpn Gateway Attachment
internet_gateway_id str
The ID of the internet gateway. You must specify either InternetGatewayId or VpnGatewayId, but not both.
vpn_gateway_id str
The ID of the virtual private gateway. You must specify either InternetGatewayId or VpnGatewayId, but not both.
attachmentType String
Used to identify if this resource is an Internet Gateway or Vpn Gateway Attachment
internetGatewayId String
The ID of the internet gateway. You must specify either InternetGatewayId or VpnGatewayId, but not both.
vpnGatewayId String
The ID of the virtual private gateway. You must specify either InternetGatewayId or VpnGatewayId, but not both.

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi