Device Fleet Args
data class DeviceFleetArgs(val description: Output<String>? = null, val deviceFleetName: Output<String>? = null, val enableIotRoleAlias: Output<Boolean>? = null, val outputConfig: Output<DeviceFleetOutputConfigArgs>? = null, val roleArn: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<DeviceFleetArgs>
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/`,
},
});
Content copied to clipboard
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/",
})
Content copied to clipboard
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/",
},
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
resources:
example:
type: aws:sagemaker:DeviceFleet
properties:
deviceFleetName: example
roleArn: ${test.arn}
outputConfig:
s3OutputLocation: s3://${exampleAwsS3Bucket.bucket}/prefix/
Content copied to clipboard
Import
Using pulumi import
, import SageMaker AI Device Fleets using the name
. For example:
$ pulumi import aws:sagemaker/deviceFleet:DeviceFleet example my-fleet
Content copied to clipboard
Properties
Link copied to clipboard
A description of the fleet.
Link copied to clipboard
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
Specifies details about the repository. see Output Config details below.