Skip to content

update_sse_connect async

update_sse_connect(
    sse_connect_id: SseConnectId,
    *,
    config_overrides: Optional[AsyncNetworkManagerClientConfig] = None,
    sse_regions: Optional[SseRegionNameList] = None,
    description: Optional[ConstrainedString] = None,
    dry_run: Optional[Boolean] = None,
) -> UpdateSseConnectResponse

Updates the description or the Regions of an SSE connect. Specify at least one of Description or SseRegions. You can't change the SSE provider. The SSE connect must be in the AVAILABLE state.

You can't remove a Region while a core network is attached to the SSE connect in that Region. Update the core network attachment first.

Parameters:

  • sse_connect_id (SseConnectId) –

    The ID of the SSE connect to update.

  • sse_regions (Optional[SseRegionNameList], default: None ) –

    The complete list of Regions where the SSE connect peers with the SSE provider. This list replaces the current Regions. You must specify at least two Regions, and the SSE provider must be available in each Region. If you omit this parameter, the Regions are unchanged.

  • description (Optional[ConstrainedString], default: None ) –

    The new description of the SSE connect. If you omit this parameter, the description is unchanged.

  • 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 update the Regions of an SSE connect The following example replaces the Regions of an SSE connect with aa-example-1, aa-example-2, and aa-example-3.

>>> await client.update_sse_connect(sse_connect_id='sse-connect-1234567890abcdef0', sse_regions=['aa-example-1', 'aa-example-2', 'aa-example-3'])
Source code in docs_src/capo_networkmanager/_services/async_network_manager.py
async def update_sse_connect(
    self,
    sse_connect_id: "capo_networkmanager.types.sse_connect_id.SseConnectId",
    *,
    config_overrides: Optional[AsyncNetworkManagerClientConfig] = None,
    sse_regions: Optional[
        "capo_networkmanager.types.sse_region_name_list.SseRegionNameList"
    ] = None,
    description: Optional[
        "capo_networkmanager.types.constrained_string.ConstrainedString"
    ] = None,
    dry_run: Optional["capo_networkmanager.types.boolean.Boolean"] = None,
) -> (
    "capo_networkmanager.types.update_sse_connect_response.UpdateSseConnectResponse"
):
    """<p>Updates the description or the Regions of an SSE connect. Specify at least one of <code>Description</code> or <code>SseRegions</code>. You can't change the SSE provider. The SSE connect must be in the <code>AVAILABLE</code> state.</p> <p>You can't remove a Region while a core network is attached to the SSE connect in that Region. Update the core network attachment first.</p>

    Args:
        sse_connect_id: <p>The ID of the SSE connect to update.</p>
        sse_regions: <p>The complete list of Regions where the SSE connect peers with the SSE provider. This list replaces the current Regions. You must specify at least two Regions, and the SSE provider must be available in each Region. If you omit this parameter, the Regions are unchanged.</p>
        description: <p>The new description of the SSE connect. If you omit this parameter, the description is unchanged.</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 update the Regions of an SSE connect
        The following example replaces the Regions of an SSE connect with aa-example-1, aa-example-2, and aa-example-3.

        >>> await client.update_sse_connect(sse_connect_id='sse-connect-1234567890abcdef0', sse_regions=['aa-example-1', 'aa-example-2', 'aa-example-3'])
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_networkmanager.types.update_sse_connect_request.UpdateSseConnectRequest]",
    ) -> AsyncOperationResponse[
        "capo_networkmanager.types.update_sse_connect_response.UpdateSseConnectResponse"
    ]:
        import capo_networkmanager._operations.network_manager.update_sse_connect

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateSseConnect")
    )
    input_: capo_networkmanager.types.update_sse_connect_request.UpdateSseConnectRequest = {
        "sse_connect_id": sse_connect_id
    }
    if sse_regions is not None:
        input_["sse_regions"] = sse_regions
    if description is not None:
        input_["description"] = description
    if dry_run is not None:
        input_["dry_run"] = dry_run

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