azure-native.hybridconnectivity.PublicCloudConnector
Explore with Pulumi AI
Public Cloud Connector Azure REST API version: 2024-12-01.
Example Usage
PublicCloudConnectors_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var publicCloudConnector = new AzureNative.HybridConnectivity.PublicCloudConnector("publicCloudConnector", new()
{
Location = "jpiglusfxynfcewcjwvvnn",
Properties = new AzureNative.HybridConnectivity.Inputs.PublicCloudConnectorPropertiesArgs
{
AwsCloudProfile = new AzureNative.HybridConnectivity.Inputs.AwsCloudProfileArgs
{
AccountId = "snbnuxckevyqpm",
ExcludedAccounts = new[]
{
"rwgqpukglvbqmogqcliqolucp",
},
IsOrganizationalAccount = true,
},
HostType = AzureNative.HybridConnectivity.HostType.AWS,
},
PublicCloudConnector = "advjwoakdusalamomg",
ResourceGroupName = "rgpublicCloud",
Tags = null,
});
});
package main
import (
hybridconnectivity "github.com/pulumi/pulumi-azure-native-sdk/hybridconnectivity/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := hybridconnectivity.NewPublicCloudConnector(ctx, "publicCloudConnector", &hybridconnectivity.PublicCloudConnectorArgs{
Location: pulumi.String("jpiglusfxynfcewcjwvvnn"),
Properties: &hybridconnectivity.PublicCloudConnectorPropertiesArgs{
AwsCloudProfile: &hybridconnectivity.AwsCloudProfileArgs{
AccountId: pulumi.String("snbnuxckevyqpm"),
ExcludedAccounts: pulumi.StringArray{
pulumi.String("rwgqpukglvbqmogqcliqolucp"),
},
IsOrganizationalAccount: pulumi.Bool(true),
},
HostType: pulumi.String(hybridconnectivity.HostTypeAWS),
},
PublicCloudConnector: pulumi.String("advjwoakdusalamomg"),
ResourceGroupName: pulumi.String("rgpublicCloud"),
Tags: nil,
})
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.hybridconnectivity.PublicCloudConnector;
import com.pulumi.azurenative.hybridconnectivity.PublicCloudConnectorArgs;
import com.pulumi.azurenative.hybridconnectivity.inputs.PublicCloudConnectorPropertiesArgs;
import com.pulumi.azurenative.hybridconnectivity.inputs.AwsCloudProfileArgs;
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 publicCloudConnector = new PublicCloudConnector("publicCloudConnector", PublicCloudConnectorArgs.builder()
.location("jpiglusfxynfcewcjwvvnn")
.properties(PublicCloudConnectorPropertiesArgs.builder()
.awsCloudProfile(AwsCloudProfileArgs.builder()
.accountId("snbnuxckevyqpm")
.excludedAccounts("rwgqpukglvbqmogqcliqolucp")
.isOrganizationalAccount(true)
.build())
.hostType("AWS")
.build())
.publicCloudConnector("advjwoakdusalamomg")
.resourceGroupName("rgpublicCloud")
.tags()
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
public_cloud_connector = azure_native.hybridconnectivity.PublicCloudConnector("publicCloudConnector",
location="jpiglusfxynfcewcjwvvnn",
properties={
"aws_cloud_profile": {
"account_id": "snbnuxckevyqpm",
"excluded_accounts": ["rwgqpukglvbqmogqcliqolucp"],
"is_organizational_account": True,
},
"host_type": azure_native.hybridconnectivity.HostType.AWS,
},
public_cloud_connector="advjwoakdusalamomg",
resource_group_name="rgpublicCloud",
tags={})
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const publicCloudConnector = new azure_native.hybridconnectivity.PublicCloudConnector("publicCloudConnector", {
location: "jpiglusfxynfcewcjwvvnn",
properties: {
awsCloudProfile: {
accountId: "snbnuxckevyqpm",
excludedAccounts: ["rwgqpukglvbqmogqcliqolucp"],
isOrganizationalAccount: true,
},
hostType: azure_native.hybridconnectivity.HostType.AWS,
},
publicCloudConnector: "advjwoakdusalamomg",
resourceGroupName: "rgpublicCloud",
tags: {},
});
resources:
publicCloudConnector:
type: azure-native:hybridconnectivity:PublicCloudConnector
properties:
location: jpiglusfxynfcewcjwvvnn
properties:
awsCloudProfile:
accountId: snbnuxckevyqpm
excludedAccounts:
- rwgqpukglvbqmogqcliqolucp
isOrganizationalAccount: true
hostType: AWS
publicCloudConnector: advjwoakdusalamomg
resourceGroupName: rgpublicCloud
tags: {}
Create PublicCloudConnector Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PublicCloudConnector(name: string, args: PublicCloudConnectorArgs, opts?: CustomResourceOptions);
@overload
def PublicCloudConnector(resource_name: str,
args: PublicCloudConnectorArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PublicCloudConnector(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
location: Optional[str] = None,
properties: Optional[PublicCloudConnectorPropertiesArgs] = None,
public_cloud_connector: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewPublicCloudConnector(ctx *Context, name string, args PublicCloudConnectorArgs, opts ...ResourceOption) (*PublicCloudConnector, error)
public PublicCloudConnector(string name, PublicCloudConnectorArgs args, CustomResourceOptions? opts = null)
public PublicCloudConnector(String name, PublicCloudConnectorArgs args)
public PublicCloudConnector(String name, PublicCloudConnectorArgs args, CustomResourceOptions options)
type: azure-native:hybridconnectivity:PublicCloudConnector
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 PublicCloudConnectorArgs
- 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 PublicCloudConnectorArgs
- 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 PublicCloudConnectorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PublicCloudConnectorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PublicCloudConnectorArgs
- 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 publicCloudConnectorResource = new AzureNative.HybridConnectivity.PublicCloudConnector("publicCloudConnectorResource", new()
{
ResourceGroupName = "string",
Location = "string",
Properties = new AzureNative.HybridConnectivity.Inputs.PublicCloudConnectorPropertiesArgs
{
AwsCloudProfile = new AzureNative.HybridConnectivity.Inputs.AwsCloudProfileArgs
{
AccountId = "string",
ExcludedAccounts = new[]
{
"string",
},
IsOrganizationalAccount = false,
},
HostType = "string",
},
PublicCloudConnector = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := hybridconnectivity.NewPublicCloudConnector(ctx, "publicCloudConnectorResource", &hybridconnectivity.PublicCloudConnectorArgs{
ResourceGroupName: pulumi.String("string"),
Location: pulumi.String("string"),
Properties: &hybridconnectivity.PublicCloudConnectorPropertiesArgs{
AwsCloudProfile: &hybridconnectivity.AwsCloudProfileArgs{
AccountId: pulumi.String("string"),
ExcludedAccounts: pulumi.StringArray{
pulumi.String("string"),
},
IsOrganizationalAccount: pulumi.Bool(false),
},
HostType: pulumi.String("string"),
},
PublicCloudConnector: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var publicCloudConnectorResource = new PublicCloudConnector("publicCloudConnectorResource", PublicCloudConnectorArgs.builder()
.resourceGroupName("string")
.location("string")
.properties(PublicCloudConnectorPropertiesArgs.builder()
.awsCloudProfile(AwsCloudProfileArgs.builder()
.accountId("string")
.excludedAccounts("string")
.isOrganizationalAccount(false)
.build())
.hostType("string")
.build())
.publicCloudConnector("string")
.tags(Map.of("string", "string"))
.build());
public_cloud_connector_resource = azure_native.hybridconnectivity.PublicCloudConnector("publicCloudConnectorResource",
resource_group_name="string",
location="string",
properties={
"awsCloudProfile": {
"accountId": "string",
"excludedAccounts": ["string"],
"isOrganizationalAccount": False,
},
"hostType": "string",
},
public_cloud_connector="string",
tags={
"string": "string",
})
const publicCloudConnectorResource = new azure_native.hybridconnectivity.PublicCloudConnector("publicCloudConnectorResource", {
resourceGroupName: "string",
location: "string",
properties: {
awsCloudProfile: {
accountId: "string",
excludedAccounts: ["string"],
isOrganizationalAccount: false,
},
hostType: "string",
},
publicCloudConnector: "string",
tags: {
string: "string",
},
});
type: azure-native:hybridconnectivity:PublicCloudConnector
properties:
location: string
properties:
awsCloudProfile:
accountId: string
excludedAccounts:
- string
isOrganizationalAccount: false
hostType: string
publicCloudConnector: string
resourceGroupName: string
tags:
string: string
PublicCloudConnector 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 PublicCloudConnector resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Location string
- The geo-location where the resource lives
- Properties
Pulumi.
Azure Native. Hybrid Connectivity. Inputs. Public Cloud Connector Properties - The resource-specific properties for this resource.
- Public
Cloud stringConnector - Represent public cloud connectors resource.
- Dictionary<string, string>
- Resource tags.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Location string
- The geo-location where the resource lives
- Properties
Public
Cloud Connector Properties Args - The resource-specific properties for this resource.
- Public
Cloud stringConnector - Represent public cloud connectors resource.
- map[string]string
- Resource tags.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- location String
- The geo-location where the resource lives
- properties
Public
Cloud Connector Properties - The resource-specific properties for this resource.
- public
Cloud StringConnector - Represent public cloud connectors resource.
- Map<String,String>
- Resource tags.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- location string
- The geo-location where the resource lives
- properties
Public
Cloud Connector Properties - The resource-specific properties for this resource.
- public
Cloud stringConnector - Represent public cloud connectors resource.
- {[key: string]: string}
- Resource tags.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- location str
- The geo-location where the resource lives
- properties
Public
Cloud Connector Properties Args - The resource-specific properties for this resource.
- public_
cloud_ strconnector - Represent public cloud connectors resource.
- Mapping[str, str]
- Resource tags.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- location String
- The geo-location where the resource lives
- properties Property Map
- The resource-specific properties for this resource.
- public
Cloud StringConnector - Represent public cloud connectors resource.
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the PublicCloudConnector resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- System
Data Pulumi.Azure Native. Hybrid Connectivity. 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"
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the 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"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the 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"
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the 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"
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the 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"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the 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
AwsCloudProfile, AwsCloudProfileArgs
- Account
Id string - Account id for the AWS account.
- Excluded
Accounts List<string> - List of AWS accounts which need to be excluded.
- Is
Organizational boolAccount - Boolean value that indicates whether the account is organizational or not. True represents organization account, whereas false represents a single account.
- Account
Id string - Account id for the AWS account.
- Excluded
Accounts []string - List of AWS accounts which need to be excluded.
- Is
Organizational boolAccount - Boolean value that indicates whether the account is organizational or not. True represents organization account, whereas false represents a single account.
- account
Id String - Account id for the AWS account.
- excluded
Accounts List<String> - List of AWS accounts which need to be excluded.
- is
Organizational BooleanAccount - Boolean value that indicates whether the account is organizational or not. True represents organization account, whereas false represents a single account.
- account
Id string - Account id for the AWS account.
- excluded
Accounts string[] - List of AWS accounts which need to be excluded.
- is
Organizational booleanAccount - Boolean value that indicates whether the account is organizational or not. True represents organization account, whereas false represents a single account.
- account_
id str - Account id for the AWS account.
- excluded_
accounts Sequence[str] - List of AWS accounts which need to be excluded.
- is_
organizational_ boolaccount - Boolean value that indicates whether the account is organizational or not. True represents organization account, whereas false represents a single account.
- account
Id String - Account id for the AWS account.
- excluded
Accounts List<String> - List of AWS accounts which need to be excluded.
- is
Organizational BooleanAccount - Boolean value that indicates whether the account is organizational or not. True represents organization account, whereas false represents a single account.
AwsCloudProfileResponse, AwsCloudProfileResponseArgs
- Excluded
Accounts List<string> - List of AWS accounts which need to be excluded.
- Excluded
Accounts []string - List of AWS accounts which need to be excluded.
- excluded
Accounts List<String> - List of AWS accounts which need to be excluded.
- excluded
Accounts string[] - List of AWS accounts which need to be excluded.
- excluded_
accounts Sequence[str] - List of AWS accounts which need to be excluded.
- excluded
Accounts List<String> - List of AWS accounts which need to be excluded.
HostType, HostTypeArgs
- AWS
- AWSAWS state
- Host
Type AWS - AWSAWS state
- AWS
- AWSAWS state
- AWS
- AWSAWS state
- AWS
- AWSAWS state
- "AWS"
- AWSAWS state
PublicCloudConnectorProperties, PublicCloudConnectorPropertiesArgs
- Aws
Cloud Pulumi.Profile Azure Native. Hybrid Connectivity. Inputs. Aws Cloud Profile - Cloud profile for AWS.
- Host
Type string | Pulumi.Azure Native. Hybrid Connectivity. Host Type - Host cloud the public cloud connector.
- Aws
Cloud AwsProfile Cloud Profile - Cloud profile for AWS.
- Host
Type string | HostType - Host cloud the public cloud connector.
- aws
Cloud AwsProfile Cloud Profile - Cloud profile for AWS.
- host
Type String | HostType - Host cloud the public cloud connector.
- aws
Cloud AwsProfile Cloud Profile - Cloud profile for AWS.
- host
Type string | HostType - Host cloud the public cloud connector.
- aws_
cloud_ Awsprofile Cloud Profile - Cloud profile for AWS.
- host_
type str | HostType - Host cloud the public cloud connector.
- aws
Cloud Property MapProfile - Cloud profile for AWS.
- host
Type String | "AWS" - Host cloud the public cloud connector.
PublicCloudConnectorPropertiesResponse, PublicCloudConnectorPropertiesResponseArgs
- Aws
Cloud Pulumi.Profile Azure Native. Hybrid Connectivity. Inputs. Aws Cloud Profile Response - Cloud profile for AWS.
- Connector
Primary stringIdentifier - Connector primary identifier.
- Provisioning
State string - The resource provisioning state.
- Aws
Cloud AwsProfile Cloud Profile Response - Cloud profile for AWS.
- Connector
Primary stringIdentifier - Connector primary identifier.
- Provisioning
State string - The resource provisioning state.
- aws
Cloud AwsProfile Cloud Profile Response - Cloud profile for AWS.
- connector
Primary StringIdentifier - Connector primary identifier.
- provisioning
State String - The resource provisioning state.
- aws
Cloud AwsProfile Cloud Profile Response - Cloud profile for AWS.
- connector
Primary stringIdentifier - Connector primary identifier.
- provisioning
State string - The resource provisioning state.
- aws_
cloud_ Awsprofile Cloud Profile Response - Cloud profile for AWS.
- connector_
primary_ stridentifier - Connector primary identifier.
- provisioning_
state str - The resource provisioning state.
- aws
Cloud Property MapProfile - Cloud profile for AWS.
- connector
Primary StringIdentifier - Connector primary identifier.
- provisioning
State String - The resource provisioning state.
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:hybridconnectivity:PublicCloudConnector esixipkbydb /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridConnectivity/publicCloudConnectors/{publicCloudConnector}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0