notificationhub

package
v4.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 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 AuthorizationRule

type AuthorizationRule struct {
	pulumi.CustomResourceState

	// Does this Authorization Rule have Listen access to the Notification Hub? Defaults to `false`.
	Listen pulumi.BoolPtrOutput `pulumi:"listen"`
	// Does this Authorization Rule have Manage access to the Notification Hub? Defaults to `false`.
	Manage pulumi.BoolPtrOutput `pulumi:"manage"`
	// The name to use for this Authorization Rule. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// The name of the Notification Hub Namespace in which the Notification Hub exists. Changing this forces a new resource to be created.
	NamespaceName pulumi.StringOutput `pulumi:"namespaceName"`
	// The name of the Notification Hub for which the Authorization Rule should be created. Changing this forces a new resource to be created.
	NotificationHubName pulumi.StringOutput `pulumi:"notificationHubName"`
	// The Primary Access Key associated with this Authorization Rule.
	PrimaryAccessKey pulumi.StringOutput `pulumi:"primaryAccessKey"`
	// The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// The Secondary Access Key associated with this Authorization Rule.
	SecondaryAccessKey pulumi.StringOutput `pulumi:"secondaryAccessKey"`
	// Does this Authorization Rule have Send access to the Notification Hub? Defaults to `false`.
	Send pulumi.BoolPtrOutput `pulumi:"send"`
}

Manages an Authorization Rule associated with a Notification Hub within a Notification Hub Namespace.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/notificationhub"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleNamespace, err := notificationhub.NewNamespace(ctx, "exampleNamespace", &notificationhub.NamespaceArgs{
			ResourceGroupName: exampleResourceGroup.Name,
			Location:          exampleResourceGroup.Location,
			NamespaceType:     pulumi.String("NotificationHub"),
			SkuName:           pulumi.String("Free"),
		})
		if err != nil {
			return err
		}
		exampleHub, err := notificationhub.NewHub(ctx, "exampleHub", &notificationhub.HubArgs{
			NamespaceName:     exampleNamespace.Name,
			ResourceGroupName: exampleResourceGroup.Name,
			Location:          exampleResourceGroup.Location,
		})
		if err != nil {
			return err
		}
		_, err = notificationhub.NewAuthorizationRule(ctx, "exampleAuthorizationRule", &notificationhub.AuthorizationRuleArgs{
			NotificationHubName: exampleHub.Name,
			NamespaceName:       exampleNamespace.Name,
			ResourceGroupName:   exampleResourceGroup.Name,
			Manage:              pulumi.Bool(true),
			Send:                pulumi.Bool(true),
			Listen:              pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Notification Hub Authorization Rule can be imported using the `resource id`, e.g.

```sh

$ pulumi import azure:notificationhub/authorizationRule:AuthorizationRule rule1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/hub1/AuthorizationRules/rule1

```

func GetAuthorizationRule

func GetAuthorizationRule(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AuthorizationRuleState, opts ...pulumi.ResourceOption) (*AuthorizationRule, error)

GetAuthorizationRule gets an existing AuthorizationRule 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 NewAuthorizationRule

func NewAuthorizationRule(ctx *pulumi.Context,
	name string, args *AuthorizationRuleArgs, opts ...pulumi.ResourceOption) (*AuthorizationRule, error)

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

func (*AuthorizationRule) ElementType

func (*AuthorizationRule) ElementType() reflect.Type

func (*AuthorizationRule) ToAuthorizationRuleOutput

func (i *AuthorizationRule) ToAuthorizationRuleOutput() AuthorizationRuleOutput

func (*AuthorizationRule) ToAuthorizationRuleOutputWithContext

func (i *AuthorizationRule) ToAuthorizationRuleOutputWithContext(ctx context.Context) AuthorizationRuleOutput

func (*AuthorizationRule) ToAuthorizationRulePtrOutput

func (i *AuthorizationRule) ToAuthorizationRulePtrOutput() AuthorizationRulePtrOutput

func (*AuthorizationRule) ToAuthorizationRulePtrOutputWithContext

func (i *AuthorizationRule) ToAuthorizationRulePtrOutputWithContext(ctx context.Context) AuthorizationRulePtrOutput

type AuthorizationRuleArgs

type AuthorizationRuleArgs struct {
	// Does this Authorization Rule have Listen access to the Notification Hub? Defaults to `false`.
	Listen pulumi.BoolPtrInput
	// Does this Authorization Rule have Manage access to the Notification Hub? Defaults to `false`.
	Manage pulumi.BoolPtrInput
	// The name to use for this Authorization Rule. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The name of the Notification Hub Namespace in which the Notification Hub exists. Changing this forces a new resource to be created.
	NamespaceName pulumi.StringInput
	// The name of the Notification Hub for which the Authorization Rule should be created. Changing this forces a new resource to be created.
	NotificationHubName pulumi.StringInput
	// The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringInput
	// Does this Authorization Rule have Send access to the Notification Hub? Defaults to `false`.
	Send pulumi.BoolPtrInput
}

The set of arguments for constructing a AuthorizationRule resource.

func (AuthorizationRuleArgs) ElementType

func (AuthorizationRuleArgs) ElementType() reflect.Type

type AuthorizationRuleArray

type AuthorizationRuleArray []AuthorizationRuleInput

func (AuthorizationRuleArray) ElementType

func (AuthorizationRuleArray) ElementType() reflect.Type

func (AuthorizationRuleArray) ToAuthorizationRuleArrayOutput

func (i AuthorizationRuleArray) ToAuthorizationRuleArrayOutput() AuthorizationRuleArrayOutput

func (AuthorizationRuleArray) ToAuthorizationRuleArrayOutputWithContext

func (i AuthorizationRuleArray) ToAuthorizationRuleArrayOutputWithContext(ctx context.Context) AuthorizationRuleArrayOutput

type AuthorizationRuleArrayInput

type AuthorizationRuleArrayInput interface {
	pulumi.Input

	ToAuthorizationRuleArrayOutput() AuthorizationRuleArrayOutput
	ToAuthorizationRuleArrayOutputWithContext(context.Context) AuthorizationRuleArrayOutput
}

AuthorizationRuleArrayInput is an input type that accepts AuthorizationRuleArray and AuthorizationRuleArrayOutput values. You can construct a concrete instance of `AuthorizationRuleArrayInput` via:

AuthorizationRuleArray{ AuthorizationRuleArgs{...} }

type AuthorizationRuleArrayOutput

type AuthorizationRuleArrayOutput struct{ *pulumi.OutputState }

func (AuthorizationRuleArrayOutput) ElementType

func (AuthorizationRuleArrayOutput) Index

func (AuthorizationRuleArrayOutput) ToAuthorizationRuleArrayOutput

func (o AuthorizationRuleArrayOutput) ToAuthorizationRuleArrayOutput() AuthorizationRuleArrayOutput

func (AuthorizationRuleArrayOutput) ToAuthorizationRuleArrayOutputWithContext

func (o AuthorizationRuleArrayOutput) ToAuthorizationRuleArrayOutputWithContext(ctx context.Context) AuthorizationRuleArrayOutput

type AuthorizationRuleInput

type AuthorizationRuleInput interface {
	pulumi.Input

	ToAuthorizationRuleOutput() AuthorizationRuleOutput
	ToAuthorizationRuleOutputWithContext(ctx context.Context) AuthorizationRuleOutput
}

type AuthorizationRuleMap

type AuthorizationRuleMap map[string]AuthorizationRuleInput

func (AuthorizationRuleMap) ElementType

func (AuthorizationRuleMap) ElementType() reflect.Type

func (AuthorizationRuleMap) ToAuthorizationRuleMapOutput

func (i AuthorizationRuleMap) ToAuthorizationRuleMapOutput() AuthorizationRuleMapOutput

func (AuthorizationRuleMap) ToAuthorizationRuleMapOutputWithContext

func (i AuthorizationRuleMap) ToAuthorizationRuleMapOutputWithContext(ctx context.Context) AuthorizationRuleMapOutput

type AuthorizationRuleMapInput

type AuthorizationRuleMapInput interface {
	pulumi.Input

	ToAuthorizationRuleMapOutput() AuthorizationRuleMapOutput
	ToAuthorizationRuleMapOutputWithContext(context.Context) AuthorizationRuleMapOutput
}

AuthorizationRuleMapInput is an input type that accepts AuthorizationRuleMap and AuthorizationRuleMapOutput values. You can construct a concrete instance of `AuthorizationRuleMapInput` via:

AuthorizationRuleMap{ "key": AuthorizationRuleArgs{...} }

type AuthorizationRuleMapOutput

type AuthorizationRuleMapOutput struct{ *pulumi.OutputState }

func (AuthorizationRuleMapOutput) ElementType

func (AuthorizationRuleMapOutput) ElementType() reflect.Type

func (AuthorizationRuleMapOutput) MapIndex

func (AuthorizationRuleMapOutput) ToAuthorizationRuleMapOutput

func (o AuthorizationRuleMapOutput) ToAuthorizationRuleMapOutput() AuthorizationRuleMapOutput

func (AuthorizationRuleMapOutput) ToAuthorizationRuleMapOutputWithContext

func (o AuthorizationRuleMapOutput) ToAuthorizationRuleMapOutputWithContext(ctx context.Context) AuthorizationRuleMapOutput

type AuthorizationRuleOutput

type AuthorizationRuleOutput struct {
	*pulumi.OutputState
}

func (AuthorizationRuleOutput) ElementType

func (AuthorizationRuleOutput) ElementType() reflect.Type

func (AuthorizationRuleOutput) ToAuthorizationRuleOutput

func (o AuthorizationRuleOutput) ToAuthorizationRuleOutput() AuthorizationRuleOutput

func (AuthorizationRuleOutput) ToAuthorizationRuleOutputWithContext

func (o AuthorizationRuleOutput) ToAuthorizationRuleOutputWithContext(ctx context.Context) AuthorizationRuleOutput

func (AuthorizationRuleOutput) ToAuthorizationRulePtrOutput

func (o AuthorizationRuleOutput) ToAuthorizationRulePtrOutput() AuthorizationRulePtrOutput

func (AuthorizationRuleOutput) ToAuthorizationRulePtrOutputWithContext

func (o AuthorizationRuleOutput) ToAuthorizationRulePtrOutputWithContext(ctx context.Context) AuthorizationRulePtrOutput

type AuthorizationRulePtrInput

type AuthorizationRulePtrInput interface {
	pulumi.Input

	ToAuthorizationRulePtrOutput() AuthorizationRulePtrOutput
	ToAuthorizationRulePtrOutputWithContext(ctx context.Context) AuthorizationRulePtrOutput
}

type AuthorizationRulePtrOutput

type AuthorizationRulePtrOutput struct {
	*pulumi.OutputState
}

func (AuthorizationRulePtrOutput) ElementType

func (AuthorizationRulePtrOutput) ElementType() reflect.Type

func (AuthorizationRulePtrOutput) ToAuthorizationRulePtrOutput

func (o AuthorizationRulePtrOutput) ToAuthorizationRulePtrOutput() AuthorizationRulePtrOutput

func (AuthorizationRulePtrOutput) ToAuthorizationRulePtrOutputWithContext

func (o AuthorizationRulePtrOutput) ToAuthorizationRulePtrOutputWithContext(ctx context.Context) AuthorizationRulePtrOutput

type AuthorizationRuleState

type AuthorizationRuleState struct {
	// Does this Authorization Rule have Listen access to the Notification Hub? Defaults to `false`.
	Listen pulumi.BoolPtrInput
	// Does this Authorization Rule have Manage access to the Notification Hub? Defaults to `false`.
	Manage pulumi.BoolPtrInput
	// The name to use for this Authorization Rule. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The name of the Notification Hub Namespace in which the Notification Hub exists. Changing this forces a new resource to be created.
	NamespaceName pulumi.StringPtrInput
	// The name of the Notification Hub for which the Authorization Rule should be created. Changing this forces a new resource to be created.
	NotificationHubName pulumi.StringPtrInput
	// The Primary Access Key associated with this Authorization Rule.
	PrimaryAccessKey pulumi.StringPtrInput
	// The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringPtrInput
	// The Secondary Access Key associated with this Authorization Rule.
	SecondaryAccessKey pulumi.StringPtrInput
	// Does this Authorization Rule have Send access to the Notification Hub? Defaults to `false`.
	Send pulumi.BoolPtrInput
}

func (AuthorizationRuleState) ElementType

func (AuthorizationRuleState) ElementType() reflect.Type

type GetHubApnsCredential

type GetHubApnsCredential struct {
	// The Application Mode which defines which server the APNS Messages should be sent to. Possible values are `Production` and `Sandbox`.
	ApplicationMode string `pulumi:"applicationMode"`
	// The Bundle ID of the iOS/macOS application to send push notifications for, such as `com.org.example`.
	BundleId string `pulumi:"bundleId"`
	// The Apple Push Notifications Service (APNS) Key.
	KeyId string `pulumi:"keyId"`
	// The ID of the team the Token.
	TeamId string `pulumi:"teamId"`
	// The Push Token associated with the Apple Developer Account.
	Token string `pulumi:"token"`
}

type GetHubApnsCredentialArgs

type GetHubApnsCredentialArgs struct {
	// The Application Mode which defines which server the APNS Messages should be sent to. Possible values are `Production` and `Sandbox`.
	ApplicationMode pulumi.StringInput `pulumi:"applicationMode"`
	// The Bundle ID of the iOS/macOS application to send push notifications for, such as `com.org.example`.
	BundleId pulumi.StringInput `pulumi:"bundleId"`
	// The Apple Push Notifications Service (APNS) Key.
	KeyId pulumi.StringInput `pulumi:"keyId"`
	// The ID of the team the Token.
	TeamId pulumi.StringInput `pulumi:"teamId"`
	// The Push Token associated with the Apple Developer Account.
	Token pulumi.StringInput `pulumi:"token"`
}

func (GetHubApnsCredentialArgs) ElementType

func (GetHubApnsCredentialArgs) ElementType() reflect.Type

func (GetHubApnsCredentialArgs) ToGetHubApnsCredentialOutput

func (i GetHubApnsCredentialArgs) ToGetHubApnsCredentialOutput() GetHubApnsCredentialOutput

func (GetHubApnsCredentialArgs) ToGetHubApnsCredentialOutputWithContext

func (i GetHubApnsCredentialArgs) ToGetHubApnsCredentialOutputWithContext(ctx context.Context) GetHubApnsCredentialOutput

type GetHubApnsCredentialArray

type GetHubApnsCredentialArray []GetHubApnsCredentialInput

func (GetHubApnsCredentialArray) ElementType

func (GetHubApnsCredentialArray) ElementType() reflect.Type

func (GetHubApnsCredentialArray) ToGetHubApnsCredentialArrayOutput

func (i GetHubApnsCredentialArray) ToGetHubApnsCredentialArrayOutput() GetHubApnsCredentialArrayOutput

func (GetHubApnsCredentialArray) ToGetHubApnsCredentialArrayOutputWithContext

func (i GetHubApnsCredentialArray) ToGetHubApnsCredentialArrayOutputWithContext(ctx context.Context) GetHubApnsCredentialArrayOutput

type GetHubApnsCredentialArrayInput

type GetHubApnsCredentialArrayInput interface {
	pulumi.Input

	ToGetHubApnsCredentialArrayOutput() GetHubApnsCredentialArrayOutput
	ToGetHubApnsCredentialArrayOutputWithContext(context.Context) GetHubApnsCredentialArrayOutput
}

GetHubApnsCredentialArrayInput is an input type that accepts GetHubApnsCredentialArray and GetHubApnsCredentialArrayOutput values. You can construct a concrete instance of `GetHubApnsCredentialArrayInput` via:

GetHubApnsCredentialArray{ GetHubApnsCredentialArgs{...} }

type GetHubApnsCredentialArrayOutput

type GetHubApnsCredentialArrayOutput struct{ *pulumi.OutputState }

func (GetHubApnsCredentialArrayOutput) ElementType

func (GetHubApnsCredentialArrayOutput) Index

func (GetHubApnsCredentialArrayOutput) ToGetHubApnsCredentialArrayOutput

func (o GetHubApnsCredentialArrayOutput) ToGetHubApnsCredentialArrayOutput() GetHubApnsCredentialArrayOutput

func (GetHubApnsCredentialArrayOutput) ToGetHubApnsCredentialArrayOutputWithContext

func (o GetHubApnsCredentialArrayOutput) ToGetHubApnsCredentialArrayOutputWithContext(ctx context.Context) GetHubApnsCredentialArrayOutput

type GetHubApnsCredentialInput

type GetHubApnsCredentialInput interface {
	pulumi.Input

	ToGetHubApnsCredentialOutput() GetHubApnsCredentialOutput
	ToGetHubApnsCredentialOutputWithContext(context.Context) GetHubApnsCredentialOutput
}

GetHubApnsCredentialInput is an input type that accepts GetHubApnsCredentialArgs and GetHubApnsCredentialOutput values. You can construct a concrete instance of `GetHubApnsCredentialInput` via:

GetHubApnsCredentialArgs{...}

type GetHubApnsCredentialOutput

type GetHubApnsCredentialOutput struct{ *pulumi.OutputState }

func (GetHubApnsCredentialOutput) ApplicationMode

func (o GetHubApnsCredentialOutput) ApplicationMode() pulumi.StringOutput

The Application Mode which defines which server the APNS Messages should be sent to. Possible values are `Production` and `Sandbox`.

func (GetHubApnsCredentialOutput) BundleId

The Bundle ID of the iOS/macOS application to send push notifications for, such as `com.org.example`.

func (GetHubApnsCredentialOutput) ElementType

func (GetHubApnsCredentialOutput) ElementType() reflect.Type

func (GetHubApnsCredentialOutput) KeyId

The Apple Push Notifications Service (APNS) Key.

func (GetHubApnsCredentialOutput) TeamId

The ID of the team the Token.

func (GetHubApnsCredentialOutput) ToGetHubApnsCredentialOutput

func (o GetHubApnsCredentialOutput) ToGetHubApnsCredentialOutput() GetHubApnsCredentialOutput

func (GetHubApnsCredentialOutput) ToGetHubApnsCredentialOutputWithContext

func (o GetHubApnsCredentialOutput) ToGetHubApnsCredentialOutputWithContext(ctx context.Context) GetHubApnsCredentialOutput

func (GetHubApnsCredentialOutput) Token

The Push Token associated with the Apple Developer Account.

type GetHubGcmCredential

type GetHubGcmCredential struct {
	// The API Key associated with the Google Cloud Messaging service.
	ApiKey string `pulumi:"apiKey"`
}

type GetHubGcmCredentialArgs

type GetHubGcmCredentialArgs struct {
	// The API Key associated with the Google Cloud Messaging service.
	ApiKey pulumi.StringInput `pulumi:"apiKey"`
}

func (GetHubGcmCredentialArgs) ElementType

func (GetHubGcmCredentialArgs) ElementType() reflect.Type

func (GetHubGcmCredentialArgs) ToGetHubGcmCredentialOutput

func (i GetHubGcmCredentialArgs) ToGetHubGcmCredentialOutput() GetHubGcmCredentialOutput

func (GetHubGcmCredentialArgs) ToGetHubGcmCredentialOutputWithContext

func (i GetHubGcmCredentialArgs) ToGetHubGcmCredentialOutputWithContext(ctx context.Context) GetHubGcmCredentialOutput

type GetHubGcmCredentialArray

type GetHubGcmCredentialArray []GetHubGcmCredentialInput

func (GetHubGcmCredentialArray) ElementType

func (GetHubGcmCredentialArray) ElementType() reflect.Type

func (GetHubGcmCredentialArray) ToGetHubGcmCredentialArrayOutput

func (i GetHubGcmCredentialArray) ToGetHubGcmCredentialArrayOutput() GetHubGcmCredentialArrayOutput

func (GetHubGcmCredentialArray) ToGetHubGcmCredentialArrayOutputWithContext

func (i GetHubGcmCredentialArray) ToGetHubGcmCredentialArrayOutputWithContext(ctx context.Context) GetHubGcmCredentialArrayOutput

type GetHubGcmCredentialArrayInput

type GetHubGcmCredentialArrayInput interface {
	pulumi.Input

	ToGetHubGcmCredentialArrayOutput() GetHubGcmCredentialArrayOutput
	ToGetHubGcmCredentialArrayOutputWithContext(context.Context) GetHubGcmCredentialArrayOutput
}

GetHubGcmCredentialArrayInput is an input type that accepts GetHubGcmCredentialArray and GetHubGcmCredentialArrayOutput values. You can construct a concrete instance of `GetHubGcmCredentialArrayInput` via:

GetHubGcmCredentialArray{ GetHubGcmCredentialArgs{...} }

type GetHubGcmCredentialArrayOutput

type GetHubGcmCredentialArrayOutput struct{ *pulumi.OutputState }

func (GetHubGcmCredentialArrayOutput) ElementType

func (GetHubGcmCredentialArrayOutput) Index

func (GetHubGcmCredentialArrayOutput) ToGetHubGcmCredentialArrayOutput

func (o GetHubGcmCredentialArrayOutput) ToGetHubGcmCredentialArrayOutput() GetHubGcmCredentialArrayOutput

func (GetHubGcmCredentialArrayOutput) ToGetHubGcmCredentialArrayOutputWithContext

func (o GetHubGcmCredentialArrayOutput) ToGetHubGcmCredentialArrayOutputWithContext(ctx context.Context) GetHubGcmCredentialArrayOutput

type GetHubGcmCredentialInput

type GetHubGcmCredentialInput interface {
	pulumi.Input

	ToGetHubGcmCredentialOutput() GetHubGcmCredentialOutput
	ToGetHubGcmCredentialOutputWithContext(context.Context) GetHubGcmCredentialOutput
}

GetHubGcmCredentialInput is an input type that accepts GetHubGcmCredentialArgs and GetHubGcmCredentialOutput values. You can construct a concrete instance of `GetHubGcmCredentialInput` via:

GetHubGcmCredentialArgs{...}

type GetHubGcmCredentialOutput

type GetHubGcmCredentialOutput struct{ *pulumi.OutputState }

func (GetHubGcmCredentialOutput) ApiKey

The API Key associated with the Google Cloud Messaging service.

func (GetHubGcmCredentialOutput) ElementType

func (GetHubGcmCredentialOutput) ElementType() reflect.Type

func (GetHubGcmCredentialOutput) ToGetHubGcmCredentialOutput

func (o GetHubGcmCredentialOutput) ToGetHubGcmCredentialOutput() GetHubGcmCredentialOutput

func (GetHubGcmCredentialOutput) ToGetHubGcmCredentialOutputWithContext

func (o GetHubGcmCredentialOutput) ToGetHubGcmCredentialOutputWithContext(ctx context.Context) GetHubGcmCredentialOutput

type GetNamespaceSku

type GetNamespaceSku struct {
	// Specifies the Name of the Notification Hub Namespace.
	Name string `pulumi:"name"`
}

type GetNamespaceSkuArgs

type GetNamespaceSkuArgs struct {
	// Specifies the Name of the Notification Hub Namespace.
	Name pulumi.StringInput `pulumi:"name"`
}

func (GetNamespaceSkuArgs) ElementType

func (GetNamespaceSkuArgs) ElementType() reflect.Type

func (GetNamespaceSkuArgs) ToGetNamespaceSkuOutput

func (i GetNamespaceSkuArgs) ToGetNamespaceSkuOutput() GetNamespaceSkuOutput

func (GetNamespaceSkuArgs) ToGetNamespaceSkuOutputWithContext

func (i GetNamespaceSkuArgs) ToGetNamespaceSkuOutputWithContext(ctx context.Context) GetNamespaceSkuOutput

type GetNamespaceSkuInput

type GetNamespaceSkuInput interface {
	pulumi.Input

	ToGetNamespaceSkuOutput() GetNamespaceSkuOutput
	ToGetNamespaceSkuOutputWithContext(context.Context) GetNamespaceSkuOutput
}

GetNamespaceSkuInput is an input type that accepts GetNamespaceSkuArgs and GetNamespaceSkuOutput values. You can construct a concrete instance of `GetNamespaceSkuInput` via:

GetNamespaceSkuArgs{...}

type GetNamespaceSkuOutput

type GetNamespaceSkuOutput struct{ *pulumi.OutputState }

func (GetNamespaceSkuOutput) ElementType

func (GetNamespaceSkuOutput) ElementType() reflect.Type

func (GetNamespaceSkuOutput) Name

Specifies the Name of the Notification Hub Namespace.

func (GetNamespaceSkuOutput) ToGetNamespaceSkuOutput

func (o GetNamespaceSkuOutput) ToGetNamespaceSkuOutput() GetNamespaceSkuOutput

func (GetNamespaceSkuOutput) ToGetNamespaceSkuOutputWithContext

func (o GetNamespaceSkuOutput) ToGetNamespaceSkuOutputWithContext(ctx context.Context) GetNamespaceSkuOutput

type Hub

type Hub struct {
	pulumi.CustomResourceState

	// A `apnsCredential` block as defined below.
	ApnsCredential HubApnsCredentialPtrOutput `pulumi:"apnsCredential"`
	// A `gcmCredential` block as defined below.
	GcmCredential HubGcmCredentialPtrOutput `pulumi:"gcmCredential"`
	// The Azure Region in which this Notification Hub Namespace exists. Changing this forces a new resource to be created.
	Location pulumi.StringOutput `pulumi:"location"`
	// The name to use for this Notification Hub. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// The name of the Notification Hub Namespace in which to create this Notification Hub. Changing this forces a new resource to be created.
	NamespaceName pulumi.StringOutput `pulumi:"namespaceName"`
	// The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
}

Manages a Notification Hub within a Notification Hub Namespace.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/notificationhub"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleNamespace, err := notificationhub.NewNamespace(ctx, "exampleNamespace", &notificationhub.NamespaceArgs{
			ResourceGroupName: exampleResourceGroup.Name,
			Location:          exampleResourceGroup.Location,
			NamespaceType:     pulumi.String("NotificationHub"),
			SkuName:           pulumi.String("Free"),
		})
		if err != nil {
			return err
		}
		_, err = notificationhub.NewHub(ctx, "exampleHub", &notificationhub.HubArgs{
			NamespaceName:     exampleNamespace.Name,
			ResourceGroupName: exampleResourceGroup.Name,
			Location:          exampleResourceGroup.Location,
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Notification Hubs can be imported using the `resource id`, e.g.

```sh

$ pulumi import azure:notificationhub/hub:Hub hub1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/hub1

```

func GetHub

func GetHub(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *HubState, opts ...pulumi.ResourceOption) (*Hub, error)

GetHub gets an existing Hub 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 NewHub

func NewHub(ctx *pulumi.Context,
	name string, args *HubArgs, opts ...pulumi.ResourceOption) (*Hub, error)

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

func (*Hub) ElementType

func (*Hub) ElementType() reflect.Type

func (*Hub) ToHubOutput

func (i *Hub) ToHubOutput() HubOutput

func (*Hub) ToHubOutputWithContext

func (i *Hub) ToHubOutputWithContext(ctx context.Context) HubOutput

func (*Hub) ToHubPtrOutput

func (i *Hub) ToHubPtrOutput() HubPtrOutput

func (*Hub) ToHubPtrOutputWithContext

func (i *Hub) ToHubPtrOutputWithContext(ctx context.Context) HubPtrOutput

type HubApnsCredential

type HubApnsCredential struct {
	// The Application Mode which defines which server the APNS Messages should be sent to. Possible values are `Production` and `Sandbox`.
	ApplicationMode string `pulumi:"applicationMode"`
	// The Bundle ID of the iOS/macOS application to send push notifications for, such as `com.org.example`.
	BundleId string `pulumi:"bundleId"`
	// The Apple Push Notifications Service (APNS) Key.
	KeyId string `pulumi:"keyId"`
	// The ID of the team the Token.
	TeamId string `pulumi:"teamId"`
	// The Push Token associated with the Apple Developer Account. This is the contents of the `key` downloaded from [the Apple Developer Portal](https://developer.apple.com/account/ios/authkey/) between the `-----BEGIN PRIVATE KEY-----` and `-----END PRIVATE KEY-----` blocks.
	Token string `pulumi:"token"`
}

type HubApnsCredentialArgs

type HubApnsCredentialArgs struct {
	// The Application Mode which defines which server the APNS Messages should be sent to. Possible values are `Production` and `Sandbox`.
	ApplicationMode pulumi.StringInput `pulumi:"applicationMode"`
	// The Bundle ID of the iOS/macOS application to send push notifications for, such as `com.org.example`.
	BundleId pulumi.StringInput `pulumi:"bundleId"`
	// The Apple Push Notifications Service (APNS) Key.
	KeyId pulumi.StringInput `pulumi:"keyId"`
	// The ID of the team the Token.
	TeamId pulumi.StringInput `pulumi:"teamId"`
	// The Push Token associated with the Apple Developer Account. This is the contents of the `key` downloaded from [the Apple Developer Portal](https://developer.apple.com/account/ios/authkey/) between the `-----BEGIN PRIVATE KEY-----` and `-----END PRIVATE KEY-----` blocks.
	Token pulumi.StringInput `pulumi:"token"`
}

func (HubApnsCredentialArgs) ElementType

func (HubApnsCredentialArgs) ElementType() reflect.Type

func (HubApnsCredentialArgs) ToHubApnsCredentialOutput

func (i HubApnsCredentialArgs) ToHubApnsCredentialOutput() HubApnsCredentialOutput

func (HubApnsCredentialArgs) ToHubApnsCredentialOutputWithContext

func (i HubApnsCredentialArgs) ToHubApnsCredentialOutputWithContext(ctx context.Context) HubApnsCredentialOutput

func (HubApnsCredentialArgs) ToHubApnsCredentialPtrOutput

func (i HubApnsCredentialArgs) ToHubApnsCredentialPtrOutput() HubApnsCredentialPtrOutput

func (HubApnsCredentialArgs) ToHubApnsCredentialPtrOutputWithContext

func (i HubApnsCredentialArgs) ToHubApnsCredentialPtrOutputWithContext(ctx context.Context) HubApnsCredentialPtrOutput

type HubApnsCredentialInput

type HubApnsCredentialInput interface {
	pulumi.Input

	ToHubApnsCredentialOutput() HubApnsCredentialOutput
	ToHubApnsCredentialOutputWithContext(context.Context) HubApnsCredentialOutput
}

HubApnsCredentialInput is an input type that accepts HubApnsCredentialArgs and HubApnsCredentialOutput values. You can construct a concrete instance of `HubApnsCredentialInput` via:

HubApnsCredentialArgs{...}

type HubApnsCredentialOutput

type HubApnsCredentialOutput struct{ *pulumi.OutputState }

func (HubApnsCredentialOutput) ApplicationMode

func (o HubApnsCredentialOutput) ApplicationMode() pulumi.StringOutput

The Application Mode which defines which server the APNS Messages should be sent to. Possible values are `Production` and `Sandbox`.

func (HubApnsCredentialOutput) BundleId

The Bundle ID of the iOS/macOS application to send push notifications for, such as `com.org.example`.

func (HubApnsCredentialOutput) ElementType

func (HubApnsCredentialOutput) ElementType() reflect.Type

func (HubApnsCredentialOutput) KeyId

The Apple Push Notifications Service (APNS) Key.

func (HubApnsCredentialOutput) TeamId

The ID of the team the Token.

func (HubApnsCredentialOutput) ToHubApnsCredentialOutput

func (o HubApnsCredentialOutput) ToHubApnsCredentialOutput() HubApnsCredentialOutput

func (HubApnsCredentialOutput) ToHubApnsCredentialOutputWithContext

func (o HubApnsCredentialOutput) ToHubApnsCredentialOutputWithContext(ctx context.Context) HubApnsCredentialOutput

func (HubApnsCredentialOutput) ToHubApnsCredentialPtrOutput

func (o HubApnsCredentialOutput) ToHubApnsCredentialPtrOutput() HubApnsCredentialPtrOutput

func (HubApnsCredentialOutput) ToHubApnsCredentialPtrOutputWithContext

func (o HubApnsCredentialOutput) ToHubApnsCredentialPtrOutputWithContext(ctx context.Context) HubApnsCredentialPtrOutput

func (HubApnsCredentialOutput) Token

The Push Token associated with the Apple Developer Account. This is the contents of the `key` downloaded from [the Apple Developer Portal](https://developer.apple.com/account/ios/authkey/) between the `-----BEGIN PRIVATE KEY-----` and `-----END PRIVATE KEY-----` blocks.

type HubApnsCredentialPtrInput

type HubApnsCredentialPtrInput interface {
	pulumi.Input

	ToHubApnsCredentialPtrOutput() HubApnsCredentialPtrOutput
	ToHubApnsCredentialPtrOutputWithContext(context.Context) HubApnsCredentialPtrOutput
}

HubApnsCredentialPtrInput is an input type that accepts HubApnsCredentialArgs, HubApnsCredentialPtr and HubApnsCredentialPtrOutput values. You can construct a concrete instance of `HubApnsCredentialPtrInput` via:

        HubApnsCredentialArgs{...}

or:

        nil

type HubApnsCredentialPtrOutput

type HubApnsCredentialPtrOutput struct{ *pulumi.OutputState }

func (HubApnsCredentialPtrOutput) ApplicationMode

The Application Mode which defines which server the APNS Messages should be sent to. Possible values are `Production` and `Sandbox`.

func (HubApnsCredentialPtrOutput) BundleId

The Bundle ID of the iOS/macOS application to send push notifications for, such as `com.org.example`.

func (HubApnsCredentialPtrOutput) Elem

func (HubApnsCredentialPtrOutput) ElementType

func (HubApnsCredentialPtrOutput) ElementType() reflect.Type

func (HubApnsCredentialPtrOutput) KeyId

The Apple Push Notifications Service (APNS) Key.

func (HubApnsCredentialPtrOutput) TeamId

The ID of the team the Token.

func (HubApnsCredentialPtrOutput) ToHubApnsCredentialPtrOutput

func (o HubApnsCredentialPtrOutput) ToHubApnsCredentialPtrOutput() HubApnsCredentialPtrOutput

func (HubApnsCredentialPtrOutput) ToHubApnsCredentialPtrOutputWithContext

func (o HubApnsCredentialPtrOutput) ToHubApnsCredentialPtrOutputWithContext(ctx context.Context) HubApnsCredentialPtrOutput

func (HubApnsCredentialPtrOutput) Token

The Push Token associated with the Apple Developer Account. This is the contents of the `key` downloaded from [the Apple Developer Portal](https://developer.apple.com/account/ios/authkey/) between the `-----BEGIN PRIVATE KEY-----` and `-----END PRIVATE KEY-----` blocks.

type HubArgs

type HubArgs struct {
	// A `apnsCredential` block as defined below.
	ApnsCredential HubApnsCredentialPtrInput
	// A `gcmCredential` block as defined below.
	GcmCredential HubGcmCredentialPtrInput
	// The Azure Region in which this Notification Hub Namespace exists. Changing this forces a new resource to be created.
	Location pulumi.StringPtrInput
	// The name to use for this Notification Hub. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The name of the Notification Hub Namespace in which to create this Notification Hub. Changing this forces a new resource to be created.
	NamespaceName pulumi.StringInput
	// The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapInput
}

The set of arguments for constructing a Hub resource.

func (HubArgs) ElementType

func (HubArgs) ElementType() reflect.Type

type HubArray

type HubArray []HubInput

func (HubArray) ElementType

func (HubArray) ElementType() reflect.Type

func (HubArray) ToHubArrayOutput

func (i HubArray) ToHubArrayOutput() HubArrayOutput

func (HubArray) ToHubArrayOutputWithContext

func (i HubArray) ToHubArrayOutputWithContext(ctx context.Context) HubArrayOutput

type HubArrayInput

type HubArrayInput interface {
	pulumi.Input

	ToHubArrayOutput() HubArrayOutput
	ToHubArrayOutputWithContext(context.Context) HubArrayOutput
}

HubArrayInput is an input type that accepts HubArray and HubArrayOutput values. You can construct a concrete instance of `HubArrayInput` via:

HubArray{ HubArgs{...} }

type HubArrayOutput

type HubArrayOutput struct{ *pulumi.OutputState }

func (HubArrayOutput) ElementType

func (HubArrayOutput) ElementType() reflect.Type

func (HubArrayOutput) Index

func (HubArrayOutput) ToHubArrayOutput

func (o HubArrayOutput) ToHubArrayOutput() HubArrayOutput

func (HubArrayOutput) ToHubArrayOutputWithContext

func (o HubArrayOutput) ToHubArrayOutputWithContext(ctx context.Context) HubArrayOutput

type HubGcmCredential

type HubGcmCredential struct {
	// The API Key associated with the Google Cloud Messaging service.
	ApiKey string `pulumi:"apiKey"`
}

type HubGcmCredentialArgs

type HubGcmCredentialArgs struct {
	// The API Key associated with the Google Cloud Messaging service.
	ApiKey pulumi.StringInput `pulumi:"apiKey"`
}

func (HubGcmCredentialArgs) ElementType

func (HubGcmCredentialArgs) ElementType() reflect.Type

func (HubGcmCredentialArgs) ToHubGcmCredentialOutput

func (i HubGcmCredentialArgs) ToHubGcmCredentialOutput() HubGcmCredentialOutput

func (HubGcmCredentialArgs) ToHubGcmCredentialOutputWithContext

func (i HubGcmCredentialArgs) ToHubGcmCredentialOutputWithContext(ctx context.Context) HubGcmCredentialOutput

func (HubGcmCredentialArgs) ToHubGcmCredentialPtrOutput

func (i HubGcmCredentialArgs) ToHubGcmCredentialPtrOutput() HubGcmCredentialPtrOutput

func (HubGcmCredentialArgs) ToHubGcmCredentialPtrOutputWithContext

func (i HubGcmCredentialArgs) ToHubGcmCredentialPtrOutputWithContext(ctx context.Context) HubGcmCredentialPtrOutput

type HubGcmCredentialInput

type HubGcmCredentialInput interface {
	pulumi.Input

	ToHubGcmCredentialOutput() HubGcmCredentialOutput
	ToHubGcmCredentialOutputWithContext(context.Context) HubGcmCredentialOutput
}

HubGcmCredentialInput is an input type that accepts HubGcmCredentialArgs and HubGcmCredentialOutput values. You can construct a concrete instance of `HubGcmCredentialInput` via:

HubGcmCredentialArgs{...}

type HubGcmCredentialOutput

type HubGcmCredentialOutput struct{ *pulumi.OutputState }

func (HubGcmCredentialOutput) ApiKey

The API Key associated with the Google Cloud Messaging service.

func (HubGcmCredentialOutput) ElementType

func (HubGcmCredentialOutput) ElementType() reflect.Type

func (HubGcmCredentialOutput) ToHubGcmCredentialOutput

func (o HubGcmCredentialOutput) ToHubGcmCredentialOutput() HubGcmCredentialOutput

func (HubGcmCredentialOutput) ToHubGcmCredentialOutputWithContext

func (o HubGcmCredentialOutput) ToHubGcmCredentialOutputWithContext(ctx context.Context) HubGcmCredentialOutput

func (HubGcmCredentialOutput) ToHubGcmCredentialPtrOutput

func (o HubGcmCredentialOutput) ToHubGcmCredentialPtrOutput() HubGcmCredentialPtrOutput

func (HubGcmCredentialOutput) ToHubGcmCredentialPtrOutputWithContext

func (o HubGcmCredentialOutput) ToHubGcmCredentialPtrOutputWithContext(ctx context.Context) HubGcmCredentialPtrOutput

type HubGcmCredentialPtrInput

type HubGcmCredentialPtrInput interface {
	pulumi.Input

	ToHubGcmCredentialPtrOutput() HubGcmCredentialPtrOutput
	ToHubGcmCredentialPtrOutputWithContext(context.Context) HubGcmCredentialPtrOutput
}

HubGcmCredentialPtrInput is an input type that accepts HubGcmCredentialArgs, HubGcmCredentialPtr and HubGcmCredentialPtrOutput values. You can construct a concrete instance of `HubGcmCredentialPtrInput` via:

        HubGcmCredentialArgs{...}

or:

        nil

type HubGcmCredentialPtrOutput

type HubGcmCredentialPtrOutput struct{ *pulumi.OutputState }

func (HubGcmCredentialPtrOutput) ApiKey

The API Key associated with the Google Cloud Messaging service.

func (HubGcmCredentialPtrOutput) Elem

func (HubGcmCredentialPtrOutput) ElementType

func (HubGcmCredentialPtrOutput) ElementType() reflect.Type

func (HubGcmCredentialPtrOutput) ToHubGcmCredentialPtrOutput

func (o HubGcmCredentialPtrOutput) ToHubGcmCredentialPtrOutput() HubGcmCredentialPtrOutput

func (HubGcmCredentialPtrOutput) ToHubGcmCredentialPtrOutputWithContext

func (o HubGcmCredentialPtrOutput) ToHubGcmCredentialPtrOutputWithContext(ctx context.Context) HubGcmCredentialPtrOutput

type HubInput

type HubInput interface {
	pulumi.Input

	ToHubOutput() HubOutput
	ToHubOutputWithContext(ctx context.Context) HubOutput
}

type HubMap

type HubMap map[string]HubInput

func (HubMap) ElementType

func (HubMap) ElementType() reflect.Type

func (HubMap) ToHubMapOutput

func (i HubMap) ToHubMapOutput() HubMapOutput

func (HubMap) ToHubMapOutputWithContext

func (i HubMap) ToHubMapOutputWithContext(ctx context.Context) HubMapOutput

type HubMapInput

type HubMapInput interface {
	pulumi.Input

	ToHubMapOutput() HubMapOutput
	ToHubMapOutputWithContext(context.Context) HubMapOutput
}

HubMapInput is an input type that accepts HubMap and HubMapOutput values. You can construct a concrete instance of `HubMapInput` via:

HubMap{ "key": HubArgs{...} }

type HubMapOutput

type HubMapOutput struct{ *pulumi.OutputState }

func (HubMapOutput) ElementType

func (HubMapOutput) ElementType() reflect.Type

func (HubMapOutput) MapIndex

func (o HubMapOutput) MapIndex(k pulumi.StringInput) HubOutput

func (HubMapOutput) ToHubMapOutput

func (o HubMapOutput) ToHubMapOutput() HubMapOutput

func (HubMapOutput) ToHubMapOutputWithContext

func (o HubMapOutput) ToHubMapOutputWithContext(ctx context.Context) HubMapOutput

type HubOutput

type HubOutput struct {
	*pulumi.OutputState
}

func (HubOutput) ElementType

func (HubOutput) ElementType() reflect.Type

func (HubOutput) ToHubOutput

func (o HubOutput) ToHubOutput() HubOutput

func (HubOutput) ToHubOutputWithContext

func (o HubOutput) ToHubOutputWithContext(ctx context.Context) HubOutput

func (HubOutput) ToHubPtrOutput

func (o HubOutput) ToHubPtrOutput() HubPtrOutput

func (HubOutput) ToHubPtrOutputWithContext

func (o HubOutput) ToHubPtrOutputWithContext(ctx context.Context) HubPtrOutput

type HubPtrInput

type HubPtrInput interface {
	pulumi.Input

	ToHubPtrOutput() HubPtrOutput
	ToHubPtrOutputWithContext(ctx context.Context) HubPtrOutput
}

type HubPtrOutput

type HubPtrOutput struct {
	*pulumi.OutputState
}

func (HubPtrOutput) ElementType

func (HubPtrOutput) ElementType() reflect.Type

func (HubPtrOutput) ToHubPtrOutput

func (o HubPtrOutput) ToHubPtrOutput() HubPtrOutput

func (HubPtrOutput) ToHubPtrOutputWithContext

func (o HubPtrOutput) ToHubPtrOutputWithContext(ctx context.Context) HubPtrOutput

type HubState

type HubState struct {
	// A `apnsCredential` block as defined below.
	ApnsCredential HubApnsCredentialPtrInput
	// A `gcmCredential` block as defined below.
	GcmCredential HubGcmCredentialPtrInput
	// The Azure Region in which this Notification Hub Namespace exists. Changing this forces a new resource to be created.
	Location pulumi.StringPtrInput
	// The name to use for this Notification Hub. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The name of the Notification Hub Namespace in which to create this Notification Hub. Changing this forces a new resource to be created.
	NamespaceName pulumi.StringPtrInput
	// The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapInput
}

func (HubState) ElementType

func (HubState) ElementType() reflect.Type

type LookupHubArgs

type LookupHubArgs struct {
	// Specifies the Name of the Notification Hub.
	Name string `pulumi:"name"`
	// Specifies the Name of the Notification Hub Namespace which contains the Notification Hub.
	NamespaceName string `pulumi:"namespaceName"`
	// Specifies the Name of the Resource Group within which the Notification Hub exists.
	ResourceGroupName string `pulumi:"resourceGroupName"`
}

A collection of arguments for invoking getHub.

type LookupHubResult

type LookupHubResult struct {
	// A `apnsCredential` block as defined below.
	ApnsCredentials []GetHubApnsCredential `pulumi:"apnsCredentials"`
	// A `gcmCredential` block as defined below.
	GcmCredentials []GetHubGcmCredential `pulumi:"gcmCredentials"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The Azure Region in which this Notification Hub exists.
	Location          string `pulumi:"location"`
	Name              string `pulumi:"name"`
	NamespaceName     string `pulumi:"namespaceName"`
	ResourceGroupName string `pulumi:"resourceGroupName"`
	// A mapping of tags to assign to the resource.
	Tags map[string]string `pulumi:"tags"`
}

A collection of values returned by getHub.

func LookupHub

func LookupHub(ctx *pulumi.Context, args *LookupHubArgs, opts ...pulumi.InvokeOption) (*LookupHubResult, error)

Use this data source to access information about an existing Notification Hub within a Notification Hub Namespace.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/notificationhub"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := notificationhub.LookupHub(ctx, &notificationhub.LookupHubArgs{
			Name:              "notification-hub",
			NamespaceName:     "namespace-name",
			ResourceGroupName: "resource-group-name",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("id", example.Id)
		return nil
	})
}

```

type LookupNamespaceArgs

type LookupNamespaceArgs struct {
	// Specifies the Name of the Notification Hub Namespace.
	Name string `pulumi:"name"`
	// Specifies the Name of the Resource Group within which the Notification Hub exists.
	ResourceGroupName string `pulumi:"resourceGroupName"`
}

A collection of arguments for invoking getNamespace.

type LookupNamespaceResult

type LookupNamespaceResult struct {
	// Is this Notification Hub Namespace enabled?
	Enabled bool `pulumi:"enabled"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The Azure Region in which this Notification Hub Namespace exists.
	Location string `pulumi:"location"`
	// The name of the SKU to use for this Notification Hub Namespace. Possible values are `Free`, `Basic` or `Standard.`
	Name string `pulumi:"name"`
	// The Type of Namespace, such as `Messaging` or `NotificationHub`.
	NamespaceType      string `pulumi:"namespaceType"`
	ResourceGroupName  string `pulumi:"resourceGroupName"`
	ServicebusEndpoint string `pulumi:"servicebusEndpoint"`
	// A `sku` block as defined below.
	Sku GetNamespaceSku `pulumi:"sku"`
	// A mapping of tags to assign to the resource.
	Tags map[string]string `pulumi:"tags"`
}

A collection of values returned by getNamespace.

func LookupNamespace

func LookupNamespace(ctx *pulumi.Context, args *LookupNamespaceArgs, opts ...pulumi.InvokeOption) (*LookupNamespaceResult, error)

Use this data source to access information about an existing Notification Hub Namespace.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/notificationhub"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := notificationhub.LookupNamespace(ctx, &notificationhub.LookupNamespaceArgs{
			Name:              "my-namespace",
			ResourceGroupName: "my-resource-group",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("servicebusEndpoint", example.ServicebusEndpoint)
		return nil
	})
}

```

type Namespace

type Namespace struct {
	pulumi.CustomResourceState

	// Is this Notification Hub Namespace enabled? Defaults to `true`.
	Enabled pulumi.BoolPtrOutput `pulumi:"enabled"`
	// The Azure Region in which this Notification Hub Namespace should be created.
	Location pulumi.StringOutput `pulumi:"location"`
	// The name to use for this Notification Hub Namespace. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// The Type of Namespace - possible values are `Messaging` or `NotificationHub`. Changing this forces a new resource to be created.
	NamespaceType pulumi.StringOutput `pulumi:"namespaceType"`
	// The name of the Resource Group in which the Notification Hub Namespace should exist. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// The ServiceBus Endpoint for this Notification Hub Namespace.
	ServicebusEndpoint pulumi.StringOutput `pulumi:"servicebusEndpoint"`
	// The name of the SKU to use for this Notification Hub Namespace. Possible values are `Free`, `Basic` or `Standard`. Changing this forces a new resource to be created.
	SkuName pulumi.StringOutput `pulumi:"skuName"`
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
}

Manages a Notification Hub Namespace.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/notificationhub"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		_, err = notificationhub.NewNamespace(ctx, "exampleNamespace", &notificationhub.NamespaceArgs{
			ResourceGroupName: exampleResourceGroup.Name,
			Location:          exampleResourceGroup.Location,
			NamespaceType:     pulumi.String("NotificationHub"),
			SkuName:           pulumi.String("Free"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Notification Hub Namespaces can be imported using the `resource id`, e.g.

```sh

$ pulumi import azure:notificationhub/namespace:Namespace namespace1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}

```

func GetNamespace

func GetNamespace(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *NamespaceState, opts ...pulumi.ResourceOption) (*Namespace, error)

GetNamespace gets an existing Namespace 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 NewNamespace

func NewNamespace(ctx *pulumi.Context,
	name string, args *NamespaceArgs, opts ...pulumi.ResourceOption) (*Namespace, error)

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

func (*Namespace) ElementType

func (*Namespace) ElementType() reflect.Type

func (*Namespace) ToNamespaceOutput

func (i *Namespace) ToNamespaceOutput() NamespaceOutput

func (*Namespace) ToNamespaceOutputWithContext

func (i *Namespace) ToNamespaceOutputWithContext(ctx context.Context) NamespaceOutput

func (*Namespace) ToNamespacePtrOutput

func (i *Namespace) ToNamespacePtrOutput() NamespacePtrOutput

func (*Namespace) ToNamespacePtrOutputWithContext

func (i *Namespace) ToNamespacePtrOutputWithContext(ctx context.Context) NamespacePtrOutput

type NamespaceArgs

type NamespaceArgs struct {
	// Is this Notification Hub Namespace enabled? Defaults to `true`.
	Enabled pulumi.BoolPtrInput
	// The Azure Region in which this Notification Hub Namespace should be created.
	Location pulumi.StringPtrInput
	// The name to use for this Notification Hub Namespace. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The Type of Namespace - possible values are `Messaging` or `NotificationHub`. Changing this forces a new resource to be created.
	NamespaceType pulumi.StringInput
	// The name of the Resource Group in which the Notification Hub Namespace should exist. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringInput
	// The name of the SKU to use for this Notification Hub Namespace. Possible values are `Free`, `Basic` or `Standard`. Changing this forces a new resource to be created.
	SkuName pulumi.StringInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapInput
}

The set of arguments for constructing a Namespace resource.

func (NamespaceArgs) ElementType

func (NamespaceArgs) ElementType() reflect.Type

type NamespaceArray

type NamespaceArray []NamespaceInput

func (NamespaceArray) ElementType

func (NamespaceArray) ElementType() reflect.Type

func (NamespaceArray) ToNamespaceArrayOutput

func (i NamespaceArray) ToNamespaceArrayOutput() NamespaceArrayOutput

func (NamespaceArray) ToNamespaceArrayOutputWithContext

func (i NamespaceArray) ToNamespaceArrayOutputWithContext(ctx context.Context) NamespaceArrayOutput

type NamespaceArrayInput

type NamespaceArrayInput interface {
	pulumi.Input

	ToNamespaceArrayOutput() NamespaceArrayOutput
	ToNamespaceArrayOutputWithContext(context.Context) NamespaceArrayOutput
}

NamespaceArrayInput is an input type that accepts NamespaceArray and NamespaceArrayOutput values. You can construct a concrete instance of `NamespaceArrayInput` via:

NamespaceArray{ NamespaceArgs{...} }

type NamespaceArrayOutput

type NamespaceArrayOutput struct{ *pulumi.OutputState }

func (NamespaceArrayOutput) ElementType

func (NamespaceArrayOutput) ElementType() reflect.Type

func (NamespaceArrayOutput) Index

func (NamespaceArrayOutput) ToNamespaceArrayOutput

func (o NamespaceArrayOutput) ToNamespaceArrayOutput() NamespaceArrayOutput

func (NamespaceArrayOutput) ToNamespaceArrayOutputWithContext

func (o NamespaceArrayOutput) ToNamespaceArrayOutputWithContext(ctx context.Context) NamespaceArrayOutput

type NamespaceInput

type NamespaceInput interface {
	pulumi.Input

	ToNamespaceOutput() NamespaceOutput
	ToNamespaceOutputWithContext(ctx context.Context) NamespaceOutput
}

type NamespaceMap

type NamespaceMap map[string]NamespaceInput

func (NamespaceMap) ElementType

func (NamespaceMap) ElementType() reflect.Type

func (NamespaceMap) ToNamespaceMapOutput

func (i NamespaceMap) ToNamespaceMapOutput() NamespaceMapOutput

func (NamespaceMap) ToNamespaceMapOutputWithContext

func (i NamespaceMap) ToNamespaceMapOutputWithContext(ctx context.Context) NamespaceMapOutput

type NamespaceMapInput

type NamespaceMapInput interface {
	pulumi.Input

	ToNamespaceMapOutput() NamespaceMapOutput
	ToNamespaceMapOutputWithContext(context.Context) NamespaceMapOutput
}

NamespaceMapInput is an input type that accepts NamespaceMap and NamespaceMapOutput values. You can construct a concrete instance of `NamespaceMapInput` via:

NamespaceMap{ "key": NamespaceArgs{...} }

type NamespaceMapOutput

type NamespaceMapOutput struct{ *pulumi.OutputState }

func (NamespaceMapOutput) ElementType

func (NamespaceMapOutput) ElementType() reflect.Type

func (NamespaceMapOutput) MapIndex

func (NamespaceMapOutput) ToNamespaceMapOutput

func (o NamespaceMapOutput) ToNamespaceMapOutput() NamespaceMapOutput

func (NamespaceMapOutput) ToNamespaceMapOutputWithContext

func (o NamespaceMapOutput) ToNamespaceMapOutputWithContext(ctx context.Context) NamespaceMapOutput

type NamespaceOutput

type NamespaceOutput struct {
	*pulumi.OutputState
}

func (NamespaceOutput) ElementType

func (NamespaceOutput) ElementType() reflect.Type

func (NamespaceOutput) ToNamespaceOutput

func (o NamespaceOutput) ToNamespaceOutput() NamespaceOutput

func (NamespaceOutput) ToNamespaceOutputWithContext

func (o NamespaceOutput) ToNamespaceOutputWithContext(ctx context.Context) NamespaceOutput

func (NamespaceOutput) ToNamespacePtrOutput

func (o NamespaceOutput) ToNamespacePtrOutput() NamespacePtrOutput

func (NamespaceOutput) ToNamespacePtrOutputWithContext

func (o NamespaceOutput) ToNamespacePtrOutputWithContext(ctx context.Context) NamespacePtrOutput

type NamespacePtrInput

type NamespacePtrInput interface {
	pulumi.Input

	ToNamespacePtrOutput() NamespacePtrOutput
	ToNamespacePtrOutputWithContext(ctx context.Context) NamespacePtrOutput
}

type NamespacePtrOutput

type NamespacePtrOutput struct {
	*pulumi.OutputState
}

func (NamespacePtrOutput) ElementType

func (NamespacePtrOutput) ElementType() reflect.Type

func (NamespacePtrOutput) ToNamespacePtrOutput

func (o NamespacePtrOutput) ToNamespacePtrOutput() NamespacePtrOutput

func (NamespacePtrOutput) ToNamespacePtrOutputWithContext

func (o NamespacePtrOutput) ToNamespacePtrOutputWithContext(ctx context.Context) NamespacePtrOutput

type NamespaceState

type NamespaceState struct {
	// Is this Notification Hub Namespace enabled? Defaults to `true`.
	Enabled pulumi.BoolPtrInput
	// The Azure Region in which this Notification Hub Namespace should be created.
	Location pulumi.StringPtrInput
	// The name to use for this Notification Hub Namespace. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The Type of Namespace - possible values are `Messaging` or `NotificationHub`. Changing this forces a new resource to be created.
	NamespaceType pulumi.StringPtrInput
	// The name of the Resource Group in which the Notification Hub Namespace should exist. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringPtrInput
	// The ServiceBus Endpoint for this Notification Hub Namespace.
	ServicebusEndpoint pulumi.StringPtrInput
	// The name of the SKU to use for this Notification Hub Namespace. Possible values are `Free`, `Basic` or `Standard`. Changing this forces a new resource to be created.
	SkuName pulumi.StringPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapInput
}

func (NamespaceState) ElementType

func (NamespaceState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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