azure-native.security.CustomEntityStoreAssignment
Explore with Pulumi AI
Custom entity store assignment API Version: 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 (
security "github.com/pulumi/pulumi-azure-native-sdk/security"
"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.
Constructor 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: "string",
CustomEntityStoreAssignmentName: "string",
Principal: "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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CustomEntityStoreAssignment resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group within the user's subscription. The name is case insensitive.
- Custom
Entity stringStore Assignment Name - 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 stringName - The name of the resource group within the user's subscription. The name is case insensitive.
- Custom
Entity stringStore Assignment Name - 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 StringName - The name of the resource group within the user's subscription. The name is case insensitive.
- custom
Entity StringStore Assignment Name - 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 stringName - The name of the resource group within the user's subscription. The name is case insensitive.
- custom
Entity stringStore Assignment Name - 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_ strname - The name of the resource group within the user's subscription. The name is case insensitive.
- custom_
entity_ strstore_ assignment_ name - 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]
- resource
Group StringName - The name of the resource group within the user's subscription. The name is case insensitive.
- custom
Entity StringStore Assignment Name - 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
- System
Data Pulumi.Azure Native. Security. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- Resource type
- Entity
Store stringDatabase Link - The link to entity store database.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- Resource type
- Entity
Store stringDatabase Link - The link to entity store database.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- Resource type
- entity
Store StringDatabase Link - The link to entity store database.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Resource name
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- Resource type
- entity
Store stringDatabase Link - The link to entity store database.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Resource name
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- Resource type
- entity_
store_ strdatabase_ link - The link to entity store database.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- Resource type
- entity
Store StringDatabase Link - The link to entity store database.
Supporting Types
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:security:CustomEntityStoreAssignment 33e7cc6e-a139-4723-a0e5-76993aee0771 /subscriptions/e5d1b86c-3051-44d5-8802-aa65d45a279b/resourcegroups/TestResourceGroup/providers/Microsoft.Security/customEntityStoreAssignments/33e7cc6e-a139-4723-a0e5-76993aee0771
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0