Module oslogin

This page documents the language specification for the gcp package. If you're looking for help working with the inputs, outputs, or functions of gcp resources in a Pulumi program, please see the resource documentation for examples and API reference.

Resources

Others

Resources

Resource SshPublicKey

class SshPublicKey extends CustomResource

The SSH public key information associated with a Google account.

To get more information about SSHPublicKey, see:

Example Usage - Os Login Ssh Key Provided User

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
import * from "fs";

const me = gcp.organizations.getClientOpenIdUserInfo({});
const cache = new gcp.oslogin.SshPublicKey("cache", {
    user: me.then(me => me.email),
    key: fs.readFileSync("path/to/id_rsa.pub"),
});

constructor

new SshPublicKey(name: string, args: SshPublicKeyArgs, opts?: pulumi.CustomResourceOptions)

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

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SshPublicKeyState, opts?: pulumi.CustomResourceOptions): SshPublicKey

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

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

public static isInstance(obj: any): obj is SshPublicKey

Returns true if the given object is an instance of SshPublicKey. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property expirationTimeUsec

public expirationTimeUsec: pulumi.Output<string | undefined>;

An expiration time in microseconds since epoch.

property fingerprint

public fingerprint: pulumi.Output<string>;

The SHA-256 fingerprint of the SSH public key.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property key

public key: pulumi.Output<string>;

Public key text in SSH format, defined by RFC4253 section 6.6.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

property user

public user: pulumi.Output<string>;

The user email.

Others

interface SshPublicKeyArgs

interface SshPublicKeyArgs

The set of arguments for constructing a SshPublicKey resource.

property expirationTimeUsec

expirationTimeUsec?: pulumi.Input<string>;

An expiration time in microseconds since epoch.

property key

key: pulumi.Input<string>;

Public key text in SSH format, defined by RFC4253 section 6.6.

property user

user: pulumi.Input<string>;

The user email.

interface SshPublicKeyState

interface SshPublicKeyState

Input properties used for looking up and filtering SshPublicKey resources.

property expirationTimeUsec

expirationTimeUsec?: pulumi.Input<string>;

An expiration time in microseconds since epoch.

property fingerprint

fingerprint?: pulumi.Input<string>;

The SHA-256 fingerprint of the SSH public key.

property key

key?: pulumi.Input<string>;

Public key text in SSH format, defined by RFC4253 section 6.6.

property user

user?: pulumi.Input<string>;

The user email.