CloudConnectionArgs

data class CloudConnectionArgs(val cloudConnectionName: Output<String>? = null, val cloudConnector: Output<ResourceReferenceArgs>? = null, val location: Output<String>? = null, val remoteResourceId: Output<String>? = null, val resourceGroupName: Output<String>? = null, val sharedKey: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val virtualHub: Output<ResourceReferenceArgs>? = null) : ConvertibleToJava<CloudConnectionArgs>

Resource which represents the managed network connection between Azure Gateways and remote cloud gateways. Uses Azure REST API version 2023-01-01-preview. In version 1.x of the Azure Native provider, it used API version 2023-01-01-preview.

Example Usage

Create a Cloud Connection

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var cloudConnection = new AzureNative.HybridCloud.CloudConnection("cloudConnection", new()
{
CloudConnectionName = "cloudconnection1",
CloudConnector = new AzureNative.HybridCloud.Inputs.ResourceReferenceArgs
{
Id = "/subscriptions/subid/resourceGroups/demo-rg/providers/Microsoft.HybridCloud/cloudConnectors/123456789012",
},
Location = "West US",
RemoteResourceId = "arn:aws:ec2:us-east-1:123456789012:VPNGateway/vgw-043da592550819c8a",
ResourceGroupName = "demo-rg",
SharedKey = "password123",
VirtualHub = new AzureNative.HybridCloud.Inputs.ResourceReferenceArgs
{
Id = "/subscriptions/subid/resourceGroups/demo-rg/providers/Microsoft.Network/VirtualHubs/testHub",
},
});
});
package main
import (
hybridcloud "github.com/pulumi/pulumi-azure-native-sdk/hybridcloud/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := hybridcloud.NewCloudConnection(ctx, "cloudConnection", &hybridcloud.CloudConnectionArgs{
CloudConnectionName: pulumi.String("cloudconnection1"),
CloudConnector: &hybridcloud.ResourceReferenceArgs{
Id: pulumi.String("/subscriptions/subid/resourceGroups/demo-rg/providers/Microsoft.HybridCloud/cloudConnectors/123456789012"),
},
Location: pulumi.String("West US"),
RemoteResourceId: pulumi.String("arn:aws:ec2:us-east-1:123456789012:VPNGateway/vgw-043da592550819c8a"),
ResourceGroupName: pulumi.String("demo-rg"),
SharedKey: pulumi.String("password123"),
VirtualHub: &hybridcloud.ResourceReferenceArgs{
Id: pulumi.String("/subscriptions/subid/resourceGroups/demo-rg/providers/Microsoft.Network/VirtualHubs/testHub"),
},
})
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.azurenative.hybridcloud.CloudConnection;
import com.pulumi.azurenative.hybridcloud.CloudConnectionArgs;
import com.pulumi.azurenative.hybridcloud.inputs.ResourceReferenceArgs;
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 cloudConnection = new CloudConnection("cloudConnection", CloudConnectionArgs.builder()
.cloudConnectionName("cloudconnection1")
.cloudConnector(ResourceReferenceArgs.builder()
.id("/subscriptions/subid/resourceGroups/demo-rg/providers/Microsoft.HybridCloud/cloudConnectors/123456789012")
.build())
.location("West US")
.remoteResourceId("arn:aws:ec2:us-east-1:123456789012:VPNGateway/vgw-043da592550819c8a")
.resourceGroupName("demo-rg")
.sharedKey("password123")
.virtualHub(ResourceReferenceArgs.builder()
.id("/subscriptions/subid/resourceGroups/demo-rg/providers/Microsoft.Network/VirtualHubs/testHub")
.build())
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:hybridcloud:CloudConnection cloudconnection1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCloud/cloudConnections/{cloudConnectionName}

Constructors

Link copied to clipboard
constructor(cloudConnectionName: Output<String>? = null, cloudConnector: Output<ResourceReferenceArgs>? = null, location: Output<String>? = null, remoteResourceId: Output<String>? = null, resourceGroupName: Output<String>? = null, sharedKey: Output<String>? = null, tags: Output<Map<String, String>>? = null, virtualHub: Output<ResourceReferenceArgs>? = null)

Properties

Link copied to clipboard
val cloudConnectionName: Output<String>? = null

The name of the cloud connection resource

Link copied to clipboard

The cloud connector which discovered the remote resource.

Link copied to clipboard
val location: Output<String>? = null

The geo-location where the resource lives

Link copied to clipboard
val remoteResourceId: Output<String>? = null

Identifier for the remote cloud resource

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val sharedKey: Output<String>? = null

Shared key of the cloud connection.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Link copied to clipboard
val virtualHub: Output<ResourceReferenceArgs>? = null

The virtualHub to which the cloud connection belongs.

Functions

Link copied to clipboard
open override fun toJava(): CloudConnectionArgs