Skip to content

create-invalidation action

Description

CreateInvalidationAction requests and waits for a CloudFront invalidation.

Source: internal/service/cloudfront/create_invalidation_action.go:43

Example usage:

imports: {
  aws-cloudfront: 'github.com/cloudboss/unobin-library-aws//service/cloudfront'
}

actions: {
  example: aws-cloudfront.create-invalidation {
    # Set input fields here.
  }
}

Inputs

distribution-id

string

required

paths

list(string)

required

caller-reference

optional(string)

Input Constraints

Paths rules

paths must contain between 1 and 3000 values.

Rule logic
Require
@core.length(input.paths) >= 1
&& @core.length(input.paths) <= 3000

paths values must not be empty.

Rule logic
For each
input.paths
Require
@core.length(@each.value) >= 1

Caller reference rules

caller-reference must contain at most 128 characters.

Rule logic
When
input.caller-reference != null
Require
@core.length(input.caller-reference) <= 128

Outputs

id

string

status

string