Skip to content

disassociate_data_protection_settings

disassociate_data_protection_settings(
    portal_arn: ARN, *, config_overrides: Optional[WorkSpacesWebClientConfig] = None
) -> DisassociateDataProtectionSettingsResponse

Disassociates data protection settings from a web portal.

Parameters:

  • portal_arn (ARN) –

    The ARN of the web portal.

Raises:

Source code in docs_src/capo_workspaces_web/_services/work_spaces_web.py
def disassociate_data_protection_settings(
    self,
    portal_arn: "capo_workspaces_web.types.arn.ARN",
    *,
    config_overrides: Optional[WorkSpacesWebClientConfig] = None,
) -> "capo_workspaces_web.types.disassociate_data_protection_settings_response.DisassociateDataProtectionSettingsResponse":
    """<p>Disassociates data protection settings from a web portal.</p>

    Args:
        portal_arn: <p>The ARN of the web portal.</p>

    Raises:
        capo_workspaces_web.errors.access_denied_exception.AccessDeniedException: <p>Access is denied.</p>
        capo_workspaces_web.errors.conflict_exception.ConflictException: <p>There is a conflict.</p>
        capo_workspaces_web.errors.internal_server_exception.InternalServerException: <p>There is an internal server error.</p>
        capo_workspaces_web.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource cannot be found.</p>
        capo_workspaces_web.errors.throttling_exception.ThrottlingException: <p>There is a throttling error.</p>
        capo_workspaces_web.errors.validation_exception.ValidationException: <p>There is a validation error.</p>
        capo_workspaces_web.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_workspaces_web.types.disassociate_data_protection_settings_request.DisassociateDataProtectionSettingsRequest]",
    ) -> OperationResponse[
        "capo_workspaces_web.types.disassociate_data_protection_settings_response.DisassociateDataProtectionSettingsResponse"
    ]:
        import capo_workspaces_web._operations.aws_ermine_control_plane_service.disassociate_data_protection_settings

        output, http_response = (
            capo_workspaces_web._operations.aws_ermine_control_plane_service.disassociate_data_protection_settings.disassociate_data_protection_settings(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DisassociateDataProtectionSettings")
    )
    input_: capo_workspaces_web.types.disassociate_data_protection_settings_request.DisassociateDataProtectionSettingsRequest = {
        "portal_arn": portal_arn
    }

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