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
Syntax (vb)
Public Class Endpoint
Inherits Resource
Implements IEndpoint, IEndpoint, IResource
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(By |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Endpoint(Deputy |
Used by jsii to construct an instance of this class from DeputyProps |
Endpoint(Construct, String, IEndpoint |
Properties
Endpoint |
(experimental) The ARN of the endpoint. |
Endpoint |
(experimental) The name of the endpoint. |
Instance |
(experimental) Get instance production variants associated with endpoint. |
Methods
Find |
(experimental) Find instance production variant based on variant name. |
From |
(experimental) Imports an Endpoint defined either outside the CDK or in a different CDK stack. |
From |
(experimental) Imports an Endpoint defined either outside the CDK or in a different CDK stack. |
From |
(experimental) Imports an Endpoint defined either outside the CDK or in a different CDK stack. |
Grant |
(experimental) Permits an IAM principal to invoke this endpoint. |
Constructors
Endpoint(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected Endpoint(ByRefValue reference)
Parameters
- reference Amazon.
JSII. Runtime. Deputy. By Ref Value The Javascript-owned object reference
Endpoint(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected Endpoint(DeputyBase.DeputyProps props)
Parameters
- props Amazon.
JSII. Runtime. Deputy. Deputy Base. Deputy Props The deputy props
Endpoint(Construct, String, IEndpointProps)
public Endpoint(Construct scope, string id, IEndpointProps props)
Parameters
- scope Constructs.
Construct - id System.
String - props IEndpoint
Props
Remarks
Stability: Experimental
Properties
EndpointArn
(experimental) The ARN of the endpoint.
public virtual string EndpointArn { get; }
Property Value
System.
Remarks
Stability: Experimental
Attribute: true
EndpointName
(experimental) The name of the endpoint.
public virtual string EndpointName { get; }
Property Value
System.
Remarks
Stability: Experimental
Attribute: true
InstanceProductionVariants
(experimental) Get instance production variants associated with endpoint.
public virtual IEndpointInstanceProductionVariant[] InstanceProductionVariants { get; }
Property Value
IEndpoint
Remarks
Stability: Experimental
Methods
FindInstanceProductionVariant(String)
(experimental) Find instance production variant based on variant name.
public virtual IEndpointInstanceProductionVariant FindInstanceProductionVariant(string name)
Parameters
- name System.
String Variant name from production variant.
Returns
IEndpoint
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 Constructs.
Construct the Construct scope.
- id System.
String the resource id.
- endpointArn System.
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 Constructs.
Construct the Construct scope.
- id System.
String the resource id.
- attrs IEndpoint
Attributes 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 Constructs.
Construct the Construct scope.
- id System.
String the resource id.
- endpointName System.
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