azure-native.costmanagement.CloudConnector
Explore with Pulumi AI
The Connector model definition API Version: 2019-03-01-preview.
Example Usage
CloudConnector_Put
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var cloudConnector = new AzureNative.CostManagement.CloudConnector("cloudConnector", new()
    {
        ConnectorName = "aws-123456789012",
        CredentialsKey = "arn:aws:iam::123456789012:role/AzureCostManagementRole",
        CredentialsSecret = "external-id",
        DisplayName = "AWS-Consolidated-1",
        ReportId = "HourlyWithResources",
    });
});
package main
import (
	costmanagement "github.com/pulumi/pulumi-azure-native-sdk/costmanagement"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := costmanagement.NewCloudConnector(ctx, "cloudConnector", &costmanagement.CloudConnectorArgs{
			ConnectorName:     pulumi.String("aws-123456789012"),
			CredentialsKey:    pulumi.String("arn:aws:iam::123456789012:role/AzureCostManagementRole"),
			CredentialsSecret: pulumi.String("external-id"),
			DisplayName:       pulumi.String("AWS-Consolidated-1"),
			ReportId:          pulumi.String("HourlyWithResources"),
		})
		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.costmanagement.CloudConnector;
import com.pulumi.azurenative.costmanagement.CloudConnectorArgs;
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 cloudConnector = new CloudConnector("cloudConnector", CloudConnectorArgs.builder()        
            .connectorName("aws-123456789012")
            .credentialsKey("arn:aws:iam::123456789012:role/AzureCostManagementRole")
            .credentialsSecret("external-id")
            .displayName("AWS-Consolidated-1")
            .reportId("HourlyWithResources")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const cloudConnector = new azure_native.costmanagement.CloudConnector("cloudConnector", {
    connectorName: "aws-123456789012",
    credentialsKey: "arn:aws:iam::123456789012:role/AzureCostManagementRole",
    credentialsSecret: "external-id",
    displayName: "AWS-Consolidated-1",
    reportId: "HourlyWithResources",
});
import pulumi
import pulumi_azure_native as azure_native
cloud_connector = azure_native.costmanagement.CloudConnector("cloudConnector",
    connector_name="aws-123456789012",
    credentials_key="arn:aws:iam::123456789012:role/AzureCostManagementRole",
    credentials_secret="external-id",
    display_name="AWS-Consolidated-1",
    report_id="HourlyWithResources")
resources:
  cloudConnector:
    type: azure-native:costmanagement:CloudConnector
    properties:
      connectorName: aws-123456789012
      credentialsKey: arn:aws:iam::123456789012:role/AzureCostManagementRole
      credentialsSecret: external-id
      displayName: AWS-Consolidated-1
      reportId: HourlyWithResources
Create CloudConnector Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CloudConnector(name: string, args?: CloudConnectorArgs, opts?: CustomResourceOptions);@overload
def CloudConnector(resource_name: str,
                   args: Optional[CloudConnectorArgs] = None,
                   opts: Optional[ResourceOptions] = None)
@overload
def CloudConnector(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   billing_model: Optional[Union[str, ConnectorBillingModel]] = None,
                   connector_name: Optional[str] = None,
                   credentials_key: Optional[str] = None,
                   credentials_secret: Optional[str] = None,
                   default_management_group_id: Optional[str] = None,
                   display_name: Optional[str] = None,
                   kind: Optional[str] = None,
                   report_id: Optional[str] = None,
                   subscription_id: Optional[str] = None)func NewCloudConnector(ctx *Context, name string, args *CloudConnectorArgs, opts ...ResourceOption) (*CloudConnector, error)public CloudConnector(string name, CloudConnectorArgs? args = null, CustomResourceOptions? opts = null)
public CloudConnector(String name, CloudConnectorArgs args)
public CloudConnector(String name, CloudConnectorArgs args, CustomResourceOptions options)
type: azure-native:costmanagement:CloudConnector
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 CloudConnectorArgs
- 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 CloudConnectorArgs
- 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 CloudConnectorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CloudConnectorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CloudConnectorArgs
- 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 cloudConnectorResource = new AzureNative.Costmanagement.CloudConnector("cloudConnectorResource", new()
{
    BillingModel = "string",
    ConnectorName = "string",
    CredentialsKey = "string",
    CredentialsSecret = "string",
    DefaultManagementGroupId = "string",
    DisplayName = "string",
    Kind = "string",
    ReportId = "string",
    SubscriptionId = "string",
});
example, err := costmanagement.NewCloudConnector(ctx, "cloudConnectorResource", &costmanagement.CloudConnectorArgs{
	BillingModel:             "string",
	ConnectorName:            "string",
	CredentialsKey:           "string",
	CredentialsSecret:        "string",
	DefaultManagementGroupId: "string",
	DisplayName:              "string",
	Kind:                     "string",
	ReportId:                 "string",
	SubscriptionId:           "string",
})
var cloudConnectorResource = new CloudConnector("cloudConnectorResource", CloudConnectorArgs.builder()
    .billingModel("string")
    .connectorName("string")
    .credentialsKey("string")
    .credentialsSecret("string")
    .defaultManagementGroupId("string")
    .displayName("string")
    .kind("string")
    .reportId("string")
    .subscriptionId("string")
    .build());
cloud_connector_resource = azure_native.costmanagement.CloudConnector("cloudConnectorResource",
    billing_model=string,
    connector_name=string,
    credentials_key=string,
    credentials_secret=string,
    default_management_group_id=string,
    display_name=string,
    kind=string,
    report_id=string,
    subscription_id=string)
const cloudConnectorResource = new azure_native.costmanagement.CloudConnector("cloudConnectorResource", {
    billingModel: "string",
    connectorName: "string",
    credentialsKey: "string",
    credentialsSecret: "string",
    defaultManagementGroupId: "string",
    displayName: "string",
    kind: "string",
    reportId: "string",
    subscriptionId: "string",
});
type: azure-native:costmanagement:CloudConnector
properties:
    billingModel: string
    connectorName: string
    credentialsKey: string
    credentialsSecret: string
    defaultManagementGroupId: string
    displayName: string
    kind: string
    reportId: string
    subscriptionId: string
CloudConnector 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 CloudConnector resource accepts the following input properties:
- BillingModel string | Pulumi.Azure Native. Cost Management. Connector Billing Model 
- Connector billing model
- ConnectorName string
- Connector Name.
- CredentialsKey string
- Credentials authentication key (eg AWS ARN)
- CredentialsSecret string
- Credentials secret (eg AWS ExternalId)
- DefaultManagement stringGroup Id 
- Default ManagementGroupId
- DisplayName string
- Connector DisplayName
- Kind string
- Connector kind (eg aws)
- ReportId string
- Identifying source report. (For AWS this is a CUR report name, defined with Daily and with Resources)
- SubscriptionId string
- Billing SubscriptionId
- BillingModel string | ConnectorBilling Model 
- Connector billing model
- ConnectorName string
- Connector Name.
- CredentialsKey string
- Credentials authentication key (eg AWS ARN)
- CredentialsSecret string
- Credentials secret (eg AWS ExternalId)
- DefaultManagement stringGroup Id 
- Default ManagementGroupId
- DisplayName string
- Connector DisplayName
- Kind string
- Connector kind (eg aws)
- ReportId string
- Identifying source report. (For AWS this is a CUR report name, defined with Daily and with Resources)
- SubscriptionId string
- Billing SubscriptionId
- billingModel String | ConnectorBilling Model 
- Connector billing model
- connectorName String
- Connector Name.
- credentialsKey String
- Credentials authentication key (eg AWS ARN)
- credentialsSecret String
- Credentials secret (eg AWS ExternalId)
- defaultManagement StringGroup Id 
- Default ManagementGroupId
- displayName String
- Connector DisplayName
- kind String
- Connector kind (eg aws)
- reportId String
- Identifying source report. (For AWS this is a CUR report name, defined with Daily and with Resources)
- subscriptionId String
- Billing SubscriptionId
- billingModel string | ConnectorBilling Model 
- Connector billing model
- connectorName string
- Connector Name.
- credentialsKey string
- Credentials authentication key (eg AWS ARN)
- credentialsSecret string
- Credentials secret (eg AWS ExternalId)
- defaultManagement stringGroup Id 
- Default ManagementGroupId
- displayName string
- Connector DisplayName
- kind string
- Connector kind (eg aws)
- reportId string
- Identifying source report. (For AWS this is a CUR report name, defined with Daily and with Resources)
- subscriptionId string
- Billing SubscriptionId
- billing_model str | ConnectorBilling Model 
- Connector billing model
- connector_name str
- Connector Name.
- credentials_key str
- Credentials authentication key (eg AWS ARN)
- credentials_secret str
- Credentials secret (eg AWS ExternalId)
- default_management_ strgroup_ id 
- Default ManagementGroupId
- display_name str
- Connector DisplayName
- kind str
- Connector kind (eg aws)
- report_id str
- Identifying source report. (For AWS this is a CUR report name, defined with Daily and with Resources)
- subscription_id str
- Billing SubscriptionId
- billingModel String | "trial" | "autoUpgrade" | "premium" | "expired" 
- Connector billing model
- connectorName String
- Connector Name.
- credentialsKey String
- Credentials authentication key (eg AWS ARN)
- credentialsSecret String
- Credentials secret (eg AWS ExternalId)
- defaultManagement StringGroup Id 
- Default ManagementGroupId
- displayName String
- Connector DisplayName
- kind String
- Connector kind (eg aws)
- reportId String
- Identifying source report. (For AWS this is a CUR report name, defined with Daily and with Resources)
- subscriptionId String
- Billing SubscriptionId
Outputs
All input properties are implicitly available as output properties. Additionally, the CloudConnector resource produces the following output properties:
- CollectionInfo Pulumi.Azure Native. Cost Management. Outputs. Connector Collection Info Response 
- Collection information
- CreatedOn string
- Connector definition creation datetime
- DaysTrial intRemaining 
- Number of days remaining of trial
- ExternalBilling stringAccount Id 
- Associated ExternalBillingAccountId
- Id string
- The provider-assigned unique ID for this managed resource.
- ModifiedOn string
- Connector last modified datetime
- Name string
- Connector name
- ProviderBilling stringAccount Display Name 
- The display name of the providerBillingAccountId as defined on the external provider
- ProviderBilling stringAccount Id 
- Connector providerBillingAccountId, determined from credentials (eg AWS Consolidated account number)
- Status string
- Connector status
- Type string
- Connector type
- CollectionInfo ConnectorCollection Info Response 
- Collection information
- CreatedOn string
- Connector definition creation datetime
- DaysTrial intRemaining 
- Number of days remaining of trial
- ExternalBilling stringAccount Id 
- Associated ExternalBillingAccountId
- Id string
- The provider-assigned unique ID for this managed resource.
- ModifiedOn string
- Connector last modified datetime
- Name string
- Connector name
- ProviderBilling stringAccount Display Name 
- The display name of the providerBillingAccountId as defined on the external provider
- ProviderBilling stringAccount Id 
- Connector providerBillingAccountId, determined from credentials (eg AWS Consolidated account number)
- Status string
- Connector status
- Type string
- Connector type
- collectionInfo ConnectorCollection Info Response 
- Collection information
- createdOn String
- Connector definition creation datetime
- daysTrial IntegerRemaining 
- Number of days remaining of trial
- externalBilling StringAccount Id 
- Associated ExternalBillingAccountId
- id String
- The provider-assigned unique ID for this managed resource.
- modifiedOn String
- Connector last modified datetime
- name String
- Connector name
- providerBilling StringAccount Display Name 
- The display name of the providerBillingAccountId as defined on the external provider
- providerBilling StringAccount Id 
- Connector providerBillingAccountId, determined from credentials (eg AWS Consolidated account number)
- status String
- Connector status
- type String
- Connector type
- collectionInfo ConnectorCollection Info Response 
- Collection information
- createdOn string
- Connector definition creation datetime
- daysTrial numberRemaining 
- Number of days remaining of trial
- externalBilling stringAccount Id 
- Associated ExternalBillingAccountId
- id string
- The provider-assigned unique ID for this managed resource.
- modifiedOn string
- Connector last modified datetime
- name string
- Connector name
- providerBilling stringAccount Display Name 
- The display name of the providerBillingAccountId as defined on the external provider
- providerBilling stringAccount Id 
- Connector providerBillingAccountId, determined from credentials (eg AWS Consolidated account number)
- status string
- Connector status
- type string
- Connector type
- collection_info ConnectorCollection Info Response 
- Collection information
- created_on str
- Connector definition creation datetime
- days_trial_ intremaining 
- Number of days remaining of trial
- external_billing_ straccount_ id 
- Associated ExternalBillingAccountId
- id str
- The provider-assigned unique ID for this managed resource.
- modified_on str
- Connector last modified datetime
- name str
- Connector name
- provider_billing_ straccount_ display_ name 
- The display name of the providerBillingAccountId as defined on the external provider
- provider_billing_ straccount_ id 
- Connector providerBillingAccountId, determined from credentials (eg AWS Consolidated account number)
- status str
- Connector status
- type str
- Connector type
- collectionInfo Property Map
- Collection information
- createdOn String
- Connector definition creation datetime
- daysTrial NumberRemaining 
- Number of days remaining of trial
- externalBilling StringAccount Id 
- Associated ExternalBillingAccountId
- id String
- The provider-assigned unique ID for this managed resource.
- modifiedOn String
- Connector last modified datetime
- name String
- Connector name
- providerBilling StringAccount Display Name 
- The display name of the providerBillingAccountId as defined on the external provider
- providerBilling StringAccount Id 
- Connector providerBillingAccountId, determined from credentials (eg AWS Consolidated account number)
- status String
- Connector status
- type String
- Connector type
Supporting Types
ConnectorBillingModel, ConnectorBillingModelArgs      
- Trial
- trial
- AutoUpgrade 
- autoUpgrade
- Premium
- premium
- Expired
- expired
- ConnectorBilling Model Trial 
- trial
- ConnectorBilling Model Auto Upgrade 
- autoUpgrade
- ConnectorBilling Model Premium 
- premium
- ConnectorBilling Model Expired 
- expired
- Trial
- trial
- AutoUpgrade 
- autoUpgrade
- Premium
- premium
- Expired
- expired
- Trial
- trial
- AutoUpgrade 
- autoUpgrade
- Premium
- premium
- Expired
- expired
- TRIAL
- trial
- AUTO_UPGRADE
- autoUpgrade
- PREMIUM
- premium
- EXPIRED
- expired
- "trial"
- trial
- "autoUpgrade" 
- autoUpgrade
- "premium"
- premium
- "expired"
- expired
ConnectorCollectionErrorInfoResponse, ConnectorCollectionErrorInfoResponseArgs          
- ErrorCode string
- Short error code
- ErrorInner stringMessage 
- External Provider error message
- ErrorMessage string
- Detailed error message
- ErrorStart stringTime 
- Time the error started occurring (Last time error occurred in lastChecked)
- ErrorCode string
- Short error code
- ErrorInner stringMessage 
- External Provider error message
- ErrorMessage string
- Detailed error message
- ErrorStart stringTime 
- Time the error started occurring (Last time error occurred in lastChecked)
- errorCode String
- Short error code
- errorInner StringMessage 
- External Provider error message
- errorMessage String
- Detailed error message
- errorStart StringTime 
- Time the error started occurring (Last time error occurred in lastChecked)
- errorCode string
- Short error code
- errorInner stringMessage 
- External Provider error message
- errorMessage string
- Detailed error message
- errorStart stringTime 
- Time the error started occurring (Last time error occurred in lastChecked)
- error_code str
- Short error code
- error_inner_ strmessage 
- External Provider error message
- error_message str
- Detailed error message
- error_start_ strtime 
- Time the error started occurring (Last time error occurred in lastChecked)
- errorCode String
- Short error code
- errorInner StringMessage 
- External Provider error message
- errorMessage String
- Detailed error message
- errorStart StringTime 
- Time the error started occurring (Last time error occurred in lastChecked)
ConnectorCollectionInfoResponse, ConnectorCollectionInfoResponseArgs        
- LastChecked string
- Last time the data acquisition process initiated connecting to the external provider
- LastUpdated string
- Last time the external data was updated into Azure
- SourceLast stringUpdated 
- Source timestamp of external data currently available in Azure (eg AWS last processed CUR file timestamp)
- Error
Pulumi.Azure Native. Cost Management. Inputs. Connector Collection Error Info Response 
- Error information of last collection
- LastChecked string
- Last time the data acquisition process initiated connecting to the external provider
- LastUpdated string
- Last time the external data was updated into Azure
- SourceLast stringUpdated 
- Source timestamp of external data currently available in Azure (eg AWS last processed CUR file timestamp)
- Error
ConnectorCollection Error Info Response 
- Error information of last collection
- lastChecked String
- Last time the data acquisition process initiated connecting to the external provider
- lastUpdated String
- Last time the external data was updated into Azure
- sourceLast StringUpdated 
- Source timestamp of external data currently available in Azure (eg AWS last processed CUR file timestamp)
- error
ConnectorCollection Error Info Response 
- Error information of last collection
- lastChecked string
- Last time the data acquisition process initiated connecting to the external provider
- lastUpdated string
- Last time the external data was updated into Azure
- sourceLast stringUpdated 
- Source timestamp of external data currently available in Azure (eg AWS last processed CUR file timestamp)
- error
ConnectorCollection Error Info Response 
- Error information of last collection
- last_checked str
- Last time the data acquisition process initiated connecting to the external provider
- last_updated str
- Last time the external data was updated into Azure
- source_last_ strupdated 
- Source timestamp of external data currently available in Azure (eg AWS last processed CUR file timestamp)
- error
ConnectorCollection Error Info Response 
- Error information of last collection
- lastChecked String
- Last time the data acquisition process initiated connecting to the external provider
- lastUpdated String
- Last time the external data was updated into Azure
- sourceLast StringUpdated 
- Source timestamp of external data currently available in Azure (eg AWS last processed CUR file timestamp)
- error Property Map
- Error information of last collection
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:costmanagement:CloudConnector aws-123456789012 /providers/Microsoft.CostManagement/cloudConnectors/aws-123456789012 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0