harness.autostopping.AwsProxy
Explore with Pulumi AI
Resource for creating an AWS Autostopping proxy
Example Usage
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,
});
import pulumi
import pulumi_harness as harness
test = harness.autostopping.AwsProxy("test",
    name="name",
    cloud_connector_id="cloud_connector_id",
    host_name="host_name",
    region="region",
    vpc="vpc",
    security_groups=[
        "sg1",
        "sg2",
    ],
    route53_hosted_zone_id="/hostedzone/zone_id",
    machine_type="t2.medium",
    api_key="",
    allocate_static_ip=True,
    delete_cloud_resources_on_destroy=True)
package main
import (
	"github.com/pulumi/pulumi-harness/sdk/go/harness/autostopping"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := autostopping.NewAwsProxy(ctx, "test", &autostopping.AwsProxyArgs{
			Name:             pulumi.String("name"),
			CloudConnectorId: pulumi.String("cloud_connector_id"),
			HostName:         pulumi.String("host_name"),
			Region:           pulumi.String("region"),
			Vpc:              pulumi.String("vpc"),
			SecurityGroups: pulumi.StringArray{
				pulumi.String("sg1"),
				pulumi.String("sg2"),
			},
			Route53HostedZoneId:           pulumi.String("/hostedzone/zone_id"),
			MachineType:                   pulumi.String("t2.medium"),
			ApiKey:                        pulumi.String(""),
			AllocateStaticIp:              pulumi.Bool(true),
			DeleteCloudResourcesOnDestroy: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;
return await Deployment.RunAsync(() => 
{
    var test = new Harness.Autostopping.AwsProxy("test", new()
    {
        Name = "name",
        CloudConnectorId = "cloud_connector_id",
        HostName = "host_name",
        Region = "region",
        Vpc = "vpc",
        SecurityGroups = new[]
        {
            "sg1",
            "sg2",
        },
        Route53HostedZoneId = "/hostedzone/zone_id",
        MachineType = "t2.medium",
        ApiKey = "",
        AllocateStaticIp = true,
        DeleteCloudResourcesOnDestroy = true,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.autostopping.AwsProxy;
import com.pulumi.harness.autostopping.AwsProxyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var test = new AwsProxy("test", AwsProxyArgs.builder()
            .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)
            .build());
    }
}
resources:
  test:
    type: harness:autostopping:AwsProxy
    properties:
      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
Create AwsProxy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AwsProxy(name: string, args: AwsProxyArgs, opts?: CustomResourceOptions);@overload
def AwsProxy(resource_name: str,
             args: AwsProxyArgs,
             opts: Optional[ResourceOptions] = None)
@overload
def AwsProxy(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             region: Optional[str] = None,
             api_key: Optional[str] = None,
             cloud_connector_id: Optional[str] = None,
             delete_cloud_resources_on_destroy: Optional[bool] = None,
             host_name: Optional[str] = None,
             machine_type: Optional[str] = None,
             vpc: Optional[str] = None,
             certificates: Optional[AwsProxyCertificatesArgs] = None,
             keypair: Optional[str] = None,
             name: Optional[str] = None,
             allocate_static_ip: Optional[bool] = None,
             route53_hosted_zone_id: Optional[str] = None,
             security_groups: Optional[Sequence[str]] = None)func NewAwsProxy(ctx *Context, name string, args AwsProxyArgs, opts ...ResourceOption) (*AwsProxy, error)public AwsProxy(string name, AwsProxyArgs args, CustomResourceOptions? opts = null)
public AwsProxy(String name, AwsProxyArgs args)
public AwsProxy(String name, AwsProxyArgs args, CustomResourceOptions options)
type: harness:autostopping:AwsProxy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
 - The unique name of the resource.
 - args AwsProxyArgs
 - The arguments to resource properties.
 - opts CustomResourceOptions
 - Bag of options to control resource's behavior.
 
- resource_name str
 - The unique name of the resource.
 - args AwsProxyArgs
 - The arguments to resource properties.
 - opts ResourceOptions
 - Bag of options to control resource's behavior.
 
- ctx Context
 - Context object for the current deployment.
 - name string
 - The unique name of the resource.
 - args AwsProxyArgs
 - The arguments to resource properties.
 - opts ResourceOption
 - Bag of options to control resource's behavior.
 
- name string
 - The unique name of the resource.
 - args AwsProxyArgs
 - The arguments to resource properties.
 - opts CustomResourceOptions
 - Bag of options to control resource's behavior.
 
- name String
 - The unique name of the resource.
 - args AwsProxyArgs
 - The arguments to resource properties.
 - options CustomResourceOptions
 - Bag of options to control resource's behavior.
 
Constructor example
The following reference example uses placeholder values for all input properties.
var awsProxyResource = new Harness.Autostopping.AwsProxy("awsProxyResource", new()
{
    Region = "string",
    ApiKey = "string",
    CloudConnectorId = "string",
    DeleteCloudResourcesOnDestroy = false,
    HostName = "string",
    MachineType = "string",
    Vpc = "string",
    Certificates = new Harness.Autostopping.Inputs.AwsProxyCertificatesArgs
    {
        CertSecretId = "string",
        KeySecretId = "string",
    },
    Keypair = "string",
    Name = "string",
    AllocateStaticIp = false,
    Route53HostedZoneId = "string",
    SecurityGroups = new[]
    {
        "string",
    },
});
example, err := autostopping.NewAwsProxy(ctx, "awsProxyResource", &autostopping.AwsProxyArgs{
	Region:                        pulumi.String("string"),
	ApiKey:                        pulumi.String("string"),
	CloudConnectorId:              pulumi.String("string"),
	DeleteCloudResourcesOnDestroy: pulumi.Bool(false),
	HostName:                      pulumi.String("string"),
	MachineType:                   pulumi.String("string"),
	Vpc:                           pulumi.String("string"),
	Certificates: &autostopping.AwsProxyCertificatesArgs{
		CertSecretId: pulumi.String("string"),
		KeySecretId:  pulumi.String("string"),
	},
	Keypair:             pulumi.String("string"),
	Name:                pulumi.String("string"),
	AllocateStaticIp:    pulumi.Bool(false),
	Route53HostedZoneId: pulumi.String("string"),
	SecurityGroups: pulumi.StringArray{
		pulumi.String("string"),
	},
})
var awsProxyResource = new AwsProxy("awsProxyResource", AwsProxyArgs.builder()
    .region("string")
    .apiKey("string")
    .cloudConnectorId("string")
    .deleteCloudResourcesOnDestroy(false)
    .hostName("string")
    .machineType("string")
    .vpc("string")
    .certificates(AwsProxyCertificatesArgs.builder()
        .certSecretId("string")
        .keySecretId("string")
        .build())
    .keypair("string")
    .name("string")
    .allocateStaticIp(false)
    .route53HostedZoneId("string")
    .securityGroups("string")
    .build());
aws_proxy_resource = harness.autostopping.AwsProxy("awsProxyResource",
    region="string",
    api_key="string",
    cloud_connector_id="string",
    delete_cloud_resources_on_destroy=False,
    host_name="string",
    machine_type="string",
    vpc="string",
    certificates={
        "cert_secret_id": "string",
        "key_secret_id": "string",
    },
    keypair="string",
    name="string",
    allocate_static_ip=False,
    route53_hosted_zone_id="string",
    security_groups=["string"])
const awsProxyResource = new harness.autostopping.AwsProxy("awsProxyResource", {
    region: "string",
    apiKey: "string",
    cloudConnectorId: "string",
    deleteCloudResourcesOnDestroy: false,
    hostName: "string",
    machineType: "string",
    vpc: "string",
    certificates: {
        certSecretId: "string",
        keySecretId: "string",
    },
    keypair: "string",
    name: "string",
    allocateStaticIp: false,
    route53HostedZoneId: "string",
    securityGroups: ["string"],
});
type: harness:autostopping:AwsProxy
properties:
    allocateStaticIp: false
    apiKey: string
    certificates:
        certSecretId: string
        keySecretId: string
    cloudConnectorId: string
    deleteCloudResourcesOnDestroy: false
    hostName: string
    keypair: string
    machineType: string
    name: string
    region: string
    route53HostedZoneId: string
    securityGroups:
        - string
    vpc: string
AwsProxy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AwsProxy resource accepts the following input properties:
- Api
Key string - Harness NG API key
 - Cloud
Connector stringId  - Id of the cloud connector
 - Delete
Cloud boolResources On Destroy  - Host
Name string - Hostname for the proxy
 - Machine
Type string - Machine instance type
 - Region string
 - Region in which cloud resources are hosted
 - Vpc string
 - VPC in which cloud resources are hosted
 - Allocate
Static boolIp  - Boolean value to indicate if proxy vm needs to have static IP
 - Certificates
Aws
Proxy Certificates  - Keypair string
 - Name string
 - Name of the proxy
 - Route53Hosted
Zone stringId  - Route 53 hosted zone id
 - Security
Groups List<string> - Security Group to define the security rules that determine the inbound and outbound traffic
 
- Api
Key string - Harness NG API key
 - Cloud
Connector stringId  - Id of the cloud connector
 - Delete
Cloud boolResources On Destroy  - Host
Name string - Hostname for the proxy
 - Machine
Type string - Machine instance type
 - Region string
 - Region in which cloud resources are hosted
 - Vpc string
 - VPC in which cloud resources are hosted
 - Allocate
Static boolIp  - Boolean value to indicate if proxy vm needs to have static IP
 - Certificates
Aws
Proxy Certificates Args  - Keypair string
 - Name string
 - Name of the proxy
 - Route53Hosted
Zone stringId  - Route 53 hosted zone id
 - Security
Groups []string - Security Group to define the security rules that determine the inbound and outbound traffic
 
- api
Key String - Harness NG API key
 - cloud
Connector StringId  - Id of the cloud connector
 - delete
Cloud BooleanResources On Destroy  - host
Name String - Hostname for the proxy
 - machine
Type String - Machine instance type
 - region String
 - Region in which cloud resources are hosted
 - vpc String
 - VPC in which cloud resources are hosted
 - allocate
Static BooleanIp  - Boolean value to indicate if proxy vm needs to have static IP
 - certificates
Aws
Proxy Certificates  - keypair String
 - name String
 - Name of the proxy
 - route53Hosted
Zone StringId  - Route 53 hosted zone id
 - security
Groups List<String> - Security Group to define the security rules that determine the inbound and outbound traffic
 
- api
Key string - Harness NG API key
 - cloud
Connector stringId  - Id of the cloud connector
 - delete
Cloud booleanResources On Destroy  - host
Name string - Hostname for the proxy
 - machine
Type string - Machine instance type
 - region string
 - Region in which cloud resources are hosted
 - vpc string
 - VPC in which cloud resources are hosted
 - allocate
Static booleanIp  - Boolean value to indicate if proxy vm needs to have static IP
 - certificates
Aws
Proxy Certificates  - keypair string
 - name string
 - Name of the proxy
 - route53Hosted
Zone stringId  - Route 53 hosted zone id
 - security
Groups string[] - Security Group to define the security rules that determine the inbound and outbound traffic
 
- api_
key str - Harness NG API key
 - cloud_
connector_ strid  - Id of the cloud connector
 - delete_
cloud_ boolresources_ on_ destroy  - host_
name str - Hostname for the proxy
 - machine_
type str - Machine instance type
 - region str
 - Region in which cloud resources are hosted
 - vpc str
 - VPC in which cloud resources are hosted
 - allocate_
static_ boolip  - Boolean value to indicate if proxy vm needs to have static IP
 - certificates
Aws
Proxy Certificates Args  - keypair str
 - name str
 - Name of the proxy
 - route53_
hosted_ strzone_ id  - Route 53 hosted zone id
 - security_
groups Sequence[str] - Security Group to define the security rules that determine the inbound and outbound traffic
 
- api
Key String - Harness NG API key
 - cloud
Connector StringId  - Id of the cloud connector
 - delete
Cloud BooleanResources On Destroy  - host
Name String - Hostname for the proxy
 - machine
Type String - Machine instance type
 - region String
 - Region in which cloud resources are hosted
 - vpc String
 - VPC in which cloud resources are hosted
 - allocate
Static BooleanIp  - Boolean value to indicate if proxy vm needs to have static IP
 - certificates Property Map
 - keypair String
 - name String
 - Name of the proxy
 - route53Hosted
Zone StringId  - Route 53 hosted zone id
 - security
Groups List<String> - Security Group to define the security rules that determine the inbound and outbound traffic
 
Outputs
All input properties are implicitly available as output properties. Additionally, the AwsProxy resource produces the following output properties:
- Id string
 - The provider-assigned unique ID for this managed resource.
 - Identifier string
 - Unique identifier of the resource
 
- Id string
 - The provider-assigned unique ID for this managed resource.
 - Identifier string
 - Unique identifier of the resource
 
- id String
 - The provider-assigned unique ID for this managed resource.
 - identifier String
 - Unique identifier of the resource
 
- id string
 - The provider-assigned unique ID for this managed resource.
 - identifier string
 - Unique identifier of the resource
 
- id str
 - The provider-assigned unique ID for this managed resource.
 - identifier str
 - Unique identifier of the resource
 
- id String
 - The provider-assigned unique ID for this managed resource.
 - identifier String
 - Unique identifier of the resource
 
Look up Existing AwsProxy Resource
Get an existing AwsProxy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AwsProxyState, opts?: CustomResourceOptions): AwsProxy@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        allocate_static_ip: Optional[bool] = None,
        api_key: Optional[str] = None,
        certificates: Optional[AwsProxyCertificatesArgs] = None,
        cloud_connector_id: Optional[str] = None,
        delete_cloud_resources_on_destroy: Optional[bool] = None,
        host_name: Optional[str] = None,
        identifier: Optional[str] = None,
        keypair: Optional[str] = None,
        machine_type: Optional[str] = None,
        name: Optional[str] = None,
        region: Optional[str] = None,
        route53_hosted_zone_id: Optional[str] = None,
        security_groups: Optional[Sequence[str]] = None,
        vpc: Optional[str] = None) -> AwsProxyfunc GetAwsProxy(ctx *Context, name string, id IDInput, state *AwsProxyState, opts ...ResourceOption) (*AwsProxy, error)public static AwsProxy Get(string name, Input<string> id, AwsProxyState? state, CustomResourceOptions? opts = null)public static AwsProxy get(String name, Output<String> id, AwsProxyState state, CustomResourceOptions options)resources:  _:    type: harness:autostopping:AwsProxy    get:      id: ${id}- name
 - The unique name of the resulting resource.
 - id
 - The unique provider ID of the resource to lookup.
 - state
 - Any extra arguments used during the lookup.
 - opts
 - A bag of options that control this resource's behavior.
 
- resource_name
 - The unique name of the resulting resource.
 - id
 - The unique provider ID of the resource to lookup.
 
- name
 - The unique name of the resulting resource.
 - id
 - The unique provider ID of the resource to lookup.
 - state
 - Any extra arguments used during the lookup.
 - opts
 - A bag of options that control this resource's behavior.
 
- name
 - The unique name of the resulting resource.
 - id
 - The unique provider ID of the resource to lookup.
 - state
 - Any extra arguments used during the lookup.
 - opts
 - A bag of options that control this resource's behavior.
 
- name
 - The unique name of the resulting resource.
 - id
 - The unique provider ID of the resource to lookup.
 - state
 - Any extra arguments used during the lookup.
 - opts
 - A bag of options that control this resource's behavior.
 
- Allocate
Static boolIp  - Boolean value to indicate if proxy vm needs to have static IP
 - Api
Key string - Harness NG API key
 - Certificates
Aws
Proxy Certificates  - Cloud
Connector stringId  - Id of the cloud connector
 - Delete
Cloud boolResources On Destroy  - Host
Name string - Hostname for the proxy
 - Identifier string
 - Unique identifier of the resource
 - Keypair string
 - Machine
Type string - Machine instance type
 - Name string
 - Name of the proxy
 - Region string
 - Region in which cloud resources are hosted
 - Route53Hosted
Zone stringId  - Route 53 hosted zone id
 - Security
Groups List<string> - Security Group to define the security rules that determine the inbound and outbound traffic
 - Vpc string
 - VPC in which cloud resources are hosted
 
- Allocate
Static boolIp  - Boolean value to indicate if proxy vm needs to have static IP
 - Api
Key string - Harness NG API key
 - Certificates
Aws
Proxy Certificates Args  - Cloud
Connector stringId  - Id of the cloud connector
 - Delete
Cloud boolResources On Destroy  - Host
Name string - Hostname for the proxy
 - Identifier string
 - Unique identifier of the resource
 - Keypair string
 - Machine
Type string - Machine instance type
 - Name string
 - Name of the proxy
 - Region string
 - Region in which cloud resources are hosted
 - Route53Hosted
Zone stringId  - Route 53 hosted zone id
 - Security
Groups []string - Security Group to define the security rules that determine the inbound and outbound traffic
 - Vpc string
 - VPC in which cloud resources are hosted
 
- allocate
Static BooleanIp  - Boolean value to indicate if proxy vm needs to have static IP
 - api
Key String - Harness NG API key
 - certificates
Aws
Proxy Certificates  - cloud
Connector StringId  - Id of the cloud connector
 - delete
Cloud BooleanResources On Destroy  - host
Name String - Hostname for the proxy
 - identifier String
 - Unique identifier of the resource
 - keypair String
 - machine
Type String - Machine instance type
 - name String
 - Name of the proxy
 - region String
 - Region in which cloud resources are hosted
 - route53Hosted
Zone StringId  - Route 53 hosted zone id
 - security
Groups List<String> - Security Group to define the security rules that determine the inbound and outbound traffic
 - vpc String
 - VPC in which cloud resources are hosted
 
- allocate
Static booleanIp  - Boolean value to indicate if proxy vm needs to have static IP
 - api
Key string - Harness NG API key
 - certificates
Aws
Proxy Certificates  - cloud
Connector stringId  - Id of the cloud connector
 - delete
Cloud booleanResources On Destroy  - host
Name string - Hostname for the proxy
 - identifier string
 - Unique identifier of the resource
 - keypair string
 - machine
Type string - Machine instance type
 - name string
 - Name of the proxy
 - region string
 - Region in which cloud resources are hosted
 - route53Hosted
Zone stringId  - Route 53 hosted zone id
 - security
Groups string[] - Security Group to define the security rules that determine the inbound and outbound traffic
 - vpc string
 - VPC in which cloud resources are hosted
 
- allocate_
static_ boolip  - Boolean value to indicate if proxy vm needs to have static IP
 - api_
key str - Harness NG API key
 - certificates
Aws
Proxy Certificates Args  - cloud_
connector_ strid  - Id of the cloud connector
 - delete_
cloud_ boolresources_ on_ destroy  - host_
name str - Hostname for the proxy
 - identifier str
 - Unique identifier of the resource
 - keypair str
 - machine_
type str - Machine instance type
 - name str
 - Name of the proxy
 - region str
 - Region in which cloud resources are hosted
 - route53_
hosted_ strzone_ id  - Route 53 hosted zone id
 - security_
groups Sequence[str] - Security Group to define the security rules that determine the inbound and outbound traffic
 - vpc str
 - VPC in which cloud resources are hosted
 
- allocate
Static BooleanIp  - Boolean value to indicate if proxy vm needs to have static IP
 - api
Key String - Harness NG API key
 - certificates Property Map
 - cloud
Connector StringId  - Id of the cloud connector
 - delete
Cloud BooleanResources On Destroy  - host
Name String - Hostname for the proxy
 - identifier String
 - Unique identifier of the resource
 - keypair String
 - machine
Type String - Machine instance type
 - name String
 - Name of the proxy
 - region String
 - Region in which cloud resources are hosted
 - route53Hosted
Zone StringId  - Route 53 hosted zone id
 - security
Groups List<String> - Security Group to define the security rules that determine the inbound and outbound traffic
 - vpc String
 - VPC in which cloud resources are hosted
 
Supporting Types
AwsProxyCertificates, AwsProxyCertificatesArgs      
- Cert
Secret stringId  - Certificate secret ID
 - Key
Secret stringId  - Private key secret ID
 
- Cert
Secret stringId  - Certificate secret ID
 - Key
Secret stringId  - Private key secret ID
 
- cert
Secret StringId  - Certificate secret ID
 - key
Secret StringId  - Private key secret ID
 
- cert
Secret stringId  - Certificate secret ID
 - key
Secret stringId  - Private key secret ID
 
- cert_
secret_ strid  - Certificate secret ID
 - key_
secret_ strid  - Private key secret ID
 
- cert
Secret StringId  - Certificate secret ID
 - key
Secret StringId  - Private key secret ID
 
Package Details
- Repository
 - harness pulumi/pulumi-harness
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
harnessTerraform Provider.