class CfnDeliverySourcePropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Logs.Mixins.CfnDeliverySourcePropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awslogs/mixins#CfnDeliverySourcePropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.logs.mixins.CfnDeliverySourcePropsMixin |
Python | aws_cdk.mixins_preview.aws_logs.mixins.CfnDeliverySourcePropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_logs » mixins » CfnDeliverySourcePropsMixin |
Implements
IMixin
Extends
Mixin
Creates or updates one delivery source in your account.
A delivery source is an AWS resource that sends logs to an AWS destination. The destination can be CloudWatch Logs , Amazon S3 , or Firehose .
Only some AWS services support being configured as a delivery source. These services are listed as Supported [V2 Permissions] in the table at Enabling logging from AWS services.
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.
- Create a delivery destination , which is a logical object that represents the actual delivery destination. For more information, see AWS::Logs::DeliveryDestination or PutDeliveryDestination .
- Create a delivery by pairing exactly one delivery source and one delivery destination. For more information, see AWS::Logs::Delivery or 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.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-deliverysource.html
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';
const cfnDeliverySourcePropsMixin = new logs_mixins.CfnDeliverySourcePropsMixin({
logType: 'logType',
name: 'name',
resourceArn: 'resourceArn',
tags: [{
key: 'key',
value: 'value',
}],
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnDeliverySourcePropsMixin(props: CfnDeliverySourceMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Delivery Source Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::Logs::DeliverySource.
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