1. Packages
  2. Azure Classic
  3. API Docs
  4. maps
  5. Creator

We recommend using Azure Native.

Azure Classic v6.2.0 published on Friday, Sep 27, 2024 by Pulumi

azure.maps.Creator

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v6.2.0 published on Friday, Sep 27, 2024 by Pulumi

    Manages an Azure Maps Creator.

    Example Usage

    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 exampleAccount = new azure.maps.Account("example", {
        name: "example-maps-account",
        resourceGroupName: example.name,
        skuName: "G2",
        tags: {
            environment: "Test",
        },
    });
    const exampleCreator = new azure.maps.Creator("example", {
        name: "example-maps-creator",
        mapsAccountId: exampleAccount.id,
        location: example.location,
        storageUnits: 1,
        tags: {
            environment: "Test",
        },
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.core.ResourceGroup("example",
        name="example-resources",
        location="West Europe")
    example_account = azure.maps.Account("example",
        name="example-maps-account",
        resource_group_name=example.name,
        sku_name="G2",
        tags={
            "environment": "Test",
        })
    example_creator = azure.maps.Creator("example",
        name="example-maps-creator",
        maps_account_id=example_account.id,
        location=example.location,
        storage_units=1,
        tags={
            "environment": "Test",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/maps"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
    			Name:     pulumi.String("example-resources"),
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleAccount, err := maps.NewAccount(ctx, "example", &maps.AccountArgs{
    			Name:              pulumi.String("example-maps-account"),
    			ResourceGroupName: example.Name,
    			SkuName:           pulumi.String("G2"),
    			Tags: pulumi.StringMap{
    				"environment": pulumi.String("Test"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = maps.NewCreator(ctx, "example", &maps.CreatorArgs{
    			Name:          pulumi.String("example-maps-creator"),
    			MapsAccountId: exampleAccount.ID(),
    			Location:      example.Location,
    			StorageUnits:  pulumi.Int(1),
    			Tags: pulumi.StringMap{
    				"environment": pulumi.String("Test"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Azure.Core.ResourceGroup("example", new()
        {
            Name = "example-resources",
            Location = "West Europe",
        });
    
        var exampleAccount = new Azure.Maps.Account("example", new()
        {
            Name = "example-maps-account",
            ResourceGroupName = example.Name,
            SkuName = "G2",
            Tags = 
            {
                { "environment", "Test" },
            },
        });
    
        var exampleCreator = new Azure.Maps.Creator("example", new()
        {
            Name = "example-maps-creator",
            MapsAccountId = exampleAccount.Id,
            Location = example.Location,
            StorageUnits = 1,
            Tags = 
            {
                { "environment", "Test" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.core.ResourceGroup;
    import com.pulumi.azure.core.ResourceGroupArgs;
    import com.pulumi.azure.maps.Account;
    import com.pulumi.azure.maps.AccountArgs;
    import com.pulumi.azure.maps.Creator;
    import com.pulumi.azure.maps.CreatorArgs;
    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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
                .name("example-resources")
                .location("West Europe")
                .build());
    
            var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
                .name("example-maps-account")
                .resourceGroupName(example.name())
                .skuName("G2")
                .tags(Map.of("environment", "Test"))
                .build());
    
            var exampleCreator = new Creator("exampleCreator", CreatorArgs.builder()
                .name("example-maps-creator")
                .mapsAccountId(exampleAccount.id())
                .location(example.location())
                .storageUnits(1)
                .tags(Map.of("environment", "Test"))
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: example-resources
          location: West Europe
      exampleAccount:
        type: azure:maps:Account
        name: example
        properties:
          name: example-maps-account
          resourceGroupName: ${example.name}
          skuName: G2
          tags:
            environment: Test
      exampleCreator:
        type: azure:maps:Creator
        name: example
        properties:
          name: example-maps-creator
          mapsAccountId: ${exampleAccount.id}
          location: ${example.location}
          storageUnits: 1
          tags:
            environment: Test
    

    Create Creator Resource

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

    Constructor syntax

    new Creator(name: string, args: CreatorArgs, opts?: CustomResourceOptions);
    @overload
    def Creator(resource_name: str,
                args: CreatorArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Creator(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                maps_account_id: Optional[str] = None,
                storage_units: Optional[int] = None,
                location: Optional[str] = None,
                name: Optional[str] = None,
                tags: Optional[Mapping[str, str]] = None)
    func NewCreator(ctx *Context, name string, args CreatorArgs, opts ...ResourceOption) (*Creator, error)
    public Creator(string name, CreatorArgs args, CustomResourceOptions? opts = null)
    public Creator(String name, CreatorArgs args)
    public Creator(String name, CreatorArgs args, CustomResourceOptions options)
    
    type: azure:maps:Creator
    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 CreatorArgs
    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 CreatorArgs
    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 CreatorArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CreatorArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CreatorArgs
    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 creatorResource = new Azure.Maps.Creator("creatorResource", new()
    {
        MapsAccountId = "string",
        StorageUnits = 0,
        Location = "string",
        Name = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := maps.NewCreator(ctx, "creatorResource", &maps.CreatorArgs{
    	MapsAccountId: pulumi.String("string"),
    	StorageUnits:  pulumi.Int(0),
    	Location:      pulumi.String("string"),
    	Name:          pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var creatorResource = new Creator("creatorResource", CreatorArgs.builder()
        .mapsAccountId("string")
        .storageUnits(0)
        .location("string")
        .name("string")
        .tags(Map.of("string", "string"))
        .build());
    
    creator_resource = azure.maps.Creator("creatorResource",
        maps_account_id="string",
        storage_units=0,
        location="string",
        name="string",
        tags={
            "string": "string",
        })
    
    const creatorResource = new azure.maps.Creator("creatorResource", {
        mapsAccountId: "string",
        storageUnits: 0,
        location: "string",
        name: "string",
        tags: {
            string: "string",
        },
    });
    
    type: azure:maps:Creator
    properties:
        location: string
        mapsAccountId: string
        name: string
        storageUnits: 0
        tags:
            string: string
    

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

    MapsAccountId string
    The ID of the Azure Maps Creator. Changing this forces a new resource to be created.
    StorageUnits int
    The storage units to be allocated. Integer values from 1 to 100, inclusive.
    Location string
    The Azure Region where the Azure Maps Creator should exist. Changing this forces a new resource to be created.
    Name string
    The name of the Azure Maps Creator. Changing this forces a new resource to be created.
    Tags Dictionary<string, string>
    A mapping of tags which should be assigned to the Azure Maps Creator.
    MapsAccountId string
    The ID of the Azure Maps Creator. Changing this forces a new resource to be created.
    StorageUnits int
    The storage units to be allocated. Integer values from 1 to 100, inclusive.
    Location string
    The Azure Region where the Azure Maps Creator should exist. Changing this forces a new resource to be created.
    Name string
    The name of the Azure Maps Creator. Changing this forces a new resource to be created.
    Tags map[string]string
    A mapping of tags which should be assigned to the Azure Maps Creator.
    mapsAccountId String
    The ID of the Azure Maps Creator. Changing this forces a new resource to be created.
    storageUnits Integer
    The storage units to be allocated. Integer values from 1 to 100, inclusive.
    location String
    The Azure Region where the Azure Maps Creator should exist. Changing this forces a new resource to be created.
    name String
    The name of the Azure Maps Creator. Changing this forces a new resource to be created.
    tags Map<String,String>
    A mapping of tags which should be assigned to the Azure Maps Creator.
    mapsAccountId string
    The ID of the Azure Maps Creator. Changing this forces a new resource to be created.
    storageUnits number
    The storage units to be allocated. Integer values from 1 to 100, inclusive.
    location string
    The Azure Region where the Azure Maps Creator should exist. Changing this forces a new resource to be created.
    name string
    The name of the Azure Maps Creator. Changing this forces a new resource to be created.
    tags {[key: string]: string}
    A mapping of tags which should be assigned to the Azure Maps Creator.
    maps_account_id str
    The ID of the Azure Maps Creator. Changing this forces a new resource to be created.
    storage_units int
    The storage units to be allocated. Integer values from 1 to 100, inclusive.
    location str
    The Azure Region where the Azure Maps Creator should exist. Changing this forces a new resource to be created.
    name str
    The name of the Azure Maps Creator. Changing this forces a new resource to be created.
    tags Mapping[str, str]
    A mapping of tags which should be assigned to the Azure Maps Creator.
    mapsAccountId String
    The ID of the Azure Maps Creator. Changing this forces a new resource to be created.
    storageUnits Number
    The storage units to be allocated. Integer values from 1 to 100, inclusive.
    location String
    The Azure Region where the Azure Maps Creator should exist. Changing this forces a new resource to be created.
    name String
    The name of the Azure Maps Creator. Changing this forces a new resource to be created.
    tags Map<String>
    A mapping of tags which should be assigned to the Azure Maps Creator.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Creator Resource

    Get an existing Creator resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: CreatorState, opts?: CustomResourceOptions): Creator
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            location: Optional[str] = None,
            maps_account_id: Optional[str] = None,
            name: Optional[str] = None,
            storage_units: Optional[int] = None,
            tags: Optional[Mapping[str, str]] = None) -> Creator
    func GetCreator(ctx *Context, name string, id IDInput, state *CreatorState, opts ...ResourceOption) (*Creator, error)
    public static Creator Get(string name, Input<string> id, CreatorState? state, CustomResourceOptions? opts = null)
    public static Creator get(String name, Output<String> id, CreatorState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Location string
    The Azure Region where the Azure Maps Creator should exist. Changing this forces a new resource to be created.
    MapsAccountId string
    The ID of the Azure Maps Creator. Changing this forces a new resource to be created.
    Name string
    The name of the Azure Maps Creator. Changing this forces a new resource to be created.
    StorageUnits int
    The storage units to be allocated. Integer values from 1 to 100, inclusive.
    Tags Dictionary<string, string>
    A mapping of tags which should be assigned to the Azure Maps Creator.
    Location string
    The Azure Region where the Azure Maps Creator should exist. Changing this forces a new resource to be created.
    MapsAccountId string
    The ID of the Azure Maps Creator. Changing this forces a new resource to be created.
    Name string
    The name of the Azure Maps Creator. Changing this forces a new resource to be created.
    StorageUnits int
    The storage units to be allocated. Integer values from 1 to 100, inclusive.
    Tags map[string]string
    A mapping of tags which should be assigned to the Azure Maps Creator.
    location String
    The Azure Region where the Azure Maps Creator should exist. Changing this forces a new resource to be created.
    mapsAccountId String
    The ID of the Azure Maps Creator. Changing this forces a new resource to be created.
    name String
    The name of the Azure Maps Creator. Changing this forces a new resource to be created.
    storageUnits Integer
    The storage units to be allocated. Integer values from 1 to 100, inclusive.
    tags Map<String,String>
    A mapping of tags which should be assigned to the Azure Maps Creator.
    location string
    The Azure Region where the Azure Maps Creator should exist. Changing this forces a new resource to be created.
    mapsAccountId string
    The ID of the Azure Maps Creator. Changing this forces a new resource to be created.
    name string
    The name of the Azure Maps Creator. Changing this forces a new resource to be created.
    storageUnits number
    The storage units to be allocated. Integer values from 1 to 100, inclusive.
    tags {[key: string]: string}
    A mapping of tags which should be assigned to the Azure Maps Creator.
    location str
    The Azure Region where the Azure Maps Creator should exist. Changing this forces a new resource to be created.
    maps_account_id str
    The ID of the Azure Maps Creator. Changing this forces a new resource to be created.
    name str
    The name of the Azure Maps Creator. Changing this forces a new resource to be created.
    storage_units int
    The storage units to be allocated. Integer values from 1 to 100, inclusive.
    tags Mapping[str, str]
    A mapping of tags which should be assigned to the Azure Maps Creator.
    location String
    The Azure Region where the Azure Maps Creator should exist. Changing this forces a new resource to be created.
    mapsAccountId String
    The ID of the Azure Maps Creator. Changing this forces a new resource to be created.
    name String
    The name of the Azure Maps Creator. Changing this forces a new resource to be created.
    storageUnits Number
    The storage units to be allocated. Integer values from 1 to 100, inclusive.
    tags Map<String>
    A mapping of tags which should be assigned to the Azure Maps Creator.

    Import

    An Azure Maps Creators can be imported using the resource id, e.g.

    $ pulumi import azure:maps/creator:Creator example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Maps/accounts/account1/creators/creator1
    

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

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure Classic v6.2.0 published on Friday, Sep 27, 2024 by Pulumi