Class LoadBalancerV2OriginProps.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.cloudfront.origins.LoadBalancerV2OriginProps.Jsii$Proxy
All Implemented Interfaces:
OriginOptions, OriginProps, HttpOriginProps, LoadBalancerV2OriginProps, software.amazon.jsii.JsiiSerializable
Enclosing interface:
LoadBalancerV2OriginProps

@Stability(Stable) @Internal public static final class LoadBalancerV2OriginProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements LoadBalancerV2OriginProps
An implementation for LoadBalancerV2OriginProps
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(LoadBalancerV2OriginProps.Builder builder)
      Constructor that initializes the object based on literal property values passed by the LoadBalancerV2OriginProps.Builder.
  • Method Details

    • getHttpPort

      public final Number getHttpPort()
      Description copied from interface: HttpOriginProps
      The HTTP port that CloudFront uses to connect to the origin.

      Default: 80

      Specified by:
      getHttpPort in interface HttpOriginProps
    • getHttpsPort

      public final Number getHttpsPort()
      Description copied from interface: HttpOriginProps
      The HTTPS port that CloudFront uses to connect to the origin.

      Default: 443

      Specified by:
      getHttpsPort in interface HttpOriginProps
    • getKeepaliveTimeout

      public final Duration getKeepaliveTimeout()
      Description copied from interface: HttpOriginProps
      Specifies how long, in seconds, CloudFront persists its connection to the origin.

      The valid range is from 1 to 180 seconds, inclusive.

      Note that values over 60 seconds are possible only after a limit increase request for the origin response timeout quota has been approved in the target account; otherwise, values over 60 seconds will produce an error at deploy time.

      Default: Duration.seconds(5)

      Specified by:
      getKeepaliveTimeout in interface HttpOriginProps
    • getOriginSslProtocols

      public final List<OriginSslPolicy> getOriginSslProtocols()
      Description copied from interface: HttpOriginProps
      The SSL versions to use when interacting with the origin.

      Default: OriginSslPolicy.TLS_V1_2

      Specified by:
      getOriginSslProtocols in interface HttpOriginProps
    • getProtocolPolicy

      public final OriginProtocolPolicy getProtocolPolicy()
      Description copied from interface: HttpOriginProps
      Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin.

      Default: OriginProtocolPolicy.HTTPS_ONLY

      Specified by:
      getProtocolPolicy in interface HttpOriginProps
    • getReadTimeout

      public final Duration getReadTimeout()
      Description copied from interface: HttpOriginProps
      Specifies how long, in seconds, CloudFront waits for a response from the origin, also known as the origin response timeout.

      The valid range is from 1 to 180 seconds, inclusive.

      Note that values over 60 seconds are possible only after a limit increase request for the origin response timeout quota has been approved in the target account; otherwise, values over 60 seconds will produce an error at deploy time.

      Default: Duration.seconds(30)

      Specified by:
      getReadTimeout in interface HttpOriginProps
    • getOriginPath

      public final String getOriginPath()
      Description copied from interface: OriginProps
      An optional path that CloudFront appends to the origin domain name when CloudFront requests content from the origin.

      Must begin, but not end, with '/' (e.g., '/production/images').

      Default: '/'

      Specified by:
      getOriginPath in interface OriginProps
    • getConnectionAttempts

      public final Number getConnectionAttempts()
      Description copied from interface: OriginOptions
      The number of times that CloudFront attempts to connect to the origin;

      valid values are 1, 2, or 3 attempts.

      Default: 3

      Specified by:
      getConnectionAttempts in interface OriginOptions
    • getConnectionTimeout

      public final Duration getConnectionTimeout()
      Description copied from interface: OriginOptions
      The number of seconds that CloudFront waits when trying to establish a connection to the origin.

      Valid values are 1-10 seconds, inclusive.

      Default: Duration.seconds(10)

      Specified by:
      getConnectionTimeout in interface OriginOptions
    • getCustomHeaders

      public final Map<String,String> getCustomHeaders()
      Description copied from interface: OriginOptions
      A list of HTTP header names and values that CloudFront adds to requests it sends to the origin.

      Default: {}

      Specified by:
      getCustomHeaders in interface OriginOptions
    • getOriginShieldRegion

      public final String getOriginShieldRegion()
      Description copied from interface: OriginOptions
      When you enable Origin Shield in the AWS Region that has the lowest latency to your origin, you can get better network performance.

      Default: - origin shield not enabled

      Specified by:
      getOriginShieldRegion in interface OriginOptions
      See Also:
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object