@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)", date="2022-08-08T20:48:11.369Z") @Stability(value=Stable) public class OriginAccessIdentity extends Resource implements IOriginAccessIdentity
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.cloudfront.*; OriginAccessIdentity originAccessIdentity = OriginAccessIdentity.Builder.create(this, "MyOriginAccessIdentity") .comment("comment") .build();
Modifier and Type | Class and Description |
---|---|
static class |
OriginAccessIdentity.Builder
A fluent builder for
OriginAccessIdentity . |
software.amazon.jsii.JsiiObject.InitializationMode
IOriginAccessIdentity.Jsii$Default, IOriginAccessIdentity.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
|
OriginAccessIdentity(software.constructs.Construct scope,
String id) |
|
OriginAccessIdentity(software.constructs.Construct scope,
String id,
OriginAccessIdentityProps props) |
protected |
OriginAccessIdentity(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
OriginAccessIdentity(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
protected String |
arn()
The ARN to include in S3 bucket policy to allow CloudFront access.
|
static IOriginAccessIdentity |
fromOriginAccessIdentityId(software.constructs.Construct scope,
String id,
String originAccessIdentityId)
Creates a OriginAccessIdentity by providing the OriginAccessIdentityId.
|
static IOriginAccessIdentity |
fromOriginAccessIdentityName(software.constructs.Construct scope,
String id,
String originAccessIdentityName)
Deprecated.
use `fromOriginAccessIdentityId`
|
String |
getCloudFrontOriginAccessIdentityS3CanonicalUserId()
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.
|
IPrincipal |
getGrantPrincipal()
Derived principal value for bucket access.
|
String |
getOriginAccessIdentityId()
The Origin Access Identity Id (physical id) This was called originAccessIdentityName before.
|
String |
getOriginAccessIdentityName()
Deprecated.
use originAccessIdentityId instead
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResource
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
applyRemovalPolicy, getEnv, getStack
protected OriginAccessIdentity(software.amazon.jsii.JsiiObjectRef objRef)
protected OriginAccessIdentity(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) public OriginAccessIdentity(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable OriginAccessIdentityProps props)
scope
- This parameter is required.id
- This parameter is required.props
- @Stability(value=Stable) public OriginAccessIdentity(@NotNull software.constructs.Construct scope, @NotNull String id)
scope
- This parameter is required.id
- This parameter is required.@Stability(value=Stable) @NotNull public static IOriginAccessIdentity fromOriginAccessIdentityId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String originAccessIdentityId)
scope
- This parameter is required.id
- This parameter is required.originAccessIdentityId
- This parameter is required.@Stability(value=Deprecated) @Deprecated @NotNull public static IOriginAccessIdentity fromOriginAccessIdentityName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String originAccessIdentityName)
It is misnamed and superseded by the correctly named fromOriginAccessIdentityId.
scope
- This parameter is required.id
- This parameter is required.originAccessIdentityName
- This parameter is required.@Stability(value=Stable) @NotNull protected String arn()
@Stability(value=Stable) @NotNull public String getCloudFrontOriginAccessIdentityS3CanonicalUserId()
@Stability(value=Stable) @NotNull public IPrincipal getGrantPrincipal()
getGrantPrincipal
in interface IGrantable
@Stability(value=Stable) @NotNull public String getOriginAccessIdentityId()
getOriginAccessIdentityId
in interface IOriginAccessIdentity
@Stability(value=Deprecated) @Deprecated @NotNull public String getOriginAccessIdentityName()
getOriginAccessIdentityName
in interface IOriginAccessIdentity
Copyright © 2022. All rights reserved.