DeviceFleet

class DeviceFleet : KotlinCustomResource

Provides a SageMaker AI Device Fleet resource.

Example Usage

Basic usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.sagemaker.DeviceFleet("example", {
deviceFleetName: "example",
roleArn: test.arn,
outputConfig: {
s3OutputLocation: `s3://${exampleAwsS3Bucket.bucket}/prefix/`,
},
});
import pulumi
import pulumi_aws as aws
example = aws.sagemaker.DeviceFleet("example",
device_fleet_name="example",
role_arn=test["arn"],
output_config={
"s3_output_location": f"s3://{example_aws_s3_bucket['bucket']}/prefix/",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Sagemaker.DeviceFleet("example", new()
{
DeviceFleetName = "example",
RoleArn = test.Arn,
OutputConfig = new Aws.Sagemaker.Inputs.DeviceFleetOutputConfigArgs
{
S3OutputLocation = $"s3://{exampleAwsS3Bucket.Bucket}/prefix/",
},
});
});
package main
import (
"fmt"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/sagemaker"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sagemaker.NewDeviceFleet(ctx, "example", &sagemaker.DeviceFleetArgs{
DeviceFleetName: pulumi.String("example"),
RoleArn: pulumi.Any(test.Arn),
OutputConfig: &sagemaker.DeviceFleetOutputConfigArgs{
S3OutputLocation: pulumi.Sprintf("s3://%v/prefix/", exampleAwsS3Bucket.Bucket),
},
})
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.DeviceFleet;
import com.pulumi.aws.sagemaker.DeviceFleetArgs;
import com.pulumi.aws.sagemaker.inputs.DeviceFleetOutputConfigArgs;
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 DeviceFleet("example", DeviceFleetArgs.builder()
.deviceFleetName("example")
.roleArn(test.arn())
.outputConfig(DeviceFleetOutputConfigArgs.builder()
.s3OutputLocation(String.format("s3://%s/prefix/", exampleAwsS3Bucket.bucket()))
.build())
.build());
}
}
resources:
example:
type: aws:sagemaker:DeviceFleet
properties:
deviceFleetName: example
roleArn: ${test.arn}
outputConfig:
s3OutputLocation: s3://${exampleAwsS3Bucket.bucket}/prefix/

Import

Using pulumi import, import SageMaker AI Device Fleets using the name. For example:

$ pulumi import aws:sagemaker/deviceFleet:DeviceFleet example my-fleet

Properties

Link copied to clipboard
val arn: Output<String>

The Amazon Resource Name (ARN) assigned by AWS to this Device Fleet.

Link copied to clipboard
val description: Output<String>?

A description of the fleet.

Link copied to clipboard
val deviceFleetName: Output<String>

The name of the Device Fleet (must be unique).

Link copied to clipboard

Whether to create an AWS IoT Role Alias during device fleet creation. The name of the role alias generated will match this pattern: "SageMakerEdge-{DeviceFleetName}".

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val iotRoleAlias: Output<String>
Link copied to clipboard

Specifies details about the repository. see Output Config details below.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val roleArn: Output<String>

The Amazon Resource Name (ARN) that has access to AWS Internet of Things (IoT).

Link copied to clipboard
val tags: Output<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.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val urn: Output<String>