public static final class CfnStreamingDistribution.S3OriginProperty.Builder
extends java.lang.Object
CfnStreamingDistribution.S3OriginProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnStreamingDistribution.S3OriginProperty |
build()
Builds the configured instance.
|
CfnStreamingDistribution.S3OriginProperty.Builder |
domainName(java.lang.String domainName)
Sets the value of
CfnStreamingDistribution.S3OriginProperty.getDomainName() |
CfnStreamingDistribution.S3OriginProperty.Builder |
originAccessIdentity(java.lang.String originAccessIdentity)
Sets the value of
CfnStreamingDistribution.S3OriginProperty.getOriginAccessIdentity() |
public CfnStreamingDistribution.S3OriginProperty.Builder domainName(java.lang.String domainName)
CfnStreamingDistribution.S3OriginProperty.getDomainName()
domainName
- The DNS name of the Amazon S3 origin. This parameter is required.this
public CfnStreamingDistribution.S3OriginProperty.Builder originAccessIdentity(java.lang.String originAccessIdentity)
CfnStreamingDistribution.S3OriginProperty.getOriginAccessIdentity()
originAccessIdentity
- The CloudFront origin access identity to associate with the distribution. This parameter is required.
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 .
this
public CfnStreamingDistribution.S3OriginProperty build()
CfnStreamingDistribution.S3OriginProperty
java.lang.NullPointerException
- if any required attribute was not provided