Class CfnPublishingDestination
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.guardduty.CfnPublishingDestination
- All Implemented Interfaces:
IInspectable,IPublishingDestinationRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:07.083Z")
@Stability(Stable)
public class CfnPublishingDestination
extends CfnResource
implements IInspectable, IPublishingDestinationRef, ITaggableV2
Creates a publishing destination where you can export your GuardDuty findings.
Before you start exporting the findings, the destination resource must exist.
For more information about considerations and permissions, see Exporting GuardDuty findings to Amazon S3 buckets in the Amazon GuardDuty User Guide .
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.guardduty.*;
CfnPublishingDestination cfnPublishingDestination = CfnPublishingDestination.Builder.create(this, "MyCfnPublishingDestination")
.destinationProperties(CFNDestinationPropertiesProperty.builder()
.destinationArn("destinationArn")
.kmsKeyArn("kmsKeyArn")
.build())
.destinationType("destinationType")
.detectorId("detectorId")
// the properties below are optional
.tags(List.of(TagItemProperty.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnPublishingDestination.static interfaceContains the Amazon Resource Name (ARN) of the resource that receives the published findings, such as an S3 bucket, and the ARN of the KMS key that is used to encrypt these published findings.static interfaceDescribes a tag.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.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.guardduty.IPublishingDestinationRef
IPublishingDestinationRef.Jsii$Default, IPublishingDestinationRef.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
ConstructorsModifierConstructorDescriptionprotectedCfnPublishingDestination(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnPublishingDestination(software.amazon.jsii.JsiiObjectRef objRef) CfnPublishingDestination(software.constructs.Construct scope, String id, CfnPublishingDestinationProps props) Create a newAWS::GuardDuty::PublishingDestination. -
Method Summary
Modifier and TypeMethodDescriptionThe ID of the publishing destination.The time, in epoch millisecond format, at which GuardDuty was first unable to publish findings to the destination.The status of the publishing destination.Tag Manager which manages the tags for this resource.Contains the Amazon Resource Name (ARN) of the resource to publish to, such as an S3 bucket, and the ARN of the KMS key to use to encrypt published findings.The type of publishing destination.The ID of the GuardDuty detector where the publishing destination exists.A reference to a PublishingDestination resource.getTags()Describes a tag.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidContains the Amazon Resource Name (ARN) of the resource to publish to, such as an S3 bucket, and the ARN of the KMS key to use to encrypt published findings.voidContains the Amazon Resource Name (ARN) of the resource to publish to, such as an S3 bucket, and the ARN of the KMS key to use to encrypt published findings.voidsetDestinationType(String value) The type of publishing destination.voidsetDetectorId(String value) The ID of the GuardDuty detector where the publishing destination exists.voidDescribes a tag.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
-
CfnPublishingDestination
protected CfnPublishingDestination(software.amazon.jsii.JsiiObjectRef objRef) -
CfnPublishingDestination
protected CfnPublishingDestination(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnPublishingDestination
@Stability(Stable) public CfnPublishingDestination(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnPublishingDestinationProps props) Create a newAWS::GuardDuty::PublishingDestination.- 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:
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.
-
getAttrId
The ID of the publishing destination. -
getAttrPublishingFailureStartTimestamp
The time, in epoch millisecond format, at which GuardDuty was first unable to publish findings to the destination. -
getAttrStatus
The status of the publishing destination. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getPublishingDestinationRef
A reference to a PublishingDestination resource.- Specified by:
getPublishingDestinationRefin interfaceIPublishingDestinationRef
-
getDestinationProperties
Contains the Amazon Resource Name (ARN) of the resource to publish to, such as an S3 bucket, and the ARN of the KMS key to use to encrypt published findings.Returns union: either
IResolvableorCfnPublishingDestination.CFNDestinationPropertiesProperty -
setDestinationProperties
Contains the Amazon Resource Name (ARN) of the resource to publish to, such as an S3 bucket, and the ARN of the KMS key to use to encrypt published findings. -
setDestinationProperties
@Stability(Stable) public void setDestinationProperties(@NotNull CfnPublishingDestination.CFNDestinationPropertiesProperty value) Contains the Amazon Resource Name (ARN) of the resource to publish to, such as an S3 bucket, and the ARN of the KMS key to use to encrypt published findings. -
getDestinationType
The type of publishing destination. -
setDestinationType
The type of publishing destination. -
getDetectorId
The ID of the GuardDuty detector where the publishing destination exists. -
setDetectorId
The ID of the GuardDuty detector where the publishing destination exists. -
getTags
Describes a tag. -
setTags
@Stability(Stable) public void setTags(@Nullable List<CfnPublishingDestination.TagItemProperty> value) Describes a tag.
-