java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.mixins.preview.core.Mixin
software.amazon.awscdk.mixins.preview.services.cloudfront.mixins.CfnDistributionLogsMixin
All Implemented Interfaces:
IMixin, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)", date="2025-12-18T18:20:23.789Z") @Stability(Stable) public class CfnDistributionLogsMixin extends Mixin implements IMixin
A distribution tells CloudFront where you want content to be delivered from, and the details about how to track and manage content delivery.

Example:

 import software.amazon.awscdk.mixins.preview.services.cloudfront.mixins.*;
 // Create CloudFront distribution
 Bucket bucket;
 Distribution distribution = Distribution.Builder.create(scope, "Distribution")
         .defaultBehavior(BehaviorOptions.builder()
                 .origin(S3BucketOrigin.withOriginAccessControl(bucket))
                 .build())
         .build();
 // Create log destination
 LogGroup logGroup = new LogGroup(scope, "DeliveryLogGroup");
 // Configure log delivery using the mixin
 distribution.with(CfnDistributionLogsMixin.CONNECTION_LOGS.toLogGroup(logGroup));
 

See Also:
  • 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.mixins.preview.core.IMixin

    IMixin.Jsii$Default, IMixin.Jsii$Proxy
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    Create a mixin to enable vended logs for AWS::CloudFront::Distribution.
    protected
    CfnDistributionLogsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    CfnDistributionLogsMixin(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    software.constructs.IConstruct
    applyTo(software.constructs.IConstruct resource)
    Apply vended logs configuration to the construct.
    protected ILogsDelivery
     
    protected String
     
    supports(software.constructs.IConstruct construct)
    Check if this mixin supports the given construct (has vendedLogs property).

    Methods inherited from class software.amazon.awscdk.mixins.preview.core.Mixin

    isMixin

    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
  • Field Details

  • Constructor Details

    • CfnDistributionLogsMixin

      protected CfnDistributionLogsMixin(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnDistributionLogsMixin

      protected CfnDistributionLogsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnDistributionLogsMixin

      @Stability(Stable) public CfnDistributionLogsMixin(@NotNull String logType, @NotNull ILogsDelivery logDelivery)
      Create a mixin to enable vended logs for AWS::CloudFront::Distribution.

      Parameters:
      logType - Type of logs that are getting vended. This parameter is required.
      logDelivery - Object in charge of setting up the delivery source, delivery destination, and delivery connection. This parameter is required.
  • Method Details

    • applyTo

      @Stability(Stable) @NotNull public software.constructs.IConstruct applyTo(@NotNull software.constructs.IConstruct resource)
      Apply vended logs configuration to the construct.

      Specified by:
      applyTo in interface IMixin
      Specified by:
      applyTo in class Mixin
      Parameters:
      resource - This parameter is required.
    • supports

      @Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct)
      Check if this mixin supports the given construct (has vendedLogs property).

      Specified by:
      supports in interface IMixin
      Overrides:
      supports in class Mixin
      Parameters:
      construct - This parameter is required.
    • getLogDelivery

      @Stability(Stable) @NotNull protected ILogsDelivery getLogDelivery()
    • getLogType

      @Stability(Stable) @NotNull protected String getLogType()