CodespacesOrganizationSecret

class CodespacesOrganizationSecret : KotlinCustomResource

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.github.CodespacesOrganizationSecret;
import com.pulumi.github.CodespacesOrganizationSecretArgs;
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 exampleSecretCodespacesOrganizationSecret = new CodespacesOrganizationSecret("exampleSecretCodespacesOrganizationSecret", CodespacesOrganizationSecretArgs.builder()
.secretName("example_secret_name")
.visibility("private")
.plaintextValue(var_.some_secret_string())
.build());
var exampleSecretIndex_codespacesOrganizationSecretCodespacesOrganizationSecret = new CodespacesOrganizationSecret("exampleSecretIndex/codespacesOrganizationSecretCodespacesOrganizationSecret", CodespacesOrganizationSecretArgs.builder()
.secretName("example_secret_name")
.visibility("private")
.encryptedValue(var_.some_encrypted_secret_string())
.build());
}
}

Import

This resource can be imported using an ID made up of the secret name

$ pulumi import github:index/codespacesOrganizationSecret:CodespacesOrganizationSecret test_secret test_secret_name

NOTEthe implementation is limited in that it won't fetch the value of the plaintext_value or encrypted_value fields when importing. You may need to ignore changes for these as a workaround.

Properties

Link copied to clipboard
val createdAt: Output<String>

Date of codespaces_secret creation.

Link copied to clipboard
val encryptedValue: Output<String>?

Encrypted value of the secret using the GitHub public key in Base64 format.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val plaintextValue: Output<String>?

Plaintext value of the secret to be encrypted

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val secretName: Output<String>

Name of the secret

Link copied to clipboard

An array of repository ids that can access the organization secret.

Link copied to clipboard
val updatedAt: Output<String>

Date of codespaces_secret update.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val visibility: Output<String>

Configures the access that repositories have to the organization secret. Must be one of all, private, selected. selected_repository_ids is required if set to selected.