huaweicloud

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 9 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 GetAvailabilityZonesArgs

type GetAvailabilityZonesArgs struct {
	// The region in which to obtain the available zones. If omitted, the provider-level region
	// will be used.
	Region *string `pulumi:"region"`
	// The `state` of the availability zones to match, default ("available").
	State *string `pulumi:"state"`
}

A collection of arguments for invoking getAvailabilityZones.

type GetAvailabilityZonesOutputArgs

type GetAvailabilityZonesOutputArgs struct {
	// The region in which to obtain the available zones. If omitted, the provider-level region
	// will be used.
	Region pulumi.StringPtrInput `pulumi:"region"`
	// The `state` of the availability zones to match, default ("available").
	State pulumi.StringPtrInput `pulumi:"state"`
}

A collection of arguments for invoking getAvailabilityZones.

func (GetAvailabilityZonesOutputArgs) ElementType

type GetAvailabilityZonesResult

type GetAvailabilityZonesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The names of the availability zones, ordered alphanumerically, that match the queried `state`
	Names  []string `pulumi:"names"`
	Region string   `pulumi:"region"`
	State  *string  `pulumi:"state"`
}

A collection of values returned by getAvailabilityZones.

func GetAvailabilityZones

func GetAvailabilityZones(ctx *pulumi.Context, args *GetAvailabilityZonesArgs, opts ...pulumi.InvokeOption) (*GetAvailabilityZonesResult, error)

## # getAvailabilityZones

Use this data source to get a list of availability zones from HuaweiCloud

## Example Usage

```go package main

import (

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud"
"github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := huaweicloud.GetAvailabilityZones(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetAvailabilityZonesResultOutput

type GetAvailabilityZonesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getAvailabilityZones.

func (GetAvailabilityZonesResultOutput) ElementType

func (GetAvailabilityZonesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetAvailabilityZonesResultOutput) Names

The names of the availability zones, ordered alphanumerically, that match the queried `state`

func (GetAvailabilityZonesResultOutput) Region

func (GetAvailabilityZonesResultOutput) State

func (GetAvailabilityZonesResultOutput) ToGetAvailabilityZonesResultOutput

func (o GetAvailabilityZonesResultOutput) ToGetAvailabilityZonesResultOutput() GetAvailabilityZonesResultOutput

func (GetAvailabilityZonesResultOutput) ToGetAvailabilityZonesResultOutputWithContext

func (o GetAvailabilityZonesResultOutput) ToGetAvailabilityZonesResultOutputWithContext(ctx context.Context) GetAvailabilityZonesResultOutput

type Provider

type Provider struct {
	pulumi.ProviderResourceState

	// The access key of the HuaweiCloud to use.
	AccessKey pulumi.StringPtrOutput `pulumi:"accessKey"`
	// The name of domain who created the agency (Identity v3).
	AgencyDomainName pulumi.StringPtrOutput `pulumi:"agencyDomainName"`
	// The name of agency
	AgencyName pulumi.StringPtrOutput `pulumi:"agencyName"`
	// The Identity authentication URL.
	AuthUrl pulumi.StringPtrOutput `pulumi:"authUrl"`
	// A Custom CA certificate.
	CacertFile pulumi.StringPtrOutput `pulumi:"cacertFile"`
	// A client certificate to authenticate with.
	Cert pulumi.StringPtrOutput `pulumi:"cert"`
	// The endpoint of cloud provider, defaults to myhuaweicloud.com
	Cloud pulumi.StringPtrOutput `pulumi:"cloud"`
	// The name of delegated project (Identity v3).
	DelegatedProject pulumi.StringPtrOutput `pulumi:"delegatedProject"`
	// The ID of the Domain to scope to.
	DomainId pulumi.StringPtrOutput `pulumi:"domainId"`
	// The name of the Domain to scope to.
	DomainName pulumi.StringPtrOutput `pulumi:"domainName"`
	// enterprise project id
	EnterpriseProjectId pulumi.StringPtrOutput `pulumi:"enterpriseProjectId"`
	// A client private key to authenticate with.
	Key pulumi.StringPtrOutput `pulumi:"key"`
	// Password to login with.
	Password pulumi.StringPtrOutput `pulumi:"password"`
	// The profile name as set in the shared config file.
	Profile pulumi.StringPtrOutput `pulumi:"profile"`
	// The ID of the project to login with.
	ProjectId pulumi.StringPtrOutput `pulumi:"projectId"`
	// The name of the project to login with.
	ProjectName pulumi.StringPtrOutput `pulumi:"projectName"`
	// The HuaweiCloud region to connect to.
	Region pulumi.StringPtrOutput `pulumi:"region"`
	// The secret key of the HuaweiCloud to use.
	SecretKey pulumi.StringPtrOutput `pulumi:"secretKey"`
	// The security token to authenticate with a temporary security credential.
	SecurityToken pulumi.StringPtrOutput `pulumi:"securityToken"`
	// The path to the shared config file. If not set, the default is ~/.hcloud/config.json.
	SharedConfigFile pulumi.StringPtrOutput `pulumi:"sharedConfigFile"`
	// The ID of the Tenant (Identity v2) to login with.
	TenantId pulumi.StringPtrOutput `pulumi:"tenantId"`
	// The name of the Tenant (Identity v2) to login with.
	TenantName pulumi.StringPtrOutput `pulumi:"tenantName"`
	// Authentication token to use as an alternative to username/password.
	Token pulumi.StringPtrOutput `pulumi:"token"`
	// User ID to login with.
	UserId pulumi.StringPtrOutput `pulumi:"userId"`
	// Username to login with.
	UserName pulumi.StringPtrOutput `pulumi:"userName"`
}

The provider type for the huaweicloud package. By default, resources use package-wide configuration settings, however an explicit `Provider` instance may be created and passed during resource construction to achieve fine-grained programmatic control over provider settings. See the [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.

func NewProvider

func NewProvider(ctx *pulumi.Context,
	name string, args *ProviderArgs, opts ...pulumi.ResourceOption) (*Provider, error)

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

func (*Provider) ElementType

func (*Provider) ElementType() reflect.Type

func (*Provider) ToProviderOutput

func (i *Provider) ToProviderOutput() ProviderOutput

func (*Provider) ToProviderOutputWithContext

func (i *Provider) ToProviderOutputWithContext(ctx context.Context) ProviderOutput

type ProviderArgs

type ProviderArgs struct {
	// The access key of the HuaweiCloud to use.
	AccessKey pulumi.StringPtrInput
	// The name of domain who created the agency (Identity v3).
	AgencyDomainName pulumi.StringPtrInput
	// The name of agency
	AgencyName pulumi.StringPtrInput
	AssumeRole ProviderAssumeRolePtrInput
	// The Identity authentication URL.
	AuthUrl pulumi.StringPtrInput
	// A Custom CA certificate.
	CacertFile pulumi.StringPtrInput
	// A client certificate to authenticate with.
	Cert pulumi.StringPtrInput
	// The endpoint of cloud provider, defaults to myhuaweicloud.com
	Cloud pulumi.StringPtrInput
	// The name of delegated project (Identity v3).
	DelegatedProject pulumi.StringPtrInput
	// The ID of the Domain to scope to.
	DomainId pulumi.StringPtrInput
	// The name of the Domain to scope to.
	DomainName pulumi.StringPtrInput
	// The custom endpoints used to override the default endpoint URL.
	Endpoints pulumi.StringMapInput
	// enterprise project id
	EnterpriseProjectId pulumi.StringPtrInput
	// Trust self-signed certificates.
	Insecure pulumi.BoolPtrInput
	// A client private key to authenticate with.
	Key pulumi.StringPtrInput
	// How many times HTTP connection should be retried until giving up.
	MaxRetries pulumi.IntPtrInput
	// Password to login with.
	Password pulumi.StringPtrInput
	// The profile name as set in the shared config file.
	Profile pulumi.StringPtrInput
	// The ID of the project to login with.
	ProjectId pulumi.StringPtrInput
	// The name of the project to login with.
	ProjectName pulumi.StringPtrInput
	// The HuaweiCloud region to connect to.
	Region pulumi.StringPtrInput
	// Whether the service endpoints are regional
	Regional pulumi.BoolPtrInput
	// The secret key of the HuaweiCloud to use.
	SecretKey pulumi.StringPtrInput
	// The security token to authenticate with a temporary security credential.
	SecurityToken pulumi.StringPtrInput
	// The path to the shared config file. If not set, the default is ~/.hcloud/config.json.
	SharedConfigFile pulumi.StringPtrInput
	// The ID of the Tenant (Identity v2) to login with.
	TenantId pulumi.StringPtrInput
	// The name of the Tenant (Identity v2) to login with.
	TenantName pulumi.StringPtrInput
	// Authentication token to use as an alternative to username/password.
	Token pulumi.StringPtrInput
	// User ID to login with.
	UserId pulumi.StringPtrInput
	// Username to login with.
	UserName pulumi.StringPtrInput
}

The set of arguments for constructing a Provider resource.

func (ProviderArgs) ElementType

func (ProviderArgs) ElementType() reflect.Type

type ProviderAssumeRole

type ProviderAssumeRole struct {
	AgencyName string `pulumi:"agencyName"`
	DomainName string `pulumi:"domainName"`
}

type ProviderAssumeRoleArgs

type ProviderAssumeRoleArgs struct {
	AgencyName pulumi.StringInput `pulumi:"agencyName"`
	DomainName pulumi.StringInput `pulumi:"domainName"`
}

func (ProviderAssumeRoleArgs) ElementType

func (ProviderAssumeRoleArgs) ElementType() reflect.Type

func (ProviderAssumeRoleArgs) ToProviderAssumeRoleOutput

func (i ProviderAssumeRoleArgs) ToProviderAssumeRoleOutput() ProviderAssumeRoleOutput

func (ProviderAssumeRoleArgs) ToProviderAssumeRoleOutputWithContext

func (i ProviderAssumeRoleArgs) ToProviderAssumeRoleOutputWithContext(ctx context.Context) ProviderAssumeRoleOutput

func (ProviderAssumeRoleArgs) ToProviderAssumeRolePtrOutput

func (i ProviderAssumeRoleArgs) ToProviderAssumeRolePtrOutput() ProviderAssumeRolePtrOutput

func (ProviderAssumeRoleArgs) ToProviderAssumeRolePtrOutputWithContext

func (i ProviderAssumeRoleArgs) ToProviderAssumeRolePtrOutputWithContext(ctx context.Context) ProviderAssumeRolePtrOutput

type ProviderAssumeRoleInput

type ProviderAssumeRoleInput interface {
	pulumi.Input

	ToProviderAssumeRoleOutput() ProviderAssumeRoleOutput
	ToProviderAssumeRoleOutputWithContext(context.Context) ProviderAssumeRoleOutput
}

ProviderAssumeRoleInput is an input type that accepts ProviderAssumeRoleArgs and ProviderAssumeRoleOutput values. You can construct a concrete instance of `ProviderAssumeRoleInput` via:

ProviderAssumeRoleArgs{...}

type ProviderAssumeRoleOutput

type ProviderAssumeRoleOutput struct{ *pulumi.OutputState }

func (ProviderAssumeRoleOutput) AgencyName

func (ProviderAssumeRoleOutput) DomainName

func (ProviderAssumeRoleOutput) ElementType

func (ProviderAssumeRoleOutput) ElementType() reflect.Type

func (ProviderAssumeRoleOutput) ToProviderAssumeRoleOutput

func (o ProviderAssumeRoleOutput) ToProviderAssumeRoleOutput() ProviderAssumeRoleOutput

func (ProviderAssumeRoleOutput) ToProviderAssumeRoleOutputWithContext

func (o ProviderAssumeRoleOutput) ToProviderAssumeRoleOutputWithContext(ctx context.Context) ProviderAssumeRoleOutput

func (ProviderAssumeRoleOutput) ToProviderAssumeRolePtrOutput

func (o ProviderAssumeRoleOutput) ToProviderAssumeRolePtrOutput() ProviderAssumeRolePtrOutput

func (ProviderAssumeRoleOutput) ToProviderAssumeRolePtrOutputWithContext

func (o ProviderAssumeRoleOutput) ToProviderAssumeRolePtrOutputWithContext(ctx context.Context) ProviderAssumeRolePtrOutput

type ProviderAssumeRolePtrInput

type ProviderAssumeRolePtrInput interface {
	pulumi.Input

	ToProviderAssumeRolePtrOutput() ProviderAssumeRolePtrOutput
	ToProviderAssumeRolePtrOutputWithContext(context.Context) ProviderAssumeRolePtrOutput
}

ProviderAssumeRolePtrInput is an input type that accepts ProviderAssumeRoleArgs, ProviderAssumeRolePtr and ProviderAssumeRolePtrOutput values. You can construct a concrete instance of `ProviderAssumeRolePtrInput` via:

        ProviderAssumeRoleArgs{...}

or:

        nil

type ProviderAssumeRolePtrOutput

type ProviderAssumeRolePtrOutput struct{ *pulumi.OutputState }

func (ProviderAssumeRolePtrOutput) AgencyName

func (ProviderAssumeRolePtrOutput) DomainName

func (ProviderAssumeRolePtrOutput) Elem

func (ProviderAssumeRolePtrOutput) ElementType

func (ProviderAssumeRolePtrOutput) ToProviderAssumeRolePtrOutput

func (o ProviderAssumeRolePtrOutput) ToProviderAssumeRolePtrOutput() ProviderAssumeRolePtrOutput

func (ProviderAssumeRolePtrOutput) ToProviderAssumeRolePtrOutputWithContext

func (o ProviderAssumeRolePtrOutput) ToProviderAssumeRolePtrOutputWithContext(ctx context.Context) ProviderAssumeRolePtrOutput

type ProviderInput

type ProviderInput interface {
	pulumi.Input

	ToProviderOutput() ProviderOutput
	ToProviderOutputWithContext(ctx context.Context) ProviderOutput
}

type ProviderOutput

type ProviderOutput struct{ *pulumi.OutputState }

func (ProviderOutput) AccessKey

func (o ProviderOutput) AccessKey() pulumi.StringPtrOutput

The access key of the HuaweiCloud to use.

func (ProviderOutput) AgencyDomainName

func (o ProviderOutput) AgencyDomainName() pulumi.StringPtrOutput

The name of domain who created the agency (Identity v3).

func (ProviderOutput) AgencyName

func (o ProviderOutput) AgencyName() pulumi.StringPtrOutput

The name of agency

func (ProviderOutput) AuthUrl

The Identity authentication URL.

func (ProviderOutput) CacertFile

func (o ProviderOutput) CacertFile() pulumi.StringPtrOutput

A Custom CA certificate.

func (ProviderOutput) Cert

A client certificate to authenticate with.

func (ProviderOutput) Cloud

The endpoint of cloud provider, defaults to myhuaweicloud.com

func (ProviderOutput) DelegatedProject

func (o ProviderOutput) DelegatedProject() pulumi.StringPtrOutput

The name of delegated project (Identity v3).

func (ProviderOutput) DomainId

func (o ProviderOutput) DomainId() pulumi.StringPtrOutput

The ID of the Domain to scope to.

func (ProviderOutput) DomainName

func (o ProviderOutput) DomainName() pulumi.StringPtrOutput

The name of the Domain to scope to.

func (ProviderOutput) ElementType

func (ProviderOutput) ElementType() reflect.Type

func (ProviderOutput) EnterpriseProjectId

func (o ProviderOutput) EnterpriseProjectId() pulumi.StringPtrOutput

enterprise project id

func (ProviderOutput) Key

A client private key to authenticate with.

func (ProviderOutput) Password

func (o ProviderOutput) Password() pulumi.StringPtrOutput

Password to login with.

func (ProviderOutput) Profile

The profile name as set in the shared config file.

func (ProviderOutput) ProjectId

func (o ProviderOutput) ProjectId() pulumi.StringPtrOutput

The ID of the project to login with.

func (ProviderOutput) ProjectName

func (o ProviderOutput) ProjectName() pulumi.StringPtrOutput

The name of the project to login with.

func (ProviderOutput) Region

The HuaweiCloud region to connect to.

func (ProviderOutput) SecretKey

func (o ProviderOutput) SecretKey() pulumi.StringPtrOutput

The secret key of the HuaweiCloud to use.

func (ProviderOutput) SecurityToken

func (o ProviderOutput) SecurityToken() pulumi.StringPtrOutput

The security token to authenticate with a temporary security credential.

func (ProviderOutput) SharedConfigFile

func (o ProviderOutput) SharedConfigFile() pulumi.StringPtrOutput

The path to the shared config file. If not set, the default is ~/.hcloud/config.json.

func (ProviderOutput) TenantId

func (o ProviderOutput) TenantId() pulumi.StringPtrOutput

The ID of the Tenant (Identity v2) to login with.

func (ProviderOutput) TenantName

func (o ProviderOutput) TenantName() pulumi.StringPtrOutput

The name of the Tenant (Identity v2) to login with.

func (ProviderOutput) ToProviderOutput

func (o ProviderOutput) ToProviderOutput() ProviderOutput

func (ProviderOutput) ToProviderOutputWithContext

func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) ProviderOutput

func (ProviderOutput) Token

Authentication token to use as an alternative to username/password.

func (ProviderOutput) UserId

User ID to login with.

func (ProviderOutput) UserName

func (o ProviderOutput) UserName() pulumi.StringPtrOutput

Username to login with.

Jump to

Keyboard shortcuts

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