cloudprovider

package
v0.0.0-...-0514e62 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

Types

type Aws

type Aws struct {
	pulumi.CustomResourceState

	// The plain text AWS access key id.
	AccessKeyId pulumi.StringPtrOutput `pulumi:"accessKeyId"`
	// The name of the Harness secret containing the AWS access key id
	AccessKeyIdSecretName pulumi.StringPtrOutput `pulumi:"accessKeyIdSecretName"`
	// Configuration for assuming a cross account role.
	AssumeCrossAccountRole AwsAssumeCrossAccountRolePtrOutput `pulumi:"assumeCrossAccountRole"`
	// Select the Delegate to use via one of its Selectors.
	DelegateSelector pulumi.StringPtrOutput `pulumi:"delegateSelector"`
	// The name of the cloud provider.
	Name pulumi.StringOutput `pulumi:"name"`
	// The name of the Harness secret containing the AWS secret access key.
	SecretAccessKeySecretName pulumi.StringPtrOutput `pulumi:"secretAccessKeySecretName"`
	// This block is used for scoping the resource to a specific set of applications or environments.
	UsageScopes AwsUsageScopeArrayOutput `pulumi:"usageScopes"`
	// Use the EC2 Instance Profile for Service Accounts.
	UseEc2IamCredentials pulumi.BoolPtrOutput `pulumi:"useEc2IamCredentials"`
	// Use the AWS IAM Role for Service Accounts.
	UseIrsa pulumi.BoolPtrOutput `pulumi:"useIrsa"`
}

Resource for creating an AWS cloud provider. This resource uses the config-as-code API's. When updating the `name` or `path` of this resource you should typically also set the `createBeforeDestroy = true` lifecycle setting.

## Example Usage

```go package main

import (

"github.com/lbrlabs/pulumi-harness/sdk/go/harness"
"github.com/lbrlabs/pulumi-harness/sdk/go/harness/cloudprovider"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := harness.GetSecretManager(ctx, &harness.GetSecretManagerArgs{
			Default: pulumi.BoolRef(true),
		}, nil)
		if err != nil {
			return err
		}
		awsAccessKey, err := harness.NewEncryptedText(ctx, "awsAccessKey", &harness.EncryptedTextArgs{
			Value:           pulumi.String("<ACCESS_KEY_ID>"),
			SecretManagerId: *pulumi.String(_default.Id),
		})
		if err != nil {
			return err
		}
		awsSecretKey, err := harness.NewEncryptedText(ctx, "awsSecretKey", &harness.EncryptedTextArgs{
			Value:           pulumi.String("<SECRET_KEY_ID>"),
			SecretManagerId: *pulumi.String(_default.Id),
		})
		if err != nil {
			return err
		}
		_, err = cloudprovider.NewAws(ctx, "aws", &cloudprovider.AwsArgs{
			AccessKeyIdSecretName:     awsAccessKey.Name,
			SecretAccessKeySecretName: awsSecretKey.Name,
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Import using the Harness aws cloud provider id.

```sh

$ pulumi import harness:cloudprovider/aws:Aws example <provider_id>

```

func GetAws

func GetAws(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AwsState, opts ...pulumi.ResourceOption) (*Aws, error)

GetAws gets an existing Aws 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 NewAws

func NewAws(ctx *pulumi.Context,
	name string, args *AwsArgs, opts ...pulumi.ResourceOption) (*Aws, error)

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

func (*Aws) ElementType

func (*Aws) ElementType() reflect.Type

func (*Aws) ToAwsOutput

func (i *Aws) ToAwsOutput() AwsOutput

func (*Aws) ToAwsOutputWithContext

func (i *Aws) ToAwsOutputWithContext(ctx context.Context) AwsOutput

type AwsArgs

type AwsArgs struct {
	// The plain text AWS access key id.
	AccessKeyId pulumi.StringPtrInput
	// The name of the Harness secret containing the AWS access key id
	AccessKeyIdSecretName pulumi.StringPtrInput
	// Configuration for assuming a cross account role.
	AssumeCrossAccountRole AwsAssumeCrossAccountRolePtrInput
	// Select the Delegate to use via one of its Selectors.
	DelegateSelector pulumi.StringPtrInput
	// The name of the cloud provider.
	Name pulumi.StringPtrInput
	// The name of the Harness secret containing the AWS secret access key.
	SecretAccessKeySecretName pulumi.StringPtrInput
	// This block is used for scoping the resource to a specific set of applications or environments.
	UsageScopes AwsUsageScopeArrayInput
	// Use the EC2 Instance Profile for Service Accounts.
	UseEc2IamCredentials pulumi.BoolPtrInput
	// Use the AWS IAM Role for Service Accounts.
	UseIrsa pulumi.BoolPtrInput
}

The set of arguments for constructing a Aws resource.

func (AwsArgs) ElementType

func (AwsArgs) ElementType() reflect.Type

type AwsArray

type AwsArray []AwsInput

func (AwsArray) ElementType

func (AwsArray) ElementType() reflect.Type

func (AwsArray) ToAwsArrayOutput

func (i AwsArray) ToAwsArrayOutput() AwsArrayOutput

func (AwsArray) ToAwsArrayOutputWithContext

func (i AwsArray) ToAwsArrayOutputWithContext(ctx context.Context) AwsArrayOutput

type AwsArrayInput

type AwsArrayInput interface {
	pulumi.Input

	ToAwsArrayOutput() AwsArrayOutput
	ToAwsArrayOutputWithContext(context.Context) AwsArrayOutput
}

AwsArrayInput is an input type that accepts AwsArray and AwsArrayOutput values. You can construct a concrete instance of `AwsArrayInput` via:

AwsArray{ AwsArgs{...} }

type AwsArrayOutput

type AwsArrayOutput struct{ *pulumi.OutputState }

func (AwsArrayOutput) ElementType

func (AwsArrayOutput) ElementType() reflect.Type

func (AwsArrayOutput) Index

func (AwsArrayOutput) ToAwsArrayOutput

func (o AwsArrayOutput) ToAwsArrayOutput() AwsArrayOutput

func (AwsArrayOutput) ToAwsArrayOutputWithContext

func (o AwsArrayOutput) ToAwsArrayOutputWithContext(ctx context.Context) AwsArrayOutput

type AwsAssumeCrossAccountRole

type AwsAssumeCrossAccountRole struct {
	// If the administrator of the account to which the role belongs provided you with an external ID, then enter that value.
	ExternalId *string `pulumi:"externalId"`
	// This is an IAM role in the target deployment AWS account.
	RoleArn string `pulumi:"roleArn"`
}

type AwsAssumeCrossAccountRoleArgs

type AwsAssumeCrossAccountRoleArgs struct {
	// If the administrator of the account to which the role belongs provided you with an external ID, then enter that value.
	ExternalId pulumi.StringPtrInput `pulumi:"externalId"`
	// This is an IAM role in the target deployment AWS account.
	RoleArn pulumi.StringInput `pulumi:"roleArn"`
}

func (AwsAssumeCrossAccountRoleArgs) ElementType

func (AwsAssumeCrossAccountRoleArgs) ToAwsAssumeCrossAccountRoleOutput

func (i AwsAssumeCrossAccountRoleArgs) ToAwsAssumeCrossAccountRoleOutput() AwsAssumeCrossAccountRoleOutput

func (AwsAssumeCrossAccountRoleArgs) ToAwsAssumeCrossAccountRoleOutputWithContext

func (i AwsAssumeCrossAccountRoleArgs) ToAwsAssumeCrossAccountRoleOutputWithContext(ctx context.Context) AwsAssumeCrossAccountRoleOutput

func (AwsAssumeCrossAccountRoleArgs) ToAwsAssumeCrossAccountRolePtrOutput

func (i AwsAssumeCrossAccountRoleArgs) ToAwsAssumeCrossAccountRolePtrOutput() AwsAssumeCrossAccountRolePtrOutput

func (AwsAssumeCrossAccountRoleArgs) ToAwsAssumeCrossAccountRolePtrOutputWithContext

func (i AwsAssumeCrossAccountRoleArgs) ToAwsAssumeCrossAccountRolePtrOutputWithContext(ctx context.Context) AwsAssumeCrossAccountRolePtrOutput

type AwsAssumeCrossAccountRoleInput

type AwsAssumeCrossAccountRoleInput interface {
	pulumi.Input

	ToAwsAssumeCrossAccountRoleOutput() AwsAssumeCrossAccountRoleOutput
	ToAwsAssumeCrossAccountRoleOutputWithContext(context.Context) AwsAssumeCrossAccountRoleOutput
}

AwsAssumeCrossAccountRoleInput is an input type that accepts AwsAssumeCrossAccountRoleArgs and AwsAssumeCrossAccountRoleOutput values. You can construct a concrete instance of `AwsAssumeCrossAccountRoleInput` via:

AwsAssumeCrossAccountRoleArgs{...}

type AwsAssumeCrossAccountRoleOutput

type AwsAssumeCrossAccountRoleOutput struct{ *pulumi.OutputState }

func (AwsAssumeCrossAccountRoleOutput) ElementType

func (AwsAssumeCrossAccountRoleOutput) ExternalId

If the administrator of the account to which the role belongs provided you with an external ID, then enter that value.

func (AwsAssumeCrossAccountRoleOutput) RoleArn

This is an IAM role in the target deployment AWS account.

func (AwsAssumeCrossAccountRoleOutput) ToAwsAssumeCrossAccountRoleOutput

func (o AwsAssumeCrossAccountRoleOutput) ToAwsAssumeCrossAccountRoleOutput() AwsAssumeCrossAccountRoleOutput

func (AwsAssumeCrossAccountRoleOutput) ToAwsAssumeCrossAccountRoleOutputWithContext

func (o AwsAssumeCrossAccountRoleOutput) ToAwsAssumeCrossAccountRoleOutputWithContext(ctx context.Context) AwsAssumeCrossAccountRoleOutput

func (AwsAssumeCrossAccountRoleOutput) ToAwsAssumeCrossAccountRolePtrOutput

func (o AwsAssumeCrossAccountRoleOutput) ToAwsAssumeCrossAccountRolePtrOutput() AwsAssumeCrossAccountRolePtrOutput

func (AwsAssumeCrossAccountRoleOutput) ToAwsAssumeCrossAccountRolePtrOutputWithContext

func (o AwsAssumeCrossAccountRoleOutput) ToAwsAssumeCrossAccountRolePtrOutputWithContext(ctx context.Context) AwsAssumeCrossAccountRolePtrOutput

type AwsAssumeCrossAccountRolePtrInput

type AwsAssumeCrossAccountRolePtrInput interface {
	pulumi.Input

	ToAwsAssumeCrossAccountRolePtrOutput() AwsAssumeCrossAccountRolePtrOutput
	ToAwsAssumeCrossAccountRolePtrOutputWithContext(context.Context) AwsAssumeCrossAccountRolePtrOutput
}

AwsAssumeCrossAccountRolePtrInput is an input type that accepts AwsAssumeCrossAccountRoleArgs, AwsAssumeCrossAccountRolePtr and AwsAssumeCrossAccountRolePtrOutput values. You can construct a concrete instance of `AwsAssumeCrossAccountRolePtrInput` via:

        AwsAssumeCrossAccountRoleArgs{...}

or:

        nil

type AwsAssumeCrossAccountRolePtrOutput

type AwsAssumeCrossAccountRolePtrOutput struct{ *pulumi.OutputState }

func (AwsAssumeCrossAccountRolePtrOutput) Elem

func (AwsAssumeCrossAccountRolePtrOutput) ElementType

func (AwsAssumeCrossAccountRolePtrOutput) ExternalId

If the administrator of the account to which the role belongs provided you with an external ID, then enter that value.

func (AwsAssumeCrossAccountRolePtrOutput) RoleArn

This is an IAM role in the target deployment AWS account.

func (AwsAssumeCrossAccountRolePtrOutput) ToAwsAssumeCrossAccountRolePtrOutput

func (o AwsAssumeCrossAccountRolePtrOutput) ToAwsAssumeCrossAccountRolePtrOutput() AwsAssumeCrossAccountRolePtrOutput

func (AwsAssumeCrossAccountRolePtrOutput) ToAwsAssumeCrossAccountRolePtrOutputWithContext

func (o AwsAssumeCrossAccountRolePtrOutput) ToAwsAssumeCrossAccountRolePtrOutputWithContext(ctx context.Context) AwsAssumeCrossAccountRolePtrOutput

type AwsInput

type AwsInput interface {
	pulumi.Input

	ToAwsOutput() AwsOutput
	ToAwsOutputWithContext(ctx context.Context) AwsOutput
}

type AwsMap

type AwsMap map[string]AwsInput

func (AwsMap) ElementType

func (AwsMap) ElementType() reflect.Type

func (AwsMap) ToAwsMapOutput

func (i AwsMap) ToAwsMapOutput() AwsMapOutput

func (AwsMap) ToAwsMapOutputWithContext

func (i AwsMap) ToAwsMapOutputWithContext(ctx context.Context) AwsMapOutput

type AwsMapInput

type AwsMapInput interface {
	pulumi.Input

	ToAwsMapOutput() AwsMapOutput
	ToAwsMapOutputWithContext(context.Context) AwsMapOutput
}

AwsMapInput is an input type that accepts AwsMap and AwsMapOutput values. You can construct a concrete instance of `AwsMapInput` via:

AwsMap{ "key": AwsArgs{...} }

type AwsMapOutput

type AwsMapOutput struct{ *pulumi.OutputState }

func (AwsMapOutput) ElementType

func (AwsMapOutput) ElementType() reflect.Type

func (AwsMapOutput) MapIndex

func (o AwsMapOutput) MapIndex(k pulumi.StringInput) AwsOutput

func (AwsMapOutput) ToAwsMapOutput

func (o AwsMapOutput) ToAwsMapOutput() AwsMapOutput

func (AwsMapOutput) ToAwsMapOutputWithContext

func (o AwsMapOutput) ToAwsMapOutputWithContext(ctx context.Context) AwsMapOutput

type AwsOutput

type AwsOutput struct{ *pulumi.OutputState }

func (AwsOutput) AccessKeyId

func (o AwsOutput) AccessKeyId() pulumi.StringPtrOutput

The plain text AWS access key id.

func (AwsOutput) AccessKeyIdSecretName

func (o AwsOutput) AccessKeyIdSecretName() pulumi.StringPtrOutput

The name of the Harness secret containing the AWS access key id

func (AwsOutput) AssumeCrossAccountRole

func (o AwsOutput) AssumeCrossAccountRole() AwsAssumeCrossAccountRolePtrOutput

Configuration for assuming a cross account role.

func (AwsOutput) DelegateSelector

func (o AwsOutput) DelegateSelector() pulumi.StringPtrOutput

Select the Delegate to use via one of its Selectors.

func (AwsOutput) ElementType

func (AwsOutput) ElementType() reflect.Type

func (AwsOutput) Name

func (o AwsOutput) Name() pulumi.StringOutput

The name of the cloud provider.

func (AwsOutput) SecretAccessKeySecretName

func (o AwsOutput) SecretAccessKeySecretName() pulumi.StringPtrOutput

The name of the Harness secret containing the AWS secret access key.

func (AwsOutput) ToAwsOutput

func (o AwsOutput) ToAwsOutput() AwsOutput

func (AwsOutput) ToAwsOutputWithContext

func (o AwsOutput) ToAwsOutputWithContext(ctx context.Context) AwsOutput

func (AwsOutput) UsageScopes

func (o AwsOutput) UsageScopes() AwsUsageScopeArrayOutput

This block is used for scoping the resource to a specific set of applications or environments.

func (AwsOutput) UseEc2IamCredentials

func (o AwsOutput) UseEc2IamCredentials() pulumi.BoolPtrOutput

Use the EC2 Instance Profile for Service Accounts.

func (AwsOutput) UseIrsa

func (o AwsOutput) UseIrsa() pulumi.BoolPtrOutput

Use the AWS IAM Role for Service Accounts.

type AwsState

type AwsState struct {
	// The plain text AWS access key id.
	AccessKeyId pulumi.StringPtrInput
	// The name of the Harness secret containing the AWS access key id
	AccessKeyIdSecretName pulumi.StringPtrInput
	// Configuration for assuming a cross account role.
	AssumeCrossAccountRole AwsAssumeCrossAccountRolePtrInput
	// Select the Delegate to use via one of its Selectors.
	DelegateSelector pulumi.StringPtrInput
	// The name of the cloud provider.
	Name pulumi.StringPtrInput
	// The name of the Harness secret containing the AWS secret access key.
	SecretAccessKeySecretName pulumi.StringPtrInput
	// This block is used for scoping the resource to a specific set of applications or environments.
	UsageScopes AwsUsageScopeArrayInput
	// Use the EC2 Instance Profile for Service Accounts.
	UseEc2IamCredentials pulumi.BoolPtrInput
	// Use the AWS IAM Role for Service Accounts.
	UseIrsa pulumi.BoolPtrInput
}

func (AwsState) ElementType

func (AwsState) ElementType() reflect.Type

type AwsUsageScope

type AwsUsageScope struct {
	// Id of the application to scope to. If empty then this scope applies to all applications.
	ApplicationId *string `pulumi:"applicationId"`
	// Type of environment filter applied. Cannot be used with `environmentId`. Valid options are NON*PRODUCTION*ENVIRONMENTS, PRODUCTION_ENVIRONMENTS.
	EnvironmentFilterType *string `pulumi:"environmentFilterType"`
	// Id of the id of the specific environment to scope to. Cannot be used with `environmentFilterType`.
	EnvironmentId *string `pulumi:"environmentId"`
}

type AwsUsageScopeArgs

type AwsUsageScopeArgs struct {
	// Id of the application to scope to. If empty then this scope applies to all applications.
	ApplicationId pulumi.StringPtrInput `pulumi:"applicationId"`
	// Type of environment filter applied. Cannot be used with `environmentId`. Valid options are NON*PRODUCTION*ENVIRONMENTS, PRODUCTION_ENVIRONMENTS.
	EnvironmentFilterType pulumi.StringPtrInput `pulumi:"environmentFilterType"`
	// Id of the id of the specific environment to scope to. Cannot be used with `environmentFilterType`.
	EnvironmentId pulumi.StringPtrInput `pulumi:"environmentId"`
}

func (AwsUsageScopeArgs) ElementType

func (AwsUsageScopeArgs) ElementType() reflect.Type

func (AwsUsageScopeArgs) ToAwsUsageScopeOutput

func (i AwsUsageScopeArgs) ToAwsUsageScopeOutput() AwsUsageScopeOutput

func (AwsUsageScopeArgs) ToAwsUsageScopeOutputWithContext

func (i AwsUsageScopeArgs) ToAwsUsageScopeOutputWithContext(ctx context.Context) AwsUsageScopeOutput

type AwsUsageScopeArray

type AwsUsageScopeArray []AwsUsageScopeInput

func (AwsUsageScopeArray) ElementType

func (AwsUsageScopeArray) ElementType() reflect.Type

func (AwsUsageScopeArray) ToAwsUsageScopeArrayOutput

func (i AwsUsageScopeArray) ToAwsUsageScopeArrayOutput() AwsUsageScopeArrayOutput

func (AwsUsageScopeArray) ToAwsUsageScopeArrayOutputWithContext

func (i AwsUsageScopeArray) ToAwsUsageScopeArrayOutputWithContext(ctx context.Context) AwsUsageScopeArrayOutput

type AwsUsageScopeArrayInput

type AwsUsageScopeArrayInput interface {
	pulumi.Input

	ToAwsUsageScopeArrayOutput() AwsUsageScopeArrayOutput
	ToAwsUsageScopeArrayOutputWithContext(context.Context) AwsUsageScopeArrayOutput
}

AwsUsageScopeArrayInput is an input type that accepts AwsUsageScopeArray and AwsUsageScopeArrayOutput values. You can construct a concrete instance of `AwsUsageScopeArrayInput` via:

AwsUsageScopeArray{ AwsUsageScopeArgs{...} }

type AwsUsageScopeArrayOutput

type AwsUsageScopeArrayOutput struct{ *pulumi.OutputState }

func (AwsUsageScopeArrayOutput) ElementType

func (AwsUsageScopeArrayOutput) ElementType() reflect.Type

func (AwsUsageScopeArrayOutput) Index

func (AwsUsageScopeArrayOutput) ToAwsUsageScopeArrayOutput

func (o AwsUsageScopeArrayOutput) ToAwsUsageScopeArrayOutput() AwsUsageScopeArrayOutput

func (AwsUsageScopeArrayOutput) ToAwsUsageScopeArrayOutputWithContext

func (o AwsUsageScopeArrayOutput) ToAwsUsageScopeArrayOutputWithContext(ctx context.Context) AwsUsageScopeArrayOutput

type AwsUsageScopeInput

type AwsUsageScopeInput interface {
	pulumi.Input

	ToAwsUsageScopeOutput() AwsUsageScopeOutput
	ToAwsUsageScopeOutputWithContext(context.Context) AwsUsageScopeOutput
}

AwsUsageScopeInput is an input type that accepts AwsUsageScopeArgs and AwsUsageScopeOutput values. You can construct a concrete instance of `AwsUsageScopeInput` via:

AwsUsageScopeArgs{...}

type AwsUsageScopeOutput

type AwsUsageScopeOutput struct{ *pulumi.OutputState }

func (AwsUsageScopeOutput) ApplicationId

func (o AwsUsageScopeOutput) ApplicationId() pulumi.StringPtrOutput

Id of the application to scope to. If empty then this scope applies to all applications.

func (AwsUsageScopeOutput) ElementType

func (AwsUsageScopeOutput) ElementType() reflect.Type

func (AwsUsageScopeOutput) EnvironmentFilterType

func (o AwsUsageScopeOutput) EnvironmentFilterType() pulumi.StringPtrOutput

Type of environment filter applied. Cannot be used with `environmentId`. Valid options are NON*PRODUCTION*ENVIRONMENTS, PRODUCTION_ENVIRONMENTS.

func (AwsUsageScopeOutput) EnvironmentId

func (o AwsUsageScopeOutput) EnvironmentId() pulumi.StringPtrOutput

Id of the id of the specific environment to scope to. Cannot be used with `environmentFilterType`.

func (AwsUsageScopeOutput) ToAwsUsageScopeOutput

func (o AwsUsageScopeOutput) ToAwsUsageScopeOutput() AwsUsageScopeOutput

func (AwsUsageScopeOutput) ToAwsUsageScopeOutputWithContext

func (o AwsUsageScopeOutput) ToAwsUsageScopeOutputWithContext(ctx context.Context) AwsUsageScopeOutput

type Azure

type Azure struct {
	pulumi.CustomResourceState

	// The client id for the Azure application
	ClientId pulumi.StringOutput `pulumi:"clientId"`
	// The type of environment. Valid options are [AZURE AZURE*US*GOVERNMENT]
	EnvironmentType pulumi.StringPtrOutput `pulumi:"environmentType"`
	// The Name of the Harness secret containing the key for the Azure application
	Key pulumi.StringOutput `pulumi:"key"`
	// The name of the cloud provider.
	Name pulumi.StringOutput `pulumi:"name"`
	// The tenant id for the Azure application
	TenantId pulumi.StringOutput `pulumi:"tenantId"`
}

Resource for creating an Azure cloud provider. This resource uses the config-as-code API's. When updating the `name` or `path` of this resource you should typically also set the `createBeforeDestroy = true` lifecycle setting.

## Example Usage

```go package main

import (

"github.com/lbrlabs/pulumi-harness/sdk/go/harness"
"github.com/lbrlabs/pulumi-harness/sdk/go/harness/cloudprovider"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := harness.GetSecretManager(ctx, &harness.GetSecretManagerArgs{
			Default: pulumi.BoolRef(true),
		}, nil)
		if err != nil {
			return err
		}
		azureKey, err := harness.NewEncryptedText(ctx, "azureKey", &harness.EncryptedTextArgs{
			Value:           pulumi.String("<AZURE_KEY>"),
			SecretManagerId: *pulumi.String(_default.Id),
		})
		if err != nil {
			return err
		}
		_, err = cloudprovider.NewAzure(ctx, "azure", &cloudprovider.AzureArgs{
			ClientId: pulumi.String("<AZURE_CLIENT_ID>"),
			TenantId: pulumi.String("<AZURE_TENANT_ID>"),
			Key:      azureKey.Name,
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Import using the Harness azure cloud provider id.

```sh

$ pulumi import harness:cloudprovider/azure:Azure example <provider_id>

```

func GetAzure

func GetAzure(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AzureState, opts ...pulumi.ResourceOption) (*Azure, error)

GetAzure gets an existing Azure 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 NewAzure

func NewAzure(ctx *pulumi.Context,
	name string, args *AzureArgs, opts ...pulumi.ResourceOption) (*Azure, error)

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

func (*Azure) ElementType

func (*Azure) ElementType() reflect.Type

func (*Azure) ToAzureOutput

func (i *Azure) ToAzureOutput() AzureOutput

func (*Azure) ToAzureOutputWithContext

func (i *Azure) ToAzureOutputWithContext(ctx context.Context) AzureOutput

type AzureArgs

type AzureArgs struct {
	// The client id for the Azure application
	ClientId pulumi.StringInput
	// The type of environment. Valid options are [AZURE AZURE*US*GOVERNMENT]
	EnvironmentType pulumi.StringPtrInput
	// The Name of the Harness secret containing the key for the Azure application
	Key pulumi.StringInput
	// The name of the cloud provider.
	Name pulumi.StringPtrInput
	// The tenant id for the Azure application
	TenantId pulumi.StringInput
}

The set of arguments for constructing a Azure resource.

func (AzureArgs) ElementType

func (AzureArgs) ElementType() reflect.Type

type AzureArray

type AzureArray []AzureInput

func (AzureArray) ElementType

func (AzureArray) ElementType() reflect.Type

func (AzureArray) ToAzureArrayOutput

func (i AzureArray) ToAzureArrayOutput() AzureArrayOutput

func (AzureArray) ToAzureArrayOutputWithContext

func (i AzureArray) ToAzureArrayOutputWithContext(ctx context.Context) AzureArrayOutput

type AzureArrayInput

type AzureArrayInput interface {
	pulumi.Input

	ToAzureArrayOutput() AzureArrayOutput
	ToAzureArrayOutputWithContext(context.Context) AzureArrayOutput
}

AzureArrayInput is an input type that accepts AzureArray and AzureArrayOutput values. You can construct a concrete instance of `AzureArrayInput` via:

AzureArray{ AzureArgs{...} }

type AzureArrayOutput

type AzureArrayOutput struct{ *pulumi.OutputState }

func (AzureArrayOutput) ElementType

func (AzureArrayOutput) ElementType() reflect.Type

func (AzureArrayOutput) Index

func (AzureArrayOutput) ToAzureArrayOutput

func (o AzureArrayOutput) ToAzureArrayOutput() AzureArrayOutput

func (AzureArrayOutput) ToAzureArrayOutputWithContext

func (o AzureArrayOutput) ToAzureArrayOutputWithContext(ctx context.Context) AzureArrayOutput

type AzureInput

type AzureInput interface {
	pulumi.Input

	ToAzureOutput() AzureOutput
	ToAzureOutputWithContext(ctx context.Context) AzureOutput
}

type AzureMap

type AzureMap map[string]AzureInput

func (AzureMap) ElementType

func (AzureMap) ElementType() reflect.Type

func (AzureMap) ToAzureMapOutput

func (i AzureMap) ToAzureMapOutput() AzureMapOutput

func (AzureMap) ToAzureMapOutputWithContext

func (i AzureMap) ToAzureMapOutputWithContext(ctx context.Context) AzureMapOutput

type AzureMapInput

type AzureMapInput interface {
	pulumi.Input

	ToAzureMapOutput() AzureMapOutput
	ToAzureMapOutputWithContext(context.Context) AzureMapOutput
}

AzureMapInput is an input type that accepts AzureMap and AzureMapOutput values. You can construct a concrete instance of `AzureMapInput` via:

AzureMap{ "key": AzureArgs{...} }

type AzureMapOutput

type AzureMapOutput struct{ *pulumi.OutputState }

func (AzureMapOutput) ElementType

func (AzureMapOutput) ElementType() reflect.Type

func (AzureMapOutput) MapIndex

func (AzureMapOutput) ToAzureMapOutput

func (o AzureMapOutput) ToAzureMapOutput() AzureMapOutput

func (AzureMapOutput) ToAzureMapOutputWithContext

func (o AzureMapOutput) ToAzureMapOutputWithContext(ctx context.Context) AzureMapOutput

type AzureOutput

type AzureOutput struct{ *pulumi.OutputState }

func (AzureOutput) ClientId

func (o AzureOutput) ClientId() pulumi.StringOutput

The client id for the Azure application

func (AzureOutput) ElementType

func (AzureOutput) ElementType() reflect.Type

func (AzureOutput) EnvironmentType

func (o AzureOutput) EnvironmentType() pulumi.StringPtrOutput

The type of environment. Valid options are [AZURE AZURE*US*GOVERNMENT]

func (AzureOutput) Key

The Name of the Harness secret containing the key for the Azure application

func (AzureOutput) Name

func (o AzureOutput) Name() pulumi.StringOutput

The name of the cloud provider.

func (AzureOutput) TenantId

func (o AzureOutput) TenantId() pulumi.StringOutput

The tenant id for the Azure application

func (AzureOutput) ToAzureOutput

func (o AzureOutput) ToAzureOutput() AzureOutput

func (AzureOutput) ToAzureOutputWithContext

func (o AzureOutput) ToAzureOutputWithContext(ctx context.Context) AzureOutput

type AzureState

type AzureState struct {
	// The client id for the Azure application
	ClientId pulumi.StringPtrInput
	// The type of environment. Valid options are [AZURE AZURE*US*GOVERNMENT]
	EnvironmentType pulumi.StringPtrInput
	// The Name of the Harness secret containing the key for the Azure application
	Key pulumi.StringPtrInput
	// The name of the cloud provider.
	Name pulumi.StringPtrInput
	// The tenant id for the Azure application
	TenantId pulumi.StringPtrInput
}

func (AzureState) ElementType

func (AzureState) ElementType() reflect.Type

type Datacenter

type Datacenter struct {
	pulumi.CustomResourceState

	// The name of the cloud provider.
	Name pulumi.StringOutput `pulumi:"name"`
	// This block is used for scoping the resource to a specific set of applications or environments.
	UsageScopes DatacenterUsageScopeArrayOutput `pulumi:"usageScopes"`
}

Resource for creating a physical data center cloud provider. This resource uses the config-as-code API's. When updating the `name` or `path` of this resource you should typically also set the `createBeforeDestroy = true` lifecycle setting.

## Example Usage

```go package main

import (

"github.com/lbrlabs/pulumi-harness/sdk/go/harness/cloudprovider"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudprovider.NewDatacenter(ctx, "example", nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Import using the Harness datacenter cloud provider id.

```sh

$ pulumi import harness:cloudprovider/datacenter:Datacenter example <provider_id>

```

func GetDatacenter

func GetDatacenter(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DatacenterState, opts ...pulumi.ResourceOption) (*Datacenter, error)

GetDatacenter gets an existing Datacenter 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 NewDatacenter

func NewDatacenter(ctx *pulumi.Context,
	name string, args *DatacenterArgs, opts ...pulumi.ResourceOption) (*Datacenter, error)

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

func (*Datacenter) ElementType

func (*Datacenter) ElementType() reflect.Type

func (*Datacenter) ToDatacenterOutput

func (i *Datacenter) ToDatacenterOutput() DatacenterOutput

func (*Datacenter) ToDatacenterOutputWithContext

func (i *Datacenter) ToDatacenterOutputWithContext(ctx context.Context) DatacenterOutput

type DatacenterArgs

type DatacenterArgs struct {
	// The name of the cloud provider.
	Name pulumi.StringPtrInput
	// This block is used for scoping the resource to a specific set of applications or environments.
	UsageScopes DatacenterUsageScopeArrayInput
}

The set of arguments for constructing a Datacenter resource.

func (DatacenterArgs) ElementType

func (DatacenterArgs) ElementType() reflect.Type

type DatacenterArray

type DatacenterArray []DatacenterInput

func (DatacenterArray) ElementType

func (DatacenterArray) ElementType() reflect.Type

func (DatacenterArray) ToDatacenterArrayOutput

func (i DatacenterArray) ToDatacenterArrayOutput() DatacenterArrayOutput

func (DatacenterArray) ToDatacenterArrayOutputWithContext

func (i DatacenterArray) ToDatacenterArrayOutputWithContext(ctx context.Context) DatacenterArrayOutput

type DatacenterArrayInput

type DatacenterArrayInput interface {
	pulumi.Input

	ToDatacenterArrayOutput() DatacenterArrayOutput
	ToDatacenterArrayOutputWithContext(context.Context) DatacenterArrayOutput
}

DatacenterArrayInput is an input type that accepts DatacenterArray and DatacenterArrayOutput values. You can construct a concrete instance of `DatacenterArrayInput` via:

DatacenterArray{ DatacenterArgs{...} }

type DatacenterArrayOutput

type DatacenterArrayOutput struct{ *pulumi.OutputState }

func (DatacenterArrayOutput) ElementType

func (DatacenterArrayOutput) ElementType() reflect.Type

func (DatacenterArrayOutput) Index

func (DatacenterArrayOutput) ToDatacenterArrayOutput

func (o DatacenterArrayOutput) ToDatacenterArrayOutput() DatacenterArrayOutput

func (DatacenterArrayOutput) ToDatacenterArrayOutputWithContext

func (o DatacenterArrayOutput) ToDatacenterArrayOutputWithContext(ctx context.Context) DatacenterArrayOutput

type DatacenterInput

type DatacenterInput interface {
	pulumi.Input

	ToDatacenterOutput() DatacenterOutput
	ToDatacenterOutputWithContext(ctx context.Context) DatacenterOutput
}

type DatacenterMap

type DatacenterMap map[string]DatacenterInput

func (DatacenterMap) ElementType

func (DatacenterMap) ElementType() reflect.Type

func (DatacenterMap) ToDatacenterMapOutput

func (i DatacenterMap) ToDatacenterMapOutput() DatacenterMapOutput

func (DatacenterMap) ToDatacenterMapOutputWithContext

func (i DatacenterMap) ToDatacenterMapOutputWithContext(ctx context.Context) DatacenterMapOutput

type DatacenterMapInput

type DatacenterMapInput interface {
	pulumi.Input

	ToDatacenterMapOutput() DatacenterMapOutput
	ToDatacenterMapOutputWithContext(context.Context) DatacenterMapOutput
}

DatacenterMapInput is an input type that accepts DatacenterMap and DatacenterMapOutput values. You can construct a concrete instance of `DatacenterMapInput` via:

DatacenterMap{ "key": DatacenterArgs{...} }

type DatacenterMapOutput

type DatacenterMapOutput struct{ *pulumi.OutputState }

func (DatacenterMapOutput) ElementType

func (DatacenterMapOutput) ElementType() reflect.Type

func (DatacenterMapOutput) MapIndex

func (DatacenterMapOutput) ToDatacenterMapOutput

func (o DatacenterMapOutput) ToDatacenterMapOutput() DatacenterMapOutput

func (DatacenterMapOutput) ToDatacenterMapOutputWithContext

func (o DatacenterMapOutput) ToDatacenterMapOutputWithContext(ctx context.Context) DatacenterMapOutput

type DatacenterOutput

type DatacenterOutput struct{ *pulumi.OutputState }

func (DatacenterOutput) ElementType

func (DatacenterOutput) ElementType() reflect.Type

func (DatacenterOutput) Name

The name of the cloud provider.

func (DatacenterOutput) ToDatacenterOutput

func (o DatacenterOutput) ToDatacenterOutput() DatacenterOutput

func (DatacenterOutput) ToDatacenterOutputWithContext

func (o DatacenterOutput) ToDatacenterOutputWithContext(ctx context.Context) DatacenterOutput

func (DatacenterOutput) UsageScopes

This block is used for scoping the resource to a specific set of applications or environments.

type DatacenterState

type DatacenterState struct {
	// The name of the cloud provider.
	Name pulumi.StringPtrInput
	// This block is used for scoping the resource to a specific set of applications or environments.
	UsageScopes DatacenterUsageScopeArrayInput
}

func (DatacenterState) ElementType

func (DatacenterState) ElementType() reflect.Type

type DatacenterUsageScope

type DatacenterUsageScope struct {
	// Id of the application to scope to. If empty then this scope applies to all applications.
	ApplicationId *string `pulumi:"applicationId"`
	// Type of environment filter applied. Cannot be used with `environmentId`. Valid options are NON*PRODUCTION*ENVIRONMENTS, PRODUCTION_ENVIRONMENTS.
	EnvironmentFilterType *string `pulumi:"environmentFilterType"`
	// Id of the id of the specific environment to scope to. Cannot be used with `environmentFilterType`.
	EnvironmentId *string `pulumi:"environmentId"`
}

type DatacenterUsageScopeArgs

type DatacenterUsageScopeArgs struct {
	// Id of the application to scope to. If empty then this scope applies to all applications.
	ApplicationId pulumi.StringPtrInput `pulumi:"applicationId"`
	// Type of environment filter applied. Cannot be used with `environmentId`. Valid options are NON*PRODUCTION*ENVIRONMENTS, PRODUCTION_ENVIRONMENTS.
	EnvironmentFilterType pulumi.StringPtrInput `pulumi:"environmentFilterType"`
	// Id of the id of the specific environment to scope to. Cannot be used with `environmentFilterType`.
	EnvironmentId pulumi.StringPtrInput `pulumi:"environmentId"`
}

func (DatacenterUsageScopeArgs) ElementType

func (DatacenterUsageScopeArgs) ElementType() reflect.Type

func (DatacenterUsageScopeArgs) ToDatacenterUsageScopeOutput

func (i DatacenterUsageScopeArgs) ToDatacenterUsageScopeOutput() DatacenterUsageScopeOutput

func (DatacenterUsageScopeArgs) ToDatacenterUsageScopeOutputWithContext

func (i DatacenterUsageScopeArgs) ToDatacenterUsageScopeOutputWithContext(ctx context.Context) DatacenterUsageScopeOutput

type DatacenterUsageScopeArray

type DatacenterUsageScopeArray []DatacenterUsageScopeInput

func (DatacenterUsageScopeArray) ElementType

func (DatacenterUsageScopeArray) ElementType() reflect.Type

func (DatacenterUsageScopeArray) ToDatacenterUsageScopeArrayOutput

func (i DatacenterUsageScopeArray) ToDatacenterUsageScopeArrayOutput() DatacenterUsageScopeArrayOutput

func (DatacenterUsageScopeArray) ToDatacenterUsageScopeArrayOutputWithContext

func (i DatacenterUsageScopeArray) ToDatacenterUsageScopeArrayOutputWithContext(ctx context.Context) DatacenterUsageScopeArrayOutput

type DatacenterUsageScopeArrayInput

type DatacenterUsageScopeArrayInput interface {
	pulumi.Input

	ToDatacenterUsageScopeArrayOutput() DatacenterUsageScopeArrayOutput
	ToDatacenterUsageScopeArrayOutputWithContext(context.Context) DatacenterUsageScopeArrayOutput
}

DatacenterUsageScopeArrayInput is an input type that accepts DatacenterUsageScopeArray and DatacenterUsageScopeArrayOutput values. You can construct a concrete instance of `DatacenterUsageScopeArrayInput` via:

DatacenterUsageScopeArray{ DatacenterUsageScopeArgs{...} }

type DatacenterUsageScopeArrayOutput

type DatacenterUsageScopeArrayOutput struct{ *pulumi.OutputState }

func (DatacenterUsageScopeArrayOutput) ElementType

func (DatacenterUsageScopeArrayOutput) Index

func (DatacenterUsageScopeArrayOutput) ToDatacenterUsageScopeArrayOutput

func (o DatacenterUsageScopeArrayOutput) ToDatacenterUsageScopeArrayOutput() DatacenterUsageScopeArrayOutput

func (DatacenterUsageScopeArrayOutput) ToDatacenterUsageScopeArrayOutputWithContext

func (o DatacenterUsageScopeArrayOutput) ToDatacenterUsageScopeArrayOutputWithContext(ctx context.Context) DatacenterUsageScopeArrayOutput

type DatacenterUsageScopeInput

type DatacenterUsageScopeInput interface {
	pulumi.Input

	ToDatacenterUsageScopeOutput() DatacenterUsageScopeOutput
	ToDatacenterUsageScopeOutputWithContext(context.Context) DatacenterUsageScopeOutput
}

DatacenterUsageScopeInput is an input type that accepts DatacenterUsageScopeArgs and DatacenterUsageScopeOutput values. You can construct a concrete instance of `DatacenterUsageScopeInput` via:

DatacenterUsageScopeArgs{...}

type DatacenterUsageScopeOutput

type DatacenterUsageScopeOutput struct{ *pulumi.OutputState }

func (DatacenterUsageScopeOutput) ApplicationId

Id of the application to scope to. If empty then this scope applies to all applications.

func (DatacenterUsageScopeOutput) ElementType

func (DatacenterUsageScopeOutput) ElementType() reflect.Type

func (DatacenterUsageScopeOutput) EnvironmentFilterType

func (o DatacenterUsageScopeOutput) EnvironmentFilterType() pulumi.StringPtrOutput

Type of environment filter applied. Cannot be used with `environmentId`. Valid options are NON*PRODUCTION*ENVIRONMENTS, PRODUCTION_ENVIRONMENTS.

func (DatacenterUsageScopeOutput) EnvironmentId

Id of the id of the specific environment to scope to. Cannot be used with `environmentFilterType`.

func (DatacenterUsageScopeOutput) ToDatacenterUsageScopeOutput

func (o DatacenterUsageScopeOutput) ToDatacenterUsageScopeOutput() DatacenterUsageScopeOutput

func (DatacenterUsageScopeOutput) ToDatacenterUsageScopeOutputWithContext

func (o DatacenterUsageScopeOutput) ToDatacenterUsageScopeOutputWithContext(ctx context.Context) DatacenterUsageScopeOutput

type Gcp

type Gcp struct {
	pulumi.CustomResourceState

	// Delegate selectors to use for this provider.
	DelegateSelectors pulumi.StringArrayOutput `pulumi:"delegateSelectors"`
	// The name of the cloud provider.
	Name pulumi.StringOutput `pulumi:"name"`
	// The id of the secret containing the GCP credentials
	SecretFileId pulumi.StringPtrOutput `pulumi:"secretFileId"`
	// Skip validation of GCP configuration.
	SkipValidation pulumi.BoolPtrOutput `pulumi:"skipValidation"`
	// This block is used for scoping the resource to a specific set of applications or environments.
	UsageScopes GcpUsageScopeArrayOutput `pulumi:"usageScopes"`
}

Resource for creating a GCP cloud provider. This resource uses the config-as-code API's. When updating the `name` or `path` of this resource you should typically also set the `createBeforeDestroy = true` lifecycle setting.

func GetGcp

func GetGcp(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *GcpState, opts ...pulumi.ResourceOption) (*Gcp, error)

GetGcp gets an existing Gcp 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 NewGcp

func NewGcp(ctx *pulumi.Context,
	name string, args *GcpArgs, opts ...pulumi.ResourceOption) (*Gcp, error)

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

func (*Gcp) ElementType

func (*Gcp) ElementType() reflect.Type

func (*Gcp) ToGcpOutput

func (i *Gcp) ToGcpOutput() GcpOutput

func (*Gcp) ToGcpOutputWithContext

func (i *Gcp) ToGcpOutputWithContext(ctx context.Context) GcpOutput

type GcpArgs

type GcpArgs struct {
	// Delegate selectors to use for this provider.
	DelegateSelectors pulumi.StringArrayInput
	// The name of the cloud provider.
	Name pulumi.StringPtrInput
	// The id of the secret containing the GCP credentials
	SecretFileId pulumi.StringPtrInput
	// Skip validation of GCP configuration.
	SkipValidation pulumi.BoolPtrInput
	// This block is used for scoping the resource to a specific set of applications or environments.
	UsageScopes GcpUsageScopeArrayInput
}

The set of arguments for constructing a Gcp resource.

func (GcpArgs) ElementType

func (GcpArgs) ElementType() reflect.Type

type GcpArray

type GcpArray []GcpInput

func (GcpArray) ElementType

func (GcpArray) ElementType() reflect.Type

func (GcpArray) ToGcpArrayOutput

func (i GcpArray) ToGcpArrayOutput() GcpArrayOutput

func (GcpArray) ToGcpArrayOutputWithContext

func (i GcpArray) ToGcpArrayOutputWithContext(ctx context.Context) GcpArrayOutput

type GcpArrayInput

type GcpArrayInput interface {
	pulumi.Input

	ToGcpArrayOutput() GcpArrayOutput
	ToGcpArrayOutputWithContext(context.Context) GcpArrayOutput
}

GcpArrayInput is an input type that accepts GcpArray and GcpArrayOutput values. You can construct a concrete instance of `GcpArrayInput` via:

GcpArray{ GcpArgs{...} }

type GcpArrayOutput

type GcpArrayOutput struct{ *pulumi.OutputState }

func (GcpArrayOutput) ElementType

func (GcpArrayOutput) ElementType() reflect.Type

func (GcpArrayOutput) Index

func (GcpArrayOutput) ToGcpArrayOutput

func (o GcpArrayOutput) ToGcpArrayOutput() GcpArrayOutput

func (GcpArrayOutput) ToGcpArrayOutputWithContext

func (o GcpArrayOutput) ToGcpArrayOutputWithContext(ctx context.Context) GcpArrayOutput

type GcpInput

type GcpInput interface {
	pulumi.Input

	ToGcpOutput() GcpOutput
	ToGcpOutputWithContext(ctx context.Context) GcpOutput
}

type GcpMap

type GcpMap map[string]GcpInput

func (GcpMap) ElementType

func (GcpMap) ElementType() reflect.Type

func (GcpMap) ToGcpMapOutput

func (i GcpMap) ToGcpMapOutput() GcpMapOutput

func (GcpMap) ToGcpMapOutputWithContext

func (i GcpMap) ToGcpMapOutputWithContext(ctx context.Context) GcpMapOutput

type GcpMapInput

type GcpMapInput interface {
	pulumi.Input

	ToGcpMapOutput() GcpMapOutput
	ToGcpMapOutputWithContext(context.Context) GcpMapOutput
}

GcpMapInput is an input type that accepts GcpMap and GcpMapOutput values. You can construct a concrete instance of `GcpMapInput` via:

GcpMap{ "key": GcpArgs{...} }

type GcpMapOutput

type GcpMapOutput struct{ *pulumi.OutputState }

func (GcpMapOutput) ElementType

func (GcpMapOutput) ElementType() reflect.Type

func (GcpMapOutput) MapIndex

func (o GcpMapOutput) MapIndex(k pulumi.StringInput) GcpOutput

func (GcpMapOutput) ToGcpMapOutput

func (o GcpMapOutput) ToGcpMapOutput() GcpMapOutput

func (GcpMapOutput) ToGcpMapOutputWithContext

func (o GcpMapOutput) ToGcpMapOutputWithContext(ctx context.Context) GcpMapOutput

type GcpOutput

type GcpOutput struct{ *pulumi.OutputState }

func (GcpOutput) DelegateSelectors

func (o GcpOutput) DelegateSelectors() pulumi.StringArrayOutput

Delegate selectors to use for this provider.

func (GcpOutput) ElementType

func (GcpOutput) ElementType() reflect.Type

func (GcpOutput) Name

func (o GcpOutput) Name() pulumi.StringOutput

The name of the cloud provider.

func (GcpOutput) SecretFileId

func (o GcpOutput) SecretFileId() pulumi.StringPtrOutput

The id of the secret containing the GCP credentials

func (GcpOutput) SkipValidation

func (o GcpOutput) SkipValidation() pulumi.BoolPtrOutput

Skip validation of GCP configuration.

func (GcpOutput) ToGcpOutput

func (o GcpOutput) ToGcpOutput() GcpOutput

func (GcpOutput) ToGcpOutputWithContext

func (o GcpOutput) ToGcpOutputWithContext(ctx context.Context) GcpOutput

func (GcpOutput) UsageScopes

func (o GcpOutput) UsageScopes() GcpUsageScopeArrayOutput

This block is used for scoping the resource to a specific set of applications or environments.

type GcpState

type GcpState struct {
	// Delegate selectors to use for this provider.
	DelegateSelectors pulumi.StringArrayInput
	// The name of the cloud provider.
	Name pulumi.StringPtrInput
	// The id of the secret containing the GCP credentials
	SecretFileId pulumi.StringPtrInput
	// Skip validation of GCP configuration.
	SkipValidation pulumi.BoolPtrInput
	// This block is used for scoping the resource to a specific set of applications or environments.
	UsageScopes GcpUsageScopeArrayInput
}

func (GcpState) ElementType

func (GcpState) ElementType() reflect.Type

type GcpUsageScope

type GcpUsageScope struct {
	// Id of the application to scope to. If empty then this scope applies to all applications.
	ApplicationId *string `pulumi:"applicationId"`
	// Type of environment filter applied. Cannot be used with `environmentId`. Valid options are NON*PRODUCTION*ENVIRONMENTS, PRODUCTION_ENVIRONMENTS.
	EnvironmentFilterType *string `pulumi:"environmentFilterType"`
	// Id of the id of the specific environment to scope to. Cannot be used with `environmentFilterType`.
	EnvironmentId *string `pulumi:"environmentId"`
}

type GcpUsageScopeArgs

type GcpUsageScopeArgs struct {
	// Id of the application to scope to. If empty then this scope applies to all applications.
	ApplicationId pulumi.StringPtrInput `pulumi:"applicationId"`
	// Type of environment filter applied. Cannot be used with `environmentId`. Valid options are NON*PRODUCTION*ENVIRONMENTS, PRODUCTION_ENVIRONMENTS.
	EnvironmentFilterType pulumi.StringPtrInput `pulumi:"environmentFilterType"`
	// Id of the id of the specific environment to scope to. Cannot be used with `environmentFilterType`.
	EnvironmentId pulumi.StringPtrInput `pulumi:"environmentId"`
}

func (GcpUsageScopeArgs) ElementType

func (GcpUsageScopeArgs) ElementType() reflect.Type

func (GcpUsageScopeArgs) ToGcpUsageScopeOutput

func (i GcpUsageScopeArgs) ToGcpUsageScopeOutput() GcpUsageScopeOutput

func (GcpUsageScopeArgs) ToGcpUsageScopeOutputWithContext

func (i GcpUsageScopeArgs) ToGcpUsageScopeOutputWithContext(ctx context.Context) GcpUsageScopeOutput

type GcpUsageScopeArray

type GcpUsageScopeArray []GcpUsageScopeInput

func (GcpUsageScopeArray) ElementType

func (GcpUsageScopeArray) ElementType() reflect.Type

func (GcpUsageScopeArray) ToGcpUsageScopeArrayOutput

func (i GcpUsageScopeArray) ToGcpUsageScopeArrayOutput() GcpUsageScopeArrayOutput

func (GcpUsageScopeArray) ToGcpUsageScopeArrayOutputWithContext

func (i GcpUsageScopeArray) ToGcpUsageScopeArrayOutputWithContext(ctx context.Context) GcpUsageScopeArrayOutput

type GcpUsageScopeArrayInput

type GcpUsageScopeArrayInput interface {
	pulumi.Input

	ToGcpUsageScopeArrayOutput() GcpUsageScopeArrayOutput
	ToGcpUsageScopeArrayOutputWithContext(context.Context) GcpUsageScopeArrayOutput
}

GcpUsageScopeArrayInput is an input type that accepts GcpUsageScopeArray and GcpUsageScopeArrayOutput values. You can construct a concrete instance of `GcpUsageScopeArrayInput` via:

GcpUsageScopeArray{ GcpUsageScopeArgs{...} }

type GcpUsageScopeArrayOutput

type GcpUsageScopeArrayOutput struct{ *pulumi.OutputState }

func (GcpUsageScopeArrayOutput) ElementType

func (GcpUsageScopeArrayOutput) ElementType() reflect.Type

func (GcpUsageScopeArrayOutput) Index

func (GcpUsageScopeArrayOutput) ToGcpUsageScopeArrayOutput

func (o GcpUsageScopeArrayOutput) ToGcpUsageScopeArrayOutput() GcpUsageScopeArrayOutput

func (GcpUsageScopeArrayOutput) ToGcpUsageScopeArrayOutputWithContext

func (o GcpUsageScopeArrayOutput) ToGcpUsageScopeArrayOutputWithContext(ctx context.Context) GcpUsageScopeArrayOutput

type GcpUsageScopeInput

type GcpUsageScopeInput interface {
	pulumi.Input

	ToGcpUsageScopeOutput() GcpUsageScopeOutput
	ToGcpUsageScopeOutputWithContext(context.Context) GcpUsageScopeOutput
}

GcpUsageScopeInput is an input type that accepts GcpUsageScopeArgs and GcpUsageScopeOutput values. You can construct a concrete instance of `GcpUsageScopeInput` via:

GcpUsageScopeArgs{...}

type GcpUsageScopeOutput

type GcpUsageScopeOutput struct{ *pulumi.OutputState }

func (GcpUsageScopeOutput) ApplicationId

func (o GcpUsageScopeOutput) ApplicationId() pulumi.StringPtrOutput

Id of the application to scope to. If empty then this scope applies to all applications.

func (GcpUsageScopeOutput) ElementType

func (GcpUsageScopeOutput) ElementType() reflect.Type

func (GcpUsageScopeOutput) EnvironmentFilterType

func (o GcpUsageScopeOutput) EnvironmentFilterType() pulumi.StringPtrOutput

Type of environment filter applied. Cannot be used with `environmentId`. Valid options are NON*PRODUCTION*ENVIRONMENTS, PRODUCTION_ENVIRONMENTS.

func (GcpUsageScopeOutput) EnvironmentId

func (o GcpUsageScopeOutput) EnvironmentId() pulumi.StringPtrOutput

Id of the id of the specific environment to scope to. Cannot be used with `environmentFilterType`.

func (GcpUsageScopeOutput) ToGcpUsageScopeOutput

func (o GcpUsageScopeOutput) ToGcpUsageScopeOutput() GcpUsageScopeOutput

func (GcpUsageScopeOutput) ToGcpUsageScopeOutputWithContext

func (o GcpUsageScopeOutput) ToGcpUsageScopeOutputWithContext(ctx context.Context) GcpUsageScopeOutput

type GetDelegateIdsArgs

type GetDelegateIdsArgs struct {
	// The name of the delegate to query for.
	Name *string `pulumi:"name"`
	// The status of the delegate to query for. Valid values are DELETED, ENABLED, WAITING*FOR*APPROVAL
	Status *string `pulumi:"status"`
	// The type of the delegate to query for. Valid values are DOCKER, ECS, HELM*DELEGATE, KUBERNETES, SHELL*SCRIPT
	Type *string `pulumi:"type"`
}

A collection of arguments for invoking getDelegateIds.

type GetDelegateIdsOutputArgs

type GetDelegateIdsOutputArgs struct {
	// The name of the delegate to query for.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// The status of the delegate to query for. Valid values are DELETED, ENABLED, WAITING*FOR*APPROVAL
	Status pulumi.StringPtrInput `pulumi:"status"`
	// The type of the delegate to query for. Valid values are DOCKER, ECS, HELM*DELEGATE, KUBERNETES, SHELL*SCRIPT
	Type pulumi.StringPtrInput `pulumi:"type"`
}

A collection of arguments for invoking getDelegateIds.

func (GetDelegateIdsOutputArgs) ElementType

func (GetDelegateIdsOutputArgs) ElementType() reflect.Type

type GetDelegateIdsResult

type GetDelegateIdsResult struct {
	// A list of delegate ID's matching the specified search criteria.
	DelegateIds []string `pulumi:"delegateIds"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The name of the delegate to query for.
	Name *string `pulumi:"name"`
	// The status of the delegate to query for. Valid values are DELETED, ENABLED, WAITING*FOR*APPROVAL
	Status *string `pulumi:"status"`
	// The type of the delegate to query for. Valid values are DOCKER, ECS, HELM*DELEGATE, KUBERNETES, SHELL*SCRIPT
	Type *string `pulumi:"type"`
}

A collection of values returned by getDelegateIds.

func GetDelegateIds

func GetDelegateIds(ctx *pulumi.Context, args *GetDelegateIdsArgs, opts ...pulumi.InvokeOption) (*GetDelegateIdsResult, error)

Use this data source to get a list of delegate ID's matching the specified search criteria.

type GetDelegateIdsResultOutput

type GetDelegateIdsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getDelegateIds.

func (GetDelegateIdsResultOutput) DelegateIds

A list of delegate ID's matching the specified search criteria.

func (GetDelegateIdsResultOutput) ElementType

func (GetDelegateIdsResultOutput) ElementType() reflect.Type

func (GetDelegateIdsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetDelegateIdsResultOutput) Name

The name of the delegate to query for.

func (GetDelegateIdsResultOutput) Status

The status of the delegate to query for. Valid values are DELETED, ENABLED, WAITING*FOR*APPROVAL

func (GetDelegateIdsResultOutput) ToGetDelegateIdsResultOutput

func (o GetDelegateIdsResultOutput) ToGetDelegateIdsResultOutput() GetDelegateIdsResultOutput

func (GetDelegateIdsResultOutput) ToGetDelegateIdsResultOutputWithContext

func (o GetDelegateIdsResultOutput) ToGetDelegateIdsResultOutputWithContext(ctx context.Context) GetDelegateIdsResultOutput

func (GetDelegateIdsResultOutput) Type

The type of the delegate to query for. Valid values are DOCKER, ECS, HELM*DELEGATE, KUBERNETES, SHELL*SCRIPT

type Kubernetes

type Kubernetes struct {
	pulumi.CustomResourceState

	// Authentication configuration for the Kubernetes cluster
	Authentication KubernetesAuthenticationOutput `pulumi:"authentication"`
	// The name of the cloud provider.
	Name pulumi.StringOutput `pulumi:"name"`
	// Skip validation of Kubernetes configuration.
	SkipValidation pulumi.BoolPtrOutput `pulumi:"skipValidation"`
	// This block is used for scoping the resource to a specific set of applications or environments.
	UsageScopes KubernetesUsageScopeArrayOutput `pulumi:"usageScopes"`
}

Resource for creating a Kubernetes cloud provider. This resource uses the config-as-code API's. When updating the `name` or `path` of this resource you should typically also set the `createBeforeDestroy = true` lifecycle setting.

## Example Usage

```go package main

import (

"github.com/lbrlabs/pulumi-harness/sdk/go/harness"
"github.com/lbrlabs/pulumi-harness/sdk/go/harness/cloudprovider"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := harness.GetSecretManager(ctx, &harness.GetSecretManagerArgs{
			Default: pulumi.BoolRef(true),
		}, nil)
		if err != nil {
			return err
		}
		username, err := harness.NewEncryptedText(ctx, "username", &harness.EncryptedTextArgs{
			Value:           pulumi.String("<USERNAME>"),
			SecretManagerId: *pulumi.String(_default.Id),
		})
		if err != nil {
			return err
		}
		password, err := harness.NewEncryptedText(ctx, "password", &harness.EncryptedTextArgs{
			Value:           pulumi.String("<PASSWORD>"),
			SecretManagerId: *pulumi.String(_default.Id),
		})
		if err != nil {
			return err
		}
		_, err = cloudprovider.NewKubernetes(ctx, "example", &cloudprovider.KubernetesArgs{
			SkipValidation: pulumi.Bool(true),
			Authentication: &cloudprovider.KubernetesAuthenticationArgs{
				UsernamePassword: &cloudprovider.KubernetesAuthenticationUsernamePasswordArgs{
					MasterUrl:          pulumi.String("https://localhost.com"),
					UsernameSecretName: username.Name,
					PasswordSecretName: password.Name,
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Import using the Harness kubernetes cloud provider id.

```sh

$ pulumi import harness:cloudprovider/kubernetes:Kubernetes example <provider_id>

```

func GetKubernetes

func GetKubernetes(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *KubernetesState, opts ...pulumi.ResourceOption) (*Kubernetes, error)

GetKubernetes gets an existing Kubernetes 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 NewKubernetes

func NewKubernetes(ctx *pulumi.Context,
	name string, args *KubernetesArgs, opts ...pulumi.ResourceOption) (*Kubernetes, error)

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

func (*Kubernetes) ElementType

func (*Kubernetes) ElementType() reflect.Type

func (*Kubernetes) ToKubernetesOutput

func (i *Kubernetes) ToKubernetesOutput() KubernetesOutput

func (*Kubernetes) ToKubernetesOutputWithContext

func (i *Kubernetes) ToKubernetesOutputWithContext(ctx context.Context) KubernetesOutput

type KubernetesArgs

type KubernetesArgs struct {
	// Authentication configuration for the Kubernetes cluster
	Authentication KubernetesAuthenticationInput
	// The name of the cloud provider.
	Name pulumi.StringPtrInput
	// Skip validation of Kubernetes configuration.
	SkipValidation pulumi.BoolPtrInput
	// This block is used for scoping the resource to a specific set of applications or environments.
	UsageScopes KubernetesUsageScopeArrayInput
}

The set of arguments for constructing a Kubernetes resource.

func (KubernetesArgs) ElementType

func (KubernetesArgs) ElementType() reflect.Type

type KubernetesArray

type KubernetesArray []KubernetesInput

func (KubernetesArray) ElementType

func (KubernetesArray) ElementType() reflect.Type

func (KubernetesArray) ToKubernetesArrayOutput

func (i KubernetesArray) ToKubernetesArrayOutput() KubernetesArrayOutput

func (KubernetesArray) ToKubernetesArrayOutputWithContext

func (i KubernetesArray) ToKubernetesArrayOutputWithContext(ctx context.Context) KubernetesArrayOutput

type KubernetesArrayInput

type KubernetesArrayInput interface {
	pulumi.Input

	ToKubernetesArrayOutput() KubernetesArrayOutput
	ToKubernetesArrayOutputWithContext(context.Context) KubernetesArrayOutput
}

KubernetesArrayInput is an input type that accepts KubernetesArray and KubernetesArrayOutput values. You can construct a concrete instance of `KubernetesArrayInput` via:

KubernetesArray{ KubernetesArgs{...} }

type KubernetesArrayOutput

type KubernetesArrayOutput struct{ *pulumi.OutputState }

func (KubernetesArrayOutput) ElementType

func (KubernetesArrayOutput) ElementType() reflect.Type

func (KubernetesArrayOutput) Index

func (KubernetesArrayOutput) ToKubernetesArrayOutput

func (o KubernetesArrayOutput) ToKubernetesArrayOutput() KubernetesArrayOutput

func (KubernetesArrayOutput) ToKubernetesArrayOutputWithContext

func (o KubernetesArrayOutput) ToKubernetesArrayOutputWithContext(ctx context.Context) KubernetesArrayOutput

type KubernetesAuthentication

type KubernetesAuthentication struct {
	// Delegate selectors to inherit the GCP credentials from.
	DelegateSelectors []string `pulumi:"delegateSelectors"`
	// Service account configuration for connecting to the Kubernetes cluster
	Oidc *KubernetesAuthenticationOidc `pulumi:"oidc"`
	// Username and password for authentication to the cluster
	ServiceAccount *KubernetesAuthenticationServiceAccount `pulumi:"serviceAccount"`
	// Username and password for authentication to the cluster
	UsernamePassword *KubernetesAuthenticationUsernamePassword `pulumi:"usernamePassword"`
}

type KubernetesAuthenticationArgs

type KubernetesAuthenticationArgs struct {
	// Delegate selectors to inherit the GCP credentials from.
	DelegateSelectors pulumi.StringArrayInput `pulumi:"delegateSelectors"`
	// Service account configuration for connecting to the Kubernetes cluster
	Oidc KubernetesAuthenticationOidcPtrInput `pulumi:"oidc"`
	// Username and password for authentication to the cluster
	ServiceAccount KubernetesAuthenticationServiceAccountPtrInput `pulumi:"serviceAccount"`
	// Username and password for authentication to the cluster
	UsernamePassword KubernetesAuthenticationUsernamePasswordPtrInput `pulumi:"usernamePassword"`
}

func (KubernetesAuthenticationArgs) ElementType

func (KubernetesAuthenticationArgs) ToKubernetesAuthenticationOutput

func (i KubernetesAuthenticationArgs) ToKubernetesAuthenticationOutput() KubernetesAuthenticationOutput

func (KubernetesAuthenticationArgs) ToKubernetesAuthenticationOutputWithContext

func (i KubernetesAuthenticationArgs) ToKubernetesAuthenticationOutputWithContext(ctx context.Context) KubernetesAuthenticationOutput

func (KubernetesAuthenticationArgs) ToKubernetesAuthenticationPtrOutput

func (i KubernetesAuthenticationArgs) ToKubernetesAuthenticationPtrOutput() KubernetesAuthenticationPtrOutput

func (KubernetesAuthenticationArgs) ToKubernetesAuthenticationPtrOutputWithContext

func (i KubernetesAuthenticationArgs) ToKubernetesAuthenticationPtrOutputWithContext(ctx context.Context) KubernetesAuthenticationPtrOutput

type KubernetesAuthenticationInput

type KubernetesAuthenticationInput interface {
	pulumi.Input

	ToKubernetesAuthenticationOutput() KubernetesAuthenticationOutput
	ToKubernetesAuthenticationOutputWithContext(context.Context) KubernetesAuthenticationOutput
}

KubernetesAuthenticationInput is an input type that accepts KubernetesAuthenticationArgs and KubernetesAuthenticationOutput values. You can construct a concrete instance of `KubernetesAuthenticationInput` via:

KubernetesAuthenticationArgs{...}

type KubernetesAuthenticationOidc

type KubernetesAuthenticationOidc struct {
	ClientIdSecretName     string   `pulumi:"clientIdSecretName"`
	ClientSecretSecretName *string  `pulumi:"clientSecretSecretName"`
	IdentityProviderUrl    string   `pulumi:"identityProviderUrl"`
	MasterUrl              string   `pulumi:"masterUrl"`
	PasswordSecretName     string   `pulumi:"passwordSecretName"`
	Scopes                 []string `pulumi:"scopes"`
	Username               string   `pulumi:"username"`
}

type KubernetesAuthenticationOidcArgs

type KubernetesAuthenticationOidcArgs struct {
	ClientIdSecretName     pulumi.StringInput      `pulumi:"clientIdSecretName"`
	ClientSecretSecretName pulumi.StringPtrInput   `pulumi:"clientSecretSecretName"`
	IdentityProviderUrl    pulumi.StringInput      `pulumi:"identityProviderUrl"`
	MasterUrl              pulumi.StringInput      `pulumi:"masterUrl"`
	PasswordSecretName     pulumi.StringInput      `pulumi:"passwordSecretName"`
	Scopes                 pulumi.StringArrayInput `pulumi:"scopes"`
	Username               pulumi.StringInput      `pulumi:"username"`
}

func (KubernetesAuthenticationOidcArgs) ElementType

func (KubernetesAuthenticationOidcArgs) ToKubernetesAuthenticationOidcOutput

func (i KubernetesAuthenticationOidcArgs) ToKubernetesAuthenticationOidcOutput() KubernetesAuthenticationOidcOutput

func (KubernetesAuthenticationOidcArgs) ToKubernetesAuthenticationOidcOutputWithContext

func (i KubernetesAuthenticationOidcArgs) ToKubernetesAuthenticationOidcOutputWithContext(ctx context.Context) KubernetesAuthenticationOidcOutput

func (KubernetesAuthenticationOidcArgs) ToKubernetesAuthenticationOidcPtrOutput

func (i KubernetesAuthenticationOidcArgs) ToKubernetesAuthenticationOidcPtrOutput() KubernetesAuthenticationOidcPtrOutput

func (KubernetesAuthenticationOidcArgs) ToKubernetesAuthenticationOidcPtrOutputWithContext

func (i KubernetesAuthenticationOidcArgs) ToKubernetesAuthenticationOidcPtrOutputWithContext(ctx context.Context) KubernetesAuthenticationOidcPtrOutput

type KubernetesAuthenticationOidcInput

type KubernetesAuthenticationOidcInput interface {
	pulumi.Input

	ToKubernetesAuthenticationOidcOutput() KubernetesAuthenticationOidcOutput
	ToKubernetesAuthenticationOidcOutputWithContext(context.Context) KubernetesAuthenticationOidcOutput
}

KubernetesAuthenticationOidcInput is an input type that accepts KubernetesAuthenticationOidcArgs and KubernetesAuthenticationOidcOutput values. You can construct a concrete instance of `KubernetesAuthenticationOidcInput` via:

KubernetesAuthenticationOidcArgs{...}

type KubernetesAuthenticationOidcOutput

type KubernetesAuthenticationOidcOutput struct{ *pulumi.OutputState }

func (KubernetesAuthenticationOidcOutput) ClientIdSecretName

func (KubernetesAuthenticationOidcOutput) ClientSecretSecretName

func (o KubernetesAuthenticationOidcOutput) ClientSecretSecretName() pulumi.StringPtrOutput

func (KubernetesAuthenticationOidcOutput) ElementType

func (KubernetesAuthenticationOidcOutput) IdentityProviderUrl

func (o KubernetesAuthenticationOidcOutput) IdentityProviderUrl() pulumi.StringOutput

func (KubernetesAuthenticationOidcOutput) MasterUrl

func (KubernetesAuthenticationOidcOutput) PasswordSecretName

func (KubernetesAuthenticationOidcOutput) Scopes

func (KubernetesAuthenticationOidcOutput) ToKubernetesAuthenticationOidcOutput

func (o KubernetesAuthenticationOidcOutput) ToKubernetesAuthenticationOidcOutput() KubernetesAuthenticationOidcOutput

func (KubernetesAuthenticationOidcOutput) ToKubernetesAuthenticationOidcOutputWithContext

func (o KubernetesAuthenticationOidcOutput) ToKubernetesAuthenticationOidcOutputWithContext(ctx context.Context) KubernetesAuthenticationOidcOutput

func (KubernetesAuthenticationOidcOutput) ToKubernetesAuthenticationOidcPtrOutput

func (o KubernetesAuthenticationOidcOutput) ToKubernetesAuthenticationOidcPtrOutput() KubernetesAuthenticationOidcPtrOutput

func (KubernetesAuthenticationOidcOutput) ToKubernetesAuthenticationOidcPtrOutputWithContext

func (o KubernetesAuthenticationOidcOutput) ToKubernetesAuthenticationOidcPtrOutputWithContext(ctx context.Context) KubernetesAuthenticationOidcPtrOutput

func (KubernetesAuthenticationOidcOutput) Username

type KubernetesAuthenticationOidcPtrInput

type KubernetesAuthenticationOidcPtrInput interface {
	pulumi.Input

	ToKubernetesAuthenticationOidcPtrOutput() KubernetesAuthenticationOidcPtrOutput
	ToKubernetesAuthenticationOidcPtrOutputWithContext(context.Context) KubernetesAuthenticationOidcPtrOutput
}

KubernetesAuthenticationOidcPtrInput is an input type that accepts KubernetesAuthenticationOidcArgs, KubernetesAuthenticationOidcPtr and KubernetesAuthenticationOidcPtrOutput values. You can construct a concrete instance of `KubernetesAuthenticationOidcPtrInput` via:

        KubernetesAuthenticationOidcArgs{...}

or:

        nil

type KubernetesAuthenticationOidcPtrOutput

type KubernetesAuthenticationOidcPtrOutput struct{ *pulumi.OutputState }

func (KubernetesAuthenticationOidcPtrOutput) ClientIdSecretName

func (KubernetesAuthenticationOidcPtrOutput) ClientSecretSecretName

func (KubernetesAuthenticationOidcPtrOutput) Elem

func (KubernetesAuthenticationOidcPtrOutput) ElementType

func (KubernetesAuthenticationOidcPtrOutput) IdentityProviderUrl

func (KubernetesAuthenticationOidcPtrOutput) MasterUrl

func (KubernetesAuthenticationOidcPtrOutput) PasswordSecretName

func (KubernetesAuthenticationOidcPtrOutput) Scopes

func (KubernetesAuthenticationOidcPtrOutput) ToKubernetesAuthenticationOidcPtrOutput

func (o KubernetesAuthenticationOidcPtrOutput) ToKubernetesAuthenticationOidcPtrOutput() KubernetesAuthenticationOidcPtrOutput

func (KubernetesAuthenticationOidcPtrOutput) ToKubernetesAuthenticationOidcPtrOutputWithContext

func (o KubernetesAuthenticationOidcPtrOutput) ToKubernetesAuthenticationOidcPtrOutputWithContext(ctx context.Context) KubernetesAuthenticationOidcPtrOutput

func (KubernetesAuthenticationOidcPtrOutput) Username

type KubernetesAuthenticationOutput

type KubernetesAuthenticationOutput struct{ *pulumi.OutputState }

func (KubernetesAuthenticationOutput) DelegateSelectors

Delegate selectors to inherit the GCP credentials from.

func (KubernetesAuthenticationOutput) ElementType

func (KubernetesAuthenticationOutput) Oidc

Service account configuration for connecting to the Kubernetes cluster

func (KubernetesAuthenticationOutput) ServiceAccount

Username and password for authentication to the cluster

func (KubernetesAuthenticationOutput) ToKubernetesAuthenticationOutput

func (o KubernetesAuthenticationOutput) ToKubernetesAuthenticationOutput() KubernetesAuthenticationOutput

func (KubernetesAuthenticationOutput) ToKubernetesAuthenticationOutputWithContext

func (o KubernetesAuthenticationOutput) ToKubernetesAuthenticationOutputWithContext(ctx context.Context) KubernetesAuthenticationOutput

func (KubernetesAuthenticationOutput) ToKubernetesAuthenticationPtrOutput

func (o KubernetesAuthenticationOutput) ToKubernetesAuthenticationPtrOutput() KubernetesAuthenticationPtrOutput

func (KubernetesAuthenticationOutput) ToKubernetesAuthenticationPtrOutputWithContext

func (o KubernetesAuthenticationOutput) ToKubernetesAuthenticationPtrOutputWithContext(ctx context.Context) KubernetesAuthenticationPtrOutput

func (KubernetesAuthenticationOutput) UsernamePassword

Username and password for authentication to the cluster

type KubernetesAuthenticationPtrInput

type KubernetesAuthenticationPtrInput interface {
	pulumi.Input

	ToKubernetesAuthenticationPtrOutput() KubernetesAuthenticationPtrOutput
	ToKubernetesAuthenticationPtrOutputWithContext(context.Context) KubernetesAuthenticationPtrOutput
}

KubernetesAuthenticationPtrInput is an input type that accepts KubernetesAuthenticationArgs, KubernetesAuthenticationPtr and KubernetesAuthenticationPtrOutput values. You can construct a concrete instance of `KubernetesAuthenticationPtrInput` via:

        KubernetesAuthenticationArgs{...}

or:

        nil

type KubernetesAuthenticationPtrOutput

type KubernetesAuthenticationPtrOutput struct{ *pulumi.OutputState }

func (KubernetesAuthenticationPtrOutput) DelegateSelectors

Delegate selectors to inherit the GCP credentials from.

func (KubernetesAuthenticationPtrOutput) Elem

func (KubernetesAuthenticationPtrOutput) ElementType

func (KubernetesAuthenticationPtrOutput) Oidc

Service account configuration for connecting to the Kubernetes cluster

func (KubernetesAuthenticationPtrOutput) ServiceAccount

Username and password for authentication to the cluster

func (KubernetesAuthenticationPtrOutput) ToKubernetesAuthenticationPtrOutput

func (o KubernetesAuthenticationPtrOutput) ToKubernetesAuthenticationPtrOutput() KubernetesAuthenticationPtrOutput

func (KubernetesAuthenticationPtrOutput) ToKubernetesAuthenticationPtrOutputWithContext

func (o KubernetesAuthenticationPtrOutput) ToKubernetesAuthenticationPtrOutputWithContext(ctx context.Context) KubernetesAuthenticationPtrOutput

func (KubernetesAuthenticationPtrOutput) UsernamePassword

Username and password for authentication to the cluster

type KubernetesAuthenticationServiceAccount

type KubernetesAuthenticationServiceAccount struct {
	CaCertificateSecretName       *string `pulumi:"caCertificateSecretName"`
	MasterUrl                     string  `pulumi:"masterUrl"`
	ServiceAccountTokenSecretName string  `pulumi:"serviceAccountTokenSecretName"`
}

type KubernetesAuthenticationServiceAccountArgs

type KubernetesAuthenticationServiceAccountArgs struct {
	CaCertificateSecretName       pulumi.StringPtrInput `pulumi:"caCertificateSecretName"`
	MasterUrl                     pulumi.StringInput    `pulumi:"masterUrl"`
	ServiceAccountTokenSecretName pulumi.StringInput    `pulumi:"serviceAccountTokenSecretName"`
}

func (KubernetesAuthenticationServiceAccountArgs) ElementType

func (KubernetesAuthenticationServiceAccountArgs) ToKubernetesAuthenticationServiceAccountOutput

func (i KubernetesAuthenticationServiceAccountArgs) ToKubernetesAuthenticationServiceAccountOutput() KubernetesAuthenticationServiceAccountOutput

func (KubernetesAuthenticationServiceAccountArgs) ToKubernetesAuthenticationServiceAccountOutputWithContext

func (i KubernetesAuthenticationServiceAccountArgs) ToKubernetesAuthenticationServiceAccountOutputWithContext(ctx context.Context) KubernetesAuthenticationServiceAccountOutput

func (KubernetesAuthenticationServiceAccountArgs) ToKubernetesAuthenticationServiceAccountPtrOutput

func (i KubernetesAuthenticationServiceAccountArgs) ToKubernetesAuthenticationServiceAccountPtrOutput() KubernetesAuthenticationServiceAccountPtrOutput

func (KubernetesAuthenticationServiceAccountArgs) ToKubernetesAuthenticationServiceAccountPtrOutputWithContext

func (i KubernetesAuthenticationServiceAccountArgs) ToKubernetesAuthenticationServiceAccountPtrOutputWithContext(ctx context.Context) KubernetesAuthenticationServiceAccountPtrOutput

type KubernetesAuthenticationServiceAccountInput

type KubernetesAuthenticationServiceAccountInput interface {
	pulumi.Input

	ToKubernetesAuthenticationServiceAccountOutput() KubernetesAuthenticationServiceAccountOutput
	ToKubernetesAuthenticationServiceAccountOutputWithContext(context.Context) KubernetesAuthenticationServiceAccountOutput
}

KubernetesAuthenticationServiceAccountInput is an input type that accepts KubernetesAuthenticationServiceAccountArgs and KubernetesAuthenticationServiceAccountOutput values. You can construct a concrete instance of `KubernetesAuthenticationServiceAccountInput` via:

KubernetesAuthenticationServiceAccountArgs{...}

type KubernetesAuthenticationServiceAccountOutput

type KubernetesAuthenticationServiceAccountOutput struct{ *pulumi.OutputState }

func (KubernetesAuthenticationServiceAccountOutput) CaCertificateSecretName

func (KubernetesAuthenticationServiceAccountOutput) ElementType

func (KubernetesAuthenticationServiceAccountOutput) MasterUrl

func (KubernetesAuthenticationServiceAccountOutput) ServiceAccountTokenSecretName

func (o KubernetesAuthenticationServiceAccountOutput) ServiceAccountTokenSecretName() pulumi.StringOutput

func (KubernetesAuthenticationServiceAccountOutput) ToKubernetesAuthenticationServiceAccountOutput

func (o KubernetesAuthenticationServiceAccountOutput) ToKubernetesAuthenticationServiceAccountOutput() KubernetesAuthenticationServiceAccountOutput

func (KubernetesAuthenticationServiceAccountOutput) ToKubernetesAuthenticationServiceAccountOutputWithContext

func (o KubernetesAuthenticationServiceAccountOutput) ToKubernetesAuthenticationServiceAccountOutputWithContext(ctx context.Context) KubernetesAuthenticationServiceAccountOutput

func (KubernetesAuthenticationServiceAccountOutput) ToKubernetesAuthenticationServiceAccountPtrOutput

func (o KubernetesAuthenticationServiceAccountOutput) ToKubernetesAuthenticationServiceAccountPtrOutput() KubernetesAuthenticationServiceAccountPtrOutput

func (KubernetesAuthenticationServiceAccountOutput) ToKubernetesAuthenticationServiceAccountPtrOutputWithContext

func (o KubernetesAuthenticationServiceAccountOutput) ToKubernetesAuthenticationServiceAccountPtrOutputWithContext(ctx context.Context) KubernetesAuthenticationServiceAccountPtrOutput

type KubernetesAuthenticationServiceAccountPtrInput

type KubernetesAuthenticationServiceAccountPtrInput interface {
	pulumi.Input

	ToKubernetesAuthenticationServiceAccountPtrOutput() KubernetesAuthenticationServiceAccountPtrOutput
	ToKubernetesAuthenticationServiceAccountPtrOutputWithContext(context.Context) KubernetesAuthenticationServiceAccountPtrOutput
}

KubernetesAuthenticationServiceAccountPtrInput is an input type that accepts KubernetesAuthenticationServiceAccountArgs, KubernetesAuthenticationServiceAccountPtr and KubernetesAuthenticationServiceAccountPtrOutput values. You can construct a concrete instance of `KubernetesAuthenticationServiceAccountPtrInput` via:

        KubernetesAuthenticationServiceAccountArgs{...}

or:

        nil

type KubernetesAuthenticationServiceAccountPtrOutput

type KubernetesAuthenticationServiceAccountPtrOutput struct{ *pulumi.OutputState }

func (KubernetesAuthenticationServiceAccountPtrOutput) CaCertificateSecretName

func (KubernetesAuthenticationServiceAccountPtrOutput) Elem

func (KubernetesAuthenticationServiceAccountPtrOutput) ElementType

func (KubernetesAuthenticationServiceAccountPtrOutput) MasterUrl

func (KubernetesAuthenticationServiceAccountPtrOutput) ServiceAccountTokenSecretName

func (KubernetesAuthenticationServiceAccountPtrOutput) ToKubernetesAuthenticationServiceAccountPtrOutput

func (o KubernetesAuthenticationServiceAccountPtrOutput) ToKubernetesAuthenticationServiceAccountPtrOutput() KubernetesAuthenticationServiceAccountPtrOutput

func (KubernetesAuthenticationServiceAccountPtrOutput) ToKubernetesAuthenticationServiceAccountPtrOutputWithContext

func (o KubernetesAuthenticationServiceAccountPtrOutput) ToKubernetesAuthenticationServiceAccountPtrOutputWithContext(ctx context.Context) KubernetesAuthenticationServiceAccountPtrOutput

type KubernetesAuthenticationUsernamePassword

type KubernetesAuthenticationUsernamePassword struct {
	MasterUrl          string  `pulumi:"masterUrl"`
	PasswordSecretName string  `pulumi:"passwordSecretName"`
	Username           *string `pulumi:"username"`
	UsernameSecretName *string `pulumi:"usernameSecretName"`
}

type KubernetesAuthenticationUsernamePasswordArgs

type KubernetesAuthenticationUsernamePasswordArgs struct {
	MasterUrl          pulumi.StringInput    `pulumi:"masterUrl"`
	PasswordSecretName pulumi.StringInput    `pulumi:"passwordSecretName"`
	Username           pulumi.StringPtrInput `pulumi:"username"`
	UsernameSecretName pulumi.StringPtrInput `pulumi:"usernameSecretName"`
}

func (KubernetesAuthenticationUsernamePasswordArgs) ElementType

func (KubernetesAuthenticationUsernamePasswordArgs) ToKubernetesAuthenticationUsernamePasswordOutput

func (i KubernetesAuthenticationUsernamePasswordArgs) ToKubernetesAuthenticationUsernamePasswordOutput() KubernetesAuthenticationUsernamePasswordOutput

func (KubernetesAuthenticationUsernamePasswordArgs) ToKubernetesAuthenticationUsernamePasswordOutputWithContext

func (i KubernetesAuthenticationUsernamePasswordArgs) ToKubernetesAuthenticationUsernamePasswordOutputWithContext(ctx context.Context) KubernetesAuthenticationUsernamePasswordOutput

func (KubernetesAuthenticationUsernamePasswordArgs) ToKubernetesAuthenticationUsernamePasswordPtrOutput

func (i KubernetesAuthenticationUsernamePasswordArgs) ToKubernetesAuthenticationUsernamePasswordPtrOutput() KubernetesAuthenticationUsernamePasswordPtrOutput

func (KubernetesAuthenticationUsernamePasswordArgs) ToKubernetesAuthenticationUsernamePasswordPtrOutputWithContext

func (i KubernetesAuthenticationUsernamePasswordArgs) ToKubernetesAuthenticationUsernamePasswordPtrOutputWithContext(ctx context.Context) KubernetesAuthenticationUsernamePasswordPtrOutput

type KubernetesAuthenticationUsernamePasswordInput

type KubernetesAuthenticationUsernamePasswordInput interface {
	pulumi.Input

	ToKubernetesAuthenticationUsernamePasswordOutput() KubernetesAuthenticationUsernamePasswordOutput
	ToKubernetesAuthenticationUsernamePasswordOutputWithContext(context.Context) KubernetesAuthenticationUsernamePasswordOutput
}

KubernetesAuthenticationUsernamePasswordInput is an input type that accepts KubernetesAuthenticationUsernamePasswordArgs and KubernetesAuthenticationUsernamePasswordOutput values. You can construct a concrete instance of `KubernetesAuthenticationUsernamePasswordInput` via:

KubernetesAuthenticationUsernamePasswordArgs{...}

type KubernetesAuthenticationUsernamePasswordOutput

type KubernetesAuthenticationUsernamePasswordOutput struct{ *pulumi.OutputState }

func (KubernetesAuthenticationUsernamePasswordOutput) ElementType

func (KubernetesAuthenticationUsernamePasswordOutput) MasterUrl

func (KubernetesAuthenticationUsernamePasswordOutput) PasswordSecretName

func (KubernetesAuthenticationUsernamePasswordOutput) ToKubernetesAuthenticationUsernamePasswordOutput

func (o KubernetesAuthenticationUsernamePasswordOutput) ToKubernetesAuthenticationUsernamePasswordOutput() KubernetesAuthenticationUsernamePasswordOutput

func (KubernetesAuthenticationUsernamePasswordOutput) ToKubernetesAuthenticationUsernamePasswordOutputWithContext

func (o KubernetesAuthenticationUsernamePasswordOutput) ToKubernetesAuthenticationUsernamePasswordOutputWithContext(ctx context.Context) KubernetesAuthenticationUsernamePasswordOutput

func (KubernetesAuthenticationUsernamePasswordOutput) ToKubernetesAuthenticationUsernamePasswordPtrOutput

func (o KubernetesAuthenticationUsernamePasswordOutput) ToKubernetesAuthenticationUsernamePasswordPtrOutput() KubernetesAuthenticationUsernamePasswordPtrOutput

func (KubernetesAuthenticationUsernamePasswordOutput) ToKubernetesAuthenticationUsernamePasswordPtrOutputWithContext

func (o KubernetesAuthenticationUsernamePasswordOutput) ToKubernetesAuthenticationUsernamePasswordPtrOutputWithContext(ctx context.Context) KubernetesAuthenticationUsernamePasswordPtrOutput

func (KubernetesAuthenticationUsernamePasswordOutput) Username

func (KubernetesAuthenticationUsernamePasswordOutput) UsernameSecretName

type KubernetesAuthenticationUsernamePasswordPtrInput

type KubernetesAuthenticationUsernamePasswordPtrInput interface {
	pulumi.Input

	ToKubernetesAuthenticationUsernamePasswordPtrOutput() KubernetesAuthenticationUsernamePasswordPtrOutput
	ToKubernetesAuthenticationUsernamePasswordPtrOutputWithContext(context.Context) KubernetesAuthenticationUsernamePasswordPtrOutput
}

KubernetesAuthenticationUsernamePasswordPtrInput is an input type that accepts KubernetesAuthenticationUsernamePasswordArgs, KubernetesAuthenticationUsernamePasswordPtr and KubernetesAuthenticationUsernamePasswordPtrOutput values. You can construct a concrete instance of `KubernetesAuthenticationUsernamePasswordPtrInput` via:

        KubernetesAuthenticationUsernamePasswordArgs{...}

or:

        nil

type KubernetesAuthenticationUsernamePasswordPtrOutput

type KubernetesAuthenticationUsernamePasswordPtrOutput struct{ *pulumi.OutputState }

func (KubernetesAuthenticationUsernamePasswordPtrOutput) Elem

func (KubernetesAuthenticationUsernamePasswordPtrOutput) ElementType

func (KubernetesAuthenticationUsernamePasswordPtrOutput) MasterUrl

func (KubernetesAuthenticationUsernamePasswordPtrOutput) PasswordSecretName

func (KubernetesAuthenticationUsernamePasswordPtrOutput) ToKubernetesAuthenticationUsernamePasswordPtrOutput

func (o KubernetesAuthenticationUsernamePasswordPtrOutput) ToKubernetesAuthenticationUsernamePasswordPtrOutput() KubernetesAuthenticationUsernamePasswordPtrOutput

func (KubernetesAuthenticationUsernamePasswordPtrOutput) ToKubernetesAuthenticationUsernamePasswordPtrOutputWithContext

func (o KubernetesAuthenticationUsernamePasswordPtrOutput) ToKubernetesAuthenticationUsernamePasswordPtrOutputWithContext(ctx context.Context) KubernetesAuthenticationUsernamePasswordPtrOutput

func (KubernetesAuthenticationUsernamePasswordPtrOutput) Username

func (KubernetesAuthenticationUsernamePasswordPtrOutput) UsernameSecretName

type KubernetesInput

type KubernetesInput interface {
	pulumi.Input

	ToKubernetesOutput() KubernetesOutput
	ToKubernetesOutputWithContext(ctx context.Context) KubernetesOutput
}

type KubernetesMap

type KubernetesMap map[string]KubernetesInput

func (KubernetesMap) ElementType

func (KubernetesMap) ElementType() reflect.Type

func (KubernetesMap) ToKubernetesMapOutput

func (i KubernetesMap) ToKubernetesMapOutput() KubernetesMapOutput

func (KubernetesMap) ToKubernetesMapOutputWithContext

func (i KubernetesMap) ToKubernetesMapOutputWithContext(ctx context.Context) KubernetesMapOutput

type KubernetesMapInput

type KubernetesMapInput interface {
	pulumi.Input

	ToKubernetesMapOutput() KubernetesMapOutput
	ToKubernetesMapOutputWithContext(context.Context) KubernetesMapOutput
}

KubernetesMapInput is an input type that accepts KubernetesMap and KubernetesMapOutput values. You can construct a concrete instance of `KubernetesMapInput` via:

KubernetesMap{ "key": KubernetesArgs{...} }

type KubernetesMapOutput

type KubernetesMapOutput struct{ *pulumi.OutputState }

func (KubernetesMapOutput) ElementType

func (KubernetesMapOutput) ElementType() reflect.Type

func (KubernetesMapOutput) MapIndex

func (KubernetesMapOutput) ToKubernetesMapOutput

func (o KubernetesMapOutput) ToKubernetesMapOutput() KubernetesMapOutput

func (KubernetesMapOutput) ToKubernetesMapOutputWithContext

func (o KubernetesMapOutput) ToKubernetesMapOutputWithContext(ctx context.Context) KubernetesMapOutput

type KubernetesOutput

type KubernetesOutput struct{ *pulumi.OutputState }

func (KubernetesOutput) Authentication

Authentication configuration for the Kubernetes cluster

func (KubernetesOutput) ElementType

func (KubernetesOutput) ElementType() reflect.Type

func (KubernetesOutput) Name

The name of the cloud provider.

func (KubernetesOutput) SkipValidation

func (o KubernetesOutput) SkipValidation() pulumi.BoolPtrOutput

Skip validation of Kubernetes configuration.

func (KubernetesOutput) ToKubernetesOutput

func (o KubernetesOutput) ToKubernetesOutput() KubernetesOutput

func (KubernetesOutput) ToKubernetesOutputWithContext

func (o KubernetesOutput) ToKubernetesOutputWithContext(ctx context.Context) KubernetesOutput

func (KubernetesOutput) UsageScopes

This block is used for scoping the resource to a specific set of applications or environments.

type KubernetesState

type KubernetesState struct {
	// Authentication configuration for the Kubernetes cluster
	Authentication KubernetesAuthenticationPtrInput
	// The name of the cloud provider.
	Name pulumi.StringPtrInput
	// Skip validation of Kubernetes configuration.
	SkipValidation pulumi.BoolPtrInput
	// This block is used for scoping the resource to a specific set of applications or environments.
	UsageScopes KubernetesUsageScopeArrayInput
}

func (KubernetesState) ElementType

func (KubernetesState) ElementType() reflect.Type

type KubernetesUsageScope

type KubernetesUsageScope struct {
	// Id of the application to scope to. If empty then this scope applies to all applications.
	ApplicationId *string `pulumi:"applicationId"`
	// Type of environment filter applied. Cannot be used with `environmentId`. Valid options are NON*PRODUCTION*ENVIRONMENTS, PRODUCTION_ENVIRONMENTS.
	EnvironmentFilterType *string `pulumi:"environmentFilterType"`
	// Id of the id of the specific environment to scope to. Cannot be used with `environmentFilterType`.
	EnvironmentId *string `pulumi:"environmentId"`
}

type KubernetesUsageScopeArgs

type KubernetesUsageScopeArgs struct {
	// Id of the application to scope to. If empty then this scope applies to all applications.
	ApplicationId pulumi.StringPtrInput `pulumi:"applicationId"`
	// Type of environment filter applied. Cannot be used with `environmentId`. Valid options are NON*PRODUCTION*ENVIRONMENTS, PRODUCTION_ENVIRONMENTS.
	EnvironmentFilterType pulumi.StringPtrInput `pulumi:"environmentFilterType"`
	// Id of the id of the specific environment to scope to. Cannot be used with `environmentFilterType`.
	EnvironmentId pulumi.StringPtrInput `pulumi:"environmentId"`
}

func (KubernetesUsageScopeArgs) ElementType

func (KubernetesUsageScopeArgs) ElementType() reflect.Type

func (KubernetesUsageScopeArgs) ToKubernetesUsageScopeOutput

func (i KubernetesUsageScopeArgs) ToKubernetesUsageScopeOutput() KubernetesUsageScopeOutput

func (KubernetesUsageScopeArgs) ToKubernetesUsageScopeOutputWithContext

func (i KubernetesUsageScopeArgs) ToKubernetesUsageScopeOutputWithContext(ctx context.Context) KubernetesUsageScopeOutput

type KubernetesUsageScopeArray

type KubernetesUsageScopeArray []KubernetesUsageScopeInput

func (KubernetesUsageScopeArray) ElementType

func (KubernetesUsageScopeArray) ElementType() reflect.Type

func (KubernetesUsageScopeArray) ToKubernetesUsageScopeArrayOutput

func (i KubernetesUsageScopeArray) ToKubernetesUsageScopeArrayOutput() KubernetesUsageScopeArrayOutput

func (KubernetesUsageScopeArray) ToKubernetesUsageScopeArrayOutputWithContext

func (i KubernetesUsageScopeArray) ToKubernetesUsageScopeArrayOutputWithContext(ctx context.Context) KubernetesUsageScopeArrayOutput

type KubernetesUsageScopeArrayInput

type KubernetesUsageScopeArrayInput interface {
	pulumi.Input

	ToKubernetesUsageScopeArrayOutput() KubernetesUsageScopeArrayOutput
	ToKubernetesUsageScopeArrayOutputWithContext(context.Context) KubernetesUsageScopeArrayOutput
}

KubernetesUsageScopeArrayInput is an input type that accepts KubernetesUsageScopeArray and KubernetesUsageScopeArrayOutput values. You can construct a concrete instance of `KubernetesUsageScopeArrayInput` via:

KubernetesUsageScopeArray{ KubernetesUsageScopeArgs{...} }

type KubernetesUsageScopeArrayOutput

type KubernetesUsageScopeArrayOutput struct{ *pulumi.OutputState }

func (KubernetesUsageScopeArrayOutput) ElementType

func (KubernetesUsageScopeArrayOutput) Index

func (KubernetesUsageScopeArrayOutput) ToKubernetesUsageScopeArrayOutput

func (o KubernetesUsageScopeArrayOutput) ToKubernetesUsageScopeArrayOutput() KubernetesUsageScopeArrayOutput

func (KubernetesUsageScopeArrayOutput) ToKubernetesUsageScopeArrayOutputWithContext

func (o KubernetesUsageScopeArrayOutput) ToKubernetesUsageScopeArrayOutputWithContext(ctx context.Context) KubernetesUsageScopeArrayOutput

type KubernetesUsageScopeInput

type KubernetesUsageScopeInput interface {
	pulumi.Input

	ToKubernetesUsageScopeOutput() KubernetesUsageScopeOutput
	ToKubernetesUsageScopeOutputWithContext(context.Context) KubernetesUsageScopeOutput
}

KubernetesUsageScopeInput is an input type that accepts KubernetesUsageScopeArgs and KubernetesUsageScopeOutput values. You can construct a concrete instance of `KubernetesUsageScopeInput` via:

KubernetesUsageScopeArgs{...}

type KubernetesUsageScopeOutput

type KubernetesUsageScopeOutput struct{ *pulumi.OutputState }

func (KubernetesUsageScopeOutput) ApplicationId

Id of the application to scope to. If empty then this scope applies to all applications.

func (KubernetesUsageScopeOutput) ElementType

func (KubernetesUsageScopeOutput) ElementType() reflect.Type

func (KubernetesUsageScopeOutput) EnvironmentFilterType

func (o KubernetesUsageScopeOutput) EnvironmentFilterType() pulumi.StringPtrOutput

Type of environment filter applied. Cannot be used with `environmentId`. Valid options are NON*PRODUCTION*ENVIRONMENTS, PRODUCTION_ENVIRONMENTS.

func (KubernetesUsageScopeOutput) EnvironmentId

Id of the id of the specific environment to scope to. Cannot be used with `environmentFilterType`.

func (KubernetesUsageScopeOutput) ToKubernetesUsageScopeOutput

func (o KubernetesUsageScopeOutput) ToKubernetesUsageScopeOutput() KubernetesUsageScopeOutput

func (KubernetesUsageScopeOutput) ToKubernetesUsageScopeOutputWithContext

func (o KubernetesUsageScopeOutput) ToKubernetesUsageScopeOutputWithContext(ctx context.Context) KubernetesUsageScopeOutput

type Spot

type Spot struct {
	pulumi.CustomResourceState

	// The Spot account ID
	AccountId pulumi.StringOutput `pulumi:"accountId"`
	// The name of the cloud provider.
	Name pulumi.StringOutput `pulumi:"name"`
	// The name of the Harness secret containing the spot account token
	TokenSecretName pulumi.StringOutput `pulumi:"tokenSecretName"`
}

Resource for creating a Spot cloud provider. This resource uses the config-as-code API's. When updating the `name` or `path` of this resource you should typically also set the `createBeforeDestroy = true` lifecycle setting.

## Example Usage

```go package main

import (

"github.com/lbrlabs/pulumi-harness/sdk/go/harness"
"github.com/lbrlabs/pulumi-harness/sdk/go/harness/cloudprovider"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := harness.GetSecretManager(ctx, &harness.GetSecretManagerArgs{
			Default: pulumi.BoolRef(true),
		}, nil)
		if err != nil {
			return err
		}
		spotToken, err := harness.NewEncryptedText(ctx, "spotToken", &harness.EncryptedTextArgs{
			SecretManagerId: *pulumi.String(_default.Id),
			Value:           pulumi.String("<SPOT_TOKEN>"),
		})
		if err != nil {
			return err
		}
		_, err = cloudprovider.NewSpot(ctx, "example", &cloudprovider.SpotArgs{
			AccountId:       pulumi.String("<SPOT_ACCOUNT_ID>"),
			TokenSecretName: spotToken.Name,
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Import using the Harness Spot cloud provider id.

```sh

$ pulumi import harness:cloudprovider/spot:Spot example <provider_id>

```

func GetSpot

func GetSpot(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SpotState, opts ...pulumi.ResourceOption) (*Spot, error)

GetSpot gets an existing Spot 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 NewSpot

func NewSpot(ctx *pulumi.Context,
	name string, args *SpotArgs, opts ...pulumi.ResourceOption) (*Spot, error)

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

func (*Spot) ElementType

func (*Spot) ElementType() reflect.Type

func (*Spot) ToSpotOutput

func (i *Spot) ToSpotOutput() SpotOutput

func (*Spot) ToSpotOutputWithContext

func (i *Spot) ToSpotOutputWithContext(ctx context.Context) SpotOutput

type SpotArgs

type SpotArgs struct {
	// The Spot account ID
	AccountId pulumi.StringInput
	// The name of the cloud provider.
	Name pulumi.StringPtrInput
	// The name of the Harness secret containing the spot account token
	TokenSecretName pulumi.StringInput
}

The set of arguments for constructing a Spot resource.

func (SpotArgs) ElementType

func (SpotArgs) ElementType() reflect.Type

type SpotArray

type SpotArray []SpotInput

func (SpotArray) ElementType

func (SpotArray) ElementType() reflect.Type

func (SpotArray) ToSpotArrayOutput

func (i SpotArray) ToSpotArrayOutput() SpotArrayOutput

func (SpotArray) ToSpotArrayOutputWithContext

func (i SpotArray) ToSpotArrayOutputWithContext(ctx context.Context) SpotArrayOutput

type SpotArrayInput

type SpotArrayInput interface {
	pulumi.Input

	ToSpotArrayOutput() SpotArrayOutput
	ToSpotArrayOutputWithContext(context.Context) SpotArrayOutput
}

SpotArrayInput is an input type that accepts SpotArray and SpotArrayOutput values. You can construct a concrete instance of `SpotArrayInput` via:

SpotArray{ SpotArgs{...} }

type SpotArrayOutput

type SpotArrayOutput struct{ *pulumi.OutputState }

func (SpotArrayOutput) ElementType

func (SpotArrayOutput) ElementType() reflect.Type

func (SpotArrayOutput) Index

func (SpotArrayOutput) ToSpotArrayOutput

func (o SpotArrayOutput) ToSpotArrayOutput() SpotArrayOutput

func (SpotArrayOutput) ToSpotArrayOutputWithContext

func (o SpotArrayOutput) ToSpotArrayOutputWithContext(ctx context.Context) SpotArrayOutput

type SpotInput

type SpotInput interface {
	pulumi.Input

	ToSpotOutput() SpotOutput
	ToSpotOutputWithContext(ctx context.Context) SpotOutput
}

type SpotMap

type SpotMap map[string]SpotInput

func (SpotMap) ElementType

func (SpotMap) ElementType() reflect.Type

func (SpotMap) ToSpotMapOutput

func (i SpotMap) ToSpotMapOutput() SpotMapOutput

func (SpotMap) ToSpotMapOutputWithContext

func (i SpotMap) ToSpotMapOutputWithContext(ctx context.Context) SpotMapOutput

type SpotMapInput

type SpotMapInput interface {
	pulumi.Input

	ToSpotMapOutput() SpotMapOutput
	ToSpotMapOutputWithContext(context.Context) SpotMapOutput
}

SpotMapInput is an input type that accepts SpotMap and SpotMapOutput values. You can construct a concrete instance of `SpotMapInput` via:

SpotMap{ "key": SpotArgs{...} }

type SpotMapOutput

type SpotMapOutput struct{ *pulumi.OutputState }

func (SpotMapOutput) ElementType

func (SpotMapOutput) ElementType() reflect.Type

func (SpotMapOutput) MapIndex

func (SpotMapOutput) ToSpotMapOutput

func (o SpotMapOutput) ToSpotMapOutput() SpotMapOutput

func (SpotMapOutput) ToSpotMapOutputWithContext

func (o SpotMapOutput) ToSpotMapOutputWithContext(ctx context.Context) SpotMapOutput

type SpotOutput

type SpotOutput struct{ *pulumi.OutputState }

func (SpotOutput) AccountId

func (o SpotOutput) AccountId() pulumi.StringOutput

The Spot account ID

func (SpotOutput) ElementType

func (SpotOutput) ElementType() reflect.Type

func (SpotOutput) Name

func (o SpotOutput) Name() pulumi.StringOutput

The name of the cloud provider.

func (SpotOutput) ToSpotOutput

func (o SpotOutput) ToSpotOutput() SpotOutput

func (SpotOutput) ToSpotOutputWithContext

func (o SpotOutput) ToSpotOutputWithContext(ctx context.Context) SpotOutput

func (SpotOutput) TokenSecretName

func (o SpotOutput) TokenSecretName() pulumi.StringOutput

The name of the Harness secret containing the spot account token

type SpotState

type SpotState struct {
	// The Spot account ID
	AccountId pulumi.StringPtrInput
	// The name of the cloud provider.
	Name pulumi.StringPtrInput
	// The name of the Harness secret containing the spot account token
	TokenSecretName pulumi.StringPtrInput
}

func (SpotState) ElementType

func (SpotState) ElementType() reflect.Type

type Tanzu

type Tanzu struct {
	pulumi.CustomResourceState

	// The url of the Tanzu platform.
	Endpoint pulumi.StringOutput `pulumi:"endpoint"`
	// The name of the cloud provider.
	Name pulumi.StringOutput `pulumi:"name"`
	// The name of the Harness secret containing the password to use to authenticate to Tanzu.
	PasswordSecretName pulumi.StringOutput `pulumi:"passwordSecretName"`
	// Skip validation of Tanzu configuration.
	SkipValidation pulumi.BoolPtrOutput `pulumi:"skipValidation"`
	// The username to use to authenticate to Tanzu.
	Username pulumi.StringPtrOutput `pulumi:"username"`
	// The name of the Harness secret containing the username to authenticate to Tanzu with.
	UsernameSecretName pulumi.StringPtrOutput `pulumi:"usernameSecretName"`
}

Resource for creating a Tanzu cloud provider. This resource uses the config-as-code API's. When updating the `name` or `path` of this resource you should typically also set the `createBeforeDestroy = true` lifecycle setting.

## Example Usage

```go package main

import (

"github.com/lbrlabs/pulumi-harness/sdk/go/harness"
"github.com/lbrlabs/pulumi-harness/sdk/go/harness/cloudprovider"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := harness.GetSecretManager(ctx, &harness.GetSecretManagerArgs{
			Default: pulumi.BoolRef(true),
		}, nil)
		if err != nil {
			return err
		}
		tanzuPassword, err := harness.NewEncryptedText(ctx, "tanzuPassword", &harness.EncryptedTextArgs{
			Value:           pulumi.String("<PASSWORD>"),
			SecretManagerId: *pulumi.String(_default.Id),
		})
		if err != nil {
			return err
		}
		_, err = cloudprovider.NewTanzu(ctx, "example", &cloudprovider.TanzuArgs{
			Endpoint:           pulumi.String("https://endpoint.com"),
			SkipValidation:     pulumi.Bool(true),
			Username:           pulumi.String("<USERNAME>"),
			PasswordSecretName: tanzuPassword.Name,
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Import using the Harness Tanzu cloud provider id.

```sh

$ pulumi import harness:cloudprovider/tanzu:Tanzu example <provider_id>

```

func GetTanzu

func GetTanzu(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TanzuState, opts ...pulumi.ResourceOption) (*Tanzu, error)

GetTanzu gets an existing Tanzu 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 NewTanzu

func NewTanzu(ctx *pulumi.Context,
	name string, args *TanzuArgs, opts ...pulumi.ResourceOption) (*Tanzu, error)

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

func (*Tanzu) ElementType

func (*Tanzu) ElementType() reflect.Type

func (*Tanzu) ToTanzuOutput

func (i *Tanzu) ToTanzuOutput() TanzuOutput

func (*Tanzu) ToTanzuOutputWithContext

func (i *Tanzu) ToTanzuOutputWithContext(ctx context.Context) TanzuOutput

type TanzuArgs

type TanzuArgs struct {
	// The url of the Tanzu platform.
	Endpoint pulumi.StringInput
	// The name of the cloud provider.
	Name pulumi.StringPtrInput
	// The name of the Harness secret containing the password to use to authenticate to Tanzu.
	PasswordSecretName pulumi.StringInput
	// Skip validation of Tanzu configuration.
	SkipValidation pulumi.BoolPtrInput
	// The username to use to authenticate to Tanzu.
	Username pulumi.StringPtrInput
	// The name of the Harness secret containing the username to authenticate to Tanzu with.
	UsernameSecretName pulumi.StringPtrInput
}

The set of arguments for constructing a Tanzu resource.

func (TanzuArgs) ElementType

func (TanzuArgs) ElementType() reflect.Type

type TanzuArray

type TanzuArray []TanzuInput

func (TanzuArray) ElementType

func (TanzuArray) ElementType() reflect.Type

func (TanzuArray) ToTanzuArrayOutput

func (i TanzuArray) ToTanzuArrayOutput() TanzuArrayOutput

func (TanzuArray) ToTanzuArrayOutputWithContext

func (i TanzuArray) ToTanzuArrayOutputWithContext(ctx context.Context) TanzuArrayOutput

type TanzuArrayInput

type TanzuArrayInput interface {
	pulumi.Input

	ToTanzuArrayOutput() TanzuArrayOutput
	ToTanzuArrayOutputWithContext(context.Context) TanzuArrayOutput
}

TanzuArrayInput is an input type that accepts TanzuArray and TanzuArrayOutput values. You can construct a concrete instance of `TanzuArrayInput` via:

TanzuArray{ TanzuArgs{...} }

type TanzuArrayOutput

type TanzuArrayOutput struct{ *pulumi.OutputState }

func (TanzuArrayOutput) ElementType

func (TanzuArrayOutput) ElementType() reflect.Type

func (TanzuArrayOutput) Index

func (TanzuArrayOutput) ToTanzuArrayOutput

func (o TanzuArrayOutput) ToTanzuArrayOutput() TanzuArrayOutput

func (TanzuArrayOutput) ToTanzuArrayOutputWithContext

func (o TanzuArrayOutput) ToTanzuArrayOutputWithContext(ctx context.Context) TanzuArrayOutput

type TanzuInput

type TanzuInput interface {
	pulumi.Input

	ToTanzuOutput() TanzuOutput
	ToTanzuOutputWithContext(ctx context.Context) TanzuOutput
}

type TanzuMap

type TanzuMap map[string]TanzuInput

func (TanzuMap) ElementType

func (TanzuMap) ElementType() reflect.Type

func (TanzuMap) ToTanzuMapOutput

func (i TanzuMap) ToTanzuMapOutput() TanzuMapOutput

func (TanzuMap) ToTanzuMapOutputWithContext

func (i TanzuMap) ToTanzuMapOutputWithContext(ctx context.Context) TanzuMapOutput

type TanzuMapInput

type TanzuMapInput interface {
	pulumi.Input

	ToTanzuMapOutput() TanzuMapOutput
	ToTanzuMapOutputWithContext(context.Context) TanzuMapOutput
}

TanzuMapInput is an input type that accepts TanzuMap and TanzuMapOutput values. You can construct a concrete instance of `TanzuMapInput` via:

TanzuMap{ "key": TanzuArgs{...} }

type TanzuMapOutput

type TanzuMapOutput struct{ *pulumi.OutputState }

func (TanzuMapOutput) ElementType

func (TanzuMapOutput) ElementType() reflect.Type

func (TanzuMapOutput) MapIndex

func (TanzuMapOutput) ToTanzuMapOutput

func (o TanzuMapOutput) ToTanzuMapOutput() TanzuMapOutput

func (TanzuMapOutput) ToTanzuMapOutputWithContext

func (o TanzuMapOutput) ToTanzuMapOutputWithContext(ctx context.Context) TanzuMapOutput

type TanzuOutput

type TanzuOutput struct{ *pulumi.OutputState }

func (TanzuOutput) ElementType

func (TanzuOutput) ElementType() reflect.Type

func (TanzuOutput) Endpoint

func (o TanzuOutput) Endpoint() pulumi.StringOutput

The url of the Tanzu platform.

func (TanzuOutput) Name

func (o TanzuOutput) Name() pulumi.StringOutput

The name of the cloud provider.

func (TanzuOutput) PasswordSecretName

func (o TanzuOutput) PasswordSecretName() pulumi.StringOutput

The name of the Harness secret containing the password to use to authenticate to Tanzu.

func (TanzuOutput) SkipValidation

func (o TanzuOutput) SkipValidation() pulumi.BoolPtrOutput

Skip validation of Tanzu configuration.

func (TanzuOutput) ToTanzuOutput

func (o TanzuOutput) ToTanzuOutput() TanzuOutput

func (TanzuOutput) ToTanzuOutputWithContext

func (o TanzuOutput) ToTanzuOutputWithContext(ctx context.Context) TanzuOutput

func (TanzuOutput) Username

func (o TanzuOutput) Username() pulumi.StringPtrOutput

The username to use to authenticate to Tanzu.

func (TanzuOutput) UsernameSecretName

func (o TanzuOutput) UsernameSecretName() pulumi.StringPtrOutput

The name of the Harness secret containing the username to authenticate to Tanzu with.

type TanzuState

type TanzuState struct {
	// The url of the Tanzu platform.
	Endpoint pulumi.StringPtrInput
	// The name of the cloud provider.
	Name pulumi.StringPtrInput
	// The name of the Harness secret containing the password to use to authenticate to Tanzu.
	PasswordSecretName pulumi.StringPtrInput
	// Skip validation of Tanzu configuration.
	SkipValidation pulumi.BoolPtrInput
	// The username to use to authenticate to Tanzu.
	Username pulumi.StringPtrInput
	// The name of the Harness secret containing the username to authenticate to Tanzu with.
	UsernameSecretName pulumi.StringPtrInput
}

func (TanzuState) ElementType

func (TanzuState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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