Skip to main content

sinks

Creates, updates, deletes or gets a sink resource or lists sinks in a region

Overview

Namesinks
TypeResource
DescriptionResource Type definition for AWS::Oam::Sink
Idaws.oam.sinks

Fields

NameDatatypeDescription
arnstringThe Amazon resource name (ARN) of the ObservabilityAccessManager Sink
namestringThe name of the ObservabilityAccessManager Sink.
policyobjectThe policy of this ObservabilityAccessManager Sink.
tagsobjectTags to apply to the sink
regionstringAWS region.

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 sinks in a region.

SELECT
region,
arn,
name,
policy,
tags
FROM aws.oam.sinks
WHERE region = 'us-east-1';

Gets all properties from an individual sink.

SELECT
region,
arn,
name,
policy,
tags
FROM aws.oam.sinks
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';

INSERT example

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

/*+ create */
INSERT INTO aws.oam.sinks (
Name,
region
)
SELECT
'{{ Name }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

oam:CreateSink,
oam:PutSinkPolicy,
oam:GetSinkPolicy,
oam:GetSink

Delete

oam:DeleteSink,
oam:GetSinkPolicy,
oam:GetSink

List

oam:ListSinks

Read

oam:GetSinkPolicy,
oam:GetSink

Update

oam:PutSinkPolicy,
oam:GetSinkPolicy,
oam:GetSink,
oam:TagResource,
oam:UntagResource