Class CfnMalwareProtectionPlan.Builder
java.lang.Object
software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlan.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMalwareProtectionPlan>
- Enclosing class:
CfnMalwareProtectionPlan
@Stability(Stable)
public static final class CfnMalwareProtectionPlan.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMalwareProtectionPlan>
A fluent builder for
CfnMalwareProtectionPlan
.-
Method Summary
Modifier and TypeMethodDescriptionactions
(IResolvable actions) Specifies the action that is to be applied to the Malware Protection plan resource.Specifies the action that is to be applied to the Malware Protection plan resource.build()
protectedResource
(IResolvable protectedResource) Information about the protected resource.protectedResource
(CfnMalwareProtectionPlan.CFNProtectedResourceProperty protectedResource) Information about the protected resource.Amazon Resource Name (ARN) of the IAM role that includes the permissions required to scan and (optionally) add tags to the associated protected resource.tags
(List<? extends CfnMalwareProtectionPlan.TagItemProperty> tags) The tags to be added to the created Malware Protection plan resource.
-
Method Details
-
create
@Stability(Stable) public static CfnMalwareProtectionPlan.Builder create(software.constructs.Construct scope, String id) - 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.- Returns:
- a new instance of
CfnMalwareProtectionPlan.Builder
.
-
protectedResource
@Stability(Stable) public CfnMalwareProtectionPlan.Builder protectedResource(IResolvable protectedResource) Information about the protected resource.Presently,
S3Bucket
is the only supported protected resource.- Parameters:
protectedResource
- Information about the protected resource. This parameter is required.- Returns:
this
- See Also:
-
protectedResource
@Stability(Stable) public CfnMalwareProtectionPlan.Builder protectedResource(CfnMalwareProtectionPlan.CFNProtectedResourceProperty protectedResource) Information about the protected resource.Presently,
S3Bucket
is the only supported protected resource.- Parameters:
protectedResource
- Information about the protected resource. This parameter is required.- Returns:
this
- See Also:
-
role
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.
- Parameters:
role
- Amazon Resource Name (ARN) of the IAM role that includes the permissions required to scan and (optionally) add tags to the associated protected resource. This parameter is required.- Returns:
this
- See Also:
-
actions
Specifies the action that is to be applied to the Malware Protection plan resource.- Parameters:
actions
- Specifies the action that is to be applied to the Malware Protection plan resource. This parameter is required.- Returns:
this
- See Also:
-
actions
@Stability(Stable) public CfnMalwareProtectionPlan.Builder actions(CfnMalwareProtectionPlan.CFNActionsProperty actions) Specifies the action that is to be applied to the Malware Protection plan resource.- Parameters:
actions
- Specifies the action that is to be applied to the Malware Protection plan resource. This parameter is required.- Returns:
this
- See Also:
-
tags
@Stability(Stable) public CfnMalwareProtectionPlan.Builder tags(List<? extends CfnMalwareProtectionPlan.TagItemProperty> tags) 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.
- Parameters:
tags
- The tags to be added to the created Malware Protection plan resource. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnMalwareProtectionPlan>
- Returns:
- a newly built instance of
CfnMalwareProtectionPlan
.
-