View a markdown version of this page

ResourceMetricsConfiguration - Amazon CloudWatch
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

ResourceMetricsConfiguration

Represents a resource metrics configuration for an Amazon resource. A resource metrics configuration enables detailed metric collection for the resource that is identified by its Amazon Resource Name (ARN). Each Amazon resource can have only one resource metrics configuration.

This structure is returned by the CreateResourceMetricsConfiguration, UpdateResourceMetricsConfiguration, and GetResourceMetricsConfiguration operations.

Contents

CreatedAt

The date and time that the resource metrics configuration was created.

Type: Timestamp

Required: Yes

ResourceArn

The Amazon Resource Name (ARN) of the Amazon resource that this configuration applies to.

Type: String

Length Constraints: Minimum length of 20. Maximum length of 2048.

Pattern: arn:[a-zA-Z0-9-]+:[a-zA-Z0-9-]+:[a-zA-Z0-9-]*:\d{12}:.+

Required: Yes

UpdatedAt

The date and time that the resource metrics configuration was last updated. When the configuration is first created, this value is the same as CreatedAt.

Type: Timestamp

Required: Yes

MetricSelections

The metrics that Amazon CloudWatch collects for the resource. If this field is not present, Amazon CloudWatch collects all available detailed metrics for the resource.

Type: Array of ResourceMetricSelection objects

Array Members: Fixed number of 1 item.

Required: No

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: