

# TelemetryRule
<a name="API_TelemetryRule"></a>

 Defines how telemetry should be configured for specific AWS resources. 

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

 ** TelemetryType **   <a name="cwoa-Type-TelemetryRule-TelemetryType"></a>
 The type of telemetry to collect (Logs, Metrics, or Traces).   
Type: String  
Valid Values: `Logs | Metrics | Traces`   
Required: Yes

 ** DestinationConfiguration **   <a name="cwoa-Type-TelemetryRule-DestinationConfiguration"></a>
 Configuration specifying where and how the telemetry data should be delivered.   
Type: [TelemetryDestinationConfiguration](API_TelemetryDestinationConfiguration.md) object  
Required: No

 ** ResourceType **   <a name="cwoa-Type-TelemetryRule-ResourceType"></a>
 The type of AWS resource to configure telemetry for (e.g., "AWS::EC2::VPC", "AWS::EKS::Cluster", "AWS::WAFv2::WebACL").   
Type: String  
Valid Values: `AWS::EC2::Instance | AWS::EC2::VPC | AWS::Lambda::Function | AWS::CloudTrail | AWS::EKS::Cluster | AWS::WAFv2::WebACL | AWS::ElasticLoadBalancingV2::LoadBalancer | AWS::Route53Resolver::ResolverEndpoint | AWS::BedrockAgentCore::Runtime | AWS::BedrockAgentCore::Browser | AWS::BedrockAgentCore::CodeInterpreter`   
Required: No

 ** Scope **   <a name="cwoa-Type-TelemetryRule-Scope"></a>
 The organizational scope to which the rule applies, specified using accounts or organizational units.   
Type: String  
Required: No

 ** SelectionCriteria **   <a name="cwoa-Type-TelemetryRule-SelectionCriteria"></a>
 Criteria for selecting which resources the rule applies to, such as resource tags.   
Type: String  
Required: No

 ** TelemetrySourceTypes **   <a name="cwoa-Type-TelemetryRule-TelemetrySourceTypes"></a>
 The specific telemetry source types to configure for the resource, such as VPC\$1FLOW\$1LOGS or EKS\$1AUDIT\$1LOGS. TelemetrySourceTypes must be correlated with the specific resource type.   
Type: Array of strings  
Valid Values: `VPC_FLOW_LOGS | ROUTE53_RESOLVER_QUERY_LOGS | EKS_AUDIT_LOGS | EKS_AUTHENTICATOR_LOGS | EKS_CONTROLLER_MANAGER_LOGS | EKS_SCHEDULER_LOGS | EKS_API_LOGS`   
Required: No

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

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/observabilityadmin-2018-05-10/TelemetryRule) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/observabilityadmin-2018-05-10/TelemetryRule) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/observabilityadmin-2018-05-10/TelemetryRule) 