Skip to content

Create Invalidation

cloudfront_create_invalidation R Documentation

Create a new invalidation

Description

Create a new invalidation. For more information, see Invalidating files in the Amazon CloudFront Developer Guide.

Usage

cloudfront_create_invalidation(DistributionId, InvalidationBatch)

Arguments

DistributionId

[required] The distribution's id.

InvalidationBatch

[required] The batch information for the invalidation.

Value

A list with the following syntax:

list(
  Location = "string",
  Invalidation = list(
    Id = "string",
    Status = "string",
    CreateTime = as.POSIXct(
      "2015-01-01"
    ),
    InvalidationBatch = list(
      Paths = list(
        Quantity = 123,
        Items = list(
          "string"
        )
      ),
      CallerReference = "string"
    )
  )
)

Request syntax

svc$create_invalidation(
  DistributionId = "string",
  InvalidationBatch = list(
    Paths = list(
      Quantity = 123,
      Items = list(
        "string"
      )
    ),
    CallerReference = "string"
  )
)