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
,ITaggableV2
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-17T21:37:33.759Z")
@Stability(Stable)
public class CfnDeliveryDestination
extends CfnResource
implements IInspectable, 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, are supported as Firehose 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(deliveryDestinationPolicy) .destinationResourceArn("destinationResourceArn") .outputFormat("outputFormat") .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnDeliveryDestination
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnDeliveryDestination
(software.amazon.jsii.JsiiObjectRef objRef) CfnDeliveryDestination
(software.constructs.Construct scope, String id, CfnDeliveryDestinationProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) that uniquely identifies this delivery destination.Displays whether this delivery destination is CloudWatch Logs, Amazon S3, or Firehose.Tag Manager which manages the tags for this resource.A structure that contains information about one delivery destination policy.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()
The tags that have been assigned to this delivery destination.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
A structure that contains information about one delivery destination policy.void
setDestinationResourceArn
(String value) The ARN of the AWS destination that this delivery destination represents.void
The name of this delivery destination.void
setOutputFormat
(String value) The format of the logs that are sent to this delivery destination.void
The tags that have been assigned to this delivery destination.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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) - 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
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in 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:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) that uniquely identifies this delivery destination. -
getAttrDeliveryDestinationType
Displays whether this delivery destination is CloudWatch Logs, Amazon S3, or Firehose. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManager
in interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getName
The name of this delivery destination. -
setName
The name of this delivery destination. -
getDeliveryDestinationPolicy
A structure that contains information about one delivery destination policy. -
setDeliveryDestinationPolicy
A structure that contains information about one delivery destination policy. -
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
The tags that have been assigned to this delivery destination. -
setTags
The tags that have been assigned to this delivery destination.
-