1. Packages
  2. Azure Native
  3. API Docs
  4. network
  5. SecurityUserConfiguration
Azure Native v1.103.0 published on Friday, Jun 2, 2023 by Pulumi

azure-native.network.SecurityUserConfiguration

Explore with Pulumi AI

azure-native logo
Azure Native v1.103.0 published on Friday, Jun 2, 2023 by Pulumi

    Defines the security configuration API Version: 2021-02-01-preview.

    Example Usage

    Create network manager security user configuration

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var securityUserConfiguration = new AzureNative.Network.SecurityUserConfiguration("securityUserConfiguration", new()
        {
            ConfigurationName = "myTestSecurityConfig",
            DeleteExistingNSGs = "True",
            Description = "A sample policy",
            NetworkManagerName = "testNetworkManager",
            ResourceGroupName = "rg1",
            SecurityType = "UserPolicy",
        });
    
    });
    
    package main
    
    import (
    	network "github.com/pulumi/pulumi-azure-native-sdk/network"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := network.NewSecurityUserConfiguration(ctx, "securityUserConfiguration", &network.SecurityUserConfigurationArgs{
    			ConfigurationName:  pulumi.String("myTestSecurityConfig"),
    			DeleteExistingNSGs: pulumi.String("True"),
    			Description:        pulumi.String("A sample policy"),
    			NetworkManagerName: pulumi.String("testNetworkManager"),
    			ResourceGroupName:  pulumi.String("rg1"),
    			SecurityType:       pulumi.String("UserPolicy"),
    		})
    		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.network.SecurityUserConfiguration;
    import com.pulumi.azurenative.network.SecurityUserConfigurationArgs;
    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 securityUserConfiguration = new SecurityUserConfiguration("securityUserConfiguration", SecurityUserConfigurationArgs.builder()        
                .configurationName("myTestSecurityConfig")
                .deleteExistingNSGs("True")
                .description("A sample policy")
                .networkManagerName("testNetworkManager")
                .resourceGroupName("rg1")
                .securityType("UserPolicy")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    security_user_configuration = azure_native.network.SecurityUserConfiguration("securityUserConfiguration",
        configuration_name="myTestSecurityConfig",
        delete_existing_nsgs="True",
        description="A sample policy",
        network_manager_name="testNetworkManager",
        resource_group_name="rg1",
        security_type="UserPolicy")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const securityUserConfiguration = new azure_native.network.SecurityUserConfiguration("securityUserConfiguration", {
        configurationName: "myTestSecurityConfig",
        deleteExistingNSGs: "True",
        description: "A sample policy",
        networkManagerName: "testNetworkManager",
        resourceGroupName: "rg1",
        securityType: "UserPolicy",
    });
    
    resources:
      securityUserConfiguration:
        type: azure-native:network:SecurityUserConfiguration
        properties:
          configurationName: myTestSecurityConfig
          deleteExistingNSGs: True
          description: A sample policy
          networkManagerName: testNetworkManager
          resourceGroupName: rg1
          securityType: UserPolicy
    

    Create SecurityUserConfiguration Resource

    new SecurityUserConfiguration(name: string, args: SecurityUserConfigurationArgs, opts?: CustomResourceOptions);
    @overload
    def SecurityUserConfiguration(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  configuration_name: Optional[str] = None,
                                  delete_existing_nsgs: Optional[Union[str, DeleteExistingNSGs]] = None,
                                  description: Optional[str] = None,
                                  display_name: Optional[str] = None,
                                  network_manager_name: Optional[str] = None,
                                  resource_group_name: Optional[str] = None,
                                  security_type: Optional[Union[str, SecurityType]] = None)
    @overload
    def SecurityUserConfiguration(resource_name: str,
                                  args: SecurityUserConfigurationArgs,
                                  opts: Optional[ResourceOptions] = None)
    func NewSecurityUserConfiguration(ctx *Context, name string, args SecurityUserConfigurationArgs, opts ...ResourceOption) (*SecurityUserConfiguration, error)
    public SecurityUserConfiguration(string name, SecurityUserConfigurationArgs args, CustomResourceOptions? opts = null)
    public SecurityUserConfiguration(String name, SecurityUserConfigurationArgs args)
    public SecurityUserConfiguration(String name, SecurityUserConfigurationArgs args, CustomResourceOptions options)
    
    type: azure-native:network:SecurityUserConfiguration
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args SecurityUserConfigurationArgs
    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 SecurityUserConfigurationArgs
    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 SecurityUserConfigurationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SecurityUserConfigurationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SecurityUserConfigurationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    SecurityUserConfiguration 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 SecurityUserConfiguration resource accepts the following input properties:

    NetworkManagerName string

    The name of the network manager.

    ResourceGroupName string

    The name of the resource group.

    ConfigurationName string

    The name of the network manager security Configuration.

    DeleteExistingNSGs string | Pulumi.AzureNative.Network.DeleteExistingNSGs

    Flag if need to delete existing network security groups.

    Description string

    A description of the security configuration.

    DisplayName string

    A display name of the security configuration.

    SecurityType string | Pulumi.AzureNative.Network.SecurityType

    Security Type.

    NetworkManagerName string

    The name of the network manager.

    ResourceGroupName string

    The name of the resource group.

    ConfigurationName string

    The name of the network manager security Configuration.

    DeleteExistingNSGs string | DeleteExistingNSGs

    Flag if need to delete existing network security groups.

    Description string

    A description of the security configuration.

    DisplayName string

    A display name of the security configuration.

    SecurityType string | SecurityType

    Security Type.

    networkManagerName String

    The name of the network manager.

    resourceGroupName String

    The name of the resource group.

    configurationName String

    The name of the network manager security Configuration.

    deleteExistingNSGs String | DeleteExistingNSGs

    Flag if need to delete existing network security groups.

    description String

    A description of the security configuration.

    displayName String

    A display name of the security configuration.

    securityType String | SecurityType

    Security Type.

    networkManagerName string

    The name of the network manager.

    resourceGroupName string

    The name of the resource group.

    configurationName string

    The name of the network manager security Configuration.

    deleteExistingNSGs string | DeleteExistingNSGs

    Flag if need to delete existing network security groups.

    description string

    A description of the security configuration.

    displayName string

    A display name of the security configuration.

    securityType string | SecurityType

    Security Type.

    network_manager_name str

    The name of the network manager.

    resource_group_name str

    The name of the resource group.

    configuration_name str

    The name of the network manager security Configuration.

    delete_existing_nsgs str | DeleteExistingNSGs

    Flag if need to delete existing network security groups.

    description str

    A description of the security configuration.

    display_name str

    A display name of the security configuration.

    security_type str | SecurityType

    Security Type.

    networkManagerName String

    The name of the network manager.

    resourceGroupName String

    The name of the resource group.

    configurationName String

    The name of the network manager security Configuration.

    deleteExistingNSGs String | "False" | "True"

    Flag if need to delete existing network security groups.

    description String

    A description of the security configuration.

    displayName String

    A display name of the security configuration.

    securityType String | "AdminPolicy" | "UserPolicy"

    Security Type.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SecurityUserConfiguration resource produces the following output properties:

    Etag string

    A unique read-only string that changes whenever the resource is updated.

    Id string

    The provider-assigned unique ID for this managed resource.

    Name string

    Resource name.

    ProvisioningState string

    The provisioning state of the resource.

    SystemData Pulumi.AzureNative.Network.Outputs.SystemDataResponse

    The system metadata related to this resource.

    Type string

    Resource type.

    Etag string

    A unique read-only string that changes whenever the resource is updated.

    Id string

    The provider-assigned unique ID for this managed resource.

    Name string

    Resource name.

    ProvisioningState string

    The provisioning state of the resource.

    SystemData SystemDataResponse

    The system metadata related to this resource.

    Type string

    Resource type.

    etag String

    A unique read-only string that changes whenever the resource is updated.

    id String

    The provider-assigned unique ID for this managed resource.

    name String

    Resource name.

    provisioningState String

    The provisioning state of the resource.

    systemData SystemDataResponse

    The system metadata related to this resource.

    type String

    Resource type.

    etag string

    A unique read-only string that changes whenever the resource is updated.

    id string

    The provider-assigned unique ID for this managed resource.

    name string

    Resource name.

    provisioningState string

    The provisioning state of the resource.

    systemData SystemDataResponse

    The system metadata related to this resource.

    type string

    Resource type.

    etag str

    A unique read-only string that changes whenever the resource is updated.

    id str

    The provider-assigned unique ID for this managed resource.

    name str

    Resource name.

    provisioning_state str

    The provisioning state of the resource.

    system_data SystemDataResponse

    The system metadata related to this resource.

    type str

    Resource type.

    etag String

    A unique read-only string that changes whenever the resource is updated.

    id String

    The provider-assigned unique ID for this managed resource.

    name String

    Resource name.

    provisioningState String

    The provisioning state of the resource.

    systemData Property Map

    The system metadata related to this resource.

    type String

    Resource type.

    Supporting Types

    DeleteExistingNSGs

    False
    False
    True
    True
    DeleteExistingNSGsFalse
    False
    DeleteExistingNSGsTrue
    True
    False
    False
    True
    True
    False
    False
    True
    True
    FALSE
    False
    TRUE
    True
    "False"
    False
    "True"
    True

    SecurityType

    AdminPolicy
    AdminPolicy
    UserPolicy
    UserPolicy
    SecurityTypeAdminPolicy
    AdminPolicy
    SecurityTypeUserPolicy
    UserPolicy
    AdminPolicy
    AdminPolicy
    UserPolicy
    UserPolicy
    AdminPolicy
    AdminPolicy
    UserPolicy
    UserPolicy
    ADMIN_POLICY
    AdminPolicy
    USER_POLICY
    UserPolicy
    "AdminPolicy"
    AdminPolicy
    "UserPolicy"
    UserPolicy

    SystemDataResponse

    CreatedAt string

    The timestamp of resource creation (UTC).

    CreatedBy string

    The identity that created the resource.

    CreatedByType string

    The type of identity that created the resource.

    LastModifiedAt string

    The type of identity that last modified the resource.

    LastModifiedBy string

    The identity that last modified the resource.

    LastModifiedByType string

    The type of identity that last modified the resource.

    CreatedAt string

    The timestamp of resource creation (UTC).

    CreatedBy string

    The identity that created the resource.

    CreatedByType string

    The type of identity that created the resource.

    LastModifiedAt string

    The type of identity that last modified the resource.

    LastModifiedBy string

    The identity that last modified the resource.

    LastModifiedByType string

    The type of identity that last modified the resource.

    createdAt String

    The timestamp of resource creation (UTC).

    createdBy String

    The identity that created the resource.

    createdByType String

    The type of identity that created the resource.

    lastModifiedAt String

    The type of identity that last modified the resource.

    lastModifiedBy String

    The identity that last modified the resource.

    lastModifiedByType String

    The type of identity that last modified the resource.

    createdAt string

    The timestamp of resource creation (UTC).

    createdBy string

    The identity that created the resource.

    createdByType string

    The type of identity that created the resource.

    lastModifiedAt string

    The type of identity that last modified the resource.

    lastModifiedBy string

    The identity that last modified the resource.

    lastModifiedByType string

    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_type str

    The type of identity that created the resource.

    last_modified_at str

    The type of identity that last modified the resource.

    last_modified_by str

    The identity that last modified the resource.

    last_modified_by_type str

    The type of identity that last modified the resource.

    createdAt String

    The timestamp of resource creation (UTC).

    createdBy String

    The identity that created the resource.

    createdByType String

    The type of identity that created the resource.

    lastModifiedAt String

    The type of identity that last modified the resource.

    lastModifiedBy String

    The identity that last modified the resource.

    lastModifiedByType String

    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:network:SecurityUserConfiguration myTestSecurityConfig /subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManager/testNetworkManager/securityConfigurations/myTestSecurityConfig 
    

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    Azure Native v1.103.0 published on Friday, Jun 2, 2023 by Pulumi