:doc:`EC2 <../../ec2>` / Paginator / DescribeMacModificationTasks

****************************
DescribeMacModificationTasks
****************************



.. py:class:: EC2.Paginator.DescribeMacModificationTasks

  ::

    
    paginator = client.get_paginator('describe_mac_modification_tasks')

  
  

  .. py:method:: paginate(**kwargs)

    Creates an iterator that will paginate through responses from :py:meth:`EC2.Client.describe_mac_modification_tasks`.

    See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeMacModificationTasks>`_    


    **Request Syntax**
    ::

      response_iterator = paginator.paginate(
          DryRun=True|False,
          Filters=[
              {
                  'Name': 'string',
                  'Values': [
                      'string',
                  ]
              },
          ],
          MacModificationTaskIds=[
              'string',
          ],
          PaginationConfig={
              'MaxItems': 123,
              'PageSize': 123,
              'StartingToken': 'string'
          }
      )
      
    :type DryRun: boolean
    :param DryRun: 

      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 is ``UnauthorizedOperation``.

      

    
    :type Filters: list
    :param Filters: 

      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``).
      

      

    
      - *(dict) --* 

        A filter name and value pair that is used to return a more specific list of results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.

         

        If you specify multiple filters, the filters are joined with an ``AND``, and the request returns only results that match all of the specified filters.

         

        For more information, see `List and filter using the CLI and API <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Filtering.html#Filtering_Resources_CLI>`__ in the *Amazon EC2 User Guide*.

        

      
        - **Name** *(string) --* 

          The name of the filter. Filter names are case-sensitive.

          

        
        - **Values** *(list) --* 

          The filter values. Filter values are case-sensitive. If you specify multiple values for a filter, the values are joined with an ``OR``, and the request returns all results that match any of the specified values.

          

        
          - *(string) --* 

          
      
      
  
    :type MacModificationTaskIds: list
    :param MacModificationTaskIds: 

      The ID of task.

      

    
      - *(string) --* 

      
  
    :type PaginationConfig: dict
    :param PaginationConfig: 

      A dictionary that provides parameters to control pagination.

      

    
      - **MaxItems** *(integer) --* 

        The total number of items to return. If the total number of items available is more than the value specified in max-items then a ``NextToken`` will be provided in the output that you can use to resume pagination.

        

      
      - **PageSize** *(integer) --* 

        The size of each page.

        

      
      - **StartingToken** *(string) --* 

        A token to specify where to start paginating. This is the ``NextToken`` from a previous response.

        

      
    
    
    :rtype: dict
    :returns: 
      
      **Response Syntax**

      
      ::

        {
            'MacModificationTasks': [
                {
                    'InstanceId': 'string',
                    'MacModificationTaskId': 'string',
                    'MacSystemIntegrityProtectionConfig': {
                        'AppleInternal': 'enabled'|'disabled',
                        'BaseSystem': 'enabled'|'disabled',
                        'DebuggingRestrictions': 'enabled'|'disabled',
                        'DTraceRestrictions': 'enabled'|'disabled',
                        'FilesystemProtections': 'enabled'|'disabled',
                        'KextSigning': 'enabled'|'disabled',
                        'NvramProtections': 'enabled'|'disabled',
                        'Status': 'enabled'|'disabled'
                    },
                    'StartTime': datetime(2015, 1, 1),
                    'Tags': [
                        {
                            'Key': 'string',
                            'Value': 'string'
                        },
                    ],
                    'TaskState': 'successful'|'failed'|'in-progress'|'pending',
                    'TaskType': 'sip-modification'|'volume-ownership-delegation'
                },
            ],
            
        }
        
      **Response Structure**

      

      - *(dict) --* 
        

        - **MacModificationTasks** *(list) --* 

          Information about the tasks.

          
          

          - *(dict) --* 

            Information about a System Integrity Protection (SIP) modification task or volume ownership delegation task for an Amazon EC2 Mac instance.

            
            

            - **InstanceId** *(string) --* 

              The ID of the Amazon EC2 Mac instance.

              
            

            - **MacModificationTaskId** *(string) --* 

              The ID of task.

              
            

            - **MacSystemIntegrityProtectionConfig** *(dict) --* 

              [SIP modification tasks only] Information about the SIP configuration.

              
              

              - **AppleInternal** *(string) --* 

                Indicates whether Apple Internal was enabled or disabled by the task.

                
              

              - **BaseSystem** *(string) --* 

                Indicates whether Base System was enabled or disabled by the task.

                
              

              - **DebuggingRestrictions** *(string) --* 

                Indicates whether Debugging Restrictions was enabled or disabled by the task.

                
              

              - **DTraceRestrictions** *(string) --* 

                Indicates whether Dtrace Restrictions was enabled or disabled by the task.

                
              

              - **FilesystemProtections** *(string) --* 

                Indicates whether Filesystem Protections was enabled or disabled by the task.

                
              

              - **KextSigning** *(string) --* 

                Indicates whether Kext Signing was enabled or disabled by the task.

                
              

              - **NvramProtections** *(string) --* 

                Indicates whether NVRAM Protections was enabled or disabled by the task.

                
              

              - **Status** *(string) --* 

                Indicates SIP was enabled or disabled by the task.

                
          
            

            - **StartTime** *(datetime) --* 

              The date and time the task was created, in the UTC timezone ( ``YYYY-MM-DDThh:mm:ss.sssZ``).

              
            

            - **Tags** *(list) --* 

              The tags assigned to the task.

              
              

              - *(dict) --* 

                Describes a tag.

                
                

                - **Key** *(string) --* 

                  The key of the tag.

                   

                  Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with ``aws:``.

                  
                

                - **Value** *(string) --* 

                  The value of the tag.

                   

                  Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters.

                  
            
          
            

            - **TaskState** *(string) --* 

              The state of the task.

              
            

            - **TaskType** *(string) --* 

              The type of task.

              
        
      
    