azure-native.storsimple.BandwidthSetting
Explore with Pulumi AI
The bandwidth setting. Azure REST API version: 2017-06-01. Prior API version in Azure Native 1.x: 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/v2"
"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 pulumi
import pulumi_azure_native as azure_native
bandwidth_setting = azure_native.storsimple.BandwidthSetting("bandwidthSetting",
bandwidth_setting_name="BWSForTest",
manager_name="ManagerForSDKTest1",
resource_group_name="ResourceGroupForSDKTest",
schedules=[{
"days": [
azure_native.storsimple.DayOfWeek.SATURDAY,
azure_native.storsimple.DayOfWeek.SUNDAY,
],
"rate_in_mbps": 10,
"start": {
"hours": 10,
"minutes": 0,
"seconds": 0,
},
"stop": {
"hours": 20,
"minutes": 0,
"seconds": 0,
},
}])
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const bandwidthSetting = new azure_native.storsimple.BandwidthSetting("bandwidthSetting", {
bandwidthSettingName: "BWSForTest",
managerName: "ManagerForSDKTest1",
resourceGroupName: "ResourceGroupForSDKTest",
schedules: [{
days: [
azure_native.storsimple.DayOfWeek.Saturday,
azure_native.storsimple.DayOfWeek.Sunday,
],
rateInMbps: 10,
start: {
hours: 10,
minutes: 0,
seconds: 0,
},
stop: {
hours: 20,
minutes: 0,
seconds: 0,
},
}],
});
resources:
bandwidthSetting:
type: azure-native:storsimple:BandwidthSetting
properties:
bandwidthSettingName: BWSForTest
managerName: ManagerForSDKTest1
resourceGroupName: ResourceGroupForSDKTest
schedules:
- days:
- Saturday
- Sunday
rateInMbps: 10
start:
hours: 10
minutes: 0
seconds: 0
stop:
hours: 20
minutes: 0
seconds: 0
Create BandwidthSetting Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BandwidthSetting(name: string, args: BandwidthSettingArgs, opts?: CustomResourceOptions);
@overload
def BandwidthSetting(resource_name: str,
args: BandwidthSettingArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BandwidthSetting(resource_name: str,
opts: Optional[ResourceOptions] = None,
manager_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
schedules: Optional[Sequence[BandwidthScheduleArgs]] = None,
bandwidth_setting_name: Optional[str] = None,
kind: Optional[Kind] = None)
func NewBandwidthSetting(ctx *Context, name string, args BandwidthSettingArgs, opts ...ResourceOption) (*BandwidthSetting, error)
public BandwidthSetting(string name, BandwidthSettingArgs args, CustomResourceOptions? opts = null)
public BandwidthSetting(String name, BandwidthSettingArgs args)
public BandwidthSetting(String name, BandwidthSettingArgs args, CustomResourceOptions options)
type: azure-native:storsimple:BandwidthSetting
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args BandwidthSettingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args BandwidthSettingArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args BandwidthSettingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BandwidthSettingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BandwidthSettingArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var bandwidthSettingResource = new AzureNative.StorSimple.BandwidthSetting("bandwidthSettingResource", new()
{
ManagerName = "string",
ResourceGroupName = "string",
Schedules = new[]
{
new AzureNative.StorSimple.Inputs.BandwidthScheduleArgs
{
Days = new[]
{
AzureNative.StorSimple.DayOfWeek.Sunday,
},
RateInMbps = 0,
Start = new AzureNative.StorSimple.Inputs.TimeArgs
{
Hours = 0,
Minutes = 0,
Seconds = 0,
},
Stop = new AzureNative.StorSimple.Inputs.TimeArgs
{
Hours = 0,
Minutes = 0,
Seconds = 0,
},
},
},
BandwidthSettingName = "string",
Kind = AzureNative.StorSimple.Kind.Series8000,
});
example, err := storsimple.NewBandwidthSetting(ctx, "bandwidthSettingResource", &storsimple.BandwidthSettingArgs{
ManagerName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
Schedules: storsimple.BandwidthScheduleArray{
&storsimple.BandwidthScheduleArgs{
Days: storsimple.DayOfWeekArray{
storsimple.DayOfWeekSunday,
},
RateInMbps: pulumi.Int(0),
Start: &storsimple.TimeArgs{
Hours: pulumi.Int(0),
Minutes: pulumi.Int(0),
Seconds: pulumi.Int(0),
},
Stop: &storsimple.TimeArgs{
Hours: pulumi.Int(0),
Minutes: pulumi.Int(0),
Seconds: pulumi.Int(0),
},
},
},
BandwidthSettingName: pulumi.String("string"),
Kind: storsimple.KindSeries8000,
})
var bandwidthSettingResource = new BandwidthSetting("bandwidthSettingResource", BandwidthSettingArgs.builder()
.managerName("string")
.resourceGroupName("string")
.schedules(BandwidthScheduleArgs.builder()
.days("Sunday")
.rateInMbps(0)
.start(TimeArgs.builder()
.hours(0)
.minutes(0)
.seconds(0)
.build())
.stop(TimeArgs.builder()
.hours(0)
.minutes(0)
.seconds(0)
.build())
.build())
.bandwidthSettingName("string")
.kind("Series8000")
.build());
bandwidth_setting_resource = azure_native.storsimple.BandwidthSetting("bandwidthSettingResource",
manager_name="string",
resource_group_name="string",
schedules=[{
"days": [azure_native.storsimple.DayOfWeek.SUNDAY],
"rateInMbps": 0,
"start": {
"hours": 0,
"minutes": 0,
"seconds": 0,
},
"stop": {
"hours": 0,
"minutes": 0,
"seconds": 0,
},
}],
bandwidth_setting_name="string",
kind=azure_native.storsimple.Kind.SERIES8000)
const bandwidthSettingResource = new azure_native.storsimple.BandwidthSetting("bandwidthSettingResource", {
managerName: "string",
resourceGroupName: "string",
schedules: [{
days: [azure_native.storsimple.DayOfWeek.Sunday],
rateInMbps: 0,
start: {
hours: 0,
minutes: 0,
seconds: 0,
},
stop: {
hours: 0,
minutes: 0,
seconds: 0,
},
}],
bandwidthSettingName: "string",
kind: azure_native.storsimple.Kind.Series8000,
});
type: azure-native:storsimple:BandwidthSetting
properties:
bandwidthSettingName: string
kind: Series8000
managerName: string
resourceGroupName: string
schedules:
- days:
- Sunday
rateInMbps: 0
start:
hours: 0
minutes: 0
seconds: 0
stop:
hours: 0
minutes: 0
seconds: 0
BandwidthSetting Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The BandwidthSetting resource accepts the following input properties:
- Manager
Name string - The manager name
- Resource
Group stringName - The resource group name
- Schedules
List<Pulumi.
Azure Native. Stor Simple. Inputs. Bandwidth Schedule> - The schedules.
- Bandwidth
Setting stringName - The bandwidth setting name.
- Kind
Pulumi.
Azure Native. Stor Simple. Kind - The Kind of the object. Currently only Series8000 is supported
- Manager
Name string - The manager name
- Resource
Group stringName - The resource group name
- Schedules
[]Bandwidth
Schedule Args - The schedules.
- Bandwidth
Setting stringName - The bandwidth setting name.
- Kind Kind
- The Kind of the object. Currently only Series8000 is supported
- manager
Name String - The manager name
- resource
Group StringName - The resource group name
- schedules
List<Bandwidth
Schedule> - The schedules.
- bandwidth
Setting StringName - The bandwidth setting name.
- kind Kind
- The Kind of the object. Currently only Series8000 is supported
- manager
Name string - The manager name
- resource
Group stringName - The resource group name
- schedules
Bandwidth
Schedule[] - The schedules.
- bandwidth
Setting stringName - The bandwidth setting name.
- kind Kind
- The Kind of the object. Currently only Series8000 is supported
- manager_
name str - The manager name
- resource_
group_ strname - The resource group name
- schedules
Sequence[Bandwidth
Schedule Args] - The schedules.
- bandwidth_
setting_ strname - The bandwidth setting name.
- kind Kind
- The Kind of the object. Currently only Series8000 is supported
- manager
Name String - The manager name
- resource
Group StringName - The resource group name
- schedules List<Property Map>
- The schedules.
- bandwidth
Setting StringName - The bandwidth setting name.
- kind "Series8000"
- The Kind of the object. Currently only Series8000 is supported
Outputs
All input properties are implicitly available as output properties. Additionally, the BandwidthSetting resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the object.
- Type string
- The hierarchical type of the object.
- Volume
Count int - The number of volumes that uses the bandwidth setting.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the object.
- Type string
- The hierarchical type of the object.
- Volume
Count int - The number of volumes that uses the bandwidth setting.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the object.
- type String
- The hierarchical type of the object.
- volume
Count Integer - The number of volumes that uses the bandwidth setting.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the object.
- type string
- The hierarchical type of the object.
- volume
Count number - The number of volumes that uses the bandwidth setting.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the object.
- type str
- The hierarchical type of the object.
- volume_
count int - The number of volumes that uses the bandwidth setting.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the object.
- type String
- The hierarchical type of the object.
- volume
Count Number - The number of volumes that uses the bandwidth setting.
Supporting Types
BandwidthSchedule, BandwidthScheduleArgs
- Days
List<Pulumi.
Azure Native. Stor Simple. Day Of Week> - The days of the week when this schedule is applicable.
- Rate
In intMbps - The rate in Mbps.
- Start
Pulumi.
Azure Native. Stor Simple. Inputs. Time - The start time of the schedule.
- Stop
Pulumi.
Azure Native. Stor Simple. Inputs. Time - The stop time of the schedule.
- Days
[]Day
Of Week - The days of the week when this schedule is applicable.
- Rate
In intMbps - The rate in Mbps.
- Start Time
- The start time of the schedule.
- Stop Time
- The stop time of the schedule.
- days
List<Day
Of Week> - The days of the week when this schedule is applicable.
- rate
In IntegerMbps - The rate in Mbps.
- start Time
- The start time of the schedule.
- stop Time
- The stop time of the schedule.
- days
Day
Of Week[] - The days of the week when this schedule is applicable.
- rate
In numberMbps - The rate in Mbps.
- start Time
- The start time of the schedule.
- stop Time
- The stop time of the schedule.
- days
Sequence[Day
Of Week] - The days of the week when this schedule is applicable.
- rate_
in_ intmbps - The rate in Mbps.
- start Time
- The start time of the schedule.
- stop Time
- The stop time of the schedule.
- days List<"Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday">
- The days of the week when this schedule is applicable.
- rate
In NumberMbps - The rate in Mbps.
- start Property Map
- The start time of the schedule.
- stop Property Map
- The stop time of the schedule.
BandwidthScheduleResponse, BandwidthScheduleResponseArgs
- Days List<string>
- The days of the week when this schedule is applicable.
- Rate
In intMbps - The rate in Mbps.
- Start
Pulumi.
Azure Native. Stor Simple. Inputs. Time Response - The start time of the schedule.
- Stop
Pulumi.
Azure Native. Stor Simple. Inputs. Time Response - The stop time of the schedule.
- Days []string
- The days of the week when this schedule is applicable.
- Rate
In intMbps - The rate in Mbps.
- Start
Time
Response - The start time of the schedule.
- Stop
Time
Response - The stop time of the schedule.
- days List<String>
- The days of the week when this schedule is applicable.
- rate
In IntegerMbps - The rate in Mbps.
- start
Time
Response - The start time of the schedule.
- stop
Time
Response - The stop time of the schedule.
- days string[]
- The days of the week when this schedule is applicable.
- rate
In numberMbps - The rate in Mbps.
- start
Time
Response - The start time of the schedule.
- stop
Time
Response - The stop time of the schedule.
- days Sequence[str]
- The days of the week when this schedule is applicable.
- rate_
in_ intmbps - The rate in Mbps.
- start
Time
Response - The start time of the schedule.
- stop
Time
Response - The stop time of the schedule.
- days List<String>
- The days of the week when this schedule is applicable.
- rate
In NumberMbps - The rate in Mbps.
- start Property Map
- The start time of the schedule.
- stop Property Map
- The stop time of the schedule.
DayOfWeek, DayOfWeekArgs
- Sunday
- Sunday
- Monday
- Monday
- Tuesday
- Tuesday
- Wednesday
- Wednesday
- Thursday
- Thursday
- Friday
- Friday
- Saturday
- Saturday
- Day
Of Week Sunday - Sunday
- Day
Of Week Monday - Monday
- Day
Of Week Tuesday - Tuesday
- Day
Of Week Wednesday - Wednesday
- Day
Of Week Thursday - Thursday
- Day
Of Week Friday - Friday
- Day
Of Week Saturday - Saturday
- Sunday
- Sunday
- Monday
- Monday
- Tuesday
- Tuesday
- Wednesday
- Wednesday
- Thursday
- Thursday
- Friday
- Friday
- Saturday
- Saturday
- Sunday
- Sunday
- Monday
- Monday
- Tuesday
- Tuesday
- Wednesday
- Wednesday
- Thursday
- Thursday
- Friday
- Friday
- Saturday
- Saturday
- SUNDAY
- Sunday
- MONDAY
- Monday
- TUESDAY
- Tuesday
- WEDNESDAY
- Wednesday
- THURSDAY
- Thursday
- FRIDAY
- Friday
- SATURDAY
- Saturday
- "Sunday"
- Sunday
- "Monday"
- Monday
- "Tuesday"
- Tuesday
- "Wednesday"
- Wednesday
- "Thursday"
- Thursday
- "Friday"
- Friday
- "Saturday"
- Saturday
Kind, KindArgs
- Series8000
- Series8000
- Kind
Series8000 - Series8000
- Series8000
- Series8000
- Series8000
- Series8000
- SERIES8000
- Series8000
- "Series8000"
- Series8000
Time, TimeArgs
TimeResponse, TimeResponseArgs
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}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0