CfnMalwareProtectionPlanProps
- class aws_cdk.aws_guardduty.CfnMalwareProtectionPlanProps(*, protected_resource, role, actions=None, tags=None)
Bases:
object
Properties for defining a
CfnMalwareProtectionPlan
.- Parameters:
protected_resource (
Union
[IResolvable
,CFNProtectedResourceProperty
,Dict
[str
,Any
]]) – Information about the protected resource. Presently,S3Bucket
is the only supported protected resource.role (
str
) – 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.actions (
Union
[IResolvable
,CFNActionsProperty
,Dict
[str
,Any
],None
]) – Specifies the action that is to be applied to the Malware Protection plan resource.tags (
Optional
[Sequence
[Union
[TagItemProperty
,Dict
[str
,Any
]]]]) – 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:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_guardduty as guardduty cfn_malware_protection_plan_props = guardduty.CfnMalwareProtectionPlanProps( protected_resource=guardduty.CfnMalwareProtectionPlan.CFNProtectedResourceProperty( s3_bucket=guardduty.CfnMalwareProtectionPlan.S3BucketProperty( bucket_name="bucketName", object_prefixes=["objectPrefixes"] ) ), role="role", # the properties below are optional actions=guardduty.CfnMalwareProtectionPlan.CFNActionsProperty( tagging=guardduty.CfnMalwareProtectionPlan.CFNTaggingProperty( status="status" ) ), tags=[guardduty.CfnMalwareProtectionPlan.TagItemProperty( key="key", value="value" )] )
Attributes
- actions
Specifies the action that is to be applied to the Malware Protection plan resource.
- protected_resource
Information about the protected resource.
Presently,
S3Bucket
is the only supported protected resource.
- 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.
- 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.