Class S3BucketOriginWithOACProps.Jsii$Proxy

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

@Stability(Stable) @Internal public static final class S3BucketOriginWithOACProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements S3BucketOriginWithOACProps
An implementation for S3BucketOriginWithOACProps
  • 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(S3BucketOriginWithOACProps.Builder builder)
      Constructor that initializes the object based on literal property values passed by the S3BucketOriginWithOACProps.Builder.
  • Method Details

    • getOriginAccessControl

      public final IOriginAccessControl getOriginAccessControl()
      Description copied from interface: S3BucketOriginWithOACProps
      An optional Origin Access Control.

      Default: - an Origin Access Control will be created.

      Specified by:
      getOriginAccessControl in interface S3BucketOriginWithOACProps
    • getOriginAccessLevels

      public final List<AccessLevel> getOriginAccessLevels()
      Description copied from interface: S3BucketOriginWithOACProps
      The level of permissions granted in the bucket policy and key policy (if applicable) to the CloudFront distribution.

      Default: [AccessLevel.READ]

      Specified by:
      getOriginAccessLevels in interface S3BucketOriginWithOACProps
    • 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
    • getOriginAccessControlId

      public final String getOriginAccessControlId()
      Description copied from interface: OriginOptions
      The unique identifier of an origin access control for this origin.

      Default: - no origin access control

      Specified by:
      getOriginAccessControlId in interface OriginOptions
    • getOriginId

      public final String getOriginId()
      Description copied from interface: OriginOptions
      A unique identifier for the origin.

      This value must be unique within the distribution.

      Default: - an originid will be generated for you

      Specified by:
      getOriginId in interface OriginOptions
    • getOriginShieldEnabled

      public final Boolean getOriginShieldEnabled()
      Description copied from interface: OriginOptions
      Origin Shield is enabled by setting originShieldRegion to a valid region, after this to disable Origin Shield again you must set this flag to false.

      Default: - true

      Specified by:
      getOriginShieldEnabled 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