Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// *** 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.ActionsOrganizationPermissionsArgs;
import com.pulumi.github.Utilities;
import com.pulumi.github.inputs.ActionsOrganizationPermissionsState;
import com.pulumi.github.outputs.ActionsOrganizationPermissionsAllowedActionsConfig;
import com.pulumi.github.outputs.ActionsOrganizationPermissionsEnabledRepositoriesConfig;
import java.lang.String;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* This resource allows you to create and manage GitHub Actions permissions within your GitHub enterprise organizations.
* You must have admin access to an organization to use this resource.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* This resource can be imported using the name of the GitHub organization:
*
* ```sh
* $ pulumi import github:index/actionsOrganizationPermissions:ActionsOrganizationPermissions test github_organization_name
* ```
*
*/
@ResourceType(type="github:index/actionsOrganizationPermissions:ActionsOrganizationPermissions")
public class ActionsOrganizationPermissions extends com.pulumi.resources.CustomResource {
/**
* The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `local_only`, or `selected`.
*
*/
@Export(name="allowedActions", refs={String.class}, tree="[0]")
private Output allowedActions;
/**
* @return The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `local_only`, or `selected`.
*
*/
public Output> allowedActions() {
return Codegen.optional(this.allowedActions);
}
/**
* Sets the actions that are allowed in an organization. Only available when `allowed_actions` = `selected`. See Allowed Actions Config below for details.
*
*/
@Export(name="allowedActionsConfig", refs={ActionsOrganizationPermissionsAllowedActionsConfig.class}, tree="[0]")
private Output allowedActionsConfig;
/**
* @return Sets the actions that are allowed in an organization. Only available when `allowed_actions` = `selected`. See Allowed Actions Config below for details.
*
*/
public Output> allowedActionsConfig() {
return Codegen.optional(this.allowedActionsConfig);
}
/**
* The policy that controls the repositories in the organization that are allowed to run GitHub Actions. Can be one of: `all`, `none`, or `selected`.
*
*/
@Export(name="enabledRepositories", refs={String.class}, tree="[0]")
private Output enabledRepositories;
/**
* @return The policy that controls the repositories in the organization that are allowed to run GitHub Actions. Can be one of: `all`, `none`, or `selected`.
*
*/
public Output enabledRepositories() {
return this.enabledRepositories;
}
/**
* Sets the list of selected repositories that are enabled for GitHub Actions in an organization. Only available when `enabled_repositories` = `selected`. See Enabled Repositories Config below for details.
*
*/
@Export(name="enabledRepositoriesConfig", refs={ActionsOrganizationPermissionsEnabledRepositoriesConfig.class}, tree="[0]")
private Output enabledRepositoriesConfig;
/**
* @return Sets the list of selected repositories that are enabled for GitHub Actions in an organization. Only available when `enabled_repositories` = `selected`. See Enabled Repositories Config below for details.
*
*/
public Output> enabledRepositoriesConfig() {
return Codegen.optional(this.enabledRepositoriesConfig);
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public ActionsOrganizationPermissions(java.lang.String name) {
this(name, ActionsOrganizationPermissionsArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public ActionsOrganizationPermissions(java.lang.String name, ActionsOrganizationPermissionsArgs 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 ActionsOrganizationPermissions(java.lang.String name, ActionsOrganizationPermissionsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("github:index/actionsOrganizationPermissions:ActionsOrganizationPermissions", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private ActionsOrganizationPermissions(java.lang.String name, Output id, @Nullable ActionsOrganizationPermissionsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("github:index/actionsOrganizationPermissions:ActionsOrganizationPermissions", name, state, makeResourceOptions(options, id), false);
}
private static ActionsOrganizationPermissionsArgs makeArgs(ActionsOrganizationPermissionsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? ActionsOrganizationPermissionsArgs.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())
.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 ActionsOrganizationPermissions get(java.lang.String name, Output id, @Nullable ActionsOrganizationPermissionsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new ActionsOrganizationPermissions(name, id, state, options);
}
}