import * as pulumi from "@pulumi/pulumi"; /** * Manages a Network Manager Admin Rule Collection. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const current = azure.core.getSubscription({}); * const exampleNetworkManager = new azure.network.NetworkManager("example", { * name: "example-network-manager", * location: example.location, * resourceGroupName: example.name, * scope: { * subscriptionIds: [current.then(current => current.id)], * }, * scopeAccesses: [ * "Connectivity", * "SecurityAdmin", * ], * description: "example network manager", * }); * const exampleNetworkManagerNetworkGroup = new azure.network.NetworkManagerNetworkGroup("example", { * name: "example-network-group", * networkManagerId: exampleNetworkManager.id, * }); * const exampleNetworkManagerSecurityAdminConfiguration = new azure.network.NetworkManagerSecurityAdminConfiguration("example", { * name: "example-admin-conf", * networkManagerId: exampleNetworkManager.id, * }); * const exampleNetworkManagerAdminRuleCollection = new azure.network.NetworkManagerAdminRuleCollection("example", { * name: "example-admin-rule-collection", * securityAdminConfigurationId: exampleNetworkManagerSecurityAdminConfiguration.id, * networkGroupIds: [exampleNetworkManagerNetworkGroup.id], * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Network` - 2025-01-01 * * ## Import * * Network Manager Admin Rule Collection can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:network/networkManagerAdminRuleCollection:NetworkManagerAdminRuleCollection example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Network/networkManagers/networkManager1/securityAdminConfigurations/configuration1/ruleCollections/ruleCollection1 * ``` */ export declare class NetworkManagerAdminRuleCollection extends pulumi.CustomResource { /** * Get an existing NetworkManagerAdminRuleCollection resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: NetworkManagerAdminRuleCollectionState, opts?: pulumi.CustomResourceOptions): NetworkManagerAdminRuleCollection; /** * Returns true if the given object is an instance of NetworkManagerAdminRuleCollection. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is NetworkManagerAdminRuleCollection; /** * A description of the Network Manager Admin Rule Collection. */ readonly description: pulumi.Output; /** * Specifies the name which should be used for this Network Manager Admin Rule Collection. Changing this forces a new Network Manager Admin Rule Collection to be created. */ readonly name: pulumi.Output; /** * A list of Network Group ID which this Network Manager Admin Rule Collection applies to. */ readonly networkGroupIds: pulumi.Output; /** * Specifies the ID of the Network Manager Security Admin Configuration. Changing this forces a new Network Manager Admin Rule Collection to be created. */ readonly securityAdminConfigurationId: pulumi.Output; /** * Create a NetworkManagerAdminRuleCollection resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: NetworkManagerAdminRuleCollectionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering NetworkManagerAdminRuleCollection resources. */ export interface NetworkManagerAdminRuleCollectionState { /** * A description of the Network Manager Admin Rule Collection. */ description?: pulumi.Input; /** * Specifies the name which should be used for this Network Manager Admin Rule Collection. Changing this forces a new Network Manager Admin Rule Collection to be created. */ name?: pulumi.Input; /** * A list of Network Group ID which this Network Manager Admin Rule Collection applies to. */ networkGroupIds?: pulumi.Input[]>; /** * Specifies the ID of the Network Manager Security Admin Configuration. Changing this forces a new Network Manager Admin Rule Collection to be created. */ securityAdminConfigurationId?: pulumi.Input; } /** * The set of arguments for constructing a NetworkManagerAdminRuleCollection resource. */ export interface NetworkManagerAdminRuleCollectionArgs { /** * A description of the Network Manager Admin Rule Collection. */ description?: pulumi.Input; /** * Specifies the name which should be used for this Network Manager Admin Rule Collection. Changing this forces a new Network Manager Admin Rule Collection to be created. */ name?: pulumi.Input; /** * A list of Network Group ID which this Network Manager Admin Rule Collection applies to. */ networkGroupIds: pulumi.Input[]>; /** * Specifies the ID of the Network Manager Security Admin Configuration. Changing this forces a new Network Manager Admin Rule Collection to be created. */ securityAdminConfigurationId: pulumi.Input; }