Class CfnDeliveryDestinationPropsMixin

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.logs.CfnDeliveryDestinationPropsMixin
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable, software.constructs.IMixin

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-03-11T13:20:01.164Z") @Stability(Stable) public class CfnDeliveryDestinationPropsMixin extends Mixin implements software.constructs.IMixin
This structure contains information about one delivery destination in your account.

A delivery destination is an AWS resource that represents an AWS service that logs can be sent to. CloudWatch Logs, Amazon S3, Firehose, and X-Ray are supported as delivery destinations.

To configure logs delivery between a supported AWS service and a destination, you must do the following:

  • Create a delivery source, which is a logical object that represents the resource that is actually sending the logs. For more information, see PutDeliverySource .
  • Create a delivery destination , which is a logical object that represents the actual delivery destination.
  • If you are delivering logs cross-account, you must use PutDeliveryDestinationPolicy in the destination account to assign an IAM policy to the destination. This policy allows delivery to that destination.
  • Create a delivery by pairing exactly one delivery source and one delivery destination. For more information, see CreateDelivery .

You can configure a single delivery source to send logs to multiple destinations by creating multiple deliveries. You can also create multiple deliveries to configure multiple delivery sources to send logs to the same delivery destination.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.cfnpropertymixins.services.logs.*;
 import software.amazon.awscdk.*;
 Object deliveryDestinationPolicy;
 IMergeStrategy mergeStrategy;
 CfnDeliveryDestinationPropsMixin cfnDeliveryDestinationPropsMixin = CfnDeliveryDestinationPropsMixin.Builder.create(CfnDeliveryDestinationMixinProps.builder()
         .deliveryDestinationPolicy(DestinationPolicyProperty.builder()
                 .deliveryDestinationName("deliveryDestinationName")
                 .deliveryDestinationPolicy(deliveryDestinationPolicy)
                 .build())
         .deliveryDestinationType("deliveryDestinationType")
         .destinationResourceArn("destinationResourceArn")
         .name("name")
         .outputFormat("outputFormat")
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build())
 .strategy(mergeStrategy)
 .build();
 

See Also:
  • Field Details

    • CFN_PROPERTY_KEYS

      @Stability(Stable) protected static final List<String> CFN_PROPERTY_KEYS
  • Constructor Details

    • CfnDeliveryDestinationPropsMixin

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

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

      @Stability(Stable) public CfnDeliveryDestinationPropsMixin(@NotNull CfnDeliveryDestinationMixinProps props, @Nullable CfnPropertyMixinOptions options)
      Create a mixin to apply properties to AWS::Logs::DeliveryDestination.

      Parameters:
      props - L1 properties to apply. This parameter is required.
      options - Mixin options.
    • CfnDeliveryDestinationPropsMixin

      @Stability(Stable) public CfnDeliveryDestinationPropsMixin(@NotNull CfnDeliveryDestinationMixinProps props)
      Create a mixin to apply properties to AWS::Logs::DeliveryDestination.

      Parameters:
      props - L1 properties to apply. This parameter is required.
  • Method Details

    • applyTo

      @Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct)
      Apply the mixin properties to the construct.

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

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

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

      @Stability(Stable) @NotNull protected CfnDeliveryDestinationMixinProps getProps()
    • getStrategy

      @Stability(Stable) @NotNull protected IMergeStrategy getStrategy()