Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
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, Amazon 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.
Synopsis
- updateEndpointWeightsAndCapacities :: Text -> NonEmpty DesiredWeightAndCapacity -> UpdateEndpointWeightsAndCapacities
- data UpdateEndpointWeightsAndCapacities
- uewacEndpointName :: Lens' UpdateEndpointWeightsAndCapacities Text
- uewacDesiredWeightsAndCapacities :: Lens' UpdateEndpointWeightsAndCapacities (NonEmpty DesiredWeightAndCapacity)
- updateEndpointWeightsAndCapacitiesResponse :: Int -> Text -> UpdateEndpointWeightsAndCapacitiesResponse
- data UpdateEndpointWeightsAndCapacitiesResponse
- uewacrsResponseStatus :: Lens' UpdateEndpointWeightsAndCapacitiesResponse Int
- uewacrsEndpointARN :: Lens' UpdateEndpointWeightsAndCapacitiesResponse Text
Creating a Request
updateEndpointWeightsAndCapacities Source #
Creates a value of UpdateEndpointWeightsAndCapacities
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
uewacEndpointName
- The name of an existing Amazon SageMaker endpoint.uewacDesiredWeightsAndCapacities
- An object that provides new capacity and weight values for a variant.
data UpdateEndpointWeightsAndCapacities Source #
See: updateEndpointWeightsAndCapacities
smart constructor.
Instances
Request Lenses
uewacEndpointName :: Lens' UpdateEndpointWeightsAndCapacities Text Source #
The name of an existing Amazon SageMaker endpoint.
uewacDesiredWeightsAndCapacities :: Lens' UpdateEndpointWeightsAndCapacities (NonEmpty DesiredWeightAndCapacity) Source #
An object that provides new capacity and weight values for a variant.
Destructuring the Response
updateEndpointWeightsAndCapacitiesResponse Source #
Creates a value of UpdateEndpointWeightsAndCapacitiesResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
uewacrsResponseStatus
- -- | The response status code.uewacrsEndpointARN
- The Amazon Resource Name (ARN) of the updated endpoint.
data UpdateEndpointWeightsAndCapacitiesResponse Source #
See: updateEndpointWeightsAndCapacitiesResponse
smart constructor.
Instances
Response Lenses
uewacrsResponseStatus :: Lens' UpdateEndpointWeightsAndCapacitiesResponse Int Source #
- - | The response status code.
uewacrsEndpointARN :: Lens' UpdateEndpointWeightsAndCapacitiesResponse Text Source #
The Amazon Resource Name (ARN) of the updated endpoint.