BandwidthScheduleArgs

data class BandwidthScheduleArgs(val days: Output<List<Either<String, DayOfWeek>>>? = null, val deviceName: Output<String>? = null, val name: Output<String>? = null, val rateInMbps: Output<Int>? = null, val resourceGroupName: Output<String>? = null, val start: Output<String>? = null, val stop: Output<String>? = null) : ConvertibleToJava<BandwidthScheduleArgs>

The bandwidth schedule details. Uses Azure REST API version 2023-07-01. In version 2.x of the Azure Native provider, it used API version 2022-03-01. Other available API versions: 2022-03-01, 2022-04-01-preview, 2022-12-01-preview, 2023-01-01-preview, 2023-12-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native databoxedge [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

BandwidthSchedulePut

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var bandwidthSchedule = new AzureNative.DataBoxEdge.BandwidthSchedule("bandwidthSchedule", new()
{
Days = new[]
{
AzureNative.DataBoxEdge.DayOfWeek.Sunday,
AzureNative.DataBoxEdge.DayOfWeek.Monday,
},
DeviceName = "testedgedevice",
Name = "bandwidth-1",
RateInMbps = 100,
ResourceGroupName = "GroupForEdgeAutomation",
Start = "0:0:0",
Stop = "13:59:0",
});
});
package main
import (
databoxedge "github.com/pulumi/pulumi-azure-native-sdk/databoxedge/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := databoxedge.NewBandwidthSchedule(ctx, "bandwidthSchedule", &databoxedge.BandwidthScheduleArgs{
Days: pulumi.StringArray{
pulumi.String(databoxedge.DayOfWeekSunday),
pulumi.String(databoxedge.DayOfWeekMonday),
},
DeviceName: pulumi.String("testedgedevice"),
Name: pulumi.String("bandwidth-1"),
RateInMbps: pulumi.Int(100),
ResourceGroupName: pulumi.String("GroupForEdgeAutomation"),
Start: pulumi.String("0:0:0"),
Stop: pulumi.String("13:59:0"),
})
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.azurenative.databoxedge.BandwidthSchedule;
import com.pulumi.azurenative.databoxedge.BandwidthScheduleArgs;
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 bandwidthSchedule = new BandwidthSchedule("bandwidthSchedule", BandwidthScheduleArgs.builder()
.days(
"Sunday",
"Monday")
.deviceName("testedgedevice")
.name("bandwidth-1")
.rateInMbps(100)
.resourceGroupName("GroupForEdgeAutomation")
.start("0:0:0")
.stop("13:59:0")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:databoxedge:BandwidthSchedule bandwidth-1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/bandwidthSchedules/{name}

Constructors

Link copied to clipboard
constructor(days: Output<List<Either<String, DayOfWeek>>>? = null, deviceName: Output<String>? = null, name: Output<String>? = null, rateInMbps: Output<Int>? = null, resourceGroupName: Output<String>? = null, start: Output<String>? = null, stop: Output<String>? = null)

Properties

Link copied to clipboard
val days: Output<List<Either<String, DayOfWeek>>>? = null

The days of the week when this schedule is applicable.

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

The device name.

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

The bandwidth schedule name which needs to be added/updated.

Link copied to clipboard
val rateInMbps: Output<Int>? = null

The bandwidth rate in Mbps.

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

The resource group name.

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

The start time of the schedule in UTC.

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

The stop time of the schedule in UTC.

Functions

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