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>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]func LookupVpcGatewayAttachment(ctx *Context, args *LookupVpcGatewayAttachmentArgs, opts ...InvokeOption) (*LookupVpcGatewayAttachmentResult, error)
func LookupVpcGatewayAttachmentOutput(ctx *Context, args *LookupVpcGatewayAttachmentOutputArgs, opts ...InvokeOption) LookupVpcGatewayAttachmentResultOutput> 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)
}public static CompletableFuture<GetVpcGatewayAttachmentResult> getVpcGatewayAttachment(GetVpcGatewayAttachmentArgs args, InvokeOptions options)
public static Output<GetVpcGatewayAttachmentResult> getVpcGatewayAttachment(GetVpcGatewayAttachmentArgs args, InvokeOptions options)
fn::invoke:
  function: aws-native:ec2:getVpcGatewayAttachment
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AttachmentType string
- Used to identify if this resource is an Internet Gateway or Vpn Gateway Attachment
- VpcId string
- The ID of the VPC.
- AttachmentType string
- Used to identify if this resource is an Internet Gateway or Vpn Gateway Attachment
- VpcId string
- The ID of the VPC.
- attachmentType String
- Used to identify if this resource is an Internet Gateway or Vpn Gateway Attachment
- vpcId String
- The ID of the VPC.
- attachmentType string
- Used to identify if this resource is an Internet Gateway or Vpn Gateway Attachment
- vpcId string
- The ID of the VPC.
- attachment_type str
- Used to identify if this resource is an Internet Gateway or Vpn Gateway Attachment
- vpc_id str
- The ID of the VPC.
- attachmentType String
- Used to identify if this resource is an Internet Gateway or Vpn Gateway Attachment
- vpcId 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
- InternetGateway stringId 
- The ID of the internet gateway. You must specify either InternetGatewayId or VpnGatewayId, but not both.
- VpnGateway stringId 
- 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
- InternetGateway stringId 
- The ID of the internet gateway. You must specify either InternetGatewayId or VpnGatewayId, but not both.
- VpnGateway stringId 
- 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
- internetGateway StringId 
- The ID of the internet gateway. You must specify either InternetGatewayId or VpnGatewayId, but not both.
- vpnGateway StringId 
- 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
- internetGateway stringId 
- The ID of the internet gateway. You must specify either InternetGatewayId or VpnGatewayId, but not both.
- vpnGateway stringId 
- 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_ strid 
- The ID of the internet gateway. You must specify either InternetGatewayId or VpnGatewayId, but not both.
- vpn_gateway_ strid 
- 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
- internetGateway StringId 
- The ID of the internet gateway. You must specify either InternetGatewayId or VpnGatewayId, but not both.
- vpnGateway StringId 
- 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