Show / Hide Table of Contents

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-----
",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
UserGpgKey
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.Github
Assembly: Pulumi.Github.dll
Syntax
public class UserGpgKey : CustomResource

Constructors

View Source

UserGpgKey(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 Source

ArmoredPublicKey

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>
View Source

Etag

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

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.