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 context.
Synopsis
- data UpdateContext = UpdateContext' {
- propertiesToRemove :: Maybe [Text]
- description :: Maybe Text
- properties :: Maybe (HashMap Text Text)
- contextName :: Text
- newUpdateContext :: Text -> UpdateContext
- updateContext_propertiesToRemove :: Lens' UpdateContext (Maybe [Text])
- updateContext_description :: Lens' UpdateContext (Maybe Text)
- updateContext_properties :: Lens' UpdateContext (Maybe (HashMap Text Text))
- updateContext_contextName :: Lens' UpdateContext Text
- data UpdateContextResponse = UpdateContextResponse' {
- contextArn :: Maybe Text
- httpStatus :: Int
- newUpdateContextResponse :: Int -> UpdateContextResponse
- updateContextResponse_contextArn :: Lens' UpdateContextResponse (Maybe Text)
- updateContextResponse_httpStatus :: Lens' UpdateContextResponse Int
Creating a Request
data UpdateContext Source #
See: newUpdateContext
smart constructor.
UpdateContext' | |
|
Instances
Create a value of UpdateContext
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:propertiesToRemove:UpdateContext'
, updateContext_propertiesToRemove
- A list of properties to remove.
$sel:description:UpdateContext'
, updateContext_description
- The new description for the context.
$sel:properties:UpdateContext'
, updateContext_properties
- The new list of properties. Overwrites the current property list.
$sel:contextName:UpdateContext'
, updateContext_contextName
- The name of the context to update.
Request Lenses
updateContext_propertiesToRemove :: Lens' UpdateContext (Maybe [Text]) Source #
A list of properties to remove.
updateContext_description :: Lens' UpdateContext (Maybe Text) Source #
The new description for the context.
updateContext_properties :: Lens' UpdateContext (Maybe (HashMap Text Text)) Source #
The new list of properties. Overwrites the current property list.
updateContext_contextName :: Lens' UpdateContext Text Source #
The name of the context to update.
Destructuring the Response
data UpdateContextResponse Source #
See: newUpdateContextResponse
smart constructor.
UpdateContextResponse' | |
|
Instances
newUpdateContextResponse Source #
Create a value of UpdateContextResponse
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:contextArn:UpdateContextResponse'
, updateContextResponse_contextArn
- The Amazon Resource Name (ARN) of the context.
$sel:httpStatus:UpdateContextResponse'
, updateContextResponse_httpStatus
- The response's http status code.
Response Lenses
updateContextResponse_contextArn :: Lens' UpdateContextResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the context.
updateContextResponse_httpStatus :: Lens' UpdateContextResponse Int Source #
The response's http status code.