Skip to main content

approved_origins

Creates, updates, deletes or gets an approved_origin resource or lists approved_origins in a region

Overview

Nameapproved_origins
TypeResource
DescriptionResource Type definition for AWS::Connect::ApprovedOrigin
Idaws.connect.approved_origins

Fields

NameDatatypeDescription
originstringDomain name to be added to the allowlist of instance
instance_idstringAmazon Connect instance identifier
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTOrigin, InstanceId, region
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all approved_origins in a region.

SELECT
region,
origin,
instance_id
FROM aws.connect.approved_origins
WHERE region = 'us-east-1';

Gets all properties from an individual approved_origin.

SELECT
region,
origin,
instance_id
FROM aws.connect.approved_origins
WHERE region = 'us-east-1' AND data__Identifier = '<InstanceId>|<Origin>';

INSERT example

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

/*+ create */
INSERT INTO aws.connect.approved_origins (
Origin,
InstanceId,
region
)
SELECT
'{{ Origin }}',
'{{ InstanceId }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.connect.approved_origins
WHERE data__Identifier = '<InstanceId|Origin>'
AND region = 'us-east-1';

Permissions

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

Create

connect:AssociateApprovedOrigin,
connect:ListApprovedOrigins

Read

connect:ListApprovedOrigins

Delete

connect:DisassociateApprovedOrigin,
connect:ListApprovedOrigins

List

connect:ListApprovedOrigins