Interface CfnContextProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnContextProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.138.0 (build 0ca7ee8)",
date="2026-08-10T14:51:11.211Z")
@Stability(Stable)
public interface CfnContextProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnContext.
Example:
// 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.*;
CfnContextProps cfnContextProps = CfnContextProps.builder()
.contextName("contextName")
.contextType("contextType")
.source(SourceProperty.builder()
.sourceUri("sourceUri")
// the properties below are optional
.sourceId("sourceId")
.sourceType("sourceType")
.build())
// the properties below are optional
.description("description")
.properties(Map.of(
"propertiesKey", "properties"))
.tags(List.of(TagsItemsProperty.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnContextPropsstatic final classAn implementation forCfnContextProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnContextProps.Builderbuilder()The name of the context.The context type.default StringThe description of the context.default ObjectA list of properties to add to the context.The source type, ID, and URI.default List<CfnContext.TagsItemsProperty> getTags()A list of tags to apply to the context.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getContextName
The name of the context.Must be unique to your account in an AWS Region.
- See Also:
-
getContextType
The context type.- See Also:
-
getSource
The source type, ID, and URI.Returns union: either
IResolvableorCfnContext.SourceProperty- See Also:
-
getDescription
The description of the context.- See Also:
-
getProperties
A list of properties to add to the context.Returns union: either
IResolvableor Mapinvalid input: '<'String,String>- See Also:
-
getTags
A list of tags to apply to the context.- See Also:
-
builder
- Returns:
- a
CfnContextProps.BuilderofCfnContextProps
-