Interface AwsCloudFrontDistributionCacheBehavior.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AwsCloudFrontDistributionCacheBehavior.Builder,AwsCloudFrontDistributionCacheBehavior>,SdkBuilder<AwsCloudFrontDistributionCacheBehavior.Builder,AwsCloudFrontDistributionCacheBehavior>,SdkPojo
- Enclosing class:
- AwsCloudFrontDistributionCacheBehavior
public static interface AwsCloudFrontDistributionCacheBehavior.Builder extends SdkPojo, CopyableBuilder<AwsCloudFrontDistributionCacheBehavior.Builder,AwsCloudFrontDistributionCacheBehavior>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AwsCloudFrontDistributionCacheBehavior.BuilderviewerProtocolPolicy(String viewerProtocolPolicy)The protocol that viewers can use to access the files in an origin.-
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 Detail
-
viewerProtocolPolicy
AwsCloudFrontDistributionCacheBehavior.Builder viewerProtocolPolicy(String viewerProtocolPolicy)
The protocol that viewers can use to access the files in an origin. You can specify the following options:
-
allow-all- Viewers can use HTTP or HTTPS. -
redirect-to-https- CloudFront responds to HTTP requests with an HTTP status code of 301 (Moved Permanently) and the HTTPS URL. The viewer then uses the new URL to resubmit. -
https-only- CloudFront responds to HTTP request with an HTTP status code of 403 (Forbidden).
- Parameters:
viewerProtocolPolicy- The protocol that viewers can use to access the files in an origin. You can specify the following options:-
allow-all- Viewers can use HTTP or HTTPS. -
redirect-to-https- CloudFront responds to HTTP requests with an HTTP status code of 301 (Moved Permanently) and the HTTPS URL. The viewer then uses the new URL to resubmit. -
https-only- CloudFront responds to HTTP request with an HTTP status code of 403 (Forbidden).
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
-