

# ResourceMetricsConfiguration
<a name="API_ResourceMetricsConfiguration"></a>

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](https://docs.amazonaws.cn/AmazonCloudWatch/latest/APIReference/API_CreateResourceMetricsConfiguration.html), [UpdateResourceMetricsConfiguration](https://docs.amazonaws.cn/AmazonCloudWatch/latest/APIReference/API_UpdateResourceMetricsConfiguration.html), and [GetResourceMetricsConfiguration](https://docs.amazonaws.cn/AmazonCloudWatch/latest/APIReference/API_GetResourceMetricsConfiguration.html) operations.

## Contents
<a name="API_ResourceMetricsConfiguration_Contents"></a>

 ** CreatedAt **   <a name="ACW-Type-ResourceMetricsConfiguration-CreatedAt"></a>
The date and time that the resource metrics configuration was created.  
Type: Timestamp  
Required: Yes

 ** ResourceArn **   <a name="ACW-Type-ResourceMetricsConfiguration-ResourceArn"></a>
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 **   <a name="ACW-Type-ResourceMetricsConfiguration-UpdatedAt"></a>
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 **   <a name="ACW-Type-ResourceMetricsConfiguration-MetricSelections"></a>
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](API_ResourceMetricSelection.md) objects  
Array Members: Fixed number of 1 item.  
Required: No

## See Also
<a name="API_ResourceMetricsConfiguration_SeeAlso"></a>

For more information about using this API in one of the language-specific Amazon SDKs, see the following:
+  [Amazon SDK for C\+\+](https://docs.amazonaws.cn/goto/SdkForCpp/monitoring-2010-08-01/ResourceMetricsConfiguration) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/monitoring-2010-08-01/ResourceMetricsConfiguration) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/monitoring-2010-08-01/ResourceMetricsConfiguration) 