azure-native.authorization.PolicyDefinitionVersionAtManagementGroup
Explore with Pulumi AI
The ID of the policy definition version. Azure REST API version: 2023-04-01.
Example Usage
Create or update a policy definition version at management group level
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var policyDefinitionVersionAtManagementGroup = new AzureNative.Authorization.PolicyDefinitionVersionAtManagementGroup("policyDefinitionVersionAtManagementGroup", new()
{
Description = "Force resource names to begin with given 'prefix' and/or end with given 'suffix'",
DisplayName = "Enforce resource naming convention",
ManagementGroupName = "MyManagementGroup",
Metadata = new Dictionary<string, object?>
{
["category"] = "Naming",
},
Mode = "All",
Parameters =
{
{ "prefix", new AzureNative.Authorization.Inputs.ParameterDefinitionsValueArgs
{
Metadata = new AzureNative.Authorization.Inputs.ParameterDefinitionsValueMetadataArgs
{
Description = "Resource name prefix",
DisplayName = "Prefix",
},
Type = AzureNative.Authorization.ParameterType.String,
} },
{ "suffix", new AzureNative.Authorization.Inputs.ParameterDefinitionsValueArgs
{
Metadata = new AzureNative.Authorization.Inputs.ParameterDefinitionsValueMetadataArgs
{
Description = "Resource name suffix",
DisplayName = "Suffix",
},
Type = AzureNative.Authorization.ParameterType.String,
} },
},
PolicyDefinitionName = "ResourceNaming",
PolicyDefinitionVersion = "1.2.1",
PolicyRule = new Dictionary<string, object?>
{
["if"] = new Dictionary<string, object?>
{
["not"] = new Dictionary<string, object?>
{
["field"] = "name",
["like"] = "[concat(parameters('prefix'), '*', parameters('suffix'))]",
},
},
["then"] = new Dictionary<string, object?>
{
["effect"] = "deny",
},
},
Version = "1.2.1",
});
});
package main
import (
authorization "github.com/pulumi/pulumi-azure-native-sdk/authorization/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := authorization.NewPolicyDefinitionVersionAtManagementGroup(ctx, "policyDefinitionVersionAtManagementGroup", &authorization.PolicyDefinitionVersionAtManagementGroupArgs{
Description: pulumi.String("Force resource names to begin with given 'prefix' and/or end with given 'suffix'"),
DisplayName: pulumi.String("Enforce resource naming convention"),
ManagementGroupName: pulumi.String("MyManagementGroup"),
Metadata: pulumi.Any(map[string]interface{}{
"category": "Naming",
}),
Mode: pulumi.String("All"),
Parameters: authorization.ParameterDefinitionsValueMap{
"prefix": &authorization.ParameterDefinitionsValueArgs{
Metadata: &authorization.ParameterDefinitionsValueMetadataArgs{
Description: pulumi.String("Resource name prefix"),
DisplayName: pulumi.String("Prefix"),
},
Type: pulumi.String(authorization.ParameterTypeString),
},
"suffix": &authorization.ParameterDefinitionsValueArgs{
Metadata: &authorization.ParameterDefinitionsValueMetadataArgs{
Description: pulumi.String("Resource name suffix"),
DisplayName: pulumi.String("Suffix"),
},
Type: pulumi.String(authorization.ParameterTypeString),
},
},
PolicyDefinitionName: pulumi.String("ResourceNaming"),
PolicyDefinitionVersion: pulumi.String("1.2.1"),
PolicyRule: pulumi.Any(map[string]interface{}{
"if": map[string]interface{}{
"not": map[string]interface{}{
"field": "name",
"like": "[concat(parameters('prefix'), '*', parameters('suffix'))]",
},
},
"then": map[string]interface{}{
"effect": "deny",
},
}),
Version: pulumi.String("1.2.1"),
})
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.authorization.PolicyDefinitionVersionAtManagementGroup;
import com.pulumi.azurenative.authorization.PolicyDefinitionVersionAtManagementGroupArgs;
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 policyDefinitionVersionAtManagementGroup = new PolicyDefinitionVersionAtManagementGroup("policyDefinitionVersionAtManagementGroup", PolicyDefinitionVersionAtManagementGroupArgs.builder()
.description("Force resource names to begin with given 'prefix' and/or end with given 'suffix'")
.displayName("Enforce resource naming convention")
.managementGroupName("MyManagementGroup")
.metadata(Map.of("category", "Naming"))
.mode("All")
.parameters(Map.ofEntries(
Map.entry("prefix", Map.ofEntries(
Map.entry("metadata", Map.ofEntries(
Map.entry("description", "Resource name prefix"),
Map.entry("displayName", "Prefix")
)),
Map.entry("type", "String")
)),
Map.entry("suffix", Map.ofEntries(
Map.entry("metadata", Map.ofEntries(
Map.entry("description", "Resource name suffix"),
Map.entry("displayName", "Suffix")
)),
Map.entry("type", "String")
))
))
.policyDefinitionName("ResourceNaming")
.policyDefinitionVersion("1.2.1")
.policyRule(Map.ofEntries(
Map.entry("if", Map.of("not", Map.ofEntries(
Map.entry("field", "name"),
Map.entry("like", "[concat(parameters('prefix'), '*', parameters('suffix'))]")
))),
Map.entry("then", Map.of("effect", "deny"))
))
.version("1.2.1")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
policy_definition_version_at_management_group = azure_native.authorization.PolicyDefinitionVersionAtManagementGroup("policyDefinitionVersionAtManagementGroup",
description="Force resource names to begin with given 'prefix' and/or end with given 'suffix'",
display_name="Enforce resource naming convention",
management_group_name="MyManagementGroup",
metadata={
"category": "Naming",
},
mode="All",
parameters={
"prefix": azure_native.authorization.ParameterDefinitionsValueArgs(
metadata=azure_native.authorization.ParameterDefinitionsValueMetadataArgs(
description="Resource name prefix",
display_name="Prefix",
),
type=azure_native.authorization.ParameterType.STRING,
),
"suffix": azure_native.authorization.ParameterDefinitionsValueArgs(
metadata=azure_native.authorization.ParameterDefinitionsValueMetadataArgs(
description="Resource name suffix",
display_name="Suffix",
),
type=azure_native.authorization.ParameterType.STRING,
),
},
policy_definition_name="ResourceNaming",
policy_definition_version="1.2.1",
policy_rule={
"if": {
"not": {
"field": "name",
"like": "[concat(parameters('prefix'), '*', parameters('suffix'))]",
},
},
"then": {
"effect": "deny",
},
},
version="1.2.1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const policyDefinitionVersionAtManagementGroup = new azure_native.authorization.PolicyDefinitionVersionAtManagementGroup("policyDefinitionVersionAtManagementGroup", {
description: "Force resource names to begin with given 'prefix' and/or end with given 'suffix'",
displayName: "Enforce resource naming convention",
managementGroupName: "MyManagementGroup",
metadata: {
category: "Naming",
},
mode: "All",
parameters: {
prefix: {
metadata: {
description: "Resource name prefix",
displayName: "Prefix",
},
type: azure_native.authorization.ParameterType.String,
},
suffix: {
metadata: {
description: "Resource name suffix",
displayName: "Suffix",
},
type: azure_native.authorization.ParameterType.String,
},
},
policyDefinitionName: "ResourceNaming",
policyDefinitionVersion: "1.2.1",
policyRule: {
"if": {
not: {
field: "name",
like: "[concat(parameters('prefix'), '*', parameters('suffix'))]",
},
},
then: {
effect: "deny",
},
},
version: "1.2.1",
});
resources:
policyDefinitionVersionAtManagementGroup:
type: azure-native:authorization:PolicyDefinitionVersionAtManagementGroup
properties:
description: Force resource names to begin with given 'prefix' and/or end with given 'suffix'
displayName: Enforce resource naming convention
managementGroupName: MyManagementGroup
metadata:
category: Naming
mode: All
parameters:
prefix:
metadata:
description: Resource name prefix
displayName: Prefix
type: String
suffix:
metadata:
description: Resource name suffix
displayName: Suffix
type: String
policyDefinitionName: ResourceNaming
policyDefinitionVersion: 1.2.1
policyRule:
if:
not:
field: name
like: '[concat(parameters(''prefix''), ''*'', parameters(''suffix''))]'
then:
effect: deny
version: 1.2.1
Create PolicyDefinitionVersionAtManagementGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PolicyDefinitionVersionAtManagementGroup(name: string, args: PolicyDefinitionVersionAtManagementGroupArgs, opts?: CustomResourceOptions);
@overload
def PolicyDefinitionVersionAtManagementGroup(resource_name: str,
args: PolicyDefinitionVersionAtManagementGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PolicyDefinitionVersionAtManagementGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
management_group_name: Optional[str] = None,
policy_definition_name: Optional[str] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
metadata: Optional[Any] = None,
mode: Optional[str] = None,
parameters: Optional[Mapping[str, ParameterDefinitionsValueArgs]] = None,
policy_definition_version: Optional[str] = None,
policy_rule: Optional[Any] = None,
policy_type: Optional[Union[str, PolicyType]] = None,
version: Optional[str] = None)
func NewPolicyDefinitionVersionAtManagementGroup(ctx *Context, name string, args PolicyDefinitionVersionAtManagementGroupArgs, opts ...ResourceOption) (*PolicyDefinitionVersionAtManagementGroup, error)
public PolicyDefinitionVersionAtManagementGroup(string name, PolicyDefinitionVersionAtManagementGroupArgs args, CustomResourceOptions? opts = null)
public PolicyDefinitionVersionAtManagementGroup(String name, PolicyDefinitionVersionAtManagementGroupArgs args)
public PolicyDefinitionVersionAtManagementGroup(String name, PolicyDefinitionVersionAtManagementGroupArgs args, CustomResourceOptions options)
type: azure-native:authorization:PolicyDefinitionVersionAtManagementGroup
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 PolicyDefinitionVersionAtManagementGroupArgs
- 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 PolicyDefinitionVersionAtManagementGroupArgs
- 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 PolicyDefinitionVersionAtManagementGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PolicyDefinitionVersionAtManagementGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PolicyDefinitionVersionAtManagementGroupArgs
- 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 policyDefinitionVersionAtManagementGroupResource = new AzureNative.Authorization.PolicyDefinitionVersionAtManagementGroup("policyDefinitionVersionAtManagementGroupResource", new()
{
ManagementGroupName = "string",
PolicyDefinitionName = "string",
Description = "string",
DisplayName = "string",
Metadata = "any",
Mode = "string",
Parameters =
{
{ "string", new AzureNative.Authorization.Inputs.ParameterDefinitionsValueArgs
{
AllowedValues = new[]
{
"any",
},
DefaultValue = "any",
Metadata = new AzureNative.Authorization.Inputs.ParameterDefinitionsValueMetadataArgs
{
AssignPermissions = false,
Description = "string",
DisplayName = "string",
StrongType = "string",
},
Schema = "any",
Type = "string",
} },
},
PolicyDefinitionVersion = "string",
PolicyRule = "any",
PolicyType = "string",
Version = "string",
});
example, err := authorization.NewPolicyDefinitionVersionAtManagementGroup(ctx, "policyDefinitionVersionAtManagementGroupResource", &authorization.PolicyDefinitionVersionAtManagementGroupArgs{
ManagementGroupName: pulumi.String("string"),
PolicyDefinitionName: pulumi.String("string"),
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
Metadata: pulumi.Any("any"),
Mode: pulumi.String("string"),
Parameters: authorization.ParameterDefinitionsValueMap{
"string": &authorization.ParameterDefinitionsValueArgs{
AllowedValues: pulumi.Array{
pulumi.Any("any"),
},
DefaultValue: pulumi.Any("any"),
Metadata: &authorization.ParameterDefinitionsValueMetadataArgs{
AssignPermissions: pulumi.Bool(false),
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
StrongType: pulumi.String("string"),
},
Schema: pulumi.Any("any"),
Type: pulumi.String("string"),
},
},
PolicyDefinitionVersion: pulumi.String("string"),
PolicyRule: pulumi.Any("any"),
PolicyType: pulumi.String("string"),
Version: pulumi.String("string"),
})
var policyDefinitionVersionAtManagementGroupResource = new PolicyDefinitionVersionAtManagementGroup("policyDefinitionVersionAtManagementGroupResource", PolicyDefinitionVersionAtManagementGroupArgs.builder()
.managementGroupName("string")
.policyDefinitionName("string")
.description("string")
.displayName("string")
.metadata("any")
.mode("string")
.parameters(Map.of("string", Map.ofEntries(
Map.entry("allowedValues", "any"),
Map.entry("defaultValue", "any"),
Map.entry("metadata", Map.ofEntries(
Map.entry("assignPermissions", false),
Map.entry("description", "string"),
Map.entry("displayName", "string"),
Map.entry("strongType", "string")
)),
Map.entry("schema", "any"),
Map.entry("type", "string")
)))
.policyDefinitionVersion("string")
.policyRule("any")
.policyType("string")
.version("string")
.build());
policy_definition_version_at_management_group_resource = azure_native.authorization.PolicyDefinitionVersionAtManagementGroup("policyDefinitionVersionAtManagementGroupResource",
management_group_name="string",
policy_definition_name="string",
description="string",
display_name="string",
metadata="any",
mode="string",
parameters={
"string": azure_native.authorization.ParameterDefinitionsValueArgs(
allowed_values=["any"],
default_value="any",
metadata=azure_native.authorization.ParameterDefinitionsValueMetadataArgs(
assign_permissions=False,
description="string",
display_name="string",
strong_type="string",
),
schema="any",
type="string",
),
},
policy_definition_version="string",
policy_rule="any",
policy_type="string",
version="string")
const policyDefinitionVersionAtManagementGroupResource = new azure_native.authorization.PolicyDefinitionVersionAtManagementGroup("policyDefinitionVersionAtManagementGroupResource", {
managementGroupName: "string",
policyDefinitionName: "string",
description: "string",
displayName: "string",
metadata: "any",
mode: "string",
parameters: {
string: {
allowedValues: ["any"],
defaultValue: "any",
metadata: {
assignPermissions: false,
description: "string",
displayName: "string",
strongType: "string",
},
schema: "any",
type: "string",
},
},
policyDefinitionVersion: "string",
policyRule: "any",
policyType: "string",
version: "string",
});
type: azure-native:authorization:PolicyDefinitionVersionAtManagementGroup
properties:
description: string
displayName: string
managementGroupName: string
metadata: any
mode: string
parameters:
string:
allowedValues:
- any
defaultValue: any
metadata:
assignPermissions: false
description: string
displayName: string
strongType: string
schema: any
type: string
policyDefinitionName: string
policyDefinitionVersion: string
policyRule: any
policyType: string
version: string
PolicyDefinitionVersionAtManagementGroup 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 PolicyDefinitionVersionAtManagementGroup resource accepts the following input properties:
- Management
Group stringName - The name of the management group. The name is case insensitive.
- Policy
Definition stringName - The name of the policy definition.
- Description string
- The policy definition description.
- Display
Name string - The display name of the policy definition.
- Metadata object
- The policy definition metadata. Metadata is an open ended object and is typically a collection of key value pairs.
- Mode string
- The policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data.
- Parameters
Dictionary<string, Pulumi.
Azure Native. Authorization. Inputs. Parameter Definitions Value Args> - The parameter definitions for parameters used in the policy rule. The keys are the parameter names.
- Policy
Definition stringVersion - The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number
- Policy
Rule object - The policy rule.
- Policy
Type string | Pulumi.Azure Native. Authorization. Policy Type - The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static.
- Version string
- The policy definition version in #.#.# format.
- Management
Group stringName - The name of the management group. The name is case insensitive.
- Policy
Definition stringName - The name of the policy definition.
- Description string
- The policy definition description.
- Display
Name string - The display name of the policy definition.
- Metadata interface{}
- The policy definition metadata. Metadata is an open ended object and is typically a collection of key value pairs.
- Mode string
- The policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data.
- Parameters
map[string]Parameter
Definitions Value Args - The parameter definitions for parameters used in the policy rule. The keys are the parameter names.
- Policy
Definition stringVersion - The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number
- Policy
Rule interface{} - The policy rule.
- Policy
Type string | PolicyType - The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static.
- Version string
- The policy definition version in #.#.# format.
- management
Group StringName - The name of the management group. The name is case insensitive.
- policy
Definition StringName - The name of the policy definition.
- description String
- The policy definition description.
- display
Name String - The display name of the policy definition.
- metadata Object
- The policy definition metadata. Metadata is an open ended object and is typically a collection of key value pairs.
- mode String
- The policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data.
- parameters
Map<String,Parameter
Definitions Value Args> - The parameter definitions for parameters used in the policy rule. The keys are the parameter names.
- policy
Definition StringVersion - The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number
- policy
Rule Object - The policy rule.
- policy
Type String | PolicyType - The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static.
- version String
- The policy definition version in #.#.# format.
- management
Group stringName - The name of the management group. The name is case insensitive.
- policy
Definition stringName - The name of the policy definition.
- description string
- The policy definition description.
- display
Name string - The display name of the policy definition.
- metadata any
- The policy definition metadata. Metadata is an open ended object and is typically a collection of key value pairs.
- mode string
- The policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data.
- parameters
{[key: string]: Parameter
Definitions Value Args} - The parameter definitions for parameters used in the policy rule. The keys are the parameter names.
- policy
Definition stringVersion - The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number
- policy
Rule any - The policy rule.
- policy
Type string | PolicyType - The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static.
- version string
- The policy definition version in #.#.# format.
- management_
group_ strname - The name of the management group. The name is case insensitive.
- policy_
definition_ strname - The name of the policy definition.
- description str
- The policy definition description.
- display_
name str - The display name of the policy definition.
- metadata Any
- The policy definition metadata. Metadata is an open ended object and is typically a collection of key value pairs.
- mode str
- The policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data.
- parameters
Mapping[str, Parameter
Definitions Value Args] - The parameter definitions for parameters used in the policy rule. The keys are the parameter names.
- policy_
definition_ strversion - The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number
- policy_
rule Any - The policy rule.
- policy_
type str | PolicyType - The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static.
- version str
- The policy definition version in #.#.# format.
- management
Group StringName - The name of the management group. The name is case insensitive.
- policy
Definition StringName - The name of the policy definition.
- description String
- The policy definition description.
- display
Name String - The display name of the policy definition.
- metadata Any
- The policy definition metadata. Metadata is an open ended object and is typically a collection of key value pairs.
- mode String
- The policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data.
- parameters Map<Property Map>
- The parameter definitions for parameters used in the policy rule. The keys are the parameter names.
- policy
Definition StringVersion - The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number
- policy
Rule Any - The policy rule.
- policy
Type String | "NotSpecified" | "Built In" | "Custom" | "Static" - The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static.
- version String
- The policy definition version in #.#.# format.
Outputs
All input properties are implicitly available as output properties. Additionally, the PolicyDefinitionVersionAtManagementGroup resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the policy definition version.
- System
Data Pulumi.Azure Native. Authorization. Outputs. System Data Response - The system metadata relating to this resource.
- Type string
- The type of the resource (Microsoft.Authorization/policyDefinitions/versions).
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the policy definition version.
- System
Data SystemData Response - The system metadata relating to this resource.
- Type string
- The type of the resource (Microsoft.Authorization/policyDefinitions/versions).
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the policy definition version.
- system
Data SystemData Response - The system metadata relating to this resource.
- type String
- The type of the resource (Microsoft.Authorization/policyDefinitions/versions).
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the policy definition version.
- system
Data SystemData Response - The system metadata relating to this resource.
- type string
- The type of the resource (Microsoft.Authorization/policyDefinitions/versions).
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the policy definition version.
- system_
data SystemData Response - The system metadata relating to this resource.
- type str
- The type of the resource (Microsoft.Authorization/policyDefinitions/versions).
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the policy definition version.
- system
Data Property Map - The system metadata relating to this resource.
- type String
- The type of the resource (Microsoft.Authorization/policyDefinitions/versions).
Supporting Types
ParameterDefinitionsValue, ParameterDefinitionsValueArgs
- Allowed
Values List<object> - The allowed values for the parameter.
- Default
Value object - The default value for the parameter if no value is provided.
- Metadata
Pulumi.
Azure Native. Authorization. Inputs. Parameter Definitions Value Metadata - General metadata for the parameter.
- Schema object
- Provides validation of parameter inputs during assignment using a self-defined JSON schema. This property is only supported for object-type parameters and follows the Json.NET Schema 2019-09 implementation. You can learn more about using schemas at https://json-schema.org/ and test draft schemas at https://www.jsonschemavalidator.net/.
- Type
string | Pulumi.
Azure Native. Authorization. Parameter Type - The data type of the parameter.
- Allowed
Values []interface{} - The allowed values for the parameter.
- Default
Value interface{} - The default value for the parameter if no value is provided.
- Metadata
Parameter
Definitions Value Metadata - General metadata for the parameter.
- Schema interface{}
- Provides validation of parameter inputs during assignment using a self-defined JSON schema. This property is only supported for object-type parameters and follows the Json.NET Schema 2019-09 implementation. You can learn more about using schemas at https://json-schema.org/ and test draft schemas at https://www.jsonschemavalidator.net/.
- Type
string | Parameter
Type - The data type of the parameter.
- allowed
Values List<Object> - The allowed values for the parameter.
- default
Value Object - The default value for the parameter if no value is provided.
- metadata
Parameter
Definitions Value Metadata - General metadata for the parameter.
- schema Object
- Provides validation of parameter inputs during assignment using a self-defined JSON schema. This property is only supported for object-type parameters and follows the Json.NET Schema 2019-09 implementation. You can learn more about using schemas at https://json-schema.org/ and test draft schemas at https://www.jsonschemavalidator.net/.
- type
String | Parameter
Type - The data type of the parameter.
- allowed
Values any[] - The allowed values for the parameter.
- default
Value any - The default value for the parameter if no value is provided.
- metadata
Parameter
Definitions Value Metadata - General metadata for the parameter.
- schema any
- Provides validation of parameter inputs during assignment using a self-defined JSON schema. This property is only supported for object-type parameters and follows the Json.NET Schema 2019-09 implementation. You can learn more about using schemas at https://json-schema.org/ and test draft schemas at https://www.jsonschemavalidator.net/.
- type
string | Parameter
Type - The data type of the parameter.
- allowed_
values Sequence[Any] - The allowed values for the parameter.
- default_
value Any - The default value for the parameter if no value is provided.
- metadata
Parameter
Definitions Value Metadata - General metadata for the parameter.
- schema Any
- Provides validation of parameter inputs during assignment using a self-defined JSON schema. This property is only supported for object-type parameters and follows the Json.NET Schema 2019-09 implementation. You can learn more about using schemas at https://json-schema.org/ and test draft schemas at https://www.jsonschemavalidator.net/.
- type
str | Parameter
Type - The data type of the parameter.
- allowed
Values List<Any> - The allowed values for the parameter.
- default
Value Any - The default value for the parameter if no value is provided.
- metadata Property Map
- General metadata for the parameter.
- schema Any
- Provides validation of parameter inputs during assignment using a self-defined JSON schema. This property is only supported for object-type parameters and follows the Json.NET Schema 2019-09 implementation. You can learn more about using schemas at https://json-schema.org/ and test draft schemas at https://www.jsonschemavalidator.net/.
- type
String | "String" | "Array" | "Object" | "Boolean" | "Integer" | "Float" | "Date
Time" - The data type of the parameter.
ParameterDefinitionsValueMetadata, ParameterDefinitionsValueMetadataArgs
- Assign
Permissions bool - Set to true to have Azure portal create role assignments on the resource ID or resource scope value of this parameter during policy assignment. This property is useful in case you wish to assign permissions outside the assignment scope.
- Description string
- The description of the parameter.
- Display
Name string - The display name for the parameter.
- Strong
Type string - Used when assigning the policy definition through the portal. Provides a context aware list of values for the user to choose from.
- Assign
Permissions bool - Set to true to have Azure portal create role assignments on the resource ID or resource scope value of this parameter during policy assignment. This property is useful in case you wish to assign permissions outside the assignment scope.
- Description string
- The description of the parameter.
- Display
Name string - The display name for the parameter.
- Strong
Type string - Used when assigning the policy definition through the portal. Provides a context aware list of values for the user to choose from.
- assign
Permissions Boolean - Set to true to have Azure portal create role assignments on the resource ID or resource scope value of this parameter during policy assignment. This property is useful in case you wish to assign permissions outside the assignment scope.
- description String
- The description of the parameter.
- display
Name String - The display name for the parameter.
- strong
Type String - Used when assigning the policy definition through the portal. Provides a context aware list of values for the user to choose from.
- assign
Permissions boolean - Set to true to have Azure portal create role assignments on the resource ID or resource scope value of this parameter during policy assignment. This property is useful in case you wish to assign permissions outside the assignment scope.
- description string
- The description of the parameter.
- display
Name string - The display name for the parameter.
- strong
Type string - Used when assigning the policy definition through the portal. Provides a context aware list of values for the user to choose from.
- assign_
permissions bool - Set to true to have Azure portal create role assignments on the resource ID or resource scope value of this parameter during policy assignment. This property is useful in case you wish to assign permissions outside the assignment scope.
- description str
- The description of the parameter.
- display_
name str - The display name for the parameter.
- strong_
type str - Used when assigning the policy definition through the portal. Provides a context aware list of values for the user to choose from.
- assign
Permissions Boolean - Set to true to have Azure portal create role assignments on the resource ID or resource scope value of this parameter during policy assignment. This property is useful in case you wish to assign permissions outside the assignment scope.
- description String
- The description of the parameter.
- display
Name String - The display name for the parameter.
- strong
Type String - Used when assigning the policy definition through the portal. Provides a context aware list of values for the user to choose from.
ParameterDefinitionsValueResponse, ParameterDefinitionsValueResponseArgs
- Allowed
Values List<object> - The allowed values for the parameter.
- Default
Value object - The default value for the parameter if no value is provided.
- Metadata
Pulumi.
Azure Native. Authorization. Inputs. Parameter Definitions Value Response Metadata - General metadata for the parameter.
- Schema object
- Provides validation of parameter inputs during assignment using a self-defined JSON schema. This property is only supported for object-type parameters and follows the Json.NET Schema 2019-09 implementation. You can learn more about using schemas at https://json-schema.org/ and test draft schemas at https://www.jsonschemavalidator.net/.
- Type string
- The data type of the parameter.
- Allowed
Values []interface{} - The allowed values for the parameter.
- Default
Value interface{} - The default value for the parameter if no value is provided.
- Metadata
Parameter
Definitions Value Response Metadata - General metadata for the parameter.
- Schema interface{}
- Provides validation of parameter inputs during assignment using a self-defined JSON schema. This property is only supported for object-type parameters and follows the Json.NET Schema 2019-09 implementation. You can learn more about using schemas at https://json-schema.org/ and test draft schemas at https://www.jsonschemavalidator.net/.
- Type string
- The data type of the parameter.
- allowed
Values List<Object> - The allowed values for the parameter.
- default
Value Object - The default value for the parameter if no value is provided.
- metadata
Parameter
Definitions Value Response Metadata - General metadata for the parameter.
- schema Object
- Provides validation of parameter inputs during assignment using a self-defined JSON schema. This property is only supported for object-type parameters and follows the Json.NET Schema 2019-09 implementation. You can learn more about using schemas at https://json-schema.org/ and test draft schemas at https://www.jsonschemavalidator.net/.
- type String
- The data type of the parameter.
- allowed
Values any[] - The allowed values for the parameter.
- default
Value any - The default value for the parameter if no value is provided.
- metadata
Parameter
Definitions Value Response Metadata - General metadata for the parameter.
- schema any
- Provides validation of parameter inputs during assignment using a self-defined JSON schema. This property is only supported for object-type parameters and follows the Json.NET Schema 2019-09 implementation. You can learn more about using schemas at https://json-schema.org/ and test draft schemas at https://www.jsonschemavalidator.net/.
- type string
- The data type of the parameter.
- allowed_
values Sequence[Any] - The allowed values for the parameter.
- default_
value Any - The default value for the parameter if no value is provided.
- metadata
Parameter
Definitions Value Response Metadata - General metadata for the parameter.
- schema Any
- Provides validation of parameter inputs during assignment using a self-defined JSON schema. This property is only supported for object-type parameters and follows the Json.NET Schema 2019-09 implementation. You can learn more about using schemas at https://json-schema.org/ and test draft schemas at https://www.jsonschemavalidator.net/.
- type str
- The data type of the parameter.
- allowed
Values List<Any> - The allowed values for the parameter.
- default
Value Any - The default value for the parameter if no value is provided.
- metadata Property Map
- General metadata for the parameter.
- schema Any
- Provides validation of parameter inputs during assignment using a self-defined JSON schema. This property is only supported for object-type parameters and follows the Json.NET Schema 2019-09 implementation. You can learn more about using schemas at https://json-schema.org/ and test draft schemas at https://www.jsonschemavalidator.net/.
- type String
- The data type of the parameter.
ParameterDefinitionsValueResponseMetadata, ParameterDefinitionsValueResponseMetadataArgs
- Assign
Permissions bool - Set to true to have Azure portal create role assignments on the resource ID or resource scope value of this parameter during policy assignment. This property is useful in case you wish to assign permissions outside the assignment scope.
- Description string
- The description of the parameter.
- Display
Name string - The display name for the parameter.
- Strong
Type string - Used when assigning the policy definition through the portal. Provides a context aware list of values for the user to choose from.
- Assign
Permissions bool - Set to true to have Azure portal create role assignments on the resource ID or resource scope value of this parameter during policy assignment. This property is useful in case you wish to assign permissions outside the assignment scope.
- Description string
- The description of the parameter.
- Display
Name string - The display name for the parameter.
- Strong
Type string - Used when assigning the policy definition through the portal. Provides a context aware list of values for the user to choose from.
- assign
Permissions Boolean - Set to true to have Azure portal create role assignments on the resource ID or resource scope value of this parameter during policy assignment. This property is useful in case you wish to assign permissions outside the assignment scope.
- description String
- The description of the parameter.
- display
Name String - The display name for the parameter.
- strong
Type String - Used when assigning the policy definition through the portal. Provides a context aware list of values for the user to choose from.
- assign
Permissions boolean - Set to true to have Azure portal create role assignments on the resource ID or resource scope value of this parameter during policy assignment. This property is useful in case you wish to assign permissions outside the assignment scope.
- description string
- The description of the parameter.
- display
Name string - The display name for the parameter.
- strong
Type string - Used when assigning the policy definition through the portal. Provides a context aware list of values for the user to choose from.
- assign_
permissions bool - Set to true to have Azure portal create role assignments on the resource ID or resource scope value of this parameter during policy assignment. This property is useful in case you wish to assign permissions outside the assignment scope.
- description str
- The description of the parameter.
- display_
name str - The display name for the parameter.
- strong_
type str - Used when assigning the policy definition through the portal. Provides a context aware list of values for the user to choose from.
- assign
Permissions Boolean - Set to true to have Azure portal create role assignments on the resource ID or resource scope value of this parameter during policy assignment. This property is useful in case you wish to assign permissions outside the assignment scope.
- description String
- The description of the parameter.
- display
Name String - The display name for the parameter.
- strong
Type String - Used when assigning the policy definition through the portal. Provides a context aware list of values for the user to choose from.
ParameterType, ParameterTypeArgs
- String
- String
- Array
- Array
- Object
- Object
- Boolean
- Boolean
- Integer
- Integer
- Float
- Float
- Date
Time - DateTime
- Parameter
Type String - String
- Parameter
Type Array - Array
- Parameter
Type Object - Object
- Parameter
Type Boolean - Boolean
- Parameter
Type Integer - Integer
- Parameter
Type Float - Float
- Parameter
Type Date Time - DateTime
- String
- String
- Array
- Array
- Object
- Object
- Boolean
- Boolean
- Integer
- Integer
- Float
- Float
- Date
Time - DateTime
- String
- String
- Array
- Array
- Object
- Object
- Boolean
- Boolean
- Integer
- Integer
- Float
- Float
- Date
Time - DateTime
- STRING
- String
- ARRAY
- Array
- OBJECT
- Object
- BOOLEAN
- Boolean
- INTEGER
- Integer
- FLOAT
- Float
- DATE_TIME
- DateTime
- "String"
- String
- "Array"
- Array
- "Object"
- Object
- "Boolean"
- Boolean
- "Integer"
- Integer
- "Float"
- Float
- "Date
Time" - DateTime
PolicyType, PolicyTypeArgs
- Not
Specified - NotSpecified
- Built
In - BuiltIn
- Custom
- Custom
- Static
- Static
- Policy
Type Not Specified - NotSpecified
- Policy
Type Built In - BuiltIn
- Policy
Type Custom - Custom
- Policy
Type Static - Static
- Not
Specified - NotSpecified
- Built
In - BuiltIn
- Custom
- Custom
- Static
- Static
- Not
Specified - NotSpecified
- Built
In - BuiltIn
- Custom
- Custom
- Static
- Static
- NOT_SPECIFIED
- NotSpecified
- BUILT_IN
- BuiltIn
- CUSTOM
- Custom
- STATIC
- Static
- "Not
Specified" - NotSpecified
- "Built
In" - BuiltIn
- "Custom"
- Custom
- "Static"
- Static
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.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:authorization:PolicyDefinitionVersionAtManagementGroup 1.2.1 /providers/Microsoft.Management/managementGroups/{managementGroupName}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/versions/{policyDefinitionVersion}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0