We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
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:
- Resource
Arn string - The Amazon Resource Name (ARN) of the resource for which the detailed monitoring metrics configuration is managed.
- Metric
Selections List<Pulumi.Aws Native. Cloud Watch. Inputs. Resource Metrics Configuration Resource Metric Selection> - 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 []ResourceMetrics Configuration Resource Metric Selection Args - 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.
- resource
Arn String - The Amazon Resource Name (ARN) of the resource for which the detailed monitoring metrics configuration is managed.
- metric
Selections List<ResourceMetrics Configuration Resource Metric Selection> - 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 ResourceMetrics Configuration Resource Metric Selection[] - 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[ResourceMetrics Configuration Resource Metric Selection Args] - 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<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:
- 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.
- 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.
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) -> ResourceMetricsConfigurationfunc 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.
- Include
Metrics List<string> - The list of metric names to include in detailed monitoring for the resource.
- Include
Metrics []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.
- include
Metrics List<String> - The list of metric names to include in detailed monitoring for the resource.
- include
Metrics 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.
- include
Metrics 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
We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi