Show / Hide Table of Contents

Class KeyPair

Inheritance
System.Object
Resource
CustomResource
KeyPair
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.Ecs
Assembly: Pulumi.AliCloud.dll
Syntax
public class KeyPair : CustomResource

Constructors

View Source

KeyPair(String, KeyPairArgs, CustomResourceOptions)

Create a KeyPair resource with the given unique name, arguments, and options.

Declaration
public KeyPair(string name, KeyPairArgs args = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

KeyPairArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

FingerPrint

Declaration
public Output<string> FingerPrint { get; }
Property Value
Type Description
Output<System.String>
View Source

KeyFile

The name of file to save your new key pair's private key. Strongly suggest you to specified it when you creating key pair, otherwise, you wouldn't get its private key ever.

Declaration
public Output<string> KeyFile { get; }
Property Value
Type Description
Output<System.String>
View Source

KeyName

The key pair's name. It is the only in one Alicloud account.

Declaration
public Output<string> KeyName { get; }
Property Value
Type Description
Output<System.String>
View Source

KeyNamePrefix

Declaration
public Output<string> KeyNamePrefix { get; }
Property Value
Type Description
Output<System.String>
View Source

PublicKey

You can import an existing public key and using Alicloud key pair to manage it.

Declaration
public Output<string> PublicKey { get; }
Property Value
Type Description
Output<System.String>
View Source

ResourceGroupId

The Id of resource group which the key pair belongs.

Declaration
public Output<string> ResourceGroupId { get; }
Property Value
Type Description
Output<System.String>
View Source

Tags

Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>>

Methods

View Source

Get(String, Input<String>, KeyPairState, CustomResourceOptions)

Get an existing KeyPair resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static KeyPair Get(string name, Input<string> id, KeyPairState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

KeyPairState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
KeyPair
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.