Class OriginBase
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.cloudfront.OriginBase
- All Implemented Interfaces:
IOrigin
,software.amazon.jsii.JsiiSerializable
- Direct Known Subclasses:
FunctionUrlOrigin
,HttpOrigin
,RestApiOrigin
,S3BucketOrigin
,VpcOrigin
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-10-01T17:46:49.612Z")
@Stability(Stable)
public abstract class OriginBase
extends software.amazon.jsii.JsiiObject
implements IOrigin
Represents a distribution origin, that describes the Amazon S3 bucket, HTTP server (for example, a web server), Amazon MediaStore, or other server from which CloudFront gets your files.
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.cloudfront.IOrigin
IOrigin.Jsii$Default
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
OriginBase
(String domainName) protected
OriginBase
(String domainName, OriginProps props) protected
OriginBase
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
OriginBase
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionbind
(software.constructs.Construct scope, OriginBindOptions options) Binds the origin to the associated Distribution.protected CfnDistribution.S3OriginConfigProperty
protected CfnDistribution.VpcOriginConfigProperty
protected void
Validates that responseCompletionTimeout is greater than or equal to readTimeout when both are specified.protected void
validateResponseCompletionTimeoutWithReadTimeout
(Duration responseCompletionTimeout) Validates that responseCompletionTimeout is greater than or equal to readTimeout when both are specified.protected void
validateResponseCompletionTimeoutWithReadTimeout
(Duration responseCompletionTimeout, Duration readTimeout) Validates that responseCompletionTimeout is greater than or equal to readTimeout when both are specified.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
OriginBase
protected OriginBase(software.amazon.jsii.JsiiObjectRef objRef) -
OriginBase
protected OriginBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
OriginBase
- Parameters:
domainName
- This parameter is required.props
-
-
OriginBase
- Parameters:
domainName
- This parameter is required.
-
-
Method Details
-
bind
@Stability(Stable) @NotNull public OriginBindConfig bind(@NotNull software.constructs.Construct scope, @NotNull OriginBindOptions options) Binds the origin to the associated Distribution.Can be used to grant permissions, create dependent resources, etc.
-
renderCustomOriginConfig
@Stability(Stable) @Nullable protected CfnDistribution.CustomOriginConfigProperty renderCustomOriginConfig() -
renderS3OriginConfig
@Stability(Stable) @Nullable protected CfnDistribution.S3OriginConfigProperty renderS3OriginConfig() -
renderVpcOriginConfig
@Stability(Stable) @Nullable protected CfnDistribution.VpcOriginConfigProperty renderVpcOriginConfig() -
validateResponseCompletionTimeoutWithReadTimeout
@Stability(Stable) protected void validateResponseCompletionTimeoutWithReadTimeout(@Nullable Duration responseCompletionTimeout, @Nullable Duration readTimeout) Validates that responseCompletionTimeout is greater than or equal to readTimeout when both are specified.This method should be called by subclasses that support readTimeout.
- Parameters:
responseCompletionTimeout
-readTimeout
-
-
validateResponseCompletionTimeoutWithReadTimeout
@Stability(Stable) protected void validateResponseCompletionTimeoutWithReadTimeout(@Nullable Duration responseCompletionTimeout) Validates that responseCompletionTimeout is greater than or equal to readTimeout when both are specified.This method should be called by subclasses that support readTimeout.
- Parameters:
responseCompletionTimeout
-
-
validateResponseCompletionTimeoutWithReadTimeout
@Stability(Stable) protected void validateResponseCompletionTimeoutWithReadTimeout()Validates that responseCompletionTimeout is greater than or equal to readTimeout when both are specified.This method should be called by subclasses that support readTimeout.
-