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 |
Updates a device definition.
Synopsis
- data UpdateDeviceDefinition = UpdateDeviceDefinition' {
- name :: Maybe Text
- deviceDefinitionId :: Text
- newUpdateDeviceDefinition :: Text -> UpdateDeviceDefinition
- updateDeviceDefinition_name :: Lens' UpdateDeviceDefinition (Maybe Text)
- updateDeviceDefinition_deviceDefinitionId :: Lens' UpdateDeviceDefinition Text
- data UpdateDeviceDefinitionResponse = UpdateDeviceDefinitionResponse' {
- httpStatus :: Int
- newUpdateDeviceDefinitionResponse :: Int -> UpdateDeviceDefinitionResponse
- updateDeviceDefinitionResponse_httpStatus :: Lens' UpdateDeviceDefinitionResponse Int
Creating a Request
data UpdateDeviceDefinition Source #
See: newUpdateDeviceDefinition
smart constructor.
UpdateDeviceDefinition' | |
|
Instances
newUpdateDeviceDefinition Source #
Create a value of UpdateDeviceDefinition
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:name:UpdateDeviceDefinition'
, updateDeviceDefinition_name
- The name of the definition.
$sel:deviceDefinitionId:UpdateDeviceDefinition'
, updateDeviceDefinition_deviceDefinitionId
- The ID of the device definition.
Request Lenses
updateDeviceDefinition_name :: Lens' UpdateDeviceDefinition (Maybe Text) Source #
The name of the definition.
updateDeviceDefinition_deviceDefinitionId :: Lens' UpdateDeviceDefinition Text Source #
The ID of the device definition.
Destructuring the Response
data UpdateDeviceDefinitionResponse Source #
See: newUpdateDeviceDefinitionResponse
smart constructor.
UpdateDeviceDefinitionResponse' | |
|
Instances
Eq UpdateDeviceDefinitionResponse Source # | |
Read UpdateDeviceDefinitionResponse Source # | |
Show UpdateDeviceDefinitionResponse Source # | |
Defined in Amazonka.Greengrass.UpdateDeviceDefinition | |
Generic UpdateDeviceDefinitionResponse Source # | |
NFData UpdateDeviceDefinitionResponse Source # | |
Defined in Amazonka.Greengrass.UpdateDeviceDefinition rnf :: UpdateDeviceDefinitionResponse -> () # | |
type Rep UpdateDeviceDefinitionResponse Source # | |
Defined in Amazonka.Greengrass.UpdateDeviceDefinition type Rep UpdateDeviceDefinitionResponse = D1 ('MetaData "UpdateDeviceDefinitionResponse" "Amazonka.Greengrass.UpdateDeviceDefinition" "libZSservicesZSamazonka-greengrassZSamazonka-greengrass" 'False) (C1 ('MetaCons "UpdateDeviceDefinitionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newUpdateDeviceDefinitionResponse Source #
Create a value of UpdateDeviceDefinitionResponse
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:UpdateDeviceDefinitionResponse'
, updateDeviceDefinitionResponse_httpStatus
- The response's http status code.
Response Lenses
updateDeviceDefinitionResponse_httpStatus :: Lens' UpdateDeviceDefinitionResponse Int Source #
The response's http status code.