Skip to content

create_sse_connect_attachment async

create_sse_connect_attachment(
    core_network_id: CoreNetworkId,
    sse_connect_arn: SseConnectArn,
    *,
    config_overrides: Optional[AsyncNetworkManagerClientConfig] = None,
    tags: Optional[TagList] = None,
    client_token: Optional[ClientToken] = None,
) -> CreateSseConnectAttachmentResponse

Creates an attachment between an SSE connect and a Cloud WAN core network. A core network uses a single attachment to an SSE connect for all Regions, so you don't specify an edge location. The SSE connect must be in the AVAILABLE state.

The attachment propagates default routes (0.0.0.0/0 and ::/0) toward your core network. To send traffic to the SSE provider, place the attachment in a network function group and use a send-to segment action in your core network policy.

Parameters:

  • core_network_id (CoreNetworkId) –

    The ID of the core network to attach to the SSE connect.

  • sse_connect_arn (SseConnectArn) –

    The ARN of the SSE connect.

  • tags (Optional[TagList], default: None ) –

    The tags to apply to the attachment.

  • client_token (Optional[ClientToken], default: None ) –

    A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. If you retry a request with the same client token, the operation returns the result of the original request instead of creating another resource.

Raises:

Examples:

To attach a core network to an SSE connect The following example creates an attachment between an SSE connect and a Cloud WAN core network.

>>> await client.create_sse_connect_attachment(core_network_id='core-network-1234567890abcdef0', sse_connect_arn='arn:aws:networkmanager::111122223333:sse-connect/sse-connect-1234567890abcdef0')
Source code in docs_src/capo_networkmanager/_services/async_network_manager.py
async def create_sse_connect_attachment(
    self,
    core_network_id: "capo_networkmanager.types.core_network_id.CoreNetworkId",
    sse_connect_arn: "capo_networkmanager.types.sse_connect_arn.SseConnectArn",
    *,
    config_overrides: Optional[AsyncNetworkManagerClientConfig] = None,
    tags: Optional["capo_networkmanager.types.tag_list.TagList"] = None,
    client_token: Optional[
        "capo_networkmanager.types.client_token.ClientToken"
    ] = None,
) -> "capo_networkmanager.types.create_sse_connect_attachment_response.CreateSseConnectAttachmentResponse":
    """<p>Creates an attachment between an SSE connect and a Cloud WAN core network. A core network uses a single attachment to an SSE connect for all Regions, so you don't specify an edge location. The SSE connect must be in the <code>AVAILABLE</code> state.</p> <p>The attachment propagates default routes (<code>0.0.0.0/0</code> and <code>::/0</code>) toward your core network. To send traffic to the SSE provider, place the attachment in a network function group and use a <code>send-to</code> segment action in your core network policy.</p>

    Args:
        core_network_id: <p>The ID of the core network to attach to the SSE connect.</p>
        sse_connect_arn: <p>The ARN of the SSE connect.</p>
        tags: <p>The tags to apply to the attachment.</p>
        client_token: <p>A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. If you retry a request with the same client token, the operation returns the result of the original request instead of creating another resource.</p>

    Raises:
        capo_networkmanager.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
        capo_networkmanager.errors.conflict_exception.ConflictException: <p>There was a conflict processing the request. Updating or deleting the resource can cause an inconsistent state.</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 attach a core network to an SSE connect
        The following example creates an attachment between an SSE connect and a Cloud WAN core network.

        >>> await client.create_sse_connect_attachment(core_network_id='core-network-1234567890abcdef0', sse_connect_arn='arn:aws:networkmanager::111122223333:sse-connect/sse-connect-1234567890abcdef0')
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_networkmanager.types.create_sse_connect_attachment_request.CreateSseConnectAttachmentRequest]",
    ) -> AsyncOperationResponse[
        "capo_networkmanager.types.create_sse_connect_attachment_response.CreateSseConnectAttachmentResponse"
    ]:
        import capo_networkmanager._operations.network_manager.create_sse_connect_attachment

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("CreateSseConnectAttachment")
    )
    input_: capo_networkmanager.types.create_sse_connect_attachment_request.CreateSseConnectAttachmentRequest = {
        "core_network_id": core_network_id,
        "sse_connect_arn": sse_connect_arn,
    }
    if tags is not None:
        input_["tags"] = tags
    if client_token is None:
        client_token = str(uuid.uuid4())
    input_["client_token"] = client_token

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