def update_traffic_policy_instance(Id=None, TTL=None, TrafficPolicyId=None,
    TrafficPolicyVersion=None):
    """
    Updates the resource record sets in a specified hosted zone that were created based on the settings in a specified traffic policy version.
    When you update a traffic policy instance, Amazon Route 53 continues to respond to DNS queries for the root resource record set name (such as example.com) while it replaces one group of resource record sets with another. Amazon Route 53 performs the following operations:
    See also: AWS API Documentation
    
    
    :example: response = client.update_traffic_policy_instance(
        Id='string',
        TTL=123,
        TrafficPolicyId='string',
        TrafficPolicyVersion=123
    )
    
    
    :type Id: string
    :param Id: [REQUIRED]
            The ID of the traffic policy instance that you want to update.
            

    :type TTL: integer
    :param TTL: [REQUIRED]
            The TTL that you want Amazon Route 53 to assign to all of the updated resource record sets.
            

    :type TrafficPolicyId: string
    :param TrafficPolicyId: [REQUIRED]
            The ID of the traffic policy that you want Amazon Route 53 to use to update resource record sets for the specified traffic policy instance.
            

    :type TrafficPolicyVersion: integer
    :param TrafficPolicyVersion: [REQUIRED]
            The version of the traffic policy that you want Amazon Route 53 to use to update resource record sets for the specified traffic policy instance.
            

    :rtype: dict
    :return: {
        'TrafficPolicyInstance': {
            'Id': 'string',
            'HostedZoneId': 'string',
            'Name': 'string',
            'TTL': 123,
            'State': 'string',
            'Message': 'string',
            'TrafficPolicyId': 'string',
            'TrafficPolicyVersion': 123,
            'TrafficPolicyType': 'SOA'|'A'|'TXT'|'NS'|'CNAME'|'MX'|'NAPTR'|'PTR'|'SRV'|'SPF'|'AAAA'
        }
    }
    
    
    :returns: 
    Id (string) -- [REQUIRED]
    The ID of the traffic policy instance that you want to update.
    
    TTL (integer) -- [REQUIRED]
    The TTL that you want Amazon Route 53 to assign to all of the updated resource record sets.
    
    TrafficPolicyId (string) -- [REQUIRED]
    The ID of the traffic policy that you want Amazon Route 53 to use to update resource record sets for the specified traffic policy instance.
    
    TrafficPolicyVersion (integer) -- [REQUIRED]
    The version of the traffic policy that you want Amazon Route 53 to use to update resource record sets for the specified traffic policy instance.
    
    
    """
    pass
