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