Skip to main content

mac_modification_tasks

Creates, updates, deletes, gets or lists a mac_modification_tasks resource.

Overview

Namemac_modification_tasks
TypeResource
Idaws.ec2.mac_modification_tasks

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
instance_idstringThe ID of the Amazon EC2 Mac instance.
mac_modification_task_idstringThe ID of task.
mac_system_integrity_protection_configstring[SIP modification tasks only] Information about the SIP configuration.
start_timestringThe date and time the task was created, in the UTC timezone (YYYY-MM-DDThh:mm:ss.sssZ).
tagsstringThe tags assigned to the task.
task_statestringThe state of the task.
task_typestringThe type of task.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_mac_modification_tasksselectregionDryRun, Filter, MacModificationTaskId, MaxResults, NextTokenDescribes 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

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
DryRunbooleanChecks 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 is UnauthorizedOperation.
FilterarraySpecifies 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).
MacModificationTaskIdarrayThe ID of task.
MaxResultsintegerThe 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 nextToken value. This value can be between 5 and 500. If maxResults is given a larger value than 500, you receive an error.
NextTokenstringThe token to use to retrieve the next page of results.

SELECT examples

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.

SELECT
instance_id,
mac_modification_task_id,
mac_system_integrity_protection_config,
start_time,
tags,
task_state,
task_type
FROM aws.ec2.mac_modification_tasks
WHERE region = '{{ region }}' -- required
AND DryRun = '{{ DryRun }}'
AND Filter = '{{ Filter }}'
AND MacModificationTaskId = '{{ MacModificationTaskId }}'
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
;