| 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.Greengrass.CreateDeviceDefinition
Description
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' {
- arn :: Maybe Text
- creationTimestamp :: Maybe Text
- id :: Maybe Text
- lastUpdatedTimestamp :: Maybe Text
- latestVersion :: Maybe Text
- latestVersionArn :: Maybe Text
- name :: Maybe Text
- httpStatus :: Int
- newCreateDeviceDefinitionResponse :: Int -> CreateDeviceDefinitionResponse
- createDeviceDefinitionResponse_arn :: Lens' CreateDeviceDefinitionResponse (Maybe Text)
- createDeviceDefinitionResponse_creationTimestamp :: Lens' CreateDeviceDefinitionResponse (Maybe Text)
- createDeviceDefinitionResponse_id :: Lens' CreateDeviceDefinitionResponse (Maybe Text)
- createDeviceDefinitionResponse_lastUpdatedTimestamp :: Lens' CreateDeviceDefinitionResponse (Maybe Text)
- createDeviceDefinitionResponse_latestVersion :: Lens' CreateDeviceDefinitionResponse (Maybe Text)
- createDeviceDefinitionResponse_latestVersionArn :: Lens' CreateDeviceDefinitionResponse (Maybe Text)
- createDeviceDefinitionResponse_name :: Lens' CreateDeviceDefinitionResponse (Maybe Text)
- createDeviceDefinitionResponse_httpStatus :: Lens' CreateDeviceDefinitionResponse Int
Creating a Request
data CreateDeviceDefinition Source #
See: newCreateDeviceDefinition smart constructor.
Constructors
| CreateDeviceDefinition' | |
Fields
| |
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.
CreateDeviceDefinition, createDeviceDefinition_name - The name of the device definition.
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.
Constructors
| CreateDeviceDefinitionResponse' | |
Fields
| |
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:
CreateDeviceDefinitionResponse, createDeviceDefinitionResponse_arn - The ARN of the definition.
CreateDeviceDefinitionResponse, createDeviceDefinitionResponse_creationTimestamp - The time, in milliseconds since the epoch, when the definition was
created.
CreateDeviceDefinitionResponse, createDeviceDefinitionResponse_id - The ID of the definition.
CreateDeviceDefinitionResponse, createDeviceDefinitionResponse_lastUpdatedTimestamp - The time, in milliseconds since the epoch, when the definition was last
updated.
CreateDeviceDefinitionResponse, createDeviceDefinitionResponse_latestVersion - The ID of the latest version associated with the definition.
CreateDeviceDefinitionResponse, createDeviceDefinitionResponse_latestVersionArn - The ARN of the latest version associated with the definition.
CreateDeviceDefinition, createDeviceDefinitionResponse_name - The name of the definition.
$sel:httpStatus:CreateDeviceDefinitionResponse', createDeviceDefinitionResponse_httpStatus - The response's http status code.
Response Lenses
createDeviceDefinitionResponse_arn :: Lens' CreateDeviceDefinitionResponse (Maybe Text) Source #
The ARN 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_lastUpdatedTimestamp :: Lens' CreateDeviceDefinitionResponse (Maybe Text) Source #
The time, in milliseconds since the epoch, when the definition was last updated.
createDeviceDefinitionResponse_latestVersion :: Lens' CreateDeviceDefinitionResponse (Maybe Text) Source #
The ID of the latest version associated with the definition.
createDeviceDefinitionResponse_latestVersionArn :: Lens' CreateDeviceDefinitionResponse (Maybe Text) Source #
The ARN of the latest version associated with the definition.
createDeviceDefinitionResponse_name :: Lens' CreateDeviceDefinitionResponse (Maybe Text) Source #
The name of the definition.
createDeviceDefinitionResponse_httpStatus :: Lens' CreateDeviceDefinitionResponse Int Source #
The response's http status code.