Interface CfnDeliveryDestinationProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDeliveryDestinationProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-04-02T21:55:14.174Z")
@Stability(Stable)
public interface CfnDeliveryDestinationProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnDeliveryDestination.
Example:
import software.amazon.awscdk.mixins.preview.services.cloudfront.mixins.*;
// Create CloudFront distribution
IBucket origin;
Distribution distribution = Distribution.Builder.create(scope, "Distribution")
.defaultBehavior(BehaviorOptions.builder()
.origin(S3BucketOrigin.withOriginAccessControl(origin))
.build())
.build();
// Create destination bucket
Bucket destBucket = new Bucket(scope, "DeliveryBucket");
// Add permissions to bucket to facilitate log delivery
BucketPolicy bucketPolicy = BucketPolicy.Builder.create(scope, "DeliveryBucketPolicy")
.bucket(destBucket)
.document(new PolicyDocument())
.build();
// Create S3 delivery destination for logs
CfnDeliveryDestination destination = CfnDeliveryDestination.Builder.create(scope, "Destination")
.destinationResourceArn(destBucket.getBucketArn())
.name("unique-destination-name")
.deliveryDestinationType("S3")
.build();
distribution.with(CfnDistributionLogsMixin.CONNECTION_LOGS.toDestination(destination));
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDeliveryDestinationPropsstatic final classAn implementation forCfnDeliveryDestinationProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectAn IAM policy that grants permissions to CloudWatch Logs to deliver logs cross-account to a specified destination in this account.default StringDisplays whether this delivery destination is CloudWatch Logs, Amazon S3, Firehose, or X-Ray.default StringThe ARN of the AWS destination that this delivery destination represents.getName()The name of this delivery destination.default StringThe format of the logs that are sent to this delivery destination.getTags()An array of key-value pairs to apply to the delivery destination.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getName
The name of this delivery destination.- See Also:
-
getDeliveryDestinationPolicy
An IAM policy that grants permissions to CloudWatch Logs to deliver logs cross-account to a specified destination in this account.For examples of this policy, see Examples in the CloudWatch Logs API Reference.
Returns union: either
IResolvableorCfnDeliveryDestination.DestinationPolicyProperty- See Also:
-
getDeliveryDestinationType
Displays whether this delivery destination is CloudWatch Logs, Amazon S3, Firehose, or X-Ray.- See Also:
-
getDestinationResourceArn
The ARN of the AWS destination that this delivery destination represents.That AWS destination can be a log group in CloudWatch Logs , an Amazon S3 bucket, or a Firehose stream.
- See Also:
-
getOutputFormat
The format of the logs that are sent to this delivery destination.- See Also:
-
getTags
An array of key-value pairs to apply to the delivery destination.For more information, see Tag .
- See Also:
-
builder
-