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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.applicationsignals.service_level_objectives
WHERE
Identifier = '{{ arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

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