Documentation
¶
Index ¶
- type GetKeyPairsArgs
- type GetKeyPairsOutputArgs
- type GetKeyPairsPair
- type GetKeyPairsPairArgs
- type GetKeyPairsPairArray
- type GetKeyPairsPairArrayInput
- type GetKeyPairsPairArrayOutput
- func (GetKeyPairsPairArrayOutput) ElementType() reflect.Type
- func (o GetKeyPairsPairArrayOutput) Index(i pulumi.IntInput) GetKeyPairsPairOutput
- func (o GetKeyPairsPairArrayOutput) ToGetKeyPairsPairArrayOutput() GetKeyPairsPairArrayOutput
- func (o GetKeyPairsPairArrayOutput) ToGetKeyPairsPairArrayOutputWithContext(ctx context.Context) GetKeyPairsPairArrayOutput
- type GetKeyPairsPairInput
- type GetKeyPairsPairOutput
- func (o GetKeyPairsPairOutput) CreateTime() pulumi.StringOutput
- func (GetKeyPairsPairOutput) ElementType() reflect.Type
- func (o GetKeyPairsPairOutput) Id() pulumi.StringOutput
- func (o GetKeyPairsPairOutput) KeyPairFingerPrint() pulumi.StringOutput
- func (o GetKeyPairsPairOutput) KeyPairName() pulumi.StringOutput
- func (o GetKeyPairsPairOutput) ToGetKeyPairsPairOutput() GetKeyPairsPairOutput
- func (o GetKeyPairsPairOutput) ToGetKeyPairsPairOutputWithContext(ctx context.Context) GetKeyPairsPairOutput
- func (o GetKeyPairsPairOutput) Version() pulumi.StringOutput
- type GetKeyPairsResult
- type GetKeyPairsResultOutput
- func (GetKeyPairsResultOutput) ElementType() reflect.Type
- func (o GetKeyPairsResultOutput) Id() pulumi.StringOutput
- func (o GetKeyPairsResultOutput) Ids() pulumi.StringArrayOutput
- func (o GetKeyPairsResultOutput) KeyPairName() pulumi.StringPtrOutput
- func (o GetKeyPairsResultOutput) NameRegex() pulumi.StringPtrOutput
- func (o GetKeyPairsResultOutput) Names() pulumi.StringArrayOutput
- func (o GetKeyPairsResultOutput) OutputFile() pulumi.StringPtrOutput
- func (o GetKeyPairsResultOutput) Pairs() GetKeyPairsPairArrayOutput
- func (o GetKeyPairsResultOutput) ToGetKeyPairsResultOutput() GetKeyPairsResultOutput
- func (o GetKeyPairsResultOutput) ToGetKeyPairsResultOutputWithContext(ctx context.Context) GetKeyPairsResultOutput
- func (o GetKeyPairsResultOutput) Version() pulumi.StringOutput
- type KeyPair
- type KeyPairArgs
- type KeyPairArray
- type KeyPairArrayInput
- type KeyPairArrayOutput
- type KeyPairInput
- type KeyPairMap
- type KeyPairMapInput
- type KeyPairMapOutput
- type KeyPairOutput
- type KeyPairState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 ¶ added in v3.9.0
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 ¶ added in v3.9.0
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 (o GetKeyPairsPairArrayOutput) Index(i pulumi.IntInput) GetKeyPairsPairOutput
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 ¶
func (o GetKeyPairsPairOutput) Id() pulumi.StringOutput
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 ¶
func (o GetKeyPairsPairOutput) Version() pulumi.StringOutput
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/v3/go/alicloud/ens" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
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 ¶ added in v3.9.0
type GetKeyPairsResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getKeyPairs.
func GetKeyPairsOutput ¶ added in v3.9.0
func GetKeyPairsOutput(ctx *pulumi.Context, args GetKeyPairsOutputArgs, opts ...pulumi.InvokeOption) GetKeyPairsResultOutput
func (GetKeyPairsResultOutput) ElementType ¶ added in v3.9.0
func (GetKeyPairsResultOutput) ElementType() reflect.Type
func (GetKeyPairsResultOutput) Id ¶ added in v3.9.0
func (o GetKeyPairsResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetKeyPairsResultOutput) Ids ¶ added in v3.9.0
func (o GetKeyPairsResultOutput) Ids() pulumi.StringArrayOutput
func (GetKeyPairsResultOutput) KeyPairName ¶ added in v3.9.0
func (o GetKeyPairsResultOutput) KeyPairName() pulumi.StringPtrOutput
func (GetKeyPairsResultOutput) NameRegex ¶ added in v3.9.0
func (o GetKeyPairsResultOutput) NameRegex() pulumi.StringPtrOutput
func (GetKeyPairsResultOutput) Names ¶ added in v3.9.0
func (o GetKeyPairsResultOutput) Names() pulumi.StringArrayOutput
func (GetKeyPairsResultOutput) OutputFile ¶ added in v3.9.0
func (o GetKeyPairsResultOutput) OutputFile() pulumi.StringPtrOutput
func (GetKeyPairsResultOutput) Pairs ¶ added in v3.9.0
func (o GetKeyPairsResultOutput) Pairs() GetKeyPairsPairArrayOutput
func (GetKeyPairsResultOutput) ToGetKeyPairsResultOutput ¶ added in v3.9.0
func (o GetKeyPairsResultOutput) ToGetKeyPairsResultOutput() GetKeyPairsResultOutput
func (GetKeyPairsResultOutput) ToGetKeyPairsResultOutputWithContext ¶ added in v3.9.0
func (o GetKeyPairsResultOutput) ToGetKeyPairsResultOutputWithContext(ctx context.Context) GetKeyPairsResultOutput
func (GetKeyPairsResultOutput) Version ¶ added in v3.9.0
func (o GetKeyPairsResultOutput) Version() pulumi.StringOutput
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-alicloud/sdk/v3/go/alicloud/ens" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
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) 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 (o KeyPairArrayOutput) Index(i pulumi.IntInput) KeyPairOutput
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 (o KeyPairMapOutput) MapIndex(k pulumi.StringInput) KeyPairOutput
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) ToKeyPairOutput ¶
func (o KeyPairOutput) ToKeyPairOutput() KeyPairOutput
func (KeyPairOutput) ToKeyPairOutputWithContext ¶
func (o KeyPairOutput) ToKeyPairOutputWithContext(ctx context.Context) KeyPairOutput
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