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

**************************************
delete_transit_gateway_metering_policy
**************************************



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

  

  Deletes a transit gateway metering policy.

  

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


  **Request Syntax**
  ::

    response = client.delete_transit_gateway_metering_policy(
        TransitGatewayMeteringPolicyId='string',
        DryRun=True|False
    )
    
  :type TransitGatewayMeteringPolicyId: string
  :param TransitGatewayMeteringPolicyId: **[REQUIRED]** 

    The ID of the transit gateway metering policy to delete.

    

  
  :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**

    
    ::

      {
          'TransitGatewayMeteringPolicy': {
              'TransitGatewayMeteringPolicyId': 'string',
              'TransitGatewayId': 'string',
              'MiddleboxAttachmentIds': [
                  'string',
              ],
              'State': 'available'|'deleted'|'pending'|'modifying'|'deleting',
              'UpdateEffectiveAt': datetime(2015, 1, 1),
              'Tags': [
                  {
                      'Key': 'string',
                      'Value': 'string'
                  },
              ]
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **TransitGatewayMeteringPolicy** *(dict) --* 

        Information about the deleted transit gateway metering policy.

        
        

        - **TransitGatewayMeteringPolicyId** *(string) --* 

          The ID of the transit gateway metering policy.

          
        

        - **TransitGatewayId** *(string) --* 

          The ID of the transit gateway associated with the metering policy.

          
        

        - **MiddleboxAttachmentIds** *(list) --* 

          The IDs of the middlebox attachments associated with the metering policy.

          
          

          - *(string) --* 
      
        

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

          The state of the transit gateway metering policy.

          
        

        - **UpdateEffectiveAt** *(datetime) --* 

          The date and time when the metering policy update becomes effective.

          
        

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

          The tags assigned to the transit gateway metering policy.

          
          

          - *(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.

              
        
      
    
  