| 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.UpdateModelCard
Description
Update an Amazon SageMaker Model Card.
You cannot update both model card content and model card status in a single call.
Synopsis
- data UpdateModelCard = UpdateModelCard' {}
- newUpdateModelCard :: Text -> UpdateModelCard
- updateModelCard_content :: Lens' UpdateModelCard (Maybe Text)
- updateModelCard_modelCardStatus :: Lens' UpdateModelCard (Maybe ModelCardStatus)
- updateModelCard_modelCardName :: Lens' UpdateModelCard Text
- data UpdateModelCardResponse = UpdateModelCardResponse' {
- httpStatus :: Int
- modelCardArn :: Text
- newUpdateModelCardResponse :: Int -> Text -> UpdateModelCardResponse
- updateModelCardResponse_httpStatus :: Lens' UpdateModelCardResponse Int
- updateModelCardResponse_modelCardArn :: Lens' UpdateModelCardResponse Text
Creating a Request
data UpdateModelCard Source #
See: newUpdateModelCard smart constructor.
Constructors
| UpdateModelCard' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> UpdateModelCard |
Create a value of UpdateModelCard 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:
UpdateModelCard, updateModelCard_content - The updated model card content. Content must be in
model card JSON schema
and provided as a string.
When updating model card content, be sure to include the full content and not just updated content.
UpdateModelCard, updateModelCard_modelCardStatus - The approval status of the model card within your organization.
Different organizations might have different criteria for model card
review and approval.
Draft: The model card is a work in progress.PendingReview: The model card is pending review.Approved: The model card is approved.Archived: The model card is archived. No more updates should be made to the model card, but it can still be exported.
UpdateModelCard, updateModelCard_modelCardName - The name of the model card to update.
Request Lenses
updateModelCard_content :: Lens' UpdateModelCard (Maybe Text) Source #
The updated model card content. Content must be in model card JSON schema and provided as a string.
When updating model card content, be sure to include the full content and not just updated content.
updateModelCard_modelCardStatus :: Lens' UpdateModelCard (Maybe ModelCardStatus) Source #
The approval status of the model card within your organization. Different organizations might have different criteria for model card review and approval.
Draft: The model card is a work in progress.PendingReview: The model card is pending review.Approved: The model card is approved.Archived: The model card is archived. No more updates should be made to the model card, but it can still be exported.
updateModelCard_modelCardName :: Lens' UpdateModelCard Text Source #
The name of the model card to update.
Destructuring the Response
data UpdateModelCardResponse Source #
See: newUpdateModelCardResponse smart constructor.
Constructors
| UpdateModelCardResponse' | |
Fields
| |
Instances
newUpdateModelCardResponse Source #
Arguments
| :: Int | |
| -> Text | |
| -> UpdateModelCardResponse |
Create a value of UpdateModelCardResponse 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:UpdateModelCardResponse', updateModelCardResponse_httpStatus - The response's http status code.
UpdateModelCardResponse, updateModelCardResponse_modelCardArn - The Amazon Resource Name (ARN) of the updated model card.
Response Lenses
updateModelCardResponse_httpStatus :: Lens' UpdateModelCardResponse Int Source #
The response's http status code.
updateModelCardResponse_modelCardArn :: Lens' UpdateModelCardResponse Text Source #
The Amazon Resource Name (ARN) of the updated model card.