Show / Hide Table of Contents

Class OriginAccessIdentity

An origin access identity is a special CloudFront user that you can associate with Amazon S3 origins, so that you can secure all or just some of your Amazon S3 content.

Inheritance
System.Object
Construct
Resource
OriginAccessIdentity
Implements
IOriginAccessIdentity
IResource
IConstruct
Constructs.IConstruct
IDependable
IGrantable
Inherited Members
Resource.IsResource(IConstruct)
Resource.ApplyRemovalPolicy(RemovalPolicy)
Resource.GeneratePhysicalName()
Resource.GetResourceArnAttribute(String, IArnComponents)
Resource.GetResourceNameAttribute(String)
Resource.Env
Resource.PhysicalName
Resource.Stack
Construct.IsConstruct(Object)
Construct.OnPrepare()
Construct.OnSynthesize(ISynthesisSession)
Construct.OnValidate()
Construct.Prepare()
Construct.Synthesize(ISynthesisSession)
Construct.Validate()
Construct.Node
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.AWS.CloudFront.dll
Syntax (csharp)
public class OriginAccessIdentity : Resource, IOriginAccessIdentity, IResource, IConstruct, IConstruct, IDependable, IGrantable
Syntax (vb)
Public Class OriginAccessIdentity
    Inherits Resource
    Implements IOriginAccessIdentity, IResource, IConstruct, IConstruct, IDependable, IGrantable
Remarks

Resource: AWS::CloudFront::CloudFrontOriginAccessIdentity

Synopsis

Constructors

OriginAccessIdentity(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

OriginAccessIdentity(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

OriginAccessIdentity(Construct, String, IOriginAccessIdentityProps)

Properties

CloudFrontOriginAccessIdentityS3CanonicalUserId

The Amazon S3 canonical user ID for the origin access identity, used when giving the origin access identity read permission to an object in Amazon S3.

GrantPrincipal

Derived principal value for bucket access.

OriginAccessIdentityName

The Origin Access Identity Name (physical id).

Methods

Arn()

The ARN to include in S3 bucket policy to allow CloudFront access.

FromOriginAccessIdentityName(Construct, String, String)

Creates a OriginAccessIdentity by providing the OriginAccessIdentityName.

Constructors

OriginAccessIdentity(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

protected OriginAccessIdentity(ByRefValue reference)
Parameters
reference Amazon.JSII.Runtime.Deputy.ByRefValue

The Javascript-owned object reference

OriginAccessIdentity(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

protected OriginAccessIdentity(DeputyBase.DeputyProps props)
Parameters
props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps

The deputy props

OriginAccessIdentity(Construct, String, IOriginAccessIdentityProps)

public OriginAccessIdentity(Construct scope, string id, IOriginAccessIdentityProps props = null)
Parameters
scope Constructs.Construct
id System.String
props IOriginAccessIdentityProps

Properties

CloudFrontOriginAccessIdentityS3CanonicalUserId

The Amazon S3 canonical user ID for the origin access identity, used when giving the origin access identity read permission to an object in Amazon S3.

public virtual string CloudFrontOriginAccessIdentityS3CanonicalUserId { get; }
Property Value

System.String

Remarks

Attribute: true

GrantPrincipal

Derived principal value for bucket access.

public virtual IPrincipal GrantPrincipal { get; }
Property Value

IPrincipal

OriginAccessIdentityName

The Origin Access Identity Name (physical id).

public virtual string OriginAccessIdentityName { get; }
Property Value

System.String

Remarks

Attribute: true

Methods

Arn()

The ARN to include in S3 bucket policy to allow CloudFront access.

protected virtual string Arn()
Returns

System.String

FromOriginAccessIdentityName(Construct, String, String)

Creates a OriginAccessIdentity by providing the OriginAccessIdentityName.

public static IOriginAccessIdentity FromOriginAccessIdentityName(Construct scope, string id, string originAccessIdentityName)
Parameters
scope Constructs.Construct
id System.String
originAccessIdentityName System.String
Returns

IOriginAccessIdentity

Implements

IOriginAccessIdentity
IResource
IConstruct
Constructs.IConstruct
IDependable
IGrantable
Back to top Generated by DocFX