approved_origins
Creates, updates, deletes or gets an approved_origin
resource or lists approved_origins
in a region
Overview
Name | approved_origins |
Type | Resource |
Description | Resource Type definition for AWS::Connect::ApprovedOrigin |
Id | aws.connect.approved_origins |
Fields
Name | Datatype | Description |
---|---|---|
origin | string | Domain name to be added to the allowlist of instance |
instance_id | string | Amazon Connect instance identifier |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | Origin, InstanceId, region |
delete_resource | DELETE | data__Identifier, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.connect.approved_origins (
Origin,
InstanceId,
region
)
SELECT
'{{ Origin }}',
'{{ InstanceId }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.connect.approved_origins (
Origin,
InstanceId,
region
)
SELECT
'{{ Origin }}',
'{{ InstanceId }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: approved_origin
props:
- name: Origin
value: '{{ Origin }}'
- name: InstanceId
value: '{{ InstanceId }}'
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