CloudConnector

class CloudConnector : KotlinCustomResource

The Connector model definition Uses Azure REST API version 2019-03-01-preview. In version 2.x of the Azure Native provider, it used 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/v3"
"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

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/{connectorName}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard
val billingModel: Output<String>?

Connector billing model

Link copied to clipboard

Collection information

Link copied to clipboard
val createdOn: Output<String>

Connector definition creation datetime

Link copied to clipboard
val credentialsKey: Output<String>?

Credentials authentication key (eg AWS ARN)

Link copied to clipboard
val daysTrialRemaining: Output<Int>

Number of days remaining of trial

Link copied to clipboard

Default ManagementGroupId

Link copied to clipboard
val displayName: Output<String>?

Connector DisplayName

Link copied to clipboard

Associated ExternalBillingAccountId

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val kind: Output<String>?

Connector kind (eg aws)

Link copied to clipboard
val modifiedOn: Output<String>

Connector last modified datetime

Link copied to clipboard
val name: Output<String>

Connector name

Link copied to clipboard

The display name of the providerBillingAccountId as defined on the external provider

Link copied to clipboard

Connector providerBillingAccountId, determined from credentials (eg AWS Consolidated account number)

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val reportId: Output<String>?

Identifying source report. (For AWS this is a CUR report name, defined with Daily and with Resources)

Link copied to clipboard
val status: Output<String>

Connector status

Link copied to clipboard
val subscriptionId: Output<String>?

Billing SubscriptionId

Link copied to clipboard
val type: Output<String>

Connector type

Link copied to clipboard
val urn: Output<String>