azure-native.maintenance.ConfigurationAssignmentParent
Explore with Pulumi AI
Configuration Assignment
Uses Azure REST API version 2023-10-01-preview. In version 2.x of the Azure Native provider, it used API version 2022-11-01-preview.
Other available API versions: 2022-11-01-preview, 2023-04-01, 2023-09-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native maintenance [ApiVersion]
. See the version guide for details.
Create ConfigurationAssignmentParent Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ConfigurationAssignmentParent(name: string, args: ConfigurationAssignmentParentArgs, opts?: CustomResourceOptions);
@overload
def ConfigurationAssignmentParent(resource_name: str,
args: ConfigurationAssignmentParentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ConfigurationAssignmentParent(resource_name: str,
opts: Optional[ResourceOptions] = None,
provider_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
resource_name_: Optional[str] = None,
resource_parent_name: Optional[str] = None,
resource_parent_type: Optional[str] = None,
resource_type: Optional[str] = None,
configuration_assignment_name: Optional[str] = None,
filter: Optional[ConfigurationAssignmentFilterPropertiesArgs] = None,
location: Optional[str] = None,
maintenance_configuration_id: Optional[str] = None,
resource_id: Optional[str] = None)
func NewConfigurationAssignmentParent(ctx *Context, name string, args ConfigurationAssignmentParentArgs, opts ...ResourceOption) (*ConfigurationAssignmentParent, error)
public ConfigurationAssignmentParent(string name, ConfigurationAssignmentParentArgs args, CustomResourceOptions? opts = null)
public ConfigurationAssignmentParent(String name, ConfigurationAssignmentParentArgs args)
public ConfigurationAssignmentParent(String name, ConfigurationAssignmentParentArgs args, CustomResourceOptions options)
type: azure-native:maintenance:ConfigurationAssignmentParent
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. ConfigurationAssignmentParentArgs - 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. ConfigurationAssignmentParentArgs - 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. ConfigurationAssignmentParentArgs - 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. ConfigurationAssignmentParentArgs - 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. ConfigurationAssignmentParentArgs - 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 configurationAssignmentParentResource = new AzureNative.Maintenance.ConfigurationAssignmentParent("configurationAssignmentParentResource", new()
{
ProviderName = "string",
ResourceGroupName = "string",
ResourceName = "string",
ResourceParentName = "string",
ResourceParentType = "string",
ResourceType = "string",
ConfigurationAssignmentName = "string",
Filter = new AzureNative.Maintenance.Inputs.ConfigurationAssignmentFilterPropertiesArgs
{
Locations = new[]
{
"string",
},
OsTypes = new[]
{
"string",
},
ResourceGroups = new[]
{
"string",
},
ResourceTypes = new[]
{
"string",
},
TagSettings = new AzureNative.Maintenance.Inputs.TagSettingsPropertiesArgs
{
FilterOperator = AzureNative.Maintenance.TagOperators.All,
Tags =
{
{ "string", new[]
{
"string",
} },
},
},
},
Location = "string",
MaintenanceConfigurationId = "string",
ResourceId = "string",
});
example, err := maintenance.NewConfigurationAssignmentParent(ctx, "configurationAssignmentParentResource", &maintenance.ConfigurationAssignmentParentArgs{
ProviderName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
ResourceName: pulumi.String("string"),
ResourceParentName: pulumi.String("string"),
ResourceParentType: pulumi.String("string"),
ResourceType: pulumi.String("string"),
ConfigurationAssignmentName: pulumi.String("string"),
Filter: &maintenance.ConfigurationAssignmentFilterPropertiesArgs{
Locations: pulumi.StringArray{
pulumi.String("string"),
},
OsTypes: pulumi.StringArray{
pulumi.String("string"),
},
ResourceGroups: pulumi.StringArray{
pulumi.String("string"),
},
ResourceTypes: pulumi.StringArray{
pulumi.String("string"),
},
TagSettings: &maintenance.TagSettingsPropertiesArgs{
FilterOperator: maintenance.TagOperatorsAll,
Tags: pulumi.StringArrayMap{
"string": pulumi.StringArray{
pulumi.String("string"),
},
},
},
},
Location: pulumi.String("string"),
MaintenanceConfigurationId: pulumi.String("string"),
ResourceId: pulumi.String("string"),
})
var configurationAssignmentParentResource = new ConfigurationAssignmentParent("configurationAssignmentParentResource", ConfigurationAssignmentParentArgs.builder()
.providerName("string")
.resourceGroupName("string")
.resourceName("string")
.resourceParentName("string")
.resourceParentType("string")
.resourceType("string")
.configurationAssignmentName("string")
.filter(ConfigurationAssignmentFilterPropertiesArgs.builder()
.locations("string")
.osTypes("string")
.resourceGroups("string")
.resourceTypes("string")
.tagSettings(TagSettingsPropertiesArgs.builder()
.filterOperator("All")
.tags(Map.of("string", "string"))
.build())
.build())
.location("string")
.maintenanceConfigurationId("string")
.resourceId("string")
.build());
configuration_assignment_parent_resource = azure_native.maintenance.ConfigurationAssignmentParent("configurationAssignmentParentResource",
provider_name="string",
resource_group_name="string",
resource_name_="string",
resource_parent_name="string",
resource_parent_type="string",
resource_type="string",
configuration_assignment_name="string",
filter={
"locations": ["string"],
"os_types": ["string"],
"resource_groups": ["string"],
"resource_types": ["string"],
"tag_settings": {
"filter_operator": azure_native.maintenance.TagOperators.ALL,
"tags": {
"string": ["string"],
},
},
},
location="string",
maintenance_configuration_id="string",
resource_id="string")
const configurationAssignmentParentResource = new azure_native.maintenance.ConfigurationAssignmentParent("configurationAssignmentParentResource", {
providerName: "string",
resourceGroupName: "string",
resourceName: "string",
resourceParentName: "string",
resourceParentType: "string",
resourceType: "string",
configurationAssignmentName: "string",
filter: {
locations: ["string"],
osTypes: ["string"],
resourceGroups: ["string"],
resourceTypes: ["string"],
tagSettings: {
filterOperator: azure_native.maintenance.TagOperators.All,
tags: {
string: ["string"],
},
},
},
location: "string",
maintenanceConfigurationId: "string",
resourceId: "string",
});
type: azure-native:maintenance:ConfigurationAssignmentParent
properties:
configurationAssignmentName: string
filter:
locations:
- string
osTypes:
- string
resourceGroups:
- string
resourceTypes:
- string
tagSettings:
filterOperator: All
tags:
string:
- string
location: string
maintenanceConfigurationId: string
providerName: string
resourceGroupName: string
resourceId: string
resourceName: string
resourceParentName: string
resourceParentType: string
resourceType: string
ConfigurationAssignmentParent 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 ConfigurationAssignmentParent resource accepts the following input properties:
- Provider
Name This property is required. Changes to this property will trigger replacement.
- Resource provider name
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- Resource group name
- Resource
Name This property is required. Changes to this property will trigger replacement.
- Resource identifier
- Resource
Parent Name This property is required. Changes to this property will trigger replacement.
- Resource parent identifier
- Resource
Parent Type This property is required. Changes to this property will trigger replacement.
- Resource parent type
- Resource
Type This property is required. Changes to this property will trigger replacement.
- Resource type
- Configuration
Assignment Name Changes to this property will trigger replacement.
- Configuration assignment name
- Filter
Pulumi.
Azure Native. Maintenance. Inputs. Configuration Assignment Filter Properties - Properties of the configuration assignment
- Location string
- Location of the resource
- Maintenance
Configuration stringId - The maintenance configuration Id
- Resource
Id string - The unique resourceId
- Provider
Name This property is required. Changes to this property will trigger replacement.
- Resource provider name
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- Resource group name
- Resource
Name This property is required. Changes to this property will trigger replacement.
- Resource identifier
- Resource
Parent Name This property is required. Changes to this property will trigger replacement.
- Resource parent identifier
- Resource
Parent Type This property is required. Changes to this property will trigger replacement.
- Resource parent type
- Resource
Type This property is required. Changes to this property will trigger replacement.
- Resource type
- Configuration
Assignment Name Changes to this property will trigger replacement.
- Configuration assignment name
- Filter
Configuration
Assignment Filter Properties Args - Properties of the configuration assignment
- Location string
- Location of the resource
- Maintenance
Configuration stringId - The maintenance configuration Id
- Resource
Id string - The unique resourceId
- provider
Name This property is required. Changes to this property will trigger replacement.
- Resource provider name
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- Resource group name
- resource
Name This property is required. Changes to this property will trigger replacement.
- Resource identifier
- resource
Parent Name This property is required. Changes to this property will trigger replacement.
- Resource parent identifier
- resource
Parent Type This property is required. Changes to this property will trigger replacement.
- Resource parent type
- resource
Type This property is required. Changes to this property will trigger replacement.
- Resource type
- configuration
Assignment Name Changes to this property will trigger replacement.
- Configuration assignment name
- filter
Configuration
Assignment Filter Properties - Properties of the configuration assignment
- location String
- Location of the resource
- maintenance
Configuration StringId - The maintenance configuration Id
- resource
Id String - The unique resourceId
- provider
Name This property is required. Changes to this property will trigger replacement.
- Resource provider name
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- Resource group name
- resource
Name This property is required. Changes to this property will trigger replacement.
- Resource identifier
- resource
Parent Name This property is required. Changes to this property will trigger replacement.
- Resource parent identifier
- resource
Parent Type This property is required. Changes to this property will trigger replacement.
- Resource parent type
- resource
Type This property is required. Changes to this property will trigger replacement.
- Resource type
- configuration
Assignment Name Changes to this property will trigger replacement.
- Configuration assignment name
- filter
Configuration
Assignment Filter Properties - Properties of the configuration assignment
- location string
- Location of the resource
- maintenance
Configuration stringId - The maintenance configuration Id
- resource
Id string - The unique resourceId
- provider_
name This property is required. Changes to this property will trigger replacement.
- Resource provider name
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- Resource group name
- resource_
name This property is required. Changes to this property will trigger replacement.
- Resource identifier
- resource_
parent_ name This property is required. Changes to this property will trigger replacement.
- Resource parent identifier
- resource_
parent_ type This property is required. Changes to this property will trigger replacement.
- Resource parent type
- resource_
type This property is required. Changes to this property will trigger replacement.
- Resource type
- configuration_
assignment_ name Changes to this property will trigger replacement.
- Configuration assignment name
- filter
Configuration
Assignment Filter Properties Args - Properties of the configuration assignment
- location str
- Location of the resource
- maintenance_
configuration_ strid - The maintenance configuration Id
- resource_
id str - The unique resourceId
- provider
Name This property is required. Changes to this property will trigger replacement.
- Resource provider name
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- Resource group name
- resource
Name This property is required. Changes to this property will trigger replacement.
- Resource identifier
- resource
Parent Name This property is required. Changes to this property will trigger replacement.
- Resource parent identifier
- resource
Parent Type This property is required. Changes to this property will trigger replacement.
- Resource parent type
- resource
Type This property is required. Changes to this property will trigger replacement.
- Resource type
- configuration
Assignment Name Changes to this property will trigger replacement.
- Configuration assignment name
- filter Property Map
- Properties of the configuration assignment
- location String
- Location of the resource
- maintenance
Configuration StringId - The maintenance configuration Id
- resource
Id String - The unique resourceId
Outputs
All input properties are implicitly available as output properties. Additionally, the ConfigurationAssignmentParent resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the resource
- System
Data Pulumi.Azure Native. Maintenance. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- Type of the resource
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the resource
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- Type of the resource
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the resource
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- Type of the resource
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Name of the resource
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- Type of the resource
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Name of the resource
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- Type of the resource
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the resource
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- Type of the resource
Supporting Types
ConfigurationAssignmentFilterProperties, ConfigurationAssignmentFilterPropertiesArgs
- Locations List<string>
- List of locations to scope the query to.
- Os
Types List<string> - List of allowed operating systems.
- Resource
Groups List<string> - List of allowed resource groups.
- Resource
Types List<string> - List of allowed resources.
- Pulumi.
Azure Native. Maintenance. Inputs. Tag Settings Properties - Tag settings for the VM.
- Locations []string
- List of locations to scope the query to.
- Os
Types []string - List of allowed operating systems.
- Resource
Groups []string - List of allowed resource groups.
- Resource
Types []string - List of allowed resources.
- Tag
Settings Properties - Tag settings for the VM.
- locations List<String>
- List of locations to scope the query to.
- os
Types List<String> - List of allowed operating systems.
- resource
Groups List<String> - List of allowed resource groups.
- resource
Types List<String> - List of allowed resources.
- Tag
Settings Properties - Tag settings for the VM.
- locations string[]
- List of locations to scope the query to.
- os
Types string[] - List of allowed operating systems.
- resource
Groups string[] - List of allowed resource groups.
- resource
Types string[] - List of allowed resources.
- Tag
Settings Properties - Tag settings for the VM.
- locations Sequence[str]
- List of locations to scope the query to.
- os_
types Sequence[str] - List of allowed operating systems.
- resource_
groups Sequence[str] - List of allowed resource groups.
- resource_
types Sequence[str] - List of allowed resources.
- tag_
settings TagSettings Properties - Tag settings for the VM.
- locations List<String>
- List of locations to scope the query to.
- os
Types List<String> - List of allowed operating systems.
- resource
Groups List<String> - List of allowed resource groups.
- resource
Types List<String> - List of allowed resources.
- Property Map
- Tag settings for the VM.
ConfigurationAssignmentFilterPropertiesResponse, ConfigurationAssignmentFilterPropertiesResponseArgs
- Locations List<string>
- List of locations to scope the query to.
- Os
Types List<string> - List of allowed operating systems.
- Resource
Groups List<string> - List of allowed resource groups.
- Resource
Types List<string> - List of allowed resources.
- Pulumi.
Azure Native. Maintenance. Inputs. Tag Settings Properties Response - Tag settings for the VM.
- Locations []string
- List of locations to scope the query to.
- Os
Types []string - List of allowed operating systems.
- Resource
Groups []string - List of allowed resource groups.
- Resource
Types []string - List of allowed resources.
- Tag
Settings Properties Response - Tag settings for the VM.
- locations List<String>
- List of locations to scope the query to.
- os
Types List<String> - List of allowed operating systems.
- resource
Groups List<String> - List of allowed resource groups.
- resource
Types List<String> - List of allowed resources.
- Tag
Settings Properties Response - Tag settings for the VM.
- locations string[]
- List of locations to scope the query to.
- os
Types string[] - List of allowed operating systems.
- resource
Groups string[] - List of allowed resource groups.
- resource
Types string[] - List of allowed resources.
- Tag
Settings Properties Response - Tag settings for the VM.
- locations Sequence[str]
- List of locations to scope the query to.
- os_
types Sequence[str] - List of allowed operating systems.
- resource_
groups Sequence[str] - List of allowed resource groups.
- resource_
types Sequence[str] - List of allowed resources.
- tag_
settings TagSettings Properties Response - Tag settings for the VM.
- locations List<String>
- List of locations to scope the query to.
- os
Types List<String> - List of allowed operating systems.
- resource
Groups List<String> - List of allowed resource groups.
- resource
Types List<String> - List of allowed resources.
- Property Map
- Tag settings for the VM.
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.
TagOperators, TagOperatorsArgs
- All
- All
- Any
- Any
- Tag
Operators All - All
- Tag
Operators Any - Any
- All
- All
- Any
- Any
- All
- All
- Any
- Any
- ALL
- All
- ANY
- Any
- "All"
- All
- "Any"
- Any
TagSettingsProperties, TagSettingsPropertiesArgs
- Filter
Operator Pulumi.Azure Native. Maintenance. Tag Operators - Filter VMs by Any or All specified tags.
- Dictionary<string, Immutable
Array<string>> - Dictionary of tags with its list of values.
- Filter
Operator TagOperators - Filter VMs by Any or All specified tags.
- map[string][]string
- Dictionary of tags with its list of values.
- filter
Operator TagOperators - Filter VMs by Any or All specified tags.
- Map<String,List<String>>
- Dictionary of tags with its list of values.
- filter
Operator TagOperators - Filter VMs by Any or All specified tags.
- {[key: string]: string[]}
- Dictionary of tags with its list of values.
- filter_
operator TagOperators - Filter VMs by Any or All specified tags.
- Mapping[str, Sequence[str]]
- Dictionary of tags with its list of values.
- filter
Operator "All" | "Any" - Filter VMs by Any or All specified tags.
- Map<List<String>>
- Dictionary of tags with its list of values.
TagSettingsPropertiesResponse, TagSettingsPropertiesResponseArgs
- Filter
Operator string - Filter VMs by Any or All specified tags.
- Dictionary<string, Immutable
Array<string>> - Dictionary of tags with its list of values.
- Filter
Operator string - Filter VMs by Any or All specified tags.
- map[string][]string
- Dictionary of tags with its list of values.
- filter
Operator String - Filter VMs by Any or All specified tags.
- Map<String,List<String>>
- Dictionary of tags with its list of values.
- filter
Operator string - Filter VMs by Any or All specified tags.
- {[key: string]: string[]}
- Dictionary of tags with its list of values.
- filter_
operator str - Filter VMs by Any or All specified tags.
- Mapping[str, Sequence[str]]
- Dictionary of tags with its list of values.
- filter
Operator String - Filter VMs by Any or All specified tags.
- Map<List<String>>
- Dictionary of tags with its list of values.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:maintenance:ConfigurationAssignmentParent workervmPolicy /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceParentType}/{resourceParentName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0