create_monitoring_subscription¶
Operation¶
create_monitoring_subscription
async
¶
create_monitoring_subscription(input: CreateMonitoringSubscriptionInput, plugins: list[Plugin] | None = None) -> CreateMonitoringSubscriptionOutput
Enables or disables additional Amazon CloudWatch metrics for the specified CloudFront distribution. The additional metrics incur an additional cost.
For more information, see Viewing additional CloudFront distribution metrics in the Amazon CloudFront Developer Guide.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
CreateMonitoringSubscriptionInput
|
An instance of |
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 |
|---|---|
CreateMonitoringSubscriptionOutput
|
An instance of |
Input¶
CreateMonitoringSubscriptionInput
dataclass
¶
Bases: _SerdeShape
Dataclass for CreateMonitoringSubscriptionInput structure.
Attributes¶
distribution_id
class-attribute
instance-attribute
¶
distribution_id: str | None = ...
The ID of the distribution that you are enabling metrics for.
monitoring_subscription
class-attribute
instance-attribute
¶
A monitoring subscription. This structure contains information about whether additional CloudWatch metrics are enabled for a given CloudFront distribution.
Output¶
CreateMonitoringSubscriptionOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for CreateMonitoringSubscriptionOutput structure.
Attributes¶
monitoring_subscription
class-attribute
instance-attribute
¶
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
¶
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.