Interface CfnMalwareProtectionPlanProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnMalwareProtectionPlanProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-17T14:40:53.459Z")
@Stability(Stable)
public interface CfnMalwareProtectionPlanProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnMalwareProtectionPlan.
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.*;
CfnMalwareProtectionPlanProps cfnMalwareProtectionPlanProps = CfnMalwareProtectionPlanProps.builder()
.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 TypeInterfaceDescriptionstatic final classA builder forCfnMalwareProtectionPlanPropsstatic final classAn implementation forCfnMalwareProtectionPlanProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectSpecifies the action that is to be applied to the Malware Protection plan 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.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getProtectedResource
Information about the protected resource.Presently,
S3Bucketis the only supported protected resource.Returns union: either
IResolvableorCfnMalwareProtectionPlan.CFNProtectedResourceProperty- See Also:
-
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.To find the ARN of your IAM role, go to the IAM console, and select the role name for details.
- See Also:
-
getActions
Specifies the action that is to be applied to the Malware Protection plan resource.Returns union: either
IResolvableorCfnMalwareProtectionPlan.CFNActionsProperty- See Also:
-
getTags
The tags to be added to the created Malware Protection plan resource.Each tag consists of a key and an optional value, both of which you need to specify.
- See Also:
-
builder
-