Skip to main content

assets

Creates, updates, deletes, gets or lists an assets resource.

Overview

Nameassets
TypeResource
Idaws.outposts.assets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
asset_idstringThe ID of the asset. An Outpost asset can be a single server within an Outposts rack or an Outposts server configuration. (pattern: <code>^(\w+)$</code>)
asset_locationobjectThe position of an asset in a rack.
asset_typestringThe type of the asset. (COMPUTE, STORAGE, POWERSHELF, SWITCH, NETWORKING)
compute_attributesobjectInformation about compute hardware assets.
rack_idstringThe rack ID of the asset. (pattern: <code>^[\S \n]+$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_assetsselectoutpost_id, regionHostIdFilter, MaxResults, NextToken, StatusFilter, AssetTypeFilterLists the hardware assets for the specified Outpost. 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.
start_connectionexecregion, AssetId, ClientPublicKey, NetworkInterfaceDeviceIndexAmazon Web Services uses this action to install Outpost servers. Starts the connection required for Outpost server installation. Use CloudTrail to monitor this action or Amazon Web Services managed policy for Amazon Web Services Outposts to secure it. For more information, see Amazon Web Services managed policies for Amazon Web Services Outposts and Logging Amazon Web Services Outposts API calls with Amazon Web Services CloudTrail in the Amazon Web Services Outposts User Guide.

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
outpost_idstringThe ID or the Amazon Resource Name (ARN) of the Outpost.
regionstringAWS region (default: us-east-1)
AssetTypeFilterarrayFilters the results by asset type. COMPUTE - Server asset used for customer compute STORAGE - Server asset used by storage services POWERSHELF - Powershelf assets SWITCH - Switch assets NETWORKING - Asset managed by Amazon Web Services for networking purposes
HostIdFilterarrayFilters the results by the host ID of a Dedicated Host.
MaxResultsinteger
NextTokenstring
StatusFilterarrayFilters the results by state.

SELECT examples

Lists the hardware assets for the specified Outpost. 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.

SELECT
asset_id,
asset_location,
asset_type,
compute_attributes,
rack_id
FROM aws.outposts.assets
WHERE outpost_id = '{{ outpost_id }}' -- required
AND region = '{{ region }}' -- required
AND HostIdFilter = '{{ HostIdFilter }}'
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
AND StatusFilter = '{{ StatusFilter }}'
AND AssetTypeFilter = '{{ AssetTypeFilter }}'
;

Lifecycle Methods

Amazon Web Services uses this action to install Outpost servers. Starts the connection required for Outpost server installation. Use CloudTrail to monitor this action or Amazon Web Services managed policy for Amazon Web Services Outposts to secure it. For more information, see Amazon Web Services managed policies for Amazon Web Services Outposts and Logging Amazon Web Services Outposts API calls with Amazon Web Services CloudTrail in the Amazon Web Services Outposts User Guide.

EXEC aws.outposts.assets.start_connection
@region='{{ region }}' --required
@@json=
'{
"DeviceSerialNumber": "{{ DeviceSerialNumber }}",
"AssetId": "{{ AssetId }}",
"ClientPublicKey": "{{ ClientPublicKey }}",
"NetworkInterfaceDeviceIndex": {{ NetworkInterfaceDeviceIndex }}
}'
;