Skip to content

update_replication_set async

update_replication_set(
    arn: Arn,
    actions: UpdateActionList,
    *,
    config_overrides: Optional[AsyncSSMIncidentsClientConfig] = None,
    client_token: Optional[ClientToken] = None,
) -> UpdateReplicationSetOutput

Add or delete Regions from your replication set.

Parameters:

  • arn (Arn) –

    The Amazon Resource Name (ARN) of the replication set you're updating.

  • actions (UpdateActionList) –

    An action to add or delete a Region.

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

    A token that ensures that the operation is called only once with the specified details.

Raises:

Source code in docs_src/capo_ssm_incidents/_services/async_ssm_incidents.py
async def update_replication_set(
    self,
    arn: "capo_ssm_incidents.types.arn.Arn",
    actions: "capo_ssm_incidents.types.update_action_list.UpdateActionList",
    *,
    config_overrides: Optional[AsyncSSMIncidentsClientConfig] = None,
    client_token: Optional[
        "capo_ssm_incidents.types.client_token.ClientToken"
    ] = None,
) -> "capo_ssm_incidents.types.update_replication_set_output.UpdateReplicationSetOutput":
    """<p>Add or delete Regions from your replication set.</p>

    Args:
        arn: <p>The Amazon Resource Name (ARN) of the replication set you're updating.</p>
        actions: <p>An action to add or delete a Region.</p>
        client_token: <p>A token that ensures that the operation is called only once with the specified details.</p>

    Raises:
        capo_ssm_incidents.errors.access_denied_exception.AccessDeniedException: <p>You don't have sufficient access to perform this operation.</p>
        capo_ssm_incidents.errors.conflict_exception.ConflictException: <p>Updating or deleting a resource causes an inconsistent state.</p>
        capo_ssm_incidents.errors.internal_server_exception.InternalServerException: <p>The request processing has failed because of an unknown error, exception or failure.</p>
        capo_ssm_incidents.errors.resource_not_found_exception.ResourceNotFoundException: <p>Request references a resource which doesn't exist. </p>
        capo_ssm_incidents.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
        capo_ssm_incidents.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
        capo_ssm_incidents.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_ssm_incidents.types.update_replication_set_input.UpdateReplicationSetInput]",
    ) -> AsyncOperationResponse[
        "capo_ssm_incidents.types.update_replication_set_output.UpdateReplicationSetOutput"
    ]:
        import capo_ssm_incidents._operations.ssm_incidents.update_replication_set

        (
            output,
            http_response,
        ) = await capo_ssm_incidents._operations.ssm_incidents.update_replication_set.async_update_replication_set(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateReplicationSet")
    )
    input_: capo_ssm_incidents.types.update_replication_set_input.UpdateReplicationSetInput = {
        "arn": arn,
        "actions": actions,
    }
    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