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:
- ApiKey string
- Harness NG API key
- CloudConnector stringId 
- Id of the cloud connector
- DeleteCloud boolResources On Destroy 
- HostName string
- Hostname for the proxy
- MachineType string
- Machine instance type
- Region string
- Region in which cloud resources are hosted
- Vpc string
- VPC in which cloud resources are hosted
- AllocateStatic boolIp 
- Boolean value to indicate if proxy vm needs to have static IP
- Certificates
AwsProxy Certificates 
- Keypair string
- Name string
- Name of the proxy
- Route53HostedZone stringId 
- Route 53 hosted zone id
- SecurityGroups List<string>
- Security Group to define the security rules that determine the inbound and outbound traffic
- ApiKey string
- Harness NG API key
- CloudConnector stringId 
- Id of the cloud connector
- DeleteCloud boolResources On Destroy 
- HostName string
- Hostname for the proxy
- MachineType string
- Machine instance type
- Region string
- Region in which cloud resources are hosted
- Vpc string
- VPC in which cloud resources are hosted
- AllocateStatic boolIp 
- Boolean value to indicate if proxy vm needs to have static IP
- Certificates
AwsProxy Certificates Args 
- Keypair string
- Name string
- Name of the proxy
- Route53HostedZone stringId 
- Route 53 hosted zone id
- SecurityGroups []string
- Security Group to define the security rules that determine the inbound and outbound traffic
- apiKey String
- Harness NG API key
- cloudConnector StringId 
- Id of the cloud connector
- deleteCloud BooleanResources On Destroy 
- hostName String
- Hostname for the proxy
- machineType String
- Machine instance type
- region String
- Region in which cloud resources are hosted
- vpc String
- VPC in which cloud resources are hosted
- allocateStatic BooleanIp 
- Boolean value to indicate if proxy vm needs to have static IP
- certificates
AwsProxy Certificates 
- keypair String
- name String
- Name of the proxy
- route53HostedZone StringId 
- Route 53 hosted zone id
- securityGroups List<String>
- Security Group to define the security rules that determine the inbound and outbound traffic
- apiKey string
- Harness NG API key
- cloudConnector stringId 
- Id of the cloud connector
- deleteCloud booleanResources On Destroy 
- hostName string
- Hostname for the proxy
- machineType string
- Machine instance type
- region string
- Region in which cloud resources are hosted
- vpc string
- VPC in which cloud resources are hosted
- allocateStatic booleanIp 
- Boolean value to indicate if proxy vm needs to have static IP
- certificates
AwsProxy Certificates 
- keypair string
- name string
- Name of the proxy
- route53HostedZone stringId 
- Route 53 hosted zone id
- securityGroups 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
AwsProxy 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
- apiKey String
- Harness NG API key
- cloudConnector StringId 
- Id of the cloud connector
- deleteCloud BooleanResources On Destroy 
- hostName String
- Hostname for the proxy
- machineType String
- Machine instance type
- region String
- Region in which cloud resources are hosted
- vpc String
- VPC in which cloud resources are hosted
- allocateStatic BooleanIp 
- Boolean value to indicate if proxy vm needs to have static IP
- certificates Property Map
- keypair String
- name String
- Name of the proxy
- route53HostedZone StringId 
- Route 53 hosted zone id
- securityGroups 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.
- AllocateStatic boolIp 
- Boolean value to indicate if proxy vm needs to have static IP
- ApiKey string
- Harness NG API key
- Certificates
AwsProxy Certificates 
- CloudConnector stringId 
- Id of the cloud connector
- DeleteCloud boolResources On Destroy 
- HostName string
- Hostname for the proxy
- Identifier string
- Unique identifier of the resource
- Keypair string
- MachineType string
- Machine instance type
- Name string
- Name of the proxy
- Region string
- Region in which cloud resources are hosted
- Route53HostedZone stringId 
- Route 53 hosted zone id
- SecurityGroups 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
- AllocateStatic boolIp 
- Boolean value to indicate if proxy vm needs to have static IP
- ApiKey string
- Harness NG API key
- Certificates
AwsProxy Certificates Args 
- CloudConnector stringId 
- Id of the cloud connector
- DeleteCloud boolResources On Destroy 
- HostName string
- Hostname for the proxy
- Identifier string
- Unique identifier of the resource
- Keypair string
- MachineType string
- Machine instance type
- Name string
- Name of the proxy
- Region string
- Region in which cloud resources are hosted
- Route53HostedZone stringId 
- Route 53 hosted zone id
- SecurityGroups []string
- Security Group to define the security rules that determine the inbound and outbound traffic
- Vpc string
- VPC in which cloud resources are hosted
- allocateStatic BooleanIp 
- Boolean value to indicate if proxy vm needs to have static IP
- apiKey String
- Harness NG API key
- certificates
AwsProxy Certificates 
- cloudConnector StringId 
- Id of the cloud connector
- deleteCloud BooleanResources On Destroy 
- hostName String
- Hostname for the proxy
- identifier String
- Unique identifier of the resource
- keypair String
- machineType String
- Machine instance type
- name String
- Name of the proxy
- region String
- Region in which cloud resources are hosted
- route53HostedZone StringId 
- Route 53 hosted zone id
- securityGroups 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
- allocateStatic booleanIp 
- Boolean value to indicate if proxy vm needs to have static IP
- apiKey string
- Harness NG API key
- certificates
AwsProxy Certificates 
- cloudConnector stringId 
- Id of the cloud connector
- deleteCloud booleanResources On Destroy 
- hostName string
- Hostname for the proxy
- identifier string
- Unique identifier of the resource
- keypair string
- machineType string
- Machine instance type
- name string
- Name of the proxy
- region string
- Region in which cloud resources are hosted
- route53HostedZone stringId 
- Route 53 hosted zone id
- securityGroups 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
AwsProxy 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
- allocateStatic BooleanIp 
- Boolean value to indicate if proxy vm needs to have static IP
- apiKey String
- Harness NG API key
- certificates Property Map
- cloudConnector StringId 
- Id of the cloud connector
- deleteCloud BooleanResources On Destroy 
- hostName String
- Hostname for the proxy
- identifier String
- Unique identifier of the resource
- keypair String
- machineType String
- Machine instance type
- name String
- Name of the proxy
- region String
- Region in which cloud resources are hosted
- route53HostedZone StringId 
- Route 53 hosted zone id
- securityGroups 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      
- CertSecret stringId 
- Certificate secret ID
- KeySecret stringId 
- Private key secret ID
- CertSecret stringId 
- Certificate secret ID
- KeySecret stringId 
- Private key secret ID
- certSecret StringId 
- Certificate secret ID
- keySecret StringId 
- Private key secret ID
- certSecret stringId 
- Certificate secret ID
- keySecret stringId 
- Private key secret ID
- cert_secret_ strid 
- Certificate secret ID
- key_secret_ strid 
- Private key secret ID
- certSecret StringId 
- Certificate secret ID
- keySecret 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.
