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
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-05T03:43:44.322Z")
@Stability(Stable)
public class CfnMalwareProtectionPlan
extends CfnResource
implements IInspectable, 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
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnMalwareProtectionPlan
.static interface
Specifies the action that is to be applied to the Malware Protection plan resource.static interface
Information about the protected resource.static interface
Information about the status code and status details associated with the status of the Malware Protection plan.static interface
Contains information about tagging status of the Malware Protection plan resource.static interface
Information about the protected S3 bucket resource.static interface
Contains information about a tag.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
CfnMalwareProtectionPlan
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnMalwareProtectionPlan
(software.amazon.jsii.JsiiObjectRef objRef) CfnMalwareProtectionPlan
(software.constructs.Construct scope, String id, CfnMalwareProtectionPlanProps props) -
Method Summary
Modifier and TypeMethodDescriptionSpecifies 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.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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setActions
(IResolvable value) Specifies the action that is to be applied to the Malware Protection plan resource.void
Specifies the action that is to be applied to the Malware Protection plan resource.void
setProtectedResource
(IResolvable value) Information about the protected resource.void
Information about the protected resource.void
Amazon Resource Name (ARN) of the IAM role that includes the permissions required to scan and (optionally) add tags to the associated protected resource.void
The 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, 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
-
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
-
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
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:
getCdkTagManager
in interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getProtectedResource
Information about the protected resource. -
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. -
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.
-