Interface S3OriginProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,OriginOptions,OriginProps
- All Known Implementing Classes:
S3OriginProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:33.179Z")
@Stability(Stable)
public interface S3OriginProps
extends software.amazon.jsii.JsiiSerializable, OriginProps
Properties to use to customize an S3 Origin.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.cloudfront.*;
import software.amazon.awscdk.services.cloudfront.origins.*;
OriginAccessIdentity originAccessIdentity;
S3OriginProps s3OriginProps = S3OriginProps.builder()
.connectionAttempts(123)
.connectionTimeout(Duration.minutes(30))
.customHeaders(Map.of(
"customHeadersKey", "customHeaders"))
.originAccessControlId("originAccessControlId")
.originAccessIdentity(originAccessIdentity)
.originId("originId")
.originPath("originPath")
.originShieldEnabled(false)
.originShieldRegion("originShieldRegion")
.responseCompletionTimeout(Duration.minutes(30))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forS3OriginPropsstatic final classAn implementation forS3OriginProps -
Method Summary
Modifier and TypeMethodDescriptionstatic S3OriginProps.Builderbuilder()default IOriginAccessIdentityAn optional Origin Access Identity of the origin identity cloudfront will use when calling your s3 bucket.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.cloudfront.OriginOptions
getConnectionAttempts, getConnectionTimeout, getCustomHeaders, getOriginAccessControlId, getOriginId, getOriginShieldEnabled, getOriginShieldRegion, getResponseCompletionTimeoutMethods inherited from interface software.amazon.awscdk.services.cloudfront.OriginProps
getOriginPath
-
Method Details
-
getOriginAccessIdentity
An optional Origin Access Identity of the origin identity cloudfront will use when calling your s3 bucket.Default: - An Origin Access Identity will be created.
-
builder
- Returns:
- a
S3OriginProps.BuilderofS3OriginProps
-