BandwidthSetting

class BandwidthSetting : KotlinCustomResource

The bandwidth setting. Uses Azure REST API version 2017-06-01. In version 2.x of the Azure Native provider, it used API version 2017-06-01.

Example Usage

BandwidthSettingsCreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var bandwidthSetting = new AzureNative.StorSimple.BandwidthSetting("bandwidthSetting", new()
{
BandwidthSettingName = "BWSForTest",
ManagerName = "ManagerForSDKTest1",
ResourceGroupName = "ResourceGroupForSDKTest",
Schedules = new[]
{
new AzureNative.StorSimple.Inputs.BandwidthScheduleArgs
{
Days = new[]
{
AzureNative.StorSimple.DayOfWeek.Saturday,
AzureNative.StorSimple.DayOfWeek.Sunday,
},
RateInMbps = 10,
Start = new AzureNative.StorSimple.Inputs.TimeArgs
{
Hours = 10,
Minutes = 0,
Seconds = 0,
},
Stop = new AzureNative.StorSimple.Inputs.TimeArgs
{
Hours = 20,
Minutes = 0,
Seconds = 0,
},
},
},
});
});
package main
import (
storsimple "github.com/pulumi/pulumi-azure-native-sdk/storsimple/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := storsimple.NewBandwidthSetting(ctx, "bandwidthSetting", &storsimple.BandwidthSettingArgs{
BandwidthSettingName: pulumi.String("BWSForTest"),
ManagerName: pulumi.String("ManagerForSDKTest1"),
ResourceGroupName: pulumi.String("ResourceGroupForSDKTest"),
Schedules: storsimple.BandwidthScheduleArray{
&storsimple.BandwidthScheduleArgs{
Days: storsimple.DayOfWeekArray{
storsimple.DayOfWeekSaturday,
storsimple.DayOfWeekSunday,
},
RateInMbps: pulumi.Int(10),
Start: &storsimple.TimeArgs{
Hours: pulumi.Int(10),
Minutes: pulumi.Int(0),
Seconds: pulumi.Int(0),
},
Stop: &storsimple.TimeArgs{
Hours: pulumi.Int(20),
Minutes: pulumi.Int(0),
Seconds: pulumi.Int(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.storsimple.BandwidthSetting;
import com.pulumi.azurenative.storsimple.BandwidthSettingArgs;
import com.pulumi.azurenative.storsimple.inputs.BandwidthScheduleArgs;
import com.pulumi.azurenative.storsimple.inputs.TimeArgs;
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 bandwidthSetting = new BandwidthSetting("bandwidthSetting", BandwidthSettingArgs.builder()
.bandwidthSettingName("BWSForTest")
.managerName("ManagerForSDKTest1")
.resourceGroupName("ResourceGroupForSDKTest")
.schedules(BandwidthScheduleArgs.builder()
.days(
"Saturday",
"Sunday")
.rateInMbps(10)
.start(TimeArgs.builder()
.hours(10)
.minutes(0)
.seconds(0)
.build())
.stop(TimeArgs.builder()
.hours(20)
.minutes(0)
.seconds(0)
.build())
.build())
.build());
}
}

Import

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

$ pulumi import azure-native:storsimple:BandwidthSetting BWSForTest /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/bandwidthSettings/{bandwidthSettingName}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val kind: Output<String>?

The Kind of the object. Currently only Series8000 is supported

Link copied to clipboard
val name: Output<String>

The name of the object.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The schedules.

Link copied to clipboard
val type: Output<String>

The hierarchical type of the object.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val volumeCount: Output<Int>

The number of volumes that uses the bandwidth setting.