Outposts / Client / update_site_address

update_site_address#

Outposts.Client.update_site_address(**kwargs)#

Updates the address of the specified site.

You can’t update a site address if there is an order in progress. You must wait for the order to complete or cancel the order.

You can update the operating address before you place an order at the site, or after all Outposts that belong to the site have been deactivated.

See also: AWS API Documentation

Request Syntax

response = client.update_site_address(
    SiteId='string',
    AddressType='SHIPPING_ADDRESS'|'OPERATING_ADDRESS',
    Address={
        'ContactName': 'string',
        'ContactPhoneNumber': 'string',
        'AddressLine1': 'string',
        'AddressLine2': 'string',
        'AddressLine3': 'string',
        'City': 'string',
        'StateOrRegion': 'string',
        'DistrictOrCounty': 'string',
        'PostalCode': 'string',
        'CountryCode': 'string',
        'Municipality': 'string'
    }
)
Parameters:
  • SiteId (string) –

    [REQUIRED]

    The ID or the Amazon Resource Name (ARN) of the site.

  • AddressType (string) –

    [REQUIRED]

    The type of the address.

  • Address (dict) –

    [REQUIRED]

    The address for the site.

    • ContactName (string) –

      The name of the contact.

    • ContactPhoneNumber (string) –

      The phone number of the contact.

    • AddressLine1 (string) – [REQUIRED]

      The first line of the address.

    • AddressLine2 (string) –

      The second line of the address.

    • AddressLine3 (string) –

      The third line of the address.

    • City (string) – [REQUIRED]

      The city for the address.

    • StateOrRegion (string) – [REQUIRED]

      The state for the address.

    • DistrictOrCounty (string) –

      The district or county for the address.

    • PostalCode (string) – [REQUIRED]

      The postal code for the address.

    • CountryCode (string) – [REQUIRED]

      The ISO-3166 two-letter country code for the address.

    • Municipality (string) –

      The municipality for the address.

Return type:

dict

Returns:

Response Syntax

{
    'AddressType': 'SHIPPING_ADDRESS'|'OPERATING_ADDRESS',
    'Address': {
        'ContactName': 'string',
        'ContactPhoneNumber': 'string',
        'AddressLine1': 'string',
        'AddressLine2': 'string',
        'AddressLine3': 'string',
        'City': 'string',
        'StateOrRegion': 'string',
        'DistrictOrCounty': 'string',
        'PostalCode': 'string',
        'CountryCode': 'string',
        'Municipality': 'string'
    }
}

Response Structure

  • (dict) –

    • AddressType (string) –

      The type of the address.

    • Address (dict) –

      Information about an address.

      • ContactName (string) –

        The name of the contact.

      • ContactPhoneNumber (string) –

        The phone number of the contact.

      • AddressLine1 (string) –

        The first line of the address.

      • AddressLine2 (string) –

        The second line of the address.

      • AddressLine3 (string) –

        The third line of the address.

      • City (string) –

        The city for the address.

      • StateOrRegion (string) –

        The state for the address.

      • DistrictOrCounty (string) –

        The district or county for the address.

      • PostalCode (string) –

        The postal code for the address.

      • CountryCode (string) –

        The ISO-3166 two-letter country code for the address.

      • Municipality (string) –

        The municipality for the address.

Exceptions