Interface S3Origin.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<S3Origin.Builder,
,S3Origin> SdkBuilder<S3Origin.Builder,
,S3Origin> SdkPojo
- Enclosing class:
S3Origin
-
Method Summary
Modifier and TypeMethodDescriptiondomainName
(String domainName) The DNS name of the Amazon S3 origin.originAccessIdentity
(String originAccessIdentity) The CloudFront origin access identity to associate with the distribution.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
domainName
The DNS name of the Amazon S3 origin.
- Parameters:
domainName
- The DNS name of the Amazon S3 origin.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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.
- 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
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-