Class CfnStreamingDistributionPropsMixin.S3OriginProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStreamingDistributionPropsMixin.S3OriginProperty>
- Enclosing interface:
CfnStreamingDistributionPropsMixin.S3OriginProperty
CfnStreamingDistributionPropsMixin.S3OriginProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.domainName(String domainName) Sets the value ofCfnStreamingDistributionPropsMixin.S3OriginProperty.getDomainName()originAccessIdentity(String originAccessIdentity)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
domainName
@Stability(Stable) public CfnStreamingDistributionPropsMixin.S3OriginProperty.Builder domainName(String domainName) Sets the value ofCfnStreamingDistributionPropsMixin.S3OriginProperty.getDomainName()- Parameters:
domainName- The DNS name of the Amazon S3 origin.- Returns:
this
-
originAccessIdentity
@Stability(Stable) public CfnStreamingDistributionPropsMixin.S3OriginProperty.Builder originAccessIdentity(String originAccessIdentity) - Parameters:
originAccessIdentity- The CloudFront origin access identity to associate with the distribution. 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
OriginAccessIdentityelement.To delete the origin access identity from an existing distribution, update the distribution configuration and include an empty
OriginAccessIdentityelement.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 .
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnStreamingDistributionPropsMixin.S3OriginProperty>- Returns:
- a new instance of
CfnStreamingDistributionPropsMixin.S3OriginProperty - Throws:
NullPointerException- if any required attribute was not provided
-