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

harness.platform.KubernetesCloudCostConnector

Explore with Pulumi AI

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

    Resource for creating a Kubernetes Cloud Cost connector.

    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.KubernetesCloudCostConnector("example", new()
        {
            ConnectorRef = "connector_ref",
            Description = "example",
            FeaturesEnableds = new[]
            {
                "VISIBILITY",
                "OPTIMIZATION",
            },
            Identifier = "identifier",
            Tags = new[]
            {
                "foo:bar",
            },
        });
    
    });
    
    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.NewKubernetesCloudCostConnector(ctx, "example", &platform.KubernetesCloudCostConnectorArgs{
    			ConnectorRef: pulumi.String("connector_ref"),
    			Description:  pulumi.String("example"),
    			FeaturesEnableds: pulumi.StringArray{
    				pulumi.String("VISIBILITY"),
    				pulumi.String("OPTIMIZATION"),
    			},
    			Identifier: pulumi.String("identifier"),
    			Tags: pulumi.StringArray{
    				pulumi.String("foo:bar"),
    			},
    		})
    		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.KubernetesCloudCostConnector;
    import com.pulumi.harness.platform.KubernetesCloudCostConnectorArgs;
    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 KubernetesCloudCostConnector("example", KubernetesCloudCostConnectorArgs.builder()        
                .connectorRef("connector_ref")
                .description("example")
                .featuresEnableds(            
                    "VISIBILITY",
                    "OPTIMIZATION")
                .identifier("identifier")
                .tags("foo:bar")
                .build());
    
        }
    }
    
    import pulumi
    import lbrlabs_pulumi_harness as harness
    
    example = harness.platform.KubernetesCloudCostConnector("example",
        connector_ref="connector_ref",
        description="example",
        features_enableds=[
            "VISIBILITY",
            "OPTIMIZATION",
        ],
        identifier="identifier",
        tags=["foo:bar"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@lbrlabs/pulumi-harness";
    
    const example = new harness.platform.KubernetesCloudCostConnector("example", {
        connectorRef: "connector_ref",
        description: "example",
        featuresEnableds: [
            "VISIBILITY",
            "OPTIMIZATION",
        ],
        identifier: "identifier",
        tags: ["foo:bar"],
    });
    
    resources:
      example:
        type: harness:platform:KubernetesCloudCostConnector
        properties:
          connectorRef: connector_ref
          description: example
          featuresEnableds:
            - VISIBILITY
            - OPTIMIZATION
          identifier: identifier
          tags:
            - foo:bar
    

    Create KubernetesCloudCostConnector Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

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

    Example

    The following reference example uses placeholder values for all input properties.

    var kubernetesCloudCostConnectorResource = new Harness.Platform.KubernetesCloudCostConnector("kubernetesCloudCostConnectorResource", new()
    {
        ConnectorRef = "string",
        FeaturesEnableds = new[]
        {
            "string",
        },
        Identifier = "string",
        Description = "string",
        Name = "string",
        OrgId = "string",
        ProjectId = "string",
        Tags = new[]
        {
            "string",
        },
    });
    
    example, err := platform.NewKubernetesCloudCostConnector(ctx, "kubernetesCloudCostConnectorResource", &platform.KubernetesCloudCostConnectorArgs{
    	ConnectorRef: pulumi.String("string"),
    	FeaturesEnableds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Identifier:  pulumi.String("string"),
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	OrgId:       pulumi.String("string"),
    	ProjectId:   pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var kubernetesCloudCostConnectorResource = new KubernetesCloudCostConnector("kubernetesCloudCostConnectorResource", KubernetesCloudCostConnectorArgs.builder()        
        .connectorRef("string")
        .featuresEnableds("string")
        .identifier("string")
        .description("string")
        .name("string")
        .orgId("string")
        .projectId("string")
        .tags("string")
        .build());
    
    kubernetes_cloud_cost_connector_resource = harness.platform.KubernetesCloudCostConnector("kubernetesCloudCostConnectorResource",
        connector_ref="string",
        features_enableds=["string"],
        identifier="string",
        description="string",
        name="string",
        org_id="string",
        project_id="string",
        tags=["string"])
    
    const kubernetesCloudCostConnectorResource = new harness.platform.KubernetesCloudCostConnector("kubernetesCloudCostConnectorResource", {
        connectorRef: "string",
        featuresEnableds: ["string"],
        identifier: "string",
        description: "string",
        name: "string",
        orgId: "string",
        projectId: "string",
        tags: ["string"],
    });
    
    type: harness:platform:KubernetesCloudCostConnector
    properties:
        connectorRef: string
        description: string
        featuresEnableds:
            - string
        identifier: string
        name: string
        orgId: string
        projectId: string
        tags:
            - string
    

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

    ConnectorRef string
    Reference of the Connector. To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
    FeaturesEnableds List<string>
    Indicates which feature to enable among Billing, Optimization, and Visibility.
    Identifier string
    Unique identifier of the resource.
    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.
    ConnectorRef string
    Reference of the Connector. To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
    FeaturesEnableds []string
    Indicates which feature to enable among Billing, Optimization, and Visibility.
    Identifier string
    Unique identifier of the resource.
    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.
    connectorRef String
    Reference of the Connector. To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
    featuresEnableds List<String>
    Indicates which feature to enable among Billing, Optimization, and Visibility.
    identifier String
    Unique identifier of the resource.
    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.
    connectorRef string
    Reference of the Connector. To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
    featuresEnableds string[]
    Indicates which feature to enable among Billing, Optimization, and Visibility.
    identifier string
    Unique identifier of the resource.
    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.
    connector_ref str
    Reference of the Connector. To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
    features_enableds Sequence[str]
    Indicates which feature to enable among Billing, Optimization, and Visibility.
    identifier str
    Unique identifier of the resource.
    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.
    connectorRef String
    Reference of the Connector. To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
    featuresEnableds List<String>
    Indicates which feature to enable among Billing, Optimization, and Visibility.
    identifier String
    Unique identifier of the resource.
    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 KubernetesCloudCostConnector 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 KubernetesCloudCostConnector Resource

    Get an existing KubernetesCloudCostConnector 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?: KubernetesCloudCostConnectorState, opts?: CustomResourceOptions): KubernetesCloudCostConnector
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            connector_ref: Optional[str] = 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,
            tags: Optional[Sequence[str]] = None) -> KubernetesCloudCostConnector
    func GetKubernetesCloudCostConnector(ctx *Context, name string, id IDInput, state *KubernetesCloudCostConnectorState, opts ...ResourceOption) (*KubernetesCloudCostConnector, error)
    public static KubernetesCloudCostConnector Get(string name, Input<string> id, KubernetesCloudCostConnectorState? state, CustomResourceOptions? opts = null)
    public static KubernetesCloudCostConnector get(String name, Output<String> id, KubernetesCloudCostConnectorState 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:
    ConnectorRef string
    Reference of the Connector. To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
    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.
    Tags List<string>
    Tags to associate with the resource.
    ConnectorRef string
    Reference of the Connector. To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
    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.
    Tags []string
    Tags to associate with the resource.
    connectorRef String
    Reference of the Connector. To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
    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.
    tags List<String>
    Tags to associate with the resource.
    connectorRef string
    Reference of the Connector. To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
    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.
    tags string[]
    Tags to associate with the resource.
    connector_ref str
    Reference of the Connector. To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
    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.
    tags Sequence[str]
    Tags to associate with the resource.
    connectorRef String
    Reference of the Connector. To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
    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.
    tags List<String>
    Tags to associate with the resource.

    Import

    Import account level kubernetes cloud cost connector

     $ pulumi import harness:platform/kubernetesCloudCostConnector:KubernetesCloudCostConnector example <connector_id>
    

    Import org level kubernetes cloud cost connector

     $ pulumi import harness:platform/kubernetesCloudCostConnector:KubernetesCloudCostConnector example <ord_id>/<connector_id>
    

    Import project level kubernetes cloud cost connector

     $ pulumi import harness:platform/kubernetesCloudCostConnector:KubernetesCloudCostConnector example <org_id>/<project_id>/<connector_id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    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