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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnDeliveryDestinationPropsMixin.static interfaceAn IAM policy that grants permissions to CloudWatch Logs to deliver logs cross-account to a specified destination in this account.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::Logs::DeliveryDestination.CfnDeliveryDestinationPropsMixin(CfnDeliveryDestinationMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::Logs::DeliveryDestination.protectedCfnDeliveryDestinationPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDeliveryDestinationPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnDeliveryDestinationMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
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 toAWS::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 toAWS::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. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-