harness.platform.SpotConnector
Explore with Pulumi AI
Resource for creating a Spot connector.
Create SpotConnector Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SpotConnector(name: string, args: SpotConnectorArgs, opts?: CustomResourceOptions);
@overload
def SpotConnector(resource_name: str,
args: SpotConnectorArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SpotConnector(resource_name: str,
opts: Optional[ResourceOptions] = None,
identifier: Optional[str] = None,
permanent_token: Optional[SpotConnectorPermanentTokenArgs] = None,
description: Optional[str] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
tags: Optional[Sequence[str]] = None)
func NewSpotConnector(ctx *Context, name string, args SpotConnectorArgs, opts ...ResourceOption) (*SpotConnector, error)
public SpotConnector(string name, SpotConnectorArgs args, CustomResourceOptions? opts = null)
public SpotConnector(String name, SpotConnectorArgs args)
public SpotConnector(String name, SpotConnectorArgs args, CustomResourceOptions options)
type: harness:platform:SpotConnector
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 SpotConnectorArgs
- 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 SpotConnectorArgs
- 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 SpotConnectorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SpotConnectorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SpotConnectorArgs
- 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 spotConnectorResource = new Harness.Platform.SpotConnector("spotConnectorResource", new()
{
Identifier = "string",
PermanentToken = new Harness.Platform.Inputs.SpotConnectorPermanentTokenArgs
{
ApiTokenRef = "string",
DelegateSelectors = new[]
{
"string",
},
ExecuteOnDelegate = false,
SpotAccountId = "string",
SpotAccountIdRef = "string",
},
Description = "string",
Name = "string",
OrgId = "string",
ProjectId = "string",
Tags = new[]
{
"string",
},
});
example, err := platform.NewSpotConnector(ctx, "spotConnectorResource", &platform.SpotConnectorArgs{
Identifier: pulumi.String("string"),
PermanentToken: &platform.SpotConnectorPermanentTokenArgs{
ApiTokenRef: pulumi.String("string"),
DelegateSelectors: pulumi.StringArray{
pulumi.String("string"),
},
ExecuteOnDelegate: pulumi.Bool(false),
SpotAccountId: pulumi.String("string"),
SpotAccountIdRef: pulumi.String("string"),
},
Description: pulumi.String("string"),
Name: pulumi.String("string"),
OrgId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
})
var spotConnectorResource = new SpotConnector("spotConnectorResource", SpotConnectorArgs.builder()
.identifier("string")
.permanentToken(SpotConnectorPermanentTokenArgs.builder()
.apiTokenRef("string")
.delegateSelectors("string")
.executeOnDelegate(false)
.spotAccountId("string")
.spotAccountIdRef("string")
.build())
.description("string")
.name("string")
.orgId("string")
.projectId("string")
.tags("string")
.build());
spot_connector_resource = harness.platform.SpotConnector("spotConnectorResource",
identifier="string",
permanent_token={
"api_token_ref": "string",
"delegate_selectors": ["string"],
"execute_on_delegate": False,
"spot_account_id": "string",
"spot_account_id_ref": "string",
},
description="string",
name="string",
org_id="string",
project_id="string",
tags=["string"])
const spotConnectorResource = new harness.platform.SpotConnector("spotConnectorResource", {
identifier: "string",
permanentToken: {
apiTokenRef: "string",
delegateSelectors: ["string"],
executeOnDelegate: false,
spotAccountId: "string",
spotAccountIdRef: "string",
},
description: "string",
name: "string",
orgId: "string",
projectId: "string",
tags: ["string"],
});
type: harness:platform:SpotConnector
properties:
description: string
identifier: string
name: string
orgId: string
permanentToken:
apiTokenRef: string
delegateSelectors:
- string
executeOnDelegate: false
spotAccountId: string
spotAccountIdRef: string
projectId: string
tags:
- string
SpotConnector 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 SpotConnector resource accepts the following input properties:
- Identifier string
- Unique identifier of the resource.
- Permanent
Token SpotConnector Permanent Token - Authenticate to Spot using account id and permanent token.
- Description string
- Description of the resource.
- Name string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- List<string>
- Tags to associate with the resource.
- Identifier string
- Unique identifier of the resource.
- Permanent
Token SpotConnector Permanent Token Args - Authenticate to Spot using account id and permanent token.
- Description string
- Description of the resource.
- Name string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- []string
- Tags to associate with the resource.
- identifier String
- Unique identifier of the resource.
- permanent
Token SpotConnector Permanent Token - Authenticate to Spot using account id and permanent token.
- description String
- Description of the resource.
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- List<String>
- Tags to associate with the resource.
- identifier string
- Unique identifier of the resource.
- permanent
Token SpotConnector Permanent Token - Authenticate to Spot using account id and permanent token.
- description string
- Description of the resource.
- name string
- Name of the resource.
- org
Id string - Unique identifier of the organization.
- project
Id string - Unique identifier of the project.
- string[]
- Tags to associate with the resource.
- identifier str
- Unique identifier of the resource.
- permanent_
token SpotConnector Permanent Token Args - Authenticate to Spot using account id and permanent token.
- description str
- Description of the resource.
- name str
- Name of the resource.
- org_
id str - Unique identifier of the organization.
- project_
id str - Unique identifier of the project.
- Sequence[str]
- Tags to associate with the resource.
- identifier String
- Unique identifier of the resource.
- permanent
Token Property Map - Authenticate to Spot using account id and permanent token.
- description String
- Description of the resource.
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- List<String>
- Tags to associate with the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the SpotConnector resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing SpotConnector Resource
Get an existing SpotConnector 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?: SpotConnectorState, opts?: CustomResourceOptions): SpotConnector
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
identifier: Optional[str] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
permanent_token: Optional[SpotConnectorPermanentTokenArgs] = None,
project_id: Optional[str] = None,
tags: Optional[Sequence[str]] = None) -> SpotConnector
func GetSpotConnector(ctx *Context, name string, id IDInput, state *SpotConnectorState, opts ...ResourceOption) (*SpotConnector, error)
public static SpotConnector Get(string name, Input<string> id, SpotConnectorState? state, CustomResourceOptions? opts = null)
public static SpotConnector get(String name, Output<String> id, SpotConnectorState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Description string
- Description of the resource.
- Identifier string
- Unique identifier of the resource.
- Name string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Permanent
Token SpotConnector Permanent Token - Authenticate to Spot using account id and permanent token.
- Project
Id string - Unique identifier of the project.
- List<string>
- Tags to associate with the resource.
- Description string
- Description of the resource.
- Identifier string
- Unique identifier of the resource.
- Name string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Permanent
Token SpotConnector Permanent Token Args - Authenticate to Spot using account id and permanent token.
- Project
Id string - Unique identifier of the project.
- []string
- Tags to associate with the resource.
- description String
- Description of the resource.
- identifier String
- Unique identifier of the resource.
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- permanent
Token SpotConnector Permanent Token - Authenticate to Spot using account id and permanent token.
- project
Id String - Unique identifier of the project.
- List<String>
- Tags to associate with the resource.
- description string
- Description of the resource.
- identifier string
- Unique identifier of the resource.
- name string
- Name of the resource.
- org
Id string - Unique identifier of the organization.
- permanent
Token SpotConnector Permanent Token - Authenticate to Spot using account id and permanent token.
- project
Id string - Unique identifier of the project.
- string[]
- Tags to associate with the resource.
- description str
- Description of the resource.
- identifier str
- Unique identifier of the resource.
- name str
- Name of the resource.
- org_
id str - Unique identifier of the organization.
- permanent_
token SpotConnector Permanent Token Args - Authenticate to Spot using account id and permanent token.
- project_
id str - Unique identifier of the project.
- Sequence[str]
- Tags to associate with the resource.
- description String
- Description of the resource.
- identifier String
- Unique identifier of the resource.
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- permanent
Token Property Map - Authenticate to Spot using account id and permanent token.
- project
Id String - Unique identifier of the project.
- List<String>
- Tags to associate with the resource.
Supporting Types
SpotConnectorPermanentToken, SpotConnectorPermanentTokenArgs
- Api
Token stringRef - Reference to the Harness secret containing the permanent api token. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
- Delegate
Selectors List<string> - Connect only using delegates with these tags.
- Execute
On boolDelegate - Execute on delegate or not.
- Spot
Account stringId - Spot account id.
- Spot
Account stringId Ref - Reference to the Harness secret containing the spot account id. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
- Api
Token stringRef - Reference to the Harness secret containing the permanent api token. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
- Delegate
Selectors []string - Connect only using delegates with these tags.
- Execute
On boolDelegate - Execute on delegate or not.
- Spot
Account stringId - Spot account id.
- Spot
Account stringId Ref - Reference to the Harness secret containing the spot account id. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
- api
Token StringRef - Reference to the Harness secret containing the permanent api token. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
- delegate
Selectors List<String> - Connect only using delegates with these tags.
- execute
On BooleanDelegate - Execute on delegate or not.
- spot
Account StringId - Spot account id.
- spot
Account StringId Ref - Reference to the Harness secret containing the spot account id. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
- api
Token stringRef - Reference to the Harness secret containing the permanent api token. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
- delegate
Selectors string[] - Connect only using delegates with these tags.
- execute
On booleanDelegate - Execute on delegate or not.
- spot
Account stringId - Spot account id.
- spot
Account stringId Ref - Reference to the Harness secret containing the spot account id. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
- api_
token_ strref - Reference to the Harness secret containing the permanent api token. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
- delegate_
selectors Sequence[str] - Connect only using delegates with these tags.
- execute_
on_ booldelegate - Execute on delegate or not.
- spot_
account_ strid - Spot account id.
- spot_
account_ strid_ ref - Reference to the Harness secret containing the spot account id. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
- api
Token StringRef - Reference to the Harness secret containing the permanent api token. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
- delegate
Selectors List<String> - Connect only using delegates with these tags.
- execute
On BooleanDelegate - Execute on delegate or not.
- spot
Account StringId - Spot account id.
- spot
Account StringId Ref - Reference to the Harness secret containing the spot account id. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
Import
Import using spot cloud provider connector id
$ pulumi import harness:platform/spotConnector:SpotConnector example <connector_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harness
Terraform Provider.