DeviceFleetArgs

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/`,
},
});
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

Constructors

Link copied to clipboard
constructor(description: Output<String>? = null, deviceFleetName: Output<String>? = null, enableIotRoleAlias: Output<Boolean>? = null, outputConfig: Output<DeviceFleetOutputConfigArgs>? = null, roleArn: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

A description of the fleet.

Link copied to clipboard
val deviceFleetName: Output<String>? = null

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

Link copied to clipboard
val enableIotRoleAlias: Output<Boolean>? = null

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.

Link copied to clipboard
val roleArn: Output<String>? = null

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

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

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.

Functions

Link copied to clipboard
open override fun toJava(): DeviceFleetArgs