1. Packages
  2. Azure Native
  3. API Docs
  4. security
  5. CustomEntityStoreAssignment
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.37.0 published on Monday, Apr 15, 2024 by Pulumi

azure-native.security.CustomEntityStoreAssignment

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.37.0 published on Monday, Apr 15, 2024 by Pulumi

    Custom entity store assignment Azure REST API version: 2021-07-01-preview. Prior API version in Azure Native 1.x: 2021-07-01-preview.

    Example Usage

    Create a custom entity store assignment

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var customEntityStoreAssignment = new AzureNative.Security.CustomEntityStoreAssignment("customEntityStoreAssignment", new()
        {
            CustomEntityStoreAssignmentName = "33e7cc6e-a139-4723-a0e5-76993aee0771",
            Principal = "aaduser=f3923a3e-ad57-4752-b1a9-fbf3c8e5e082;72f988bf-86f1-41af-91ab-2d7cd011db47",
            ResourceGroupName = "TestResourceGroup",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/security/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := security.NewCustomEntityStoreAssignment(ctx, "customEntityStoreAssignment", &security.CustomEntityStoreAssignmentArgs{
    			CustomEntityStoreAssignmentName: pulumi.String("33e7cc6e-a139-4723-a0e5-76993aee0771"),
    			Principal:                       pulumi.String("aaduser=f3923a3e-ad57-4752-b1a9-fbf3c8e5e082;72f988bf-86f1-41af-91ab-2d7cd011db47"),
    			ResourceGroupName:               pulumi.String("TestResourceGroup"),
    		})
    		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.security.CustomEntityStoreAssignment;
    import com.pulumi.azurenative.security.CustomEntityStoreAssignmentArgs;
    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 customEntityStoreAssignment = new CustomEntityStoreAssignment("customEntityStoreAssignment", CustomEntityStoreAssignmentArgs.builder()        
                .customEntityStoreAssignmentName("33e7cc6e-a139-4723-a0e5-76993aee0771")
                .principal("aaduser=f3923a3e-ad57-4752-b1a9-fbf3c8e5e082;72f988bf-86f1-41af-91ab-2d7cd011db47")
                .resourceGroupName("TestResourceGroup")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    custom_entity_store_assignment = azure_native.security.CustomEntityStoreAssignment("customEntityStoreAssignment",
        custom_entity_store_assignment_name="33e7cc6e-a139-4723-a0e5-76993aee0771",
        principal="aaduser=f3923a3e-ad57-4752-b1a9-fbf3c8e5e082;72f988bf-86f1-41af-91ab-2d7cd011db47",
        resource_group_name="TestResourceGroup")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const customEntityStoreAssignment = new azure_native.security.CustomEntityStoreAssignment("customEntityStoreAssignment", {
        customEntityStoreAssignmentName: "33e7cc6e-a139-4723-a0e5-76993aee0771",
        principal: "aaduser=f3923a3e-ad57-4752-b1a9-fbf3c8e5e082;72f988bf-86f1-41af-91ab-2d7cd011db47",
        resourceGroupName: "TestResourceGroup",
    });
    
    resources:
      customEntityStoreAssignment:
        type: azure-native:security:CustomEntityStoreAssignment
        properties:
          customEntityStoreAssignmentName: 33e7cc6e-a139-4723-a0e5-76993aee0771
          principal: aaduser=f3923a3e-ad57-4752-b1a9-fbf3c8e5e082;72f988bf-86f1-41af-91ab-2d7cd011db47
          resourceGroupName: TestResourceGroup
    

    Create CustomEntityStoreAssignment Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CustomEntityStoreAssignment(name: string, args: CustomEntityStoreAssignmentArgs, opts?: CustomResourceOptions);
    @overload
    def CustomEntityStoreAssignment(resource_name: str,
                                    args: CustomEntityStoreAssignmentArgs,
                                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def CustomEntityStoreAssignment(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    resource_group_name: Optional[str] = None,
                                    custom_entity_store_assignment_name: Optional[str] = None,
                                    principal: Optional[str] = None)
    func NewCustomEntityStoreAssignment(ctx *Context, name string, args CustomEntityStoreAssignmentArgs, opts ...ResourceOption) (*CustomEntityStoreAssignment, error)
    public CustomEntityStoreAssignment(string name, CustomEntityStoreAssignmentArgs args, CustomResourceOptions? opts = null)
    public CustomEntityStoreAssignment(String name, CustomEntityStoreAssignmentArgs args)
    public CustomEntityStoreAssignment(String name, CustomEntityStoreAssignmentArgs args, CustomResourceOptions options)
    
    type: azure-native:security:CustomEntityStoreAssignment
    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 CustomEntityStoreAssignmentArgs
    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 CustomEntityStoreAssignmentArgs
    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 CustomEntityStoreAssignmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CustomEntityStoreAssignmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CustomEntityStoreAssignmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var customEntityStoreAssignmentResource = new AzureNative.Security.CustomEntityStoreAssignment("customEntityStoreAssignmentResource", new()
    {
        ResourceGroupName = "string",
        CustomEntityStoreAssignmentName = "string",
        Principal = "string",
    });
    
    example, err := security.NewCustomEntityStoreAssignment(ctx, "customEntityStoreAssignmentResource", &security.CustomEntityStoreAssignmentArgs{
    ResourceGroupName: pulumi.String("string"),
    CustomEntityStoreAssignmentName: pulumi.String("string"),
    Principal: pulumi.String("string"),
    })
    
    var customEntityStoreAssignmentResource = new CustomEntityStoreAssignment("customEntityStoreAssignmentResource", CustomEntityStoreAssignmentArgs.builder()        
        .resourceGroupName("string")
        .customEntityStoreAssignmentName("string")
        .principal("string")
        .build());
    
    custom_entity_store_assignment_resource = azure_native.security.CustomEntityStoreAssignment("customEntityStoreAssignmentResource",
        resource_group_name="string",
        custom_entity_store_assignment_name="string",
        principal="string")
    
    const customEntityStoreAssignmentResource = new azure_native.security.CustomEntityStoreAssignment("customEntityStoreAssignmentResource", {
        resourceGroupName: "string",
        customEntityStoreAssignmentName: "string",
        principal: "string",
    });
    
    type: azure-native:security:CustomEntityStoreAssignment
    properties:
        customEntityStoreAssignmentName: string
        principal: string
        resourceGroupName: string
    

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

    ResourceGroupName string
    The name of the resource group within the user's subscription. The name is case insensitive.
    CustomEntityStoreAssignmentName string
    Name of the custom entity store assignment. Generated name is GUID.
    Principal string
    The principal assigned with entity store. If not provided, will use caller principal. Format of principal is: [AAD type]=[PrincipalObjectId];[TenantId]
    ResourceGroupName string
    The name of the resource group within the user's subscription. The name is case insensitive.
    CustomEntityStoreAssignmentName string
    Name of the custom entity store assignment. Generated name is GUID.
    Principal string
    The principal assigned with entity store. If not provided, will use caller principal. Format of principal is: [AAD type]=[PrincipalObjectId];[TenantId]
    resourceGroupName String
    The name of the resource group within the user's subscription. The name is case insensitive.
    customEntityStoreAssignmentName String
    Name of the custom entity store assignment. Generated name is GUID.
    principal String
    The principal assigned with entity store. If not provided, will use caller principal. Format of principal is: [AAD type]=[PrincipalObjectId];[TenantId]
    resourceGroupName string
    The name of the resource group within the user's subscription. The name is case insensitive.
    customEntityStoreAssignmentName string
    Name of the custom entity store assignment. Generated name is GUID.
    principal string
    The principal assigned with entity store. If not provided, will use caller principal. Format of principal is: [AAD type]=[PrincipalObjectId];[TenantId]
    resource_group_name str
    The name of the resource group within the user's subscription. The name is case insensitive.
    custom_entity_store_assignment_name str
    Name of the custom entity store assignment. Generated name is GUID.
    principal str
    The principal assigned with entity store. If not provided, will use caller principal. Format of principal is: [AAD type]=[PrincipalObjectId];[TenantId]
    resourceGroupName String
    The name of the resource group within the user's subscription. The name is case insensitive.
    customEntityStoreAssignmentName String
    Name of the custom entity store assignment. Generated name is GUID.
    principal String
    The principal assigned with entity store. If not provided, will use caller principal. Format of principal is: [AAD type]=[PrincipalObjectId];[TenantId]

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name
    SystemData Pulumi.AzureNative.Security.Outputs.SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    Resource type
    EntityStoreDatabaseLink string
    The link to entity store database.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name
    SystemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    Resource type
    EntityStoreDatabaseLink string
    The link to entity store database.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    Resource type
    entityStoreDatabaseLink String
    The link to entity store database.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Resource name
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    Resource type
    entityStoreDatabaseLink string
    The link to entity store database.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Resource name
    system_data SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type str
    Resource type
    entity_store_database_link str
    The link to entity store database.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name
    systemData Property Map
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    Resource type
    entityStoreDatabaseLink String
    The link to entity store database.

    Supporting Types

    SystemDataResponse, SystemDataResponseArgs

    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 timestamp of resource last modification (UTC)
    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 timestamp of resource last modification (UTC)
    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 timestamp of resource last modification (UTC)
    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 timestamp of resource last modification (UTC)
    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 timestamp of resource last modification (UTC)
    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 timestamp of resource last modification (UTC)
    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:security:CustomEntityStoreAssignment 33e7cc6e-a139-4723-a0e5-76993aee0771 /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Security/customEntityStoreAssignments/{customEntityStoreAssignmentName} 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.37.0 published on Monday, Apr 15, 2024 by Pulumi