Skip to content

describe_account_settings async

describe_account_settings(
    *,
    config_overrides: Optional[AsyncAutoScalingClientConfig] = None,
    name: Optional[AsciiStringMaxLen255] = None,
    next_token: Optional[XmlString] = None,
    max_records: Optional[MaxRecords] = None,
) -> DescribeAccountSettingsAnswer

Describes the current Amazon EC2 Auto Scaling account settings for your account. Account settings are a framework that allows you to enable or disable features for your account. The framework also gives you visibility into features that will be enforced by a given date, providing a time window to prepare for backwards-incompatible changes.

Parameters:

  • name (Optional[AsciiStringMaxLen255], default: None ) –

    The name of the account setting to describe. If you omit this parameter, all account settings are described.

  • next_token (Optional[XmlString], default: None ) –

    The token for the next set of items to return. (You received this token from a previous call.)

  • max_records (Optional[MaxRecords], default: None ) –

    The maximum number of items to return with this call. The default value is 50 and the maximum value is 100.

Raises:

Source code in docs_src/capo_auto_scaling/_services/async_auto_scaling.py
async def describe_account_settings(
    self,
    *,
    config_overrides: Optional[AsyncAutoScalingClientConfig] = None,
    name: Optional[
        "capo_auto_scaling.types.ascii_string_max_len255.AsciiStringMaxLen255"
    ] = None,
    next_token: Optional["capo_auto_scaling.types.xml_string.XmlString"] = None,
    max_records: Optional["capo_auto_scaling.types.max_records.MaxRecords"] = None,
) -> "capo_auto_scaling.types.describe_account_settings_answer.DescribeAccountSettingsAnswer":
    """<p> Describes the current Amazon EC2 Auto Scaling account settings for your account. Account settings are a framework that allows you to enable or disable features for your account. The framework also gives you visibility into features that will be enforced by a given date, providing a time window to prepare for backwards-incompatible changes. </p>

    Args:
        name: <p> The name of the account setting to describe. If you omit this parameter, all account settings are described. </p>
        next_token: <p> The token for the next set of items to return. (You received this token from a previous call.) </p>
        max_records: <p> The maximum number of items to return with this call. The default value is <code>50</code> and the maximum value is <code>100</code>. </p>

    Raises:
        capo_auto_scaling.errors.invalid_next_token.InvalidNextToken: <p>The <code>NextToken</code> value is not valid.</p>
        capo_auto_scaling.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_auto_scaling.types.describe_account_settings_type.DescribeAccountSettingsType]",
    ) -> AsyncOperationResponse[
        "capo_auto_scaling.types.describe_account_settings_answer.DescribeAccountSettingsAnswer"
    ]:
        import capo_auto_scaling._operations.auto_scaling_2011_01_01.describe_account_settings

        (
            output,
            http_response,
        ) = await capo_auto_scaling._operations.auto_scaling_2011_01_01.describe_account_settings.async_describe_account_settings(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeAccountSettings")
    )
    input_: capo_auto_scaling.types.describe_account_settings_type.DescribeAccountSettingsType = {}
    if name is not None:
        input_["name"] = name
    if next_token is not None:
        input_["next_token"] = next_token
    if max_records is not None:
        input_["max_records"] = max_records

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