java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.mixins.preview.services.shield.mixins.CfnProtectionFlowLogs
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.126.0 (build 206d44b)", date="2026-02-19T19:24:02.900Z") @Stability(Stable) public class CfnProtectionFlowLogs extends software.amazon.jsii.JsiiObject
Builder for CfnProtectionLogsMixin to generate FLOW_LOGS for CfnProtection.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.mixins.preview.services.shield.mixins.*;
 CfnProtectionFlowLogs cfnProtectionFlowLogs = new CfnProtectionFlowLogs();
 
  • Constructor Details

    • CfnProtectionFlowLogs

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

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

      @Stability(Experimental) public CfnProtectionFlowLogs()
  • Method Details

    • toDestination

      @Stability(Stable) @NotNull public CfnProtectionLogsMixin toDestination(@NotNull IDeliveryDestinationRef destination)
      Delivers logs to a pre-created delivery destination.

      Supported destinations are S3, CWL, FH You are responsible for setting up the correct permissions for your delivery destination, toDestination() does not set up any permissions for you. Delivery destinations that are imported from another stack using CfnDeliveryDestination.fromDeliveryDestinationArn() or CfnDeliveryDestination.fromDeliveryDestinationName() are supported by toDestination().

      Parameters:
      destination - This parameter is required.
    • toFirehose

      @Stability(Stable) @NotNull public CfnProtectionLogsMixin toFirehose(@NotNull IDeliveryStreamRef deliveryStream)
      Send logs to a Firehose Delivery Stream.

      Parameters:
      deliveryStream - This parameter is required.
    • toLogGroup

      @Stability(Stable) @NotNull public CfnProtectionLogsMixin toLogGroup(@NotNull ILogGroupRef logGroup)
      Send logs to a CloudWatch Log Group.

      Parameters:
      logGroup - This parameter is required.
    • toS3

      @Stability(Stable) @NotNull public CfnProtectionLogsMixin toS3(@NotNull IBucketRef bucket, @Nullable IS3LogsDestinationProps props)
      Send logs to an S3 Bucket.

      Parameters:
      bucket - This parameter is required.
      props -
    • toS3

      @Stability(Stable) @NotNull public CfnProtectionLogsMixin toS3(@NotNull IBucketRef bucket)
      Send logs to an S3 Bucket.

      Parameters:
      bucket - This parameter is required.