AWS Classic v5.41.0, May 15 23
AWS Classic v5.41.0, May 15 23
aws.sagemaker.AppImageConfig
Explore with Pulumi AI
Provides a SageMaker App Image Config resource.
Example Usage
Basic usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var test = new Aws.Sagemaker.AppImageConfig("test", new()
{
AppImageConfigName = "example",
KernelGatewayImageConfig = new Aws.Sagemaker.Inputs.AppImageConfigKernelGatewayImageConfigArgs
{
KernelSpec = new Aws.Sagemaker.Inputs.AppImageConfigKernelGatewayImageConfigKernelSpecArgs
{
Name = "example",
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/sagemaker"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sagemaker.NewAppImageConfig(ctx, "test", &sagemaker.AppImageConfigArgs{
AppImageConfigName: pulumi.String("example"),
KernelGatewayImageConfig: &sagemaker.AppImageConfigKernelGatewayImageConfigArgs{
KernelSpec: &sagemaker.AppImageConfigKernelGatewayImageConfigKernelSpecArgs{
Name: pulumi.String("example"),
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.sagemaker.AppImageConfig;
import com.pulumi.aws.sagemaker.AppImageConfigArgs;
import com.pulumi.aws.sagemaker.inputs.AppImageConfigKernelGatewayImageConfigArgs;
import com.pulumi.aws.sagemaker.inputs.AppImageConfigKernelGatewayImageConfigKernelSpecArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var test = new AppImageConfig("test", AppImageConfigArgs.builder()
.appImageConfigName("example")
.kernelGatewayImageConfig(AppImageConfigKernelGatewayImageConfigArgs.builder()
.kernelSpec(AppImageConfigKernelGatewayImageConfigKernelSpecArgs.builder()
.name("example")
.build())
.build())
.build());
}
}
import pulumi
import pulumi_aws as aws
test = aws.sagemaker.AppImageConfig("test",
app_image_config_name="example",
kernel_gateway_image_config=aws.sagemaker.AppImageConfigKernelGatewayImageConfigArgs(
kernel_spec=aws.sagemaker.AppImageConfigKernelGatewayImageConfigKernelSpecArgs(
name="example",
),
))
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = new aws.sagemaker.AppImageConfig("test", {
appImageConfigName: "example",
kernelGatewayImageConfig: {
kernelSpec: {
name: "example",
},
},
});
resources:
test:
type: aws:sagemaker:AppImageConfig
properties:
appImageConfigName: example
kernelGatewayImageConfig:
kernelSpec:
name: example
Default File System Config
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var test = new Aws.Sagemaker.AppImageConfig("test", new()
{
AppImageConfigName = "example",
KernelGatewayImageConfig = new Aws.Sagemaker.Inputs.AppImageConfigKernelGatewayImageConfigArgs
{
FileSystemConfig = null,
KernelSpec = new Aws.Sagemaker.Inputs.AppImageConfigKernelGatewayImageConfigKernelSpecArgs
{
Name = "example",
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/sagemaker"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sagemaker.NewAppImageConfig(ctx, "test", &sagemaker.AppImageConfigArgs{
AppImageConfigName: pulumi.String("example"),
KernelGatewayImageConfig: &sagemaker.AppImageConfigKernelGatewayImageConfigArgs{
FileSystemConfig: nil,
KernelSpec: &sagemaker.AppImageConfigKernelGatewayImageConfigKernelSpecArgs{
Name: pulumi.String("example"),
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.sagemaker.AppImageConfig;
import com.pulumi.aws.sagemaker.AppImageConfigArgs;
import com.pulumi.aws.sagemaker.inputs.AppImageConfigKernelGatewayImageConfigArgs;
import com.pulumi.aws.sagemaker.inputs.AppImageConfigKernelGatewayImageConfigFileSystemConfigArgs;
import com.pulumi.aws.sagemaker.inputs.AppImageConfigKernelGatewayImageConfigKernelSpecArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var test = new AppImageConfig("test", AppImageConfigArgs.builder()
.appImageConfigName("example")
.kernelGatewayImageConfig(AppImageConfigKernelGatewayImageConfigArgs.builder()
.fileSystemConfig()
.kernelSpec(AppImageConfigKernelGatewayImageConfigKernelSpecArgs.builder()
.name("example")
.build())
.build())
.build());
}
}
import pulumi
import pulumi_aws as aws
test = aws.sagemaker.AppImageConfig("test",
app_image_config_name="example",
kernel_gateway_image_config=aws.sagemaker.AppImageConfigKernelGatewayImageConfigArgs(
file_system_config=aws.sagemaker.AppImageConfigKernelGatewayImageConfigFileSystemConfigArgs(),
kernel_spec=aws.sagemaker.AppImageConfigKernelGatewayImageConfigKernelSpecArgs(
name="example",
),
))
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = new aws.sagemaker.AppImageConfig("test", {
appImageConfigName: "example",
kernelGatewayImageConfig: {
fileSystemConfig: {},
kernelSpec: {
name: "example",
},
},
});
resources:
test:
type: aws:sagemaker:AppImageConfig
properties:
appImageConfigName: example
kernelGatewayImageConfig:
fileSystemConfig: {}
kernelSpec:
name: example
Create AppImageConfig Resource
new AppImageConfig(name: string, args: AppImageConfigArgs, opts?: CustomResourceOptions);
@overload
def AppImageConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
app_image_config_name: Optional[str] = None,
kernel_gateway_image_config: Optional[AppImageConfigKernelGatewayImageConfigArgs] = None,
tags: Optional[Mapping[str, str]] = None)
@overload
def AppImageConfig(resource_name: str,
args: AppImageConfigArgs,
opts: Optional[ResourceOptions] = None)
func NewAppImageConfig(ctx *Context, name string, args AppImageConfigArgs, opts ...ResourceOption) (*AppImageConfig, error)
public AppImageConfig(string name, AppImageConfigArgs args, CustomResourceOptions? opts = null)
public AppImageConfig(String name, AppImageConfigArgs args)
public AppImageConfig(String name, AppImageConfigArgs args, CustomResourceOptions options)
type: aws:sagemaker:AppImageConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AppImageConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AppImageConfigArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AppImageConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AppImageConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AppImageConfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
AppImageConfig Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The AppImageConfig resource accepts the following input properties:
- App
Image stringConfig Name The name of the App Image Config.
- Kernel
Gateway Pulumi.Image Config Aws. Sagemaker. Inputs. App Image Config Kernel Gateway Image Config Args The configuration for the file system and kernels in a SageMaker image running as a KernelGateway app. See Kernel Gateway Image Config details below.
- Dictionary<string, string>
A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- App
Image stringConfig Name The name of the App Image Config.
- Kernel
Gateway AppImage Config Image Config Kernel Gateway Image Config Args The configuration for the file system and kernels in a SageMaker image running as a KernelGateway app. See Kernel Gateway Image Config details below.
- map[string]string
A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- app
Image StringConfig Name The name of the App Image Config.
- kernel
Gateway AppImage Config Image Config Kernel Gateway Image Config Args The configuration for the file system and kernels in a SageMaker image running as a KernelGateway app. See Kernel Gateway Image Config details below.
- Map<String,String>
A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- app
Image stringConfig Name The name of the App Image Config.
- kernel
Gateway AppImage Config Image Config Kernel Gateway Image Config Args The configuration for the file system and kernels in a SageMaker image running as a KernelGateway app. See Kernel Gateway Image Config details below.
- {[key: string]: string}
A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- app_
image_ strconfig_ name The name of the App Image Config.
- kernel_
gateway_ Appimage_ config Image Config Kernel Gateway Image Config Args The configuration for the file system and kernels in a SageMaker image running as a KernelGateway app. See Kernel Gateway Image Config details below.
- Mapping[str, str]
A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- app
Image StringConfig Name The name of the App Image Config.
- kernel
Gateway Property MapImage Config The configuration for the file system and kernels in a SageMaker image running as a KernelGateway app. See Kernel Gateway Image Config details below.
- Map<String>
A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Outputs
All input properties are implicitly available as output properties. Additionally, the AppImageConfig resource produces the following output properties:
Look up Existing AppImageConfig Resource
Get an existing AppImageConfig resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AppImageConfigState, opts?: CustomResourceOptions): AppImageConfig
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
app_image_config_name: Optional[str] = None,
arn: Optional[str] = None,
kernel_gateway_image_config: Optional[AppImageConfigKernelGatewayImageConfigArgs] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None) -> AppImageConfig
func GetAppImageConfig(ctx *Context, name string, id IDInput, state *AppImageConfigState, opts ...ResourceOption) (*AppImageConfig, error)
public static AppImageConfig Get(string name, Input<string> id, AppImageConfigState? state, CustomResourceOptions? opts = null)
public static AppImageConfig get(String name, Output<String> id, AppImageConfigState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- App
Image stringConfig Name The name of the App Image Config.
- Arn string
The Amazon Resource Name (ARN) assigned by AWS to this App Image Config.
- Kernel
Gateway Pulumi.Image Config Aws. Sagemaker. Inputs. App Image Config Kernel Gateway Image Config Args The configuration for the file system and kernels in a SageMaker image running as a KernelGateway app. See Kernel Gateway Image Config details below.
- Dictionary<string, string>
A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Dictionary<string, string>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- App
Image stringConfig Name The name of the App Image Config.
- Arn string
The Amazon Resource Name (ARN) assigned by AWS to this App Image Config.
- Kernel
Gateway AppImage Config Image Config Kernel Gateway Image Config Args The configuration for the file system and kernels in a SageMaker image running as a KernelGateway app. See Kernel Gateway Image Config details below.
- map[string]string
A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- map[string]string
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- app
Image StringConfig Name The name of the App Image Config.
- arn String
The Amazon Resource Name (ARN) assigned by AWS to this App Image Config.
- kernel
Gateway AppImage Config Image Config Kernel Gateway Image Config Args The configuration for the file system and kernels in a SageMaker image running as a KernelGateway app. See Kernel Gateway Image Config details below.
- Map<String,String>
A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Map<String,String>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- app
Image stringConfig Name The name of the App Image Config.
- arn string
The Amazon Resource Name (ARN) assigned by AWS to this App Image Config.
- kernel
Gateway AppImage Config Image Config Kernel Gateway Image Config Args The configuration for the file system and kernels in a SageMaker image running as a KernelGateway app. See Kernel Gateway Image Config details below.
- {[key: string]: string}
A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- {[key: string]: string}
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- app_
image_ strconfig_ name The name of the App Image Config.
- arn str
The Amazon Resource Name (ARN) assigned by AWS to this App Image Config.
- kernel_
gateway_ Appimage_ config Image Config Kernel Gateway Image Config Args The configuration for the file system and kernels in a SageMaker image running as a KernelGateway app. See Kernel Gateway Image Config details below.
- Mapping[str, str]
A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Mapping[str, str]
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- app
Image StringConfig Name The name of the App Image Config.
- arn String
The Amazon Resource Name (ARN) assigned by AWS to this App Image Config.
- kernel
Gateway Property MapImage Config The configuration for the file system and kernels in a SageMaker image running as a KernelGateway app. See Kernel Gateway Image Config details below.
- Map<String>
A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Map<String>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Supporting Types
AppImageConfigKernelGatewayImageConfig
- Kernel
Spec Pulumi.Aws. Sagemaker. Inputs. App Image Config Kernel Gateway Image Config Kernel Spec The default branch for the Git repository. See Kernel Spec details below.
- File
System Pulumi.Config Aws. Sagemaker. Inputs. App Image Config Kernel Gateway Image Config File System Config The URL where the Git repository is located. See File System Config details below.
- Kernel
Spec AppImage Config Kernel Gateway Image Config Kernel Spec The default branch for the Git repository. See Kernel Spec details below.
- File
System AppConfig Image Config Kernel Gateway Image Config File System Config The URL where the Git repository is located. See File System Config details below.
- kernel
Spec AppImage Config Kernel Gateway Image Config Kernel Spec The default branch for the Git repository. See Kernel Spec details below.
- file
System AppConfig Image Config Kernel Gateway Image Config File System Config The URL where the Git repository is located. See File System Config details below.
- kernel
Spec AppImage Config Kernel Gateway Image Config Kernel Spec The default branch for the Git repository. See Kernel Spec details below.
- file
System AppConfig Image Config Kernel Gateway Image Config File System Config The URL where the Git repository is located. See File System Config details below.
- kernel_
spec AppImage Config Kernel Gateway Image Config Kernel Spec The default branch for the Git repository. See Kernel Spec details below.
- file_
system_ Appconfig Image Config Kernel Gateway Image Config File System Config The URL where the Git repository is located. See File System Config details below.
- kernel
Spec Property Map The default branch for the Git repository. See Kernel Spec details below.
- file
System Property MapConfig The URL where the Git repository is located. See File System Config details below.
AppImageConfigKernelGatewayImageConfigFileSystemConfig
- Default
Gid int The default POSIX group ID (GID). If not specified, defaults to
100
. Valid values are0
and100
.- Default
Uid int The default POSIX user ID (UID). If not specified, defaults to
1000
. Valid values are0
and1000
.- Mount
Path string The path within the image to mount the user's EFS home directory. The directory should be empty. If not specified, defaults to
/home/sagemaker-user
.
- Default
Gid int The default POSIX group ID (GID). If not specified, defaults to
100
. Valid values are0
and100
.- Default
Uid int The default POSIX user ID (UID). If not specified, defaults to
1000
. Valid values are0
and1000
.- Mount
Path string The path within the image to mount the user's EFS home directory. The directory should be empty. If not specified, defaults to
/home/sagemaker-user
.
- default
Gid Integer The default POSIX group ID (GID). If not specified, defaults to
100
. Valid values are0
and100
.- default
Uid Integer The default POSIX user ID (UID). If not specified, defaults to
1000
. Valid values are0
and1000
.- mount
Path String The path within the image to mount the user's EFS home directory. The directory should be empty. If not specified, defaults to
/home/sagemaker-user
.
- default
Gid number The default POSIX group ID (GID). If not specified, defaults to
100
. Valid values are0
and100
.- default
Uid number The default POSIX user ID (UID). If not specified, defaults to
1000
. Valid values are0
and1000
.- mount
Path string The path within the image to mount the user's EFS home directory. The directory should be empty. If not specified, defaults to
/home/sagemaker-user
.
- default_
gid int The default POSIX group ID (GID). If not specified, defaults to
100
. Valid values are0
and100
.- default_
uid int The default POSIX user ID (UID). If not specified, defaults to
1000
. Valid values are0
and1000
.- mount_
path str The path within the image to mount the user's EFS home directory. The directory should be empty. If not specified, defaults to
/home/sagemaker-user
.
- default
Gid Number The default POSIX group ID (GID). If not specified, defaults to
100
. Valid values are0
and100
.- default
Uid Number The default POSIX user ID (UID). If not specified, defaults to
1000
. Valid values are0
and1000
.- mount
Path String The path within the image to mount the user's EFS home directory. The directory should be empty. If not specified, defaults to
/home/sagemaker-user
.
AppImageConfigKernelGatewayImageConfigKernelSpec
- Name string
The name of the kernel.
- Display
Name string The display name of the kernel.
- Name string
The name of the kernel.
- Display
Name string The display name of the kernel.
- name String
The name of the kernel.
- display
Name String The display name of the kernel.
- name string
The name of the kernel.
- display
Name string The display name of the kernel.
- name str
The name of the kernel.
- display_
name str The display name of the kernel.
- name String
The name of the kernel.
- display
Name String The display name of the kernel.
Import
SageMaker App Image Configs can be imported using the name
, e.g.,
$ pulumi import aws:sagemaker/appImageConfig:AppImageConfig example example
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.