@pulumi/harness
Version:
A Pulumi package for creating and managing Harness resources.
160 lines (159 loc) • 5.84 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* Resource for managing a Harness Gitops Applicationset. Please note this resource is in an alpha/experimental state and is subject to change.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as harness from "@pulumi/harness";
*
* const testFixed = new harness.platform.GitopsApplicationset("test_fixed", {
* orgId: "default",
* projectId: "projectId",
* agentId: "account.agentuseast1",
* upsert: true,
* applicationset: {
* metadata: {
* name: "tf-appset",
* namespace: "argocd",
* },
* spec: {
* goTemplate: true,
* goTemplateOptions: ["missingkey=error"],
* generators: [{
* clusters: [{
* enabled: true,
* }],
* }],
* template: {
* metadata: {
* name: "{{.name}}-guestbook",
* labels: {
* env: "dev",
* "harness.io/serviceRef": "svc1",
* },
* },
* spec: {
* project: "default",
* sources: [{
* repoUrl: "https://github.com/argoproj/argocd-example-apps.git",
* path: "helm-guestbook",
* targetRevision: "HEAD",
* }],
* destination: {
* server: "{{.url}}",
* namespace: "app-ns-{{.name}}",
* },
* },
* },
* },
* },
* });
* ```
*/
export declare class GitopsApplicationset extends pulumi.CustomResource {
/**
* Get an existing GitopsApplicationset 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<pulumi.ID>, state?: GitopsApplicationsetState, opts?: pulumi.CustomResourceOptions): GitopsApplicationset;
/**
* Returns true if the given object is an instance of GitopsApplicationset. 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 GitopsApplicationset;
/**
* Agent identifier of the GitOps applicationset.
*/
readonly agentId: pulumi.Output<string>;
/**
* Definition of the GitOps applicationset resource.
*/
readonly applicationset: pulumi.Output<outputs.platform.GitopsApplicationsetApplicationset>;
/**
* Identifier of the GitOps applicationset. This is a unique identifier for the applicationset generated automatically.
*/
readonly identifier: pulumi.Output<string>;
/**
* Organization identifier of the GitOps applicationset.
*/
readonly orgId: pulumi.Output<string>;
/**
* Project identifier of the GitOps applicationset.
*/
readonly projectId: pulumi.Output<string>;
/**
* Indicates if the GitOps application should be updated if existing and inserted if not.
*/
readonly upsert: pulumi.Output<boolean | undefined>;
/**
* Create a GitopsApplicationset 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: GitopsApplicationsetArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering GitopsApplicationset resources.
*/
export interface GitopsApplicationsetState {
/**
* Agent identifier of the GitOps applicationset.
*/
agentId?: pulumi.Input<string>;
/**
* Definition of the GitOps applicationset resource.
*/
applicationset?: pulumi.Input<inputs.platform.GitopsApplicationsetApplicationset>;
/**
* Identifier of the GitOps applicationset. This is a unique identifier for the applicationset generated automatically.
*/
identifier?: pulumi.Input<string>;
/**
* Organization identifier of the GitOps applicationset.
*/
orgId?: pulumi.Input<string>;
/**
* Project identifier of the GitOps applicationset.
*/
projectId?: pulumi.Input<string>;
/**
* Indicates if the GitOps application should be updated if existing and inserted if not.
*/
upsert?: pulumi.Input<boolean>;
}
/**
* The set of arguments for constructing a GitopsApplicationset resource.
*/
export interface GitopsApplicationsetArgs {
/**
* Agent identifier of the GitOps applicationset.
*/
agentId: pulumi.Input<string>;
/**
* Definition of the GitOps applicationset resource.
*/
applicationset: pulumi.Input<inputs.platform.GitopsApplicationsetApplicationset>;
/**
* Organization identifier of the GitOps applicationset.
*/
orgId: pulumi.Input<string>;
/**
* Project identifier of the GitOps applicationset.
*/
projectId: pulumi.Input<string>;
/**
* Indicates if the GitOps application should be updated if existing and inserted if not.
*/
upsert?: pulumi.Input<boolean>;
}