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

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.105.0 published on Thursday, May 2, 2024 by Pulumi

aws-native.ec2.getVpcGatewayAttachment

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.105.0 published on Thursday, May 2, 2024 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws-native:ec2:getVpcGatewayAttachment
      arguments:
        # arguments dictionary

    The 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
    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
    aws-native logo

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.105.0 published on Thursday, May 2, 2024 by Pulumi