Class S3DeliveryDestination
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.logs.CfnDeliveryDestination
software.amazon.awscdk.mixins.preview.services.logs.S3DeliveryDestination
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IDeliveryDestinationRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-02T12:05:27.413Z")
@Stability(Experimental)
public class S3DeliveryDestination
extends CfnDeliveryDestination
(experimental) Creates an S3 delivery destination for CloudWatch Logs.
Example:
import software.amazon.awscdk.mixins.preview.services.logs.*;
import software.amazon.awscdk.mixins.preview.services.cloudfront.mixins.*;
// Create CloudFront distribution
IBucket origin;
String destinationAccount = "123456789012";
String sourceAccount = "234567890123";
String region = "us-east-1";
App app = new App();
Stack destStack = Stack.Builder.create(app, "destination-stack")
.env(Environment.builder()
.account(destinationAccount)
.region(region)
.build())
.build();
// Create destination bucket
Bucket destBucket = new Bucket(destStack, "DeliveryBucket");
S3DeliveryDestination.Builder.create(destStack, "Destination")
.bucket(destBucket)
.sourceAccountId(sourceAccount)
.build();
Stack sourceStack = Stack.Builder.create(app, "source-stack")
.env(Environment.builder()
.account(sourceAccount)
.region(region)
.build())
.build();
Distribution distribution = Distribution.Builder.create(sourceStack, "Distribution")
.defaultBehavior(BehaviorOptions.builder()
.origin(S3BucketOrigin.withOriginAccessControl(origin))
.build())
.build();
IDeliveryDestinationRef destination = CfnDeliveryDestination.fromDeliveryDestinationArn(sourceStack, "Destination", "arn of Delivery Destination in destinationAccount");
distribution.with(CfnDistributionLogsMixin.CONNECTION_LOGS.toDestination(destination));
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class(experimental) A fluent builder forS3DeliveryDestination.Nested classes/interfaces inherited from class software.amazon.awscdk.services.logs.CfnDeliveryDestination
CfnDeliveryDestination.DestinationPolicyPropertyNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.logs.IDeliveryDestinationRef
IDeliveryDestinationRef.Jsii$Default, IDeliveryDestinationRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
Fields inherited from class software.amazon.awscdk.services.logs.CfnDeliveryDestination
CFN_RESOURCE_TYPE_NAME -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedS3DeliveryDestination(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedS3DeliveryDestination(software.amazon.jsii.JsiiObjectRef objRef) S3DeliveryDestination(software.constructs.Construct scope, String id, S3DeliveryDestinationProps props) -
Method Summary
Methods inherited from class software.amazon.awscdk.services.logs.CfnDeliveryDestination
arnForDeliveryDestination, fromDeliveryDestinationArn, fromDeliveryDestinationName, getAttrArn, getCdkTagManager, getCfnProperties, getDeliveryDestinationPolicy, getDeliveryDestinationRef, getDeliveryDestinationType, getDestinationResourceArn, getName, getOutputFormat, getTags, inspect, isCfnDeliveryDestination, renderProperties, setDeliveryDestinationPolicy, setDeliveryDestinationPolicy, setDeliveryDestinationType, setDestinationResourceArn, setName, setOutputFormat, setTagsMethods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
S3DeliveryDestination
protected S3DeliveryDestination(software.amazon.jsii.JsiiObjectRef objRef) -
S3DeliveryDestination
protected S3DeliveryDestination(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
S3DeliveryDestination
@Stability(Experimental) public S3DeliveryDestination(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull S3DeliveryDestinationProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-