Skip to main content

site_address

Creates, updates, deletes, gets or lists a site_address resource.

Overview

Namesite_address
TypeResource
Idaws.outposts.site_address

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
addressobjectInformation about an address.
address_typestringThe type of the address you receive. (SHIPPING_ADDRESS, OPERATING_ADDRESS)
site_idstringThe ID of the site. (pattern: <code>^(arn:aws([a-z-]+)?:outposts:[a-z\d-]+:\d{12}:site/)?(os-[a-f0-9]{17})$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_site_addressselectsite_id, AddressType, regionGets the site address of the specified site.
update_site_addressupdatesite_id, region, AddressTypeUpdates 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
AddressTypestringThe type of the address you request.
regionstringAWS region (default: us-east-1)
site_idstringThe ID or the Amazon Resource Name (ARN) of the site.

SELECT examples

Gets the site address of the specified site.

SELECT
address,
address_type,
site_id
FROM aws.outposts.site_address
WHERE site_id = '{{ site_id }}' -- required
AND AddressType = '{{ AddressType }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

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.

UPDATE aws.outposts.site_address
SET
AddressType = '{{ AddressType }}',
Address = '{{ Address }}'
WHERE
site_id = '{{ site_id }}' --required
AND region = '{{ region }}' --required
AND AddressType = '{{ AddressType }}' --required
RETURNING
address,
address_type;