Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Amazonka.Braket.GetDevice
Description
Retrieves the devices available in Amazon Braket.
For backwards compatibility with older versions of BraketSchemas, OpenQASM information is omitted from GetDevice API calls. To get this information the user-agent needs to present a recent version of the BraketSchemas (1.8.0 or later). The Braket SDK automatically reports this for you. If you do not see OpenQASM results in the GetDevice response when using a Braket SDK, you may need to set AWS_EXECUTION_ENV environment variable to configure user-agent. See the code examples provided below for how to do this for the AWS CLI, Boto3, and the Go, Java, and JavaScript/TypeScript SDKs.
Synopsis
- data GetDevice = GetDevice' {}
- newGetDevice :: Text -> GetDevice
- getDevice_deviceArn :: Lens' GetDevice Text
- data GetDeviceResponse = GetDeviceResponse' {}
- newGetDeviceResponse :: Int -> Text -> Text -> Text -> DeviceStatus -> DeviceType -> Text -> GetDeviceResponse
- getDeviceResponse_httpStatus :: Lens' GetDeviceResponse Int
- getDeviceResponse_deviceArn :: Lens' GetDeviceResponse Text
- getDeviceResponse_deviceCapabilities :: Lens' GetDeviceResponse Text
- getDeviceResponse_deviceName :: Lens' GetDeviceResponse Text
- getDeviceResponse_deviceStatus :: Lens' GetDeviceResponse DeviceStatus
- getDeviceResponse_deviceType :: Lens' GetDeviceResponse DeviceType
- getDeviceResponse_providerName :: Lens' GetDeviceResponse Text
Creating a Request
See: newGetDevice
smart constructor.
Constructors
GetDevice' | |
Instances
Create a value of GetDevice
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
GetDevice
, getDevice_deviceArn
- The ARN of the device to retrieve.
Request Lenses
Destructuring the Response
data GetDeviceResponse Source #
See: newGetDeviceResponse
smart constructor.
Constructors
GetDeviceResponse' | |
Fields
|
Instances
Arguments
:: Int | |
-> Text | |
-> Text | |
-> Text | |
-> DeviceStatus | |
-> DeviceType | |
-> Text | |
-> GetDeviceResponse |
Create a value of GetDeviceResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:GetDeviceResponse'
, getDeviceResponse_httpStatus
- The response's http status code.
GetDevice
, getDeviceResponse_deviceArn
- The ARN of the device.
$sel:deviceCapabilities:GetDeviceResponse'
, getDeviceResponse_deviceCapabilities
- Details about the capabilities of the device.
GetDeviceResponse
, getDeviceResponse_deviceName
- The name of the device.
GetDeviceResponse
, getDeviceResponse_deviceStatus
- The status of the device.
GetDeviceResponse
, getDeviceResponse_deviceType
- The type of the device.
GetDeviceResponse
, getDeviceResponse_providerName
- The name of the partner company for the device.
Response Lenses
getDeviceResponse_httpStatus :: Lens' GetDeviceResponse Int Source #
The response's http status code.
getDeviceResponse_deviceArn :: Lens' GetDeviceResponse Text Source #
The ARN of the device.
getDeviceResponse_deviceCapabilities :: Lens' GetDeviceResponse Text Source #
Details about the capabilities of the device.
getDeviceResponse_deviceName :: Lens' GetDeviceResponse Text Source #
The name of the device.
getDeviceResponse_deviceStatus :: Lens' GetDeviceResponse DeviceStatus Source #
The status of the device.
getDeviceResponse_deviceType :: Lens' GetDeviceResponse DeviceType Source #
The type of the device.
getDeviceResponse_providerName :: Lens' GetDeviceResponse Text Source #
The name of the partner company for the device.