Skip to content

reset_enabled_baseline

reset_enabled_baseline(
    enabled_baseline_identifier: Arn,
    *,
    config_overrides: Optional[ControlTowerClientConfig] = None,
) -> ResetEnabledBaselineOutput

Re-enables an EnabledBaseline resource. For example, this API can re-apply the existing Baseline after a new member account is moved to the target OU. For usage examples, see the Amazon Web Services Control Tower User Guide .

Parameters:

  • enabled_baseline_identifier (Arn) –

    Specifies the ID of the EnabledBaseline resource to be re-enabled, in ARN format.

Raises:

Source code in docs_src/capo_controltower/_services/control_tower.py
def reset_enabled_baseline(
    self,
    enabled_baseline_identifier: "capo_controltower.types.arn.Arn",
    *,
    config_overrides: Optional[ControlTowerClientConfig] = None,
) -> "capo_controltower.types.reset_enabled_baseline_output.ResetEnabledBaselineOutput":
    """<p>Re-enables an <code>EnabledBaseline</code> resource. For example, this API can re-apply the existing <code>Baseline</code> after a new member account is moved to the target OU. For usage examples, see <a href="https://docs.aws.amazon.com/controltower/latest/userguide/baseline-api-examples.html"> <i>the Amazon Web Services Control Tower User Guide</i> </a>.</p>

    Args:
        enabled_baseline_identifier: <p>Specifies the ID of the <code>EnabledBaseline</code> resource to be re-enabled, in ARN format.</p>

    Raises:
        capo_controltower.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
        capo_controltower.errors.conflict_exception.ConflictException: <p>Updating or deleting the resource can cause an inconsistent state.</p>
        capo_controltower.errors.internal_server_exception.InternalServerException: <p>An unexpected error occurred during processing of a request.</p>
        capo_controltower.errors.resource_not_found_exception.ResourceNotFoundException: <p>The request references a resource that does not exist.</p>
        capo_controltower.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request would cause a service quota to be exceeded. See <a href="https://docs.aws.amazon.com/controltower/latest/userguide/request-an-increase.html">Service quotas</a>.</p>
        capo_controltower.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
        capo_controltower.errors.validation_exception.ValidationException: <p>The input does not satisfy the constraints specified by an Amazon Web Services service.</p>
        capo_controltower.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_controltower.types.reset_enabled_baseline_input.ResetEnabledBaselineInput]",
    ) -> OperationResponse[
        "capo_controltower.types.reset_enabled_baseline_output.ResetEnabledBaselineOutput"
    ]:
        import capo_controltower._operations.aws_control_tower_apis.reset_enabled_baseline

        output, http_response = (
            capo_controltower._operations.aws_control_tower_apis.reset_enabled_baseline.reset_enabled_baseline(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ResetEnabledBaseline")
    )
    input_: capo_controltower.types.reset_enabled_baseline_input.ResetEnabledBaselineInput = {
        "enabled_baseline_identifier": enabled_baseline_identifier
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output