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 |
Creates a context. A context is a lineage tracking entity that represents a logical grouping of other tracking or experiment entities. Some examples are an endpoint and a model package. For more information, see Amazon SageMaker ML Lineage Tracking.
Synopsis
- data CreateContext = CreateContext' {
- description :: Maybe Text
- properties :: Maybe (HashMap Text Text)
- tags :: Maybe [Tag]
- contextName :: Text
- source :: ContextSource
- contextType :: Text
- newCreateContext :: Text -> ContextSource -> Text -> CreateContext
- createContext_description :: Lens' CreateContext (Maybe Text)
- createContext_properties :: Lens' CreateContext (Maybe (HashMap Text Text))
- createContext_tags :: Lens' CreateContext (Maybe [Tag])
- createContext_contextName :: Lens' CreateContext Text
- createContext_source :: Lens' CreateContext ContextSource
- createContext_contextType :: Lens' CreateContext Text
- data CreateContextResponse = CreateContextResponse' {
- contextArn :: Maybe Text
- httpStatus :: Int
- newCreateContextResponse :: Int -> CreateContextResponse
- createContextResponse_contextArn :: Lens' CreateContextResponse (Maybe Text)
- createContextResponse_httpStatus :: Lens' CreateContextResponse Int
Creating a Request
data CreateContext Source #
See: newCreateContext
smart constructor.
CreateContext' | |
|
Instances
Create a value of CreateContext
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:
CreateContext
, createContext_description
- The description of the context.
CreateContext
, createContext_properties
- A list of properties to add to the context.
CreateContext
, createContext_tags
- A list of tags to apply to the context.
CreateContext
, createContext_contextName
- The name of the context. Must be unique to your account in an Amazon Web
Services Region.
CreateContext
, createContext_source
- The source type, ID, and URI.
CreateContext
, createContext_contextType
- The context type.
Request Lenses
createContext_description :: Lens' CreateContext (Maybe Text) Source #
The description of the context.
createContext_properties :: Lens' CreateContext (Maybe (HashMap Text Text)) Source #
A list of properties to add to the context.
createContext_tags :: Lens' CreateContext (Maybe [Tag]) Source #
A list of tags to apply to the context.
createContext_contextName :: Lens' CreateContext Text Source #
The name of the context. Must be unique to your account in an Amazon Web Services Region.
createContext_source :: Lens' CreateContext ContextSource Source #
The source type, ID, and URI.
createContext_contextType :: Lens' CreateContext Text Source #
The context type.
Destructuring the Response
data CreateContextResponse Source #
See: newCreateContextResponse
smart constructor.
CreateContextResponse' | |
|
Instances
newCreateContextResponse Source #
Create a value of CreateContextResponse
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:
CreateContextResponse
, createContextResponse_contextArn
- The Amazon Resource Name (ARN) of the context.
$sel:httpStatus:CreateContextResponse'
, createContextResponse_httpStatus
- The response's http status code.
Response Lenses
createContextResponse_contextArn :: Lens' CreateContextResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the context.
createContextResponse_httpStatus :: Lens' CreateContextResponse Int Source #
The response's http status code.