@pulumi/harness
Version: 
A Pulumi package for creating and managing Harness resources.
203 lines (202 loc) • 6.2 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
 * Resource for creating an AWS Autostopping proxy
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as harness from "@pulumi/harness";
 *
 * const test = new harness.autostopping.AwsProxy("test", {
 *     name: "name",
 *     cloudConnectorId: "cloud_connector_id",
 *     hostName: "host_name",
 *     region: "region",
 *     vpc: "vpc",
 *     securityGroups: [
 *         "sg1",
 *         "sg2",
 *     ],
 *     route53HostedZoneId: "/hostedzone/zone_id",
 *     machineType: "t2.medium",
 *     apiKey: "",
 *     allocateStaticIp: true,
 *     deleteCloudResourcesOnDestroy: true,
 * });
 * ```
 */
export declare class AwsProxy extends pulumi.CustomResource {
    /**
     * Get an existing AwsProxy 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?: AwsProxyState, opts?: pulumi.CustomResourceOptions): AwsProxy;
    /**
     * Returns true if the given object is an instance of AwsProxy.  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 AwsProxy;
    /**
     * Boolean value to indicate if proxy vm needs to have static IP
     */
    readonly allocateStaticIp: pulumi.Output<boolean | undefined>;
    /**
     * Harness NG API key
     */
    readonly apiKey: pulumi.Output<string>;
    readonly certificates: pulumi.Output<outputs.autostopping.AwsProxyCertificates | undefined>;
    /**
     * Id of the cloud connector
     */
    readonly cloudConnectorId: pulumi.Output<string>;
    readonly deleteCloudResourcesOnDestroy: pulumi.Output<boolean>;
    /**
     * Hostname for the proxy
     */
    readonly hostName: pulumi.Output<string>;
    /**
     * Unique identifier of the resource
     */
    readonly identifier: pulumi.Output<string>;
    readonly keypair: pulumi.Output<string | undefined>;
    /**
     * Machine instance type
     */
    readonly machineType: pulumi.Output<string>;
    /**
     * Name of the proxy
     */
    readonly name: pulumi.Output<string>;
    /**
     * Region in which cloud resources are hosted
     */
    readonly region: pulumi.Output<string>;
    /**
     * Route 53 hosted zone id
     */
    readonly route53HostedZoneId: pulumi.Output<string | undefined>;
    /**
     * Security Group to define the security rules that determine the inbound and outbound traffic
     */
    readonly securityGroups: pulumi.Output<string[] | undefined>;
    /**
     * VPC in which cloud resources are hosted
     */
    readonly vpc: pulumi.Output<string>;
    /**
     * Create a AwsProxy 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: AwsProxyArgs, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering AwsProxy resources.
 */
export interface AwsProxyState {
    /**
     * Boolean value to indicate if proxy vm needs to have static IP
     */
    allocateStaticIp?: pulumi.Input<boolean>;
    /**
     * Harness NG API key
     */
    apiKey?: pulumi.Input<string>;
    certificates?: pulumi.Input<inputs.autostopping.AwsProxyCertificates>;
    /**
     * Id of the cloud connector
     */
    cloudConnectorId?: pulumi.Input<string>;
    deleteCloudResourcesOnDestroy?: pulumi.Input<boolean>;
    /**
     * Hostname for the proxy
     */
    hostName?: pulumi.Input<string>;
    /**
     * Unique identifier of the resource
     */
    identifier?: pulumi.Input<string>;
    keypair?: pulumi.Input<string>;
    /**
     * Machine instance type
     */
    machineType?: pulumi.Input<string>;
    /**
     * Name of the proxy
     */
    name?: pulumi.Input<string>;
    /**
     * Region in which cloud resources are hosted
     */
    region?: pulumi.Input<string>;
    /**
     * Route 53 hosted zone id
     */
    route53HostedZoneId?: pulumi.Input<string>;
    /**
     * Security Group to define the security rules that determine the inbound and outbound traffic
     */
    securityGroups?: pulumi.Input<pulumi.Input<string>[]>;
    /**
     * VPC in which cloud resources are hosted
     */
    vpc?: pulumi.Input<string>;
}
/**
 * The set of arguments for constructing a AwsProxy resource.
 */
export interface AwsProxyArgs {
    /**
     * Boolean value to indicate if proxy vm needs to have static IP
     */
    allocateStaticIp?: pulumi.Input<boolean>;
    /**
     * Harness NG API key
     */
    apiKey: pulumi.Input<string>;
    certificates?: pulumi.Input<inputs.autostopping.AwsProxyCertificates>;
    /**
     * Id of the cloud connector
     */
    cloudConnectorId: pulumi.Input<string>;
    deleteCloudResourcesOnDestroy: pulumi.Input<boolean>;
    /**
     * Hostname for the proxy
     */
    hostName: pulumi.Input<string>;
    keypair?: pulumi.Input<string>;
    /**
     * Machine instance type
     */
    machineType: pulumi.Input<string>;
    /**
     * Name of the proxy
     */
    name?: pulumi.Input<string>;
    /**
     * Region in which cloud resources are hosted
     */
    region: pulumi.Input<string>;
    /**
     * Route 53 hosted zone id
     */
    route53HostedZoneId?: pulumi.Input<string>;
    /**
     * Security Group to define the security rules that determine the inbound and outbound traffic
     */
    securityGroups?: pulumi.Input<pulumi.Input<string>[]>;
    /**
     * VPC in which cloud resources are hosted
     */
    vpc: pulumi.Input<string>;
}