Skip to main content

prefix_list

Gets or updates an individual prefix_list resource, use prefix_lists to retrieve a list of resources or to create or delete a resource.

Overview

Nameprefix_list
TypeResource
DescriptionResource schema of AWS::EC2::PrefixList Type
Idaws.ec2.prefix_list

Fields

NameDatatypeDescription
prefix_list_namestringName of Prefix List.
prefix_list_idstringId of Prefix List.
owner_idstringOwner Id of Prefix List.
address_familystringIp Version of Prefix List.
max_entriesintegerMax Entries of Prefix List.
versionintegerVersion of Prefix List.
tagsarrayTags for Prefix List
entriesarrayEntries of Prefix List.
arnstringThe Amazon Resource Name (ARN) of the Prefix List.
regionstringAWS region.

Methods

NameAccessible byRequired Params
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
get_resourceSELECTdata__Identifier, region

SELECT Example

SELECT
region,
prefix_list_name,
prefix_list_id,
owner_id,
address_family,
max_entries,
version,
tags,
entries,
arn
FROM aws.ec2.prefix_list
WHERE region = 'us-east-1' AND data__Identifier = '<PrefixListId>';

Permissions

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

Read

EC2:GetManagedPrefixListEntries,
EC2:DescribeManagedPrefixLists

Update

EC2:DescribeManagedPrefixLists,
EC2:GetManagedPrefixListEntries,
EC2:ModifyManagedPrefixList,
EC2:CreateTags,
EC2:DeleteTags