Skip to content
v2.278.0

SourceProperty ​

Struct External

The source type, ID, and URI.

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 sourceProperty: sagemaker.CfnContext.SourceProperty = {
  sourceUri: 'sourceUri',

  // the properties below are optional
  sourceId: 'sourceId',
  sourceType: 'sourceType',
};
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

source_property = sagemaker.CfnContext.SourceProperty(
    source_uri="sourceUri",

    # the properties below are optional
    source_id="sourceId",
    source_type="sourceType"
)
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.*;

SourceProperty sourceProperty = SourceProperty.builder()
        .sourceUri("sourceUri")

        // the properties below are optional
        .sourceId("sourceId")
        .sourceType("sourceType")
        .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 sourceProperty = new SourceProperty {
    SourceUri = "sourceUri",

    // the properties below are optional
    SourceId = "sourceId",
    SourceType = "sourceType"
};
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"

sourceProperty := &SourceProperty{
	SourceUri: jsii.String("sourceUri"),

	// the properties below are optional
	SourceId: jsii.String("sourceId"),
	SourceType: jsii.String("sourceType"),
}

Properties ​

sourceIdoptionalstringsource_idoptionalstrsourceIdoptionalStringSourceIdoptionalstringSourceIdoptional*string #
The ID of the source.
sourceTypeoptionalstringsource_typeoptionalstrsourceTypeoptionalStringSourceTypeoptionalstringSourceTypeoptional*string #
The type of the source.
sourceUristringsource_uristrsourceUriStringSourceUristringSourceUri*string required #
The URI of the source.