Skip to content

CloudFront  >  Operations  >  get_monitoring_subscription

get_monitoring_subscription

Operation

get_monitoring_subscription async

get_monitoring_subscription(input: GetMonitoringSubscriptionInput, plugins: list[Plugin] | None = None) -> GetMonitoringSubscriptionOutput

Gets information about whether additional CloudWatch metrics are enabled for the specified CloudFront distribution.

Parameters:

Name Type Description Default
input GetMonitoringSubscriptionInput

An instance of GetMonitoringSubscriptionInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
GetMonitoringSubscriptionOutput

An instance of GetMonitoringSubscriptionOutput.

Input

GetMonitoringSubscriptionInput dataclass

Bases: _SerdeShape

Dataclass for GetMonitoringSubscriptionInput structure.

Attributes

distribution_id class-attribute instance-attribute
distribution_id: str | None = ...

The ID of the distribution that you are getting metrics information for.

Output

GetMonitoringSubscriptionOutput dataclass

Bases: _SerdeShape

Dataclass for GetMonitoringSubscriptionOutput structure.

Attributes

monitoring_subscription class-attribute instance-attribute
monitoring_subscription: MonitoringSubscription | None = ...

A monitoring subscription. This structure contains information about whether additional CloudWatch metrics are enabled for a given CloudFront distribution.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.