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 |
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
- tags :: Maybe [Tag]
- properties :: Maybe (HashMap Text Text)
- contextName :: Text
- source :: ContextSource
- contextType :: Text
- newCreateContext :: Text -> ContextSource -> Text -> CreateContext
- createContext_description :: Lens' CreateContext (Maybe Text)
- createContext_tags :: Lens' CreateContext (Maybe [Tag])
- createContext_properties :: Lens' CreateContext (Maybe (HashMap Text Text))
- 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
:: Text | |
-> ContextSource | |
-> Text | |
-> CreateContext |
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:
$sel:description:CreateContext'
, createContext_description
- The description of the context.
$sel:tags:CreateContext'
, createContext_tags
- A list of tags to apply to the context.
$sel:properties:CreateContext'
, createContext_properties
- A list of properties to add to the context.
$sel:contextName:CreateContext'
, createContext_contextName
- The name of the context. Must be unique to your account in an Amazon Web
Services Region.
$sel:source:CreateContext'
, createContext_source
- The source type, ID, and URI.
$sel:contextType:CreateContext'
, createContext_contextType
- The context type.
Request Lenses
createContext_description :: Lens' CreateContext (Maybe Text) Source #
The description of the context.
createContext_tags :: Lens' CreateContext (Maybe [Tag]) Source #
A list of tags to apply to the context.
createContext_properties :: Lens' CreateContext (Maybe (HashMap Text Text)) Source #
A list of properties to add 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:
$sel:contextArn: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.