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 (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
- type GetKeyPairsResult
- type GetKeyPairsResultOutput
- func (GetKeyPairsResultOutput) ElementType() reflect.Type
- func (o GetKeyPairsResultOutput) Id() pulumi.StringOutput
- func (o GetKeyPairsResultOutput) Ids() pulumi.StringArrayOutput
- func (o GetKeyPairsResultOutput) KeyPairFingerPrint() 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
- type KeyPair
- func (*KeyPair) ElementType() reflect.Type
- func (i *KeyPair) ToKeyPairOutput() KeyPairOutput
- func (i *KeyPair) ToKeyPairOutputWithContext(ctx context.Context) KeyPairOutput
- func (i *KeyPair) ToKeyPairPtrOutput() KeyPairPtrOutput
- func (i *KeyPair) ToKeyPairPtrOutputWithContext(ctx context.Context) KeyPairPtrOutput
- type KeyPairArgs
- type KeyPairArray
- type KeyPairArrayInput
- type KeyPairArrayOutput
- type KeyPairInput
- type KeyPairMap
- type KeyPairMapInput
- type KeyPairMapOutput
- type KeyPairOutput
- func (KeyPairOutput) ElementType() reflect.Type
- func (o KeyPairOutput) ToKeyPairOutput() KeyPairOutput
- func (o KeyPairOutput) ToKeyPairOutputWithContext(ctx context.Context) KeyPairOutput
- func (o KeyPairOutput) ToKeyPairPtrOutput() KeyPairPtrOutput
- func (o KeyPairOutput) ToKeyPairPtrOutputWithContext(ctx context.Context) KeyPairPtrOutput
- type KeyPairPtrInput
- type KeyPairPtrOutput
- type KeyPairState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetKeyPairsArgs ¶
type GetKeyPairsArgs struct { // A list of Key Pair IDs. Its element value is same as Key Pair Name. Ids []string `pulumi:"ids"` // The Private Key of the Fingerprint. KeyPairFingerPrint *string `pulumi:"keyPairFingerPrint"` // A regex string to filter results by Key Pair name. NameRegex *string `pulumi:"nameRegex"` OutputFile *string `pulumi:"outputFile"` }
A collection of arguments for invoking getKeyPairs.
type GetKeyPairsOutputArgs ¶ added in v3.9.0
type GetKeyPairsOutputArgs struct { // A list of Key Pair IDs. Its element value is same as Key Pair Name. Ids pulumi.StringArrayInput `pulumi:"ids"` // The Private Key of the Fingerprint. KeyPairFingerPrint pulumi.StringPtrInput `pulumi:"keyPairFingerPrint"` // A regex string to filter results by Key Pair name. NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"` OutputFile pulumi.StringPtrInput `pulumi:"outputFile"` }
A collection of arguments for invoking getKeyPairs.
func (GetKeyPairsOutputArgs) ElementType ¶ added in v3.9.0
func (GetKeyPairsOutputArgs) ElementType() reflect.Type
type GetKeyPairsPair ¶
type GetKeyPairsPairArgs ¶
type GetKeyPairsPairArgs struct { // The ID of the Key Pair. Its value is same as Queue Name. Id pulumi.StringInput `pulumi:"id"` // The Private Key of the Fingerprint. KeyPairFingerPrint pulumi.StringInput `pulumi:"keyPairFingerPrint"` // The Key Name. KeyPairName pulumi.StringInput `pulumi:"keyPairName"` }
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) ElementType ¶
func (GetKeyPairsPairOutput) ElementType() reflect.Type
func (GetKeyPairsPairOutput) Id ¶
func (o GetKeyPairsPairOutput) Id() pulumi.StringOutput
The ID of the Key Pair. Its value is same as Queue Name.
func (GetKeyPairsPairOutput) KeyPairFingerPrint ¶
func (o GetKeyPairsPairOutput) KeyPairFingerPrint() pulumi.StringOutput
The Private Key of the Fingerprint.
func (GetKeyPairsPairOutput) KeyPairName ¶
func (o GetKeyPairsPairOutput) KeyPairName() pulumi.StringOutput
The Key Name.
func (GetKeyPairsPairOutput) ToGetKeyPairsPairOutput ¶
func (o GetKeyPairsPairOutput) ToGetKeyPairsPairOutput() GetKeyPairsPairOutput
func (GetKeyPairsPairOutput) ToGetKeyPairsPairOutputWithContext ¶
func (o GetKeyPairsPairOutput) ToGetKeyPairsPairOutputWithContext(ctx context.Context) GetKeyPairsPairOutput
type GetKeyPairsResult ¶
type GetKeyPairsResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Ids []string `pulumi:"ids"` KeyPairFingerPrint *string `pulumi:"keyPairFingerPrint"` NameRegex *string `pulumi:"nameRegex"` Names []string `pulumi:"names"` OutputFile *string `pulumi:"outputFile"` Pairs []GetKeyPairsPair `pulumi:"pairs"` }
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 Ecp Key Pairs of the current Alibaba Cloud user.
> **NOTE:** Available in v1.130.0+.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecp" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { ids, err := ecp.GetKeyPairs(ctx, nil, nil) if err != nil { return err } ctx.Export("ecpKeyPairId1", ids.Pairs[0].Id) opt0 := "^my-KeyPair" nameRegex, err := ecp.GetKeyPairs(ctx, &ecp.GetKeyPairsArgs{ NameRegex: &opt0, }, nil) if err != nil { return err } ctx.Export("ecpKeyPairId2", 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) KeyPairFingerPrint ¶ added in v3.9.0
func (o GetKeyPairsResultOutput) KeyPairFingerPrint() 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
type KeyPair ¶
type KeyPair struct { pulumi.CustomResourceState // The Key Name. KeyPairName pulumi.StringOutput `pulumi:"keyPairName"` // The public key body. PublicKeyBody pulumi.StringOutput `pulumi:"publicKeyBody"` }
Provides a Elastic Cloud Phone (ECP) Key Pair resource.
For information about Elastic Cloud Phone (ECP) Key Pair and how to use it, see [What is Key Pair](https://help.aliyun.com/document_detail/257197.html).
> **NOTE:** Available in v1.130.0+.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecp" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := ecp.NewKeyPair(ctx, "example", &ecp.KeyPairArgs{ KeyPairName: pulumi.String("my-KeyPair"), PublicKeyBody: pulumi.String("ssh-rsa AAAAxxxxxxxxxxtyuudsfsg"), }) if err != nil { return err } return nil }) }
```
## Import
Elastic Cloud Phone (ECP) Key Pair can be imported using the id, e.g.
```sh
$ pulumi import alicloud:ecp/keyPair:KeyPair example <key_pair_name>
```
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
func (*KeyPair) ToKeyPairPtrOutput ¶
func (i *KeyPair) ToKeyPairPtrOutput() KeyPairPtrOutput
func (*KeyPair) ToKeyPairPtrOutputWithContext ¶
func (i *KeyPair) ToKeyPairPtrOutputWithContext(ctx context.Context) KeyPairPtrOutput
type KeyPairArgs ¶
type KeyPairArgs struct { // The Key Name. KeyPairName pulumi.StringInput // The public key body. PublicKeyBody 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
func (KeyPairOutput) ToKeyPairPtrOutput ¶
func (o KeyPairOutput) ToKeyPairPtrOutput() KeyPairPtrOutput
func (KeyPairOutput) ToKeyPairPtrOutputWithContext ¶
func (o KeyPairOutput) ToKeyPairPtrOutputWithContext(ctx context.Context) KeyPairPtrOutput
type KeyPairPtrInput ¶
type KeyPairPtrInput interface { pulumi.Input ToKeyPairPtrOutput() KeyPairPtrOutput ToKeyPairPtrOutputWithContext(ctx context.Context) KeyPairPtrOutput }
type KeyPairPtrOutput ¶
type KeyPairPtrOutput struct{ *pulumi.OutputState }
func (KeyPairPtrOutput) Elem ¶ added in v3.9.0
func (o KeyPairPtrOutput) Elem() KeyPairOutput
func (KeyPairPtrOutput) ElementType ¶
func (KeyPairPtrOutput) ElementType() reflect.Type
func (KeyPairPtrOutput) ToKeyPairPtrOutput ¶
func (o KeyPairPtrOutput) ToKeyPairPtrOutput() KeyPairPtrOutput
func (KeyPairPtrOutput) ToKeyPairPtrOutputWithContext ¶
func (o KeyPairPtrOutput) ToKeyPairPtrOutputWithContext(ctx context.Context) KeyPairPtrOutput
type KeyPairState ¶
type KeyPairState struct { // The Key Name. KeyPairName pulumi.StringPtrInput // The public key body. PublicKeyBody pulumi.StringPtrInput }
func (KeyPairState) ElementType ¶
func (KeyPairState) ElementType() reflect.Type