Class CfnMalwareProtectionPlan
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.CfnMalwareProtectionPlan
- All Implemented Interfaces:
IInspectable,ITaggableV2,IMalwareProtectionPlanRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:39.698Z")
@Stability(Stable)
public class CfnMalwareProtectionPlan
extends CfnResource
implements IInspectable, IMalwareProtectionPlanRef, ITaggableV2
Creates a new Malware Protection plan for the protected resource.
When you create a Malware Protection plan, the AWS service terms for GuardDuty Malware Protection will apply.
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.*;
CfnMalwareProtectionPlan cfnMalwareProtectionPlan = CfnMalwareProtectionPlan.Builder.create(this, "MyCfnMalwareProtectionPlan")
.protectedResource(CFNProtectedResourceProperty.builder()
.s3Bucket(S3BucketProperty.builder()
.bucketName("bucketName")
.objectPrefixes(List.of("objectPrefixes"))
.build())
.build())
.role("role")
// the properties below are optional
.actions(CFNActionsProperty.builder()
.tagging(CFNTaggingProperty.builder()
.status("status")
.build())
.build())
.tags(List.of(TagItemProperty.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnMalwareProtectionPlan.static interfaceSpecifies the action that is to be applied to the Malware Protection plan resource.static interfaceInformation about the protected resource.static interfaceInformation about the status code and status details associated with the status of the Malware Protection plan.static interfaceContains information about tagging status of the Malware Protection plan resource.static interfaceInformation about the protected S3 bucket resource.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.services.guardduty.IMalwareProtectionPlanRef
IMalwareProtectionPlanRef.Jsii$Default, IMalwareProtectionPlanRef.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
ConstructorsModifierConstructorDescriptionprotectedCfnMalwareProtectionPlan(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnMalwareProtectionPlan(software.amazon.jsii.JsiiObjectRef objRef) CfnMalwareProtectionPlan(software.constructs.Construct scope, String id, CfnMalwareProtectionPlanProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IMalwareProtectionPlanReffromMalwareProtectionPlanArn(software.constructs.Construct scope, String id, String arn) Creates a new IMalwareProtectionPlanRef from an ARN.static IMalwareProtectionPlanReffromMalwareProtectionPlanId(software.constructs.Construct scope, String id, String malwareProtectionPlanId) Creates a new IMalwareProtectionPlanRef from a malwareProtectionPlanId.Specifies the action that is to be applied to the Malware Protection plan resource.Amazon Resource Name (ARN) associated with this Malware Protection plan.The timestamp when the Malware Protection plan resource was created.A unique identifier associated with Malware Protection plan.Status of the Malware Protection plan resource.Status details associated with the Malware Protection plan resource status.Tag Manager which manages the tags for this resource.A reference to a MalwareProtectionPlan resource.Information about the protected resource.getRole()Amazon Resource Name (ARN) of the IAM role that includes the permissions required to scan and (optionally) add tags to the associated protected resource.getTags()The tags to be added to the created Malware Protection plan resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetActions(IResolvable value) Specifies the action that is to be applied to the Malware Protection plan resource.voidSpecifies the action that is to be applied to the Malware Protection plan resource.voidsetProtectedResource(IResolvable value) Information about the protected resource.voidInformation about the protected resource.voidAmazon Resource Name (ARN) of the IAM role that includes the permissions required to scan and (optionally) add tags to the associated protected resource.voidThe tags to be added to the created Malware Protection plan resource.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, 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.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnMalwareProtectionPlan
protected CfnMalwareProtectionPlan(software.amazon.jsii.JsiiObjectRef objRef) -
CfnMalwareProtectionPlan
protected CfnMalwareProtectionPlan(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnMalwareProtectionPlan
@Stability(Stable) public CfnMalwareProtectionPlan(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnMalwareProtectionPlanProps 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
-
fromMalwareProtectionPlanArn
@Stability(Stable) @NotNull public static IMalwareProtectionPlanRef fromMalwareProtectionPlanArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn) Creates a new IMalwareProtectionPlanRef from an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.arn- This parameter is required.
-
fromMalwareProtectionPlanId
@Stability(Stable) @NotNull public static IMalwareProtectionPlanRef fromMalwareProtectionPlanId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String malwareProtectionPlanId) Creates a new IMalwareProtectionPlanRef from a malwareProtectionPlanId.- Parameters:
scope- This parameter is required.id- This parameter is required.malwareProtectionPlanId- 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
Amazon Resource Name (ARN) associated with this Malware Protection plan. -
getAttrCreatedAt
The timestamp when the Malware Protection plan resource was created. -
getAttrMalwareProtectionPlanId
A unique identifier associated with Malware Protection plan. -
getAttrStatus
Status of the Malware Protection plan resource. -
getAttrStatusReasons
Status details associated with the Malware Protection plan resource status. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getMalwareProtectionPlanRef
A reference to a MalwareProtectionPlan resource.- Specified by:
getMalwareProtectionPlanRefin interfaceIMalwareProtectionPlanRef
-
getProtectedResource
Information about the protected resource.Returns union: either
IResolvableorCfnMalwareProtectionPlan.CFNProtectedResourceProperty -
setProtectedResource
Information about the protected resource. -
setProtectedResource
@Stability(Stable) public void setProtectedResource(@NotNull CfnMalwareProtectionPlan.CFNProtectedResourceProperty value) Information about the protected resource. -
getRole
Amazon Resource Name (ARN) of the IAM role that includes the permissions required to scan and (optionally) add tags to the associated protected resource. -
setRole
Amazon Resource Name (ARN) of the IAM role that includes the permissions required to scan and (optionally) add tags to the associated protected resource. -
getActions
Specifies the action that is to be applied to the Malware Protection plan resource.Returns union: either
IResolvableorCfnMalwareProtectionPlan.CFNActionsProperty -
setActions
Specifies the action that is to be applied to the Malware Protection plan resource. -
setActions
@Stability(Stable) public void setActions(@Nullable CfnMalwareProtectionPlan.CFNActionsProperty value) Specifies the action that is to be applied to the Malware Protection plan resource. -
getTags
The tags to be added to the created Malware Protection plan resource. -
setTags
@Stability(Stable) public void setTags(@Nullable List<CfnMalwareProtectionPlan.TagItemProperty> value) The tags to be added to the created Malware Protection plan resource.
-