Skip to content

list_sse_connect_transit_gateway_attachments async

list_sse_connect_transit_gateway_attachments(
    *,
    config_overrides: Optional[AsyncNetworkManagerClientConfig] = None,
    sse_connect_id: Optional[SseConnectId] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> ListSseConnectTransitGatewayAttachmentsResponse

Lists the SSE connect transit gateway attachments in your account. You can return only the attachments of a specific SSE connect. Results are paginated. Use the NextToken parameter to retrieve additional results.

Parameters:

  • sse_connect_id (Optional[SseConnectId], default: None ) –

    The ID of an SSE connect. If you specify this parameter, only the attachments of this SSE connect are returned.

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

    The maximum number of results to return.

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

    The token for the next page of results.

Raises:

Examples:

To list the transit gateway attachments of an SSE connect The following example lists the transit gateway attachments of an SSE connect.

>>> await client.list_sse_connect_transit_gateway_attachments(sse_connect_id='sse-connect-1234567890abcdef0')
Source code in docs_src/capo_networkmanager/_services/async_network_manager.py
async def list_sse_connect_transit_gateway_attachments(
    self,
    *,
    config_overrides: Optional[AsyncNetworkManagerClientConfig] = None,
    sse_connect_id: Optional[
        "capo_networkmanager.types.sse_connect_id.SseConnectId"
    ] = None,
    max_results: Optional[
        "capo_networkmanager.types.max_results.MaxResults"
    ] = None,
    next_token: Optional["capo_networkmanager.types.next_token.NextToken"] = None,
) -> "capo_networkmanager.types.list_sse_connect_transit_gateway_attachments_response.ListSseConnectTransitGatewayAttachmentsResponse":
    """<p>Lists the SSE connect transit gateway attachments in your account. You can return only the attachments of a specific SSE connect. Results are paginated. Use the <code>NextToken</code> parameter to retrieve additional results.</p>

    Args:
        sse_connect_id: <p>The ID of an SSE connect. If you specify this parameter, only the attachments of this SSE connect are returned.</p>
        max_results: <p>The maximum number of results to return.</p>
        next_token: <p>The token for the next page of results.</p>

    Raises:
        capo_networkmanager.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
        capo_networkmanager.errors.internal_server_exception.InternalServerException: <p>The request has failed due to an internal error.</p>
        capo_networkmanager.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource could not be found.</p>
        capo_networkmanager.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
        capo_networkmanager.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints.</p>
        capo_networkmanager.errors.UnknownServiceError: The service returned an error code this client does not model.

    Examples:
        To list the transit gateway attachments of an SSE connect
        The following example lists the transit gateway attachments of an SSE connect.

        >>> await client.list_sse_connect_transit_gateway_attachments(sse_connect_id='sse-connect-1234567890abcdef0')
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_networkmanager.types.list_sse_connect_transit_gateway_attachments_request.ListSseConnectTransitGatewayAttachmentsRequest]",
    ) -> AsyncOperationResponse[
        "capo_networkmanager.types.list_sse_connect_transit_gateway_attachments_response.ListSseConnectTransitGatewayAttachmentsResponse"
    ]:
        import capo_networkmanager._operations.network_manager.list_sse_connect_transit_gateway_attachments

        (
            output,
            http_response,
        ) = await capo_networkmanager._operations.network_manager.list_sse_connect_transit_gateway_attachments.async_list_sse_connect_transit_gateway_attachments(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("ListSseConnectTransitGatewayAttachments"),
    )
    input_: capo_networkmanager.types.list_sse_connect_transit_gateway_attachments_request.ListSseConnectTransitGatewayAttachmentsRequest = {}
    if sse_connect_id is not None:
        input_["sse_connect_id"] = sse_connect_id
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output