Class: Aws::CloudFront::Types::CreateMonitoringSubscriptionRequest

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-cloudfront/types.rb

Overview

Note:

When making an API call, you may pass CreateMonitoringSubscriptionRequest data as a hash:

{
  distribution_id: "string", # required
  monitoring_subscription: { # required
    realtime_metrics_subscription_config: {
      realtime_metrics_subscription_status: "Enabled", # required, accepts Enabled, Disabled
    },
  },
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#distribution_idString

The ID of the distribution that you are enabling metrics for.

Returns:

  • (String)


2732
2733
2734
2735
2736
2737
# File 'lib/aws-sdk-cloudfront/types.rb', line 2732

class CreateMonitoringSubscriptionRequest < Struct.new(
  :distribution_id,
  :monitoring_subscription)
  SENSITIVE = []
  include Aws::Structure
end

#monitoring_subscriptionTypes::MonitoringSubscription

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



2732
2733
2734
2735
2736
2737
# File 'lib/aws-sdk-cloudfront/types.rb', line 2732

class CreateMonitoringSubscriptionRequest < Struct.new(
  :distribution_id,
  :monitoring_subscription)
  SENSITIVE = []
  include Aws::Structure
end