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 |
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
- data UpdateEndpointWeightsAndCapacities = UpdateEndpointWeightsAndCapacities' {}
- newUpdateEndpointWeightsAndCapacities :: Text -> NonEmpty DesiredWeightAndCapacity -> UpdateEndpointWeightsAndCapacities
- updateEndpointWeightsAndCapacities_endpointName :: Lens' UpdateEndpointWeightsAndCapacities Text
- updateEndpointWeightsAndCapacities_desiredWeightsAndCapacities :: Lens' UpdateEndpointWeightsAndCapacities (NonEmpty DesiredWeightAndCapacity)
- data UpdateEndpointWeightsAndCapacitiesResponse = UpdateEndpointWeightsAndCapacitiesResponse' {
- httpStatus :: Int
- endpointArn :: Text
- newUpdateEndpointWeightsAndCapacitiesResponse :: Int -> Text -> UpdateEndpointWeightsAndCapacitiesResponse
- updateEndpointWeightsAndCapacitiesResponse_httpStatus :: Lens' UpdateEndpointWeightsAndCapacitiesResponse Int
- updateEndpointWeightsAndCapacitiesResponse_endpointArn :: Lens' UpdateEndpointWeightsAndCapacitiesResponse Text
Creating a Request
data UpdateEndpointWeightsAndCapacities Source #
See: newUpdateEndpointWeightsAndCapacities
smart constructor.
UpdateEndpointWeightsAndCapacities' | |
|
Instances
newUpdateEndpointWeightsAndCapacities Source #
:: Text | |
-> NonEmpty DesiredWeightAndCapacity |
|
-> UpdateEndpointWeightsAndCapacities |
Create a value of UpdateEndpointWeightsAndCapacities
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:endpointName:UpdateEndpointWeightsAndCapacities'
, updateEndpointWeightsAndCapacities_endpointName
- The name of an existing Amazon SageMaker endpoint.
$sel:desiredWeightsAndCapacities:UpdateEndpointWeightsAndCapacities'
, updateEndpointWeightsAndCapacities_desiredWeightsAndCapacities
- An object that provides new capacity and weight values for a variant.
Request Lenses
updateEndpointWeightsAndCapacities_endpointName :: Lens' UpdateEndpointWeightsAndCapacities Text Source #
The name of an existing Amazon SageMaker endpoint.
updateEndpointWeightsAndCapacities_desiredWeightsAndCapacities :: Lens' UpdateEndpointWeightsAndCapacities (NonEmpty DesiredWeightAndCapacity) Source #
An object that provides new capacity and weight values for a variant.
Destructuring the Response
data UpdateEndpointWeightsAndCapacitiesResponse Source #
See: newUpdateEndpointWeightsAndCapacitiesResponse
smart constructor.
UpdateEndpointWeightsAndCapacitiesResponse' | |
|
Instances
newUpdateEndpointWeightsAndCapacitiesResponse Source #
:: Int | |
-> Text |
|
-> UpdateEndpointWeightsAndCapacitiesResponse |
Create a value of UpdateEndpointWeightsAndCapacitiesResponse
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:UpdateEndpointWeightsAndCapacitiesResponse'
, updateEndpointWeightsAndCapacitiesResponse_httpStatus
- The response's http status code.
$sel:endpointArn:UpdateEndpointWeightsAndCapacitiesResponse'
, updateEndpointWeightsAndCapacitiesResponse_endpointArn
- The Amazon Resource Name (ARN) of the updated endpoint.
Response Lenses
updateEndpointWeightsAndCapacitiesResponse_httpStatus :: Lens' UpdateEndpointWeightsAndCapacitiesResponse Int Source #
The response's http status code.
updateEndpointWeightsAndCapacitiesResponse_endpointArn :: Lens' UpdateEndpointWeightsAndCapacitiesResponse Text Source #
The Amazon Resource Name (ARN) of the updated endpoint.