maps

package
v6.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	pulumi.CustomResourceState

	// A `cors` block as defined below
	Cors AccountCorsPtrOutput `pulumi:"cors"`
	// One or more `dataStore` blocks as defined below.
	DataStores AccountDataStoreArrayOutput `pulumi:"dataStores"`
	// An `identity` block as defined below.
	Identity AccountIdentityPtrOutput `pulumi:"identity"`
	// Is local authentication enabled for this Azure Maps Account? When `false`, all authentication to the Azure Maps data-plane REST API is disabled, except Azure AD authentication. Defaults to `true`.
	LocalAuthenticationEnabled pulumi.BoolPtrOutput `pulumi:"localAuthenticationEnabled"`
	// The Location in which the Azure Maps Account should be provisioned. Changing this forces a new resource to be created. Defaults to `global`.
	Location pulumi.StringOutput `pulumi:"location"`
	// The name of the Azure Maps Account. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// The primary key used to authenticate and authorize access to the Maps REST APIs.
	PrimaryAccessKey pulumi.StringOutput `pulumi:"primaryAccessKey"`
	// The name of the Resource Group in which the Azure Maps Account should exist. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// The secondary key used to authenticate and authorize access to the Maps REST APIs.
	SecondaryAccessKey pulumi.StringOutput `pulumi:"secondaryAccessKey"`
	// The SKU of the Azure Maps Account. Possible values are `S0`, `S1` and `G2`. Changing this forces a new resource to be created.
	//
	// > **Note:** Gen1 SKUs (`S0` and `S1`) are deprecated and can no longer be used for new deployments, which should instead use a Gen2 SKU (`G2`) - more information can be found [in the Azure documentation](https://learn.microsoft.com/azure/azure-maps/how-to-manage-pricing-tier).
	SkuName pulumi.StringOutput `pulumi:"skuName"`
	// A mapping of tags to assign to the Azure Maps Account.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// A unique identifier for the Maps Account.
	XMsClientId pulumi.StringOutput `pulumi:"xMsClientId"`
}

Manages an Azure Maps Account.

## Example Usage

```go 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
		}
		_, err = maps.NewAccount(ctx, "example", &maps.AccountArgs{
			Name:                       pulumi.String("example-maps-account"),
			ResourceGroupName:          example.Name,
			SkuName:                    pulumi.String("S1"),
			LocalAuthenticationEnabled: pulumi.Bool(true),
			Tags: pulumi.StringMap{
				"environment": pulumi.String("Test"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

A Maps Account can be imported using the `resource id`, e.g.

```sh $ pulumi import azure:maps/account:Account example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Maps/accounts/my-maps-account ```

func GetAccount

func GetAccount(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AccountState, opts ...pulumi.ResourceOption) (*Account, error)

GetAccount gets an existing Account resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewAccount

func NewAccount(ctx *pulumi.Context,
	name string, args *AccountArgs, opts ...pulumi.ResourceOption) (*Account, error)

NewAccount registers a new resource with the given unique name, arguments, and options.

func (*Account) ElementType

func (*Account) ElementType() reflect.Type

func (*Account) ToAccountOutput

func (i *Account) ToAccountOutput() AccountOutput

func (*Account) ToAccountOutputWithContext

func (i *Account) ToAccountOutputWithContext(ctx context.Context) AccountOutput

type AccountArgs

type AccountArgs struct {
	// A `cors` block as defined below
	Cors AccountCorsPtrInput
	// One or more `dataStore` blocks as defined below.
	DataStores AccountDataStoreArrayInput
	// An `identity` block as defined below.
	Identity AccountIdentityPtrInput
	// Is local authentication enabled for this Azure Maps Account? When `false`, all authentication to the Azure Maps data-plane REST API is disabled, except Azure AD authentication. Defaults to `true`.
	LocalAuthenticationEnabled pulumi.BoolPtrInput
	// The Location in which the Azure Maps Account should be provisioned. Changing this forces a new resource to be created. Defaults to `global`.
	Location pulumi.StringPtrInput
	// The name of the Azure Maps Account. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The name of the Resource Group in which the Azure Maps Account should exist. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringInput
	// The SKU of the Azure Maps Account. Possible values are `S0`, `S1` and `G2`. Changing this forces a new resource to be created.
	//
	// > **Note:** Gen1 SKUs (`S0` and `S1`) are deprecated and can no longer be used for new deployments, which should instead use a Gen2 SKU (`G2`) - more information can be found [in the Azure documentation](https://learn.microsoft.com/azure/azure-maps/how-to-manage-pricing-tier).
	SkuName pulumi.StringInput
	// A mapping of tags to assign to the Azure Maps Account.
	Tags pulumi.StringMapInput
}

The set of arguments for constructing a Account resource.

func (AccountArgs) ElementType

func (AccountArgs) ElementType() reflect.Type

type AccountArray

type AccountArray []AccountInput

func (AccountArray) ElementType

func (AccountArray) ElementType() reflect.Type

func (AccountArray) ToAccountArrayOutput

func (i AccountArray) ToAccountArrayOutput() AccountArrayOutput

func (AccountArray) ToAccountArrayOutputWithContext

func (i AccountArray) ToAccountArrayOutputWithContext(ctx context.Context) AccountArrayOutput

type AccountArrayInput

type AccountArrayInput interface {
	pulumi.Input

	ToAccountArrayOutput() AccountArrayOutput
	ToAccountArrayOutputWithContext(context.Context) AccountArrayOutput
}

AccountArrayInput is an input type that accepts AccountArray and AccountArrayOutput values. You can construct a concrete instance of `AccountArrayInput` via:

AccountArray{ AccountArgs{...} }

type AccountArrayOutput

type AccountArrayOutput struct{ *pulumi.OutputState }

func (AccountArrayOutput) ElementType

func (AccountArrayOutput) ElementType() reflect.Type

func (AccountArrayOutput) Index

func (AccountArrayOutput) ToAccountArrayOutput

func (o AccountArrayOutput) ToAccountArrayOutput() AccountArrayOutput

func (AccountArrayOutput) ToAccountArrayOutputWithContext

func (o AccountArrayOutput) ToAccountArrayOutputWithContext(ctx context.Context) AccountArrayOutput

type AccountCors

type AccountCors struct {
	// A list of origins that should be allowed to make cross-origin calls.
	AllowedOrigins []string `pulumi:"allowedOrigins"`
}

type AccountCorsArgs

type AccountCorsArgs struct {
	// A list of origins that should be allowed to make cross-origin calls.
	AllowedOrigins pulumi.StringArrayInput `pulumi:"allowedOrigins"`
}

func (AccountCorsArgs) ElementType

func (AccountCorsArgs) ElementType() reflect.Type

func (AccountCorsArgs) ToAccountCorsOutput

func (i AccountCorsArgs) ToAccountCorsOutput() AccountCorsOutput

func (AccountCorsArgs) ToAccountCorsOutputWithContext

func (i AccountCorsArgs) ToAccountCorsOutputWithContext(ctx context.Context) AccountCorsOutput

func (AccountCorsArgs) ToAccountCorsPtrOutput

func (i AccountCorsArgs) ToAccountCorsPtrOutput() AccountCorsPtrOutput

func (AccountCorsArgs) ToAccountCorsPtrOutputWithContext

func (i AccountCorsArgs) ToAccountCorsPtrOutputWithContext(ctx context.Context) AccountCorsPtrOutput

type AccountCorsInput

type AccountCorsInput interface {
	pulumi.Input

	ToAccountCorsOutput() AccountCorsOutput
	ToAccountCorsOutputWithContext(context.Context) AccountCorsOutput
}

AccountCorsInput is an input type that accepts AccountCorsArgs and AccountCorsOutput values. You can construct a concrete instance of `AccountCorsInput` via:

AccountCorsArgs{...}

type AccountCorsOutput

type AccountCorsOutput struct{ *pulumi.OutputState }

func (AccountCorsOutput) AllowedOrigins

func (o AccountCorsOutput) AllowedOrigins() pulumi.StringArrayOutput

A list of origins that should be allowed to make cross-origin calls.

func (AccountCorsOutput) ElementType

func (AccountCorsOutput) ElementType() reflect.Type

func (AccountCorsOutput) ToAccountCorsOutput

func (o AccountCorsOutput) ToAccountCorsOutput() AccountCorsOutput

func (AccountCorsOutput) ToAccountCorsOutputWithContext

func (o AccountCorsOutput) ToAccountCorsOutputWithContext(ctx context.Context) AccountCorsOutput

func (AccountCorsOutput) ToAccountCorsPtrOutput

func (o AccountCorsOutput) ToAccountCorsPtrOutput() AccountCorsPtrOutput

func (AccountCorsOutput) ToAccountCorsPtrOutputWithContext

func (o AccountCorsOutput) ToAccountCorsPtrOutputWithContext(ctx context.Context) AccountCorsPtrOutput

type AccountCorsPtrInput

type AccountCorsPtrInput interface {
	pulumi.Input

	ToAccountCorsPtrOutput() AccountCorsPtrOutput
	ToAccountCorsPtrOutputWithContext(context.Context) AccountCorsPtrOutput
}

AccountCorsPtrInput is an input type that accepts AccountCorsArgs, AccountCorsPtr and AccountCorsPtrOutput values. You can construct a concrete instance of `AccountCorsPtrInput` via:

        AccountCorsArgs{...}

or:

        nil

func AccountCorsPtr

func AccountCorsPtr(v *AccountCorsArgs) AccountCorsPtrInput

type AccountCorsPtrOutput

type AccountCorsPtrOutput struct{ *pulumi.OutputState }

func (AccountCorsPtrOutput) AllowedOrigins

func (o AccountCorsPtrOutput) AllowedOrigins() pulumi.StringArrayOutput

A list of origins that should be allowed to make cross-origin calls.

func (AccountCorsPtrOutput) Elem

func (AccountCorsPtrOutput) ElementType

func (AccountCorsPtrOutput) ElementType() reflect.Type

func (AccountCorsPtrOutput) ToAccountCorsPtrOutput

func (o AccountCorsPtrOutput) ToAccountCorsPtrOutput() AccountCorsPtrOutput

func (AccountCorsPtrOutput) ToAccountCorsPtrOutputWithContext

func (o AccountCorsPtrOutput) ToAccountCorsPtrOutputWithContext(ctx context.Context) AccountCorsPtrOutput

type AccountDataStore

type AccountDataStore struct {
	// The ID of the Storage Account that should be linked to this Azure Maps Account.
	StorageAccountId *string `pulumi:"storageAccountId"`
	// The name given to the linked Storage Account.
	UniqueName string `pulumi:"uniqueName"`
}

type AccountDataStoreArgs

type AccountDataStoreArgs struct {
	// The ID of the Storage Account that should be linked to this Azure Maps Account.
	StorageAccountId pulumi.StringPtrInput `pulumi:"storageAccountId"`
	// The name given to the linked Storage Account.
	UniqueName pulumi.StringInput `pulumi:"uniqueName"`
}

func (AccountDataStoreArgs) ElementType

func (AccountDataStoreArgs) ElementType() reflect.Type

func (AccountDataStoreArgs) ToAccountDataStoreOutput

func (i AccountDataStoreArgs) ToAccountDataStoreOutput() AccountDataStoreOutput

func (AccountDataStoreArgs) ToAccountDataStoreOutputWithContext

func (i AccountDataStoreArgs) ToAccountDataStoreOutputWithContext(ctx context.Context) AccountDataStoreOutput

type AccountDataStoreArray

type AccountDataStoreArray []AccountDataStoreInput

func (AccountDataStoreArray) ElementType

func (AccountDataStoreArray) ElementType() reflect.Type

func (AccountDataStoreArray) ToAccountDataStoreArrayOutput

func (i AccountDataStoreArray) ToAccountDataStoreArrayOutput() AccountDataStoreArrayOutput

func (AccountDataStoreArray) ToAccountDataStoreArrayOutputWithContext

func (i AccountDataStoreArray) ToAccountDataStoreArrayOutputWithContext(ctx context.Context) AccountDataStoreArrayOutput

type AccountDataStoreArrayInput

type AccountDataStoreArrayInput interface {
	pulumi.Input

	ToAccountDataStoreArrayOutput() AccountDataStoreArrayOutput
	ToAccountDataStoreArrayOutputWithContext(context.Context) AccountDataStoreArrayOutput
}

AccountDataStoreArrayInput is an input type that accepts AccountDataStoreArray and AccountDataStoreArrayOutput values. You can construct a concrete instance of `AccountDataStoreArrayInput` via:

AccountDataStoreArray{ AccountDataStoreArgs{...} }

type AccountDataStoreArrayOutput

type AccountDataStoreArrayOutput struct{ *pulumi.OutputState }

func (AccountDataStoreArrayOutput) ElementType

func (AccountDataStoreArrayOutput) Index

func (AccountDataStoreArrayOutput) ToAccountDataStoreArrayOutput

func (o AccountDataStoreArrayOutput) ToAccountDataStoreArrayOutput() AccountDataStoreArrayOutput

func (AccountDataStoreArrayOutput) ToAccountDataStoreArrayOutputWithContext

func (o AccountDataStoreArrayOutput) ToAccountDataStoreArrayOutputWithContext(ctx context.Context) AccountDataStoreArrayOutput

type AccountDataStoreInput

type AccountDataStoreInput interface {
	pulumi.Input

	ToAccountDataStoreOutput() AccountDataStoreOutput
	ToAccountDataStoreOutputWithContext(context.Context) AccountDataStoreOutput
}

AccountDataStoreInput is an input type that accepts AccountDataStoreArgs and AccountDataStoreOutput values. You can construct a concrete instance of `AccountDataStoreInput` via:

AccountDataStoreArgs{...}

type AccountDataStoreOutput

type AccountDataStoreOutput struct{ *pulumi.OutputState }

func (AccountDataStoreOutput) ElementType

func (AccountDataStoreOutput) ElementType() reflect.Type

func (AccountDataStoreOutput) StorageAccountId

func (o AccountDataStoreOutput) StorageAccountId() pulumi.StringPtrOutput

The ID of the Storage Account that should be linked to this Azure Maps Account.

func (AccountDataStoreOutput) ToAccountDataStoreOutput

func (o AccountDataStoreOutput) ToAccountDataStoreOutput() AccountDataStoreOutput

func (AccountDataStoreOutput) ToAccountDataStoreOutputWithContext

func (o AccountDataStoreOutput) ToAccountDataStoreOutputWithContext(ctx context.Context) AccountDataStoreOutput

func (AccountDataStoreOutput) UniqueName

The name given to the linked Storage Account.

type AccountIdentity

type AccountIdentity struct {
	// A list of User Assigned Managed Identity IDs to be assigned to this Azure Maps Account.
	//
	// > **NOTE:** This is required when `type` is set to `UserAssigned` or `SystemAssigned, UserAssigned`.
	IdentityIds []string `pulumi:"identityIds"`
	// The Principal ID associated with this Managed Service Identity.
	PrincipalId *string `pulumi:"principalId"`
	// The Tenant ID associated with this Managed Service Identity.
	TenantId *string `pulumi:"tenantId"`
	// Specifies the type of Managed Service Identity that should be configured on this Azure Maps Account. Possible values are `SystemAssigned`, `UserAssigned`, `SystemAssigned, UserAssigned` (to enable both).
	Type string `pulumi:"type"`
}

type AccountIdentityArgs

type AccountIdentityArgs struct {
	// A list of User Assigned Managed Identity IDs to be assigned to this Azure Maps Account.
	//
	// > **NOTE:** This is required when `type` is set to `UserAssigned` or `SystemAssigned, UserAssigned`.
	IdentityIds pulumi.StringArrayInput `pulumi:"identityIds"`
	// The Principal ID associated with this Managed Service Identity.
	PrincipalId pulumi.StringPtrInput `pulumi:"principalId"`
	// The Tenant ID associated with this Managed Service Identity.
	TenantId pulumi.StringPtrInput `pulumi:"tenantId"`
	// Specifies the type of Managed Service Identity that should be configured on this Azure Maps Account. Possible values are `SystemAssigned`, `UserAssigned`, `SystemAssigned, UserAssigned` (to enable both).
	Type pulumi.StringInput `pulumi:"type"`
}

func (AccountIdentityArgs) ElementType

func (AccountIdentityArgs) ElementType() reflect.Type

func (AccountIdentityArgs) ToAccountIdentityOutput

func (i AccountIdentityArgs) ToAccountIdentityOutput() AccountIdentityOutput

func (AccountIdentityArgs) ToAccountIdentityOutputWithContext

func (i AccountIdentityArgs) ToAccountIdentityOutputWithContext(ctx context.Context) AccountIdentityOutput

func (AccountIdentityArgs) ToAccountIdentityPtrOutput

func (i AccountIdentityArgs) ToAccountIdentityPtrOutput() AccountIdentityPtrOutput

func (AccountIdentityArgs) ToAccountIdentityPtrOutputWithContext

func (i AccountIdentityArgs) ToAccountIdentityPtrOutputWithContext(ctx context.Context) AccountIdentityPtrOutput

type AccountIdentityInput

type AccountIdentityInput interface {
	pulumi.Input

	ToAccountIdentityOutput() AccountIdentityOutput
	ToAccountIdentityOutputWithContext(context.Context) AccountIdentityOutput
}

AccountIdentityInput is an input type that accepts AccountIdentityArgs and AccountIdentityOutput values. You can construct a concrete instance of `AccountIdentityInput` via:

AccountIdentityArgs{...}

type AccountIdentityOutput

type AccountIdentityOutput struct{ *pulumi.OutputState }

func (AccountIdentityOutput) ElementType

func (AccountIdentityOutput) ElementType() reflect.Type

func (AccountIdentityOutput) IdentityIds

A list of User Assigned Managed Identity IDs to be assigned to this Azure Maps Account.

> **NOTE:** This is required when `type` is set to `UserAssigned` or `SystemAssigned, UserAssigned`.

func (AccountIdentityOutput) PrincipalId

The Principal ID associated with this Managed Service Identity.

func (AccountIdentityOutput) TenantId

The Tenant ID associated with this Managed Service Identity.

func (AccountIdentityOutput) ToAccountIdentityOutput

func (o AccountIdentityOutput) ToAccountIdentityOutput() AccountIdentityOutput

func (AccountIdentityOutput) ToAccountIdentityOutputWithContext

func (o AccountIdentityOutput) ToAccountIdentityOutputWithContext(ctx context.Context) AccountIdentityOutput

func (AccountIdentityOutput) ToAccountIdentityPtrOutput

func (o AccountIdentityOutput) ToAccountIdentityPtrOutput() AccountIdentityPtrOutput

func (AccountIdentityOutput) ToAccountIdentityPtrOutputWithContext

func (o AccountIdentityOutput) ToAccountIdentityPtrOutputWithContext(ctx context.Context) AccountIdentityPtrOutput

func (AccountIdentityOutput) Type

Specifies the type of Managed Service Identity that should be configured on this Azure Maps Account. Possible values are `SystemAssigned`, `UserAssigned`, `SystemAssigned, UserAssigned` (to enable both).

type AccountIdentityPtrInput

type AccountIdentityPtrInput interface {
	pulumi.Input

	ToAccountIdentityPtrOutput() AccountIdentityPtrOutput
	ToAccountIdentityPtrOutputWithContext(context.Context) AccountIdentityPtrOutput
}

AccountIdentityPtrInput is an input type that accepts AccountIdentityArgs, AccountIdentityPtr and AccountIdentityPtrOutput values. You can construct a concrete instance of `AccountIdentityPtrInput` via:

        AccountIdentityArgs{...}

or:

        nil

type AccountIdentityPtrOutput

type AccountIdentityPtrOutput struct{ *pulumi.OutputState }

func (AccountIdentityPtrOutput) Elem

func (AccountIdentityPtrOutput) ElementType

func (AccountIdentityPtrOutput) ElementType() reflect.Type

func (AccountIdentityPtrOutput) IdentityIds

A list of User Assigned Managed Identity IDs to be assigned to this Azure Maps Account.

> **NOTE:** This is required when `type` is set to `UserAssigned` or `SystemAssigned, UserAssigned`.

func (AccountIdentityPtrOutput) PrincipalId

The Principal ID associated with this Managed Service Identity.

func (AccountIdentityPtrOutput) TenantId

The Tenant ID associated with this Managed Service Identity.

func (AccountIdentityPtrOutput) ToAccountIdentityPtrOutput

func (o AccountIdentityPtrOutput) ToAccountIdentityPtrOutput() AccountIdentityPtrOutput

func (AccountIdentityPtrOutput) ToAccountIdentityPtrOutputWithContext

func (o AccountIdentityPtrOutput) ToAccountIdentityPtrOutputWithContext(ctx context.Context) AccountIdentityPtrOutput

func (AccountIdentityPtrOutput) Type

Specifies the type of Managed Service Identity that should be configured on this Azure Maps Account. Possible values are `SystemAssigned`, `UserAssigned`, `SystemAssigned, UserAssigned` (to enable both).

type AccountInput

type AccountInput interface {
	pulumi.Input

	ToAccountOutput() AccountOutput
	ToAccountOutputWithContext(ctx context.Context) AccountOutput
}

type AccountMap

type AccountMap map[string]AccountInput

func (AccountMap) ElementType

func (AccountMap) ElementType() reflect.Type

func (AccountMap) ToAccountMapOutput

func (i AccountMap) ToAccountMapOutput() AccountMapOutput

func (AccountMap) ToAccountMapOutputWithContext

func (i AccountMap) ToAccountMapOutputWithContext(ctx context.Context) AccountMapOutput

type AccountMapInput

type AccountMapInput interface {
	pulumi.Input

	ToAccountMapOutput() AccountMapOutput
	ToAccountMapOutputWithContext(context.Context) AccountMapOutput
}

AccountMapInput is an input type that accepts AccountMap and AccountMapOutput values. You can construct a concrete instance of `AccountMapInput` via:

AccountMap{ "key": AccountArgs{...} }

type AccountMapOutput

type AccountMapOutput struct{ *pulumi.OutputState }

func (AccountMapOutput) ElementType

func (AccountMapOutput) ElementType() reflect.Type

func (AccountMapOutput) MapIndex

func (AccountMapOutput) ToAccountMapOutput

func (o AccountMapOutput) ToAccountMapOutput() AccountMapOutput

func (AccountMapOutput) ToAccountMapOutputWithContext

func (o AccountMapOutput) ToAccountMapOutputWithContext(ctx context.Context) AccountMapOutput

type AccountOutput

type AccountOutput struct{ *pulumi.OutputState }

func (AccountOutput) Cors

A `cors` block as defined below

func (AccountOutput) DataStores

One or more `dataStore` blocks as defined below.

func (AccountOutput) ElementType

func (AccountOutput) ElementType() reflect.Type

func (AccountOutput) Identity

An `identity` block as defined below.

func (AccountOutput) LocalAuthenticationEnabled

func (o AccountOutput) LocalAuthenticationEnabled() pulumi.BoolPtrOutput

Is local authentication enabled for this Azure Maps Account? When `false`, all authentication to the Azure Maps data-plane REST API is disabled, except Azure AD authentication. Defaults to `true`.

func (AccountOutput) Location

func (o AccountOutput) Location() pulumi.StringOutput

The Location in which the Azure Maps Account should be provisioned. Changing this forces a new resource to be created. Defaults to `global`.

func (AccountOutput) Name

The name of the Azure Maps Account. Changing this forces a new resource to be created.

func (AccountOutput) PrimaryAccessKey

func (o AccountOutput) PrimaryAccessKey() pulumi.StringOutput

The primary key used to authenticate and authorize access to the Maps REST APIs.

func (AccountOutput) ResourceGroupName

func (o AccountOutput) ResourceGroupName() pulumi.StringOutput

The name of the Resource Group in which the Azure Maps Account should exist. Changing this forces a new resource to be created.

func (AccountOutput) SecondaryAccessKey

func (o AccountOutput) SecondaryAccessKey() pulumi.StringOutput

The secondary key used to authenticate and authorize access to the Maps REST APIs.

func (AccountOutput) SkuName

func (o AccountOutput) SkuName() pulumi.StringOutput

The SKU of the Azure Maps Account. Possible values are `S0`, `S1` and `G2`. Changing this forces a new resource to be created.

> **Note:** Gen1 SKUs (`S0` and `S1`) are deprecated and can no longer be used for new deployments, which should instead use a Gen2 SKU (`G2`) - more information can be found [in the Azure documentation](https://learn.microsoft.com/azure/azure-maps/how-to-manage-pricing-tier).

func (AccountOutput) Tags

A mapping of tags to assign to the Azure Maps Account.

func (AccountOutput) ToAccountOutput

func (o AccountOutput) ToAccountOutput() AccountOutput

func (AccountOutput) ToAccountOutputWithContext

func (o AccountOutput) ToAccountOutputWithContext(ctx context.Context) AccountOutput

func (AccountOutput) XMsClientId

func (o AccountOutput) XMsClientId() pulumi.StringOutput

A unique identifier for the Maps Account.

type AccountState

type AccountState struct {
	// A `cors` block as defined below
	Cors AccountCorsPtrInput
	// One or more `dataStore` blocks as defined below.
	DataStores AccountDataStoreArrayInput
	// An `identity` block as defined below.
	Identity AccountIdentityPtrInput
	// Is local authentication enabled for this Azure Maps Account? When `false`, all authentication to the Azure Maps data-plane REST API is disabled, except Azure AD authentication. Defaults to `true`.
	LocalAuthenticationEnabled pulumi.BoolPtrInput
	// The Location in which the Azure Maps Account should be provisioned. Changing this forces a new resource to be created. Defaults to `global`.
	Location pulumi.StringPtrInput
	// The name of the Azure Maps Account. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The primary key used to authenticate and authorize access to the Maps REST APIs.
	PrimaryAccessKey pulumi.StringPtrInput
	// The name of the Resource Group in which the Azure Maps Account should exist. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringPtrInput
	// The secondary key used to authenticate and authorize access to the Maps REST APIs.
	SecondaryAccessKey pulumi.StringPtrInput
	// The SKU of the Azure Maps Account. Possible values are `S0`, `S1` and `G2`. Changing this forces a new resource to be created.
	//
	// > **Note:** Gen1 SKUs (`S0` and `S1`) are deprecated and can no longer be used for new deployments, which should instead use a Gen2 SKU (`G2`) - more information can be found [in the Azure documentation](https://learn.microsoft.com/azure/azure-maps/how-to-manage-pricing-tier).
	SkuName pulumi.StringPtrInput
	// A mapping of tags to assign to the Azure Maps Account.
	Tags pulumi.StringMapInput
	// A unique identifier for the Maps Account.
	XMsClientId pulumi.StringPtrInput
}

func (AccountState) ElementType

func (AccountState) ElementType() reflect.Type

type Creator

type Creator struct {
	pulumi.CustomResourceState

	// The Azure Region where the Azure Maps Creator should exist. Changing this forces a new resource to be created.
	Location pulumi.StringOutput `pulumi:"location"`
	// The ID of the Azure Maps Creator. Changing this forces a new resource to be created.
	MapsAccountId pulumi.StringOutput `pulumi:"mapsAccountId"`
	// The name of the Azure Maps Creator. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// The storage units to be allocated. Integer values from 1 to 100, inclusive.
	StorageUnits pulumi.IntOutput `pulumi:"storageUnits"`
	// A mapping of tags which should be assigned to the Azure Maps Creator.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
}

Manages an Azure Maps Creator.

## Example Usage

```go 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
	})
}

```

## Import

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

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

func GetCreator

func GetCreator(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *CreatorState, opts ...pulumi.ResourceOption) (*Creator, error)

GetCreator gets an existing Creator resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewCreator

func NewCreator(ctx *pulumi.Context,
	name string, args *CreatorArgs, opts ...pulumi.ResourceOption) (*Creator, error)

NewCreator registers a new resource with the given unique name, arguments, and options.

func (*Creator) ElementType

func (*Creator) ElementType() reflect.Type

func (*Creator) ToCreatorOutput

func (i *Creator) ToCreatorOutput() CreatorOutput

func (*Creator) ToCreatorOutputWithContext

func (i *Creator) ToCreatorOutputWithContext(ctx context.Context) CreatorOutput

type CreatorArgs

type CreatorArgs struct {
	// The Azure Region where the Azure Maps Creator should exist. Changing this forces a new resource to be created.
	Location pulumi.StringPtrInput
	// The ID of the Azure Maps Creator. Changing this forces a new resource to be created.
	MapsAccountId pulumi.StringInput
	// The name of the Azure Maps Creator. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The storage units to be allocated. Integer values from 1 to 100, inclusive.
	StorageUnits pulumi.IntInput
	// A mapping of tags which should be assigned to the Azure Maps Creator.
	Tags pulumi.StringMapInput
}

The set of arguments for constructing a Creator resource.

func (CreatorArgs) ElementType

func (CreatorArgs) ElementType() reflect.Type

type CreatorArray

type CreatorArray []CreatorInput

func (CreatorArray) ElementType

func (CreatorArray) ElementType() reflect.Type

func (CreatorArray) ToCreatorArrayOutput

func (i CreatorArray) ToCreatorArrayOutput() CreatorArrayOutput

func (CreatorArray) ToCreatorArrayOutputWithContext

func (i CreatorArray) ToCreatorArrayOutputWithContext(ctx context.Context) CreatorArrayOutput

type CreatorArrayInput

type CreatorArrayInput interface {
	pulumi.Input

	ToCreatorArrayOutput() CreatorArrayOutput
	ToCreatorArrayOutputWithContext(context.Context) CreatorArrayOutput
}

CreatorArrayInput is an input type that accepts CreatorArray and CreatorArrayOutput values. You can construct a concrete instance of `CreatorArrayInput` via:

CreatorArray{ CreatorArgs{...} }

type CreatorArrayOutput

type CreatorArrayOutput struct{ *pulumi.OutputState }

func (CreatorArrayOutput) ElementType

func (CreatorArrayOutput) ElementType() reflect.Type

func (CreatorArrayOutput) Index

func (CreatorArrayOutput) ToCreatorArrayOutput

func (o CreatorArrayOutput) ToCreatorArrayOutput() CreatorArrayOutput

func (CreatorArrayOutput) ToCreatorArrayOutputWithContext

func (o CreatorArrayOutput) ToCreatorArrayOutputWithContext(ctx context.Context) CreatorArrayOutput

type CreatorInput

type CreatorInput interface {
	pulumi.Input

	ToCreatorOutput() CreatorOutput
	ToCreatorOutputWithContext(ctx context.Context) CreatorOutput
}

type CreatorMap

type CreatorMap map[string]CreatorInput

func (CreatorMap) ElementType

func (CreatorMap) ElementType() reflect.Type

func (CreatorMap) ToCreatorMapOutput

func (i CreatorMap) ToCreatorMapOutput() CreatorMapOutput

func (CreatorMap) ToCreatorMapOutputWithContext

func (i CreatorMap) ToCreatorMapOutputWithContext(ctx context.Context) CreatorMapOutput

type CreatorMapInput

type CreatorMapInput interface {
	pulumi.Input

	ToCreatorMapOutput() CreatorMapOutput
	ToCreatorMapOutputWithContext(context.Context) CreatorMapOutput
}

CreatorMapInput is an input type that accepts CreatorMap and CreatorMapOutput values. You can construct a concrete instance of `CreatorMapInput` via:

CreatorMap{ "key": CreatorArgs{...} }

type CreatorMapOutput

type CreatorMapOutput struct{ *pulumi.OutputState }

func (CreatorMapOutput) ElementType

func (CreatorMapOutput) ElementType() reflect.Type

func (CreatorMapOutput) MapIndex

func (CreatorMapOutput) ToCreatorMapOutput

func (o CreatorMapOutput) ToCreatorMapOutput() CreatorMapOutput

func (CreatorMapOutput) ToCreatorMapOutputWithContext

func (o CreatorMapOutput) ToCreatorMapOutputWithContext(ctx context.Context) CreatorMapOutput

type CreatorOutput

type CreatorOutput struct{ *pulumi.OutputState }

func (CreatorOutput) ElementType

func (CreatorOutput) ElementType() reflect.Type

func (CreatorOutput) Location

func (o CreatorOutput) Location() pulumi.StringOutput

The Azure Region where the Azure Maps Creator should exist. Changing this forces a new resource to be created.

func (CreatorOutput) MapsAccountId

func (o CreatorOutput) MapsAccountId() pulumi.StringOutput

The ID of the Azure Maps Creator. Changing this forces a new resource to be created.

func (CreatorOutput) Name

The name of the Azure Maps Creator. Changing this forces a new resource to be created.

func (CreatorOutput) StorageUnits

func (o CreatorOutput) StorageUnits() pulumi.IntOutput

The storage units to be allocated. Integer values from 1 to 100, inclusive.

func (CreatorOutput) Tags

A mapping of tags which should be assigned to the Azure Maps Creator.

func (CreatorOutput) ToCreatorOutput

func (o CreatorOutput) ToCreatorOutput() CreatorOutput

func (CreatorOutput) ToCreatorOutputWithContext

func (o CreatorOutput) ToCreatorOutputWithContext(ctx context.Context) CreatorOutput

type CreatorState

type CreatorState struct {
	// The Azure Region where the Azure Maps Creator should exist. Changing this forces a new resource to be created.
	Location pulumi.StringPtrInput
	// The ID of the Azure Maps Creator. Changing this forces a new resource to be created.
	MapsAccountId pulumi.StringPtrInput
	// The name of the Azure Maps Creator. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The storage units to be allocated. Integer values from 1 to 100, inclusive.
	StorageUnits pulumi.IntPtrInput
	// A mapping of tags which should be assigned to the Azure Maps Creator.
	Tags pulumi.StringMapInput
}

func (CreatorState) ElementType

func (CreatorState) ElementType() reflect.Type

type LookupAccountArgs

type LookupAccountArgs struct {
	// Specifies the name of the Maps Account.
	Name string `pulumi:"name"`
	// Specifies the name of the Resource Group in which the Maps Account is located.
	ResourceGroupName string            `pulumi:"resourceGroupName"`
	Tags              map[string]string `pulumi:"tags"`
}

A collection of arguments for invoking getAccount.

type LookupAccountOutputArgs

type LookupAccountOutputArgs struct {
	// Specifies the name of the Maps Account.
	Name pulumi.StringInput `pulumi:"name"`
	// Specifies the name of the Resource Group in which the Maps Account is located.
	ResourceGroupName pulumi.StringInput    `pulumi:"resourceGroupName"`
	Tags              pulumi.StringMapInput `pulumi:"tags"`
}

A collection of arguments for invoking getAccount.

func (LookupAccountOutputArgs) ElementType

func (LookupAccountOutputArgs) ElementType() reflect.Type

type LookupAccountResult

type LookupAccountResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id   string `pulumi:"id"`
	Name string `pulumi:"name"`
	// The primary key used to authenticate and authorize access to the Maps REST APIs.
	PrimaryAccessKey  string `pulumi:"primaryAccessKey"`
	ResourceGroupName string `pulumi:"resourceGroupName"`
	// The primary key used to authenticate and authorize access to the Maps REST APIs. The second key is given to provide seamless key regeneration.
	SecondaryAccessKey string `pulumi:"secondaryAccessKey"`
	// The SKU of the Azure Maps Account.
	SkuName string            `pulumi:"skuName"`
	Tags    map[string]string `pulumi:"tags"`
	// A unique identifier for the Maps Account.
	XMsClientId string `pulumi:"xMsClientId"`
}

A collection of values returned by getAccount.

func LookupAccount

func LookupAccount(ctx *pulumi.Context, args *LookupAccountArgs, opts ...pulumi.InvokeOption) (*LookupAccountResult, error)

Use this data source to access information about an existing Azure Maps Account.

## Example Usage

```go package main

import (

"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 := maps.LookupAccount(ctx, &maps.LookupAccountArgs{
			Name:              "production",
			ResourceGroupName: "maps",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("mapsAccountId", example.Id)
		return nil
	})
}

```

type LookupAccountResultOutput

type LookupAccountResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getAccount.

func (LookupAccountResultOutput) ElementType

func (LookupAccountResultOutput) ElementType() reflect.Type

func (LookupAccountResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (LookupAccountResultOutput) Name

func (LookupAccountResultOutput) PrimaryAccessKey

func (o LookupAccountResultOutput) PrimaryAccessKey() pulumi.StringOutput

The primary key used to authenticate and authorize access to the Maps REST APIs.

func (LookupAccountResultOutput) ResourceGroupName

func (o LookupAccountResultOutput) ResourceGroupName() pulumi.StringOutput

func (LookupAccountResultOutput) SecondaryAccessKey

func (o LookupAccountResultOutput) SecondaryAccessKey() pulumi.StringOutput

The primary key used to authenticate and authorize access to the Maps REST APIs. The second key is given to provide seamless key regeneration.

func (LookupAccountResultOutput) SkuName

The SKU of the Azure Maps Account.

func (LookupAccountResultOutput) Tags

func (LookupAccountResultOutput) ToLookupAccountResultOutput

func (o LookupAccountResultOutput) ToLookupAccountResultOutput() LookupAccountResultOutput

func (LookupAccountResultOutput) ToLookupAccountResultOutputWithContext

func (o LookupAccountResultOutput) ToLookupAccountResultOutputWithContext(ctx context.Context) LookupAccountResultOutput

func (LookupAccountResultOutput) XMsClientId

A unique identifier for the Maps Account.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL