Interface ICfnDeliveryDestinationProps
Properties for defining a CfnDeliveryDestination.
Namespace: Amazon.CDK.AWS.Logs
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICfnDeliveryDestinationProps
Syntax (vb)
Public Interface ICfnDeliveryDestinationProps
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.Mixins.Preview.AWS.CloudFront.Mixins;
// Create CloudFront distribution
Bucket bucket;
var distribution = new Distribution(scope, "Distribution", new DistributionProps {
DefaultBehavior = new BehaviorOptions {
Origin = S3BucketOrigin.WithOriginAccessControl(bucket)
}
});
// Create destination bucket
var destBucket = new Bucket(scope, "DeliveryBucket");
// Add permissions to bucket to facilitate log delivery
var bucketPolicy = new BucketPolicy(scope, "DeliveryBucketPolicy", new BucketPolicyProps {
Bucket = destBucket,
Document = new PolicyDocument()
});
// Create S3 delivery destination for logs
var destination = new CfnDeliveryDestination(scope, "Destination", new CfnDeliveryDestinationProps {
DestinationResourceArn = destBucket.BucketArn,
Name = "unique-destination-name",
DeliveryDestinationType = "S3"
});
distribution.With(CfnDistributionLogsMixin.CONNECTION_LOGS.ToDestination(destination));
Synopsis
Properties
| DeliveryDestinationPolicy | An IAM policy that grants permissions to CloudWatch Logs to deliver logs cross-account to a specified destination in this account. |
| DeliveryDestinationType | Displays whether this delivery destination is CloudWatch Logs, Amazon S3, Firehose, or X-Ray. |
| DestinationResourceArn | The ARN of the AWS destination that this delivery destination represents. |
| Name | The name of this delivery destination. |
| OutputFormat | The format of the logs that are sent to this delivery destination. |
| Tags | An array of key-value pairs to apply to the delivery destination. |
Properties
DeliveryDestinationPolicy
An IAM policy that grants permissions to CloudWatch Logs to deliver logs cross-account to a specified destination in this account.
object? DeliveryDestinationPolicy { get; }
Property Value
Remarks
For examples of this policy, see Examples in the CloudWatch Logs API Reference.
Type union: either IResolvable or CfnDeliveryDestination.IDestinationPolicyProperty
DeliveryDestinationType
Displays whether this delivery destination is CloudWatch Logs, Amazon S3, Firehose, or X-Ray.
string? DeliveryDestinationType { get; }
Property Value
Remarks
DestinationResourceArn
The ARN of the AWS destination that this delivery destination represents.
string? DestinationResourceArn { get; }
Property Value
Remarks
That AWS destination can be a log group in CloudWatch Logs , an Amazon S3 bucket, or a Firehose stream.
Name
The name of this delivery destination.
string Name { get; }
Property Value
Remarks
OutputFormat
The format of the logs that are sent to this delivery destination.
string? OutputFormat { get; }
Property Value
Remarks
Tags
An array of key-value pairs to apply to the delivery destination.
ICfnTag[]? Tags { get; }
Property Value
ICfnTag[]