Class Endpoint
(experimental) Defines a SageMaker endpoint.
Inherited Members
Namespace: Amazon.CDK.AWS.Sagemaker.Alpha
Assembly: Amazon.CDK.AWS.Sagemaker.Alpha.dll
Syntax (csharp)
public class Endpoint : Resource, IEndpoint, IEndpoint, IResource, IConstruct, IDependable
Syntax (vb)
Public Class Endpoint Inherits Resource Implements IEndpoint, IEndpoint, IResource, IConstruct, IDependable
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.Sagemaker.Alpha;
EndpointConfig endpointConfig;
var endpoint = new Endpoint(this, "Endpoint", new EndpointProps { EndpointConfig = endpointConfig });
var productionVariant = endpoint.FindInstanceProductionVariant("my-variant");
productionVariant.MetricModelLatency().CreateAlarm(this, "ModelLatencyAlarm", new CreateAlarmOptions {
Threshold = 100000,
EvaluationPeriods = 3
});
Synopsis
Constructors
Endpoint(Construct, string, IEndpointProps) | (experimental) Defines a SageMaker endpoint. |
Properties
EndpointArn | (experimental) The ARN of the endpoint. |
EndpointName | (experimental) The name of the endpoint. |
InstanceProductionVariants | (experimental) Get instance production variants associated with endpoint. |
PROPERTY_INJECTION_ID | (experimental) Uniquely identifies this class. |
Methods
FindInstanceProductionVariant(string) | (experimental) Find instance production variant based on variant name. |
FromEndpointArn(Construct, string, string) | (experimental) Imports an Endpoint defined either outside the CDK or in a different CDK stack. |
FromEndpointAttributes(Construct, string, IEndpointAttributes) | (experimental) Imports an Endpoint defined either outside the CDK or in a different CDK stack. |
FromEndpointName(Construct, string, string) | (experimental) Imports an Endpoint defined either outside the CDK or in a different CDK stack. |
GrantInvoke(IGrantable) | (experimental) Permits an IAM principal to invoke this endpoint. |
Constructors
Endpoint(Construct, string, IEndpointProps)
(experimental) Defines a SageMaker endpoint.
public Endpoint(Construct scope, string id, IEndpointProps props)
Parameters
- scope Construct
- id string
- props IEndpointProps
Remarks
Stability: Experimental
Properties
EndpointArn
(experimental) The ARN of the endpoint.
public virtual string EndpointArn { get; }
Property Value
Remarks
Stability: Experimental
Attribute: true
EndpointName
(experimental) The name of the endpoint.
public virtual string EndpointName { get; }
Property Value
Remarks
Stability: Experimental
Attribute: true
InstanceProductionVariants
(experimental) Get instance production variants associated with endpoint.
public virtual IEndpointInstanceProductionVariant[] InstanceProductionVariants { get; }
Property Value
IEndpointInstanceProductionVariant[]
Remarks
Stability: Experimental
PROPERTY_INJECTION_ID
(experimental) Uniquely identifies this class.
public static string PROPERTY_INJECTION_ID { get; }
Property Value
Remarks
Stability: Experimental
Methods
FindInstanceProductionVariant(string)
(experimental) Find instance production variant based on variant name.
public virtual IEndpointInstanceProductionVariant FindInstanceProductionVariant(string name)
Parameters
- name string
Variant name from production variant.
Returns
IEndpointInstanceProductionVariant
Remarks
Stability: Experimental
FromEndpointArn(Construct, string, string)
(experimental) Imports an Endpoint defined either outside the CDK or in a different CDK stack.
public static IEndpoint FromEndpointArn(Construct scope, string id, string endpointArn)
Parameters
- scope Construct
the Construct scope.
- id string
the resource id.
- endpointArn string
the ARN of the endpoint.
Returns
Remarks
Stability: Experimental
FromEndpointAttributes(Construct, string, IEndpointAttributes)
(experimental) Imports an Endpoint defined either outside the CDK or in a different CDK stack.
public static IEndpoint FromEndpointAttributes(Construct scope, string id, IEndpointAttributes attrs)
Parameters
- scope Construct
the Construct scope.
- id string
the resource id.
- attrs IEndpointAttributes
the attributes of the endpoint to import.
Returns
Remarks
Stability: Experimental
FromEndpointName(Construct, string, string)
(experimental) Imports an Endpoint defined either outside the CDK or in a different CDK stack.
public static IEndpoint FromEndpointName(Construct scope, string id, string endpointName)
Parameters
- scope Construct
the Construct scope.
- id string
the resource id.
- endpointName string
the name of the endpoint.
Returns
Remarks
Stability: Experimental
GrantInvoke(IGrantable)
(experimental) Permits an IAM principal to invoke this endpoint.
public virtual Grant GrantInvoke(IGrantable grantee)
Parameters
- grantee IGrantable
The principal to grant access to.
Returns
Remarks
Stability: Experimental