Skip to content

update_auto_management

update_auto_management(
    *,
    config_overrides: Optional[ServiceQuotasClientConfig] = None,
    opt_in_type: Optional[OptInType] = None,
    notification_arn: Optional[AmazonResourceName] = None,
    exclusion_list: Optional[ExclusionList] = None,
) -> UpdateAutoManagementResponse

Updates your Service Quotas Automatic Management configuration, including notification preferences and excluded quotas. Automatic Management monitors your Service Quotas utilization and notifies you before you run out of your allocated quotas.

Parameters:

  • opt_in_type (Optional[OptInType], default: None ) –

    Information on the opt-in type for your Automatic Management configuration. There are two modes: Notify only and Notify and Auto-Adjust. Currently, only NotifyOnly is available.

  • notification_arn (Optional[AmazonResourceName], default: None ) –

    The User Notifications Amazon Resource Name (ARN) for Automatic Management notifications you want to update.

  • exclusion_list (Optional[ExclusionList], default: None ) –

    List of Amazon Web Services services you want to exclude from Automatic Management. You won't be notified of Service Quotas utilization for Amazon Web Services services added to the Automatic Management exclusion list.

Raises:

Source code in docs_src/capo_service_quotas/_services/service_quotas.py
def update_auto_management(
    self,
    *,
    config_overrides: Optional[ServiceQuotasClientConfig] = None,
    opt_in_type: Optional["capo_service_quotas.types.opt_in_type.OptInType"] = None,
    notification_arn: Optional[
        "capo_service_quotas.types.amazon_resource_name.AmazonResourceName"
    ] = None,
    exclusion_list: Optional[
        "capo_service_quotas.types.exclusion_list.ExclusionList"
    ] = None,
) -> "capo_service_quotas.types.update_auto_management_response.UpdateAutoManagementResponse":
    """<p>Updates your <a href="https://docs.aws.amazon.com/servicequotas/latest/userguide/automatic-management.html">Service Quotas Automatic Management</a> configuration, including notification preferences and excluded quotas. Automatic Management monitors your Service Quotas utilization and notifies you before you run out of your allocated quotas.</p>

    Args:
        opt_in_type: <p>Information on the opt-in type for your Automatic Management configuration. There are two modes: Notify only and Notify and Auto-Adjust. Currently, only NotifyOnly is available.</p>
        notification_arn: <p>The <a href="https://docs.aws.amazon.com/notifications/latest/userguide/resource-level-permissions.html#rlp-table">User Notifications</a> Amazon Resource Name (ARN) for Automatic Management notifications you want to update.</p>
        exclusion_list: <p>List of Amazon Web Services services you want to exclude from Automatic Management. You won't be notified of Service Quotas utilization for Amazon Web Services services added to the Automatic Management exclusion list. </p>

    Raises:
        capo_service_quotas.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient permission to perform this action.</p>
        capo_service_quotas.errors.illegal_argument_exception.IllegalArgumentException: <p>Invalid input was provided.</p>
        capo_service_quotas.errors.no_such_resource_exception.NoSuchResourceException: <p>The specified resource does not exist.</p>
        capo_service_quotas.errors.service_exception.ServiceException: <p>Something went wrong.</p>
        capo_service_quotas.errors.too_many_requests_exception.TooManyRequestsException: <p>Due to throttling, the request was denied. Slow down the rate of request calls, or request an increase for this quota.</p>
        capo_service_quotas.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_service_quotas.types.update_auto_management_request.UpdateAutoManagementRequest]",
    ) -> OperationResponse[
        "capo_service_quotas.types.update_auto_management_response.UpdateAutoManagementResponse"
    ]:
        import capo_service_quotas._operations.service_quotas_v20190624.update_auto_management

        output, http_response = (
            capo_service_quotas._operations.service_quotas_v20190624.update_auto_management.update_auto_management(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateAutoManagement")
    )
    input_: capo_service_quotas.types.update_auto_management_request.UpdateAutoManagementRequest = {}
    if opt_in_type is not None:
        input_["opt_in_type"] = opt_in_type
    if notification_arn is not None:
        input_["notification_arn"] = notification_arn
    if exclusion_list is not None:
        input_["exclusion_list"] = exclusion_list

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