Class CfnDeliveryDestination
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
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IDeliveryDestinationRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:13.146Z")
@Stability(Stable)
public class CfnDeliveryDestination
extends CfnResource
implements IInspectable, IDeliveryDestinationRef, ITaggableV2
This structure contains information about one delivery destination in your account.
A delivery destination is an AWS resource that represents an AWS service that logs can be sent to. CloudWatch Logs, Amazon S3, Firehose, and X-Ray are supported as delivery destinations.
To configure logs delivery between a supported AWS service and a destination, you must do the following:
- Create a delivery source, which is a logical object that represents the resource that is actually sending the logs. For more information, see PutDeliverySource .
- Create a delivery destination , which is a logical object that represents the actual delivery destination.
- If you are delivering logs cross-account, you must use PutDeliveryDestinationPolicy in the destination account to assign an IAM policy to the destination. This policy allows delivery to that destination.
- Create a delivery by pairing exactly one delivery source and one delivery destination. For more information, see CreateDelivery .
You can configure a single delivery source to send logs to multiple destinations by creating multiple deliveries. You can also create multiple deliveries to configure multiple delivery sources to send logs to the same delivery destination.
Example:
// 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.*;
Object deliveryDestinationPolicy;
CfnDeliveryDestination cfnDeliveryDestination = CfnDeliveryDestination.Builder.create(this, "MyCfnDeliveryDestination")
.name("name")
// the properties below are optional
.deliveryDestinationPolicy(DestinationPolicyProperty.builder()
.deliveryDestinationName("deliveryDestinationName")
.deliveryDestinationPolicy(deliveryDestinationPolicy)
.build())
.deliveryDestinationType("deliveryDestinationType")
.destinationResourceArn("destinationResourceArn")
.outputFormat("outputFormat")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnDeliveryDestination.static interfaceAn IAM policy that grants permissions to CloudWatch Logs to deliver logs cross-account to a specified destination in this account.Nested 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
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnDeliveryDestination(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDeliveryDestination(software.amazon.jsii.JsiiObjectRef objRef) CfnDeliveryDestination(software.constructs.Construct scope, String id, CfnDeliveryDestinationProps props) Create a newAWS::Logs::DeliveryDestination. -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic IDeliveryDestinationReffromDeliveryDestinationArn(software.constructs.Construct scope, String id, String arn) Creates a new IDeliveryDestinationRef from an ARN.static IDeliveryDestinationReffromDeliveryDestinationName(software.constructs.Construct scope, String id, String deliveryDestinationName) Creates a new IDeliveryDestinationRef from a deliveryDestinationName.The Amazon Resource Name (ARN) that uniquely identifies this delivery destination.Tag Manager which manages the tags for this resource.An IAM policy that grants permissions to CloudWatch Logs to deliver logs cross-account to a specified destination in this account.A reference to a DeliveryDestination resource.Displays whether this delivery destination is CloudWatch Logs, Amazon S3, Firehose, or X-Ray.The ARN of the AWS destination that this delivery destination represents.getName()The name of this delivery destination.The format of the logs that are sent to this delivery destination.getTags()An array of key-value pairs to apply to the delivery destination.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnDeliveryDestination.renderProperties(Map<String, Object> props) voidAn IAM policy that grants permissions to CloudWatch Logs to deliver logs cross-account to a specified destination in this account.voidAn IAM policy that grants permissions to CloudWatch Logs to deliver logs cross-account to a specified destination in this account.voidsetDeliveryDestinationType(String value) Displays whether this delivery destination is CloudWatch Logs, Amazon S3, Firehose, or X-Ray.voidsetDestinationResourceArn(String value) The ARN of the AWS destination that this delivery destination represents.voidThe name of this delivery destination.voidsetOutputFormat(String value) The format of the logs that are sent to this delivery destination.voidAn array of key-value pairs to apply to the delivery destination.Methods 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, overrideLogicalIdMethods 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
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnDeliveryDestination
protected CfnDeliveryDestination(software.amazon.jsii.JsiiObjectRef objRef) -
CfnDeliveryDestination
protected CfnDeliveryDestination(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnDeliveryDestination
@Stability(Stable) public CfnDeliveryDestination(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnDeliveryDestinationProps props) Create a newAWS::Logs::DeliveryDestination.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForDeliveryDestination
@Stability(Stable) @NotNull public static String arnForDeliveryDestination(@NotNull IDeliveryDestinationRef resource) - Parameters:
resource- This parameter is required.
-
fromDeliveryDestinationArn
@Stability(Stable) @NotNull public static IDeliveryDestinationRef fromDeliveryDestinationArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn) Creates a new IDeliveryDestinationRef from an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.arn- This parameter is required.
-
fromDeliveryDestinationName
@Stability(Stable) @NotNull public static IDeliveryDestinationRef fromDeliveryDestinationName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String deliveryDestinationName) Creates a new IDeliveryDestinationRef from a deliveryDestinationName.- Parameters:
scope- This parameter is required.id- This parameter is required.deliveryDestinationName- This parameter is required.
-
isCfnDeliveryDestination
Checks whether the given object is a CfnDeliveryDestination.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) that uniquely identifies this delivery destination. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getDeliveryDestinationRef
A reference to a DeliveryDestination resource.- Specified by:
getDeliveryDestinationRefin interfaceIDeliveryDestinationRef
-
getName
The name of this delivery destination. -
setName
The name of this delivery destination. -
getDeliveryDestinationPolicy
An IAM policy that grants permissions to CloudWatch Logs to deliver logs cross-account to a specified destination in this account.Returns union: either
IResolvableorCfnDeliveryDestination.DestinationPolicyProperty -
setDeliveryDestinationPolicy
An IAM policy that grants permissions to CloudWatch Logs to deliver logs cross-account to a specified destination in this account. -
setDeliveryDestinationPolicy
@Stability(Stable) public void setDeliveryDestinationPolicy(@Nullable CfnDeliveryDestination.DestinationPolicyProperty value) An IAM policy that grants permissions to CloudWatch Logs to deliver logs cross-account to a specified destination in this account. -
getDeliveryDestinationType
Displays whether this delivery destination is CloudWatch Logs, Amazon S3, Firehose, or X-Ray. -
setDeliveryDestinationType
Displays whether this delivery destination is CloudWatch Logs, Amazon S3, Firehose, or X-Ray. -
getDestinationResourceArn
The ARN of the AWS destination that this delivery destination represents. -
setDestinationResourceArn
The ARN of the AWS destination that this delivery destination represents. -
getOutputFormat
The format of the logs that are sent to this delivery destination. -
setOutputFormat
The format of the logs that are sent to this delivery destination. -
getTags
An array of key-value pairs to apply to the delivery destination. -
setTags
An array of key-value pairs to apply to the delivery destination.
-