Skip to content

CapacityReservationEndpointsAssociation

Source code in docs_src/capo_sagemaker/types/capacity_reservation_endpoints_association.py
class CapacityReservationEndpointsAssociation(TypedDict, closed=True):
    ml_reservation_id: NotRequired[
        "capo_sagemaker.types.capacity_reservation_ml_reservation_id.CapacityReservationMlReservationId"
    ]
    """<p>The name of the ML capacity reservation. The name is the last part of the ML capacity reservation ARN.</p>"""
    status: NotRequired[
        "capo_sagemaker.types.capacity_reservation_opt_in_status.CapacityReservationOptInStatus"
    ]
    """<p>The status of the association. Valid values:</p> <dl> <dt>Pending</dt> <dd> <p>SageMaker AI is adding or removing the association.</p> </dd> <dt>Active</dt> <dd> <p>The resources are associated with the SageMaker Capacity Reservation and can use its instances.</p> </dd> <dt>Inactive</dt> <dd> <p>The resources are not associated with the SageMaker Capacity Reservation.</p> </dd> </dl>"""
    match_criteria: NotRequired[
        "capo_sagemaker.types.capacity_reservation_match_criteria.CapacityReservationMatchCriteria"
    ]
    """<p>How endpoints in your account match the ML capacity reservation. Valid values:</p> <dl> <dt>Open</dt> <dd> <p>Endpoints in your account use the ML capacity reservation automatically when their instance type matches. You don't specify the ML capacity reservation ARN when you create the endpoint.</p> </dd> <dt>Targeted</dt> <dd> <p>An endpoint uses the ML capacity reservation only when you specify its ARN when you create or update the endpoint.</p> </dd> </dl>"""
    endpoint_sharing: NotRequired[
        "capo_sagemaker.types.capacity_reservation_endpoint_sharing.CapacityReservationEndpointSharing"
    ]
    """<p>Whether one endpoint or multiple endpoints can use the ML capacity reservation. Valid values:</p> <dl> <dt>SingleEndpoint</dt> <dd> <p>Only one endpoint can use the ML capacity reservation.</p> </dd> <dt>MultipleEndpoints</dt> <dd> <p>Multiple endpoints can use the ML capacity reservation.</p> </dd> </dl>"""
    ml_reservation_arn: NotRequired[
        "capo_sagemaker.types.ml_reservation_arn.MlReservationArn"
    ]
    """<p>The Amazon Resource Name (ARN) of the ML capacity reservation. Specify this ARN in <code>CreateEndpointConfig</code> to use the reserved instances for an endpoint. For a new ML capacity reservation, this value is returned when the status is <code>Active</code>.</p>"""
    failure_reason: NotRequired["capo_sagemaker.types.failure_reason.FailureReason"]
    """<p>The reason that the most recent attempt to add or remove the association failed. This value is returned only when the most recent attempt failed. After a failure to add the association, the status is <code>Inactive</code>. After a failure to remove the association, the status is <code>Active</code>.</p>"""
    associated_time: NotRequired["capo_sagemaker.types.timestamp.Timestamp"]
    """<p>The time when SageMaker AI started the current association. This time resets when you add the association again after it was removed or after it failed.</p>"""

associated_time instance-attribute

associated_time: NotRequired[Timestamp]

The time when SageMaker AI started the current association. This time resets when you add the association again after it was removed or after it failed.

endpoint_sharing instance-attribute

endpoint_sharing: NotRequired[CapacityReservationEndpointSharing]

Whether one endpoint or multiple endpoints can use the ML capacity reservation. Valid values:

SingleEndpoint

Only one endpoint can use the ML capacity reservation.

MultipleEndpoints

Multiple endpoints can use the ML capacity reservation.

failure_reason instance-attribute

failure_reason: NotRequired[FailureReason]

The reason that the most recent attempt to add or remove the association failed. This value is returned only when the most recent attempt failed. After a failure to add the association, the status is Inactive. After a failure to remove the association, the status is Active.

match_criteria instance-attribute

match_criteria: NotRequired[CapacityReservationMatchCriteria]

How endpoints in your account match the ML capacity reservation. Valid values:

Open

Endpoints in your account use the ML capacity reservation automatically when their instance type matches. You don't specify the ML capacity reservation ARN when you create the endpoint.

Targeted

An endpoint uses the ML capacity reservation only when you specify its ARN when you create or update the endpoint.

ml_reservation_arn instance-attribute

ml_reservation_arn: NotRequired[MlReservationArn]

The Amazon Resource Name (ARN) of the ML capacity reservation. Specify this ARN in CreateEndpointConfig to use the reserved instances for an endpoint. For a new ML capacity reservation, this value is returned when the status is Active.

ml_reservation_id instance-attribute

ml_reservation_id: NotRequired[CapacityReservationMlReservationId]

The name of the ML capacity reservation. The name is the last part of the ML capacity reservation ARN.

status instance-attribute

status: NotRequired[CapacityReservationOptInStatus]

The status of the association. Valid values:

Pending

SageMaker AI is adding or removing the association.

Active

The resources are associated with the SageMaker Capacity Reservation and can use its instances.

Inactive

The resources are not associated with the SageMaker Capacity Reservation.