anycast_ip_lists
Creates, updates, deletes or gets an anycast_ip_list resource or lists anycast_ip_lists in a region
Overview
| Name | anycast_ip_lists |
| Type | Resource |
| Description | An Anycast static IP list. For more information, see [Request Anycast static IPs to use for allowlisting](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/request-static-ips.html) in the *Amazon CloudFront Developer Guide*. |
| Id | awscc.cloudfront.anycast_ip_lists |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
anycast_ip_list | object | An Anycast static IP list. For more information, see [Request Anycast static IPs to use for allowlisting](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/request-static-ips.html) in the *Amazon CloudFront Developer Guide*. |
e_tag | string | |
id | string | |
ip_count | integer | The number of IP addresses in the Anycast static IP list. |
name | string | The name of the Anycast static IP list. |
tags | object | A complex type that contains zero or more ``Tag`` elements. |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
id | string | |
region | string | AWS region. |
For more information, see AWS::CloudFront::AnycastIpList.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | anycast_ip_lists | INSERT | IpCount, Name, region |
delete_resource | anycast_ip_lists | DELETE | Identifier, region |
list_resources | anycast_ip_lists_list_only | SELECT | region |
get_resource | anycast_ip_lists | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
Gets all properties from an individual anycast_ip_list.
SELECT
region,
anycast_ip_list,
e_tag,
id,
ip_count,
name,
tags
FROM awscc.cloudfront.anycast_ip_lists
WHERE
region = 'us-east-1' AND
Identifier = '{{ id }}';
Lists all anycast_ip_lists in a region.
SELECT
region,
id
FROM awscc.cloudfront.anycast_ip_lists_list_only
WHERE
region = 'us-east-1';
INSERT example
Use the following StackQL query and manifest file to create a new anycast_ip_list resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.cloudfront.anycast_ip_lists (
IpCount,
Name,
region
)
SELECT
'{{ ip_count }}',
'{{ name }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.cloudfront.anycast_ip_lists (
IpCount,
Name,
Tags,
region
)
SELECT
'{{ ip_count }}',
'{{ name }}',
'{{ tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: anycast_ip_list
props:
- name: ip_count
value: '{{ ip_count }}'
- name: name
value: '{{ name }}'
- name: tags
value:
items:
- key: '{{ key }}'
value: '{{ value }}'
DELETE example
/*+ delete */
DELETE FROM awscc.cloudfront.anycast_ip_lists
WHERE
Identifier = '{{ id }}' AND
region = 'us-east-1';
Permissions
To operate on the anycast_ip_lists resource, the following permissions are required:
- Create
- Delete
- List
- Read
cloudfront:CreateAnycastIpList,
cloudfront:TagResource
cloudfront:DeleteAnycastIpList,
cloudfront:GetAnycastIpList
cloudfront:ListAnycastIpLists
cloudfront:GetAnycastIpList,
cloudfront:ListTagsForResource