amazonka-sagemaker-2.0: Amazon SageMaker Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

Creating a Request

data UpdateModelCard Source #

See: newUpdateModelCard smart constructor.

Constructors

UpdateModelCard' 

Fields

  • content :: Maybe (Sensitive Text)

    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.

  • modelCardStatus :: Maybe 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.
  • modelCardName :: Text

    The name of the model card to update.

Instances

Instances details
ToJSON UpdateModelCard Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateModelCard

ToHeaders UpdateModelCard Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateModelCard

ToPath UpdateModelCard Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateModelCard

ToQuery UpdateModelCard Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateModelCard

AWSRequest UpdateModelCard Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateModelCard

Associated Types

type AWSResponse UpdateModelCard #

Generic UpdateModelCard Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateModelCard

Associated Types

type Rep UpdateModelCard :: Type -> Type #

Show UpdateModelCard Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateModelCard

NFData UpdateModelCard Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateModelCard

Methods

rnf :: UpdateModelCard -> () #

Eq UpdateModelCard Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateModelCard

Hashable UpdateModelCard Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateModelCard

type AWSResponse UpdateModelCard Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateModelCard

type Rep UpdateModelCard Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateModelCard

type Rep UpdateModelCard = D1 ('MetaData "UpdateModelCard" "Amazonka.SageMaker.UpdateModelCard" "amazonka-sagemaker-2.0-9SyrKZ4KqhsL1qX9u3ILA3" 'False) (C1 ('MetaCons "UpdateModelCard'" 'PrefixI 'True) (S1 ('MetaSel ('Just "content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: (S1 ('MetaSel ('Just "modelCardStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ModelCardStatus)) :*: S1 ('MetaSel ('Just "modelCardName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newUpdateModelCard Source #

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

Instances details
Generic UpdateModelCardResponse Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateModelCard

Associated Types

type Rep UpdateModelCardResponse :: Type -> Type #

Read UpdateModelCardResponse Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateModelCard

Show UpdateModelCardResponse Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateModelCard

NFData UpdateModelCardResponse Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateModelCard

Methods

rnf :: UpdateModelCardResponse -> () #

Eq UpdateModelCardResponse Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateModelCard

type Rep UpdateModelCardResponse Source # 
Instance details

Defined in Amazonka.SageMaker.UpdateModelCard

type Rep UpdateModelCardResponse = D1 ('MetaData "UpdateModelCardResponse" "Amazonka.SageMaker.UpdateModelCard" "amazonka-sagemaker-2.0-9SyrKZ4KqhsL1qX9u3ILA3" 'False) (C1 ('MetaCons "UpdateModelCardResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "modelCardArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newUpdateModelCardResponse Source #

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_modelCardArn :: Lens' UpdateModelCardResponse Text Source #

The Amazon Resource Name (ARN) of the updated model card.