harness.platform.KubernetesCloudCostConnector
Explore with Pulumi AI
Resource for creating a Kubernetes Cloud Cost connector.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
const example = new harness.platform.KubernetesCloudCostConnector("example", {
identifier: "identifier",
name: "name",
description: "example",
tags: ["foo:bar"],
featuresEnableds: [
"VISIBILITY",
"OPTIMIZATION",
],
connectorRef: "connector_ref",
});
import pulumi
import pulumi_harness as harness
example = harness.platform.KubernetesCloudCostConnector("example",
identifier="identifier",
name="name",
description="example",
tags=["foo:bar"],
features_enableds=[
"VISIBILITY",
"OPTIMIZATION",
],
connector_ref="connector_ref")
package main
import (
"github.com/pulumi/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{
Identifier: pulumi.String("identifier"),
Name: pulumi.String("name"),
Description: pulumi.String("example"),
Tags: pulumi.StringArray{
pulumi.String("foo:bar"),
},
FeaturesEnableds: pulumi.StringArray{
pulumi.String("VISIBILITY"),
pulumi.String("OPTIMIZATION"),
},
ConnectorRef: pulumi.String("connector_ref"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;
return await Deployment.RunAsync(() =>
{
var example = new Harness.Platform.KubernetesCloudCostConnector("example", new()
{
Identifier = "identifier",
Name = "name",
Description = "example",
Tags = new[]
{
"foo:bar",
},
FeaturesEnableds = new[]
{
"VISIBILITY",
"OPTIMIZATION",
},
ConnectorRef = "connector_ref",
});
});
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()
.identifier("identifier")
.name("name")
.description("example")
.tags("foo:bar")
.featuresEnableds(
"VISIBILITY",
"OPTIMIZATION")
.connectorRef("connector_ref")
.build());
}
}
resources:
example:
type: harness:platform:KubernetesCloudCostConnector
properties:
identifier: identifier
name: name
description: example
tags:
- foo:bar
featuresEnableds:
- VISIBILITY
- OPTIMIZATION
connectorRef: connector_ref
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.
Constructor 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:
- Connector
Ref 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}.
- Features
Enableds 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.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- List<string>
- Tags to associate with the resource.
- Connector
Ref 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}.
- Features
Enableds []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.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- []string
- Tags to associate with the resource.
- connector
Ref 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}.
- features
Enableds 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.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- List<String>
- Tags to associate with the resource.
- connector
Ref 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}.
- features
Enableds 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.
- org
Id string - Unique identifier of the organization.
- project
Id string - Unique identifier of the project.
- 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.
- Sequence[str]
- Tags to associate with the resource.
- connector
Ref 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}.
- features
Enableds 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.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- 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.
- Connector
Ref 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.
- Features
Enableds 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.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- List<string>
- Tags to associate with the resource.
- Connector
Ref 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.
- Features
Enableds []string - Indicates which feature to enable among Billing, Optimization, and Visibility.
- Identifier string
- Unique identifier of the resource.
- Name string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- []string
- Tags to associate with the resource.
- connector
Ref 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.
- features
Enableds 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.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- List<String>
- Tags to associate with the resource.
- connector
Ref 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.
- features
Enableds string[] - Indicates which feature to enable among Billing, Optimization, and Visibility.
- identifier string
- Unique identifier of the resource.
- name string
- Name of the resource.
- org
Id string - Unique identifier of the organization.
- project
Id string - Unique identifier of the project.
- 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.
- Sequence[str]
- Tags to associate with the resource.
- connector
Ref 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.
- features
Enableds 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.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- 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 pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harness
Terraform Provider.