profiles
Creates, updates, deletes or gets a profile
resource or lists profiles
in a region
Overview
Name | profiles |
Type | Resource |
Description | Resource Type definition for AWS::Route53Profiles::Profile |
Id | aws.route53profiles.profiles |
Fields
Name | Datatype | Description |
---|---|---|
name | string | The name of the profile. |
client_token | string | The id of the creator request |
tags | array | An array of key-value pairs to apply to this resource. |
arn | string | The Amazon Resource Name (ARN) of the resolver profile. |
id | string | The ID of the profile. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | Name, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__Identifier, region |
SELECT
examples
Gets all profiles
in a region.
SELECT
region,
name,
client_token,
tags,
arn,
id
FROM aws.route53profiles.profiles
WHERE region = 'us-east-1';
Gets all properties from an individual profile
.
SELECT
region,
name,
client_token,
tags,
arn,
id
FROM aws.route53profiles.profiles
WHERE region = 'us-east-1' AND data__Identifier = '<Id>';
INSERT
example
Use the following StackQL query and manifest file to create a new profile
resource, using stack-deploy
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.route53profiles.profiles (
Name,
region
)
SELECT
'{{ Name }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.route53profiles.profiles (
Name,
Tags,
region
)
SELECT
'{{ Name }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: profile
props:
- name: Name
value: '{{ Name }}'
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
DELETE
example
/*+ delete */
DELETE FROM aws.route53profiles.profiles
WHERE data__Identifier = '<Id>'
AND region = 'us-east-1';
Permissions
To operate on the profiles
resource, the following permissions are required:
Create
route53profiles:CreateProfile,
route53profiles:GetProfile,
route53profiles:TagResource,
route53profiles:ListTagsForResource
Update
route53profiles:GetProfile,
route53profiles:TagResource,
route53profiles:UntagResource,
route53profiles:ListTagsForResource
Read
route53profiles:GetProfile,
route53profiles:ListTagsForResource
Delete
route53profiles:DeleteProfile,
route53profiles:GetProfile,
route53profiles:UntagResource
List
route53profiles:ListProfiles,
route53profiles:ListTagsForResource