Skip to main content

links

Creates, updates, deletes or gets a link resource or lists links in a region

Overview

Namelinks
TypeResource
DescriptionDefinition of AWS::Oam::Link Resource Type
Idaws.oam.links

Fields

NameDatatypeDescription
arnstring
labelstring
label_templatestring
resource_typesarray
sink_identifierstring
link_configurationobject
tagsobjectTags to apply to the link
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTResourceTypes, SinkIdentifier, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all links in a region.

SELECT
region,
arn,
label,
label_template,
resource_types,
sink_identifier,
link_configuration,
tags
FROM aws.oam.links
WHERE region = 'us-east-1';

Gets all properties from an individual link.

SELECT
region,
arn,
label,
label_template,
resource_types,
sink_identifier,
link_configuration,
tags
FROM aws.oam.links
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';

INSERT example

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

/*+ create */
INSERT INTO aws.oam.links (
ResourceTypes,
SinkIdentifier,
region
)
SELECT
'{{ ResourceTypes }}',
'{{ SinkIdentifier }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

oam:CreateLink,
oam:GetLink,
cloudwatch:Link,
logs:Link,
xray:Link,
applicationinsights:Link,
internetmonitor:Link

Read

oam:GetLink

Update

oam:GetLink,
oam:UpdateLink,
cloudwatch:Link,
logs:Link,
xray:Link,
applicationinsights:Link,
internetmonitor:Link,
oam:TagResource,
oam:UntagResource

Delete

oam:DeleteLink,
oam:GetLink

List

oam:ListLinks