import * as pulumi from "@pulumi/pulumi"; /** * This resource allows you to manage the repositories allowed to access an actions secret within your GitHub organization. * You must have write access to an organization secret to use this resource. * * This resource is only applicable when `visibility` of the existing organization secret has been set to `selected`. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as github from "@pulumi/github"; * * const example = new github.ActionsOrganizationSecret("example", { * secretName: "mysecret", * value: "foo", * visibility: "selected", * }); * const exampleRepository = new github.Repository("example", { * name: "myrepo", * visibility: "public", * }); * const exampleActionsOrganizationSecretRepositories = new github.ActionsOrganizationSecretRepositories("example", { * secretName: example.name, * selectedRepositoryIds: [exampleRepository.repoId], * }); * ``` * * ## Import * * This resource can be imported using the secret name as the ID. * * ### Import Command * * The following command imports the repositories able to access the actions organization secret named `mysecret` to a `github.ActionsOrganizationSecretRepositories` resource named `example`. * * ```sh * $ pulumi import github:index/actionsOrganizationSecretRepositories:ActionsOrganizationSecretRepositories example mysecret * ``` */ export declare class ActionsOrganizationSecretRepositories extends pulumi.CustomResource { /** * Get an existing ActionsOrganizationSecretRepositories 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 Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: ActionsOrganizationSecretRepositoriesState, opts?: pulumi.CustomResourceOptions): ActionsOrganizationSecretRepositories; /** * Returns true if the given object is an instance of ActionsOrganizationSecretRepositories. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is ActionsOrganizationSecretRepositories; /** * Name of the actions organization secret. */ readonly secretName: pulumi.Output; /** * List of IDs for the repositories that should be able to access the secret. */ readonly selectedRepositoryIds: pulumi.Output; /** * Create a ActionsOrganizationSecretRepositories resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ActionsOrganizationSecretRepositoriesArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ActionsOrganizationSecretRepositories resources. */ export interface ActionsOrganizationSecretRepositoriesState { /** * Name of the actions organization secret. */ secretName?: pulumi.Input; /** * List of IDs for the repositories that should be able to access the secret. */ selectedRepositoryIds?: pulumi.Input[] | undefined>; } /** * The set of arguments for constructing a ActionsOrganizationSecretRepositories resource. */ export interface ActionsOrganizationSecretRepositoriesArgs { /** * Name of the actions organization secret. */ secretName: pulumi.Input; /** * List of IDs for the repositories that should be able to access the secret. */ selectedRepositoryIds: pulumi.Input[]>; } //# sourceMappingURL=actionsOrganizationSecretRepositories.d.ts.map