stack

package
v4.42.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 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 HciCluster

type HciCluster struct {
	pulumi.CustomResourceState

	// The Client ID of the Azure Active Directory which is used by the Azure Stack HCI Cluster. Changing this forces a new resource to be created.
	ClientId pulumi.StringOutput `pulumi:"clientId"`
	// The Azure Region where the Azure Stack HCI Cluster should exist. Changing this forces a new resource to be created.
	Location pulumi.StringOutput `pulumi:"location"`
	// The name which should be used for this Azure Stack HCI Cluster. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// The name of the Resource Group where the Azure Stack HCI Cluster should exist. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// A mapping of tags which should be assigned to the Azure Stack HCI Cluster.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// The Tenant ID of the Azure Active Directory which is used by the Azure Stack HCI Cluster. Changing this forces a new resource to be created.
	TenantId pulumi.StringOutput `pulumi:"tenantId"`
}

Manages an Azure Stack HCI Cluster.

## 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/stack"
"github.com/pulumi/pulumi-azuread/sdk/v4/go/azuread"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleApplication, err := azuread.LookupApplication(ctx, &GetApplicationArgs{
			Name: pulumi.StringRef("example-app"),
		}, nil)
		if err != nil {
			return err
		}
		current, err := core.GetClientConfig(ctx, nil, nil)
		if err != nil {
			return err
		}
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		_, err = stack.NewHciCluster(ctx, "exampleHciCluster", &stack.HciClusterArgs{
			ResourceGroupName: exampleResourceGroup.Name,
			Location:          exampleResourceGroup.Location,
			ClientId:          pulumi.String(exampleApplication.ApplicationId),
			TenantId:          pulumi.String(current.TenantId),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Azure Stack HCI Clusters can be imported using the `resource id`, e.g.

```sh

$ pulumi import azure:stack/hciCluster:HciCluster example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AzureStackHCI/clusters/cluster1

```

func GetHciCluster

func GetHciCluster(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *HciClusterState, opts ...pulumi.ResourceOption) (*HciCluster, error)

GetHciCluster gets an existing HciCluster 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 NewHciCluster

func NewHciCluster(ctx *pulumi.Context,
	name string, args *HciClusterArgs, opts ...pulumi.ResourceOption) (*HciCluster, error)

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

func (*HciCluster) ElementType

func (*HciCluster) ElementType() reflect.Type

func (*HciCluster) ToHciClusterOutput

func (i *HciCluster) ToHciClusterOutput() HciClusterOutput

func (*HciCluster) ToHciClusterOutputWithContext

func (i *HciCluster) ToHciClusterOutputWithContext(ctx context.Context) HciClusterOutput

type HciClusterArgs

type HciClusterArgs struct {
	// The Client ID of the Azure Active Directory which is used by the Azure Stack HCI Cluster. Changing this forces a new resource to be created.
	ClientId pulumi.StringInput
	// The Azure Region where the Azure Stack HCI Cluster should exist. Changing this forces a new resource to be created.
	Location pulumi.StringPtrInput
	// The name which should be used for this Azure Stack HCI Cluster. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The name of the Resource Group where the Azure Stack HCI Cluster should exist. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringInput
	// A mapping of tags which should be assigned to the Azure Stack HCI Cluster.
	Tags pulumi.StringMapInput
	// The Tenant ID of the Azure Active Directory which is used by the Azure Stack HCI Cluster. Changing this forces a new resource to be created.
	TenantId pulumi.StringPtrInput
}

The set of arguments for constructing a HciCluster resource.

func (HciClusterArgs) ElementType

func (HciClusterArgs) ElementType() reflect.Type

type HciClusterArray

type HciClusterArray []HciClusterInput

func (HciClusterArray) ElementType

func (HciClusterArray) ElementType() reflect.Type

func (HciClusterArray) ToHciClusterArrayOutput

func (i HciClusterArray) ToHciClusterArrayOutput() HciClusterArrayOutput

func (HciClusterArray) ToHciClusterArrayOutputWithContext

func (i HciClusterArray) ToHciClusterArrayOutputWithContext(ctx context.Context) HciClusterArrayOutput

type HciClusterArrayInput

type HciClusterArrayInput interface {
	pulumi.Input

	ToHciClusterArrayOutput() HciClusterArrayOutput
	ToHciClusterArrayOutputWithContext(context.Context) HciClusterArrayOutput
}

HciClusterArrayInput is an input type that accepts HciClusterArray and HciClusterArrayOutput values. You can construct a concrete instance of `HciClusterArrayInput` via:

HciClusterArray{ HciClusterArgs{...} }

type HciClusterArrayOutput

type HciClusterArrayOutput struct{ *pulumi.OutputState }

func (HciClusterArrayOutput) ElementType

func (HciClusterArrayOutput) ElementType() reflect.Type

func (HciClusterArrayOutput) Index

func (HciClusterArrayOutput) ToHciClusterArrayOutput

func (o HciClusterArrayOutput) ToHciClusterArrayOutput() HciClusterArrayOutput

func (HciClusterArrayOutput) ToHciClusterArrayOutputWithContext

func (o HciClusterArrayOutput) ToHciClusterArrayOutputWithContext(ctx context.Context) HciClusterArrayOutput

type HciClusterInput

type HciClusterInput interface {
	pulumi.Input

	ToHciClusterOutput() HciClusterOutput
	ToHciClusterOutputWithContext(ctx context.Context) HciClusterOutput
}

type HciClusterMap

type HciClusterMap map[string]HciClusterInput

func (HciClusterMap) ElementType

func (HciClusterMap) ElementType() reflect.Type

func (HciClusterMap) ToHciClusterMapOutput

func (i HciClusterMap) ToHciClusterMapOutput() HciClusterMapOutput

func (HciClusterMap) ToHciClusterMapOutputWithContext

func (i HciClusterMap) ToHciClusterMapOutputWithContext(ctx context.Context) HciClusterMapOutput

type HciClusterMapInput

type HciClusterMapInput interface {
	pulumi.Input

	ToHciClusterMapOutput() HciClusterMapOutput
	ToHciClusterMapOutputWithContext(context.Context) HciClusterMapOutput
}

HciClusterMapInput is an input type that accepts HciClusterMap and HciClusterMapOutput values. You can construct a concrete instance of `HciClusterMapInput` via:

HciClusterMap{ "key": HciClusterArgs{...} }

type HciClusterMapOutput

type HciClusterMapOutput struct{ *pulumi.OutputState }

func (HciClusterMapOutput) ElementType

func (HciClusterMapOutput) ElementType() reflect.Type

func (HciClusterMapOutput) MapIndex

func (HciClusterMapOutput) ToHciClusterMapOutput

func (o HciClusterMapOutput) ToHciClusterMapOutput() HciClusterMapOutput

func (HciClusterMapOutput) ToHciClusterMapOutputWithContext

func (o HciClusterMapOutput) ToHciClusterMapOutputWithContext(ctx context.Context) HciClusterMapOutput

type HciClusterOutput

type HciClusterOutput struct{ *pulumi.OutputState }

func (HciClusterOutput) ElementType

func (HciClusterOutput) ElementType() reflect.Type

func (HciClusterOutput) ToHciClusterOutput

func (o HciClusterOutput) ToHciClusterOutput() HciClusterOutput

func (HciClusterOutput) ToHciClusterOutputWithContext

func (o HciClusterOutput) ToHciClusterOutputWithContext(ctx context.Context) HciClusterOutput

type HciClusterState

type HciClusterState struct {
	// The Client ID of the Azure Active Directory which is used by the Azure Stack HCI Cluster. Changing this forces a new resource to be created.
	ClientId pulumi.StringPtrInput
	// The Azure Region where the Azure Stack HCI Cluster should exist. Changing this forces a new resource to be created.
	Location pulumi.StringPtrInput
	// The name which should be used for this Azure Stack HCI Cluster. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The name of the Resource Group where the Azure Stack HCI Cluster should exist. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringPtrInput
	// A mapping of tags which should be assigned to the Azure Stack HCI Cluster.
	Tags pulumi.StringMapInput
	// The Tenant ID of the Azure Active Directory which is used by the Azure Stack HCI Cluster. Changing this forces a new resource to be created.
	TenantId pulumi.StringPtrInput
}

func (HciClusterState) ElementType

func (HciClusterState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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