View a markdown version of this page

ResourceMetricsConfiguration - Amazon CloudWatch

ResourceMetricsConfiguration

Represents a resource metrics configuration for an AWS resource. A resource metrics configuration enables detailed metric collection for the resource that is identified by its Amazon Resource Name (ARN). Each AWS 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 AWS 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 AWS SDKs, see the following: