class CfnDeliveryDestinationPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Logs.Mixins.CfnDeliveryDestinationPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awslogs/mixins#CfnDeliveryDestinationPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.logs.mixins.CfnDeliveryDestinationPropsMixin |
Python | aws_cdk.mixins_preview.aws_logs.mixins.CfnDeliveryDestinationPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_logs » mixins » CfnDeliveryDestinationPropsMixin |
Implements
IMixin
Extends
Mixin
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 { mixins } from '@aws-cdk/mixins-preview';
import { mixins as logs_mixins } from '@aws-cdk/mixins-preview/aws-logs';
declare const deliveryDestinationPolicy: any;
const cfnDeliveryDestinationPropsMixin = new logs_mixins.CfnDeliveryDestinationPropsMixin({
deliveryDestinationPolicy: {
deliveryDestinationName: 'deliveryDestinationName',
deliveryDestinationPolicy: deliveryDestinationPolicy,
},
deliveryDestinationType: 'deliveryDestinationType',
destinationResourceArn: 'destinationResourceArn',
name: 'name',
outputFormat: 'outputFormat',
tags: [{
key: 'key',
value: 'value',
}],
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnDeliveryDestinationPropsMixin(props: CfnDeliveryDestinationMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Delivery Destination Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::Logs::DeliveryDestination.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript