stack

package
v5.7.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 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/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/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) ClientId added in v5.5.0

func (o HciClusterOutput) ClientId() pulumi.StringOutput

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.

func (HciClusterOutput) ElementType

func (HciClusterOutput) ElementType() reflect.Type

func (HciClusterOutput) Location added in v5.5.0

func (o HciClusterOutput) Location() pulumi.StringOutput

The Azure Region where the Azure Stack HCI Cluster should exist. Changing this forces a new resource to be created.

func (HciClusterOutput) Name added in v5.5.0

The name which should be used for this Azure Stack HCI Cluster. Changing this forces a new resource to be created.

func (HciClusterOutput) ResourceGroupName added in v5.5.0

func (o HciClusterOutput) ResourceGroupName() pulumi.StringOutput

The name of the Resource Group where the Azure Stack HCI Cluster should exist. Changing this forces a new resource to be created.

func (HciClusterOutput) Tags added in v5.5.0

A mapping of tags which should be assigned to the Azure Stack HCI Cluster.

func (HciClusterOutput) TenantId added in v5.5.0

func (o HciClusterOutput) TenantId() pulumi.StringOutput

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.

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