:doc:`EC2 <../../ec2>` / Client / modify_transit_gateway_prefix_list_reference

********************************************
modify_transit_gateway_prefix_list_reference
********************************************



.. py:method:: EC2.Client.modify_transit_gateway_prefix_list_reference(**kwargs)

  

  Modifies a reference (route) to a prefix list in a specified transit gateway route table.

  

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


  **Request Syntax**
  ::

    response = client.modify_transit_gateway_prefix_list_reference(
        TransitGatewayRouteTableId='string',
        PrefixListId='string',
        TransitGatewayAttachmentId='string',
        Blackhole=True|False,
        DryRun=True|False
    )
    
  :type TransitGatewayRouteTableId: string
  :param TransitGatewayRouteTableId: **[REQUIRED]** 

    The ID of the transit gateway route table.

    

  
  :type PrefixListId: string
  :param PrefixListId: **[REQUIRED]** 

    The ID of the prefix list.

    

  
  :type TransitGatewayAttachmentId: string
  :param TransitGatewayAttachmentId: 

    The ID of the attachment to which traffic is routed.

    

  
  :type Blackhole: boolean
  :param Blackhole: 

    Indicates whether to drop traffic that matches this route.

    

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

    

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

    
    ::

      {
          'TransitGatewayPrefixListReference': {
              'TransitGatewayRouteTableId': 'string',
              'PrefixListId': 'string',
              'PrefixListOwnerId': 'string',
              'State': 'pending'|'available'|'modifying'|'deleting',
              'Blackhole': True|False,
              'TransitGatewayAttachment': {
                  'TransitGatewayAttachmentId': 'string',
                  'ResourceType': 'vpc'|'vpn'|'vpn-concentrator'|'direct-connect-gateway'|'connect'|'peering'|'tgw-peering'|'network-function',
                  'ResourceId': 'string'
              }
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **TransitGatewayPrefixListReference** *(dict) --* 

        Information about the prefix list reference.

        
        

        - **TransitGatewayRouteTableId** *(string) --* 

          The ID of the transit gateway route table.

          
        

        - **PrefixListId** *(string) --* 

          The ID of the prefix list.

          
        

        - **PrefixListOwnerId** *(string) --* 

          The ID of the prefix list owner.

          
        

        - **State** *(string) --* 

          The state of the prefix list reference.

          
        

        - **Blackhole** *(boolean) --* 

          Indicates whether traffic that matches this route is dropped.

          
        

        - **TransitGatewayAttachment** *(dict) --* 

          Information about the transit gateway attachment.

          
          

          - **TransitGatewayAttachmentId** *(string) --* 

            The ID of the attachment.

            
          

          - **ResourceType** *(string) --* 

            The resource type. Note that the ``tgw-peering`` resource type has been deprecated.

            
          

          - **ResourceId** *(string) --* 

            The ID of the resource.

            
      
    
  