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 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")
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",
});
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
The CloudConnector resource accepts the following input properties:
- Billing
Model string | Pulumi.Azure Native. Cost Management. Connector Billing Model - Connector billing model
- Connector
Name string - Connector Name.
- Credentials
Key string - Credentials authentication key (eg AWS ARN)
- Credentials
Secret string - Credentials secret (eg AWS ExternalId)
- Default
Management stringGroup Id - Default ManagementGroupId
- Display
Name string - Connector DisplayName
- Kind string
- Connector kind (eg aws)
- Report
Id string - Identifying source report. (For AWS this is a CUR report name, defined with Daily and with Resources)
- Subscription
Id string - Billing SubscriptionId
- Billing
Model string | ConnectorBilling Model - Connector billing model
- Connector
Name string - Connector Name.
- Credentials
Key string - Credentials authentication key (eg AWS ARN)
- Credentials
Secret string - Credentials secret (eg AWS ExternalId)
- Default
Management stringGroup Id - Default ManagementGroupId
- Display
Name string - Connector DisplayName
- Kind string
- Connector kind (eg aws)
- Report
Id string - Identifying source report. (For AWS this is a CUR report name, defined with Daily and with Resources)
- Subscription
Id string - Billing SubscriptionId
- billing
Model String | ConnectorBilling Model - Connector billing model
- connector
Name String - Connector Name.
- credentials
Key String - Credentials authentication key (eg AWS ARN)
- credentials
Secret String - Credentials secret (eg AWS ExternalId)
- default
Management StringGroup Id - Default ManagementGroupId
- display
Name String - Connector DisplayName
- kind String
- Connector kind (eg aws)
- report
Id String - Identifying source report. (For AWS this is a CUR report name, defined with Daily and with Resources)
- subscription
Id String - Billing SubscriptionId
- billing
Model string | ConnectorBilling Model - Connector billing model
- connector
Name string - Connector Name.
- credentials
Key string - Credentials authentication key (eg AWS ARN)
- credentials
Secret string - Credentials secret (eg AWS ExternalId)
- default
Management stringGroup Id - Default ManagementGroupId
- display
Name string - Connector DisplayName
- kind string
- Connector kind (eg aws)
- report
Id string - Identifying source report. (For AWS this is a CUR report name, defined with Daily and with Resources)
- subscription
Id 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
- billing
Model String | "trial" | "autoUpgrade" | "premium" | "expired" - Connector billing model
- connector
Name String - Connector Name.
- credentials
Key String - Credentials authentication key (eg AWS ARN)
- credentials
Secret String - Credentials secret (eg AWS ExternalId)
- default
Management StringGroup Id - Default ManagementGroupId
- display
Name String - Connector DisplayName
- kind String
- Connector kind (eg aws)
- report
Id String - Identifying source report. (For AWS this is a CUR report name, defined with Daily and with Resources)
- subscription
Id String - Billing SubscriptionId
Outputs
All input properties are implicitly available as output properties. Additionally, the CloudConnector resource produces the following output properties:
- Collection
Info Pulumi.Azure Native. Cost Management. Outputs. Connector Collection Info Response - Collection information
- Created
On string - Connector definition creation datetime
- Days
Trial intRemaining - Number of days remaining of trial
- External
Billing stringAccount Id - Associated ExternalBillingAccountId
- Id string
- The provider-assigned unique ID for this managed resource.
- Modified
On string - Connector last modified datetime
- Name string
- Connector name
- Provider
Billing stringAccount Display Name - The display name of the providerBillingAccountId as defined on the external provider
- Provider
Billing 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 string - Connector definition creation datetime
- Days
Trial intRemaining - Number of days remaining of trial
- External
Billing stringAccount Id - Associated ExternalBillingAccountId
- Id string
- The provider-assigned unique ID for this managed resource.
- Modified
On string - Connector last modified datetime
- Name string
- Connector name
- Provider
Billing stringAccount Display Name - The display name of the providerBillingAccountId as defined on the external provider
- Provider
Billing 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 String - Connector definition creation datetime
- days
Trial IntegerRemaining - Number of days remaining of trial
- external
Billing StringAccount Id - Associated ExternalBillingAccountId
- id String
- The provider-assigned unique ID for this managed resource.
- modified
On String - Connector last modified datetime
- name String
- Connector name
- provider
Billing StringAccount Display Name - The display name of the providerBillingAccountId as defined on the external provider
- provider
Billing 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 string - Connector definition creation datetime
- days
Trial numberRemaining - Number of days remaining of trial
- external
Billing stringAccount Id - Associated ExternalBillingAccountId
- id string
- The provider-assigned unique ID for this managed resource.
- modified
On string - Connector last modified datetime
- name string
- Connector name
- provider
Billing stringAccount Display Name - The display name of the providerBillingAccountId as defined on the external provider
- provider
Billing 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
- collection
Info Property Map - Collection information
- created
On String - Connector definition creation datetime
- days
Trial NumberRemaining - Number of days remaining of trial
- external
Billing StringAccount Id - Associated ExternalBillingAccountId
- id String
- The provider-assigned unique ID for this managed resource.
- modified
On String - Connector last modified datetime
- name String
- Connector name
- provider
Billing StringAccount Display Name - The display name of the providerBillingAccountId as defined on the external provider
- provider
Billing 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
- Auto
Upgrade - autoUpgrade
- Premium
- premium
- Expired
- expired
- Connector
Billing Model Trial - trial
- Connector
Billing Model Auto Upgrade - autoUpgrade
- Connector
Billing Model Premium - premium
- Connector
Billing Model Expired - expired
- Trial
- trial
- Auto
Upgrade - autoUpgrade
- Premium
- premium
- Expired
- expired
- Trial
- trial
- Auto
Upgrade - autoUpgrade
- Premium
- premium
- Expired
- expired
- TRIAL
- trial
- AUTO_UPGRADE
- autoUpgrade
- PREMIUM
- premium
- EXPIRED
- expired
- "trial"
- trial
- "auto
Upgrade" - autoUpgrade
- "premium"
- premium
- "expired"
- expired
ConnectorCollectionErrorInfoResponse, ConnectorCollectionErrorInfoResponseArgs
- Error
Code string - Short error code
- Error
Inner stringMessage - External Provider error message
- Error
Message string - Detailed error message
- Error
Start stringTime - Time the error started occurring (Last time error occurred in lastChecked)
- Error
Code string - Short error code
- Error
Inner stringMessage - External Provider error message
- Error
Message string - Detailed error message
- Error
Start stringTime - Time the error started occurring (Last time error occurred in lastChecked)
- error
Code String - Short error code
- error
Inner StringMessage - External Provider error message
- error
Message String - Detailed error message
- error
Start StringTime - Time the error started occurring (Last time error occurred in lastChecked)
- error
Code string - Short error code
- error
Inner stringMessage - External Provider error message
- error
Message string - Detailed error message
- error
Start 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)
- error
Code String - Short error code
- error
Inner StringMessage - External Provider error message
- error
Message String - Detailed error message
- error
Start StringTime - Time the error started occurring (Last time error occurred in lastChecked)
ConnectorCollectionInfoResponse, ConnectorCollectionInfoResponseArgs
- Last
Checked string - Last time the data acquisition process initiated connecting to the external provider
- Last
Updated string - Last time the external data was updated into Azure
- Source
Last 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
- Last
Checked string - Last time the data acquisition process initiated connecting to the external provider
- Last
Updated string - Last time the external data was updated into Azure
- Source
Last stringUpdated - Source timestamp of external data currently available in Azure (eg AWS last processed CUR file timestamp)
- Error
Connector
Collection Error Info Response - Error information of last collection
- last
Checked String - Last time the data acquisition process initiated connecting to the external provider
- last
Updated String - Last time the external data was updated into Azure
- source
Last StringUpdated - Source timestamp of external data currently available in Azure (eg AWS last processed CUR file timestamp)
- error
Connector
Collection Error Info Response - Error information of last collection
- last
Checked string - Last time the data acquisition process initiated connecting to the external provider
- last
Updated string - Last time the external data was updated into Azure
- source
Last stringUpdated - Source timestamp of external data currently available in Azure (eg AWS last processed CUR file timestamp)
- error
Connector
Collection 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
Connector
Collection Error Info Response - Error information of last collection
- last
Checked String - Last time the data acquisition process initiated connecting to the external provider
- last
Updated String - Last time the external data was updated into Azure
- source
Last 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