We recommend new projects start with resources from the AWS provider.
Viewing docs for AWS Cloud Control v1.78.0
published on Monday, Sep 7, 2026 by Pulumi
published on Monday, Sep 7, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
Viewing docs for AWS Cloud Control v1.78.0
published on Monday, Sep 7, 2026 by Pulumi
published on Monday, Sep 7, 2026 by Pulumi
Resource Type definition for AWS::Connect::Metric, a custom metric configured for an Amazon Connect instance
Using getMetric
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 getMetric(args: GetMetricArgs, opts?: InvokeOptions): Promise<GetMetricResult>
function getMetricOutput(args: GetMetricOutputArgs, opts?: InvokeOutputOptions): Output<GetMetricResult>def get_metric(metric_arn: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMetricResult
def get_metric_output(metric_arn: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetMetricResult]func LookupMetric(ctx *Context, args *LookupMetricArgs, opts ...InvokeOption) (*LookupMetricResult, error)
func LookupMetricOutput(ctx *Context, args *LookupMetricOutputArgs, opts ...InvokeOption) LookupMetricResultOutput> Note: This function is named LookupMetric in the Go SDK.
public static class GetMetric
{
public static Task<GetMetricResult> InvokeAsync(GetMetricArgs args, InvokeOptions? opts = null)
public static Output<GetMetricResult> Invoke(GetMetricInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetMetricResult> Invoke(GetMetricInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetMetricResult> getMetric(GetMetricArgs args, InvokeOptions options)
public static Output<GetMetricResult> getMetric(GetMetricArgs args, InvokeOptions options)
public static Output<GetMetricResult> getMetric(GetMetricArgs args, InvokeOutputOptions options)
fn::invoke:
function: aws-native:connect:getMetric
arguments:
# arguments dictionarydata "aws-native_connect_get_metric" "name" {
# arguments
}The following arguments are supported:
- Metric
Arn string - The Amazon Resource Name (ARN) for the custom metric.
- Metric
Arn string - The Amazon Resource Name (ARN) for the custom metric.
- metric_
arn string - The Amazon Resource Name (ARN) for the custom metric.
- metric
Arn String - The Amazon Resource Name (ARN) for the custom metric.
- metric
Arn string - The Amazon Resource Name (ARN) for the custom metric.
- metric_
arn str - The Amazon Resource Name (ARN) for the custom metric.
- metric
Arn String - The Amazon Resource Name (ARN) for the custom metric.
getMetric Result
The following output properties are available:
- Category string
- The category of the custom metric
- Created
Time double - The timestamp where the metric was created
- Created
User Pulumi.Aws Native. Connect. Outputs. Metric Created By Info - Creation
Method Pulumi.Aws Native. Connect. Metric Creation Method - Whether the metric was built with the guided Service Level (SL) experience, or with the free-form metric builder
- Description string
- The description of the custom metric
- Effective
Time double - Earliest time that can be queried for this metric
- Filters
List<Pulumi.
Aws Native. Connect. Outputs. Metric Available Filter> - List of filter types that may be used with this metric
- Groupings List<string>
- List of groupings that may be used with this metric
- Last
Modified stringRegion - The AWS region where the metric was last modified
- Last
Modified doubleTime - The timestamp where the metric was last modified
- Last
Modified Pulumi.User Aws Native. Connect. Outputs. Metric Created By Info - Metric
Arn string - The Amazon Resource Name (ARN) for the custom metric.
- Metric
Calculation Pulumi.Aws Native. Connect. Outputs. Metric Calculation Properties - The calculation configuration for the metric
- Name string
- The name of the custom metric
- Positive
Trend Pulumi.Indicator Aws Native. Connect. Metric Positive Trend Indicator - Indicates how to classify a positive trend in metric data on the UI
- Primary
Event stringSource - Main provider of the document/row-level data for the metric; should match Data Lake table names
- Primary
Event stringSource Effective Timestamp Type - Identifies the timestamp used to place the metrics on a time-series; should match public attribute name
- Refresh
Rate int - Recommended time to wait between each refresh of data for the metric
- Supported
Stats List<string> - List of stat aggregations available for the metric
- Supports
Custom boolCalculation - The metric may be used to compose other (custom) metrics
- Supports
Preaggregate boolCalculation - The metric may be used to compose other (custom) metrics, meaning it can be used inside of aggregate stat functions
-
List<Pulumi.
Aws Native. Outputs. Tag> - One or more tags.
- Type
Pulumi.
Aws Native. Connect. Metric Type - Whether the metric is provided out-of-the-box or created by each customer
- Unit
Pulumi.
Aws Native. Connect. Metric Unit - Display unit for the metric data
- Category string
- The category of the custom metric
- Created
Time float64 - The timestamp where the metric was created
- Created
User MetricCreated By Info - Creation
Method MetricCreation Method - Whether the metric was built with the guided Service Level (SL) experience, or with the free-form metric builder
- Description string
- The description of the custom metric
- Effective
Time float64 - Earliest time that can be queried for this metric
- Filters
[]Metric
Available Filter - List of filter types that may be used with this metric
- Groupings []string
- List of groupings that may be used with this metric
- Last
Modified stringRegion - The AWS region where the metric was last modified
- Last
Modified float64Time - The timestamp where the metric was last modified
- Last
Modified MetricUser Created By Info - Metric
Arn string - The Amazon Resource Name (ARN) for the custom metric.
- Metric
Calculation MetricCalculation Properties - The calculation configuration for the metric
- Name string
- The name of the custom metric
- Positive
Trend MetricIndicator Positive Trend Indicator - Indicates how to classify a positive trend in metric data on the UI
- Primary
Event stringSource - Main provider of the document/row-level data for the metric; should match Data Lake table names
- Primary
Event stringSource Effective Timestamp Type - Identifies the timestamp used to place the metrics on a time-series; should match public attribute name
- Refresh
Rate int - Recommended time to wait between each refresh of data for the metric
- Supported
Stats []string - List of stat aggregations available for the metric
- Supports
Custom boolCalculation - The metric may be used to compose other (custom) metrics
- Supports
Preaggregate boolCalculation - The metric may be used to compose other (custom) metrics, meaning it can be used inside of aggregate stat functions
- Tag
- One or more tags.
- Type
Metric
Type - Whether the metric is provided out-of-the-box or created by each customer
- Unit
Metric
Unit - Display unit for the metric data
- category string
- The category of the custom metric
- created_
time number - The timestamp where the metric was created
- created_
user object - creation_
method "SERVICE_LEVEL_BUILDER" | "METRIC_BUILDER" - Whether the metric was built with the guided Service Level (SL) experience, or with the free-form metric builder
- description string
- The description of the custom metric
- effective_
time number - Earliest time that can be queried for this metric
- filters list(object)
- List of filter types that may be used with this metric
- groupings list(string)
- List of groupings that may be used with this metric
- last_
modified_ stringregion - The AWS region where the metric was last modified
- last_
modified_ numbertime - The timestamp where the metric was last modified
- last_
modified_ objectuser - metric_
arn string - The Amazon Resource Name (ARN) for the custom metric.
- metric_
calculation object - The calculation configuration for the metric
- name string
- The name of the custom metric
- positive_
trend_ "POSITIVE" | "NEGATIVE" | "NEUTRAL"indicator - Indicates how to classify a positive trend in metric data on the UI
- primary_
event_ stringsource - Main provider of the document/row-level data for the metric; should match Data Lake table names
- primary_
event_ stringsource_ effective_ timestamp_ type - Identifies the timestamp used to place the metrics on a time-series; should match public attribute name
- refresh_
rate number - Recommended time to wait between each refresh of data for the metric
- supported_
stats list(string) - List of stat aggregations available for the metric
- supports_
custom_ boolcalculation - The metric may be used to compose other (custom) metrics
- supports_
preaggregate_ boolcalculation - The metric may be used to compose other (custom) metrics, meaning it can be used inside of aggregate stat functions
- list(object)
- One or more tags.
- type "AWS_MANAGED" | "CUSTOMER_MANAGED"
- Whether the metric is provided out-of-the-box or created by each customer
- unit "INTEGER" | "DOUBLE" | "PERCENT" | "SECONDS"
- Display unit for the metric data
- category String
- The category of the custom metric
- created
Time Double - The timestamp where the metric was created
- created
User MetricCreated By Info - creation
Method MetricCreation Method - Whether the metric was built with the guided Service Level (SL) experience, or with the free-form metric builder
- description String
- The description of the custom metric
- effective
Time Double - Earliest time that can be queried for this metric
- filters
List<Metric
Available Filter> - List of filter types that may be used with this metric
- groupings List<String>
- List of groupings that may be used with this metric
- last
Modified StringRegion - The AWS region where the metric was last modified
- last
Modified DoubleTime - The timestamp where the metric was last modified
- last
Modified MetricUser Created By Info - metric
Arn String - The Amazon Resource Name (ARN) for the custom metric.
- metric
Calculation MetricCalculation Properties - The calculation configuration for the metric
- name String
- The name of the custom metric
- positive
Trend MetricIndicator Positive Trend Indicator - Indicates how to classify a positive trend in metric data on the UI
- primary
Event StringSource - Main provider of the document/row-level data for the metric; should match Data Lake table names
- primary
Event StringSource Effective Timestamp Type - Identifies the timestamp used to place the metrics on a time-series; should match public attribute name
- refresh
Rate Integer - Recommended time to wait between each refresh of data for the metric
- supported
Stats List<String> - List of stat aggregations available for the metric
- supports
Custom BooleanCalculation - The metric may be used to compose other (custom) metrics
- supports
Preaggregate BooleanCalculation - The metric may be used to compose other (custom) metrics, meaning it can be used inside of aggregate stat functions
- List<Tag>
- One or more tags.
- type
Metric
Type - Whether the metric is provided out-of-the-box or created by each customer
- unit
Metric
Unit - Display unit for the metric data
- category string
- The category of the custom metric
- created
Time number - The timestamp where the metric was created
- created
User MetricCreated By Info - creation
Method MetricCreation Method - Whether the metric was built with the guided Service Level (SL) experience, or with the free-form metric builder
- description string
- The description of the custom metric
- effective
Time number - Earliest time that can be queried for this metric
- filters
Metric
Available Filter[] - List of filter types that may be used with this metric
- groupings string[]
- List of groupings that may be used with this metric
- last
Modified stringRegion - The AWS region where the metric was last modified
- last
Modified numberTime - The timestamp where the metric was last modified
- last
Modified MetricUser Created By Info - metric
Arn string - The Amazon Resource Name (ARN) for the custom metric.
- metric
Calculation MetricCalculation Properties - The calculation configuration for the metric
- name string
- The name of the custom metric
- positive
Trend MetricIndicator Positive Trend Indicator - Indicates how to classify a positive trend in metric data on the UI
- primary
Event stringSource - Main provider of the document/row-level data for the metric; should match Data Lake table names
- primary
Event stringSource Effective Timestamp Type - Identifies the timestamp used to place the metrics on a time-series; should match public attribute name
- refresh
Rate number - Recommended time to wait between each refresh of data for the metric
- supported
Stats string[] - List of stat aggregations available for the metric
- supports
Custom booleanCalculation - The metric may be used to compose other (custom) metrics
- supports
Preaggregate booleanCalculation - The metric may be used to compose other (custom) metrics, meaning it can be used inside of aggregate stat functions
- Tag[]
- One or more tags.
- type
Metric
Type - Whether the metric is provided out-of-the-box or created by each customer
- unit
Metric
Unit - Display unit for the metric data
- category str
- The category of the custom metric
- created_
time float - The timestamp where the metric was created
- created_
user MetricCreated By Info - creation_
method MetricCreation Method - Whether the metric was built with the guided Service Level (SL) experience, or with the free-form metric builder
- description str
- The description of the custom metric
- effective_
time float - Earliest time that can be queried for this metric
- filters
Sequence[Metric
Available Filter] - List of filter types that may be used with this metric
- groupings Sequence[str]
- List of groupings that may be used with this metric
- last_
modified_ strregion - The AWS region where the metric was last modified
- last_
modified_ floattime - The timestamp where the metric was last modified
- last_
modified_ Metricuser Created By Info - metric_
arn str - The Amazon Resource Name (ARN) for the custom metric.
- metric_
calculation MetricCalculation Properties - The calculation configuration for the metric
- name str
- The name of the custom metric
- positive_
trend_ Metricindicator Positive Trend Indicator - Indicates how to classify a positive trend in metric data on the UI
- primary_
event_ strsource - Main provider of the document/row-level data for the metric; should match Data Lake table names
- primary_
event_ strsource_ effective_ timestamp_ type - Identifies the timestamp used to place the metrics on a time-series; should match public attribute name
- refresh_
rate int - Recommended time to wait between each refresh of data for the metric
- supported_
stats Sequence[str] - List of stat aggregations available for the metric
- supports_
custom_ boolcalculation - The metric may be used to compose other (custom) metrics
- supports_
preaggregate_ boolcalculation - The metric may be used to compose other (custom) metrics, meaning it can be used inside of aggregate stat functions
- Sequence[root_Tag]
- One or more tags.
- type
Metric
Type - Whether the metric is provided out-of-the-box or created by each customer
- unit
Metric
Unit - Display unit for the metric data
- category String
- The category of the custom metric
- created
Time Number - The timestamp where the metric was created
- created
User Property Map - creation
Method "SERVICE_LEVEL_BUILDER" | "METRIC_BUILDER" - Whether the metric was built with the guided Service Level (SL) experience, or with the free-form metric builder
- description String
- The description of the custom metric
- effective
Time Number - Earliest time that can be queried for this metric
- filters List<Property Map>
- List of filter types that may be used with this metric
- groupings List<String>
- List of groupings that may be used with this metric
- last
Modified StringRegion - The AWS region where the metric was last modified
- last
Modified NumberTime - The timestamp where the metric was last modified
- last
Modified Property MapUser - metric
Arn String - The Amazon Resource Name (ARN) for the custom metric.
- metric
Calculation Property Map - The calculation configuration for the metric
- name String
- The name of the custom metric
- positive
Trend "POSITIVE" | "NEGATIVE" | "NEUTRAL"Indicator - Indicates how to classify a positive trend in metric data on the UI
- primary
Event StringSource - Main provider of the document/row-level data for the metric; should match Data Lake table names
- primary
Event StringSource Effective Timestamp Type - Identifies the timestamp used to place the metrics on a time-series; should match public attribute name
- refresh
Rate Number - Recommended time to wait between each refresh of data for the metric
- supported
Stats List<String> - List of stat aggregations available for the metric
- supports
Custom BooleanCalculation - The metric may be used to compose other (custom) metrics
- supports
Preaggregate BooleanCalculation - The metric may be used to compose other (custom) metrics, meaning it can be used inside of aggregate stat functions
- List<Property Map>
- One or more tags.
- type "AWS_MANAGED" | "CUSTOMER_MANAGED"
- Whether the metric is provided out-of-the-box or created by each customer
- unit "INTEGER" | "DOUBLE" | "PERCENT" | "SECONDS"
- Display unit for the metric data
Supporting Types
MetricAvailableFilter
- Id string
- Type
Metric
Available Filter Type
- id String
- type
Metric
Available Filter Type
- id string
- type
Metric
Available Filter Type
MetricAvailableFilterType
MetricCalculationComponent
- Alias string
- Metric calculation component alias for use within a calculation
- Metric
Filters List<Pulumi.Aws Native. Connect. Inputs. Metric Filter> - Metric
Id string - Metric
Name string
- Alias string
- Metric calculation component alias for use within a calculation
- Metric
Filters []MetricFilter - Metric
Id string - Metric
Name string
- alias string
- Metric calculation component alias for use within a calculation
- metric_
filters list(object) - metric_
id string - metric_
name string
- alias String
- Metric calculation component alias for use within a calculation
- metric
Filters List<MetricFilter> - metric
Id String - metric
Name String
- alias string
- Metric calculation component alias for use within a calculation
- metric
Filters MetricFilter[] - metric
Id string - metric
Name string
- alias str
- Metric calculation component alias for use within a calculation
- metric_
filters Sequence[MetricFilter] - metric_
id str - metric_
name str
- alias String
- Metric calculation component alias for use within a calculation
- metric
Filters List<Property Map> - metric
Id String - metric
Name String
MetricCalculationProperties
- Calculation string
- The calculation formula
- Calculation
Components List<Pulumi.Aws Native. Connect. Inputs. Metric Calculation Component> - The calculation components for the metric
- Calculation string
- The calculation formula
- Calculation
Components []MetricCalculation Component - The calculation components for the metric
- calculation string
- The calculation formula
- calculation_
components list(object) - The calculation components for the metric
- calculation String
- The calculation formula
- calculation
Components List<MetricCalculation Component> - The calculation components for the metric
- calculation string
- The calculation formula
- calculation
Components MetricCalculation Component[] - The calculation components for the metric
- calculation str
- The calculation formula
- calculation_
components Sequence[MetricCalculation Component] - The calculation components for the metric
- calculation String
- The calculation formula
- calculation
Components List<Property Map> - The calculation components for the metric
MetricCreatedByInfo
- Aws
Identity stringArn - STS or IAM ARN representing the identity of API Caller. SDK users cannot populate this and this value is calculated automatically if ConnectUserArn is not provided.
- Connect
User stringArn - An agent ARN representing a connect user.
- Aws
Identity stringArn - STS or IAM ARN representing the identity of API Caller. SDK users cannot populate this and this value is calculated automatically if ConnectUserArn is not provided.
- Connect
User stringArn - An agent ARN representing a connect user.
- aws_
identity_ stringarn - STS or IAM ARN representing the identity of API Caller. SDK users cannot populate this and this value is calculated automatically if ConnectUserArn is not provided.
- connect_
user_ stringarn - An agent ARN representing a connect user.
- aws
Identity StringArn - STS or IAM ARN representing the identity of API Caller. SDK users cannot populate this and this value is calculated automatically if ConnectUserArn is not provided.
- connect
User StringArn - An agent ARN representing a connect user.
- aws
Identity stringArn - STS or IAM ARN representing the identity of API Caller. SDK users cannot populate this and this value is calculated automatically if ConnectUserArn is not provided.
- connect
User stringArn - An agent ARN representing a connect user.
- aws_
identity_ strarn - STS or IAM ARN representing the identity of API Caller. SDK users cannot populate this and this value is calculated automatically if ConnectUserArn is not provided.
- connect_
user_ strarn - An agent ARN representing a connect user.
- aws
Identity StringArn - STS or IAM ARN representing the identity of API Caller. SDK users cannot populate this and this value is calculated automatically if ConnectUserArn is not provided.
- connect
User StringArn - An agent ARN representing a connect user.
MetricCreationMethod
MetricFilter
MetricFilterBooleanCondition
MetricFilterBooleanConditionComparison
MetricFilterNumberCondition
- comparison
Metric
Filter Number Condition Comparison - values List<Double>
- comparison
Metric
Filter Number Condition Comparison - values Sequence[float]
MetricFilterNumberConditionComparison
MetricFilterStringCondition
- comparison "MATCHES_ANY" | "MATCHES_NONE"
- values list(string)
- comparison
Metric
Filter String Condition Comparison - values List<String>
- comparison
Metric
Filter String Condition Comparison - values Sequence[str]
- comparison "MATCHES_ANY" | "MATCHES_NONE"
- values List<String>
MetricFilterStringConditionComparison
MetricPositiveTrendIndicator
MetricType
MetricUnit
Tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
Viewing docs for AWS Cloud Control v1.78.0
published on Monday, Sep 7, 2026 by Pulumi
published on Monday, Sep 7, 2026 by Pulumi