SyncGithubAppsArgs

data class SyncGithubAppsArgs(val appId: Output<Int>? = null, val name: Output<String>? = null, val namespace: Output<String>? = null, val privateKey: Output<String>? = null) : ConvertibleToJava<SyncGithubAppsArgs>

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as std from "@pulumi/std";
import * as vault from "@pulumi/vault";
const github_apps = new vault.secrets.SyncGithubApps("github-apps", {
name: "gh-apps",
appId: appId,
privateKey: std.file({
input: privatekeyFile,
}).then(invoke => invoke.result),
});
import pulumi
import pulumi_std as std
import pulumi_vault as vault
github_apps = vault.secrets.SyncGithubApps("github-apps",
name="gh-apps",
app_id=app_id,
private_key=std.file(input=privatekey_file).result)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Std = Pulumi.Std;
using Vault = Pulumi.Vault;
return await Deployment.RunAsync(() =>
{
var github_apps = new Vault.Secrets.SyncGithubApps("github-apps", new()
{
Name = "gh-apps",
AppId = appId,
PrivateKey = Std.File.Invoke(new()
{
Input = privatekeyFile,
}).Apply(invoke => invoke.Result),
});
});
package main
import (
"github.com/pulumi/pulumi-std/sdk/go/std"
"github.com/pulumi/pulumi-vault/sdk/v6/go/vault/secrets"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
invokeFile, err := std.File(ctx, &std.FileArgs{
Input: privatekeyFile,
}, nil)
if err != nil {
return err
}
_, err = secrets.NewSyncGithubApps(ctx, "github-apps", &secrets.SyncGithubAppsArgs{
Name: pulumi.String("gh-apps"),
AppId: pulumi.Any(appId),
PrivateKey: pulumi.String(invokeFile.Result),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vault.secrets.SyncGithubApps;
import com.pulumi.vault.secrets.SyncGithubAppsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var github_apps = new SyncGithubApps("github-apps", SyncGithubAppsArgs.builder()
.name("gh-apps")
.appId(appId)
.privateKey(StdFunctions.file(FileArgs.builder()
.input(privatekeyFile)
.build()).result())
.build());
}
}
resources:
github-apps:
type: vault:secrets:SyncGithubApps
properties:
name: gh-apps
appId: ${appId}
privateKey:
fn::invoke:
function: std:file
arguments:
input: ${privatekeyFile}
return: result

Import

GitHub Apps Secrets sync configuration endpoint can be imported using the name, e.g.

$ pulumi import vault:secrets/syncGithubApps:SyncGithubApps gh github-apps

Constructors

Link copied to clipboard
constructor(appId: Output<Int>? = null, name: Output<String>? = null, namespace: Output<String>? = null, privateKey: Output<String>? = null)

Properties

Link copied to clipboard
val appId: Output<Int>? = null

The GitHub application ID.

Link copied to clipboard
val name: Output<String>? = null

The user-defined name of the GitHub App configuration.

Link copied to clipboard
val namespace: Output<String>? = null

The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace.

Link copied to clipboard
val privateKey: Output<String>? = null

The content of a PEM formatted private key generated on GitHub for the app.

Functions

Link copied to clipboard
open override fun toJava(): SyncGithubAppsArgs