Skip to content

delete_sse_connect_transit_gateway_attachment

delete_sse_connect_transit_gateway_attachment(
    sse_connect_transit_gateway_attachment_id: SseConnectTransitGatewayAttachmentId,
    *,
    config_overrides: Optional[NetworkManagerClientConfig] = None,
    dry_run: Optional[Boolean] = None,
) -> DeleteSseConnectTransitGatewayAttachmentResponse

Deletes an SSE connect transit gateway attachment. Before you delete the attachment, update the transit gateway route tables that direct traffic to it.

Parameters:

  • sse_connect_transit_gateway_attachment_id (SseConnectTransitGatewayAttachmentId) –

    The ID of the SSE connect transit gateway attachment to delete.

  • 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 AccessDeniedException.

Raises:

Examples:

To delete an SSE connect transit gateway attachment The following example deletes an SSE connect transit gateway attachment.

>>> client.delete_sse_connect_transit_gateway_attachment(sse_connect_transit_gateway_attachment_id='sse-connect-tgw-attach-1234567890abcdef0')
Source code in docs_src/capo_networkmanager/_services/network_manager.py
def delete_sse_connect_transit_gateway_attachment(
    self,
    sse_connect_transit_gateway_attachment_id: "capo_networkmanager.types.sse_connect_transit_gateway_attachment_id.SseConnectTransitGatewayAttachmentId",
    *,
    config_overrides: Optional[NetworkManagerClientConfig] = None,
    dry_run: Optional["capo_networkmanager.types.boolean.Boolean"] = None,
) -> "capo_networkmanager.types.delete_sse_connect_transit_gateway_attachment_response.DeleteSseConnectTransitGatewayAttachmentResponse":
    """<p>Deletes an SSE connect transit gateway attachment. Before you delete the attachment, update the transit gateway route tables that direct traffic to it.</p>

    Args:
        sse_connect_transit_gateway_attachment_id: <p>The ID of the SSE connect transit gateway attachment to delete.</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>AccessDeniedException</code>.</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.dry_run_operation.DryRunOperation: <p>You have the required permissions. You specified the <code>DryRun</code> parameter, so the request didn't run.</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 delete an SSE connect transit gateway attachment
        The following example deletes an SSE connect transit gateway attachment.

        >>> client.delete_sse_connect_transit_gateway_attachment(sse_connect_transit_gateway_attachment_id='sse-connect-tgw-attach-1234567890abcdef0')
    """

    def _handler(
        req: "OperationRequest[capo_networkmanager.types.delete_sse_connect_transit_gateway_attachment_request.DeleteSseConnectTransitGatewayAttachmentRequest]",
    ) -> OperationResponse[
        "capo_networkmanager.types.delete_sse_connect_transit_gateway_attachment_response.DeleteSseConnectTransitGatewayAttachmentResponse"
    ]:
        import capo_networkmanager._operations.network_manager.delete_sse_connect_transit_gateway_attachment

        output, http_response = (
            capo_networkmanager._operations.network_manager.delete_sse_connect_transit_gateway_attachment.delete_sse_connect_transit_gateway_attachment(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("DeleteSseConnectTransitGatewayAttachment"),
    )
    input_: capo_networkmanager.types.delete_sse_connect_transit_gateway_attachment_request.DeleteSseConnectTransitGatewayAttachmentRequest = {
        "sse_connect_transit_gateway_attachment_id": sse_connect_transit_gateway_attachment_id
    }
    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