Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a device definition. You may provide the initial version of the device definition now or use ''CreateDeviceDefinitionVersion'' at a later time.
Synopsis
- data CreateDeviceDefinition = CreateDeviceDefinition' {}
- newCreateDeviceDefinition :: CreateDeviceDefinition
- createDeviceDefinition_amznClientToken :: Lens' CreateDeviceDefinition (Maybe Text)
- createDeviceDefinition_initialVersion :: Lens' CreateDeviceDefinition (Maybe DeviceDefinitionVersion)
- createDeviceDefinition_name :: Lens' CreateDeviceDefinition (Maybe Text)
- createDeviceDefinition_tags :: Lens' CreateDeviceDefinition (Maybe (HashMap Text Text))
- data CreateDeviceDefinitionResponse = CreateDeviceDefinitionResponse' {
- latestVersionArn :: Maybe Text
- arn :: Maybe Text
- name :: Maybe Text
- creationTimestamp :: Maybe Text
- id :: Maybe Text
- latestVersion :: Maybe Text
- lastUpdatedTimestamp :: Maybe Text
- httpStatus :: Int
- newCreateDeviceDefinitionResponse :: Int -> CreateDeviceDefinitionResponse
- createDeviceDefinitionResponse_latestVersionArn :: Lens' CreateDeviceDefinitionResponse (Maybe Text)
- createDeviceDefinitionResponse_arn :: Lens' CreateDeviceDefinitionResponse (Maybe Text)
- createDeviceDefinitionResponse_name :: Lens' CreateDeviceDefinitionResponse (Maybe Text)
- createDeviceDefinitionResponse_creationTimestamp :: Lens' CreateDeviceDefinitionResponse (Maybe Text)
- createDeviceDefinitionResponse_id :: Lens' CreateDeviceDefinitionResponse (Maybe Text)
- createDeviceDefinitionResponse_latestVersion :: Lens' CreateDeviceDefinitionResponse (Maybe Text)
- createDeviceDefinitionResponse_lastUpdatedTimestamp :: Lens' CreateDeviceDefinitionResponse (Maybe Text)
- createDeviceDefinitionResponse_httpStatus :: Lens' CreateDeviceDefinitionResponse Int
Creating a Request
data CreateDeviceDefinition Source #
See: newCreateDeviceDefinition
smart constructor.
CreateDeviceDefinition' | |
|
Instances
newCreateDeviceDefinition :: CreateDeviceDefinition Source #
Create a value of CreateDeviceDefinition
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:amznClientToken:CreateDeviceDefinition'
, createDeviceDefinition_amznClientToken
- A client token used to correlate requests and responses.
$sel:initialVersion:CreateDeviceDefinition'
, createDeviceDefinition_initialVersion
- Information about the initial version of the device definition.
$sel:name:CreateDeviceDefinition'
, createDeviceDefinition_name
- The name of the device definition.
$sel:tags:CreateDeviceDefinition'
, createDeviceDefinition_tags
- Tag(s) to add to the new resource.
Request Lenses
createDeviceDefinition_amznClientToken :: Lens' CreateDeviceDefinition (Maybe Text) Source #
A client token used to correlate requests and responses.
createDeviceDefinition_initialVersion :: Lens' CreateDeviceDefinition (Maybe DeviceDefinitionVersion) Source #
Information about the initial version of the device definition.
createDeviceDefinition_name :: Lens' CreateDeviceDefinition (Maybe Text) Source #
The name of the device definition.
createDeviceDefinition_tags :: Lens' CreateDeviceDefinition (Maybe (HashMap Text Text)) Source #
Tag(s) to add to the new resource.
Destructuring the Response
data CreateDeviceDefinitionResponse Source #
See: newCreateDeviceDefinitionResponse
smart constructor.
CreateDeviceDefinitionResponse' | |
|
Instances
newCreateDeviceDefinitionResponse Source #
Create a value of CreateDeviceDefinitionResponse
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:latestVersionArn:CreateDeviceDefinitionResponse'
, createDeviceDefinitionResponse_latestVersionArn
- The ARN of the latest version associated with the definition.
$sel:arn:CreateDeviceDefinitionResponse'
, createDeviceDefinitionResponse_arn
- The ARN of the definition.
$sel:name:CreateDeviceDefinition'
, createDeviceDefinitionResponse_name
- The name of the definition.
$sel:creationTimestamp:CreateDeviceDefinitionResponse'
, createDeviceDefinitionResponse_creationTimestamp
- The time, in milliseconds since the epoch, when the definition was
created.
$sel:id:CreateDeviceDefinitionResponse'
, createDeviceDefinitionResponse_id
- The ID of the definition.
$sel:latestVersion:CreateDeviceDefinitionResponse'
, createDeviceDefinitionResponse_latestVersion
- The ID of the latest version associated with the definition.
$sel:lastUpdatedTimestamp:CreateDeviceDefinitionResponse'
, createDeviceDefinitionResponse_lastUpdatedTimestamp
- The time, in milliseconds since the epoch, when the definition was last
updated.
$sel:httpStatus:CreateDeviceDefinitionResponse'
, createDeviceDefinitionResponse_httpStatus
- The response's http status code.
Response Lenses
createDeviceDefinitionResponse_latestVersionArn :: Lens' CreateDeviceDefinitionResponse (Maybe Text) Source #
The ARN of the latest version associated with the definition.
createDeviceDefinitionResponse_arn :: Lens' CreateDeviceDefinitionResponse (Maybe Text) Source #
The ARN of the definition.
createDeviceDefinitionResponse_name :: Lens' CreateDeviceDefinitionResponse (Maybe Text) Source #
The name of the definition.
createDeviceDefinitionResponse_creationTimestamp :: Lens' CreateDeviceDefinitionResponse (Maybe Text) Source #
The time, in milliseconds since the epoch, when the definition was created.
createDeviceDefinitionResponse_id :: Lens' CreateDeviceDefinitionResponse (Maybe Text) Source #
The ID of the definition.
createDeviceDefinitionResponse_latestVersion :: Lens' CreateDeviceDefinitionResponse (Maybe Text) Source #
The ID of the latest version associated with the definition.
createDeviceDefinitionResponse_lastUpdatedTimestamp :: Lens' CreateDeviceDefinitionResponse (Maybe Text) Source #
The time, in milliseconds since the epoch, when the definition was last updated.
createDeviceDefinitionResponse_httpStatus :: Lens' CreateDeviceDefinitionResponse Int Source #
The response's http status code.