Skip to content

/AWS1/CL_SGM=>UPDATEENDPTWTSANDCAPACITIES()

About UpdateEndpointWeightsAndCapacities

Updates variant weight of one or more variants associated with an existing endpoint, or capacity of one variant associated with an existing endpoint. When it receives the request, SageMaker sets the endpoint status to Updating. After updating the endpoint, it sets the status to InService. To check the status of an endpoint, use the DescribeEndpoint API.

Method Signature

IMPORTING

Required arguments:

IV_ENDPOINTNAME TYPE /AWS1/SGMENDPOINTNAME /AWS1/SGMENDPOINTNAME

The name of an existing SageMaker endpoint.

IT_DESIREDWTSANDCAPACITIES TYPE /AWS1/CL_SGMDESIREDWTANDCAP=>TT_DESIREDWEIGHTANDCAPLIST TT_DESIREDWEIGHTANDCAPLIST

An object that provides new capacity and weight values for a variant.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_SGMUPENDPTWTSANDCAP01 /AWS1/CL_SGMUPENDPTWTSANDCAP01