| 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.SageMaker.UpdateContext
Description
Updates a context.
Synopsis
- data UpdateContext = UpdateContext' {
- description :: Maybe Text
 - properties :: Maybe (HashMap Text Text)
 - propertiesToRemove :: Maybe [Text]
 - contextName :: Text
 
 - newUpdateContext :: Text -> UpdateContext
 - updateContext_description :: Lens' UpdateContext (Maybe Text)
 - updateContext_properties :: Lens' UpdateContext (Maybe (HashMap Text Text))
 - updateContext_propertiesToRemove :: Lens' UpdateContext (Maybe [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.
Constructors
| UpdateContext' | |
Fields 
  | |
Instances
Arguments
| :: Text | |
| -> UpdateContext | 
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:
UpdateContext, updateContext_description - The new description for the context.
UpdateContext, updateContext_properties - The new list of properties. Overwrites the current property list.
$sel:propertiesToRemove:UpdateContext', updateContext_propertiesToRemove - A list of properties to remove.
UpdateContext, updateContext_contextName - The name of the context to update.
Request Lenses
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_propertiesToRemove :: Lens' UpdateContext (Maybe [Text]) Source #
A list of properties to remove.
updateContext_contextName :: Lens' UpdateContext Text Source #
The name of the context to update.
Destructuring the Response
data UpdateContextResponse Source #
See: newUpdateContextResponse smart constructor.
Constructors
| UpdateContextResponse' | |
Fields 
  | |
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:
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.