add_inference_gateway
¶
add_inference_gateway(
*,
config_overrides: Optional[SageMakerClientConfig] = None,
identifier: Optional[GlobalInferenceGatewayIdentifier] = None,
cluster_arn: Optional[GlobalInferenceGatewayClusterArn] = None,
namespace: Optional[GlobalInferenceGatewayKubernetesNamespace] = None,
name: Optional[GlobalInferenceGatewayKubernetesResourceName] = None,
) -> AddInferenceGatewayResponse
Adds an in-cluster inference gateway to a global inference gateway. This operation is asynchronous: the in-cluster inference gateway starts in the ADDING status. To check its status, call ListInferenceGateways. If the in-cluster inference gateway is already in the global inference gateway, the operation succeeds and returns its current status. An in-cluster inference gateway can belong to only one global inference gateway. If it already belongs to another global inference gateway, the operation fails with ResourceInUse. The operation fails with ConflictException while another operation is in progress on the global inference gateway, or if the global inference gateway failed to create.
Parameters:
-
identifier(Optional[GlobalInferenceGatewayIdentifier], default:None) –The name, Amazon Resource Name (ARN), or ID of the global inference gateway.
-
cluster_arn(Optional[GlobalInferenceGatewayClusterArn], default:None) –The Amazon Resource Name (ARN) of the SageMaker HyperPod cluster that runs the in-cluster inference gateway. The cluster must be in the same account and partition as the global inference gateway. It can be in a different Region, but not in an opt-in Region.
-
namespace(Optional[GlobalInferenceGatewayKubernetesNamespace], default:None) –The Kubernetes namespace of the in-cluster inference gateway.
-
name(Optional[GlobalInferenceGatewayKubernetesResourceName], default:None) –The name of the
InferenceGatewayConfigresource that defines the in-cluster inference gateway.
Raises:
-
ConflictException–There was a conflict when you attempted to modify a SageMaker entity such as an
ExperimentorArtifact. -
ResourceInUse–Resource being accessed is in use.
-
ResourceLimitExceeded–You have exceeded an SageMaker resource limit. For example, you might have too many training jobs created.
-
ResourceNotFound–Resource being access is not found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/sage_maker.py
1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 | |