@Stability(value=Stable)
public static interface CfnStreamingDistribution.S3OriginProperty
extends software.amazon.jsii.JsiiSerializable
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.*;
S3OriginProperty s3OriginProperty = S3OriginProperty.builder()
.domainName("domainName")
.originAccessIdentity("originAccessIdentity")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnStreamingDistribution.S3OriginProperty.Builder
A builder for
CfnStreamingDistribution.S3OriginProperty |
static class |
CfnStreamingDistribution.S3OriginProperty.Jsii$Proxy
An implementation for
CfnStreamingDistribution.S3OriginProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnStreamingDistribution.S3OriginProperty.Builder |
builder() |
String |
getDomainName()
The DNS name of the Amazon S3 origin.
|
String |
getOriginAccessIdentity()
The CloudFront origin access identity to associate with the distribution.
|
@Stability(value=Stable) @NotNull String getDomainName()
@Stability(value=Stable) @NotNull String getOriginAccessIdentity()
Use an origin access identity to configure the distribution so that end users can only access objects in an Amazon S3 bucket through CloudFront.
If you want end users to be able to access objects using either the CloudFront URL or the Amazon S3 URL, specify an empty OriginAccessIdentity element.
To delete the origin access identity from an existing distribution, update the distribution configuration and include an empty OriginAccessIdentity element.
To replace the origin access identity, update the distribution configuration and specify the new origin access identity.
For more information, see Using an Origin Access Identity to Restrict Access to Your Amazon S3 Content in the Amazon CloudFront Developer Guide .
@Stability(value=Stable) static CfnStreamingDistribution.S3OriginProperty.Builder builder()
Copyright © 2022. All rights reserved.