Actions, Resources, and Condition Keys for Amazon CloudFront
Amazon CloudFront (service prefix:
cloudfront
) provides the following service-specific resources, actions, and condition context
keys for use in IAM permission policies.
References:
-
Learn how to configure this service .
-
View a list of the API operations available for this service .
-
Learn how to secure this service and its resources by using IAM permission policies.
Topics
Actions Defined by Amazon CloudFront
You can specify the following actions in the
Action
element of an IAM policy statement. Use policies to grant permissions to perform
an operation in AWS. When you use an action in a policy, you usually allow or
deny access to the API operation or CLI command with the same name. However,
in some cases, a single action controls access to more than one operation. Alternatively,
some operations require several different actions.
The
Resource Types
column indicates whether each action supports resource-level permissions. If
there is no value for this column, you must specify all resources ("*") in the
Resource
element of your policy statement. If the column includes a resource type, then
you can specify an ARN of that type in a statement with that action. Required
resources are indicated in the table with an asterisk (*). If you specify a resource-level
permission ARN in a statement using this action, then it must be of this type.
Some actions support multiple resource types. If the resource type is optional (not
indicated as required), then you can choose to use one but not the other.
For details about the columns in the following table, see The Actions Table .
Actions | Description | Access Level | Resource Types (*required) | Condition Keys | Dependent Actions |
---|---|---|---|---|---|
CreateCloudFrontOriginAccessIdentity | This action creates a new CloudFront origin access identity (POST /2019-03-26/origin-access-identity/cloudfront). | Write | |||
CreateDistribution | This action creates a new web distribution (POST /2019-03-26/distribution). | Write | |||
CreateDistributionWithTags | This action creates a new web distribution with tags (POST /2019-03-26/distribution?WithTags). | Tagging | |||
CreateFieldLevelEncryptionConfig | This action creates a new field-level encryption configuration. (POST /2019-03-26/field-level-encryption). | Write | |||
CreateFieldLevelEncryptionProfile | This action creates a field-level encryption profile. (POST /2019-03-26/field-level-encryption-profile). | Write | |||
CreateInvalidation | This action creates a new invalidation batch request (POST /2019-03-26/distribution/<DISTRIBUTION_ID>/invalidation). | Write | |||
CreatePublicKey | This action adds a new public key to CloudFront. (POST /2019-03-26/public-key). | Write | |||
CreateStreamingDistribution | This action creates a new RTMP distribution (POST /2019-03-26/streaming-distribution). | Write | |||
CreateStreamingDistributionWithTags | This action creates a new RTMP distribution with tags (POST /2019-03-26/streaming-distribution?WithTags). | Tagging | |||
DeleteCloudFrontOriginAccessIdentity | This action deletes a CloudFront origin access identity (DELETE /2019-03-26/origin-access-identity/cloudfront/<OAI_ID>). | Write | |||
DeleteDistribution | This action deletes a web distribution (DELETE /2019-03-26/distribution/<DISTRIBUTION_ID>). | Write | |||
DeleteFieldLevelEncryptionConfig | This action deletes a field-level encryption configuration. (DELETE /2019-03-26/field-level-encryption/Id/<Id>). | Write | |||
DeleteFieldLevelEncryptionProfile | This action deletes a field-level encryption profile. (DELETE /2019-03-26/field-level-encryption-profile/<Id>). | Write | |||
DeletePublicKey | This action deletes a public key from CloudFront. (DELETE /2019-03-26/public-key/<Id>). | Write | |||
DeleteStreamingDistribution | This action deletes an RTMP distribution (DELETE /2019-03-26/streaming-distribution/<DISTRIBUTION_ID>). | Write | |||
GetCloudFrontOriginAccessIdentity | Get the information about a CloudFront origin access identity (GET /2019-03-26/origin-access-identity/cloudfront/<OAI_ID>). | Read | |||
GetCloudFrontOriginAccessIdentityConfig | Get the configuration information about a Cloudfront origin access identity (GET /2019-03-26/origin-access-identity/cloudfront/<OAI_ID>/config). | Read | |||
GetDistribution | Get the information about a web distribution (GET /2019-03-26/distribution/<DISTRIBUTION_ID>). | Read | |||
GetDistributionConfig | Get the configuration information about a distribution (GET /2019-03-26/distribution/<DISTRIBUTION_ID>/config). | Read | |||
GetFieldLevelEncryption | Get the field-level encryption configuration information. (GET /2019-03-26/field-level-encryption/<Id>). | Read | |||
GetFieldLevelEncryptionConfig | Get the field-level encryption configuration information (GET /2019-03-26/field-level-encryption/<Id>/config). | Read | |||
GetFieldLevelEncryptionProfile | Get the field-level encryption configuration information (GET /2019-03-26/field-level-encryption/<Id>/config). | Read | |||
GetFieldLevelEncryptionProfileConfig | Get the field-level encryption profile configuration information (GET /2019-03-26/field-level-encryption-profile/<Id>/config). | Read | |||
GetInvalidation | Get the information about an invalidation (GET /2019-03-26/distribution/<DISTRIBUTION_ID>/invalidation/<INVALIDATION_ID>). | Read | |||
GetPublicKey | Get the public key information (GET /2019-03-26/public-key/<Id>). | Read | |||
GetPublicKeyConfig | Get the public key configuration information (GET /2019-03-26/public-key/<Id>/config). | Read | |||
GetStreamingDistribution | Get the information about an RTMP distribution (GET /2019-03-26/streaming-distribution/<DISTRIBUTION_ID>). | Read | |||
GetStreamingDistributionConfig | Get the configuration information about a streaming distribution (GET /2019-03-26/streaming-distribution/<DISTRIBUTION_ID>/config). | Read | |||
ListCloudFrontOriginAccessIdentities | List your CloudFront origin access identities (GET /2019-03-26/origin-access-identity/cloudfront?Marker=<MARKER>&MaxItems=<MAX_ITEMS>). | List | |||
ListDistributions | List the distributions associated with your AWS account (GET /2019-03-26/distribution?Marker=<MARKER>&MaxItems=<MAX_ITEMS>). | List | |||
ListDistributionsByLambdaFunction [permission only] | List the distributions associated a Lambda function. | List | |||
ListDistributionsByWebACLId | List the distributions associated with your AWS account with given AWS WAF web ACL (GET /2019-03-26/distributionsByWebACLId/<WEB_ACL_ID>?Marker=<MARKER>&MaxItems=<MAX_ITEMS>). | List | |||
ListFieldLevelEncryptionConfigs | List all field-level encryption configurations that have been created in CloudFront for this account (GET /2019-03-26/field-level-encryption?Marker=<MARKER>&MaxItems=<MAX_ITEMS>). | List | |||
ListFieldLevelEncryptionProfiles | List all field-level encryption profiles that have been created in CloudFront for this account. (GET /2019-03-26/field-level-encryption-profile?Marker=<MARKER>&MaxItems=<MAX_ITEMS>). | List | |||
ListInvalidations | List your invalidation batches (GET /2019-03-26/distribution/<DISTRIBUTION_ID>/invalidation?Marker=<MARKER>&MaxItems=<MAX_ITEMS>). | List | |||
ListPublicKeys | List all public keys that have been added to CloudFront for this account. (GET /2019-03-26/public-key?Marker=<MARKER>&MaxItems=<MAX_ITEMS>). | List | |||
ListStreamingDistributions | List your RTMP distributions (GET /2019-03-26/streaming-distribution?Marker=<MARKER>&MaxItems=<MAX_ITEMS>). | List | |||
ListTagsForResource | List tags for a CloudFront resource (GET /2019-03-26/tagging?Resource=<RESOURCE>). | Read | |||
TagResource | Add tags to a CloudFront resource (POST /2019-03-26/tagging?Operation=Tag?Resource=<RESOURCE>). | Tagging | |||
UntagResource | Remove tags from a CloudFront resource (POST /2019-03-26/tagging?Operation=Untag?Resource=<RESOURCE>). | Tagging | |||
UpdateCloudFrontOriginAccessIdentity | This action sets the configuration for a CloudFront origin access identity (PUT /2019-03-26/origin-access-identity/cloudfront/<OAI_ID>/config). | Write | |||
UpdateDistribution | This action updates the configuration for a web distribution (PUT /2019-03-26/distribution/<DISTRIBUTION_ID>/config). | Write | |||
UpdateFieldLevelEncryptionConfig | This action updates a field-level encryption configuration. (PUT /2019-03-26/field-level-encryption/<Id>/config). | Write | |||
UpdateFieldLevelEncryptionProfile | This action updates a field-level encryption profile. (PUT /2019-03-26/field-level-encryption-profile/<Id>/config). | Write | |||
UpdatePublicKey | This action updates public key information. (PUT /2019-03-26/public-key/<Id>/config). | Write | |||
UpdateStreamingDistribution | This action updates the configuration for an RTMP distribution (PUT /2019-03-26/streaming-distribution/<DISTRIBUTION_ID>/config). | Write |
Resource Types Defined by Amazon CloudFront
The following resource types are defined by this service and can be used in the
Resource
element of IAM permission policy statements. Each action in the
Actions table
identifies the resource types that can be specified with that action. A resource
type can also define which condition keys you can include in a policy. These
keys are displayed in the last column of the table. For details about the columns
in the following table, see
The Resource Types Table
.
Resource Types | ARN | Condition Keys |
---|---|---|
distribution |
arn:$
{
Partition}:cloudfront::$
{
Account}:distribution/$
{
DistributionId}
|
|
streaming-distribution |
arn:$
{
Partition}:cloudfront::$
{
Account}:streaming-distribution/$
{
DistributionId}
|
|
origin-access-identity |
arn:$
{
Partition}:cloudfront::$
{
Account}:origin-access-identity/$
{
Id}
|
Condition Keys for Amazon CloudFront
Amazon CloudFront defines the following condition keys that can be used in the
Condition
element of an IAM policy. You can use these keys to further refine the conditions
under which the policy statement applies. For details about the columns in the
following table, see
The Condition Keys Table
.
To view the global condition keys that are available to all services, see Available Global Condition Keys in the IAM Policy Reference .
Condition Keys | Description | Type |
---|---|---|
aws:RequestTag/${TagKey} | Filters actions based on the presence of tag key-value pairs in the request | String |
aws:ResourceTag/${TagKey} | Filters actions based on tag key-value pairs attached to the resource | String |
aws:TagKeys | Filters actions based on the presence of tag keys in the request | String |