Show / Hide Table of Contents

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

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-deliverydestination.html

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

object

Remarks

For examples of this policy, see Examples in the CloudWatch Logs API Reference.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-deliverydestination.html#cfn-logs-deliverydestination-deliverydestinationpolicy

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

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-deliverydestination.html#cfn-logs-deliverydestination-deliverydestinationtype

DestinationResourceArn

The ARN of the AWS destination that this delivery destination represents.

string? DestinationResourceArn { get; }
Property Value

string

Remarks

That AWS destination can be a log group in CloudWatch Logs , an Amazon S3 bucket, or a Firehose stream.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-deliverydestination.html#cfn-logs-deliverydestination-destinationresourcearn

Name

The name of this delivery destination.

string Name { get; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-deliverydestination.html#cfn-logs-deliverydestination-name

OutputFormat

The format of the logs that are sent to this delivery destination.

string? OutputFormat { get; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-deliverydestination.html#cfn-logs-deliverydestination-outputformat

Tags

An array of key-value pairs to apply to the delivery destination.

ICfnTag[]? Tags { get; }
Property Value

ICfnTag[]

Remarks

For more information, see Tag .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-deliverydestination.html#cfn-logs-deliverydestination-tags

Back to top Generated by DocFX