All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.github.ActionsEnvironmentSecret Maven / Gradle / Ivy

There is a newer version: 6.5.0
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.github;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import com.pulumi.github.ActionsEnvironmentSecretArgs;
import com.pulumi.github.Utilities;
import com.pulumi.github.inputs.ActionsEnvironmentSecretState;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * ## Example Usage
 * 
 */
@ResourceType(type="github:index/actionsEnvironmentSecret:ActionsEnvironmentSecret")
public class ActionsEnvironmentSecret extends com.pulumi.resources.CustomResource {
    /**
     * Date of actions_environment_secret creation.
     * 
     */
    @Export(name="createdAt", refs={String.class}, tree="[0]")
    private Output createdAt;

    /**
     * @return Date of actions_environment_secret creation.
     * 
     */
    public Output createdAt() {
        return this.createdAt;
    }
    /**
     * Encrypted value of the secret using the GitHub public key in Base64 format.
     * 
     */
    @Export(name="encryptedValue", refs={String.class}, tree="[0]")
    private Output encryptedValue;

    /**
     * @return Encrypted value of the secret using the GitHub public key in Base64 format.
     * 
     */
    public Output> encryptedValue() {
        return Codegen.optional(this.encryptedValue);
    }
    /**
     * Name of the environment.
     * 
     */
    @Export(name="environment", refs={String.class}, tree="[0]")
    private Output environment;

    /**
     * @return Name of the environment.
     * 
     */
    public Output environment() {
        return this.environment;
    }
    /**
     * Plaintext value of the secret to be encrypted.
     * 
     */
    @Export(name="plaintextValue", refs={String.class}, tree="[0]")
    private Output plaintextValue;

    /**
     * @return Plaintext value of the secret to be encrypted.
     * 
     */
    public Output> plaintextValue() {
        return Codegen.optional(this.plaintextValue);
    }
    /**
     * Name of the repository.
     * 
     */
    @Export(name="repository", refs={String.class}, tree="[0]")
    private Output repository;

    /**
     * @return Name of the repository.
     * 
     */
    public Output repository() {
        return this.repository;
    }
    /**
     * Name of the secret.
     * 
     */
    @Export(name="secretName", refs={String.class}, tree="[0]")
    private Output secretName;

    /**
     * @return Name of the secret.
     * 
     */
    public Output secretName() {
        return this.secretName;
    }
    /**
     * Date of actions_environment_secret update.
     * 
     */
    @Export(name="updatedAt", refs={String.class}, tree="[0]")
    private Output updatedAt;

    /**
     * @return Date of actions_environment_secret update.
     * 
     */
    public Output updatedAt() {
        return this.updatedAt;
    }

    /**
     *
     * @param name The _unique_ name of the resulting resource.
     */
    public ActionsEnvironmentSecret(java.lang.String name) {
        this(name, ActionsEnvironmentSecretArgs.Empty);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     */
    public ActionsEnvironmentSecret(java.lang.String name, ActionsEnvironmentSecretArgs args) {
        this(name, args, null);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     * @param options A bag of options that control this resource's behavior.
     */
    public ActionsEnvironmentSecret(java.lang.String name, ActionsEnvironmentSecretArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("github:index/actionsEnvironmentSecret:ActionsEnvironmentSecret", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
    }

    private ActionsEnvironmentSecret(java.lang.String name, Output id, @Nullable ActionsEnvironmentSecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("github:index/actionsEnvironmentSecret:ActionsEnvironmentSecret", name, state, makeResourceOptions(options, id), false);
    }

    private static ActionsEnvironmentSecretArgs makeArgs(ActionsEnvironmentSecretArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        if (options != null && options.getUrn().isPresent()) {
            return null;
        }
        return args == null ? ActionsEnvironmentSecretArgs.Empty : args;
    }

    private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
        var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
            .version(Utilities.getVersion())
            .additionalSecretOutputs(List.of(
                "encryptedValue",
                "plaintextValue"
            ))
            .build();
        return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
    }

    /**
     * Get an existing Host resource's state with the given name, ID, and optional extra
     * properties used to qualify the lookup.
     *
     * @param name The _unique_ name of the resulting resource.
     * @param id The _unique_ provider ID of the resource to lookup.
     * @param state
     * @param options Optional settings to control the behavior of the CustomResource.
     */
    public static ActionsEnvironmentSecret get(java.lang.String name, Output id, @Nullable ActionsEnvironmentSecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        return new ActionsEnvironmentSecret(name, id, state, options);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy