All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
io.github.cdklabs.generative_ai_cdk_constructs.CustomSageMakerEndpoint Maven / Gradle / Ivy
package io.github.cdklabs.generative_ai_cdk_constructs;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-10-07T16:14:00.531Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Jsii(module = io.github.cdklabs.generative_ai_cdk_constructs.$Module.class, fqn = "@cdklabs/generative-ai-cdk-constructs.CustomSageMakerEndpoint")
public class CustomSageMakerEndpoint extends io.github.cdklabs.generative_ai_cdk_constructs.SageMakerEndpointBase implements software.amazon.awscdk.services.iam.IGrantable {
protected CustomSageMakerEndpoint(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected CustomSageMakerEndpoint(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* @param scope This parameter is required.
* @param id This parameter is required.
* @param props This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public CustomSageMakerEndpoint(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull io.github.cdklabs.generative_ai_cdk_constructs.CustomSageMakerEndpointProps props) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(props, "props is required") });
}
/**
* @param statement This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public void addToRolePolicy(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.iam.PolicyStatement statement) {
software.amazon.jsii.Kernel.call(this, "addToRolePolicy", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(statement, "statement is required") });
}
/**
* @param grantee This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.iam.Grant grantInvoke(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.iam.IGrantable grantee) {
return software.amazon.jsii.Kernel.call(this, "grantInvoke", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.iam.Grant.class), new Object[] { java.util.Objects.requireNonNull(grantee, "grantee is required") });
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.sagemaker.CfnEndpoint getCfnEndpoint() {
return software.amazon.jsii.Kernel.get(this, "cfnEndpoint", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.sagemaker.CfnEndpoint.class));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.sagemaker.CfnEndpointConfig getCfnEndpointConfig() {
return software.amazon.jsii.Kernel.get(this, "cfnEndpointConfig", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.sagemaker.CfnEndpointConfig.class));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.sagemaker.CfnModel getCfnModel() {
return software.amazon.jsii.Kernel.get(this, "cfnModel", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.sagemaker.CfnModel.class));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull java.lang.String getEndpointArn() {
return software.amazon.jsii.Kernel.get(this, "endpointArn", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* (experimental) The principal to grant permissions to.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.iam.IPrincipal getGrantPrincipal() {
return software.amazon.jsii.Kernel.get(this, "grantPrincipal", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.iam.IPrincipal.class));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull java.lang.Number getInstanceCount() {
return software.amazon.jsii.Kernel.get(this, "instanceCount", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull java.lang.Number getModelDataDownloadTimeoutInSeconds() {
return software.amazon.jsii.Kernel.get(this, "modelDataDownloadTimeoutInSeconds", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull java.lang.String getModelDataUrl() {
return software.amazon.jsii.Kernel.get(this, "modelDataUrl", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull java.lang.String getModelId() {
return software.amazon.jsii.Kernel.get(this, "modelId", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.iam.Role getRole() {
return software.amazon.jsii.Kernel.get(this, "role", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.iam.Role.class));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.applicationautoscaling.StepScalingPolicy getScalingPolicy() {
return software.amazon.jsii.Kernel.get(this, "scalingPolicy", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.applicationautoscaling.StepScalingPolicy.class));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.sns.Topic getErrorTopic() {
return software.amazon.jsii.Kernel.get(this, "errorTopic", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.sns.Topic.class));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.Nullable io.github.cdklabs.generative_ai_cdk_constructs.SageMakerInstanceType getInstanceType() {
return software.amazon.jsii.Kernel.get(this, "instanceType", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.generative_ai_cdk_constructs.SageMakerInstanceType.class));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.sns.Topic getSuccessTopic() {
return software.amazon.jsii.Kernel.get(this, "successTopic", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.sns.Topic.class));
}
/**
* (experimental) A fluent builder for {@link io.github.cdklabs.generative_ai_cdk_constructs.CustomSageMakerEndpoint}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static final class Builder implements software.amazon.jsii.Builder {
/**
* @return a new instance of {@link Builder}.
* @param scope This parameter is required.
* @param id This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static Builder create(final software.constructs.Construct scope, final java.lang.String id) {
return new Builder(scope, id);
}
private final software.constructs.Construct scope;
private final java.lang.String id;
private final io.github.cdklabs.generative_ai_cdk_constructs.CustomSageMakerEndpointProps.Builder props;
private Builder(final software.constructs.Construct scope, final java.lang.String id) {
this.scope = scope;
this.id = id;
this.props = new io.github.cdklabs.generative_ai_cdk_constructs.CustomSageMakerEndpointProps.Builder();
}
/**
* @return {@code this}
* @param container This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder container(final io.github.cdklabs.generative_ai_cdk_constructs.ContainerImage container) {
this.props.container(container);
return this;
}
/**
* @return {@code this}
* @param endpointName This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder endpointName(final java.lang.String endpointName) {
this.props.endpointName(endpointName);
return this;
}
/**
* @return {@code this}
* @param instanceType This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder instanceType(final io.github.cdklabs.generative_ai_cdk_constructs.SageMakerInstanceType instanceType) {
this.props.instanceType(instanceType);
return this;
}
/**
* @return {@code this}
* @param modelDataUrl This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder modelDataUrl(final java.lang.String modelDataUrl) {
this.props.modelDataUrl(modelDataUrl);
return this;
}
/**
* @return {@code this}
* @param modelId This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder modelId(final java.lang.String modelId) {
this.props.modelId(modelId);
return this;
}
/**
* @return {@code this}
* @param asyncInference This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder asyncInference(final io.github.cdklabs.generative_ai_cdk_constructs.AsyncInferenceConfig asyncInference) {
this.props.asyncInference(asyncInference);
return this;
}
/**
* @return {@code this}
* @param environment This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder environment(final java.util.Map environment) {
this.props.environment(environment);
return this;
}
/**
* @return {@code this}
* @param instanceCount This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder instanceCount(final java.lang.Number instanceCount) {
this.props.instanceCount(instanceCount);
return this;
}
/**
* @return {@code this}
* @param maxCapacity This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder maxCapacity(final java.lang.Number maxCapacity) {
this.props.maxCapacity(maxCapacity);
return this;
}
/**
* @return {@code this}
* @param minCapacity This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder minCapacity(final java.lang.Number minCapacity) {
this.props.minCapacity(minCapacity);
return this;
}
/**
* @return {@code this}
* @param modelDataDownloadTimeoutInSeconds This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder modelDataDownloadTimeoutInSeconds(final java.lang.Number modelDataDownloadTimeoutInSeconds) {
this.props.modelDataDownloadTimeoutInSeconds(modelDataDownloadTimeoutInSeconds);
return this;
}
/**
* @return {@code this}
* @param role This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder role(final software.amazon.awscdk.services.iam.Role role) {
this.props.role(role);
return this;
}
/**
* @return {@code this}
* @param startupHealthCheckTimeoutInSeconds This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder startupHealthCheckTimeoutInSeconds(final java.lang.Number startupHealthCheckTimeoutInSeconds) {
this.props.startupHealthCheckTimeoutInSeconds(startupHealthCheckTimeoutInSeconds);
return this;
}
/**
* @return {@code this}
* @param volumeSizeInGb This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder volumeSizeInGb(final java.lang.Number volumeSizeInGb) {
this.props.volumeSizeInGb(volumeSizeInGb);
return this;
}
/**
* @return {@code this}
* @param vpcConfig This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder vpcConfig(final software.amazon.awscdk.services.sagemaker.CfnModel.VpcConfigProperty vpcConfig) {
this.props.vpcConfig(vpcConfig);
return this;
}
/**
* @return a newly built instance of {@link io.github.cdklabs.generative_ai_cdk_constructs.CustomSageMakerEndpoint}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public io.github.cdklabs.generative_ai_cdk_constructs.CustomSageMakerEndpoint build() {
return new io.github.cdklabs.generative_ai_cdk_constructs.CustomSageMakerEndpoint(
this.scope,
this.id,
this.props.build()
);
}
}
}