azure-native-v2.hybridcloud.CloudConnection
Explore with Pulumi AI
Resource which represents the managed network connection between Azure Gateways and remote cloud gateways. Azure REST API version: 2023-01-01-preview. Prior API version in Azure Native 1.x: 2023-01-01-preview.
Create CloudConnection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CloudConnection(name: string, args: CloudConnectionArgs, opts?: CustomResourceOptions);
@overload
def CloudConnection(resource_name: str,
args: CloudConnectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CloudConnection(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
cloud_connection_name: Optional[str] = None,
cloud_connector: Optional[ResourceReferenceArgs] = None,
location: Optional[str] = None,
remote_resource_id: Optional[str] = None,
shared_key: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
virtual_hub: Optional[ResourceReferenceArgs] = None)
func NewCloudConnection(ctx *Context, name string, args CloudConnectionArgs, opts ...ResourceOption) (*CloudConnection, error)
public CloudConnection(string name, CloudConnectionArgs args, CustomResourceOptions? opts = null)
public CloudConnection(String name, CloudConnectionArgs args)
public CloudConnection(String name, CloudConnectionArgs args, CustomResourceOptions options)
type: azure-native:hybridcloud:CloudConnection
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. CloudConnectionArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. CloudConnectionArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. CloudConnectionArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. CloudConnectionArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. CloudConnectionArgs - 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 cloudConnectionResource = new AzureNative.Hybridcloud.CloudConnection("cloudConnectionResource", new()
{
ResourceGroupName = "string",
CloudConnectionName = "string",
CloudConnector =
{
{ "id", "string" },
},
Location = "string",
RemoteResourceId = "string",
SharedKey = "string",
Tags =
{
{ "string", "string" },
},
VirtualHub =
{
{ "id", "string" },
},
});
example, err := hybridcloud.NewCloudConnection(ctx, "cloudConnectionResource", &hybridcloud.CloudConnectionArgs{
ResourceGroupName: "string",
CloudConnectionName: "string",
CloudConnector: map[string]interface{}{
"id": "string",
},
Location: "string",
RemoteResourceId: "string",
SharedKey: "string",
Tags: map[string]interface{}{
"string": "string",
},
VirtualHub: map[string]interface{}{
"id": "string",
},
})
var cloudConnectionResource = new CloudConnection("cloudConnectionResource", CloudConnectionArgs.builder()
.resourceGroupName("string")
.cloudConnectionName("string")
.cloudConnector(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.location("string")
.remoteResourceId("string")
.sharedKey("string")
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.virtualHub(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
cloud_connection_resource = azure_native.hybridcloud.CloudConnection("cloudConnectionResource",
resource_group_name=string,
cloud_connection_name=string,
cloud_connector={
id: string,
},
location=string,
remote_resource_id=string,
shared_key=string,
tags={
string: string,
},
virtual_hub={
id: string,
})
const cloudConnectionResource = new azure_native.hybridcloud.CloudConnection("cloudConnectionResource", {
resourceGroupName: "string",
cloudConnectionName: "string",
cloudConnector: {
id: "string",
},
location: "string",
remoteResourceId: "string",
sharedKey: "string",
tags: {
string: "string",
},
virtualHub: {
id: "string",
},
});
type: azure-native:hybridcloud:CloudConnection
properties:
cloudConnectionName: string
cloudConnector:
id: string
location: string
remoteResourceId: string
resourceGroupName: string
sharedKey: string
tags:
string: string
virtualHub:
id: string
CloudConnection 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 CloudConnection resource accepts the following input properties:
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- Cloud
Connection Name Changes to this property will trigger replacement.
- The name of the cloud connection resource
- Cloud
Connector Changes to this property will trigger replacement.
Azure Native. Hybrid Cloud. Inputs. Resource Reference - The cloud connector which discovered the remote resource.
- Location
Changes to this property will trigger replacement.
- The geo-location where the resource lives
- Remote
Resource Id Changes to this property will trigger replacement.
- Identifier for the remote cloud resource
- string
- Shared key of the cloud connection.
- Dictionary<string, string>
- Resource tags.
- Virtual
Hub Changes to this property will trigger replacement.
Azure Native. Hybrid Cloud. Inputs. Resource Reference - The virtualHub to which the cloud connection belongs.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- Cloud
Connection Name Changes to this property will trigger replacement.
- The name of the cloud connection resource
- Cloud
Connector Changes to this property will trigger replacement.
Reference Args - The cloud connector which discovered the remote resource.
- Location
Changes to this property will trigger replacement.
- The geo-location where the resource lives
- Remote
Resource Id Changes to this property will trigger replacement.
- Identifier for the remote cloud resource
- string
- Shared key of the cloud connection.
- map[string]string
- Resource tags.
- Virtual
Hub Changes to this property will trigger replacement.
Reference Args - The virtualHub to which the cloud connection belongs.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- cloud
Connection Name Changes to this property will trigger replacement.
- The name of the cloud connection resource
- cloud
Connector Changes to this property will trigger replacement.
Reference - The cloud connector which discovered the remote resource.
- location
Changes to this property will trigger replacement.
- The geo-location where the resource lives
- remote
Resource Id Changes to this property will trigger replacement.
- Identifier for the remote cloud resource
- String
- Shared key of the cloud connection.
- Map<String,String>
- Resource tags.
- virtual
Hub Changes to this property will trigger replacement.
Reference - The virtualHub to which the cloud connection belongs.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- cloud
Connection Name Changes to this property will trigger replacement.
- The name of the cloud connection resource
- cloud
Connector Changes to this property will trigger replacement.
Reference - The cloud connector which discovered the remote resource.
- location
Changes to this property will trigger replacement.
- The geo-location where the resource lives
- remote
Resource Id Changes to this property will trigger replacement.
- Identifier for the remote cloud resource
- string
- Shared key of the cloud connection.
- {[key: string]: string}
- Resource tags.
- virtual
Hub Changes to this property will trigger replacement.
Reference - The virtualHub to which the cloud connection belongs.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- cloud_
connection_ name Changes to this property will trigger replacement.
- The name of the cloud connection resource
- cloud_
connector Changes to this property will trigger replacement.
Reference Args - The cloud connector which discovered the remote resource.
- location
Changes to this property will trigger replacement.
- The geo-location where the resource lives
- remote_
resource_ id Changes to this property will trigger replacement.
- Identifier for the remote cloud resource
- str
- Shared key of the cloud connection.
- Mapping[str, str]
- Resource tags.
- virtual_
hub Changes to this property will trigger replacement.
Reference Args - The virtualHub to which the cloud connection belongs.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- cloud
Connection Name Changes to this property will trigger replacement.
- The name of the cloud connection resource
- cloud
Connector Changes to this property will trigger replacement.
- The cloud connector which discovered the remote resource.
- location
Changes to this property will trigger replacement.
- The geo-location where the resource lives
- remote
Resource Id Changes to this property will trigger replacement.
- Identifier for the remote cloud resource
- String
- Shared key of the cloud connection.
- Map<String>
- Resource tags.
- virtual
Hub Changes to this property will trigger replacement.
- The virtualHub to which the cloud connection belongs.
Outputs
All input properties are implicitly available as output properties. Additionally, the CloudConnection resource produces the following output properties:
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - The provisioning state of the cloud collection resource.
- System
Data Pulumi.Azure Native. Hybrid Cloud. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - The provisioning state of the cloud collection resource.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- etag String
- A unique read-only string that changes whenever the resource is updated.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - The provisioning state of the cloud collection resource.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- etag string
- A unique read-only string that changes whenever the resource is updated.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- provisioning
State string - The provisioning state of the cloud collection resource.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- etag str
- A unique read-only string that changes whenever the resource is updated.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- provisioning_
state str - The provisioning state of the cloud collection resource.
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- etag String
- A unique read-only string that changes whenever the resource is updated.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - The provisioning state of the cloud collection resource.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
ResourceReference, ResourceReferenceArgs
- Id string
- Resource ID.
- Id string
- Resource ID.
- id String
- Resource ID.
- id string
- Resource ID.
- id str
- Resource ID.
- id String
- Resource ID.
ResourceReferenceResponse, ResourceReferenceResponseArgs
- Id string
- Resource ID.
- Id string
- Resource ID.
- id String
- Resource ID.
- id string
- Resource ID.
- id str
- Resource ID.
- id String
- Resource ID.
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
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}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v2 pulumi/pulumi-azure-native
- License
- Apache-2.0