stack

package
v3.56.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 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 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/v3/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/stack"
"github.com/pulumi/pulumi-azuread/sdk/v2/go/azuread"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := "example-app"
		exampleApplication, err := azuread.LookupApplication(ctx, &azuread.LookupApplicationArgs{
			Name: &opt0,
		}, 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

func (*HciCluster) ToHciClusterPtrOutput added in v3.47.1

func (i *HciCluster) ToHciClusterPtrOutput() HciClusterPtrOutput

func (*HciCluster) ToHciClusterPtrOutputWithContext added in v3.47.1

func (i *HciCluster) ToHciClusterPtrOutputWithContext(ctx context.Context) HciClusterPtrOutput

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 added in v3.47.1

type HciClusterArray []HciClusterInput

func (HciClusterArray) ElementType added in v3.47.1

func (HciClusterArray) ElementType() reflect.Type

func (HciClusterArray) ToHciClusterArrayOutput added in v3.47.1

func (i HciClusterArray) ToHciClusterArrayOutput() HciClusterArrayOutput

func (HciClusterArray) ToHciClusterArrayOutputWithContext added in v3.47.1

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

type HciClusterArrayInput added in v3.47.1

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 added in v3.47.1

type HciClusterArrayOutput struct{ *pulumi.OutputState }

func (HciClusterArrayOutput) ElementType added in v3.47.1

func (HciClusterArrayOutput) ElementType() reflect.Type

func (HciClusterArrayOutput) Index added in v3.47.1

func (HciClusterArrayOutput) ToHciClusterArrayOutput added in v3.47.1

func (o HciClusterArrayOutput) ToHciClusterArrayOutput() HciClusterArrayOutput

func (HciClusterArrayOutput) ToHciClusterArrayOutputWithContext added in v3.47.1

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

type HciClusterInput

type HciClusterInput interface {
	pulumi.Input

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

type HciClusterMap added in v3.47.1

type HciClusterMap map[string]HciClusterInput

func (HciClusterMap) ElementType added in v3.47.1

func (HciClusterMap) ElementType() reflect.Type

func (HciClusterMap) ToHciClusterMapOutput added in v3.47.1

func (i HciClusterMap) ToHciClusterMapOutput() HciClusterMapOutput

func (HciClusterMap) ToHciClusterMapOutputWithContext added in v3.47.1

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

type HciClusterMapInput added in v3.47.1

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 added in v3.47.1

type HciClusterMapOutput struct{ *pulumi.OutputState }

func (HciClusterMapOutput) ElementType added in v3.47.1

func (HciClusterMapOutput) ElementType() reflect.Type

func (HciClusterMapOutput) MapIndex added in v3.47.1

func (HciClusterMapOutput) ToHciClusterMapOutput added in v3.47.1

func (o HciClusterMapOutput) ToHciClusterMapOutput() HciClusterMapOutput

func (HciClusterMapOutput) ToHciClusterMapOutputWithContext added in v3.47.1

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

func (HciClusterOutput) ToHciClusterPtrOutput added in v3.47.1

func (o HciClusterOutput) ToHciClusterPtrOutput() HciClusterPtrOutput

func (HciClusterOutput) ToHciClusterPtrOutputWithContext added in v3.47.1

func (o HciClusterOutput) ToHciClusterPtrOutputWithContext(ctx context.Context) HciClusterPtrOutput

type HciClusterPtrInput added in v3.47.1

type HciClusterPtrInput interface {
	pulumi.Input

	ToHciClusterPtrOutput() HciClusterPtrOutput
	ToHciClusterPtrOutputWithContext(ctx context.Context) HciClusterPtrOutput
}

type HciClusterPtrOutput added in v3.47.1

type HciClusterPtrOutput struct {
	*pulumi.OutputState
}

func (HciClusterPtrOutput) ElementType added in v3.47.1

func (HciClusterPtrOutput) ElementType() reflect.Type

func (HciClusterPtrOutput) ToHciClusterPtrOutput added in v3.47.1

func (o HciClusterPtrOutput) ToHciClusterPtrOutput() HciClusterPtrOutput

func (HciClusterPtrOutput) ToHciClusterPtrOutputWithContext added in v3.47.1

func (o HciClusterPtrOutput) ToHciClusterPtrOutputWithContext(ctx context.Context) HciClusterPtrOutput

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