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
Idaws.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.
regionstringAWS region.

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

Methods

NameAccessible byRequired Params
create_resourceINSERTName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all service_level_objectives in a region.

SELECT
region,
arn,
name,
description,
created_time,
last_updated_time,
sli,
request_based_sli,
evaluation_type,
goal,
tags,
burn_rate_configurations
FROM aws.applicationsignals.service_level_objectives
WHERE region = 'us-east-1';

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
FROM aws.applicationsignals.service_level_objectives
WHERE region = 'us-east-1' AND data__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 aws.applicationsignals.service_level_objectives (
Name,
region
)
SELECT
'{{ Name }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.applicationsignals.service_level_objectives
WHERE data__Identifier = '<Arn>'
AND region = 'us-east-1';

Permissions

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

Create

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

Read

application-signals:GetServiceLevelObjective,
application-signals:ListTagsForResource

Update

application-signals:UpdateServiceLevelObjective,
cloudwatch:GetMetricData,
application-signals:TagResource,
application-signals:UntagResource,
application-signals:GetServiceLevelObjective,
application-signals:ListTagsForResource

Delete

application-signals:DeleteServiceLevelObjective,
application-signals:UntagResource,
application-signals:GetServiceLevelObjective

List

application-signals:ListServiceLevelObjectives,
application-signals:ListTagsForResource