Skip to main content

service_level_objectives

Creates, updates, deletes or gets a service_level_objective resource or lists service_level_objectives in a region

Overview

Nameservice_level_objectives
TypeResource
DescriptionResource Type definition for AWS::ApplicationSignals::ServiceLevelObjective
Idawscc.applicationsignals.service_level_objectives

Fields

NameDatatypeDescription
arnstringThe ARN of this SLO.
namestringThe name of this SLO.
descriptionstringAn optional description for this SLO. Default is 'No description'
created_timeintegerEpoch time in seconds of the time that this SLO was created
last_updated_timeintegerEpoch time in seconds of the time that this SLO was most recently updated
sliobjectThis structure contains information about the performance metric that an SLO monitors.
request_based_sliobjectThis structure contains information about the performance metric that a request-based SLO monitors.
evaluation_typestringDisplays whether this is a period-based SLO or a request-based SLO.
goalobjectA structure that contains the attributes that determine the goal of the SLO. This includes the time period for evaluation and the attainment threshold.
tagsarrayThe list of tag keys and values associated with the resource you specified
burn_rate_configurationsarrayEach 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.
exclusion_windowsarrayEach object in this array defines a time exclusion window for this SLO. The time exclusion window is used to exclude breaching data points from affecting attainment rate, error budget, and burn rate metrics.
regionstringAWS region.

For more information, see AWS::ApplicationSignals::ServiceLevelObjective.

Methods

NameResourceAccessible byRequired Params
create_resourceservice_level_objectivesINSERTName, region
delete_resourceservice_level_objectivesDELETEIdentifier, region
update_resourceservice_level_objectivesUPDATEIdentifier, PatchDocument, region
list_resourcesservice_level_objectives_list_onlySELECTregion
get_resourceservice_level_objectivesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual service_level_objective.

SELECT
region,
arn,
name,
description,
created_time,
last_updated_time,
sli,
request_based_sli,
evaluation_type,
goal,
tags,
burn_rate_configurations,
exclusion_windows
FROM awscc.applicationsignals.service_level_objectives
WHERE
region = 'us-east-1' AND
Identifier = '{{ arn }}';

INSERT example

Use the following StackQL query and manifest file to create a new service_level_objective resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.applicationsignals.service_level_objectives (
Name,
region
)
SELECT
'{{ name }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a service_level_objective resource, using stack-deploy.

/*+ update */
UPDATE awscc.applicationsignals.service_level_objectives
SET PatchDocument = string('{{ {
"Description": description,
"Sli": sli,
"RequestBasedSli": request_based_sli,
"Goal": goal,
"Tags": tags,
"BurnRateConfigurations": burn_rate_configurations,
"ExclusionWindows": exclusion_windows
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.applicationsignals.service_level_objectives
WHERE
Identifier = '{{ arn }}' AND
region = 'us-east-1';

Permissions

To operate on the service_level_objectives resource, the following permissions are required:

application-signals:CreateServiceLevelObjective,
cloudwatch:GetMetricData,
application-signals:TagResource,
application-signals:GetServiceLevelObjective,
application-signals:ListTagsForResource,
iam:GetRole,
iam:CreateServiceLinkedRole,
application-signals:ListServiceLevelObjectiveExclusionWindows,
application-signals:BatchUpdateExclusionWindows