ens

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion added in v0.0.1

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 GetKeyPairsArgs

type GetKeyPairsArgs struct {
	// The name of the key pair.
	KeyPairName *string `pulumi:"keyPairName"`
	// A regex string to filter results by Key Pair name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// The version number.
	Version string `pulumi:"version"`
}

A collection of arguments for invoking getKeyPairs.

type GetKeyPairsOutputArgs

type GetKeyPairsOutputArgs struct {
	// The name of the key pair.
	KeyPairName pulumi.StringPtrInput `pulumi:"keyPairName"`
	// A regex string to filter results by Key Pair name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The version number.
	Version pulumi.StringInput `pulumi:"version"`
}

A collection of arguments for invoking getKeyPairs.

func (GetKeyPairsOutputArgs) ElementType

func (GetKeyPairsOutputArgs) ElementType() reflect.Type

type GetKeyPairsPair

type GetKeyPairsPair struct {
	// The creation time of the key pair. The date format is in accordance with ISO8601 notation and uses UTC time. The format is yyyy-MM-ddTHH:mm:ssZ.
	CreateTime string `pulumi:"createTime"`
	// The ID of the Key Pair.
	Id string `pulumi:"id"`
	// Fingerprint of the key pair.
	KeyPairFingerPrint string `pulumi:"keyPairFingerPrint"`
	// The name of the key pair.
	KeyPairName string `pulumi:"keyPairName"`
	// The version number.
	Version string `pulumi:"version"`
}

type GetKeyPairsPairArgs

type GetKeyPairsPairArgs struct {
	// The creation time of the key pair. The date format is in accordance with ISO8601 notation and uses UTC time. The format is yyyy-MM-ddTHH:mm:ssZ.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// The ID of the Key Pair.
	Id pulumi.StringInput `pulumi:"id"`
	// Fingerprint of the key pair.
	KeyPairFingerPrint pulumi.StringInput `pulumi:"keyPairFingerPrint"`
	// The name of the key pair.
	KeyPairName pulumi.StringInput `pulumi:"keyPairName"`
	// The version number.
	Version pulumi.StringInput `pulumi:"version"`
}

func (GetKeyPairsPairArgs) ElementType

func (GetKeyPairsPairArgs) ElementType() reflect.Type

func (GetKeyPairsPairArgs) ToGetKeyPairsPairOutput

func (i GetKeyPairsPairArgs) ToGetKeyPairsPairOutput() GetKeyPairsPairOutput

func (GetKeyPairsPairArgs) ToGetKeyPairsPairOutputWithContext

func (i GetKeyPairsPairArgs) ToGetKeyPairsPairOutputWithContext(ctx context.Context) GetKeyPairsPairOutput

type GetKeyPairsPairArray

type GetKeyPairsPairArray []GetKeyPairsPairInput

func (GetKeyPairsPairArray) ElementType

func (GetKeyPairsPairArray) ElementType() reflect.Type

func (GetKeyPairsPairArray) ToGetKeyPairsPairArrayOutput

func (i GetKeyPairsPairArray) ToGetKeyPairsPairArrayOutput() GetKeyPairsPairArrayOutput

func (GetKeyPairsPairArray) ToGetKeyPairsPairArrayOutputWithContext

func (i GetKeyPairsPairArray) ToGetKeyPairsPairArrayOutputWithContext(ctx context.Context) GetKeyPairsPairArrayOutput

type GetKeyPairsPairArrayInput

type GetKeyPairsPairArrayInput interface {
	pulumi.Input

	ToGetKeyPairsPairArrayOutput() GetKeyPairsPairArrayOutput
	ToGetKeyPairsPairArrayOutputWithContext(context.Context) GetKeyPairsPairArrayOutput
}

GetKeyPairsPairArrayInput is an input type that accepts GetKeyPairsPairArray and GetKeyPairsPairArrayOutput values. You can construct a concrete instance of `GetKeyPairsPairArrayInput` via:

GetKeyPairsPairArray{ GetKeyPairsPairArgs{...} }

type GetKeyPairsPairArrayOutput

type GetKeyPairsPairArrayOutput struct{ *pulumi.OutputState }

func (GetKeyPairsPairArrayOutput) ElementType

func (GetKeyPairsPairArrayOutput) ElementType() reflect.Type

func (GetKeyPairsPairArrayOutput) Index

func (GetKeyPairsPairArrayOutput) ToGetKeyPairsPairArrayOutput

func (o GetKeyPairsPairArrayOutput) ToGetKeyPairsPairArrayOutput() GetKeyPairsPairArrayOutput

func (GetKeyPairsPairArrayOutput) ToGetKeyPairsPairArrayOutputWithContext

func (o GetKeyPairsPairArrayOutput) ToGetKeyPairsPairArrayOutputWithContext(ctx context.Context) GetKeyPairsPairArrayOutput

type GetKeyPairsPairInput

type GetKeyPairsPairInput interface {
	pulumi.Input

	ToGetKeyPairsPairOutput() GetKeyPairsPairOutput
	ToGetKeyPairsPairOutputWithContext(context.Context) GetKeyPairsPairOutput
}

GetKeyPairsPairInput is an input type that accepts GetKeyPairsPairArgs and GetKeyPairsPairOutput values. You can construct a concrete instance of `GetKeyPairsPairInput` via:

GetKeyPairsPairArgs{...}

type GetKeyPairsPairOutput

type GetKeyPairsPairOutput struct{ *pulumi.OutputState }

func (GetKeyPairsPairOutput) CreateTime

func (o GetKeyPairsPairOutput) CreateTime() pulumi.StringOutput

The creation time of the key pair. The date format is in accordance with ISO8601 notation and uses UTC time. The format is yyyy-MM-ddTHH:mm:ssZ.

func (GetKeyPairsPairOutput) ElementType

func (GetKeyPairsPairOutput) ElementType() reflect.Type

func (GetKeyPairsPairOutput) Id

The ID of the Key Pair.

func (GetKeyPairsPairOutput) KeyPairFingerPrint

func (o GetKeyPairsPairOutput) KeyPairFingerPrint() pulumi.StringOutput

Fingerprint of the key pair.

func (GetKeyPairsPairOutput) KeyPairName

func (o GetKeyPairsPairOutput) KeyPairName() pulumi.StringOutput

The name of the key pair.

func (GetKeyPairsPairOutput) ToGetKeyPairsPairOutput

func (o GetKeyPairsPairOutput) ToGetKeyPairsPairOutput() GetKeyPairsPairOutput

func (GetKeyPairsPairOutput) ToGetKeyPairsPairOutputWithContext

func (o GetKeyPairsPairOutput) ToGetKeyPairsPairOutputWithContext(ctx context.Context) GetKeyPairsPairOutput

func (GetKeyPairsPairOutput) Version

The version number.

type GetKeyPairsResult

type GetKeyPairsResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id          string            `pulumi:"id"`
	Ids         []string          `pulumi:"ids"`
	KeyPairName *string           `pulumi:"keyPairName"`
	NameRegex   *string           `pulumi:"nameRegex"`
	Names       []string          `pulumi:"names"`
	OutputFile  *string           `pulumi:"outputFile"`
	Pairs       []GetKeyPairsPair `pulumi:"pairs"`
	Version     string            `pulumi:"version"`
}

A collection of values returned by getKeyPairs.

func GetKeyPairs

func GetKeyPairs(ctx *pulumi.Context, args *GetKeyPairsArgs, opts ...pulumi.InvokeOption) (*GetKeyPairsResult, error)

This data source provides the Ens Key Pairs of the current Alibaba Cloud user.

> **NOTE:** Available in v1.133.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/ens"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/ens"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		nameRegex, err := ens.GetKeyPairs(ctx, &ens.GetKeyPairsArgs{
			Version:   "example_value",
			NameRegex: pulumi.StringRef("^my-KeyPair"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("ensKeyPairId1", nameRegex.Pairs[0].Id)
		return nil
	})
}

```

type GetKeyPairsResultOutput

type GetKeyPairsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getKeyPairs.

func (GetKeyPairsResultOutput) ElementType

func (GetKeyPairsResultOutput) ElementType() reflect.Type

func (GetKeyPairsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetKeyPairsResultOutput) Ids

func (GetKeyPairsResultOutput) KeyPairName

func (GetKeyPairsResultOutput) NameRegex

func (GetKeyPairsResultOutput) Names

func (GetKeyPairsResultOutput) OutputFile

func (GetKeyPairsResultOutput) Pairs

func (GetKeyPairsResultOutput) ToGetKeyPairsResultOutput

func (o GetKeyPairsResultOutput) ToGetKeyPairsResultOutput() GetKeyPairsResultOutput

func (GetKeyPairsResultOutput) ToGetKeyPairsResultOutputWithContext

func (o GetKeyPairsResultOutput) ToGetKeyPairsResultOutputWithContext(ctx context.Context) GetKeyPairsResultOutput

func (GetKeyPairsResultOutput) Version

type KeyPair

type KeyPair struct {
	pulumi.CustomResourceState

	// The name of the key pair.
	KeyPairName pulumi.StringOutput `pulumi:"keyPairName"`
	// The version number.
	Version pulumi.StringOutput `pulumi:"version"`
}

Provides a ENS Key Pair resource.

For information about ENS Key Pair and how to use it, see [What is Key Pair](https://help.aliyun.com/product/62684.html).

> **NOTE:** Available in v1.133.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/ens"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ens.NewKeyPair(ctx, "example", &ens.KeyPairArgs{
			KeyPairName: pulumi.String("example_value"),
			Version:     pulumi.String("example_value"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

ENS Key Pair can be imported using the id, e.g.

```sh

$ pulumi import alicloud:ens/keyPair:KeyPair example <key_pair_name>:<version>

```

func GetKeyPair

func GetKeyPair(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *KeyPairState, opts ...pulumi.ResourceOption) (*KeyPair, error)

GetKeyPair gets an existing KeyPair 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 NewKeyPair

func NewKeyPair(ctx *pulumi.Context,
	name string, args *KeyPairArgs, opts ...pulumi.ResourceOption) (*KeyPair, error)

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

func (*KeyPair) ElementType

func (*KeyPair) ElementType() reflect.Type

func (*KeyPair) ToKeyPairOutput

func (i *KeyPair) ToKeyPairOutput() KeyPairOutput

func (*KeyPair) ToKeyPairOutputWithContext

func (i *KeyPair) ToKeyPairOutputWithContext(ctx context.Context) KeyPairOutput

type KeyPairArgs

type KeyPairArgs struct {
	// The name of the key pair.
	KeyPairName pulumi.StringInput
	// The version number.
	Version pulumi.StringInput
}

The set of arguments for constructing a KeyPair resource.

func (KeyPairArgs) ElementType

func (KeyPairArgs) ElementType() reflect.Type

type KeyPairArray

type KeyPairArray []KeyPairInput

func (KeyPairArray) ElementType

func (KeyPairArray) ElementType() reflect.Type

func (KeyPairArray) ToKeyPairArrayOutput

func (i KeyPairArray) ToKeyPairArrayOutput() KeyPairArrayOutput

func (KeyPairArray) ToKeyPairArrayOutputWithContext

func (i KeyPairArray) ToKeyPairArrayOutputWithContext(ctx context.Context) KeyPairArrayOutput

type KeyPairArrayInput

type KeyPairArrayInput interface {
	pulumi.Input

	ToKeyPairArrayOutput() KeyPairArrayOutput
	ToKeyPairArrayOutputWithContext(context.Context) KeyPairArrayOutput
}

KeyPairArrayInput is an input type that accepts KeyPairArray and KeyPairArrayOutput values. You can construct a concrete instance of `KeyPairArrayInput` via:

KeyPairArray{ KeyPairArgs{...} }

type KeyPairArrayOutput

type KeyPairArrayOutput struct{ *pulumi.OutputState }

func (KeyPairArrayOutput) ElementType

func (KeyPairArrayOutput) ElementType() reflect.Type

func (KeyPairArrayOutput) Index

func (KeyPairArrayOutput) ToKeyPairArrayOutput

func (o KeyPairArrayOutput) ToKeyPairArrayOutput() KeyPairArrayOutput

func (KeyPairArrayOutput) ToKeyPairArrayOutputWithContext

func (o KeyPairArrayOutput) ToKeyPairArrayOutputWithContext(ctx context.Context) KeyPairArrayOutput

type KeyPairInput

type KeyPairInput interface {
	pulumi.Input

	ToKeyPairOutput() KeyPairOutput
	ToKeyPairOutputWithContext(ctx context.Context) KeyPairOutput
}

type KeyPairMap

type KeyPairMap map[string]KeyPairInput

func (KeyPairMap) ElementType

func (KeyPairMap) ElementType() reflect.Type

func (KeyPairMap) ToKeyPairMapOutput

func (i KeyPairMap) ToKeyPairMapOutput() KeyPairMapOutput

func (KeyPairMap) ToKeyPairMapOutputWithContext

func (i KeyPairMap) ToKeyPairMapOutputWithContext(ctx context.Context) KeyPairMapOutput

type KeyPairMapInput

type KeyPairMapInput interface {
	pulumi.Input

	ToKeyPairMapOutput() KeyPairMapOutput
	ToKeyPairMapOutputWithContext(context.Context) KeyPairMapOutput
}

KeyPairMapInput is an input type that accepts KeyPairMap and KeyPairMapOutput values. You can construct a concrete instance of `KeyPairMapInput` via:

KeyPairMap{ "key": KeyPairArgs{...} }

type KeyPairMapOutput

type KeyPairMapOutput struct{ *pulumi.OutputState }

func (KeyPairMapOutput) ElementType

func (KeyPairMapOutput) ElementType() reflect.Type

func (KeyPairMapOutput) MapIndex

func (KeyPairMapOutput) ToKeyPairMapOutput

func (o KeyPairMapOutput) ToKeyPairMapOutput() KeyPairMapOutput

func (KeyPairMapOutput) ToKeyPairMapOutputWithContext

func (o KeyPairMapOutput) ToKeyPairMapOutputWithContext(ctx context.Context) KeyPairMapOutput

type KeyPairOutput

type KeyPairOutput struct{ *pulumi.OutputState }

func (KeyPairOutput) ElementType

func (KeyPairOutput) ElementType() reflect.Type

func (KeyPairOutput) KeyPairName

func (o KeyPairOutput) KeyPairName() pulumi.StringOutput

The name of the key pair.

func (KeyPairOutput) ToKeyPairOutput

func (o KeyPairOutput) ToKeyPairOutput() KeyPairOutput

func (KeyPairOutput) ToKeyPairOutputWithContext

func (o KeyPairOutput) ToKeyPairOutputWithContext(ctx context.Context) KeyPairOutput

func (KeyPairOutput) Version

func (o KeyPairOutput) Version() pulumi.StringOutput

The version number.

type KeyPairState

type KeyPairState struct {
	// The name of the key pair.
	KeyPairName pulumi.StringPtrInput
	// The version number.
	Version pulumi.StringPtrInput
}

func (KeyPairState) ElementType

func (KeyPairState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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