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-----
",
});
}
}
Coming soon!
import pulumi
import pulumi_github as github
example = github.UserGpgKey("example", armored_public_key="""-----BEGIN PGP PUBLIC KEY BLOCK-----
...
-----END PGP PUBLIC KEY BLOCK-----
""")import * as pulumi from "@pulumi/pulumi";
import * as github from "@pulumi/github";
const example = new github.UserGpgKey("example", {
armoredPublicKey: `-----BEGIN PGP PUBLIC KEY BLOCK-----
...
-----END PGP PUBLIC KEY BLOCK-----`,
});Create a UserGpgKey Resource
new UserGpgKey(name: string, args: UserGpgKeyArgs, opts?: CustomResourceOptions);def UserGpgKey(resource_name, opts=None, armored_public_key=None, __props__=None);func NewUserGpgKey(ctx *Context, name string, args UserGpgKeyArgs, opts ...ResourceOption) (*UserGpgKey, error)public UserGpgKey(string name, UserGpgKeyArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args UserGpgKeyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args UserGpgKeyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UserGpgKeyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
UserGpgKey Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The UserGpgKey resource accepts the following input properties:
- Armored
Public stringKey Your public GPG key, generated in ASCII-armored format. See Generating a new GPG key for help on creating a GPG key.
- Armored
Public stringKey Your public GPG key, generated in ASCII-armored format. See Generating a new GPG key for help on creating a GPG key.
- armored
Public stringKey Your public GPG key, generated in ASCII-armored format. See Generating a new GPG key for help on creating a GPG key.
- armored_
public_ strkey Your public GPG key, generated in ASCII-armored format. See Generating a new GPG key for help on creating a GPG key.
Outputs
All input properties are implicitly available as output properties. Additionally, the UserGpgKey resource produces the following output properties:
Look up an Existing UserGpgKey Resource
Get an existing UserGpgKey resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: UserGpgKeyState, opts?: CustomResourceOptions): UserGpgKeystatic get(resource_name, id, opts=None, armored_public_key=None, etag=None, key_id=None, __props__=None);func GetUserGpgKey(ctx *Context, name string, id IDInput, state *UserGpgKeyState, opts ...ResourceOption) (*UserGpgKey, error)public static UserGpgKey Get(string name, Input<string> id, UserGpgKeyState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Armored
Public stringKey Your public GPG key, generated in ASCII-armored format. See Generating a new GPG key for help on creating a GPG key.
- Etag string
- Key
Id string The key ID of the GPG key, e.g.
3262EFF25BA0D270
- Armored
Public stringKey Your public GPG key, generated in ASCII-armored format. See Generating a new GPG key for help on creating a GPG key.
- Etag string
- Key
Id string The key ID of the GPG key, e.g.
3262EFF25BA0D270
- armored
Public stringKey Your public GPG key, generated in ASCII-armored format. See Generating a new GPG key for help on creating a GPG key.
- etag string
- key
Id string The key ID of the GPG key, e.g.
3262EFF25BA0D270
- armored_
public_ strkey Your public GPG key, generated in ASCII-armored format. See Generating a new GPG key for help on creating a GPG key.
- etag str
- key_
id str The key ID of the GPG key, e.g.
3262EFF25BA0D270
Package Details
- Repository
- https://github.com/pulumi/pulumi-github
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
githubTerraform Provider.