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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-cloudfront/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)


2597
2598
2599
2600
2601
2602
# File 'gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/types.rb', line 2597

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.



2597
2598
2599
2600
2601
2602
# File 'gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/types.rb', line 2597

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