UNPKG

@pulumi/pulumiservice

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fpulumiservice.svg)](https://www.npmjs.com/package/@pulumi/pulumiservice) [![Python version](https://badge.fury.io

402 lines 13 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as enums from "../types/enums"; export interface AWSOIDCConfigurationArgs { /** * Duration of the assume-role session in “XhYmZs” format */ duration?: pulumi.Input<string | undefined>; /** * Optional set of IAM policy ARNs that further restrict the assume-role session */ policyARNs?: pulumi.Input<pulumi.Input<string>[] | undefined>; /** * The ARN of the role to assume using the OIDC token. */ roleARN: pulumi.Input<string>; /** * The name of the assume-role session. */ sessionName: pulumi.Input<string>; } export interface ApprovalRuleConfigArgs { /** * Whether self-approval is allowed. */ allowSelfApproval: pulumi.Input<boolean>; /** * List of eligible approvers. */ eligibleApprovers: pulumi.Input<pulumi.Input<inputs.EligibleApproverArgs>[]>; /** * Number of approvals required. */ numApprovalsRequired: pulumi.Input<number>; /** * Whether reapproval is required on changes. */ requireReapprovalOnChange: pulumi.Input<boolean>; } export interface AuthPolicyDefinitionArgs { /** * The permission level for organization tokens. */ authorizedPermissions?: pulumi.Input<pulumi.Input<enums.AuthPolicyPermissionLevel>[] | undefined>; /** * The rule type of this policy definition */ decision: pulumi.Input<enums.AuthPolicyDecision>; /** * OIDC rules to set for this policy. */ rules: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; /** * The runner ID for deployment runner tokens. */ runnerID?: pulumi.Input<string | undefined>; /** * The team name for team tokens. */ teamName?: pulumi.Input<string | undefined>; /** * The token type for this policy definition */ tokenType: pulumi.Input<enums.AuthPolicyTokenType>; /** * The user login for personal tokens. */ userLogin?: pulumi.Input<string | undefined>; } export interface AzureOIDCConfigurationArgs { /** * The client ID of the federated workload identity. */ clientId: pulumi.Input<string>; /** * The subscription ID of the federated workload identity. */ subscriptionId: pulumi.Input<string>; /** * The tenant ID of the federated workload identity. */ tenantId: pulumi.Input<string>; } /** * Dependency cache settings for the deployment */ export interface DeploymentSettingsCacheOptionsArgs { /** * Enable dependency caching */ enable?: pulumi.Input<boolean | undefined>; } /** * deploymentSettingsCacheOptionsArgsProvideDefaults sets the appropriate defaults for DeploymentSettingsCacheOptionsArgs */ export declare function deploymentSettingsCacheOptionsArgsProvideDefaults(val: DeploymentSettingsCacheOptionsArgs): DeploymentSettingsCacheOptionsArgs; /** * The executor context defines information about the executor where the deployment is executed. If unspecified, the default 'pulumi/pulumi' image is used. */ export interface DeploymentSettingsExecutorContextArgs { /** * Allows overriding the default executor image with a custom image. E.g. 'pulumi/pulumi-nodejs:latest' */ executorImage: pulumi.Input<string>; } /** * Git source settings for a deployment. */ export interface DeploymentSettingsGitAuthBasicAuthArgs { /** * Password for git basic authentication. */ password: pulumi.Input<string>; /** * User name for git basic authentication. */ username: pulumi.Input<string>; } /** * Git source settings for a deployment. */ export interface DeploymentSettingsGitAuthSSHAuthArgs { /** * Optional password for SSH authentication. */ password?: pulumi.Input<string | undefined>; /** * SSH private key. */ sshPrivateKey: pulumi.Input<string>; } /** * Git source settings for a deployment. */ export interface DeploymentSettingsGitSourceArgs { /** * The branch to deploy. One of either `branch` or `commit` must be specified. */ branch?: pulumi.Input<string | undefined>; /** * The commit to deploy. One of either `branch` or `commit` must be specified. */ commit?: pulumi.Input<string | undefined>; /** * Git authentication configuration for this deployment. Should not be specified if there are `gitHub` settings for this deployment. */ gitAuth?: pulumi.Input<inputs.DeploymentSettingsGitSourceGitAuthArgs | undefined>; /** * The directory within the repository where the Pulumi.yaml is located. */ repoDir?: pulumi.Input<string | undefined>; /** * The repository URL to use for git settings. Should not be specified if there are `gitHub` settings for this deployment. */ repoUrl?: pulumi.Input<string | undefined>; } /** * Git source settings for a deployment. */ export interface DeploymentSettingsGitSourceGitAuthArgs { /** * Basic auth for git authentication. Only one of `personalAccessToken`, `sshAuth`, or `basicAuth` must be defined. */ basicAuth?: pulumi.Input<inputs.DeploymentSettingsGitAuthBasicAuthArgs | undefined>; /** * SSH auth for git authentication. Only one of `personalAccessToken`, `sshAuth`, or `basicAuth` must be defined. */ sshAuth?: pulumi.Input<inputs.DeploymentSettingsGitAuthSSHAuthArgs | undefined>; } /** * GitHub settings for the deployment. */ export interface DeploymentSettingsGithubArgs { /** * Trigger a deployment running `pulumi up` on commit. */ deployCommits?: pulumi.Input<boolean | undefined>; /** * The paths within the repo that deployments should be filtered to. */ paths?: pulumi.Input<pulumi.Input<string>[] | undefined>; /** * Trigger a deployment running `pulumi preview` when a PR is opened. */ previewPullRequests?: pulumi.Input<boolean | undefined>; /** * Use this stack as a template for pull request review stacks. */ pullRequestTemplate?: pulumi.Input<boolean | undefined>; /** * The GitHub repository in the format org/repo. */ repository?: pulumi.Input<string | undefined>; } /** * deploymentSettingsGithubArgsProvideDefaults sets the appropriate defaults for DeploymentSettingsGithubArgs */ export declare function deploymentSettingsGithubArgsProvideDefaults(val: DeploymentSettingsGithubArgs): DeploymentSettingsGithubArgs; /** * Settings related to the Pulumi operation environment during the deployment. */ export interface DeploymentSettingsOperationContextArgs { /** * Environment variables to set for the deployment. */ environmentVariables?: pulumi.Input<{ [key: string]: pulumi.Input<string>; } | undefined>; /** * OIDC configuration to use during the deployment. */ oidc?: pulumi.Input<inputs.OperationContextOIDCArgs | undefined>; /** * Options to override default behavior during the deployment. */ options?: pulumi.Input<inputs.OperationContextOptionsArgs | undefined>; /** * Shell commands to run before the Pulumi operation executes. */ preRunCommands?: pulumi.Input<pulumi.Input<string>[] | undefined>; } /** * Settings related to the source of the deployment. */ export interface DeploymentSettingsSourceContextArgs { /** * Git source settings for a deployment. */ git?: pulumi.Input<inputs.DeploymentSettingsGitSourceArgs | undefined>; } /** * VCS settings for the deployment, supporting multiple VCS providers. */ export interface DeploymentSettingsVcsArgs { /** * Trigger a deployment running `pulumi up` on commit. */ deployCommits?: pulumi.Input<boolean | undefined>; /** * Deploy a specific pull request number. */ deployPullRequest?: pulumi.Input<number | undefined>; /** * The VCS integration installation ID. Use to disambiguate when an organization has multiple integrations of the same provider type (e.g., two GitHub Apps). If omitted, the API resolves the integration automatically from `provider` and `repository`. */ installationId?: pulumi.Input<string | undefined>; /** * The paths within the repo that deployments should be filtered to. */ paths?: pulumi.Input<pulumi.Input<string>[] | undefined>; /** * Trigger a deployment running `pulumi preview` when a PR is opened. */ previewPullRequests?: pulumi.Input<boolean | undefined>; /** * The VCS provider type. */ provider: pulumi.Input<string>; /** * Use this stack as a template for pull request review stacks. */ pullRequestTemplate?: pulumi.Input<boolean | undefined>; /** * The repository identifier (e.g., 'ProjectName/RepoName' for Azure DevOps, 'org/repo' for GitHub). */ repository?: pulumi.Input<string | undefined>; } /** * deploymentSettingsVcsArgsProvideDefaults sets the appropriate defaults for DeploymentSettingsVcsArgs */ export declare function deploymentSettingsVcsArgsProvideDefaults(val: DeploymentSettingsVcsArgs): DeploymentSettingsVcsArgs; export interface EligibleApproverArgs { /** * RBAC permission that gives right to approve. */ rbacPermission?: pulumi.Input<enums.RbacPermission | undefined>; /** * Name of the team that can approve. */ teamName?: pulumi.Input<string | undefined>; /** * Login of the user that can approve. */ user?: pulumi.Input<string | undefined>; } export interface EnvironmentIdentifierArgs { /** * The environment name. */ name: pulumi.Input<string>; /** * The organization name. */ organization: pulumi.Input<string>; /** * The project name. */ project: pulumi.Input<string>; } export interface GCPOIDCConfigurationArgs { /** * The numerical ID of the GCP project. */ projectId: pulumi.Input<string>; /** * The ID of the identity provider associated with the workload pool. */ providerId: pulumi.Input<string>; /** * The region of the GCP project. */ region?: pulumi.Input<string | undefined>; /** * The email address of the service account to use. */ serviceAccount: pulumi.Input<string>; /** * The lifetime of the temporary credentials in “XhYmZs” format. */ tokenLifetime?: pulumi.Input<string | undefined>; /** * The ID of the workload pool to use. */ workloadPoolId: pulumi.Input<string>; } export interface OperationContextOIDCArgs { /** * AWS-specific OIDC configuration. */ aws?: pulumi.Input<inputs.AWSOIDCConfigurationArgs | undefined>; /** * Azure-specific OIDC configuration. */ azure?: pulumi.Input<inputs.AzureOIDCConfigurationArgs | undefined>; /** * GCP-specific OIDC configuration. */ gcp?: pulumi.Input<inputs.GCPOIDCConfigurationArgs | undefined>; } export interface OperationContextOptionsArgs { /** * Whether the stack should be deleted after it is destroyed. */ deleteAfterDestroy?: pulumi.Input<boolean | undefined>; /** * The shell to use to run commands during the deployment. Defaults to 'bash'. */ shell?: pulumi.Input<string | undefined>; /** * Skip the default dependency installation step - use this to customize the dependency installation (e.g. if using yarn or poetry) */ skipInstallDependencies?: pulumi.Input<boolean | undefined>; /** * Skip intermediate deployments (Consolidate multiple deployments of the same type into one deployment) */ skipIntermediateDeployments?: pulumi.Input<boolean | undefined>; } /** * A reference to a policy pack within a policy group (input). */ export interface PolicyGroupPolicyPackReferenceInputArgs { /** * Optional configuration for the policy pack. The special key `all` sets the default enforcement level for every policy in the pack; per-policy entries override it. */ config?: pulumi.Input<{ [key: string]: any; } | undefined>; /** * The display name of the policy pack. */ displayName?: pulumi.Input<string | undefined>; /** * The name of the policy pack. */ name: pulumi.Input<string>; /** * The version tag of the policy pack. */ versionTag?: pulumi.Input<string | undefined>; } /** * A reference to a stack within a policy group. */ export interface PolicyGroupStackReferenceArgs { /** * The name of the stack. */ name: pulumi.Input<string>; /** * The routing project name (also known as project name). */ routingProject: pulumi.Input<string>; } export interface TemplateSourceDestinationArgs { /** * Destination URL that gets filled in on new project creation. */ url?: pulumi.Input<string | undefined>; } //# sourceMappingURL=input.d.ts.map