Class UserGpgKey
Provides a GitHub user's GPG key resource.
This resource allows you to add/remove GPG keys from your user account.
Example Usage
using Pulumi;
using Github = Pulumi.Github;
class MyStack : Stack
{
public MyStack()
{
var example = new Github.UserGpgKey("example", new Github.UserGpgKeyArgs
{
ArmoredPublicKey = @"-----BEGIN PGP PUBLIC KEY BLOCK-----
...
-----END PGP PUBLIC KEY BLOCK-----
",
});
}
}
Inherited Members
Namespace: Pulumi.Github
Assembly: Pulumi.Github.dll
Syntax
public class UserGpgKey : CustomResource
Constructors
View SourceUserGpgKey(String, UserGpgKeyArgs, CustomResourceOptions)
Create a UserGpgKey resource with the given unique name, arguments, and options.
Declaration
public UserGpgKey(string name, UserGpgKeyArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| UserGpgKeyArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceArmoredPublicKey
Your public GPG key, generated in ASCII-armored format. See Generating a new GPG key for help on creating a GPG key.
Declaration
public Output<string> ArmoredPublicKey { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Etag
Declaration
public Output<string> Etag { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
KeyId
The key ID of the GPG key, e.g. 3262EFF25BA0D270
Declaration
public Output<string> KeyId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, UserGpgKeyState, CustomResourceOptions)
Get an existing UserGpgKey resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static UserGpgKey Get(string name, Input<string> id, UserGpgKeyState 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. |
| UserGpgKeyState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| UserGpgKey |