describe_mac_modification_tasks
async
¶
describe_mac_modification_tasks(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
dry_run: Optional[Boolean] = None,
filters: Optional[FilterList] = None,
mac_modification_task_ids: Optional[MacModificationTaskIdList] = None,
max_results: Optional[DescribeMacModificationTasksMaxResults] = None,
next_token: Optional[String] = None,
) -> DescribeMacModificationTasksResult
Describes a System Integrity Protection (SIP) modification task or volume ownership delegation task for an Amazon EC2 Mac instance. For more information, see Configure SIP for Amazon EC2 instances in the Amazon EC2 User Guide.
Parameters:
-
dry_run(Optional[Boolean], default:None) –Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation. -
filters(Optional[FilterList], default:None) –Specifies one or more filters for the request:
-
instance-id- The ID of the instance for which the task was created. -
task-state- The state of the task (successful|failed|in-progress|pending). -
mac-system-integrity-protection-configuration.sip-status- The overall SIP state requested in the task (enabled|disabled). -
start-time- The date and time the task was created. -
task-type- The type of task (sip-modification|volume-ownership-delegation).
-
-
mac_modification_task_ids(Optional[MacModificationTaskIdList], default:None) –The ID of task.
-
max_results(Optional[DescribeMacModificationTasksMaxResults], default:None) –The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the returned
nextTokenvalue. This value can be between 5 and 500. IfmaxResultsis given a larger value than 500, you receive an error. -
next_token(Optional[String], default:None) –The token to use to retrieve the next page of results.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/async_ec2.py
30088 30089 30090 30091 30092 30093 30094 30095 30096 30097 30098 30099 30100 30101 30102 30103 30104 30105 30106 30107 30108 30109 30110 30111 30112 30113 30114 30115 30116 30117 30118 30119 30120 30121 30122 30123 30124 30125 30126 30127 30128 30129 30130 30131 30132 30133 30134 30135 30136 30137 30138 30139 30140 30141 30142 30143 30144 30145 30146 30147 30148 30149 30150 30151 | |