1. Packages
  2. Harness
  3. API Docs
  4. platform
  5. AzureCloudCostConnector
Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs

harness.platform.AzureCloudCostConnector

Explore with Pulumi AI

harness logo
Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs

    Resource for creating an Azure Cloud Cost connector in Harness.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Lbrlabs.PulumiPackage.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Harness.Platform.AzureCloudCostConnector("example", new()
        {
            BillingExportSpec = new Harness.Platform.Inputs.AzureCloudCostConnectorBillingExportSpecArgs
            {
                ContainerName = "container_name",
                DirectoryName = "directory_name",
                ReportName = "report_name",
                StorageAccountName = "storage_account_name",
                SubscriptionId = "subscription_id",
            },
            Description = "example",
            FeaturesEnableds = new[]
            {
                "BILLING",
                "VISIBILITY",
                "OPTIMIZATION",
            },
            Identifier = "identifier",
            SubscriptionId = "subscription_id",
            Tags = new[]
            {
                "foo:bar",
            },
            TenantId = "tenant_id",
        });
    
    });
    
    package main
    
    import (
    	"github.com/lbrlabs/pulumi-harness/sdk/go/harness/platform"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := platform.NewAzureCloudCostConnector(ctx, "example", &platform.AzureCloudCostConnectorArgs{
    			BillingExportSpec: &platform.AzureCloudCostConnectorBillingExportSpecArgs{
    				ContainerName:      pulumi.String("container_name"),
    				DirectoryName:      pulumi.String("directory_name"),
    				ReportName:         pulumi.String("report_name"),
    				StorageAccountName: pulumi.String("storage_account_name"),
    				SubscriptionId:     pulumi.String("subscription_id"),
    			},
    			Description: pulumi.String("example"),
    			FeaturesEnableds: pulumi.StringArray{
    				pulumi.String("BILLING"),
    				pulumi.String("VISIBILITY"),
    				pulumi.String("OPTIMIZATION"),
    			},
    			Identifier:     pulumi.String("identifier"),
    			SubscriptionId: pulumi.String("subscription_id"),
    			Tags: pulumi.StringArray{
    				pulumi.String("foo:bar"),
    			},
    			TenantId: pulumi.String("tenant_id"),
    		})
    		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.harness.platform.AzureCloudCostConnector;
    import com.pulumi.harness.platform.AzureCloudCostConnectorArgs;
    import com.pulumi.harness.platform.inputs.AzureCloudCostConnectorBillingExportSpecArgs;
    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 example = new AzureCloudCostConnector("example", AzureCloudCostConnectorArgs.builder()        
                .billingExportSpec(AzureCloudCostConnectorBillingExportSpecArgs.builder()
                    .containerName("container_name")
                    .directoryName("directory_name")
                    .reportName("report_name")
                    .storageAccountName("storage_account_name")
                    .subscriptionId("subscription_id")
                    .build())
                .description("example")
                .featuresEnableds(            
                    "BILLING",
                    "VISIBILITY",
                    "OPTIMIZATION")
                .identifier("identifier")
                .subscriptionId("subscription_id")
                .tags("foo:bar")
                .tenantId("tenant_id")
                .build());
    
        }
    }
    
    import pulumi
    import lbrlabs_pulumi_harness as harness
    
    example = harness.platform.AzureCloudCostConnector("example",
        billing_export_spec=harness.platform.AzureCloudCostConnectorBillingExportSpecArgs(
            container_name="container_name",
            directory_name="directory_name",
            report_name="report_name",
            storage_account_name="storage_account_name",
            subscription_id="subscription_id",
        ),
        description="example",
        features_enableds=[
            "BILLING",
            "VISIBILITY",
            "OPTIMIZATION",
        ],
        identifier="identifier",
        subscription_id="subscription_id",
        tags=["foo:bar"],
        tenant_id="tenant_id")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@lbrlabs/pulumi-harness";
    
    const example = new harness.platform.AzureCloudCostConnector("example", {
        billingExportSpec: {
            containerName: "container_name",
            directoryName: "directory_name",
            reportName: "report_name",
            storageAccountName: "storage_account_name",
            subscriptionId: "subscription_id",
        },
        description: "example",
        featuresEnableds: [
            "BILLING",
            "VISIBILITY",
            "OPTIMIZATION",
        ],
        identifier: "identifier",
        subscriptionId: "subscription_id",
        tags: ["foo:bar"],
        tenantId: "tenant_id",
    });
    
    resources:
      example:
        type: harness:platform:AzureCloudCostConnector
        properties:
          billingExportSpec:
            containerName: container_name
            directoryName: directory_name
            reportName: report_name
            storageAccountName: storage_account_name
            subscriptionId: subscription_id
          description: example
          featuresEnableds:
            - BILLING
            - VISIBILITY
            - OPTIMIZATION
          identifier: identifier
          subscriptionId: subscription_id
          tags:
            - foo:bar
          tenantId: tenant_id
    

    Create AzureCloudCostConnector Resource

    new AzureCloudCostConnector(name: string, args: AzureCloudCostConnectorArgs, opts?: CustomResourceOptions);
    @overload
    def AzureCloudCostConnector(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                billing_export_spec: Optional[AzureCloudCostConnectorBillingExportSpecArgs] = None,
                                description: Optional[str] = None,
                                features_enableds: Optional[Sequence[str]] = None,
                                identifier: Optional[str] = None,
                                name: Optional[str] = None,
                                org_id: Optional[str] = None,
                                project_id: Optional[str] = None,
                                subscription_id: Optional[str] = None,
                                tags: Optional[Sequence[str]] = None,
                                tenant_id: Optional[str] = None)
    @overload
    def AzureCloudCostConnector(resource_name: str,
                                args: AzureCloudCostConnectorArgs,
                                opts: Optional[ResourceOptions] = None)
    func NewAzureCloudCostConnector(ctx *Context, name string, args AzureCloudCostConnectorArgs, opts ...ResourceOption) (*AzureCloudCostConnector, error)
    public AzureCloudCostConnector(string name, AzureCloudCostConnectorArgs args, CustomResourceOptions? opts = null)
    public AzureCloudCostConnector(String name, AzureCloudCostConnectorArgs args)
    public AzureCloudCostConnector(String name, AzureCloudCostConnectorArgs args, CustomResourceOptions options)
    
    type: harness:platform:AzureCloudCostConnector
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args AzureCloudCostConnectorArgs
    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 AzureCloudCostConnectorArgs
    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 AzureCloudCostConnectorArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AzureCloudCostConnectorArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AzureCloudCostConnectorArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    AzureCloudCostConnector 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 AzureCloudCostConnector resource accepts the following input properties:

    FeaturesEnableds List<string>

    Indicates which feature to enable among Billing, Optimization, and Visibility.

    Identifier string

    Unique identifier of the resource.

    SubscriptionId string

    Subsription id.

    TenantId string

    Tenant id.

    BillingExportSpec Lbrlabs.PulumiPackage.Harness.Platform.Inputs.AzureCloudCostConnectorBillingExportSpec

    Returns billing details for the Azure account.

    Description string

    Description of the resource.

    Name string

    Name of the resource.

    OrgId string

    Unique identifier of the organization.

    ProjectId string

    Unique identifier of the project.

    Tags List<string>

    Tags to associate with the resource.

    FeaturesEnableds []string

    Indicates which feature to enable among Billing, Optimization, and Visibility.

    Identifier string

    Unique identifier of the resource.

    SubscriptionId string

    Subsription id.

    TenantId string

    Tenant id.

    BillingExportSpec AzureCloudCostConnectorBillingExportSpecArgs

    Returns billing details for the Azure account.

    Description string

    Description of the resource.

    Name string

    Name of the resource.

    OrgId string

    Unique identifier of the organization.

    ProjectId string

    Unique identifier of the project.

    Tags []string

    Tags to associate with the resource.

    featuresEnableds List<String>

    Indicates which feature to enable among Billing, Optimization, and Visibility.

    identifier String

    Unique identifier of the resource.

    subscriptionId String

    Subsription id.

    tenantId String

    Tenant id.

    billingExportSpec AzureCloudCostConnectorBillingExportSpec

    Returns billing details for the Azure account.

    description String

    Description of the resource.

    name String

    Name of the resource.

    orgId String

    Unique identifier of the organization.

    projectId String

    Unique identifier of the project.

    tags List<String>

    Tags to associate with the resource.

    featuresEnableds string[]

    Indicates which feature to enable among Billing, Optimization, and Visibility.

    identifier string

    Unique identifier of the resource.

    subscriptionId string

    Subsription id.

    tenantId string

    Tenant id.

    billingExportSpec AzureCloudCostConnectorBillingExportSpec

    Returns billing details for the Azure account.

    description string

    Description of the resource.

    name string

    Name of the resource.

    orgId string

    Unique identifier of the organization.

    projectId string

    Unique identifier of the project.

    tags string[]

    Tags to associate with the resource.

    features_enableds Sequence[str]

    Indicates which feature to enable among Billing, Optimization, and Visibility.

    identifier str

    Unique identifier of the resource.

    subscription_id str

    Subsription id.

    tenant_id str

    Tenant id.

    billing_export_spec AzureCloudCostConnectorBillingExportSpecArgs

    Returns billing details for the Azure account.

    description str

    Description of the resource.

    name str

    Name of the resource.

    org_id str

    Unique identifier of the organization.

    project_id str

    Unique identifier of the project.

    tags Sequence[str]

    Tags to associate with the resource.

    featuresEnableds List<String>

    Indicates which feature to enable among Billing, Optimization, and Visibility.

    identifier String

    Unique identifier of the resource.

    subscriptionId String

    Subsription id.

    tenantId String

    Tenant id.

    billingExportSpec Property Map

    Returns billing details for the Azure account.

    description String

    Description of the resource.

    name String

    Name of the resource.

    orgId String

    Unique identifier of the organization.

    projectId String

    Unique identifier of the project.

    tags List<String>

    Tags to associate with the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AzureCloudCostConnector resource produces the following output properties:

    Id string

    The provider-assigned unique ID for this managed resource.

    Id string

    The provider-assigned unique ID for this managed resource.

    id String

    The provider-assigned unique ID for this managed resource.

    id string

    The provider-assigned unique ID for this managed resource.

    id str

    The provider-assigned unique ID for this managed resource.

    id String

    The provider-assigned unique ID for this managed resource.

    Look up Existing AzureCloudCostConnector Resource

    Get an existing AzureCloudCostConnector resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AzureCloudCostConnectorState, opts?: CustomResourceOptions): AzureCloudCostConnector
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            billing_export_spec: Optional[AzureCloudCostConnectorBillingExportSpecArgs] = None,
            description: Optional[str] = None,
            features_enableds: Optional[Sequence[str]] = None,
            identifier: Optional[str] = None,
            name: Optional[str] = None,
            org_id: Optional[str] = None,
            project_id: Optional[str] = None,
            subscription_id: Optional[str] = None,
            tags: Optional[Sequence[str]] = None,
            tenant_id: Optional[str] = None) -> AzureCloudCostConnector
    func GetAzureCloudCostConnector(ctx *Context, name string, id IDInput, state *AzureCloudCostConnectorState, opts ...ResourceOption) (*AzureCloudCostConnector, error)
    public static AzureCloudCostConnector Get(string name, Input<string> id, AzureCloudCostConnectorState? state, CustomResourceOptions? opts = null)
    public static AzureCloudCostConnector get(String name, Output<String> id, AzureCloudCostConnectorState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    BillingExportSpec Lbrlabs.PulumiPackage.Harness.Platform.Inputs.AzureCloudCostConnectorBillingExportSpec

    Returns billing details for the Azure account.

    Description string

    Description of the resource.

    FeaturesEnableds List<string>

    Indicates which feature to enable among Billing, Optimization, and Visibility.

    Identifier string

    Unique identifier of the resource.

    Name string

    Name of the resource.

    OrgId string

    Unique identifier of the organization.

    ProjectId string

    Unique identifier of the project.

    SubscriptionId string

    Subsription id.

    Tags List<string>

    Tags to associate with the resource.

    TenantId string

    Tenant id.

    BillingExportSpec AzureCloudCostConnectorBillingExportSpecArgs

    Returns billing details for the Azure account.

    Description string

    Description of the resource.

    FeaturesEnableds []string

    Indicates which feature to enable among Billing, Optimization, and Visibility.

    Identifier string

    Unique identifier of the resource.

    Name string

    Name of the resource.

    OrgId string

    Unique identifier of the organization.

    ProjectId string

    Unique identifier of the project.

    SubscriptionId string

    Subsription id.

    Tags []string

    Tags to associate with the resource.

    TenantId string

    Tenant id.

    billingExportSpec AzureCloudCostConnectorBillingExportSpec

    Returns billing details for the Azure account.

    description String

    Description of the resource.

    featuresEnableds List<String>

    Indicates which feature to enable among Billing, Optimization, and Visibility.

    identifier String

    Unique identifier of the resource.

    name String

    Name of the resource.

    orgId String

    Unique identifier of the organization.

    projectId String

    Unique identifier of the project.

    subscriptionId String

    Subsription id.

    tags List<String>

    Tags to associate with the resource.

    tenantId String

    Tenant id.

    billingExportSpec AzureCloudCostConnectorBillingExportSpec

    Returns billing details for the Azure account.

    description string

    Description of the resource.

    featuresEnableds string[]

    Indicates which feature to enable among Billing, Optimization, and Visibility.

    identifier string

    Unique identifier of the resource.

    name string

    Name of the resource.

    orgId string

    Unique identifier of the organization.

    projectId string

    Unique identifier of the project.

    subscriptionId string

    Subsription id.

    tags string[]

    Tags to associate with the resource.

    tenantId string

    Tenant id.

    billing_export_spec AzureCloudCostConnectorBillingExportSpecArgs

    Returns billing details for the Azure account.

    description str

    Description of the resource.

    features_enableds Sequence[str]

    Indicates which feature to enable among Billing, Optimization, and Visibility.

    identifier str

    Unique identifier of the resource.

    name str

    Name of the resource.

    org_id str

    Unique identifier of the organization.

    project_id str

    Unique identifier of the project.

    subscription_id str

    Subsription id.

    tags Sequence[str]

    Tags to associate with the resource.

    tenant_id str

    Tenant id.

    billingExportSpec Property Map

    Returns billing details for the Azure account.

    description String

    Description of the resource.

    featuresEnableds List<String>

    Indicates which feature to enable among Billing, Optimization, and Visibility.

    identifier String

    Unique identifier of the resource.

    name String

    Name of the resource.

    orgId String

    Unique identifier of the organization.

    projectId String

    Unique identifier of the project.

    subscriptionId String

    Subsription id.

    tags List<String>

    Tags to associate with the resource.

    tenantId String

    Tenant id.

    Supporting Types

    AzureCloudCostConnectorBillingExportSpec, AzureCloudCostConnectorBillingExportSpecArgs

    ContainerName string

    Name of the container.

    DirectoryName string

    Name of the directory.

    ReportName string

    Name of the report.

    StorageAccountName string

    Name of the storage account.

    SubscriptionId string

    Subsription Id.

    ContainerName string

    Name of the container.

    DirectoryName string

    Name of the directory.

    ReportName string

    Name of the report.

    StorageAccountName string

    Name of the storage account.

    SubscriptionId string

    Subsription Id.

    containerName String

    Name of the container.

    directoryName String

    Name of the directory.

    reportName String

    Name of the report.

    storageAccountName String

    Name of the storage account.

    subscriptionId String

    Subsription Id.

    containerName string

    Name of the container.

    directoryName string

    Name of the directory.

    reportName string

    Name of the report.

    storageAccountName string

    Name of the storage account.

    subscriptionId string

    Subsription Id.

    container_name str

    Name of the container.

    directory_name str

    Name of the directory.

    report_name str

    Name of the report.

    storage_account_name str

    Name of the storage account.

    subscription_id str

    Subsription Id.

    containerName String

    Name of the container.

    directoryName String

    Name of the directory.

    reportName String

    Name of the report.

    storageAccountName String

    Name of the storage account.

    subscriptionId String

    Subsription Id.

    Import

    Import account level azure cloud cost connector

     $ pulumi import harness:platform/azureCloudCostConnector:AzureCloudCostConnector example <connector_id>
    

    Import org level azure cloud cost connector

     $ pulumi import harness:platform/azureCloudCostConnector:AzureCloudCostConnector example <ord_id>/<connector_id>
    

    Import project level azure cloud cost connector

     $ pulumi import harness:platform/azureCloudCostConnector:AzureCloudCostConnector example <org_id>/<project_id>/<connector_id>
    

    Package Details

    Repository
    harness lbrlabs/pulumi-harness
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the harness Terraform Provider.

    harness logo
    Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs