Class CfnMalwareProtectionPlanProps
Properties for defining a CfnMalwareProtectionPlan.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.GuardDuty
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnMalwareProtectionPlanProps : ICfnMalwareProtectionPlanProps
Syntax (vb)
Public Class CfnMalwareProtectionPlanProps Implements ICfnMalwareProtectionPlanProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.GuardDuty;
var cfnMalwareProtectionPlanProps = new CfnMalwareProtectionPlanProps {
ProtectedResource = new CFNProtectedResourceProperty {
S3Bucket = new S3BucketProperty {
BucketName = "bucketName",
ObjectPrefixes = new [] { "objectPrefixes" }
}
},
Role = "role",
// the properties below are optional
Actions = new CFNActionsProperty {
Tagging = new CFNTaggingProperty {
Status = "status"
}
},
Tags = new [] { new TagItemProperty {
Key = "key",
Value = "value"
} }
};
Synopsis
Constructors
| CfnMalwareProtectionPlanProps() | Properties for defining a |
Properties
| Actions | Specifies the action that is to be applied to the Malware Protection plan resource. |
| ProtectedResource | Information about the 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. |
| Tags | The tags to be added to the created Malware Protection plan resource. |
Constructors
CfnMalwareProtectionPlanProps()
Properties for defining a CfnMalwareProtectionPlan.
public CfnMalwareProtectionPlanProps()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.GuardDuty;
var cfnMalwareProtectionPlanProps = new CfnMalwareProtectionPlanProps {
ProtectedResource = new CFNProtectedResourceProperty {
S3Bucket = new S3BucketProperty {
BucketName = "bucketName",
ObjectPrefixes = new [] { "objectPrefixes" }
}
},
Role = "role",
// the properties below are optional
Actions = new CFNActionsProperty {
Tagging = new CFNTaggingProperty {
Status = "status"
}
},
Tags = new [] { new TagItemProperty {
Key = "key",
Value = "value"
} }
};
Properties
Actions
Specifies the action that is to be applied to the Malware Protection plan resource.
public object? Actions { get; set; }
Property Value
Remarks
ProtectedResource
Information about the protected resource.
public object ProtectedResource { get; set; }
Property Value
Remarks
Presently, S3Bucket is the only supported protected resource.
Type union: either IResolvable or CfnMalwareProtectionPlan.ICFNProtectedResourceProperty
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.
public string Role { get; set; }
Property Value
Remarks
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.
public CfnMalwareProtectionPlan.ITagItemProperty[]? Tags { get; set; }
Property Value
Remarks
Each tag consists of a key and an optional value, both of which you need to specify.