azure-native-v2.app.MaintenanceConfiguration
Explore with Pulumi AI
Information about the Maintenance Configuration resource. Azure REST API version: 2024-10-02-preview.
Create MaintenanceConfiguration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MaintenanceConfiguration(name: string, args: MaintenanceConfigurationArgs, opts?: CustomResourceOptions);
@overload
def MaintenanceConfiguration(resource_name: str,
args: MaintenanceConfigurationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MaintenanceConfiguration(resource_name: str,
opts: Optional[ResourceOptions] = None,
environment_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
scheduled_entries: Optional[Sequence[ScheduledEntryArgs]] = None,
config_name: Optional[str] = None)
func NewMaintenanceConfiguration(ctx *Context, name string, args MaintenanceConfigurationArgs, opts ...ResourceOption) (*MaintenanceConfiguration, error)
public MaintenanceConfiguration(string name, MaintenanceConfigurationArgs args, CustomResourceOptions? opts = null)
public MaintenanceConfiguration(String name, MaintenanceConfigurationArgs args)
public MaintenanceConfiguration(String name, MaintenanceConfigurationArgs args, CustomResourceOptions options)
type: azure-native:app:MaintenanceConfiguration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. MaintenanceConfigurationArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. MaintenanceConfigurationArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. MaintenanceConfigurationArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. MaintenanceConfigurationArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. MaintenanceConfigurationArgs - 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 maintenanceConfigurationResource = new AzureNative.App.MaintenanceConfiguration("maintenanceConfigurationResource", new()
{
EnvironmentName = "string",
ResourceGroupName = "string",
ScheduledEntries = new[]
{
{
{ "durationHours", 0 },
{ "startHourUtc", 0 },
{ "weekDay", "Monday" },
},
},
ConfigName = "string",
});
example, err := app.NewMaintenanceConfiguration(ctx, "maintenanceConfigurationResource", &app.MaintenanceConfigurationArgs{
EnvironmentName: "string",
ResourceGroupName: "string",
ScheduledEntries: []map[string]interface{}{
map[string]interface{}{
"durationHours": 0,
"startHourUtc": 0,
"weekDay": "Monday",
},
},
ConfigName: "string",
})
var maintenanceConfigurationResource = new MaintenanceConfiguration("maintenanceConfigurationResource", MaintenanceConfigurationArgs.builder()
.environmentName("string")
.resourceGroupName("string")
.scheduledEntries(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.configName("string")
.build());
maintenance_configuration_resource = azure_native.app.MaintenanceConfiguration("maintenanceConfigurationResource",
environment_name=string,
resource_group_name=string,
scheduled_entries=[{
durationHours: 0,
startHourUtc: 0,
weekDay: Monday,
}],
config_name=string)
const maintenanceConfigurationResource = new azure_native.app.MaintenanceConfiguration("maintenanceConfigurationResource", {
environmentName: "string",
resourceGroupName: "string",
scheduledEntries: [{
durationHours: 0,
startHourUtc: 0,
weekDay: "Monday",
}],
configName: "string",
});
type: azure-native:app:MaintenanceConfiguration
properties:
configName: string
environmentName: string
resourceGroupName: string
scheduledEntries:
- durationHours: 0
startHourUtc: 0
weekDay: Monday
MaintenanceConfiguration Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The MaintenanceConfiguration resource accepts the following input properties:
- Environment
Name This property is required. Changes to this property will trigger replacement.
- The name of the Managed Environment.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- Scheduled
Entries This property is required. List<Pulumi.Azure Native. App. Inputs. Scheduled Entry> - List of maintenance schedules for a managed environment.
- Config
Name Changes to this property will trigger replacement.
- The name of the maintenance configuration.
- Environment
Name This property is required. Changes to this property will trigger replacement.
- The name of the Managed Environment.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- Scheduled
Entries This property is required. []ScheduledEntry Args - List of maintenance schedules for a managed environment.
- Config
Name Changes to this property will trigger replacement.
- The name of the maintenance configuration.
- environment
Name This property is required. Changes to this property will trigger replacement.
- The name of the Managed Environment.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- scheduled
Entries This property is required. List<ScheduledEntry> - List of maintenance schedules for a managed environment.
- config
Name Changes to this property will trigger replacement.
- The name of the maintenance configuration.
- environment
Name This property is required. Changes to this property will trigger replacement.
- The name of the Managed Environment.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- scheduled
Entries This property is required. ScheduledEntry[] - List of maintenance schedules for a managed environment.
- config
Name Changes to this property will trigger replacement.
- The name of the maintenance configuration.
- environment_
name This property is required. Changes to this property will trigger replacement.
- The name of the Managed Environment.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- scheduled_
entries This property is required. Sequence[ScheduledEntry Args] - List of maintenance schedules for a managed environment.
- config_
name Changes to this property will trigger replacement.
- The name of the maintenance configuration.
- environment
Name This property is required. Changes to this property will trigger replacement.
- The name of the Managed Environment.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- scheduled
Entries This property is required. List<Property Map> - List of maintenance schedules for a managed environment.
- config
Name Changes to this property will trigger replacement.
- The name of the maintenance configuration.
Outputs
All input properties are implicitly available as output properties. Additionally, the MaintenanceConfiguration resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- System
Data Pulumi.Azure Native. App. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
ScheduledEntry, ScheduledEntryArgs
- Duration
Hours This property is required. int - Length of maintenance window range from 8 to 24 hours.
- Start
Hour Utc This property is required. int - Start hour after which managed environment maintenance can start from 0 to 23 hour.
- Week
Day This property is required. Pulumi.Azure Native. App. Week Day - Day of the week when a managed environment can be patched.
- Duration
Hours This property is required. int - Length of maintenance window range from 8 to 24 hours.
- Start
Hour Utc This property is required. int - Start hour after which managed environment maintenance can start from 0 to 23 hour.
- Week
Day This property is required. WeekDay - Day of the week when a managed environment can be patched.
- duration
Hours This property is required. Integer - Length of maintenance window range from 8 to 24 hours.
- start
Hour Utc This property is required. Integer - Start hour after which managed environment maintenance can start from 0 to 23 hour.
- week
Day This property is required. WeekDay - Day of the week when a managed environment can be patched.
- duration
Hours This property is required. number - Length of maintenance window range from 8 to 24 hours.
- start
Hour Utc This property is required. number - Start hour after which managed environment maintenance can start from 0 to 23 hour.
- week
Day This property is required. WeekDay - Day of the week when a managed environment can be patched.
- duration_
hours This property is required. int - Length of maintenance window range from 8 to 24 hours.
- start_
hour_ utc This property is required. int - Start hour after which managed environment maintenance can start from 0 to 23 hour.
- week_
day This property is required. WeekDay - Day of the week when a managed environment can be patched.
- duration
Hours This property is required. Number - Length of maintenance window range from 8 to 24 hours.
- start
Hour Utc This property is required. Number - Start hour after which managed environment maintenance can start from 0 to 23 hour.
- week
Day This property is required. "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday" - Day of the week when a managed environment can be patched.
ScheduledEntryResponse, ScheduledEntryResponseArgs
- Duration
Hours This property is required. int - Length of maintenance window range from 8 to 24 hours.
- Start
Hour Utc This property is required. int - Start hour after which managed environment maintenance can start from 0 to 23 hour.
- Week
Day This property is required. string - Day of the week when a managed environment can be patched.
- Duration
Hours This property is required. int - Length of maintenance window range from 8 to 24 hours.
- Start
Hour Utc This property is required. int - Start hour after which managed environment maintenance can start from 0 to 23 hour.
- Week
Day This property is required. string - Day of the week when a managed environment can be patched.
- duration
Hours This property is required. Integer - Length of maintenance window range from 8 to 24 hours.
- start
Hour Utc This property is required. Integer - Start hour after which managed environment maintenance can start from 0 to 23 hour.
- week
Day This property is required. String - Day of the week when a managed environment can be patched.
- duration
Hours This property is required. number - Length of maintenance window range from 8 to 24 hours.
- start
Hour Utc This property is required. number - Start hour after which managed environment maintenance can start from 0 to 23 hour.
- week
Day This property is required. string - Day of the week when a managed environment can be patched.
- duration_
hours This property is required. int - Length of maintenance window range from 8 to 24 hours.
- start_
hour_ utc This property is required. int - Start hour after which managed environment maintenance can start from 0 to 23 hour.
- week_
day This property is required. str - Day of the week when a managed environment can be patched.
- duration
Hours This property is required. Number - Length of maintenance window range from 8 to 24 hours.
- start
Hour Utc This property is required. Number - Start hour after which managed environment maintenance can start from 0 to 23 hour.
- week
Day This property is required. String - Day of the week when a managed environment can be patched.
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
WeekDay, WeekDayArgs
- Monday
- Monday
- Tuesday
- Tuesday
- Wednesday
- Wednesday
- Thursday
- Thursday
- Friday
- Friday
- Saturday
- Saturday
- Sunday
- Sunday
- Week
Day Monday - Monday
- Week
Day Tuesday - Tuesday
- Week
Day Wednesday - Wednesday
- Week
Day Thursday - Thursday
- Week
Day Friday - Friday
- Week
Day Saturday - Saturday
- Week
Day 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
- "Sunday"
- Sunday
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:app:MaintenanceConfiguration default /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/maintenanceConfigurations/{configName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v2 pulumi/pulumi-azure-native
- License
- Apache-2.0