Skip to main content

anycast_ip_lists

Creates, updates, deletes or gets an anycast_ip_list resource or lists anycast_ip_lists in a region

Overview

Nameanycast_ip_lists
TypeResource
DescriptionAn Anycast static IP list. For more information, see Request Anycast static IPs to use for allowlisting in the Amazon CloudFront Developer Guide.
Idawscc.cloudfront.anycast_ip_lists

Fields

NameDatatypeDescription
anycast_ip_listobjectAn Anycast static IP list. For more information, see Request Anycast static IPs to use for allowlisting in the Amazon CloudFront Developer Guide.
e_tagstring
idstring
ip_countintegerThe number of IP addresses in the Anycast static IP list.
namestringThe name of the Anycast static IP list.
tagsobjectA complex type that contains zero or more Tag elements.
regionstringAWS region.

For more information, see AWS::CloudFront::AnycastIpList.

Methods

NameResourceAccessible byRequired Params
create_resourceanycast_ip_listsINSERTIpCount, Name, region
delete_resourceanycast_ip_listsDELETEIdentifier, region
list_resourcesanycast_ip_lists_list_onlySELECTregion
get_resourceanycast_ip_listsSELECTIdentifier, region

SELECT examples

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 }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.cloudfront.anycast_ip_lists (
IpCount,
Name,
region
)
SELECT
'{{ ip_count }}',
'{{ name }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.cloudfront.anycast_ip_lists
WHERE
Identifier = '{{ id }}' AND
region = 'us-east-1'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

cloudfront:CreateAnycastIpList,
cloudfront:TagResource