Skip to main content

sites

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

Overview

Namesites
TypeResource
Idaws.outposts.sites

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
account_idstringThe ID of the Amazon Web Services account. (pattern: <code>\d{12}</code>)
descriptionstringThe description of the site. (pattern: <code>^[\S ]+$</code>)
namestringThe name of the site. (pattern: <code>^[\S ]+$</code>)
notesstringNotes about a site. (pattern: <code>^[\S \n]+$</code>)
operating_address_citystringCity where the hardware is installed and powered on. (pattern: <code>^\S[\S ]*$</code>)
operating_address_country_codestringThe ISO-3166 two-letter country code where the hardware is installed and powered on. (pattern: <code>^[A-Z]{2}$</code>)
operating_address_state_or_regionstringState or region where the hardware is installed and powered on. (pattern: <code>^\S[\S ]*$</code>)
rack_physical_propertiesobjectInformation about the physical and logistical details for racks at sites. For more information about hardware requirements for racks, see Network readiness checklist in the Amazon Web Services Outposts User Guide.
site_arnstringThe Amazon Resource Name (ARN) of the site. (pattern: <code>^arn:aws([a-z-]+)?:outposts:[a-z\d-]+:\d{12}:site/(os-[a-f0-9]{17})$</code>)
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>)
tagsobjectThe site tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_siteselectsite_id, regionGets information about the specified Outpost site.
list_sitesselectregionNextToken, MaxResults, OperatingAddressCountryCodeFilter, OperatingAddressStateOrRegionFilter, OperatingAddressCityFilterLists the Outpost sites for your Amazon Web Services account. Use filters to return specific results. Use filters to return specific results. If you specify multiple filters, the results include only the resources that match all of the specified filters. For a filter where you can specify multiple values, the results include items that match any of the values that you specify for the filter.
create_siteinsertregionCreates a site for an Outpost.
update_siteupdatesite_id, regionUpdates the specified site.
delete_sitedeletesite_id, regionDeletes the specified site.
update_site_rack_physical_propertiesexecsite_id, regionUpdate the physical and logistical details for a rack at a site. For more information about hardware requirements for racks, see Network readiness checklist in the Amazon Web Services Outposts User Guide. To update a rack at a site with an order of IN_PROGRESS, you must wait for the order to complete or cancel the order.

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
regionstringAWS region (default: us-east-1)
site_idstringThe ID or the Amazon Resource Name (ARN) of the site.
MaxResultsinteger
NextTokenstring
OperatingAddressCityFilterarrayFilters the results by city.
OperatingAddressCountryCodeFilterarrayFilters the results by country code.
OperatingAddressStateOrRegionFilterarrayFilters the results by state or region.

SELECT examples

Gets information about the specified Outpost site.

SELECT
account_id,
description,
name,
notes,
operating_address_city,
operating_address_country_code,
operating_address_state_or_region,
rack_physical_properties,
site_arn,
site_id,
tags
FROM aws.outposts.sites
WHERE site_id = '{{ site_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a site for an Outpost.

INSERT INTO aws.outposts.sites (
Name,
Description,
Notes,
Tags,
OperatingAddress,
ShippingAddress,
RackPhysicalProperties,
region
)
SELECT
'{{ Name }}',
'{{ Description }}',
'{{ Notes }}',
'{{ Tags }}',
'{{ OperatingAddress }}',
'{{ ShippingAddress }}',
'{{ RackPhysicalProperties }}',
'{{ region }}'
RETURNING
site
;

UPDATE examples

Updates the specified site.

UPDATE aws.outposts.sites
SET
Name = '{{ Name }}',
Description = '{{ Description }}',
Notes = '{{ Notes }}'
WHERE
site_id = '{{ site_id }}' --required
AND region = '{{ region }}' --required
RETURNING
site;

DELETE examples

Deletes the specified site.

DELETE FROM aws.outposts.sites
WHERE site_id = '{{ site_id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Update the physical and logistical details for a rack at a site. For more information about hardware requirements for racks, see Network readiness checklist in the Amazon Web Services Outposts User Guide. To update a rack at a site with an order of IN_PROGRESS, you must wait for the order to complete or cancel the order.

EXEC aws.outposts.sites.update_site_rack_physical_properties
@site_id='{{ site_id }}' --required,
@region='{{ region }}' --required
@@json=
'{
"PowerDrawKva": "{{ PowerDrawKva }}",
"PowerPhase": "{{ PowerPhase }}",
"PowerConnector": "{{ PowerConnector }}",
"PowerFeedDrop": "{{ PowerFeedDrop }}",
"UplinkGbps": "{{ UplinkGbps }}",
"UplinkCount": "{{ UplinkCount }}",
"FiberOpticCableType": "{{ FiberOpticCableType }}",
"OpticalStandard": "{{ OpticalStandard }}",
"MaximumSupportedWeightLbs": "{{ MaximumSupportedWeightLbs }}"
}'
;