Skip to content
v2.277.0

CfnDeliverySourceProps Struct ​

Properties for defining a CfnDeliverySource.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_logs as logs } from 'aws-cdk-lib';
const cfnDeliverySourceProps: logs.CfnDeliverySourceProps = {
  name: 'name',

  // the properties below are optional
  deliverySourceConfiguration: {
    deliverySourceConfigurationKey: 'deliverySourceConfiguration',
  },
  logType: 'logType',
  resourceArn: 'resourceArn',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_logs as logs

cfn_delivery_source_props = logs.CfnDeliverySourceProps(
    name="name",

    # the properties below are optional
    delivery_source_configuration={
        "delivery_source_configuration_key": "deliverySourceConfiguration"
    },
    log_type="logType",
    resource_arn="resourceArn",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.logs.*;

CfnDeliverySourceProps cfnDeliverySourceProps = CfnDeliverySourceProps.builder()
        .name("name")

        // the properties below are optional
        .deliverySourceConfiguration(Map.of(
                "deliverySourceConfigurationKey", "deliverySourceConfiguration"))
        .logType("logType")
        .resourceArn("resourceArn")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Logs;

var cfnDeliverySourceProps = new CfnDeliverySourceProps {
    Name = "name",

    // the properties below are optional
    DeliverySourceConfiguration = new Dictionary<string, string> {
        { "deliverySourceConfigurationKey", "deliverySourceConfiguration" }
    },
    LogType = "logType",
    ResourceArn = "resourceArn",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnDeliverySourceProps := &CfnDeliverySourceProps{
	Name: jsii.String("name"),

	// the properties below are optional
	DeliverySourceConfiguration: map[string]*string{
		"deliverySourceConfigurationKey": jsii.String("deliverySourceConfiguration"),
	},
	LogType: jsii.String("logType"),
	ResourceArn: jsii.String("resourceArn"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

deliverySourceConfigurationoptionalIResolvable | { [key: string]: string }delivery_source_configurationoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]deliverySourceConfigurationoptionalIResolvableDeliverySourceConfigurationoptionalIResolvableDeliverySourceConfigurationoptionalinterface{}#
A map of key-value pairs to configure the delivery source.

Both keys and values must be between 1 and 255 characters in length.

logTypeoptionalstringlog_typeoptionalstrlogTypeoptionalStringLogTypeoptionalstringLogTypeoptional*string#
The type of log that the source is sending.

For valid values for this parameter, see the documentation for the source service.

namestringnamestrnameStringNamestringName*stringrequired#
The unique name of the delivery source.
resourceArnoptionalstringresource_arnoptionalstrresourceArnoptionalStringResourceArnoptionalstringResourceArnoptional*string#
The ARN of the AWS resource that is generating and sending logs.

For example, arn:aws:workmail:us-east-1:123456789012:organization/m-1234EXAMPLEabcd1234abcd1234abcd1234

tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#
An array of key-value pairs to apply to the delivery source.

For more information, see Tag .