harness.platform.AzureCloudProviderConnector
Explore with Pulumi AI
Resource for creating an Azure Cloud Provider in Harness.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Lbrlabs.PulumiPackage.Harness;
return await Deployment.RunAsync(() =>
{
var manualConfigSecret = new Harness.Platform.AzureCloudProviderConnector("manualConfigSecret", new()
{
AzureEnvironmentType = "AZURE",
Credentials = new Harness.Platform.Inputs.AzureCloudProviderConnectorCredentialsArgs
{
AzureManualDetails = new Harness.Platform.Inputs.AzureCloudProviderConnectorCredentialsAzureManualDetailsArgs
{
ApplicationId = "application_id",
Auth = new Harness.Platform.Inputs.AzureCloudProviderConnectorCredentialsAzureManualDetailsAuthArgs
{
AzureClientSecretKey = new Harness.Platform.Inputs.AzureCloudProviderConnectorCredentialsAzureManualDetailsAuthAzureClientSecretKeyArgs
{
SecretRef = $"account.{harness_platform_secret_text.Test.Id}",
},
Type = "Secret",
},
TenantId = "tenant_id",
},
Type = "ManualConfig",
},
DelegateSelectors = new[]
{
"harness-delegate",
},
Description = "example",
Identifier = "identifier",
Tags = new[]
{
"foo:bar",
},
});
var manualConfigCertificate = new Harness.Platform.AzureCloudProviderConnector("manualConfigCertificate", new()
{
AzureEnvironmentType = "AZURE",
Credentials = new Harness.Platform.Inputs.AzureCloudProviderConnectorCredentialsArgs
{
AzureManualDetails = new Harness.Platform.Inputs.AzureCloudProviderConnectorCredentialsAzureManualDetailsArgs
{
ApplicationId = "application_id",
Auth = new Harness.Platform.Inputs.AzureCloudProviderConnectorCredentialsAzureManualDetailsAuthArgs
{
AzureClientKeyCert = new Harness.Platform.Inputs.AzureCloudProviderConnectorCredentialsAzureManualDetailsAuthAzureClientKeyCertArgs
{
CertificateRef = $"account.{harness_platform_secret_text.Test.Id}",
},
Type = "Certificate",
},
TenantId = "tenant_id",
},
Type = "ManualConfig",
},
DelegateSelectors = new[]
{
"harness-delegate",
},
Description = "example",
Identifier = "identifier",
Tags = new[]
{
"foo:bar",
},
});
var inheritFromDelegateUserAssignedManagedIdentity = new Harness.Platform.AzureCloudProviderConnector("inheritFromDelegateUserAssignedManagedIdentity", new()
{
AzureEnvironmentType = "AZURE",
Credentials = new Harness.Platform.Inputs.AzureCloudProviderConnectorCredentialsArgs
{
AzureInheritFromDelegateDetails = new Harness.Platform.Inputs.AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsArgs
{
Auth = new Harness.Platform.Inputs.AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsAuthArgs
{
AzureMsiAuthUa = new Harness.Platform.Inputs.AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsAuthAzureMsiAuthUaArgs
{
ClientId = "client_id",
},
Type = "UserAssignedManagedIdentity",
},
},
Type = "InheritFromDelegate",
},
DelegateSelectors = new[]
{
"harness-delegate",
},
Description = "example",
Identifier = "identifier",
Tags = new[]
{
"foo:bar",
},
});
var inheritFromDelegateSystemAssignedManagedIdentity = new Harness.Platform.AzureCloudProviderConnector("inheritFromDelegateSystemAssignedManagedIdentity", new()
{
AzureEnvironmentType = "AZURE",
Credentials = new Harness.Platform.Inputs.AzureCloudProviderConnectorCredentialsArgs
{
AzureInheritFromDelegateDetails = new Harness.Platform.Inputs.AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsArgs
{
Auth = new Harness.Platform.Inputs.AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsAuthArgs
{
Type = "SystemAssignedManagedIdentity",
},
},
Type = "InheritFromDelegate",
},
DelegateSelectors = new[]
{
"harness-delegate",
},
Description = "example",
Identifier = "identifier",
Tags = new[]
{
"foo:bar",
},
});
});
package main
import (
"fmt"
"github.com/lbrlabs/pulumi-harness/sdk/go/harness/platform"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := platform.NewAzureCloudProviderConnector(ctx, "manualConfigSecret", &platform.AzureCloudProviderConnectorArgs{
AzureEnvironmentType: pulumi.String("AZURE"),
Credentials: &platform.AzureCloudProviderConnectorCredentialsArgs{
AzureManualDetails: &platform.AzureCloudProviderConnectorCredentialsAzureManualDetailsArgs{
ApplicationId: pulumi.String("application_id"),
Auth: &platform.AzureCloudProviderConnectorCredentialsAzureManualDetailsAuthArgs{
AzureClientSecretKey: &platform.AzureCloudProviderConnectorCredentialsAzureManualDetailsAuthAzureClientSecretKeyArgs{
SecretRef: pulumi.String(fmt.Sprintf("account.%v", harness_platform_secret_text.Test.Id)),
},
Type: pulumi.String("Secret"),
},
TenantId: pulumi.String("tenant_id"),
},
Type: pulumi.String("ManualConfig"),
},
DelegateSelectors: pulumi.StringArray{
pulumi.String("harness-delegate"),
},
Description: pulumi.String("example"),
Identifier: pulumi.String("identifier"),
Tags: pulumi.StringArray{
pulumi.String("foo:bar"),
},
})
if err != nil {
return err
}
_, err = platform.NewAzureCloudProviderConnector(ctx, "manualConfigCertificate", &platform.AzureCloudProviderConnectorArgs{
AzureEnvironmentType: pulumi.String("AZURE"),
Credentials: &platform.AzureCloudProviderConnectorCredentialsArgs{
AzureManualDetails: &platform.AzureCloudProviderConnectorCredentialsAzureManualDetailsArgs{
ApplicationId: pulumi.String("application_id"),
Auth: &platform.AzureCloudProviderConnectorCredentialsAzureManualDetailsAuthArgs{
AzureClientKeyCert: &platform.AzureCloudProviderConnectorCredentialsAzureManualDetailsAuthAzureClientKeyCertArgs{
CertificateRef: pulumi.String(fmt.Sprintf("account.%v", harness_platform_secret_text.Test.Id)),
},
Type: pulumi.String("Certificate"),
},
TenantId: pulumi.String("tenant_id"),
},
Type: pulumi.String("ManualConfig"),
},
DelegateSelectors: pulumi.StringArray{
pulumi.String("harness-delegate"),
},
Description: pulumi.String("example"),
Identifier: pulumi.String("identifier"),
Tags: pulumi.StringArray{
pulumi.String("foo:bar"),
},
})
if err != nil {
return err
}
_, err = platform.NewAzureCloudProviderConnector(ctx, "inheritFromDelegateUserAssignedManagedIdentity", &platform.AzureCloudProviderConnectorArgs{
AzureEnvironmentType: pulumi.String("AZURE"),
Credentials: &platform.AzureCloudProviderConnectorCredentialsArgs{
AzureInheritFromDelegateDetails: &platform.AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsArgs{
Auth: &platform.AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsAuthArgs{
AzureMsiAuthUa: &platform.AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsAuthAzureMsiAuthUaArgs{
ClientId: pulumi.String("client_id"),
},
Type: pulumi.String("UserAssignedManagedIdentity"),
},
},
Type: pulumi.String("InheritFromDelegate"),
},
DelegateSelectors: pulumi.StringArray{
pulumi.String("harness-delegate"),
},
Description: pulumi.String("example"),
Identifier: pulumi.String("identifier"),
Tags: pulumi.StringArray{
pulumi.String("foo:bar"),
},
})
if err != nil {
return err
}
_, err = platform.NewAzureCloudProviderConnector(ctx, "inheritFromDelegateSystemAssignedManagedIdentity", &platform.AzureCloudProviderConnectorArgs{
AzureEnvironmentType: pulumi.String("AZURE"),
Credentials: &platform.AzureCloudProviderConnectorCredentialsArgs{
AzureInheritFromDelegateDetails: &platform.AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsArgs{
Auth: &platform.AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsAuthArgs{
Type: pulumi.String("SystemAssignedManagedIdentity"),
},
},
Type: pulumi.String("InheritFromDelegate"),
},
DelegateSelectors: pulumi.StringArray{
pulumi.String("harness-delegate"),
},
Description: pulumi.String("example"),
Identifier: pulumi.String("identifier"),
Tags: pulumi.StringArray{
pulumi.String("foo:bar"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.platform.AzureCloudProviderConnector;
import com.pulumi.harness.platform.AzureCloudProviderConnectorArgs;
import com.pulumi.harness.platform.inputs.AzureCloudProviderConnectorCredentialsArgs;
import com.pulumi.harness.platform.inputs.AzureCloudProviderConnectorCredentialsAzureManualDetailsArgs;
import com.pulumi.harness.platform.inputs.AzureCloudProviderConnectorCredentialsAzureManualDetailsAuthArgs;
import com.pulumi.harness.platform.inputs.AzureCloudProviderConnectorCredentialsAzureManualDetailsAuthAzureClientSecretKeyArgs;
import com.pulumi.harness.platform.inputs.AzureCloudProviderConnectorCredentialsAzureManualDetailsAuthAzureClientKeyCertArgs;
import com.pulumi.harness.platform.inputs.AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsArgs;
import com.pulumi.harness.platform.inputs.AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsAuthArgs;
import com.pulumi.harness.platform.inputs.AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsAuthAzureMsiAuthUaArgs;
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 manualConfigSecret = new AzureCloudProviderConnector("manualConfigSecret", AzureCloudProviderConnectorArgs.builder()
.azureEnvironmentType("AZURE")
.credentials(AzureCloudProviderConnectorCredentialsArgs.builder()
.azureManualDetails(AzureCloudProviderConnectorCredentialsAzureManualDetailsArgs.builder()
.applicationId("application_id")
.auth(AzureCloudProviderConnectorCredentialsAzureManualDetailsAuthArgs.builder()
.azureClientSecretKey(AzureCloudProviderConnectorCredentialsAzureManualDetailsAuthAzureClientSecretKeyArgs.builder()
.secretRef(String.format("account.%s", harness_platform_secret_text.test().id()))
.build())
.type("Secret")
.build())
.tenantId("tenant_id")
.build())
.type("ManualConfig")
.build())
.delegateSelectors("harness-delegate")
.description("example")
.identifier("identifier")
.tags("foo:bar")
.build());
var manualConfigCertificate = new AzureCloudProviderConnector("manualConfigCertificate", AzureCloudProviderConnectorArgs.builder()
.azureEnvironmentType("AZURE")
.credentials(AzureCloudProviderConnectorCredentialsArgs.builder()
.azureManualDetails(AzureCloudProviderConnectorCredentialsAzureManualDetailsArgs.builder()
.applicationId("application_id")
.auth(AzureCloudProviderConnectorCredentialsAzureManualDetailsAuthArgs.builder()
.azureClientKeyCert(AzureCloudProviderConnectorCredentialsAzureManualDetailsAuthAzureClientKeyCertArgs.builder()
.certificateRef(String.format("account.%s", harness_platform_secret_text.test().id()))
.build())
.type("Certificate")
.build())
.tenantId("tenant_id")
.build())
.type("ManualConfig")
.build())
.delegateSelectors("harness-delegate")
.description("example")
.identifier("identifier")
.tags("foo:bar")
.build());
var inheritFromDelegateUserAssignedManagedIdentity = new AzureCloudProviderConnector("inheritFromDelegateUserAssignedManagedIdentity", AzureCloudProviderConnectorArgs.builder()
.azureEnvironmentType("AZURE")
.credentials(AzureCloudProviderConnectorCredentialsArgs.builder()
.azureInheritFromDelegateDetails(AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsArgs.builder()
.auth(AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsAuthArgs.builder()
.azureMsiAuthUa(AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsAuthAzureMsiAuthUaArgs.builder()
.clientId("client_id")
.build())
.type("UserAssignedManagedIdentity")
.build())
.build())
.type("InheritFromDelegate")
.build())
.delegateSelectors("harness-delegate")
.description("example")
.identifier("identifier")
.tags("foo:bar")
.build());
var inheritFromDelegateSystemAssignedManagedIdentity = new AzureCloudProviderConnector("inheritFromDelegateSystemAssignedManagedIdentity", AzureCloudProviderConnectorArgs.builder()
.azureEnvironmentType("AZURE")
.credentials(AzureCloudProviderConnectorCredentialsArgs.builder()
.azureInheritFromDelegateDetails(AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsArgs.builder()
.auth(AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsAuthArgs.builder()
.type("SystemAssignedManagedIdentity")
.build())
.build())
.type("InheritFromDelegate")
.build())
.delegateSelectors("harness-delegate")
.description("example")
.identifier("identifier")
.tags("foo:bar")
.build());
}
}
import pulumi
import lbrlabs_pulumi_harness as harness
manual_config_secret = harness.platform.AzureCloudProviderConnector("manualConfigSecret",
azure_environment_type="AZURE",
credentials=harness.platform.AzureCloudProviderConnectorCredentialsArgs(
azure_manual_details=harness.platform.AzureCloudProviderConnectorCredentialsAzureManualDetailsArgs(
application_id="application_id",
auth=harness.platform.AzureCloudProviderConnectorCredentialsAzureManualDetailsAuthArgs(
azure_client_secret_key=harness.platform.AzureCloudProviderConnectorCredentialsAzureManualDetailsAuthAzureClientSecretKeyArgs(
secret_ref=f"account.{harness_platform_secret_text['test']['id']}",
),
type="Secret",
),
tenant_id="tenant_id",
),
type="ManualConfig",
),
delegate_selectors=["harness-delegate"],
description="example",
identifier="identifier",
tags=["foo:bar"])
manual_config_certificate = harness.platform.AzureCloudProviderConnector("manualConfigCertificate",
azure_environment_type="AZURE",
credentials=harness.platform.AzureCloudProviderConnectorCredentialsArgs(
azure_manual_details=harness.platform.AzureCloudProviderConnectorCredentialsAzureManualDetailsArgs(
application_id="application_id",
auth=harness.platform.AzureCloudProviderConnectorCredentialsAzureManualDetailsAuthArgs(
azure_client_key_cert=harness.platform.AzureCloudProviderConnectorCredentialsAzureManualDetailsAuthAzureClientKeyCertArgs(
certificate_ref=f"account.{harness_platform_secret_text['test']['id']}",
),
type="Certificate",
),
tenant_id="tenant_id",
),
type="ManualConfig",
),
delegate_selectors=["harness-delegate"],
description="example",
identifier="identifier",
tags=["foo:bar"])
inherit_from_delegate_user_assigned_managed_identity = harness.platform.AzureCloudProviderConnector("inheritFromDelegateUserAssignedManagedIdentity",
azure_environment_type="AZURE",
credentials=harness.platform.AzureCloudProviderConnectorCredentialsArgs(
azure_inherit_from_delegate_details=harness.platform.AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsArgs(
auth=harness.platform.AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsAuthArgs(
azure_msi_auth_ua=harness.platform.AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsAuthAzureMsiAuthUaArgs(
client_id="client_id",
),
type="UserAssignedManagedIdentity",
),
),
type="InheritFromDelegate",
),
delegate_selectors=["harness-delegate"],
description="example",
identifier="identifier",
tags=["foo:bar"])
inherit_from_delegate_system_assigned_managed_identity = harness.platform.AzureCloudProviderConnector("inheritFromDelegateSystemAssignedManagedIdentity",
azure_environment_type="AZURE",
credentials=harness.platform.AzureCloudProviderConnectorCredentialsArgs(
azure_inherit_from_delegate_details=harness.platform.AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsArgs(
auth=harness.platform.AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsAuthArgs(
type="SystemAssignedManagedIdentity",
),
),
type="InheritFromDelegate",
),
delegate_selectors=["harness-delegate"],
description="example",
identifier="identifier",
tags=["foo:bar"])
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@lbrlabs/pulumi-harness";
const manualConfigSecret = new harness.platform.AzureCloudProviderConnector("manualConfigSecret", {
azureEnvironmentType: "AZURE",
credentials: {
azureManualDetails: {
applicationId: "application_id",
auth: {
azureClientSecretKey: {
secretRef: `account.${harness_platform_secret_text.test.id}`,
},
type: "Secret",
},
tenantId: "tenant_id",
},
type: "ManualConfig",
},
delegateSelectors: ["harness-delegate"],
description: "example",
identifier: "identifier",
tags: ["foo:bar"],
});
const manualConfigCertificate = new harness.platform.AzureCloudProviderConnector("manualConfigCertificate", {
azureEnvironmentType: "AZURE",
credentials: {
azureManualDetails: {
applicationId: "application_id",
auth: {
azureClientKeyCert: {
certificateRef: `account.${harness_platform_secret_text.test.id}`,
},
type: "Certificate",
},
tenantId: "tenant_id",
},
type: "ManualConfig",
},
delegateSelectors: ["harness-delegate"],
description: "example",
identifier: "identifier",
tags: ["foo:bar"],
});
const inheritFromDelegateUserAssignedManagedIdentity = new harness.platform.AzureCloudProviderConnector("inheritFromDelegateUserAssignedManagedIdentity", {
azureEnvironmentType: "AZURE",
credentials: {
azureInheritFromDelegateDetails: {
auth: {
azureMsiAuthUa: {
clientId: "client_id",
},
type: "UserAssignedManagedIdentity",
},
},
type: "InheritFromDelegate",
},
delegateSelectors: ["harness-delegate"],
description: "example",
identifier: "identifier",
tags: ["foo:bar"],
});
const inheritFromDelegateSystemAssignedManagedIdentity = new harness.platform.AzureCloudProviderConnector("inheritFromDelegateSystemAssignedManagedIdentity", {
azureEnvironmentType: "AZURE",
credentials: {
azureInheritFromDelegateDetails: {
auth: {
type: "SystemAssignedManagedIdentity",
},
},
type: "InheritFromDelegate",
},
delegateSelectors: ["harness-delegate"],
description: "example",
identifier: "identifier",
tags: ["foo:bar"],
});
resources:
manualConfigSecret:
type: harness:platform:AzureCloudProviderConnector
properties:
azureEnvironmentType: AZURE
credentials:
azureManualDetails:
applicationId: application_id
auth:
azureClientSecretKey:
secretRef: account.${harness_platform_secret_text.test.id}
type: Secret
tenantId: tenant_id
type: ManualConfig
delegateSelectors:
- harness-delegate
description: example
identifier: identifier
tags:
- foo:bar
manualConfigCertificate:
type: harness:platform:AzureCloudProviderConnector
properties:
azureEnvironmentType: AZURE
credentials:
azureManualDetails:
applicationId: application_id
auth:
azureClientKeyCert:
certificateRef: account.${harness_platform_secret_text.test.id}
type: Certificate
tenantId: tenant_id
type: ManualConfig
delegateSelectors:
- harness-delegate
description: example
identifier: identifier
tags:
- foo:bar
inheritFromDelegateUserAssignedManagedIdentity:
type: harness:platform:AzureCloudProviderConnector
properties:
azureEnvironmentType: AZURE
credentials:
azureInheritFromDelegateDetails:
auth:
azureMsiAuthUa:
clientId: client_id
type: UserAssignedManagedIdentity
type: InheritFromDelegate
delegateSelectors:
- harness-delegate
description: example
identifier: identifier
tags:
- foo:bar
inheritFromDelegateSystemAssignedManagedIdentity:
type: harness:platform:AzureCloudProviderConnector
properties:
azureEnvironmentType: AZURE
credentials:
azureInheritFromDelegateDetails:
auth:
type: SystemAssignedManagedIdentity
type: InheritFromDelegate
delegateSelectors:
- harness-delegate
description: example
identifier: identifier
tags:
- foo:bar
Create AzureCloudProviderConnector Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AzureCloudProviderConnector(name: string, args: AzureCloudProviderConnectorArgs, opts?: CustomResourceOptions);
@overload
def AzureCloudProviderConnector(resource_name: str,
args: AzureCloudProviderConnectorArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AzureCloudProviderConnector(resource_name: str,
opts: Optional[ResourceOptions] = None,
credentials: Optional[AzureCloudProviderConnectorCredentialsArgs] = None,
identifier: Optional[str] = None,
azure_environment_type: Optional[str] = None,
delegate_selectors: Optional[Sequence[str]] = None,
description: Optional[str] = None,
execute_on_delegate: Optional[bool] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
tags: Optional[Sequence[str]] = None)
func NewAzureCloudProviderConnector(ctx *Context, name string, args AzureCloudProviderConnectorArgs, opts ...ResourceOption) (*AzureCloudProviderConnector, error)
public AzureCloudProviderConnector(string name, AzureCloudProviderConnectorArgs args, CustomResourceOptions? opts = null)
public AzureCloudProviderConnector(String name, AzureCloudProviderConnectorArgs args)
public AzureCloudProviderConnector(String name, AzureCloudProviderConnectorArgs args, CustomResourceOptions options)
type: harness:platform:AzureCloudProviderConnector
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 AzureCloudProviderConnectorArgs
- 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 AzureCloudProviderConnectorArgs
- 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 AzureCloudProviderConnectorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AzureCloudProviderConnectorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AzureCloudProviderConnectorArgs
- 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 azureCloudProviderConnectorResource = new Harness.Platform.AzureCloudProviderConnector("azureCloudProviderConnectorResource", new()
{
Credentials = new Harness.Platform.Inputs.AzureCloudProviderConnectorCredentialsArgs
{
Type = "string",
AzureInheritFromDelegateDetails = new Harness.Platform.Inputs.AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsArgs
{
Auth = new Harness.Platform.Inputs.AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsAuthArgs
{
Type = "string",
AzureMsiAuthUa = new Harness.Platform.Inputs.AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsAuthAzureMsiAuthUaArgs
{
ClientId = "string",
},
},
},
AzureManualDetails = new Harness.Platform.Inputs.AzureCloudProviderConnectorCredentialsAzureManualDetailsArgs
{
ApplicationId = "string",
Auth = new Harness.Platform.Inputs.AzureCloudProviderConnectorCredentialsAzureManualDetailsAuthArgs
{
AzureClientKeyCert = new Harness.Platform.Inputs.AzureCloudProviderConnectorCredentialsAzureManualDetailsAuthAzureClientKeyCertArgs
{
CertificateRef = "string",
},
AzureClientSecretKey = new Harness.Platform.Inputs.AzureCloudProviderConnectorCredentialsAzureManualDetailsAuthAzureClientSecretKeyArgs
{
SecretRef = "string",
},
Type = "string",
},
TenantId = "string",
},
},
Identifier = "string",
AzureEnvironmentType = "string",
DelegateSelectors = new[]
{
"string",
},
Description = "string",
ExecuteOnDelegate = false,
Name = "string",
OrgId = "string",
ProjectId = "string",
Tags = new[]
{
"string",
},
});
example, err := platform.NewAzureCloudProviderConnector(ctx, "azureCloudProviderConnectorResource", &platform.AzureCloudProviderConnectorArgs{
Credentials: &platform.AzureCloudProviderConnectorCredentialsArgs{
Type: pulumi.String("string"),
AzureInheritFromDelegateDetails: &platform.AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsArgs{
Auth: &platform.AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsAuthArgs{
Type: pulumi.String("string"),
AzureMsiAuthUa: &platform.AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsAuthAzureMsiAuthUaArgs{
ClientId: pulumi.String("string"),
},
},
},
AzureManualDetails: &platform.AzureCloudProviderConnectorCredentialsAzureManualDetailsArgs{
ApplicationId: pulumi.String("string"),
Auth: &platform.AzureCloudProviderConnectorCredentialsAzureManualDetailsAuthArgs{
AzureClientKeyCert: &platform.AzureCloudProviderConnectorCredentialsAzureManualDetailsAuthAzureClientKeyCertArgs{
CertificateRef: pulumi.String("string"),
},
AzureClientSecretKey: &platform.AzureCloudProviderConnectorCredentialsAzureManualDetailsAuthAzureClientSecretKeyArgs{
SecretRef: pulumi.String("string"),
},
Type: pulumi.String("string"),
},
TenantId: pulumi.String("string"),
},
},
Identifier: pulumi.String("string"),
AzureEnvironmentType: pulumi.String("string"),
DelegateSelectors: pulumi.StringArray{
pulumi.String("string"),
},
Description: pulumi.String("string"),
ExecuteOnDelegate: pulumi.Bool(false),
Name: pulumi.String("string"),
OrgId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
})
var azureCloudProviderConnectorResource = new AzureCloudProviderConnector("azureCloudProviderConnectorResource", AzureCloudProviderConnectorArgs.builder()
.credentials(AzureCloudProviderConnectorCredentialsArgs.builder()
.type("string")
.azureInheritFromDelegateDetails(AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsArgs.builder()
.auth(AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsAuthArgs.builder()
.type("string")
.azureMsiAuthUa(AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsAuthAzureMsiAuthUaArgs.builder()
.clientId("string")
.build())
.build())
.build())
.azureManualDetails(AzureCloudProviderConnectorCredentialsAzureManualDetailsArgs.builder()
.applicationId("string")
.auth(AzureCloudProviderConnectorCredentialsAzureManualDetailsAuthArgs.builder()
.azureClientKeyCert(AzureCloudProviderConnectorCredentialsAzureManualDetailsAuthAzureClientKeyCertArgs.builder()
.certificateRef("string")
.build())
.azureClientSecretKey(AzureCloudProviderConnectorCredentialsAzureManualDetailsAuthAzureClientSecretKeyArgs.builder()
.secretRef("string")
.build())
.type("string")
.build())
.tenantId("string")
.build())
.build())
.identifier("string")
.azureEnvironmentType("string")
.delegateSelectors("string")
.description("string")
.executeOnDelegate(false)
.name("string")
.orgId("string")
.projectId("string")
.tags("string")
.build());
azure_cloud_provider_connector_resource = harness.platform.AzureCloudProviderConnector("azureCloudProviderConnectorResource",
credentials=harness.platform.AzureCloudProviderConnectorCredentialsArgs(
type="string",
azure_inherit_from_delegate_details=harness.platform.AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsArgs(
auth=harness.platform.AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsAuthArgs(
type="string",
azure_msi_auth_ua=harness.platform.AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsAuthAzureMsiAuthUaArgs(
client_id="string",
),
),
),
azure_manual_details=harness.platform.AzureCloudProviderConnectorCredentialsAzureManualDetailsArgs(
application_id="string",
auth=harness.platform.AzureCloudProviderConnectorCredentialsAzureManualDetailsAuthArgs(
azure_client_key_cert=harness.platform.AzureCloudProviderConnectorCredentialsAzureManualDetailsAuthAzureClientKeyCertArgs(
certificate_ref="string",
),
azure_client_secret_key=harness.platform.AzureCloudProviderConnectorCredentialsAzureManualDetailsAuthAzureClientSecretKeyArgs(
secret_ref="string",
),
type="string",
),
tenant_id="string",
),
),
identifier="string",
azure_environment_type="string",
delegate_selectors=["string"],
description="string",
execute_on_delegate=False,
name="string",
org_id="string",
project_id="string",
tags=["string"])
const azureCloudProviderConnectorResource = new harness.platform.AzureCloudProviderConnector("azureCloudProviderConnectorResource", {
credentials: {
type: "string",
azureInheritFromDelegateDetails: {
auth: {
type: "string",
azureMsiAuthUa: {
clientId: "string",
},
},
},
azureManualDetails: {
applicationId: "string",
auth: {
azureClientKeyCert: {
certificateRef: "string",
},
azureClientSecretKey: {
secretRef: "string",
},
type: "string",
},
tenantId: "string",
},
},
identifier: "string",
azureEnvironmentType: "string",
delegateSelectors: ["string"],
description: "string",
executeOnDelegate: false,
name: "string",
orgId: "string",
projectId: "string",
tags: ["string"],
});
type: harness:platform:AzureCloudProviderConnector
properties:
azureEnvironmentType: string
credentials:
azureInheritFromDelegateDetails:
auth:
azureMsiAuthUa:
clientId: string
type: string
azureManualDetails:
applicationId: string
auth:
azureClientKeyCert:
certificateRef: string
azureClientSecretKey:
secretRef: string
type: string
tenantId: string
type: string
delegateSelectors:
- string
description: string
executeOnDelegate: false
identifier: string
name: string
orgId: string
projectId: string
tags:
- string
AzureCloudProviderConnector Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The AzureCloudProviderConnector resource accepts the following input properties:
- Credentials
Lbrlabs.
Pulumi Package. Harness. Platform. Inputs. Azure Cloud Provider Connector Credentials - Contains Azure connector credentials.
- Identifier string
- Unique identifier of the resource.
- Azure
Environment stringType - Specifies the Azure Environment type, which is AZURE by default. Can either be AZURE or AZUREUSGOVERNMENT
- Delegate
Selectors List<string> - Tags to filter delegates for connection.
- Description string
- Description of the resource.
- Execute
On boolDelegate - Execute on delegate or not.
- 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.
- Credentials
Azure
Cloud Provider Connector Credentials Args - Contains Azure connector credentials.
- Identifier string
- Unique identifier of the resource.
- Azure
Environment stringType - Specifies the Azure Environment type, which is AZURE by default. Can either be AZURE or AZUREUSGOVERNMENT
- Delegate
Selectors []string - Tags to filter delegates for connection.
- Description string
- Description of the resource.
- Execute
On boolDelegate - Execute on delegate or not.
- 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.
- credentials
Azure
Cloud Provider Connector Credentials - Contains Azure connector credentials.
- identifier String
- Unique identifier of the resource.
- azure
Environment StringType - Specifies the Azure Environment type, which is AZURE by default. Can either be AZURE or AZUREUSGOVERNMENT
- delegate
Selectors List<String> - Tags to filter delegates for connection.
- description String
- Description of the resource.
- execute
On BooleanDelegate - Execute on delegate or not.
- 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.
- credentials
Azure
Cloud Provider Connector Credentials - Contains Azure connector credentials.
- identifier string
- Unique identifier of the resource.
- azure
Environment stringType - Specifies the Azure Environment type, which is AZURE by default. Can either be AZURE or AZUREUSGOVERNMENT
- delegate
Selectors string[] - Tags to filter delegates for connection.
- description string
- Description of the resource.
- execute
On booleanDelegate - Execute on delegate or not.
- 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.
- credentials
Azure
Cloud Provider Connector Credentials Args - Contains Azure connector credentials.
- identifier str
- Unique identifier of the resource.
- azure_
environment_ strtype - Specifies the Azure Environment type, which is AZURE by default. Can either be AZURE or AZUREUSGOVERNMENT
- delegate_
selectors Sequence[str] - Tags to filter delegates for connection.
- description str
- Description of the resource.
- execute_
on_ booldelegate - Execute on delegate or not.
- 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.
- credentials Property Map
- Contains Azure connector credentials.
- identifier String
- Unique identifier of the resource.
- azure
Environment StringType - Specifies the Azure Environment type, which is AZURE by default. Can either be AZURE or AZUREUSGOVERNMENT
- delegate
Selectors List<String> - Tags to filter delegates for connection.
- description String
- Description of the resource.
- execute
On BooleanDelegate - Execute on delegate or not.
- 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 AzureCloudProviderConnector 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 AzureCloudProviderConnector Resource
Get an existing AzureCloudProviderConnector 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?: AzureCloudProviderConnectorState, opts?: CustomResourceOptions): AzureCloudProviderConnector
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
azure_environment_type: Optional[str] = None,
credentials: Optional[AzureCloudProviderConnectorCredentialsArgs] = None,
delegate_selectors: Optional[Sequence[str]] = None,
description: Optional[str] = None,
execute_on_delegate: Optional[bool] = None,
identifier: Optional[str] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
tags: Optional[Sequence[str]] = None) -> AzureCloudProviderConnector
func GetAzureCloudProviderConnector(ctx *Context, name string, id IDInput, state *AzureCloudProviderConnectorState, opts ...ResourceOption) (*AzureCloudProviderConnector, error)
public static AzureCloudProviderConnector Get(string name, Input<string> id, AzureCloudProviderConnectorState? state, CustomResourceOptions? opts = null)
public static AzureCloudProviderConnector get(String name, Output<String> id, AzureCloudProviderConnectorState 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.
- Azure
Environment stringType - Specifies the Azure Environment type, which is AZURE by default. Can either be AZURE or AZUREUSGOVERNMENT
- Credentials
Lbrlabs.
Pulumi Package. Harness. Platform. Inputs. Azure Cloud Provider Connector Credentials - Contains Azure connector credentials.
- Delegate
Selectors List<string> - Tags to filter delegates for connection.
- Description string
- Description of the resource.
- Execute
On boolDelegate - Execute on delegate or not.
- Identifier string
- Unique identifier 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.
- Azure
Environment stringType - Specifies the Azure Environment type, which is AZURE by default. Can either be AZURE or AZUREUSGOVERNMENT
- Credentials
Azure
Cloud Provider Connector Credentials Args - Contains Azure connector credentials.
- Delegate
Selectors []string - Tags to filter delegates for connection.
- Description string
- Description of the resource.
- Execute
On boolDelegate - Execute on delegate or not.
- Identifier string
- Unique identifier 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.
- azure
Environment StringType - Specifies the Azure Environment type, which is AZURE by default. Can either be AZURE or AZUREUSGOVERNMENT
- credentials
Azure
Cloud Provider Connector Credentials - Contains Azure connector credentials.
- delegate
Selectors List<String> - Tags to filter delegates for connection.
- description String
- Description of the resource.
- execute
On BooleanDelegate - Execute on delegate or not.
- identifier String
- Unique identifier 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.
- azure
Environment stringType - Specifies the Azure Environment type, which is AZURE by default. Can either be AZURE or AZUREUSGOVERNMENT
- credentials
Azure
Cloud Provider Connector Credentials - Contains Azure connector credentials.
- delegate
Selectors string[] - Tags to filter delegates for connection.
- description string
- Description of the resource.
- execute
On booleanDelegate - Execute on delegate or not.
- identifier string
- Unique identifier 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.
- azure_
environment_ strtype - Specifies the Azure Environment type, which is AZURE by default. Can either be AZURE or AZUREUSGOVERNMENT
- credentials
Azure
Cloud Provider Connector Credentials Args - Contains Azure connector credentials.
- delegate_
selectors Sequence[str] - Tags to filter delegates for connection.
- description str
- Description of the resource.
- execute_
on_ booldelegate - Execute on delegate or not.
- identifier str
- Unique identifier 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.
- azure
Environment StringType - Specifies the Azure Environment type, which is AZURE by default. Can either be AZURE or AZUREUSGOVERNMENT
- credentials Property Map
- Contains Azure connector credentials.
- delegate
Selectors List<String> - Tags to filter delegates for connection.
- description String
- Description of the resource.
- execute
On BooleanDelegate - Execute on delegate or not.
- identifier String
- Unique identifier 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.
Supporting Types
AzureCloudProviderConnectorCredentials, AzureCloudProviderConnectorCredentialsArgs
- Type string
- Type can either be InheritFromDelegate or ManualConfig.
- Azure
Inherit Lbrlabs.From Delegate Details Pulumi Package. Harness. Platform. Inputs. Azure Cloud Provider Connector Credentials Azure Inherit From Delegate Details - Authenticate to Azure Cloud Provider using details inheriting from delegate.
- Azure
Manual Lbrlabs.Details Pulumi Package. Harness. Platform. Inputs. Azure Cloud Provider Connector Credentials Azure Manual Details - Authenticate to Azure Cloud Provider using manual details.
- Type string
- Type can either be InheritFromDelegate or ManualConfig.
- Azure
Inherit AzureFrom Delegate Details Cloud Provider Connector Credentials Azure Inherit From Delegate Details - Authenticate to Azure Cloud Provider using details inheriting from delegate.
- Azure
Manual AzureDetails Cloud Provider Connector Credentials Azure Manual Details - Authenticate to Azure Cloud Provider using manual details.
- type String
- Type can either be InheritFromDelegate or ManualConfig.
- azure
Inherit AzureFrom Delegate Details Cloud Provider Connector Credentials Azure Inherit From Delegate Details - Authenticate to Azure Cloud Provider using details inheriting from delegate.
- azure
Manual AzureDetails Cloud Provider Connector Credentials Azure Manual Details - Authenticate to Azure Cloud Provider using manual details.
- type string
- Type can either be InheritFromDelegate or ManualConfig.
- azure
Inherit AzureFrom Delegate Details Cloud Provider Connector Credentials Azure Inherit From Delegate Details - Authenticate to Azure Cloud Provider using details inheriting from delegate.
- azure
Manual AzureDetails Cloud Provider Connector Credentials Azure Manual Details - Authenticate to Azure Cloud Provider using manual details.
- type str
- Type can either be InheritFromDelegate or ManualConfig.
- azure_
inherit_ Azurefrom_ delegate_ details Cloud Provider Connector Credentials Azure Inherit From Delegate Details - Authenticate to Azure Cloud Provider using details inheriting from delegate.
- azure_
manual_ Azuredetails Cloud Provider Connector Credentials Azure Manual Details - Authenticate to Azure Cloud Provider using manual details.
- type String
- Type can either be InheritFromDelegate or ManualConfig.
- azure
Inherit Property MapFrom Delegate Details - Authenticate to Azure Cloud Provider using details inheriting from delegate.
- azure
Manual Property MapDetails - Authenticate to Azure Cloud Provider using manual details.
AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetails, AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsArgs
AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsAuth, AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsAuthArgs
- type String
- azure
Msi Property MapAuth Ua
AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsAuthAzureMsiAuthUa, AzureCloudProviderConnectorCredentialsAzureInheritFromDelegateDetailsAuthAzureMsiAuthUaArgs
- Client
Id string
- Client
Id string
- client
Id String
- client
Id string
- client_
id str
- client
Id String
AzureCloudProviderConnectorCredentialsAzureManualDetails, AzureCloudProviderConnectorCredentialsAzureManualDetailsArgs
- application
Id String - auth Property Map
- tenant
Id String
AzureCloudProviderConnectorCredentialsAzureManualDetailsAuth, AzureCloudProviderConnectorCredentialsAzureManualDetailsAuthArgs
- Azure
Client Lbrlabs.Key Cert Pulumi Package. Harness. Platform. Inputs. Azure Cloud Provider Connector Credentials Azure Manual Details Auth Azure Client Key Cert - Azure
Client Lbrlabs.Secret Key Pulumi Package. Harness. Platform. Inputs. Azure Cloud Provider Connector Credentials Azure Manual Details Auth Azure Client Secret Key - Type string
AzureCloudProviderConnectorCredentialsAzureManualDetailsAuthAzureClientKeyCert, AzureCloudProviderConnectorCredentialsAzureManualDetailsAuthAzureClientKeyCertArgs
- Certificate
Ref string
- Certificate
Ref string
- certificate
Ref String
- certificate
Ref string
- certificate_
ref str
- certificate
Ref String
AzureCloudProviderConnectorCredentialsAzureManualDetailsAuthAzureClientSecretKey, AzureCloudProviderConnectorCredentialsAzureManualDetailsAuthAzureClientSecretKeyArgs
- Secret
Ref string
- Secret
Ref string
- secret
Ref String
- secret
Ref string
- secret_
ref str
- secret
Ref String
Import
Import account level azure cloud provider connector
$ pulumi import harness:platform/azureCloudProviderConnector:AzureCloudProviderConnector example <connector_id>
Import org level azure cloud provider connector
$ pulumi import harness:platform/azureCloudProviderConnector:AzureCloudProviderConnector example <ord_id>/<connector_id>
Import project level azure cloud provider connector
$ pulumi import harness:platform/azureCloudProviderConnector:AzureCloudProviderConnector example <org_id>/<project_id>/<connector_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- harness lbrlabs/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harness
Terraform Provider.