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

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

Viewing docs for AWS Cloud Control v1.85.0
published on Monday, Nov 2, 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.85.0
published on Monday, Nov 2, 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.

    Using getResourceMetricsConfiguration

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getResourceMetricsConfiguration(args: GetResourceMetricsConfigurationArgs, opts?: InvokeOptions): Promise<GetResourceMetricsConfigurationResult>
    function getResourceMetricsConfigurationOutput(args: GetResourceMetricsConfigurationOutputArgs, opts?: InvokeOutputOptions): Output<GetResourceMetricsConfigurationResult>
    def get_resource_metrics_configuration(resource_arn: Optional[str] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetResourceMetricsConfigurationResult
    def get_resource_metrics_configuration_output(resource_arn: pulumi.Input[Optional[str]] = None,
                                           opts: Optional[InvokeOutputOptions] = None) -> Output[GetResourceMetricsConfigurationResult]
    func LookupResourceMetricsConfiguration(ctx *Context, args *LookupResourceMetricsConfigurationArgs, opts ...InvokeOption) (*LookupResourceMetricsConfigurationResult, error)
    func LookupResourceMetricsConfigurationOutput(ctx *Context, args *LookupResourceMetricsConfigurationOutputArgs, opts ...InvokeOption) LookupResourceMetricsConfigurationResultOutput

    > Note: This function is named LookupResourceMetricsConfiguration in the Go SDK.

    public static class GetResourceMetricsConfiguration 
    {
        public static Task<GetResourceMetricsConfigurationResult> InvokeAsync(GetResourceMetricsConfigurationArgs args, InvokeOptions? opts = null)
        public static Output<GetResourceMetricsConfigurationResult> Invoke(GetResourceMetricsConfigurationInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetResourceMetricsConfigurationResult> Invoke(GetResourceMetricsConfigurationInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetResourceMetricsConfigurationResult> getResourceMetricsConfiguration(GetResourceMetricsConfigurationArgs args, InvokeOptions options)
    public static Output<GetResourceMetricsConfigurationResult> getResourceMetricsConfiguration(GetResourceMetricsConfigurationArgs args, InvokeOptions options)
    public static Output<GetResourceMetricsConfigurationResult> getResourceMetricsConfiguration(GetResourceMetricsConfigurationArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws-native:cloudwatch:getResourceMetricsConfiguration
      arguments:
        # arguments dictionary
    data "aws-native_cloudwatch_get_resource_metrics_configuration" "name" {
        # arguments
    }

    The following arguments are supported:

    ResourceArn string
    The Amazon Resource Name (ARN) of the resource for which the detailed monitoring metrics configuration is managed.
    ResourceArn string
    The Amazon Resource Name (ARN) of the resource for which the detailed monitoring metrics configuration is managed.
    resource_arn string
    The Amazon Resource Name (ARN) of the resource for which the detailed monitoring metrics configuration is managed.
    resourceArn String
    The Amazon Resource Name (ARN) of the resource for which the detailed monitoring metrics configuration is managed.
    resourceArn string
    The Amazon Resource Name (ARN) of the resource for which the detailed monitoring metrics configuration is managed.
    resource_arn str
    The Amazon Resource Name (ARN) of the resource for which the detailed monitoring metrics configuration is managed.
    resourceArn String
    The Amazon Resource Name (ARN) of the resource for which the detailed monitoring metrics configuration is managed.

    getResourceMetricsConfiguration Result

    The following output properties are available:

    CreatedAt string
    The time at which the resource metrics configuration was created.
    MetricSelections List<Pulumi.AwsNative.CloudWatch.Outputs.ResourceMetricsConfigurationResourceMetricSelection>
    The metric selections that define which metrics are enabled for detailed monitoring on the 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.
    MetricSelections []ResourceMetricsConfigurationResourceMetricSelection
    The metric selections that define which metrics are enabled for detailed monitoring on the 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.
    metric_selections list(object)
    The metric selections that define which metrics are enabled for detailed monitoring on the 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.
    metricSelections List<ResourceMetricsConfigurationResourceMetricSelection>
    The metric selections that define which metrics are enabled for detailed monitoring on the 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.
    metricSelections ResourceMetricsConfigurationResourceMetricSelection[]
    The metric selections that define which metrics are enabled for detailed monitoring on the 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.
    metric_selections Sequence[ResourceMetricsConfigurationResourceMetricSelection]
    The metric selections that define which metrics are enabled for detailed monitoring on the 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.
    metricSelections List<Property Map>
    The metric selections that define which metrics are enabled for detailed monitoring on the resource.
    updatedAt String
    The time at which the resource metrics configuration was last updated.

    Supporting Types

    ResourceMetricsConfigurationResourceMetricSelection

    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.85.0
    published on Monday, Nov 2, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial