create_malware_protection_plan¶
Operation¶
create_malware_protection_plan
¶
create_malware_protection_plan(request: CreateMalwareProtectionPlanInput | CreateMalwareProtectionPlanInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[CreateMalwareProtectionPlanInputDict]) -> CreateMalwareProtectionPlanOutput
Creates a new Malware Protection plan for the protected resource.
When you create a Malware Protection plan, the Amazon Web Services service terms for GuardDuty Malware Protection apply. For more information, see Amazon Web Services service terms for GuardDuty Malware Protection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
request
|
CreateMalwareProtectionPlanInput | CreateMalwareProtectionPlanInputDict | None
|
The input as a model or dictionary. Pass this or keyword arguments, not both. |
None
|
plugins
|
list[Plugin] | None
|
A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. |
None
|
**kwargs
|
Unpack[CreateMalwareProtectionPlanInputDict]
|
The input fields as keyword arguments. |
{}
|
Returns:
| Type | Description |
|---|---|
CreateMalwareProtectionPlanOutput
|
An instance of |
create_malware_protection_plan
async
¶
create_malware_protection_plan(request: CreateMalwareProtectionPlanInput | CreateMalwareProtectionPlanInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[CreateMalwareProtectionPlanInputDict]) -> CreateMalwareProtectionPlanOutput
Creates a new Malware Protection plan for the protected resource.
When you create a Malware Protection plan, the Amazon Web Services service terms for GuardDuty Malware Protection apply. For more information, see Amazon Web Services service terms for GuardDuty Malware Protection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
request
|
CreateMalwareProtectionPlanInput | CreateMalwareProtectionPlanInputDict | None
|
The input as a model or dictionary. Pass this or keyword arguments, not both. |
None
|
plugins
|
list[Plugin] | None
|
A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. |
None
|
**kwargs
|
Unpack[CreateMalwareProtectionPlanInputDict]
|
The input fields as keyword arguments. |
{}
|
Returns:
| Type | Description |
|---|---|
CreateMalwareProtectionPlanOutput
|
An instance of |
Input¶
Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.
CreateMalwareProtectionPlanInputDict
¶
Bases: TypedDict
Dictionary form of CreateMalwareProtectionPlanInput.
Attributes¶
actions
instance-attribute
¶
actions: MalwareProtectionPlanActions | MalwareProtectionPlanActionsDict | None
Information about whether the tags will be added to the S3 object after scanning.
client_token
instance-attribute
¶
client_token: str | None
The idempotency token for the create request.
This field is autopopulated if not provided.
protected_resource
instance-attribute
¶
protected_resource: Required[CreateProtectedResource | CreateProtectedResourceDict]
Information about the protected resource that is associated with the
created Malware Protection plan. Presently, S3Bucket is the only
supported protected resource.
role
instance-attribute
¶
Amazon Resource Name (ARN) of the IAM role that has the permissions to scan and add tags to the associated protected resource.
CreateMalwareProtectionPlanInput
dataclass
¶
Bases: _SerdeShape
Dataclass for CreateMalwareProtectionPlanInput structure.
Attributes¶
actions
class-attribute
instance-attribute
¶
actions: MalwareProtectionPlanActions | None = ...
Information about whether the tags will be added to the S3 object after scanning.
client_token
class-attribute
instance-attribute
¶
client_token: str | None = ...
The idempotency token for the create request.
This field is autopopulated if not provided.
protected_resource
class-attribute
instance-attribute
¶
protected_resource: CreateProtectedResource | None = ...
Information about the protected resource that is associated with the
created Malware Protection plan. Presently, S3Bucket is the only
supported protected resource.
Output¶
CreateMalwareProtectionPlanOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for CreateMalwareProtectionPlanOutput structure.
Attributes¶
malware_protection_plan_id
class-attribute
instance-attribute
¶
malware_protection_plan_id: str | None = ...
A unique identifier associated with the Malware Protection plan resource.
response_metadata
class-attribute
instance-attribute
¶
Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.