

This is the new *CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [AWS CloudFormation User Guide](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::ApplicationSignals::ServiceLevelObjective
<a name="aws-resource-applicationsignals-servicelevelobjective"></a>

Creates or updates a service level objective (SLO), which can help you ensure that your critical business operations are meeting customer expectations. Use SLOs to set and track specific target levels for the reliability and availability of your applications and services. SLOs use service level indicators (SLIs) to calculate whether the application is performing at the level that you want.

Create an SLO to set a target for a service operation, or service dependency's availability or latency. CloudWatch measures this target frequently you can find whether it has been breached.

The target performance quality that is defined for an SLO is the *attainment goal*. An attainment goal is the percentage of time or requests that the SLI is expected to meet the threshold over each time interval. For example, an attainment goal of 99.9% means that within your interval, you are targeting 99.9% of the periods to be in healthy state.

When you create an SLO, you specify whether it is a *period-based SLO* or a *request-based SLO*. Each type of SLO has a different way of evaluating your application's performance against its attainment goal.
+ A *period-based SLO* uses defined *periods* of time within a specified total time interval. For each period of time, Application Signals determines whether the application met its goal. The attainment rate is calculated as the `number of good periods/number of total periods`.

  For example, for a period-based SLO, meeting an attainment goal of 99.9% means that within your interval, your application must meet its performance goal during at least 99.9% of the time periods.
+ A *request-based SLO* doesn't use pre-defined periods of time. Instead, the SLO measures `number of good requests/number of total requests` during the interval. At any time, you can find the ratio of good requests to total requests for the interval up to the time stamp that you specify, and measure that ratio against the goal set in your SLO.

After you have created an SLO, you can retrieve error budget reports for it. An *error budget* is the amount of time or amount of requests that your application can be non-compliant with the SLO's goal, and still have your application meet the goal.
+ For a period-based SLO, the error budget starts at a number defined by the highest number of periods that can fail to meet the threshold, while still meeting the overall goal. The *remaining error budget* decreases with every failed period that is recorded. The error budget within one interval can never increase.

  For example, an SLO with a threshold that 99.95% of requests must be completed under 2000ms every month translates to an error budget of 21.9 minutes of downtime per month.
+ For a request-based SLO, the remaining error budget is dynamic and can increase or decrease, depending on the ratio of good requests to total requests.

When you call this operation, Application Signals creates the *AWSServiceRoleForCloudWatchApplicationSignals* service-linked role, if it doesn't already exist in your account. This service- linked role has the following permissions:
+  `xray:GetServiceGraph` 
+  `logs:StartQuery` 
+  `logs:GetQueryResults` 
+  `cloudwatch:GetMetricData` 
+  `cloudwatch:ListMetrics` 
+  `tag:GetResources` 
+  `autoscaling:DescribeAutoScalingGroups` 

You can easily set SLO targets for your applications, and their dependencies, that are discovered by Application Signals, using critical metrics such as latency and availability. You can also set SLOs against any CloudWatch metric or math expression that produces a time series.

**Note**  
You can't create an SLO for a service operation that was discovered by Application Signals until after that operation has reported standard metrics to Application Signals.

You cannot change from a period-based SLO to a request-based SLO, or change from a request-based SLO to a period-based SLO.

For more information about SLOs, see [ Service level objectives (SLOs)](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-ServiceLevelObjectives.html). 

## Syntax
<a name="aws-resource-applicationsignals-servicelevelobjective-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-resource-applicationsignals-servicelevelobjective-syntax.json"></a>

```
{
  "Type" : "AWS::ApplicationSignals::ServiceLevelObjective",
  "Properties" : {
      "[BurnRateConfigurations](#cfn-applicationsignals-servicelevelobjective-burnrateconfigurations)" : [ BurnRateConfiguration, ... ],
      "[Description](#cfn-applicationsignals-servicelevelobjective-description)" : String,
      "[ExclusionWindows](#cfn-applicationsignals-servicelevelobjective-exclusionwindows)" : [ ExclusionWindow, ... ],
      "[Goal](#cfn-applicationsignals-servicelevelobjective-goal)" : Goal,
      "[Name](#cfn-applicationsignals-servicelevelobjective-name)" : String,
      "[RequestBasedSli](#cfn-applicationsignals-servicelevelobjective-requestbasedsli)" : RequestBasedSli,
      "[Sli](#cfn-applicationsignals-servicelevelobjective-sli)" : Sli,
      "[Tags](#cfn-applicationsignals-servicelevelobjective-tags)" : [ Tag, ... ]
    }
}
```

### YAML
<a name="aws-resource-applicationsignals-servicelevelobjective-syntax.yaml"></a>

```
Type: AWS::ApplicationSignals::ServiceLevelObjective
Properties:
  [BurnRateConfigurations](#cfn-applicationsignals-servicelevelobjective-burnrateconfigurations): 
    - BurnRateConfiguration
  [Description](#cfn-applicationsignals-servicelevelobjective-description): String
  [ExclusionWindows](#cfn-applicationsignals-servicelevelobjective-exclusionwindows): 
    - ExclusionWindow
  [Goal](#cfn-applicationsignals-servicelevelobjective-goal): 
    Goal
  [Name](#cfn-applicationsignals-servicelevelobjective-name): String
  [RequestBasedSli](#cfn-applicationsignals-servicelevelobjective-requestbasedsli): 
    RequestBasedSli
  [Sli](#cfn-applicationsignals-servicelevelobjective-sli): 
    Sli
  [Tags](#cfn-applicationsignals-servicelevelobjective-tags): 
    - Tag
```

## Properties
<a name="aws-resource-applicationsignals-servicelevelobjective-properties"></a>

`BurnRateConfigurations`  <a name="cfn-applicationsignals-servicelevelobjective-burnrateconfigurations"></a>
Each object in this array defines the length of the look-back window used to calculate one burn rate metric for this SLO. The burn rate measures how fast the service is consuming the error budget, relative to the attainment goal of the SLO.  
*Required*: No  
*Type*: Array of [BurnRateConfiguration](aws-properties-applicationsignals-servicelevelobjective-burnrateconfiguration.md)  
*Minimum*: `0`  
*Maximum*: `10`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Description`  <a name="cfn-applicationsignals-servicelevelobjective-description"></a>
An optional description for this SLO.  
*Required*: No  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `1024`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`ExclusionWindows`  <a name="cfn-applicationsignals-servicelevelobjective-exclusionwindows"></a>
The time window to be excluded from the SLO performance metrics.  
*Required*: No  
*Type*: Array of [ExclusionWindow](aws-properties-applicationsignals-servicelevelobjective-exclusionwindow.md)  
*Minimum*: `0`  
*Maximum*: `10`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Goal`  <a name="cfn-applicationsignals-servicelevelobjective-goal"></a>
This structure contains the attributes that determine the goal of an SLO. This includes the time period for evaluation and the attainment threshold.  
*Required*: No  
*Type*: [Goal](aws-properties-applicationsignals-servicelevelobjective-goal.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Name`  <a name="cfn-applicationsignals-servicelevelobjective-name"></a>
A name for this SLO.  
*Required*: Yes  
*Type*: String  
*Pattern*: `^[0-9A-Za-z][-._0-9A-Za-z ]{0,126}[0-9A-Za-z]$`  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`RequestBasedSli`  <a name="cfn-applicationsignals-servicelevelobjective-requestbasedsli"></a>
A structure containing information about the performance metric that this SLO monitors, if this is a request-based SLO.  
*Required*: No  
*Type*: [RequestBasedSli](aws-properties-applicationsignals-servicelevelobjective-requestbasedsli.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Sli`  <a name="cfn-applicationsignals-servicelevelobjective-sli"></a>
A structure containing information about the performance metric that this SLO monitors, if this is a period-based SLO.  
*Required*: No  
*Type*: [Sli](aws-properties-applicationsignals-servicelevelobjective-sli.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Tags`  <a name="cfn-applicationsignals-servicelevelobjective-tags"></a>
A list of key-value pairs to associate with the SLO. You can associate as many as 50 tags with an SLO. To be able to associate tags with the SLO when you create the SLO, you must have the cloudwatch:TagResource permission.  
Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.  
*Required*: No  
*Type*: Array of [Tag](aws-properties-applicationsignals-servicelevelobjective-tag.md)  
*Minimum*: `1`  
*Maximum*: `200`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

## Return values
<a name="aws-resource-applicationsignals-servicelevelobjective-return-values"></a>

### Ref
<a name="aws-resource-applicationsignals-servicelevelobjective-return-values-ref"></a>

When you pass the logical ID of this resource to the intrinsic `Ref` function, `Ref` returns the ARN of the SLO. For example, `arn:aws:cloudwatch:us-west-1:123456789012:slo:my-slo-name`

### Fn::GetAtt
<a name="aws-resource-applicationsignals-servicelevelobjective-return-values-fn--getatt"></a>

#### 
<a name="aws-resource-applicationsignals-servicelevelobjective-return-values-fn--getatt-fn--getatt"></a>

`Arn`  <a name="Arn-fn::getatt"></a>
The ARN of this SLO.

`CreatedTime`  <a name="CreatedTime-fn::getatt"></a>
The date and time that this SLO was created.

`EvaluationType`  <a name="EvaluationType-fn::getatt"></a>
Displays whether this is a period-based SLO or a request-based SLO.

`LastUpdatedTime`  <a name="LastUpdatedTime-fn::getatt"></a>
The time that this SLO was most recently updated.

## Examples
<a name="aws-resource-applicationsignals-servicelevelobjective--examples"></a>



**Topics**
+ [A period-based SLO on service dependency latency](#aws-resource-applicationsignals-servicelevelobjective--examples--A_period-based_SLO_on_service_dependency_latency)
+ [A request-based SLO on service dependency latency](#aws-resource-applicationsignals-servicelevelobjective--examples--A_request-based_SLO_on_service_dependency_latency)
+ [A period-based SLO on service operation latency](#aws-resource-applicationsignals-servicelevelobjective--examples--A_period-based_SLO_on_service_operation_latency)
+ [A period-based SLO on service operation availability](#aws-resource-applicationsignals-servicelevelobjective--examples--A_period-based_SLO_on_service_operation_availability)
+ [A period-based SLO on CloudWatch metrics](#aws-resource-applicationsignals-servicelevelobjective--examples--A_period-based_SLO_on_CloudWatch_metrics)
+ [A request-based SLO on CloudWatch metrics](#aws-resource-applicationsignals-servicelevelobjective--examples--A_request-based_SLO_on_CloudWatch_metrics)

### A period-based SLO on service dependency latency
<a name="aws-resource-applicationsignals-servicelevelobjective--examples--A_period-based_SLO_on_service_dependency_latency"></a>

The following example creates a period-based SLO on service dependency latency.

#### YAML
<a name="aws-resource-applicationsignals-servicelevelobjective--examples--A_period-based_SLO_on_service_dependency_latency--yaml"></a>

```
Resources:
  ServiceLevelObjective:
    Type: AWS::ApplicationSignals::ServiceLevelObjective
    Properties:
      Name: !Join ["-", ["CanaryTestSlo", !Select [2, !Split ['/', !Ref AWS::StackId]]]]
      Description: "Sample period-based latency slo with dependency config."
      Sli:
        SliMetric:
          KeyAttributes:
            Environment: "eks:pet-clinic-slo-canary/default"
            Name: "TestServiceForCloudFormation-1"
            Type: "Service"
          OperationName: "Operation-1"
          MetricType: "LATENCY"
          Statistic: "p99"
          PeriodSeconds: 60
          DependencyConfig:
            DependencyKeyAttributes:
              Identifier: "sample_kinesis_stream"
              ResourceType: "AWS::Kinesis::Stream"
              Type: "AWS::Resource"
            DependencyOperationName: "Operation-1"
        MetricThreshold: 2.5
        ComparisonOperator: "LessThanOrEqualTo"
      Goal:
        Interval:
          RollingInterval:
            DurationUnit: "DAY"
            Duration: 1
        AttainmentGoal: 90.0
        WarningThreshold: 80.0
```

### A request-based SLO on service dependency latency
<a name="aws-resource-applicationsignals-servicelevelobjective--examples--A_request-based_SLO_on_service_dependency_latency"></a>

The following example creates a request-based SLO on service dependency availability. 

#### YAML
<a name="aws-resource-applicationsignals-servicelevelobjective--examples--A_request-based_SLO_on_service_dependency_latency--yaml"></a>

```
Resources:
  ServiceLevelObjective:
    Type: AWS::ApplicationSignals::ServiceLevelObjective
    Properties:
      Name: !Join ["-", ["CanaryTestSlo", !Select [2, !Split ['/', !Ref AWS::StackId]]]]
      Description: "Sample request-based availability slo with dependency config."
      RequestBasedSli:
        RequestBasedSliMetric:
          KeyAttributes:
            Environment: "eks:pet-clinic-slo-canary/default"
            Name: "TestServiceForCloudFormation-1"
            Type: "Service"
          OperationName: "Operation-1"
          MetricType: "AVAILABILITY"
          DependencyConfig:
            DependencyKeyAttributes:
              Identifier: "sample_kinesis_stream"
              ResourceType: "AWS::Kinesis::Stream"
              Type: "AWS::Resource"
            DependencyOperationName: "Operation-1"
      Goal:
        Interval:
          RollingInterval:
            DurationUnit: "DAY"
            Duration: 1
        AttainmentGoal: 90.0
        WarningThreshold: 80.0
```

### A period-based SLO on service operation latency
<a name="aws-resource-applicationsignals-servicelevelobjective--examples--A_period-based_SLO_on_service_operation_latency"></a>

The following example creates a period-based SLO on service operation latency.

#### YAML
<a name="aws-resource-applicationsignals-servicelevelobjective--examples--A_period-based_SLO_on_service_operation_latency--yaml"></a>

```
Resources:
  ServiceLevelObjective:
    Type: AWS::ApplicationSignals::ServiceLevelObjective
    Properties:
      Name: !Join ["-", ["CanaryTestSlo", !Select [2, !Split ['/', !Ref AWS::StackId]]]]
      Description: "Canary test custom-metric slo description."
      Sli:
        SliMetric:
          KeyAttributes:
            Environment: "eks:pet-clinic-slo-canary/default"
            Name: "TestServiceForCloudFormation-1"
            Type: "Service"
          OperationName: "Operation-1"
          MetricType: "LATENCY"
          Statistic: "p99"
          PeriodSeconds: 60
        MetricThreshold: 2.5
        ComparisonOperator: "LessThanOrEqualTo"
      Goal:
        Interval:
          RollingInterval:
            DurationUnit: "DAY"
            Duration: 1
        AttainmentGoal: 90.0
        WarningThreshold: 80.0
```

### A period-based SLO on service operation availability
<a name="aws-resource-applicationsignals-servicelevelobjective--examples--A_period-based_SLO_on_service_operation_availability"></a>

The following example creates a period-based SLO on service operation availability.

#### YAML
<a name="aws-resource-applicationsignals-servicelevelobjective--examples--A_period-based_SLO_on_service_operation_availability--yaml"></a>

```
Resources:
  ServiceLevelObjective:
    Type: AWS::ApplicationSignals::ServiceLevelObjective
    Properties:
      Name: !Join ["-", ["CanaryTestSlo", !Select [2, !Split ['/', !Ref AWS::StackId]]]]
      Description: "Canary test custom-metric slo description."
      Sli:
        SliMetric:
          KeyAttributes:
            Environment: "eks:pet-clinic-slo-canary/default"
            Name: "TestServiceForCloudFormation-1"
            Type: "Service"
          OperationName: "Operation-1"
          MetricType: "AVAILABILITY"
          PeriodSeconds: 60
        MetricThreshold: 2.5
        ComparisonOperator: "LessThanOrEqualTo"
      Goal:
        Interval:
          RollingInterval:
            DurationUnit: "DAY"
            Duration: 1
        AttainmentGoal: 90.0
        WarningThreshold: 80.0
```

### A period-based SLO on CloudWatch metrics
<a name="aws-resource-applicationsignals-servicelevelobjective--examples--A_period-based_SLO_on_CloudWatch_metrics"></a>

The following example creates a period-based SLO on CloudWatch metrics.

#### YAML
<a name="aws-resource-applicationsignals-servicelevelobjective--examples--A_period-based_SLO_on_CloudWatch_metrics--yaml"></a>

```
Resources:
  ServiceLevelObjective:
    Type: AWS::ApplicationSignals::ServiceLevelObjective
    Properties:
      Name: !Join ["-", ["CanaryTestSlo", !Select [2, !Split ['/', !Ref AWS::StackId]]]]
      Description: "Canary test custom-metric slo description."
      Sli:
        SliMetric:
          MetricDataQueries:
            - MetricStat:
                Period: 60
                Metric:
                  MetricName: "Latency"
                  Dimensions:
                    - Value: "Operation-1"
                      Name: "Operation"
                    - Value: "TestServiceForCloudFormation-1"
                      Name: "Service"
                    - Value: "eks:pet-clinic-slo-canary/default"
                      Name: "Environment"
                  Namespace: "ApplicationSignals"
                Stat: "p99"
                Unit: "Milliseconds"
              Id: "latency"
              ReturnData: false
            - Id: "latencyfinal"
              ReturnData: true
              Expression: "latency * 1"
        MetricThreshold: 2.5
        ComparisonOperator: "LessThanOrEqualTo"
      Goal:
        Interval:
          RollingInterval:
            DurationUnit: "DAY"
            Duration: 1
        AttainmentGoal: 90.0
        WarningThreshold: 80.0
```

### A request-based SLO on CloudWatch metrics
<a name="aws-resource-applicationsignals-servicelevelobjective--examples--A_request-based_SLO_on_CloudWatch_metrics"></a>

The following example creates a request-based SLO on CloudWatch metrics.

#### YAML
<a name="aws-resource-applicationsignals-servicelevelobjective--examples--A_request-based_SLO_on_CloudWatch_metrics--yaml"></a>

```
Resources:
  ServiceLevelObjective:
    Type: AWS::ApplicationSignals::ServiceLevelObjective
    Properties:
      Name: !Join ["-", ["CanaryTestSlo", !Select [2, !Split ['/', !Ref AWS::StackId]]]]
      Description: "Canary test request-based slo description."
      RequestBasedSli:
        RequestBasedSliMetric:
          TotalRequestCountMetric:
            - MetricStat:
                Period: 60
                Metric:
                  MetricName: "Latency"
                  Dimensions:
                    - Value: "Operation-1"
                      Name: "Operation"
                    - Value: "TestServiceForCloudFormation-1"
                      Name: "Service"
                    - Value: "eks:pet-clinic-slo-canary/default"
                      Name: "Environment"
                  Namespace: "ApplicationSignals"
                Stat: "SampleCount"
                Unit: "Milliseconds"
              Id: "totalCount"
              ReturnData: false
            - Id: "totalCountFinal"
              ReturnData: true
              Expression: "totalCount * 1" 
          MonitoredRequestCountMetric:
            GoodCountMetric:
              - MetricStat:
                  Period: 60
                  Metric:
                    MetricName: "Latency"
                    Dimensions:
                      - Value: "Operation-1"
                        Name: "Operation"
                      - Value: "TestServiceForCloudFormation-1"
                        Name: "Service"
                      - Value: "eks:pet-clinic-slo-canary/default"
                        Name: "Environment"
                    Namespace: "ApplicationSignals"
                  Stat: "SampleCount"
                  Unit: "Milliseconds"
                Id: "goodCount"
                ReturnData: false
              - Id: "goodCountFinal"
                ReturnData: true
                Expression: "goodCount - 1"
      Goal:
        Interval:
          RollingInterval:
            DurationUnit: "DAY"
            Duration: 1
        AttainmentGoal: 90.0
        WarningThreshold: 80.0
```

# AWS::ApplicationSignals::ServiceLevelObjective BurnRateConfiguration
<a name="aws-properties-applicationsignals-servicelevelobjective-burnrateconfiguration"></a>

This object defines the length of the look-back window used to calculate one burn rate metric for this SLO. The burn rate measures how fast the service is consuming the error budget, relative to the attainment goal of the SLO. A burn rate of exactly 1 indicates that the SLO goal will be met exactly.

For example, if you specify 60 as the number of minutes in the look-back window, the burn rate is calculated as the following:

 *burn rate = error rate over the look-back window / (100% - attainment goal percentage)* 

For more information about burn rates, see [Calculate burn rates](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-ServiceLevelObjectives.html#CloudWatch-ServiceLevelObjectives-burn).

## Syntax
<a name="aws-properties-applicationsignals-servicelevelobjective-burnrateconfiguration-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-applicationsignals-servicelevelobjective-burnrateconfiguration-syntax.json"></a>

```
{
  "[LookBackWindowMinutes](#cfn-applicationsignals-servicelevelobjective-burnrateconfiguration-lookbackwindowminutes)" : Integer
}
```

### YAML
<a name="aws-properties-applicationsignals-servicelevelobjective-burnrateconfiguration-syntax.yaml"></a>

```
  [LookBackWindowMinutes](#cfn-applicationsignals-servicelevelobjective-burnrateconfiguration-lookbackwindowminutes): Integer
```

## Properties
<a name="aws-properties-applicationsignals-servicelevelobjective-burnrateconfiguration-properties"></a>

`LookBackWindowMinutes`  <a name="cfn-applicationsignals-servicelevelobjective-burnrateconfiguration-lookbackwindowminutes"></a>
The number of minutes to use as the look-back window.  
*Required*: Yes  
*Type*: Integer  
*Minimum*: `1`  
*Maximum*: `10080`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::ApplicationSignals::ServiceLevelObjective CalendarInterval
<a name="aws-properties-applicationsignals-servicelevelobjective-calendarinterval"></a>

If the interval for this service level objective is a calendar interval, this structure contains the interval specifications.

## Syntax
<a name="aws-properties-applicationsignals-servicelevelobjective-calendarinterval-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-applicationsignals-servicelevelobjective-calendarinterval-syntax.json"></a>

```
{
  "[Duration](#cfn-applicationsignals-servicelevelobjective-calendarinterval-duration)" : Integer,
  "[DurationUnit](#cfn-applicationsignals-servicelevelobjective-calendarinterval-durationunit)" : String,
  "[StartTime](#cfn-applicationsignals-servicelevelobjective-calendarinterval-starttime)" : Integer
}
```

### YAML
<a name="aws-properties-applicationsignals-servicelevelobjective-calendarinterval-syntax.yaml"></a>

```
  [Duration](#cfn-applicationsignals-servicelevelobjective-calendarinterval-duration): Integer
  [DurationUnit](#cfn-applicationsignals-servicelevelobjective-calendarinterval-durationunit): String
  [StartTime](#cfn-applicationsignals-servicelevelobjective-calendarinterval-starttime): Integer
```

## Properties
<a name="aws-properties-applicationsignals-servicelevelobjective-calendarinterval-properties"></a>

`Duration`  <a name="cfn-applicationsignals-servicelevelobjective-calendarinterval-duration"></a>
Specifies the duration of each calendar interval. For example, if `Duration` is `1` and `DurationUnit` is `MONTH`, each interval is one month, aligned with the calendar.  
*Required*: Yes  
*Type*: Integer  
*Minimum*: `1`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`DurationUnit`  <a name="cfn-applicationsignals-servicelevelobjective-calendarinterval-durationunit"></a>
Specifies the calendar interval unit.  
*Required*: Yes  
*Type*: String  
*Allowed values*: `MINUTE | HOUR | DAY | MONTH`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`StartTime`  <a name="cfn-applicationsignals-servicelevelobjective-calendarinterval-starttime"></a>
The date and time when you want the first interval to start. Be sure to choose a time that configures the intervals the way that you want. For example, if you want weekly intervals starting on Mondays at 6 a.m., be sure to specify a start time that is a Monday at 6 a.m.  
When used in a raw HTTP Query API, it is formatted as be epoch time in seconds. For example: `1698778057`  
As soon as one calendar interval ends, another automatically begins.  
*Required*: Yes  
*Type*: Integer  
*Minimum*: `946684800`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::ApplicationSignals::ServiceLevelObjective DependencyConfig
<a name="aws-properties-applicationsignals-servicelevelobjective-dependencyconfig"></a>

Identifies the dependency using the `DependencyKeyAttributes` and `DependencyOperationName`.

## Syntax
<a name="aws-properties-applicationsignals-servicelevelobjective-dependencyconfig-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-applicationsignals-servicelevelobjective-dependencyconfig-syntax.json"></a>

```
{
  "[DependencyKeyAttributes](#cfn-applicationsignals-servicelevelobjective-dependencyconfig-dependencykeyattributes)" : String,
  "[DependencyOperationName](#cfn-applicationsignals-servicelevelobjective-dependencyconfig-dependencyoperationname)" : String
}
```

### YAML
<a name="aws-properties-applicationsignals-servicelevelobjective-dependencyconfig-syntax.yaml"></a>

```
  [DependencyKeyAttributes](#cfn-applicationsignals-servicelevelobjective-dependencyconfig-dependencykeyattributes): String
  [DependencyOperationName](#cfn-applicationsignals-servicelevelobjective-dependencyconfig-dependencyoperationname): String
```

## Properties
<a name="aws-properties-applicationsignals-servicelevelobjective-dependencyconfig-properties"></a>

`DependencyKeyAttributes`  <a name="cfn-applicationsignals-servicelevelobjective-dependencyconfig-dependencykeyattributes"></a>
If this SLO is related to a metric collected by Application Signals, you must use this field to specify which dependency the SLO metric is related to.  
+ `Type` designates the type of object this is.
+ `ResourceType` specifies the type of the resource. This field is used only when the value of the `Type` field is `Resource` or `AWS::Resource`.
+ `Name` specifies the name of the object. This is used only if the value of the `Type` field is `Service`, `RemoteService`, or `AWS::Service`.
+ `Identifier` identifies the resource objects of this resource. This is used only if the value of the `Type` field is `Resource` or `AWS::Resource`.
+ `Environment` specifies the location where this object is hosted, or what it belongs to.
*Required*: Yes  
*Type*: String  
*Pattern*: `^.+$`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`DependencyOperationName`  <a name="cfn-applicationsignals-servicelevelobjective-dependencyconfig-dependencyoperationname"></a>
When the SLO monitors a specific operation of the dependency, this field specifies the name of that operation in the dependency.   
*Required*: Yes  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `255`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::ApplicationSignals::ServiceLevelObjective Dimension
<a name="aws-properties-applicationsignals-servicelevelobjective-dimension"></a>

A dimension is a name/value pair that is part of the identity of a metric. Because dimensions are part of the unique identifier for a metric, whenever you add a unique name/value pair to one of your metrics, you are creating a new variation of that metric. For example, many Amazon EC2 metrics publish `InstanceId` as a dimension name, and the actual instance ID as the value for that dimension.

You can assign up to 30 dimensions to a metric.

## Syntax
<a name="aws-properties-applicationsignals-servicelevelobjective-dimension-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-applicationsignals-servicelevelobjective-dimension-syntax.json"></a>

```
{
  "[Name](#cfn-applicationsignals-servicelevelobjective-dimension-name)" : String,
  "[Value](#cfn-applicationsignals-servicelevelobjective-dimension-value)" : String
}
```

### YAML
<a name="aws-properties-applicationsignals-servicelevelobjective-dimension-syntax.yaml"></a>

```
  [Name](#cfn-applicationsignals-servicelevelobjective-dimension-name): String
  [Value](#cfn-applicationsignals-servicelevelobjective-dimension-value): String
```

## Properties
<a name="aws-properties-applicationsignals-servicelevelobjective-dimension-properties"></a>

`Name`  <a name="cfn-applicationsignals-servicelevelobjective-dimension-name"></a>
The name of the dimension. Dimension names must contain only ASCII characters, must include at least one non-whitespace character, and cannot start with a colon (`:`). ASCII control characters are not supported as part of dimension names.  
*Required*: Yes  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `255`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Value`  <a name="cfn-applicationsignals-servicelevelobjective-dimension-value"></a>
The value of the dimension. Dimension values must contain only ASCII characters and must include at least one non-whitespace character. ASCII control characters are not supported as part of dimension values.  
*Required*: Yes  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `1024`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::ApplicationSignals::ServiceLevelObjective ExclusionWindow
<a name="aws-properties-applicationsignals-servicelevelobjective-exclusionwindow"></a>

The time window to be excluded from the SLO performance metrics.

## Syntax
<a name="aws-properties-applicationsignals-servicelevelobjective-exclusionwindow-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-applicationsignals-servicelevelobjective-exclusionwindow-syntax.json"></a>

```
{
  "[Reason](#cfn-applicationsignals-servicelevelobjective-exclusionwindow-reason)" : String,
  "[RecurrenceRule](#cfn-applicationsignals-servicelevelobjective-exclusionwindow-recurrencerule)" : RecurrenceRule,
  "[StartTime](#cfn-applicationsignals-servicelevelobjective-exclusionwindow-starttime)" : String,
  "[Window](#cfn-applicationsignals-servicelevelobjective-exclusionwindow-window)" : Window
}
```

### YAML
<a name="aws-properties-applicationsignals-servicelevelobjective-exclusionwindow-syntax.yaml"></a>

```
  [Reason](#cfn-applicationsignals-servicelevelobjective-exclusionwindow-reason): String
  [RecurrenceRule](#cfn-applicationsignals-servicelevelobjective-exclusionwindow-recurrencerule): 
    RecurrenceRule
  [StartTime](#cfn-applicationsignals-servicelevelobjective-exclusionwindow-starttime): String
  [Window](#cfn-applicationsignals-servicelevelobjective-exclusionwindow-window): 
    Window
```

## Properties
<a name="aws-properties-applicationsignals-servicelevelobjective-exclusionwindow-properties"></a>

`Reason`  <a name="cfn-applicationsignals-servicelevelobjective-exclusionwindow-reason"></a>
The reason for the time exclusion windows. For example, maintenance.  
*Required*: No  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `1024`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`RecurrenceRule`  <a name="cfn-applicationsignals-servicelevelobjective-exclusionwindow-recurrencerule"></a>
The recurrence rule for the time exclusion window.  
*Required*: No  
*Type*: [RecurrenceRule](aws-properties-applicationsignals-servicelevelobjective-recurrencerule.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`StartTime`  <a name="cfn-applicationsignals-servicelevelobjective-exclusionwindow-starttime"></a>
The start time of the time exclusion window.  
*Required*: No  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Window`  <a name="cfn-applicationsignals-servicelevelobjective-exclusionwindow-window"></a>
The time exclusion window.  
*Required*: Yes  
*Type*: [Window](aws-properties-applicationsignals-servicelevelobjective-window.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::ApplicationSignals::ServiceLevelObjective Goal
<a name="aws-properties-applicationsignals-servicelevelobjective-goal"></a>

This structure contains the attributes that determine the goal of an SLO. This includes the time period for evaluation and the attainment threshold.

## Syntax
<a name="aws-properties-applicationsignals-servicelevelobjective-goal-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-applicationsignals-servicelevelobjective-goal-syntax.json"></a>

```
{
  "[AttainmentGoal](#cfn-applicationsignals-servicelevelobjective-goal-attainmentgoal)" : Number,
  "[Interval](#cfn-applicationsignals-servicelevelobjective-goal-interval)" : Interval,
  "[WarningThreshold](#cfn-applicationsignals-servicelevelobjective-goal-warningthreshold)" : Number
}
```

### YAML
<a name="aws-properties-applicationsignals-servicelevelobjective-goal-syntax.yaml"></a>

```
  [AttainmentGoal](#cfn-applicationsignals-servicelevelobjective-goal-attainmentgoal): Number
  [Interval](#cfn-applicationsignals-servicelevelobjective-goal-interval): 
    Interval
  [WarningThreshold](#cfn-applicationsignals-servicelevelobjective-goal-warningthreshold): Number
```

## Properties
<a name="aws-properties-applicationsignals-servicelevelobjective-goal-properties"></a>

`AttainmentGoal`  <a name="cfn-applicationsignals-servicelevelobjective-goal-attainmentgoal"></a>
The threshold that determines if the goal is being met.  
If this is a period-based SLO, the attainment goal is the percentage of good periods that meet the threshold requirements to the total periods within the interval. For example, an attainment goal of 99.9% means that within your interval, you are targeting 99.9% of the periods to be in healthy state.  
If this is a request-based SLO, the attainment goal is the percentage of requests that must be successful to meet the attainment goal.  
If you omit this parameter, 99 is used to represent 99% as the attainment goal.  
*Required*: No  
*Type*: Number  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Interval`  <a name="cfn-applicationsignals-servicelevelobjective-goal-interval"></a>
The time period used to evaluate the SLO. It can be either a calendar interval or rolling interval.  
If you omit this parameter, a rolling interval of 7 days is used.  
*Required*: No  
*Type*: [Interval](aws-properties-applicationsignals-servicelevelobjective-interval.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`WarningThreshold`  <a name="cfn-applicationsignals-servicelevelobjective-goal-warningthreshold"></a>
The percentage of remaining budget over total budget that you want to get warnings for. If you omit this parameter, the default of 50.0 is used.   
*Required*: No  
*Type*: Number  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::ApplicationSignals::ServiceLevelObjective Interval
<a name="aws-properties-applicationsignals-servicelevelobjective-interval"></a>

The time period used to evaluate the SLO. It can be either a calendar interval or rolling interval.

## Syntax
<a name="aws-properties-applicationsignals-servicelevelobjective-interval-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-applicationsignals-servicelevelobjective-interval-syntax.json"></a>

```
{
  "[CalendarInterval](#cfn-applicationsignals-servicelevelobjective-interval-calendarinterval)" : CalendarInterval,
  "[RollingInterval](#cfn-applicationsignals-servicelevelobjective-interval-rollinginterval)" : RollingInterval
}
```

### YAML
<a name="aws-properties-applicationsignals-servicelevelobjective-interval-syntax.yaml"></a>

```
  [CalendarInterval](#cfn-applicationsignals-servicelevelobjective-interval-calendarinterval): 
    CalendarInterval
  [RollingInterval](#cfn-applicationsignals-servicelevelobjective-interval-rollinginterval): 
    RollingInterval
```

## Properties
<a name="aws-properties-applicationsignals-servicelevelobjective-interval-properties"></a>

`CalendarInterval`  <a name="cfn-applicationsignals-servicelevelobjective-interval-calendarinterval"></a>
If the interval is a calendar interval, this structure contains the interval specifications.  
*Required*: No  
*Type*: [CalendarInterval](aws-properties-applicationsignals-servicelevelobjective-calendarinterval.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`RollingInterval`  <a name="cfn-applicationsignals-servicelevelobjective-interval-rollinginterval"></a>
If the interval is a rolling interval, this structure contains the interval specifications.  
*Required*: No  
*Type*: [RollingInterval](aws-properties-applicationsignals-servicelevelobjective-rollinginterval.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::ApplicationSignals::ServiceLevelObjective Metric
<a name="aws-properties-applicationsignals-servicelevelobjective-metric"></a>

This structure defines the metric used for a service level indicator, including the metric name, namespace, and dimensions

## Syntax
<a name="aws-properties-applicationsignals-servicelevelobjective-metric-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-applicationsignals-servicelevelobjective-metric-syntax.json"></a>

```
{
  "[Dimensions](#cfn-applicationsignals-servicelevelobjective-metric-dimensions)" : [ Dimension, ... ],
  "[MetricName](#cfn-applicationsignals-servicelevelobjective-metric-metricname)" : String,
  "[Namespace](#cfn-applicationsignals-servicelevelobjective-metric-namespace)" : String
}
```

### YAML
<a name="aws-properties-applicationsignals-servicelevelobjective-metric-syntax.yaml"></a>

```
  [Dimensions](#cfn-applicationsignals-servicelevelobjective-metric-dimensions): 
    - Dimension
  [MetricName](#cfn-applicationsignals-servicelevelobjective-metric-metricname): String
  [Namespace](#cfn-applicationsignals-servicelevelobjective-metric-namespace): String
```

## Properties
<a name="aws-properties-applicationsignals-servicelevelobjective-metric-properties"></a>

`Dimensions`  <a name="cfn-applicationsignals-servicelevelobjective-metric-dimensions"></a>
An array of one or more dimensions to use to define the metric that you want to use. For more information, see [Dimensions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Dimension).  
*Required*: No  
*Type*: Array of [Dimension](aws-properties-applicationsignals-servicelevelobjective-dimension.md)  
*Minimum*: `0`  
*Maximum*: `30`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`MetricName`  <a name="cfn-applicationsignals-servicelevelobjective-metric-metricname"></a>
The name of the metric to use.  
*Required*: No  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `255`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Namespace`  <a name="cfn-applicationsignals-servicelevelobjective-metric-namespace"></a>
The namespace of the metric. For more information, see [Namespaces](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Namespace).  
*Required*: No  
*Type*: String  
*Pattern*: `.*[^:].*`  
*Minimum*: `1`  
*Maximum*: `255`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::ApplicationSignals::ServiceLevelObjective MetricDataQuery
<a name="aws-properties-applicationsignals-servicelevelobjective-metricdataquery"></a>

Use this structure to define a metric or metric math expression that you want to use as for a service level objective. 

Each `MetricDataQuery` in the `MetricDataQueries` array specifies either a metric to retrieve, or a metric math expression to be performed on retrieved metrics. A single `MetricDataQueries` array can include as many as 20 `MetricDataQuery` structures in the array. The 20 structures can include as many as 10 structures that contain a `MetricStat` parameter to retrieve a metric, and as many as 10 structures that contain the `Expression` parameter to perform a math expression. Of those `Expression` structures, exactly one must have true as the value for `ReturnData`. The result of this expression used for the SLO.

For more information about metric math expressions, see [Use metric math](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html).

Within each `MetricDataQuery` object, you must specify either `Expression` or `MetricStat` but not both.

## Syntax
<a name="aws-properties-applicationsignals-servicelevelobjective-metricdataquery-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-applicationsignals-servicelevelobjective-metricdataquery-syntax.json"></a>

```
{
  "[AccountId](#cfn-applicationsignals-servicelevelobjective-metricdataquery-accountid)" : String,
  "[Expression](#cfn-applicationsignals-servicelevelobjective-metricdataquery-expression)" : String,
  "[Id](#cfn-applicationsignals-servicelevelobjective-metricdataquery-id)" : String,
  "[MetricStat](#cfn-applicationsignals-servicelevelobjective-metricdataquery-metricstat)" : MetricStat,
  "[ReturnData](#cfn-applicationsignals-servicelevelobjective-metricdataquery-returndata)" : Boolean
}
```

### YAML
<a name="aws-properties-applicationsignals-servicelevelobjective-metricdataquery-syntax.yaml"></a>

```
  [AccountId](#cfn-applicationsignals-servicelevelobjective-metricdataquery-accountid): String
  [Expression](#cfn-applicationsignals-servicelevelobjective-metricdataquery-expression): String
  [Id](#cfn-applicationsignals-servicelevelobjective-metricdataquery-id): String
  [MetricStat](#cfn-applicationsignals-servicelevelobjective-metricdataquery-metricstat): 
    MetricStat
  [ReturnData](#cfn-applicationsignals-servicelevelobjective-metricdataquery-returndata): Boolean
```

## Properties
<a name="aws-properties-applicationsignals-servicelevelobjective-metricdataquery-properties"></a>

`AccountId`  <a name="cfn-applicationsignals-servicelevelobjective-metricdataquery-accountid"></a>
The ID of the account where this metric is located. If you are performing this operation in a monitoring account, use this to specify which source account to retrieve this metric from.  
*Required*: No  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `255`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Expression`  <a name="cfn-applicationsignals-servicelevelobjective-metricdataquery-expression"></a>
This field can contain a metric math expression to be performed on the other metrics that you are retrieving within this `MetricDataQueries` structure.   
A math expression can use the `Id` of the other metrics or queries to refer to those metrics, and can also use the `Id` of other expressions to use the result of those expressions. For more information about metric math expressions, see [Metric Math Syntax and Functions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax) in the *Amazon CloudWatch User Guide*.  
Within each `MetricDataQuery` object, you must specify either `Expression` or `MetricStat` but not both.  
*Required*: No  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `2048`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Id`  <a name="cfn-applicationsignals-servicelevelobjective-metricdataquery-id"></a>
A short name used to tie this object to the results in the response. This `Id` must be unique within a `MetricDataQueries` array. If you are performing math expressions on this set of data, this name represents that data and can serve as a variable in the metric math expression. The valid characters are letters, numbers, and underscore. The first character must be a lowercase letter.  
*Required*: Yes  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `255`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`MetricStat`  <a name="cfn-applicationsignals-servicelevelobjective-metricdataquery-metricstat"></a>
A metric to be used directly for the SLO, or to be used in the math expression that will be used for the SLO.  
Within one `MetricDataQuery` object, you must specify either `Expression` or `MetricStat` but not both.  
*Required*: No  
*Type*: [MetricStat](aws-properties-applicationsignals-servicelevelobjective-metricstat.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`ReturnData`  <a name="cfn-applicationsignals-servicelevelobjective-metricdataquery-returndata"></a>
Use this only if you are using a metric math expression for the SLO. Specify `true` for `ReturnData` for only the one expression result to use as the alarm. For all other metrics and expressions in the same `CreateServiceLevelObjective` operation, specify `ReturnData` as `false`.  
*Required*: No  
*Type*: Boolean  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::ApplicationSignals::ServiceLevelObjective MetricStat
<a name="aws-properties-applicationsignals-servicelevelobjective-metricstat"></a>

This structure defines the metric to be used as the service level indicator, along with the statistics, period, and unit.

## Syntax
<a name="aws-properties-applicationsignals-servicelevelobjective-metricstat-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-applicationsignals-servicelevelobjective-metricstat-syntax.json"></a>

```
{
  "[Metric](#cfn-applicationsignals-servicelevelobjective-metricstat-metric)" : Metric,
  "[Period](#cfn-applicationsignals-servicelevelobjective-metricstat-period)" : Integer,
  "[Stat](#cfn-applicationsignals-servicelevelobjective-metricstat-stat)" : String,
  "[Unit](#cfn-applicationsignals-servicelevelobjective-metricstat-unit)" : String
}
```

### YAML
<a name="aws-properties-applicationsignals-servicelevelobjective-metricstat-syntax.yaml"></a>

```
  [Metric](#cfn-applicationsignals-servicelevelobjective-metricstat-metric): 
    Metric
  [Period](#cfn-applicationsignals-servicelevelobjective-metricstat-period): Integer
  [Stat](#cfn-applicationsignals-servicelevelobjective-metricstat-stat): String
  [Unit](#cfn-applicationsignals-servicelevelobjective-metricstat-unit): String
```

## Properties
<a name="aws-properties-applicationsignals-servicelevelobjective-metricstat-properties"></a>

`Metric`  <a name="cfn-applicationsignals-servicelevelobjective-metricstat-metric"></a>
The metric to use as the service level indicator, including the metric name, namespace, and dimensions.  
*Required*: Yes  
*Type*: [Metric](aws-properties-applicationsignals-servicelevelobjective-metric.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Period`  <a name="cfn-applicationsignals-servicelevelobjective-metricstat-period"></a>
The granularity, in seconds, to be used for the metric. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a `PutMetricData` call that includes a `StorageResolution` of 1 second.  
*Required*: Yes  
*Type*: Integer  
*Minimum*: `1`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Stat`  <a name="cfn-applicationsignals-servicelevelobjective-metricstat-stat"></a>
The statistic to use for comparison to the threshold. It can be any CloudWatch statistic or extended statistic. For more information about statistics, see [CloudWatch statistics definitions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html).  
*Required*: Yes  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Unit`  <a name="cfn-applicationsignals-servicelevelobjective-metricstat-unit"></a>
If you omit `Unit` then all data that was collected with any unit is returned, along with the corresponding units that were specified when the data was reported to CloudWatch. If you specify a unit, the operation returns only data that was collected with that unit specified. If you specify a unit that does not match the data collected, the results of the operation are null. CloudWatch does not perform unit conversions.  
*Required*: No  
*Type*: String  
*Allowed values*: `Microseconds | Milliseconds | Seconds | Bytes | Kilobytes | Megabytes | Gigabytes | Terabytes | Bits | Kilobits | Megabits | Gigabits | Terabits | Percent | Count | Bytes/Second | Kilobytes/Second | Megabytes/Second | Gigabytes/Second | Terabytes/Second | Bits/Second | Kilobits/Second | Megabits/Second | Gigabits/Second | Terabits/Second | Count/Second | None`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::ApplicationSignals::ServiceLevelObjective MonitoredRequestCountMetric
<a name="aws-properties-applicationsignals-servicelevelobjective-monitoredrequestcountmetric"></a>

This structure defines the metric that is used as the "good request" or "bad request" value for a request-based SLO. This value observed for the metric defined in `TotalRequestCountMetric` is divided by the number found for `MonitoredRequestCountMetric` to determine the percentage of successful requests that this SLO tracks.

## Syntax
<a name="aws-properties-applicationsignals-servicelevelobjective-monitoredrequestcountmetric-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-applicationsignals-servicelevelobjective-monitoredrequestcountmetric-syntax.json"></a>

```
{
  "[BadCountMetric](#cfn-applicationsignals-servicelevelobjective-monitoredrequestcountmetric-badcountmetric)" : [ MetricDataQuery, ... ],
  "[GoodCountMetric](#cfn-applicationsignals-servicelevelobjective-monitoredrequestcountmetric-goodcountmetric)" : [ MetricDataQuery, ... ]
}
```

### YAML
<a name="aws-properties-applicationsignals-servicelevelobjective-monitoredrequestcountmetric-syntax.yaml"></a>

```
  [BadCountMetric](#cfn-applicationsignals-servicelevelobjective-monitoredrequestcountmetric-badcountmetric): 
    - MetricDataQuery
  [GoodCountMetric](#cfn-applicationsignals-servicelevelobjective-monitoredrequestcountmetric-goodcountmetric): 
    - MetricDataQuery
```

## Properties
<a name="aws-properties-applicationsignals-servicelevelobjective-monitoredrequestcountmetric-properties"></a>

`BadCountMetric`  <a name="cfn-applicationsignals-servicelevelobjective-monitoredrequestcountmetric-badcountmetric"></a>
If you want to count "bad requests" to determine the percentage of successful requests for this request-based SLO, specify the metric to use as "bad requests" in this structure.  
*Required*: No  
*Type*: Array of [MetricDataQuery](aws-properties-applicationsignals-servicelevelobjective-metricdataquery.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`GoodCountMetric`  <a name="cfn-applicationsignals-servicelevelobjective-monitoredrequestcountmetric-goodcountmetric"></a>
If you want to count "good requests" to determine the percentage of successful requests for this request-based SLO, specify the metric to use as "good requests" in this structure.  
*Required*: No  
*Type*: Array of [MetricDataQuery](aws-properties-applicationsignals-servicelevelobjective-metricdataquery.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::ApplicationSignals::ServiceLevelObjective RecurrenceRule
<a name="aws-properties-applicationsignals-servicelevelobjective-recurrencerule"></a>

The recurrence rule for the time exclusion window.

## Syntax
<a name="aws-properties-applicationsignals-servicelevelobjective-recurrencerule-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-applicationsignals-servicelevelobjective-recurrencerule-syntax.json"></a>

```
{
  "[Expression](#cfn-applicationsignals-servicelevelobjective-recurrencerule-expression)" : String
}
```

### YAML
<a name="aws-properties-applicationsignals-servicelevelobjective-recurrencerule-syntax.yaml"></a>

```
  [Expression](#cfn-applicationsignals-servicelevelobjective-recurrencerule-expression): String
```

## Properties
<a name="aws-properties-applicationsignals-servicelevelobjective-recurrencerule-properties"></a>

`Expression`  <a name="cfn-applicationsignals-servicelevelobjective-recurrencerule-expression"></a>
The following two rules are supported:  
+ rate(value unit) - The value must be a positive integer and the unit can be hour\$1day\$1month.
+ cron - An expression which consists of six fields separated by white spaces: (minutes hours day\$1of\$1month month day\$1of\$1week year).
*Required*: Yes  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `1024`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::ApplicationSignals::ServiceLevelObjective RequestBasedSli
<a name="aws-properties-applicationsignals-servicelevelobjective-requestbasedsli"></a>

This structure contains information about the performance metric that a request-based SLO monitors.

## Syntax
<a name="aws-properties-applicationsignals-servicelevelobjective-requestbasedsli-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-applicationsignals-servicelevelobjective-requestbasedsli-syntax.json"></a>

```
{
  "[ComparisonOperator](#cfn-applicationsignals-servicelevelobjective-requestbasedsli-comparisonoperator)" : String,
  "[MetricThreshold](#cfn-applicationsignals-servicelevelobjective-requestbasedsli-metricthreshold)" : Number,
  "[RequestBasedSliMetric](#cfn-applicationsignals-servicelevelobjective-requestbasedsli-requestbasedslimetric)" : RequestBasedSliMetric
}
```

### YAML
<a name="aws-properties-applicationsignals-servicelevelobjective-requestbasedsli-syntax.yaml"></a>

```
  [ComparisonOperator](#cfn-applicationsignals-servicelevelobjective-requestbasedsli-comparisonoperator): String
  [MetricThreshold](#cfn-applicationsignals-servicelevelobjective-requestbasedsli-metricthreshold): Number
  [RequestBasedSliMetric](#cfn-applicationsignals-servicelevelobjective-requestbasedsli-requestbasedslimetric): 
    RequestBasedSliMetric
```

## Properties
<a name="aws-properties-applicationsignals-servicelevelobjective-requestbasedsli-properties"></a>

`ComparisonOperator`  <a name="cfn-applicationsignals-servicelevelobjective-requestbasedsli-comparisonoperator"></a>
The arithmetic operation used when comparing the specified metric to the threshold.  
*Required*: No  
*Type*: String  
*Allowed values*: `GreaterThanOrEqualTo | LessThanOrEqualTo | LessThan | GreaterThan`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`MetricThreshold`  <a name="cfn-applicationsignals-servicelevelobjective-requestbasedsli-metricthreshold"></a>
This value is the threshold that the observed metric values of the SLI metric are compared to.  
*Required*: No  
*Type*: Number  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`RequestBasedSliMetric`  <a name="cfn-applicationsignals-servicelevelobjective-requestbasedsli-requestbasedslimetric"></a>
A structure that contains information about the metric that the SLO monitors.   
*Required*: Yes  
*Type*: [RequestBasedSliMetric](aws-properties-applicationsignals-servicelevelobjective-requestbasedslimetric.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::ApplicationSignals::ServiceLevelObjective RequestBasedSliMetric
<a name="aws-properties-applicationsignals-servicelevelobjective-requestbasedslimetric"></a>

This structure contains the information about the metric that is used for a request-based SLO.

## Syntax
<a name="aws-properties-applicationsignals-servicelevelobjective-requestbasedslimetric-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-applicationsignals-servicelevelobjective-requestbasedslimetric-syntax.json"></a>

```
{
  "[DependencyConfig](#cfn-applicationsignals-servicelevelobjective-requestbasedslimetric-dependencyconfig)" : DependencyConfig,
  "[KeyAttributes](#cfn-applicationsignals-servicelevelobjective-requestbasedslimetric-keyattributes)" : String,
  "[MetricType](#cfn-applicationsignals-servicelevelobjective-requestbasedslimetric-metrictype)" : String,
  "[MonitoredRequestCountMetric](#cfn-applicationsignals-servicelevelobjective-requestbasedslimetric-monitoredrequestcountmetric)" : MonitoredRequestCountMetric,
  "[OperationName](#cfn-applicationsignals-servicelevelobjective-requestbasedslimetric-operationname)" : String,
  "[TotalRequestCountMetric](#cfn-applicationsignals-servicelevelobjective-requestbasedslimetric-totalrequestcountmetric)" : [ MetricDataQuery, ... ]
}
```

### YAML
<a name="aws-properties-applicationsignals-servicelevelobjective-requestbasedslimetric-syntax.yaml"></a>

```
  [DependencyConfig](#cfn-applicationsignals-servicelevelobjective-requestbasedslimetric-dependencyconfig): 
    DependencyConfig
  [KeyAttributes](#cfn-applicationsignals-servicelevelobjective-requestbasedslimetric-keyattributes): String
  [MetricType](#cfn-applicationsignals-servicelevelobjective-requestbasedslimetric-metrictype): String
  [MonitoredRequestCountMetric](#cfn-applicationsignals-servicelevelobjective-requestbasedslimetric-monitoredrequestcountmetric): 
    MonitoredRequestCountMetric
  [OperationName](#cfn-applicationsignals-servicelevelobjective-requestbasedslimetric-operationname): String
  [TotalRequestCountMetric](#cfn-applicationsignals-servicelevelobjective-requestbasedslimetric-totalrequestcountmetric): 
    - MetricDataQuery
```

## Properties
<a name="aws-properties-applicationsignals-servicelevelobjective-requestbasedslimetric-properties"></a>

`DependencyConfig`  <a name="cfn-applicationsignals-servicelevelobjective-requestbasedslimetric-dependencyconfig"></a>
Identifies the dependency using the `DependencyKeyAttributes` and `DependencyOperationName`.  
*Required*: No  
*Type*: [DependencyConfig](aws-properties-applicationsignals-servicelevelobjective-dependencyconfig.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`KeyAttributes`  <a name="cfn-applicationsignals-servicelevelobjective-requestbasedslimetric-keyattributes"></a>
This is a string-to-string map that contains information about the type of object that this SLO is related to. It can include the following fields.  
+ `Type` designates the type of object that this SLO is related to.
+ `ResourceType` specifies the type of the resource. This field is used only when the value of the `Type` field is `Resource` or `AWS::Resource`.
+ `Name` specifies the name of the object. This is used only if the value of the `Type` field is `Service`, `RemoteService`, or `AWS::Service`.
+ `Identifier` identifies the resource objects of this resource. This is used only if the value of the `Type` field is `Resource` or `AWS::Resource`.
+ `Environment` specifies the location where this object is hosted, or what it belongs to.
+ `AwsAccountId` allows you to create an SLO for an object that exists in another account.
*Required*: No  
*Type*: String  
*Pattern*: `^.+$`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`MetricType`  <a name="cfn-applicationsignals-servicelevelobjective-requestbasedslimetric-metrictype"></a>
If the SLO monitors either the `LATENCY` or `AVAILABILITY` metric that Application Signals collects, this field displays which of those metrics is used.  
*Required*: No  
*Type*: String  
*Allowed values*: `LATENCY | AVAILABILITY`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`MonitoredRequestCountMetric`  <a name="cfn-applicationsignals-servicelevelobjective-requestbasedslimetric-monitoredrequestcountmetric"></a>
Use this structure to define the metric that you want to use as the "good request" or "bad request" value for a request-based SLO. This value observed for the metric defined in `TotalRequestCountMetric` will be divided by the number found for `MonitoredRequestCountMetric` to determine the percentage of successful requests that this SLO tracks.  
*Required*: No  
*Type*: [MonitoredRequestCountMetric](aws-properties-applicationsignals-servicelevelobjective-monitoredrequestcountmetric.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`OperationName`  <a name="cfn-applicationsignals-servicelevelobjective-requestbasedslimetric-operationname"></a>
If the SLO monitors a specific operation of the service, this field displays that operation name.  
*Required*: No  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `255`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`TotalRequestCountMetric`  <a name="cfn-applicationsignals-servicelevelobjective-requestbasedslimetric-totalrequestcountmetric"></a>
This structure defines the metric that is used as the "total requests" number for a request-based SLO. The number observed for this metric is divided by the number of "good requests" or "bad requests" that is observed for the metric defined in `MonitoredRequestCountMetric`.  
*Required*: No  
*Type*: Array of [MetricDataQuery](aws-properties-applicationsignals-servicelevelobjective-metricdataquery.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::ApplicationSignals::ServiceLevelObjective RollingInterval
<a name="aws-properties-applicationsignals-servicelevelobjective-rollinginterval"></a>

If the interval for this SLO is a rolling interval, this structure contains the interval specifications.

## Syntax
<a name="aws-properties-applicationsignals-servicelevelobjective-rollinginterval-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-applicationsignals-servicelevelobjective-rollinginterval-syntax.json"></a>

```
{
  "[Duration](#cfn-applicationsignals-servicelevelobjective-rollinginterval-duration)" : Integer,
  "[DurationUnit](#cfn-applicationsignals-servicelevelobjective-rollinginterval-durationunit)" : String
}
```

### YAML
<a name="aws-properties-applicationsignals-servicelevelobjective-rollinginterval-syntax.yaml"></a>

```
  [Duration](#cfn-applicationsignals-servicelevelobjective-rollinginterval-duration): Integer
  [DurationUnit](#cfn-applicationsignals-servicelevelobjective-rollinginterval-durationunit): String
```

## Properties
<a name="aws-properties-applicationsignals-servicelevelobjective-rollinginterval-properties"></a>

`Duration`  <a name="cfn-applicationsignals-servicelevelobjective-rollinginterval-duration"></a>
Specifies the duration of each rolling interval. For example, if `Duration` is `7` and `DurationUnit` is `DAY`, each rolling interval is seven days.  
*Required*: Yes  
*Type*: Integer  
*Minimum*: `1`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`DurationUnit`  <a name="cfn-applicationsignals-servicelevelobjective-rollinginterval-durationunit"></a>
Specifies the rolling interval unit.  
*Required*: Yes  
*Type*: String  
*Allowed values*: `MINUTE | HOUR | DAY | MONTH`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::ApplicationSignals::ServiceLevelObjective Sli
<a name="aws-properties-applicationsignals-servicelevelobjective-sli"></a>

This structure specifies the information about the service and the performance metric that an SLO is to monitor.

## Syntax
<a name="aws-properties-applicationsignals-servicelevelobjective-sli-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-applicationsignals-servicelevelobjective-sli-syntax.json"></a>

```
{
  "[ComparisonOperator](#cfn-applicationsignals-servicelevelobjective-sli-comparisonoperator)" : String,
  "[MetricThreshold](#cfn-applicationsignals-servicelevelobjective-sli-metricthreshold)" : Number,
  "[SliMetric](#cfn-applicationsignals-servicelevelobjective-sli-slimetric)" : SliMetric
}
```

### YAML
<a name="aws-properties-applicationsignals-servicelevelobjective-sli-syntax.yaml"></a>

```
  [ComparisonOperator](#cfn-applicationsignals-servicelevelobjective-sli-comparisonoperator): String
  [MetricThreshold](#cfn-applicationsignals-servicelevelobjective-sli-metricthreshold): Number
  [SliMetric](#cfn-applicationsignals-servicelevelobjective-sli-slimetric): 
    SliMetric
```

## Properties
<a name="aws-properties-applicationsignals-servicelevelobjective-sli-properties"></a>

`ComparisonOperator`  <a name="cfn-applicationsignals-servicelevelobjective-sli-comparisonoperator"></a>
The arithmetic operation to use when comparing the specified metric to the threshold.  
*Required*: Yes  
*Type*: String  
*Allowed values*: `GreaterThanOrEqualTo | LessThanOrEqualTo | LessThan | GreaterThan`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`MetricThreshold`  <a name="cfn-applicationsignals-servicelevelobjective-sli-metricthreshold"></a>
The value that the SLI metric is compared to.  
*Required*: Yes  
*Type*: Number  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`SliMetric`  <a name="cfn-applicationsignals-servicelevelobjective-sli-slimetric"></a>
Use this structure to specify the metric to be used for the SLO.  
*Required*: Yes  
*Type*: [SliMetric](aws-properties-applicationsignals-servicelevelobjective-slimetric.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::ApplicationSignals::ServiceLevelObjective SliMetric
<a name="aws-properties-applicationsignals-servicelevelobjective-slimetric"></a>

Use this structure to specify the metric to be used for the SLO.

## Syntax
<a name="aws-properties-applicationsignals-servicelevelobjective-slimetric-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-applicationsignals-servicelevelobjective-slimetric-syntax.json"></a>

```
{
  "[DependencyConfig](#cfn-applicationsignals-servicelevelobjective-slimetric-dependencyconfig)" : DependencyConfig,
  "[KeyAttributes](#cfn-applicationsignals-servicelevelobjective-slimetric-keyattributes)" : String,
  "[MetricDataQueries](#cfn-applicationsignals-servicelevelobjective-slimetric-metricdataqueries)" : [ MetricDataQuery, ... ],
  "[MetricType](#cfn-applicationsignals-servicelevelobjective-slimetric-metrictype)" : String,
  "[OperationName](#cfn-applicationsignals-servicelevelobjective-slimetric-operationname)" : String,
  "[PeriodSeconds](#cfn-applicationsignals-servicelevelobjective-slimetric-periodseconds)" : Integer,
  "[Statistic](#cfn-applicationsignals-servicelevelobjective-slimetric-statistic)" : String
}
```

### YAML
<a name="aws-properties-applicationsignals-servicelevelobjective-slimetric-syntax.yaml"></a>

```
  [DependencyConfig](#cfn-applicationsignals-servicelevelobjective-slimetric-dependencyconfig): 
    DependencyConfig
  [KeyAttributes](#cfn-applicationsignals-servicelevelobjective-slimetric-keyattributes): String
  [MetricDataQueries](#cfn-applicationsignals-servicelevelobjective-slimetric-metricdataqueries): 
    - MetricDataQuery
  [MetricType](#cfn-applicationsignals-servicelevelobjective-slimetric-metrictype): String
  [OperationName](#cfn-applicationsignals-servicelevelobjective-slimetric-operationname): String
  [PeriodSeconds](#cfn-applicationsignals-servicelevelobjective-slimetric-periodseconds): Integer
  [Statistic](#cfn-applicationsignals-servicelevelobjective-slimetric-statistic): String
```

## Properties
<a name="aws-properties-applicationsignals-servicelevelobjective-slimetric-properties"></a>

`DependencyConfig`  <a name="cfn-applicationsignals-servicelevelobjective-slimetric-dependencyconfig"></a>
Identifies the dependency using the `DependencyKeyAttributes` and `DependencyOperationName`.  
*Required*: No  
*Type*: [DependencyConfig](aws-properties-applicationsignals-servicelevelobjective-dependencyconfig.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`KeyAttributes`  <a name="cfn-applicationsignals-servicelevelobjective-slimetric-keyattributes"></a>
If this SLO is related to a metric collected by Application Signals, you must use this field to specify which service the SLO metric is related to. To do so, you must specify at least the `Type`, `Name`, and `Environment` attributes.  
This is a string-to-string map. It can include the following fields.  
+ `Type` designates the type of object this is.
+ `ResourceType` specifies the type of the resource. This field is used only when the value of the `Type` field is `Resource` or `AWS::Resource`.
+ `Name` specifies the name of the object. This is used only if the value of the `Type` field is `Service`, `RemoteService`, or `AWS::Service`.
+ `Identifier` identifies the resource objects of this resource. This is used only if the value of the `Type` field is `Resource` or `AWS::Resource`.
+ `Environment` specifies the location where this object is hosted, or what it belongs to.
*Required*: No  
*Type*: String  
*Pattern*: `^.+$`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`MetricDataQueries`  <a name="cfn-applicationsignals-servicelevelobjective-slimetric-metricdataqueries"></a>
If this SLO monitors a CloudWatch metric or the result of a CloudWatch metric math expression, use this structure to specify that metric or expression.   
*Required*: No  
*Type*: Array of [MetricDataQuery](aws-properties-applicationsignals-servicelevelobjective-metricdataquery.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`MetricType`  <a name="cfn-applicationsignals-servicelevelobjective-slimetric-metrictype"></a>
If the SLO is to monitor either the `LATENCY` or `AVAILABILITY` metric that Application Signals collects, use this field to specify which of those metrics is used.  
*Required*: No  
*Type*: String  
*Allowed values*: `LATENCY | AVAILABILITY`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`OperationName`  <a name="cfn-applicationsignals-servicelevelobjective-slimetric-operationname"></a>
If the SLO is to monitor a specific operation of the service, use this field to specify the name of that operation.  
*Required*: No  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `255`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`PeriodSeconds`  <a name="cfn-applicationsignals-servicelevelobjective-slimetric-periodseconds"></a>
The number of seconds to use as the period for SLO evaluation. Your application's performance is compared to the SLI during each period. For each period, the application is determined to have either achieved or not achieved the necessary performance.  
*Required*: No  
*Type*: Integer  
*Minimum*: `60`  
*Maximum*: `900`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Statistic`  <a name="cfn-applicationsignals-servicelevelobjective-slimetric-statistic"></a>
The statistic to use for comparison to the threshold. It can be any CloudWatch statistic or extended statistic. For more information about statistics, see [CloudWatch statistics definitions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html).  
*Required*: No  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `20`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::ApplicationSignals::ServiceLevelObjective Tag
<a name="aws-properties-applicationsignals-servicelevelobjective-tag"></a>

A key-value pair associated with a resource. Tags can help you organize and categorize your resources.

## Syntax
<a name="aws-properties-applicationsignals-servicelevelobjective-tag-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-applicationsignals-servicelevelobjective-tag-syntax.json"></a>

```
{
  "[Key](#cfn-applicationsignals-servicelevelobjective-tag-key)" : String,
  "[Value](#cfn-applicationsignals-servicelevelobjective-tag-value)" : String
}
```

### YAML
<a name="aws-properties-applicationsignals-servicelevelobjective-tag-syntax.yaml"></a>

```
  [Key](#cfn-applicationsignals-servicelevelobjective-tag-key): String
  [Value](#cfn-applicationsignals-servicelevelobjective-tag-value): String
```

## Properties
<a name="aws-properties-applicationsignals-servicelevelobjective-tag-properties"></a>

`Key`  <a name="cfn-applicationsignals-servicelevelobjective-tag-key"></a>
A string that you can use to assign a value. The combination of tag keys and values can help you organize and categorize your resources.  
*Required*: Yes  
*Type*: String  
*Pattern*: `^(?!aws:)[a-zA-Z+-=._:/]+$`  
*Minimum*: `1`  
*Maximum*: `128`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Value`  <a name="cfn-applicationsignals-servicelevelobjective-tag-value"></a>
The value for the specified tag key.  
*Required*: Yes  
*Type*: String  
*Minimum*: `0`  
*Maximum*: `256`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::ApplicationSignals::ServiceLevelObjective Window
<a name="aws-properties-applicationsignals-servicelevelobjective-window"></a>

The start and end time of the time exclusion window.

## Syntax
<a name="aws-properties-applicationsignals-servicelevelobjective-window-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-applicationsignals-servicelevelobjective-window-syntax.json"></a>

```
{
  "[Duration](#cfn-applicationsignals-servicelevelobjective-window-duration)" : Integer,
  "[DurationUnit](#cfn-applicationsignals-servicelevelobjective-window-durationunit)" : String
}
```

### YAML
<a name="aws-properties-applicationsignals-servicelevelobjective-window-syntax.yaml"></a>

```
  [Duration](#cfn-applicationsignals-servicelevelobjective-window-duration): Integer
  [DurationUnit](#cfn-applicationsignals-servicelevelobjective-window-durationunit): String
```

## Properties
<a name="aws-properties-applicationsignals-servicelevelobjective-window-properties"></a>

`Duration`  <a name="cfn-applicationsignals-servicelevelobjective-window-duration"></a>
The start and end time of the time exclusion window.  
*Required*: Yes  
*Type*: Integer  
*Minimum*: `1`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`DurationUnit`  <a name="cfn-applicationsignals-servicelevelobjective-window-durationunit"></a>
The unit of measurement to use during the time window exclusion.  
*Required*: Yes  
*Type*: String  
*Allowed values*: `MINUTE | HOUR | DAY | MONTH`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)