Class CfnCloudFrontOriginAccessIdentity
The request to create a new origin access identity (OAI).
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnCloudFrontOriginAccessIdentity : CfnResource, IInspectable
Syntax (vb)
Public Class CfnCloudFrontOriginAccessIdentity
Inherits CfnResource
Implements IInspectable
Remarks
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. For more information, see Restricting Access to Amazon S3 Content by Using an Origin Access Identity in the Amazon CloudFront Developer Guide .
CloudformationResource: AWS::CloudFront::CloudFrontOriginAccessIdentity
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFront;
var cfnCloudFrontOriginAccessIdentity = new CfnCloudFrontOriginAccessIdentity(this, "MyCfnCloudFrontOriginAccessIdentity", new CfnCloudFrontOriginAccessIdentityProps {
CloudFrontOriginAccessIdentityConfig = new CloudFrontOriginAccessIdentityConfigProperty {
Comment = "comment"
}
});
Synopsis
Constructors
Cfn |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Cfn |
Used by jsii to construct an instance of this class from DeputyProps |
Cfn |
Properties
Attr |
The ID for the origin access identity, for example, |
Attr |
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. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
Cfn |
|
Cloud |
The current configuration information for the identity. |
Methods
Inspect(Tree |
Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnCloudFrontOriginAccessIdentity(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnCloudFrontOriginAccessIdentity(ByRefValue reference)
Parameters
- reference Amazon.
JSII. Runtime. Deputy. By Ref Value The Javascript-owned object reference
CfnCloudFrontOriginAccessIdentity(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnCloudFrontOriginAccessIdentity(DeputyBase.DeputyProps props)
Parameters
- props Amazon.
JSII. Runtime. Deputy. Deputy Base. Deputy Props The deputy props
CfnCloudFrontOriginAccessIdentity(Construct, String, ICfnCloudFrontOriginAccessIdentityProps)
public CfnCloudFrontOriginAccessIdentity(Construct scope, string id, ICfnCloudFrontOriginAccessIdentityProps props)
Parameters
- scope Constructs.
Construct Scope in which this resource is defined.
- id System.
String Construct identifier for this resource (unique in its scope).
- props ICfn
Cloud Front Origin Access Identity Props Resource properties.
Properties
AttrId
The ID for the origin access identity, for example, E74FTE3AJFJ256A
.
public virtual string AttrId { get; }
Property Value
System.
Remarks
CloudformationAttribute: Id
AttrS3CanonicalUserId
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 AttrS3CanonicalUserId { get; }
Property Value
System.
Remarks
For example: b970b42360b81c8ddbd79d2f5df0069ba9033c8a79655752abe380cd6d63ba8bcf23384d568fcf89fc49700b5e11a0fd
.
CloudformationAttribute: S3CanonicalUserId
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.
Overrides
CloudFrontOriginAccessIdentityConfig
The current configuration information for the identity.
public virtual object CloudFrontOriginAccessIdentityConfig { get; set; }
Property Value
System.
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector Tree
Inspector tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.
Collections. <System.Generic. IDictionary String , System.Object >
Returns
System.