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

com.pulumi.github.DependabotOrganizationSecret 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.DependabotOrganizationSecretArgs;
import com.pulumi.github.Utilities;
import com.pulumi.github.inputs.DependabotOrganizationSecretState;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;

@ResourceType(type="github:index/dependabotOrganizationSecret:DependabotOrganizationSecret")
public class DependabotOrganizationSecret extends com.pulumi.resources.CustomResource {
    /**
     * Date of 'dependabot_secret' creation.
     * 
     */
    @Export(name="createdAt", refs={String.class}, tree="[0]")
    private Output createdAt;

    /**
     * @return Date of 'dependabot_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);
    }
    /**
     * 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 secret.
     * 
     */
    @Export(name="secretName", refs={String.class}, tree="[0]")
    private Output secretName;

    /**
     * @return Name of the secret.
     * 
     */
    public Output secretName() {
        return this.secretName;
    }
    /**
     * An array of repository ids that can access the organization secret.
     * 
     */
    @Export(name="selectedRepositoryIds", refs={List.class,Integer.class}, tree="[0,1]")
    private Output> selectedRepositoryIds;

    /**
     * @return An array of repository ids that can access the organization secret.
     * 
     */
    public Output>> selectedRepositoryIds() {
        return Codegen.optional(this.selectedRepositoryIds);
    }
    /**
     * Date of 'dependabot_secret' update.
     * 
     */
    @Export(name="updatedAt", refs={String.class}, tree="[0]")
    private Output updatedAt;

    /**
     * @return Date of 'dependabot_secret' update.
     * 
     */
    public Output updatedAt() {
        return this.updatedAt;
    }
    /**
     * Configures the access that repositories have to the organization secret. Must be one of 'all', 'private' or 'selected'.
     * 'selected_repository_ids' is required if set to 'selected'.
     * 
     */
    @Export(name="visibility", refs={String.class}, tree="[0]")
    private Output visibility;

    /**
     * @return Configures the access that repositories have to the organization secret. Must be one of 'all', 'private' or 'selected'.
     * 'selected_repository_ids' is required if set to 'selected'.
     * 
     */
    public Output visibility() {
        return this.visibility;
    }

    /**
     *
     * @param name The _unique_ name of the resulting resource.
     */
    public DependabotOrganizationSecret(String name) {
        this(name, DependabotOrganizationSecretArgs.Empty);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     */
    public DependabotOrganizationSecret(String name, DependabotOrganizationSecretArgs 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 DependabotOrganizationSecret(String name, DependabotOrganizationSecretArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("github:index/dependabotOrganizationSecret:DependabotOrganizationSecret", name, args == null ? DependabotOrganizationSecretArgs.Empty : args, makeResourceOptions(options, Codegen.empty()));
    }

    private DependabotOrganizationSecret(String name, Output id, @Nullable DependabotOrganizationSecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("github:index/dependabotOrganizationSecret:DependabotOrganizationSecret", name, state, makeResourceOptions(options, id));
    }

    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 DependabotOrganizationSecret get(String name, Output id, @Nullable DependabotOrganizationSecretState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        return new DependabotOrganizationSecret(name, id, state, options);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy