InferenceComponentContainerSpecificationForInstanceTypeProperty Struct
Container specification for one Specifications entry.
Distinct from InferenceComponentContainerSpecification: DescribeInferenceComponent returns no per-entry DeployedImage (VERIFIED in us-west-2), so DeployedImage is intentionally omitted here and this definition can never be aggregated into a plural READ response. The singular InferenceComponentContainerSpecification keeps DeployedImage - the service DOES return it there.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const inferenceComponentContainerSpecificationForInstanceTypeProperty: sagemaker.CfnInferenceComponent.InferenceComponentContainerSpecificationForInstanceTypeProperty = {
artifactUrl: 'artifactUrl',
containerMetricsConfig: {
metricsEndpoints: [{
metricsEndpointPath: 'metricsEndpointPath',
// the properties below are optional
metricPublishFrequencyInSeconds: 123,
}],
},
environment: {
environmentKey: 'environment',
},
image: 'image',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sagemaker as sagemaker
inference_component_container_specification_for_instance_type_property = sagemaker.CfnInferenceComponent.InferenceComponentContainerSpecificationForInstanceTypeProperty(
artifact_url="artifactUrl",
container_metrics_config=sagemaker.CfnInferenceComponent.ContainerMetricsConfigProperty(
metrics_endpoints=[sagemaker.CfnInferenceComponent.MetricsEndpointProperty(
metrics_endpoint_path="metricsEndpointPath",
# the properties below are optional
metric_publish_frequency_in_seconds=123
)]
),
environment={
"environment_key": "environment"
},
image="image"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sagemaker.*;
InferenceComponentContainerSpecificationForInstanceTypeProperty inferenceComponentContainerSpecificationForInstanceTypeProperty = InferenceComponentContainerSpecificationForInstanceTypeProperty.builder()
.artifactUrl("artifactUrl")
.containerMetricsConfig(ContainerMetricsConfigProperty.builder()
.metricsEndpoints(List.of(MetricsEndpointProperty.builder()
.metricsEndpointPath("metricsEndpointPath")
// the properties below are optional
.metricPublishFrequencyInSeconds(123)
.build()))
.build())
.environment(Map.of(
"environmentKey", "environment"))
.image("image")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Sagemaker;
var inferenceComponentContainerSpecificationForInstanceTypeProperty = new InferenceComponentContainerSpecificationForInstanceTypeProperty {
ArtifactUrl = "artifactUrl",
ContainerMetricsConfig = new ContainerMetricsConfigProperty {
MetricsEndpoints = new [] { new MetricsEndpointProperty {
MetricsEndpointPath = "metricsEndpointPath",
// the properties below are optional
MetricPublishFrequencyInSeconds = 123
} }
},
Environment = new Dictionary<string, string> {
{ "environmentKey", "environment" }
},
Image = "image"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
inferenceComponentContainerSpecificationForInstanceTypeProperty := &InferenceComponentContainerSpecificationForInstanceTypeProperty{
ArtifactUrl: jsii.String("artifactUrl"),
ContainerMetricsConfig: &ContainerMetricsConfigProperty{
MetricsEndpoints: []interface{}{
&MetricsEndpointProperty{
MetricsEndpointPath: jsii.String("metricsEndpointPath"),
// the properties below are optional
MetricPublishFrequencyInSeconds: jsii.Number(123),
},
},
},
Environment: map[string]*string{
"environmentKey": jsii.String("environment"),
},
Image: jsii.String("image"),
}
Properties
artifactUrloptionalstringartifact_urloptionalstrartifactUrloptionalStringArtifactUrloptionalstringArtifactUrloptional*string #containerMetricsConfigoptionalIResolvable | CfnInferenceComponent.container_metrics_configoptionaltyping.Union[IResolvable, ContainerMetricsConfigProperty]containerMetricsConfigoptionalIResolvableContainerMetricsConfigoptionalIResolvableContainerMetricsConfigoptionalinterface{} #The configuration for container metrics scraping.
environmentoptionalIResolvable | { [key: string]: string }environmentoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]environmentoptionalIResolvableEnvironmentoptionalIResolvableEnvironmentoptionalinterface{} #Environment variables to specify on the container.
The image to use for the container that will be materialized for the inference component.