1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. cloudwatch
  6. ResourceMetricsConfiguration

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi
aws-native logo aws-native logo AWS Cloud Control

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi

    Resource Type definition for AWS::CloudWatch::ResourceMetricsConfiguration. Manages the detailed monitoring metric selections for an AWS resource, identified by the ARN of the resource being monitored.

    Create ResourceMetricsConfiguration Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ResourceMetricsConfiguration(name: string, args: ResourceMetricsConfigurationArgs, opts?: CustomResourceOptions);
    @overload
    def ResourceMetricsConfiguration(resource_name: str,
                                     args: ResourceMetricsConfigurationArgs,
                                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def ResourceMetricsConfiguration(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     resource_arn: Optional[str] = None,
                                     metric_selections: Optional[Sequence[ResourceMetricsConfigurationResourceMetricSelectionArgs]] = None)
    func NewResourceMetricsConfiguration(ctx *Context, name string, args ResourceMetricsConfigurationArgs, opts ...ResourceOption) (*ResourceMetricsConfiguration, error)
    public ResourceMetricsConfiguration(string name, ResourceMetricsConfigurationArgs args, CustomResourceOptions? opts = null)
    public ResourceMetricsConfiguration(String name, ResourceMetricsConfigurationArgs args)
    public ResourceMetricsConfiguration(String name, ResourceMetricsConfigurationArgs args, CustomResourceOptions options)
    
    type: aws-native:cloudwatch:ResourceMetricsConfiguration
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws-native_cloudwatch_resource_metrics_configuration" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ResourceMetricsConfigurationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ResourceMetricsConfigurationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ResourceMetricsConfigurationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ResourceMetricsConfigurationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ResourceMetricsConfigurationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    ResourceMetricsConfiguration Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ResourceMetricsConfiguration resource accepts the following input properties:

    ResourceArn string
    The Amazon Resource Name (ARN) of the resource for which the detailed monitoring metrics configuration is managed.
    MetricSelections List<Pulumi.AwsNative.CloudWatch.Inputs.ResourceMetricsConfigurationResourceMetricSelection>
    The metric selections that define which metrics are enabled for detailed monitoring on the resource.
    ResourceArn string
    The Amazon Resource Name (ARN) of the resource for which the detailed monitoring metrics configuration is managed.
    MetricSelections []ResourceMetricsConfigurationResourceMetricSelectionArgs
    The metric selections that define which metrics are enabled for detailed monitoring on the resource.
    resource_arn string
    The Amazon Resource Name (ARN) of the resource for which the detailed monitoring metrics configuration is managed.
    metric_selections list(object)
    The metric selections that define which metrics are enabled for detailed monitoring on the resource.
    resourceArn String
    The Amazon Resource Name (ARN) of the resource for which the detailed monitoring metrics configuration is managed.
    metricSelections List<ResourceMetricsConfigurationResourceMetricSelection>
    The metric selections that define which metrics are enabled for detailed monitoring on the resource.
    resourceArn string
    The Amazon Resource Name (ARN) of the resource for which the detailed monitoring metrics configuration is managed.
    metricSelections ResourceMetricsConfigurationResourceMetricSelection[]
    The metric selections that define which metrics are enabled for detailed monitoring on the resource.
    resource_arn str
    The Amazon Resource Name (ARN) of the resource for which the detailed monitoring metrics configuration is managed.
    metric_selections Sequence[ResourceMetricsConfigurationResourceMetricSelectionArgs]
    The metric selections that define which metrics are enabled for detailed monitoring on the resource.
    resourceArn String
    The Amazon Resource Name (ARN) of the resource for which the detailed monitoring metrics configuration is managed.
    metricSelections List<Property Map>
    The metric selections that define which metrics are enabled for detailed monitoring on the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ResourceMetricsConfiguration resource produces the following output properties:

    CreatedAt string
    The time at which the resource metrics configuration was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    The time at which the resource metrics configuration was last updated.
    CreatedAt string
    The time at which the resource metrics configuration was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    The time at which the resource metrics configuration was last updated.
    created_at string
    The time at which the resource metrics configuration was created.
    id string
    The provider-assigned unique ID for this managed resource.
    updated_at string
    The time at which the resource metrics configuration was last updated.
    createdAt String
    The time at which the resource metrics configuration was created.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    The time at which the resource metrics configuration was last updated.
    createdAt string
    The time at which the resource metrics configuration was created.
    id string
    The provider-assigned unique ID for this managed resource.
    updatedAt string
    The time at which the resource metrics configuration was last updated.
    created_at str
    The time at which the resource metrics configuration was created.
    id str
    The provider-assigned unique ID for this managed resource.
    updated_at str
    The time at which the resource metrics configuration was last updated.
    createdAt String
    The time at which the resource metrics configuration was created.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    The time at which the resource metrics configuration was last updated.

    Look up Existing ResourceMetricsConfiguration Resource

    Get an existing ResourceMetricsConfiguration resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): ResourceMetricsConfiguration
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None) -> ResourceMetricsConfiguration
    func GetResourceMetricsConfiguration(ctx *Context, name string, id IDInput, state *ResourceMetricsConfigurationState, opts ...ResourceOption) (*ResourceMetricsConfiguration, error)
    public static ResourceMetricsConfiguration Get(string name, Input<string> id, CustomResourceOptions? opts = null)
    public static ResourceMetricsConfiguration get(String name, Output<String> id, CustomResourceOptions options)
    resources:  existingResourceMetricsConfiguration:    type: aws-native:cloudwatch:ResourceMetricsConfiguration    get:      id: ${id}
    import {
      to = aws-native_cloudwatch_resource_metrics_configuration.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state ResourceMetricsConfigurationState
    Pass nil. This resource has no state arguments.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Supporting Types

    ResourceMetricsConfigurationResourceMetricSelection, ResourceMetricsConfigurationResourceMetricSelectionArgs

    Defines which metrics are enabled for detailed monitoring on the resource.

    IncludeMetrics List<string>
    The list of metric names to include in detailed monitoring for the resource.
    IncludeMetrics []string
    The list of metric names to include in detailed monitoring for the resource.
    include_metrics list(string)
    The list of metric names to include in detailed monitoring for the resource.
    includeMetrics List<String>
    The list of metric names to include in detailed monitoring for the resource.
    includeMetrics string[]
    The list of metric names to include in detailed monitoring for the resource.
    include_metrics Sequence[str]
    The list of metric names to include in detailed monitoring for the resource.
    includeMetrics List<String>
    The list of metric names to include in detailed monitoring for the resource.

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo AWS Cloud Control

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.86.0
    published on Wednesday, Nov 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial