Skip to content

describe_notification_configurations async

describe_notification_configurations(
    *,
    config_overrides: Optional[AsyncAutoScalingClientConfig] = None,
    auto_scaling_group_names: Optional[AutoScalingGroupNames] = None,
    next_token: Optional[XmlString] = None,
    max_records: Optional[MaxRecords] = None,
) -> DescribeNotificationConfigurationsAnswer

Gets information about the Amazon SNS notifications that are configured for one or more Auto Scaling groups.

Parameters:

  • auto_scaling_group_names (Optional[AutoScalingGroupNames], default: None ) –

    The name of the Auto Scaling group.

  • 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:

  • InvalidNextToken –

    The NextToken value is not valid.

  • ResourceContentionFault –

    You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling group, instance, or load balancer).

  • UnknownServiceError –

    The service returned an error code this client does not model.

Examples:

To describe Auto Scaling notification configurations This example describes the notification configurations for the specified Auto Scaling group.

>>> await client.describe_notification_configurations(auto_scaling_group_names=['my-auto-scaling-group'])
Source code in docs_src/capo_auto_scaling/_services/async_auto_scaling.py
async def describe_notification_configurations(
    self,
    *,
    config_overrides: Optional[AsyncAutoScalingClientConfig] = None,
    auto_scaling_group_names: Optional[
        "capo_auto_scaling.types.auto_scaling_group_names.AutoScalingGroupNames"
    ] = 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_notification_configurations_answer.DescribeNotificationConfigurationsAnswer":
    """<p>Gets information about the Amazon SNS notifications that are configured for one or more Auto Scaling groups.</p>

    Args:
        auto_scaling_group_names: <p>The name of the Auto Scaling group.</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.resource_contention_fault.ResourceContentionFault: <p>You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling group, instance, or load balancer).</p>
        capo_auto_scaling.errors.UnknownServiceError: The service returned an error code this client does not model.

    Examples:
        To describe Auto Scaling notification configurations
        This example describes the notification configurations for the specified Auto Scaling group.

        >>> await client.describe_notification_configurations(auto_scaling_group_names=['my-auto-scaling-group'])
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_auto_scaling.types.describe_notification_configurations_type.DescribeNotificationConfigurationsType]",
    ) -> AsyncOperationResponse[
        "capo_auto_scaling.types.describe_notification_configurations_answer.DescribeNotificationConfigurationsAnswer"
    ]:
        import capo_auto_scaling._operations.auto_scaling_2011_01_01.describe_notification_configurations

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeNotificationConfigurations")
    )
    input_: capo_auto_scaling.types.describe_notification_configurations_type.DescribeNotificationConfigurationsType = {}
    if auto_scaling_group_names is not None:
        input_["auto_scaling_group_names"] = auto_scaling_group_names
    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