harness.platform.ConnectorCustomSecretManager
Explore with Pulumi AI
Resource for creating a Custom Secrets Manager (CSM) connector.
Create ConnectorCustomSecretManager Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ConnectorCustomSecretManager(name: string, args: ConnectorCustomSecretManagerArgs, opts?: CustomResourceOptions);
@overload
def ConnectorCustomSecretManager(resource_name: str,
args: ConnectorCustomSecretManagerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ConnectorCustomSecretManager(resource_name: str,
opts: Optional[ResourceOptions] = None,
template_ref: Optional[str] = None,
version_label: Optional[str] = None,
identifier: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
on_delegate: Optional[bool] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
ssh_secret_ref: Optional[str] = None,
delegate_selectors: Optional[Sequence[str]] = None,
target_host: Optional[str] = None,
template_inputs: Optional[Sequence[ConnectorCustomSecretManagerTemplateInputArgs]] = None,
name: Optional[str] = None,
timeout: Optional[int] = None,
type: Optional[str] = None,
description: Optional[str] = None,
working_directory: Optional[str] = None)
func NewConnectorCustomSecretManager(ctx *Context, name string, args ConnectorCustomSecretManagerArgs, opts ...ResourceOption) (*ConnectorCustomSecretManager, error)
public ConnectorCustomSecretManager(string name, ConnectorCustomSecretManagerArgs args, CustomResourceOptions? opts = null)
public ConnectorCustomSecretManager(String name, ConnectorCustomSecretManagerArgs args)
public ConnectorCustomSecretManager(String name, ConnectorCustomSecretManagerArgs args, CustomResourceOptions options)
type: harness:platform:ConnectorCustomSecretManager
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 ConnectorCustomSecretManagerArgs
- 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 ConnectorCustomSecretManagerArgs
- 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 ConnectorCustomSecretManagerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConnectorCustomSecretManagerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ConnectorCustomSecretManagerArgs
- 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 connectorCustomSecretManagerResource = new Harness.Platform.ConnectorCustomSecretManager("connectorCustomSecretManagerResource", new()
{
TemplateRef = "string",
VersionLabel = "string",
Identifier = "string",
Tags = new[]
{
"string",
},
OnDelegate = false,
OrgId = "string",
ProjectId = "string",
SshSecretRef = "string",
DelegateSelectors = new[]
{
"string",
},
TargetHost = "string",
TemplateInputs = new[]
{
new Harness.Platform.Inputs.ConnectorCustomSecretManagerTemplateInputArgs
{
EnvironmentVariables = new[]
{
new Harness.Platform.Inputs.ConnectorCustomSecretManagerTemplateInputEnvironmentVariableArgs
{
Name = "string",
Type = "string",
Value = "string",
Default = false,
},
},
},
},
Name = "string",
Timeout = 0,
Type = "string",
Description = "string",
WorkingDirectory = "string",
});
example, err := platform.NewConnectorCustomSecretManager(ctx, "connectorCustomSecretManagerResource", &platform.ConnectorCustomSecretManagerArgs{
TemplateRef: pulumi.String("string"),
VersionLabel: pulumi.String("string"),
Identifier: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
OnDelegate: pulumi.Bool(false),
OrgId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
SshSecretRef: pulumi.String("string"),
DelegateSelectors: pulumi.StringArray{
pulumi.String("string"),
},
TargetHost: pulumi.String("string"),
TemplateInputs: platform.ConnectorCustomSecretManagerTemplateInputArray{
&platform.ConnectorCustomSecretManagerTemplateInputArgs{
EnvironmentVariables: platform.ConnectorCustomSecretManagerTemplateInputEnvironmentVariableArray{
&platform.ConnectorCustomSecretManagerTemplateInputEnvironmentVariableArgs{
Name: pulumi.String("string"),
Type: pulumi.String("string"),
Value: pulumi.String("string"),
Default: pulumi.Bool(false),
},
},
},
},
Name: pulumi.String("string"),
Timeout: pulumi.Int(0),
Type: pulumi.String("string"),
Description: pulumi.String("string"),
WorkingDirectory: pulumi.String("string"),
})
var connectorCustomSecretManagerResource = new ConnectorCustomSecretManager("connectorCustomSecretManagerResource", ConnectorCustomSecretManagerArgs.builder()
.templateRef("string")
.versionLabel("string")
.identifier("string")
.tags("string")
.onDelegate(false)
.orgId("string")
.projectId("string")
.sshSecretRef("string")
.delegateSelectors("string")
.targetHost("string")
.templateInputs(ConnectorCustomSecretManagerTemplateInputArgs.builder()
.environmentVariables(ConnectorCustomSecretManagerTemplateInputEnvironmentVariableArgs.builder()
.name("string")
.type("string")
.value("string")
.default_(false)
.build())
.build())
.name("string")
.timeout(0)
.type("string")
.description("string")
.workingDirectory("string")
.build());
connector_custom_secret_manager_resource = harness.platform.ConnectorCustomSecretManager("connectorCustomSecretManagerResource",
template_ref="string",
version_label="string",
identifier="string",
tags=["string"],
on_delegate=False,
org_id="string",
project_id="string",
ssh_secret_ref="string",
delegate_selectors=["string"],
target_host="string",
template_inputs=[{
"environment_variables": [{
"name": "string",
"type": "string",
"value": "string",
"default": False,
}],
}],
name="string",
timeout=0,
type="string",
description="string",
working_directory="string")
const connectorCustomSecretManagerResource = new harness.platform.ConnectorCustomSecretManager("connectorCustomSecretManagerResource", {
templateRef: "string",
versionLabel: "string",
identifier: "string",
tags: ["string"],
onDelegate: false,
orgId: "string",
projectId: "string",
sshSecretRef: "string",
delegateSelectors: ["string"],
targetHost: "string",
templateInputs: [{
environmentVariables: [{
name: "string",
type: "string",
value: "string",
"default": false,
}],
}],
name: "string",
timeout: 0,
type: "string",
description: "string",
workingDirectory: "string",
});
type: harness:platform:ConnectorCustomSecretManager
properties:
delegateSelectors:
- string
description: string
identifier: string
name: string
onDelegate: false
orgId: string
projectId: string
sshSecretRef: string
tags:
- string
targetHost: string
templateInputs:
- environmentVariables:
- default: false
name: string
type: string
value: string
templateRef: string
timeout: 0
type: string
versionLabel: string
workingDirectory: string
ConnectorCustomSecretManager 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 ConnectorCustomSecretManager resource accepts the following input properties:
- Identifier string
- Unique identifier of the resource.
- Template
Ref string - Version
Label string - Delegate
Selectors List<string> - Tags to filter delegates for connection.
- Description string
- Description of the resource.
- Name string
- Name of the resource.
- On
Delegate bool - Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Ssh
Secret stringRef - SSH secret reference for the custom secrets manager, required if 'on_delegate' is false.
- List<string>
- Tags to associate with the resource.
- Target
Host string - Host where the custom secrets manager is located, required if 'on_delegate' is false.
- Template
Inputs List<ConnectorCustom Secret Manager Template Input> - Timeout int
- Type string
- Working
Directory string - The working directory for operations, required if 'on_delegate' is false.
- Identifier string
- Unique identifier of the resource.
- Template
Ref string - Version
Label string - Delegate
Selectors []string - Tags to filter delegates for connection.
- Description string
- Description of the resource.
- Name string
- Name of the resource.
- On
Delegate bool - Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Ssh
Secret stringRef - SSH secret reference for the custom secrets manager, required if 'on_delegate' is false.
- []string
- Tags to associate with the resource.
- Target
Host string - Host where the custom secrets manager is located, required if 'on_delegate' is false.
- Template
Inputs []ConnectorCustom Secret Manager Template Input Args - Timeout int
- Type string
- Working
Directory string - The working directory for operations, required if 'on_delegate' is false.
- identifier String
- Unique identifier of the resource.
- template
Ref String - version
Label String - delegate
Selectors List<String> - Tags to filter delegates for connection.
- description String
- Description of the resource.
- name String
- Name of the resource.
- on
Delegate Boolean - org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- ssh
Secret StringRef - SSH secret reference for the custom secrets manager, required if 'on_delegate' is false.
- List<String>
- Tags to associate with the resource.
- target
Host String - Host where the custom secrets manager is located, required if 'on_delegate' is false.
- template
Inputs List<ConnectorCustom Secret Manager Template Input> - timeout Integer
- type String
- working
Directory String - The working directory for operations, required if 'on_delegate' is false.
- identifier string
- Unique identifier of the resource.
- template
Ref string - version
Label string - delegate
Selectors string[] - Tags to filter delegates for connection.
- description string
- Description of the resource.
- name string
- Name of the resource.
- on
Delegate boolean - org
Id string - Unique identifier of the organization.
- project
Id string - Unique identifier of the project.
- ssh
Secret stringRef - SSH secret reference for the custom secrets manager, required if 'on_delegate' is false.
- string[]
- Tags to associate with the resource.
- target
Host string - Host where the custom secrets manager is located, required if 'on_delegate' is false.
- template
Inputs ConnectorCustom Secret Manager Template Input[] - timeout number
- type string
- working
Directory string - The working directory for operations, required if 'on_delegate' is false.
- identifier str
- Unique identifier of the resource.
- template_
ref str - version_
label str - delegate_
selectors Sequence[str] - Tags to filter delegates for connection.
- description str
- Description of the resource.
- name str
- Name of the resource.
- on_
delegate bool - org_
id str - Unique identifier of the organization.
- project_
id str - Unique identifier of the project.
- ssh_
secret_ strref - SSH secret reference for the custom secrets manager, required if 'on_delegate' is false.
- Sequence[str]
- Tags to associate with the resource.
- target_
host str - Host where the custom secrets manager is located, required if 'on_delegate' is false.
- template_
inputs Sequence[ConnectorCustom Secret Manager Template Input Args] - timeout int
- type str
- working_
directory str - The working directory for operations, required if 'on_delegate' is false.
- identifier String
- Unique identifier of the resource.
- template
Ref String - version
Label String - delegate
Selectors List<String> - Tags to filter delegates for connection.
- description String
- Description of the resource.
- name String
- Name of the resource.
- on
Delegate Boolean - org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- ssh
Secret StringRef - SSH secret reference for the custom secrets manager, required if 'on_delegate' is false.
- List<String>
- Tags to associate with the resource.
- target
Host String - Host where the custom secrets manager is located, required if 'on_delegate' is false.
- template
Inputs List<Property Map> - timeout Number
- type String
- working
Directory String - The working directory for operations, required if 'on_delegate' is false.
Outputs
All input properties are implicitly available as output properties. Additionally, the ConnectorCustomSecretManager 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 ConnectorCustomSecretManager Resource
Get an existing ConnectorCustomSecretManager 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?: ConnectorCustomSecretManagerState, opts?: CustomResourceOptions): ConnectorCustomSecretManager
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
delegate_selectors: Optional[Sequence[str]] = None,
description: Optional[str] = None,
identifier: Optional[str] = None,
name: Optional[str] = None,
on_delegate: Optional[bool] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
ssh_secret_ref: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
target_host: Optional[str] = None,
template_inputs: Optional[Sequence[ConnectorCustomSecretManagerTemplateInputArgs]] = None,
template_ref: Optional[str] = None,
timeout: Optional[int] = None,
type: Optional[str] = None,
version_label: Optional[str] = None,
working_directory: Optional[str] = None) -> ConnectorCustomSecretManager
func GetConnectorCustomSecretManager(ctx *Context, name string, id IDInput, state *ConnectorCustomSecretManagerState, opts ...ResourceOption) (*ConnectorCustomSecretManager, error)
public static ConnectorCustomSecretManager Get(string name, Input<string> id, ConnectorCustomSecretManagerState? state, CustomResourceOptions? opts = null)
public static ConnectorCustomSecretManager get(String name, Output<String> id, ConnectorCustomSecretManagerState state, CustomResourceOptions options)
resources: _: type: harness:platform:ConnectorCustomSecretManager 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.
- Delegate
Selectors List<string> - Tags to filter delegates for connection.
- Description string
- Description of the resource.
- Identifier string
- Unique identifier of the resource.
- Name string
- Name of the resource.
- On
Delegate bool - Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Ssh
Secret stringRef - SSH secret reference for the custom secrets manager, required if 'on_delegate' is false.
- List<string>
- Tags to associate with the resource.
- Target
Host string - Host where the custom secrets manager is located, required if 'on_delegate' is false.
- Template
Inputs List<ConnectorCustom Secret Manager Template Input> - Template
Ref string - Timeout int
- Type string
- Version
Label string - Working
Directory string - The working directory for operations, required if 'on_delegate' is false.
- Delegate
Selectors []string - Tags to filter delegates for connection.
- Description string
- Description of the resource.
- Identifier string
- Unique identifier of the resource.
- Name string
- Name of the resource.
- On
Delegate bool - Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Ssh
Secret stringRef - SSH secret reference for the custom secrets manager, required if 'on_delegate' is false.
- []string
- Tags to associate with the resource.
- Target
Host string - Host where the custom secrets manager is located, required if 'on_delegate' is false.
- Template
Inputs []ConnectorCustom Secret Manager Template Input Args - Template
Ref string - Timeout int
- Type string
- Version
Label string - Working
Directory string - The working directory for operations, required if 'on_delegate' is false.
- delegate
Selectors List<String> - Tags to filter delegates for connection.
- description String
- Description of the resource.
- identifier String
- Unique identifier of the resource.
- name String
- Name of the resource.
- on
Delegate Boolean - org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- ssh
Secret StringRef - SSH secret reference for the custom secrets manager, required if 'on_delegate' is false.
- List<String>
- Tags to associate with the resource.
- target
Host String - Host where the custom secrets manager is located, required if 'on_delegate' is false.
- template
Inputs List<ConnectorCustom Secret Manager Template Input> - template
Ref String - timeout Integer
- type String
- version
Label String - working
Directory String - The working directory for operations, required if 'on_delegate' is false.
- delegate
Selectors string[] - Tags to filter delegates for connection.
- description string
- Description of the resource.
- identifier string
- Unique identifier of the resource.
- name string
- Name of the resource.
- on
Delegate boolean - org
Id string - Unique identifier of the organization.
- project
Id string - Unique identifier of the project.
- ssh
Secret stringRef - SSH secret reference for the custom secrets manager, required if 'on_delegate' is false.
- string[]
- Tags to associate with the resource.
- target
Host string - Host where the custom secrets manager is located, required if 'on_delegate' is false.
- template
Inputs ConnectorCustom Secret Manager Template Input[] - template
Ref string - timeout number
- type string
- version
Label string - working
Directory string - The working directory for operations, required if 'on_delegate' is false.
- delegate_
selectors Sequence[str] - Tags to filter delegates for connection.
- description str
- Description of the resource.
- identifier str
- Unique identifier of the resource.
- name str
- Name of the resource.
- on_
delegate bool - org_
id str - Unique identifier of the organization.
- project_
id str - Unique identifier of the project.
- ssh_
secret_ strref - SSH secret reference for the custom secrets manager, required if 'on_delegate' is false.
- Sequence[str]
- Tags to associate with the resource.
- target_
host str - Host where the custom secrets manager is located, required if 'on_delegate' is false.
- template_
inputs Sequence[ConnectorCustom Secret Manager Template Input Args] - template_
ref str - timeout int
- type str
- version_
label str - working_
directory str - The working directory for operations, required if 'on_delegate' is false.
- delegate
Selectors List<String> - Tags to filter delegates for connection.
- description String
- Description of the resource.
- identifier String
- Unique identifier of the resource.
- name String
- Name of the resource.
- on
Delegate Boolean - org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- ssh
Secret StringRef - SSH secret reference for the custom secrets manager, required if 'on_delegate' is false.
- List<String>
- Tags to associate with the resource.
- target
Host String - Host where the custom secrets manager is located, required if 'on_delegate' is false.
- template
Inputs List<Property Map> - template
Ref String - timeout Number
- type String
- version
Label String - working
Directory String - The working directory for operations, required if 'on_delegate' is false.
Supporting Types
ConnectorCustomSecretManagerTemplateInput, ConnectorCustomSecretManagerTemplateInputArgs
ConnectorCustomSecretManagerTemplateInputEnvironmentVariable, ConnectorCustomSecretManagerTemplateInputEnvironmentVariableArgs
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harness
Terraform Provider.