Skip to main content

mac_hosts

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

Overview

Namemac_hosts
TypeResource
Idaws.ec2.mac_hosts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
host_idstringThe EC2 Mac Dedicated Host ID.
mac_os_latest_supported_versionsstringThe latest macOS versions that the EC2 Mac Dedicated Host can launch without being upgraded.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_mac_hostsselectregionFilter, HostId, MaxResults, NextTokenDescribes the specified EC2 Mac Dedicated Host or all of your EC2 Mac Dedicated Hosts.

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)
FilterarrayThe filters. availability-zone - The Availability Zone of the EC2 Mac Dedicated Host. instance-type - The instance type size that the EC2 Mac Dedicated Host is configured to support.
HostIdarrayThe IDs of the EC2 Mac Dedicated Hosts.
MaxResultsintegerThe maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the returned nextToken value. This value can be between 5 and 500. If maxResults is given a larger value than 500, you receive an error.
NextTokenstringThe token to use to retrieve the next page of results.

SELECT examples

Describes the specified EC2 Mac Dedicated Host or all of your EC2 Mac Dedicated Hosts.

SELECT
host_id,
mac_os_latest_supported_versions
FROM aws.ec2.mac_hosts
WHERE region = '{{ region }}' -- required
AND Filter = '{{ Filter }}'
AND HostId = '{{ HostId }}'
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
;