Skip to content

describe_local_gateway_virtual_interfaces

describe_local_gateway_virtual_interfaces(
    *,
    config_overrides: Optional[EC2ClientConfig] = None,
    local_gateway_virtual_interface_ids: Optional[
        LocalGatewayVirtualInterfaceIdSet
    ] = None,
    filters: Optional[FilterList] = None,
    max_results: Optional[LocalGatewayMaxResults] = None,
    next_token: Optional[String] = None,
    dry_run: Optional[Boolean] = None,
) -> DescribeLocalGatewayVirtualInterfacesResult

Describes the specified local gateway virtual interfaces.

Parameters:

  • local_gateway_virtual_interface_ids (Optional[LocalGatewayVirtualInterfaceIdSet], default: None ) –

    The IDs of the virtual interfaces.

  • filters (Optional[FilterList], default: None ) –

    One or more filters.

    • local-address - The local address.

    • local-bgp-asn - The Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the local gateway.

    • local-gateway-id - The ID of the local gateway.

    • local-gateway-virtual-interface-id - The ID of the virtual interface.

    • owner-id - The ID of the Amazon Web Services account that owns the local gateway virtual interface.

    • peer-address - The peer address.

    • peer-bgp-asn - The peer BGP ASN.

    • vlan - The ID of the VLAN.

  • max_results (Optional[LocalGatewayMaxResults], default: None ) –

    The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

  • next_token (Optional[String], default: None ) –

    The token for the next page of results.

  • dry_run (Optional[Boolean], default: None ) –

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Raises:

Source code in docs_src/capo_ec2/_services/ec2.py
def describe_local_gateway_virtual_interfaces(
    self,
    *,
    config_overrides: Optional[EC2ClientConfig] = None,
    local_gateway_virtual_interface_ids: Optional[
        "capo_ec2.types.local_gateway_virtual_interface_id_set.LocalGatewayVirtualInterfaceIdSet"
    ] = None,
    filters: Optional["capo_ec2.types.filter_list.FilterList"] = None,
    max_results: Optional[
        "capo_ec2.types.local_gateway_max_results.LocalGatewayMaxResults"
    ] = None,
    next_token: Optional["capo_ec2.types.string.String"] = None,
    dry_run: Optional["capo_ec2.types.boolean.Boolean"] = None,
) -> "capo_ec2.types.describe_local_gateway_virtual_interfaces_result.DescribeLocalGatewayVirtualInterfacesResult":
    """<p>Describes the specified local gateway virtual interfaces.</p>

    Args:
        local_gateway_virtual_interface_ids: <p>The IDs of the virtual interfaces.</p>
        filters: <p>One or more filters.</p> <ul> <li> <p> <code>local-address</code> - The local address.</p> </li> <li> <p> <code>local-bgp-asn</code> - The Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the local gateway.</p> </li> <li> <p> <code>local-gateway-id</code> - The ID of the local gateway.</p> </li> <li> <p> <code>local-gateway-virtual-interface-id</code> - The ID of the virtual interface.</p> </li> <li> <p> <code>owner-id</code> - The ID of the Amazon Web Services account that owns the local gateway virtual interface.</p> </li> <li> <p> <code>peer-address</code> - The peer address.</p> </li> <li> <p> <code>peer-bgp-asn</code> - The peer BGP ASN.</p> </li> <li> <p> <code>vlan</code> - The ID of the VLAN.</p> </li> </ul>
        max_results: <p>The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned <code>nextToken</code> value.</p>
        next_token: <p>The token for the next page of results.</p>
        dry_run: <p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>

    Raises:
        capo_ec2.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_ec2.types.describe_local_gateway_virtual_interfaces_request.DescribeLocalGatewayVirtualInterfacesRequest]",
    ) -> OperationResponse[
        "capo_ec2.types.describe_local_gateway_virtual_interfaces_result.DescribeLocalGatewayVirtualInterfacesResult"
    ]:
        import capo_ec2._operations.amazon_ec2.describe_local_gateway_virtual_interfaces

        output, http_response = (
            capo_ec2._operations.amazon_ec2.describe_local_gateway_virtual_interfaces.describe_local_gateway_virtual_interfaces(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeLocalGatewayVirtualInterfaces")
    )
    input_: capo_ec2.types.describe_local_gateway_virtual_interfaces_request.DescribeLocalGatewayVirtualInterfacesRequest = {}
    if local_gateway_virtual_interface_ids is not None:
        input_["local_gateway_virtual_interface_ids"] = (
            local_gateway_virtual_interface_ids
        )
    if filters is not None:
        input_["filters"] = filters
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token
    if dry_run is not None:
        input_["dry_run"] = dry_run

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output