AWS Classic v5.41.0, May 15 23
AWS Classic v5.41.0, May 15 23
aws.sagemaker.Device
Explore with Pulumi AI
Provides a SageMaker Device resource.
Example Usage
Basic usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Sagemaker.Device("example", new()
{
DeviceFleetName = aws_sagemaker_device_fleet.Example.Device_fleet_name,
DeviceDetails = new Aws.Sagemaker.Inputs.DeviceDeviceArgs
{
DeviceName = "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.NewDevice(ctx, "example", &sagemaker.DeviceArgs{
DeviceFleetName: pulumi.Any(aws_sagemaker_device_fleet.Example.Device_fleet_name),
Device: &sagemaker.DeviceDeviceArgs{
DeviceName: 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.Device;
import com.pulumi.aws.sagemaker.DeviceArgs;
import com.pulumi.aws.sagemaker.inputs.DeviceDeviceArgs;
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 example = new Device("example", DeviceArgs.builder()
.deviceFleetName(aws_sagemaker_device_fleet.example().device_fleet_name())
.device(DeviceDeviceArgs.builder()
.deviceName("example")
.build())
.build());
}
}
import pulumi
import pulumi_aws as aws
example = aws.sagemaker.Device("example",
device_fleet_name=aws_sagemaker_device_fleet["example"]["device_fleet_name"],
device=aws.sagemaker.DeviceDeviceArgs(
device_name="example",
))
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.sagemaker.Device("example", {
deviceFleetName: aws_sagemaker_device_fleet.example.device_fleet_name,
device: {
deviceName: "example",
},
});
resources:
example:
type: aws:sagemaker:Device
properties:
deviceFleetName: ${aws_sagemaker_device_fleet.example.device_fleet_name}
device:
deviceName: example
Create Device Resource
new Device(name: string, args: DeviceArgs, opts?: CustomResourceOptions);
@overload
def Device(resource_name: str,
opts: Optional[ResourceOptions] = None,
device: Optional[DeviceDeviceArgs] = None,
device_fleet_name: Optional[str] = None)
@overload
def Device(resource_name: str,
args: DeviceArgs,
opts: Optional[ResourceOptions] = None)
func NewDevice(ctx *Context, name string, args DeviceArgs, opts ...ResourceOption) (*Device, error)
public Device(string name, DeviceArgs args, CustomResourceOptions? opts = null)
public Device(String name, DeviceArgs args)
public Device(String name, DeviceArgs args, CustomResourceOptions options)
type: aws:sagemaker:Device
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DeviceArgs
- 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 DeviceArgs
- 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 DeviceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DeviceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DeviceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Device 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 Device resource accepts the following input properties:
- Device
Details Pulumi.Aws. Sagemaker. Inputs. Device Device Args The device to register with SageMaker Edge Manager. See Device details below.
- Device
Fleet stringName The name of the Device Fleet.
- Device
Device
Device Args The device to register with SageMaker Edge Manager. See Device details below.
- Device
Fleet stringName The name of the Device Fleet.
- device
Device
Device Args The device to register with SageMaker Edge Manager. See Device details below.
- device
Fleet StringName The name of the Device Fleet.
- device
Device
Device Args The device to register with SageMaker Edge Manager. See Device details below.
- device
Fleet stringName The name of the Device Fleet.
- device
Device
Device Args The device to register with SageMaker Edge Manager. See Device details below.
- device_
fleet_ strname The name of the Device Fleet.
- device Property Map
The device to register with SageMaker Edge Manager. See Device details below.
- device
Fleet StringName The name of the Device Fleet.
Outputs
All input properties are implicitly available as output properties. Additionally, the Device resource produces the following output properties:
- Agent
Version string - Arn string
The Amazon Resource Name (ARN) assigned by AWS to this Device.
- Id string
The provider-assigned unique ID for this managed resource.
- Agent
Version string - Arn string
The Amazon Resource Name (ARN) assigned by AWS to this Device.
- Id string
The provider-assigned unique ID for this managed resource.
- agent
Version String - arn String
The Amazon Resource Name (ARN) assigned by AWS to this Device.
- id String
The provider-assigned unique ID for this managed resource.
- agent
Version string - arn string
The Amazon Resource Name (ARN) assigned by AWS to this Device.
- id string
The provider-assigned unique ID for this managed resource.
- agent_
version str - arn str
The Amazon Resource Name (ARN) assigned by AWS to this Device.
- id str
The provider-assigned unique ID for this managed resource.
- agent
Version String - arn String
The Amazon Resource Name (ARN) assigned by AWS to this Device.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing Device Resource
Get an existing Device 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?: DeviceState, opts?: CustomResourceOptions): Device
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
agent_version: Optional[str] = None,
arn: Optional[str] = None,
device: Optional[DeviceDeviceArgs] = None,
device_fleet_name: Optional[str] = None) -> Device
func GetDevice(ctx *Context, name string, id IDInput, state *DeviceState, opts ...ResourceOption) (*Device, error)
public static Device Get(string name, Input<string> id, DeviceState? state, CustomResourceOptions? opts = null)
public static Device get(String name, Output<String> id, DeviceState 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.
- Agent
Version string - Arn string
The Amazon Resource Name (ARN) assigned by AWS to this Device.
- Device
Details Pulumi.Aws. Sagemaker. Inputs. Device Device Args The device to register with SageMaker Edge Manager. See Device details below.
- Device
Fleet stringName The name of the Device Fleet.
- Agent
Version string - Arn string
The Amazon Resource Name (ARN) assigned by AWS to this Device.
- Device
Device
Device Args The device to register with SageMaker Edge Manager. See Device details below.
- Device
Fleet stringName The name of the Device Fleet.
- agent
Version String - arn String
The Amazon Resource Name (ARN) assigned by AWS to this Device.
- device
Device
Device Args The device to register with SageMaker Edge Manager. See Device details below.
- device
Fleet StringName The name of the Device Fleet.
- agent
Version string - arn string
The Amazon Resource Name (ARN) assigned by AWS to this Device.
- device
Device
Device Args The device to register with SageMaker Edge Manager. See Device details below.
- device
Fleet stringName The name of the Device Fleet.
- agent_
version str - arn str
The Amazon Resource Name (ARN) assigned by AWS to this Device.
- device
Device
Device Args The device to register with SageMaker Edge Manager. See Device details below.
- device_
fleet_ strname The name of the Device Fleet.
- agent
Version String - arn String
The Amazon Resource Name (ARN) assigned by AWS to this Device.
- device Property Map
The device to register with SageMaker Edge Manager. See Device details below.
- device
Fleet StringName The name of the Device Fleet.
Supporting Types
DeviceDevice
- Device
Name string The name of the device.
- Description string
A description for the device.
- Iot
Thing stringName Amazon Web Services Internet of Things (IoT) object name.
- Device
Name string The name of the device.
- Description string
A description for the device.
- Iot
Thing stringName Amazon Web Services Internet of Things (IoT) object name.
- device
Name String The name of the device.
- description String
A description for the device.
- iot
Thing StringName Amazon Web Services Internet of Things (IoT) object name.
- device
Name string The name of the device.
- description string
A description for the device.
- iot
Thing stringName Amazon Web Services Internet of Things (IoT) object name.
- device_
name str The name of the device.
- description str
A description for the device.
- iot_
thing_ strname Amazon Web Services Internet of Things (IoT) object name.
- device
Name String The name of the device.
- description String
A description for the device.
- iot
Thing StringName Amazon Web Services Internet of Things (IoT) object name.
Import
SageMaker Devices can be imported using the device-fleet-name/device-name
, e.g.,
$ pulumi import aws:sagemaker/device:Device example my-fleet/my-device
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.