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 | awscc.route53profiles.profiles |
Fields
- get (all properties)
- list (identifiers only)
| 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. |
| Name | Datatype | Description |
|---|---|---|
id | string | The ID of the profile. |
region | string | AWS region. |
For more information, see AWS::Route53Profiles::Profile.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | profiles | INSERT | Name, region |
delete_resource | profiles | DELETE | Identifier, region |
update_resource | profiles | UPDATE | Identifier, PatchDocument, region |
list_resources | profiles_list_only | SELECT | region |
get_resource | profiles | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
Gets all properties from an individual profile.
SELECT
region,
name,
client_token,
tags,
arn,
id
FROM awscc.route53profiles.profiles
WHERE
region = 'us-east-1' AND
Identifier = '{{ id }}';
Lists all profiles in a region.
SELECT
region,
id
FROM awscc.route53profiles.profiles_list_only
WHERE
region = 'us-east-1';
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 awscc.route53profiles.profiles (
Name,
region
)
SELECT
'{{ name }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.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 }}'
UPDATE example
Use the following StackQL query and manifest file to update a profile resource, using stack-deploy.
/*+ update */
UPDATE awscc.route53profiles.profiles
SET PatchDocument = string('{{ {
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ id }}';
DELETE example
/*+ delete */
DELETE FROM awscc.route53profiles.profiles
WHERE
Identifier = '{{ id }}' AND
region = 'us-east-1';
Permissions
To operate on the profiles resource, the following permissions are required:
- Create
- Update
- Read
- Delete
- List
route53profiles:CreateProfile,
route53profiles:GetProfile,
route53profiles:TagResource,
route53profiles:ListTagsForResource
route53profiles:GetProfile,
route53profiles:TagResource,
route53profiles:UntagResource,
route53profiles:ListTagsForResource
route53profiles:GetProfile,
route53profiles:ListTagsForResource
route53profiles:DeleteProfile,
route53profiles:GetProfile,
route53profiles:UntagResource,
route53profiles:ListTagsForResource
route53profiles:ListProfiles,
route53profiles:ListTagsForResource