Skip to content

Create Cloud Front Origin Access Identity

cloudfront_create_cloud_front_origin_access_identity R Documentation

Creates a new origin access identity

Description

Creates a new origin access identity. If you're using Amazon S3 for your origin, you can use an origin access identity to require users to access your content using a CloudFront URL instead of the Amazon S3 URL. For more information about how to use origin access identities, see Serving Private Content through CloudFront in the Amazon CloudFront Developer Guide.

Usage

cloudfront_create_cloud_front_origin_access_identity(
  CloudFrontOriginAccessIdentityConfig)

Arguments

CloudFrontOriginAccessIdentityConfig

[required] The current configuration information for the identity.

Value

A list with the following syntax:

list(
  CloudFrontOriginAccessIdentity = list(
    Id = "string",
    S3CanonicalUserId = "string",
    CloudFrontOriginAccessIdentityConfig = list(
      CallerReference = "string",
      Comment = "string"
    )
  ),
  Location = "string",
  ETag = "string"
)

Request syntax

svc$create_cloud_front_origin_access_identity(
  CloudFrontOriginAccessIdentityConfig = list(
    CallerReference = "string",
    Comment = "string"
  )
)