1. Packages
  2. Harness Provider
  3. API Docs
  4. PlatformCcmFilters
Harness v0.7.3 published on Friday, Apr 18, 2025 by Pulumi

harness.PlatformCcmFilters

Explore with Pulumi AI

Resource for creating a Harness CCM Filters.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";

const test = new harness.PlatformCcmFilters("test", {
    identifier: "identifier",
    name: "name",
    orgId: "org_id",
    projectId: "project_id",
    type: "CCMRecommendation",
    filterProperties: {
        tags: ["foo:bar"],
        filterType: "CCMRecommendation",
    },
    filterVisibility: "EveryOne",
});
Copy
import pulumi
import pulumi_harness as harness

test = harness.PlatformCcmFilters("test",
    identifier="identifier",
    name="name",
    org_id="org_id",
    project_id="project_id",
    type="CCMRecommendation",
    filter_properties={
        "tags": ["foo:bar"],
        "filter_type": "CCMRecommendation",
    },
    filter_visibility="EveryOne")
Copy
package main

import (
	"github.com/pulumi/pulumi-harness/sdk/go/harness"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := harness.NewPlatformCcmFilters(ctx, "test", &harness.PlatformCcmFiltersArgs{
			Identifier: pulumi.String("identifier"),
			Name:       pulumi.String("name"),
			OrgId:      pulumi.String("org_id"),
			ProjectId:  pulumi.String("project_id"),
			Type:       pulumi.String("CCMRecommendation"),
			FilterProperties: &harness.PlatformCcmFiltersFilterPropertiesArgs{
				Tags: pulumi.StringArray{
					pulumi.String("foo:bar"),
				},
				FilterType: pulumi.String("CCMRecommendation"),
			},
			FilterVisibility: pulumi.String("EveryOne"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;

return await Deployment.RunAsync(() => 
{
    var test = new Harness.PlatformCcmFilters("test", new()
    {
        Identifier = "identifier",
        Name = "name",
        OrgId = "org_id",
        ProjectId = "project_id",
        Type = "CCMRecommendation",
        FilterProperties = new Harness.Inputs.PlatformCcmFiltersFilterPropertiesArgs
        {
            Tags = new[]
            {
                "foo:bar",
            },
            FilterType = "CCMRecommendation",
        },
        FilterVisibility = "EveryOne",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.PlatformCcmFilters;
import com.pulumi.harness.PlatformCcmFiltersArgs;
import com.pulumi.harness.inputs.PlatformCcmFiltersFilterPropertiesArgs;
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 test = new PlatformCcmFilters("test", PlatformCcmFiltersArgs.builder()
            .identifier("identifier")
            .name("name")
            .orgId("org_id")
            .projectId("project_id")
            .type("CCMRecommendation")
            .filterProperties(PlatformCcmFiltersFilterPropertiesArgs.builder()
                .tags("foo:bar")
                .filterType("CCMRecommendation")
                .build())
            .filterVisibility("EveryOne")
            .build());

    }
}
Copy
resources:
  test:
    type: harness:PlatformCcmFilters
    properties:
      identifier: identifier
      name: name
      orgId: org_id
      projectId: project_id
      type: CCMRecommendation
      filterProperties:
        tags:
          - foo:bar
        filterType: CCMRecommendation
      filterVisibility: EveryOne
Copy

Create PlatformCcmFilters Resource

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

Constructor syntax

new PlatformCcmFilters(name: string, args: PlatformCcmFiltersArgs, opts?: CustomResourceOptions);
@overload
def PlatformCcmFilters(resource_name: str,
                       args: PlatformCcmFiltersArgs,
                       opts: Optional[ResourceOptions] = None)

@overload
def PlatformCcmFilters(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       filter_properties: Optional[PlatformCcmFiltersFilterPropertiesArgs] = None,
                       identifier: Optional[str] = None,
                       type: Optional[str] = None,
                       filter_visibility: Optional[str] = None,
                       name: Optional[str] = None,
                       org_id: Optional[str] = None,
                       project_id: Optional[str] = None)
func NewPlatformCcmFilters(ctx *Context, name string, args PlatformCcmFiltersArgs, opts ...ResourceOption) (*PlatformCcmFilters, error)
public PlatformCcmFilters(string name, PlatformCcmFiltersArgs args, CustomResourceOptions? opts = null)
public PlatformCcmFilters(String name, PlatformCcmFiltersArgs args)
public PlatformCcmFilters(String name, PlatformCcmFiltersArgs args, CustomResourceOptions options)
type: harness:PlatformCcmFilters
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. PlatformCcmFiltersArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. PlatformCcmFiltersArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. PlatformCcmFiltersArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. PlatformCcmFiltersArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. PlatformCcmFiltersArgs
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 platformCcmFiltersResource = new Harness.PlatformCcmFilters("platformCcmFiltersResource", new()
{
    FilterProperties = new Harness.Inputs.PlatformCcmFiltersFilterPropertiesArgs
    {
        FilterType = "string",
        Tags = new[]
        {
            "string",
        },
    },
    Identifier = "string",
    Type = "string",
    FilterVisibility = "string",
    Name = "string",
    OrgId = "string",
    ProjectId = "string",
});
Copy
example, err := harness.NewPlatformCcmFilters(ctx, "platformCcmFiltersResource", &harness.PlatformCcmFiltersArgs{
	FilterProperties: &harness.PlatformCcmFiltersFilterPropertiesArgs{
		FilterType: pulumi.String("string"),
		Tags: pulumi.StringArray{
			pulumi.String("string"),
		},
	},
	Identifier:       pulumi.String("string"),
	Type:             pulumi.String("string"),
	FilterVisibility: pulumi.String("string"),
	Name:             pulumi.String("string"),
	OrgId:            pulumi.String("string"),
	ProjectId:        pulumi.String("string"),
})
Copy
var platformCcmFiltersResource = new PlatformCcmFilters("platformCcmFiltersResource", PlatformCcmFiltersArgs.builder()
    .filterProperties(PlatformCcmFiltersFilterPropertiesArgs.builder()
        .filterType("string")
        .tags("string")
        .build())
    .identifier("string")
    .type("string")
    .filterVisibility("string")
    .name("string")
    .orgId("string")
    .projectId("string")
    .build());
Copy
platform_ccm_filters_resource = harness.PlatformCcmFilters("platformCcmFiltersResource",
    filter_properties={
        "filter_type": "string",
        "tags": ["string"],
    },
    identifier="string",
    type="string",
    filter_visibility="string",
    name="string",
    org_id="string",
    project_id="string")
Copy
const platformCcmFiltersResource = new harness.PlatformCcmFilters("platformCcmFiltersResource", {
    filterProperties: {
        filterType: "string",
        tags: ["string"],
    },
    identifier: "string",
    type: "string",
    filterVisibility: "string",
    name: "string",
    orgId: "string",
    projectId: "string",
});
Copy
type: harness:PlatformCcmFilters
properties:
    filterProperties:
        filterType: string
        tags:
            - string
    filterVisibility: string
    identifier: string
    name: string
    orgId: string
    projectId: string
    type: string
Copy

PlatformCcmFilters Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The PlatformCcmFilters resource accepts the following input properties:

FilterProperties This property is required. PlatformCcmFiltersFilterProperties
Properties of the filters entity defined in Harness.
Identifier This property is required. string
Unique identifier of the resource.
Type This property is required. string
Type of ccm filters.
FilterVisibility string
This indicates visibility of filters. By default, everyone can view this filter..
Name string
Name of the ccm filters.
OrgId string
Organization Identifier for the Entity.
ProjectId string
Project Identifier for the Entity.
FilterProperties This property is required. PlatformCcmFiltersFilterPropertiesArgs
Properties of the filters entity defined in Harness.
Identifier This property is required. string
Unique identifier of the resource.
Type This property is required. string
Type of ccm filters.
FilterVisibility string
This indicates visibility of filters. By default, everyone can view this filter..
Name string
Name of the ccm filters.
OrgId string
Organization Identifier for the Entity.
ProjectId string
Project Identifier for the Entity.
filterProperties This property is required. PlatformCcmFiltersFilterProperties
Properties of the filters entity defined in Harness.
identifier This property is required. String
Unique identifier of the resource.
type This property is required. String
Type of ccm filters.
filterVisibility String
This indicates visibility of filters. By default, everyone can view this filter..
name String
Name of the ccm filters.
orgId String
Organization Identifier for the Entity.
projectId String
Project Identifier for the Entity.
filterProperties This property is required. PlatformCcmFiltersFilterProperties
Properties of the filters entity defined in Harness.
identifier This property is required. string
Unique identifier of the resource.
type This property is required. string
Type of ccm filters.
filterVisibility string
This indicates visibility of filters. By default, everyone can view this filter..
name string
Name of the ccm filters.
orgId string
Organization Identifier for the Entity.
projectId string
Project Identifier for the Entity.
filter_properties This property is required. PlatformCcmFiltersFilterPropertiesArgs
Properties of the filters entity defined in Harness.
identifier This property is required. str
Unique identifier of the resource.
type This property is required. str
Type of ccm filters.
filter_visibility str
This indicates visibility of filters. By default, everyone can view this filter..
name str
Name of the ccm filters.
org_id str
Organization Identifier for the Entity.
project_id str
Project Identifier for the Entity.
filterProperties This property is required. Property Map
Properties of the filters entity defined in Harness.
identifier This property is required. String
Unique identifier of the resource.
type This property is required. String
Type of ccm filters.
filterVisibility String
This indicates visibility of filters. By default, everyone can view this filter..
name String
Name of the ccm filters.
orgId String
Organization Identifier for the Entity.
projectId String
Project Identifier for the Entity.

Outputs

All input properties are implicitly available as output properties. Additionally, the PlatformCcmFilters 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 PlatformCcmFilters Resource

Get an existing PlatformCcmFilters 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?: PlatformCcmFiltersState, opts?: CustomResourceOptions): PlatformCcmFilters
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        filter_properties: Optional[PlatformCcmFiltersFilterPropertiesArgs] = None,
        filter_visibility: Optional[str] = None,
        identifier: Optional[str] = None,
        name: Optional[str] = None,
        org_id: Optional[str] = None,
        project_id: Optional[str] = None,
        type: Optional[str] = None) -> PlatformCcmFilters
func GetPlatformCcmFilters(ctx *Context, name string, id IDInput, state *PlatformCcmFiltersState, opts ...ResourceOption) (*PlatformCcmFilters, error)
public static PlatformCcmFilters Get(string name, Input<string> id, PlatformCcmFiltersState? state, CustomResourceOptions? opts = null)
public static PlatformCcmFilters get(String name, Output<String> id, PlatformCcmFiltersState state, CustomResourceOptions options)
resources:  _:    type: harness:PlatformCcmFilters    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
FilterProperties PlatformCcmFiltersFilterProperties
Properties of the filters entity defined in Harness.
FilterVisibility string
This indicates visibility of filters. By default, everyone can view this filter..
Identifier string
Unique identifier of the resource.
Name string
Name of the ccm filters.
OrgId string
Organization Identifier for the Entity.
ProjectId string
Project Identifier for the Entity.
Type string
Type of ccm filters.
FilterProperties PlatformCcmFiltersFilterPropertiesArgs
Properties of the filters entity defined in Harness.
FilterVisibility string
This indicates visibility of filters. By default, everyone can view this filter..
Identifier string
Unique identifier of the resource.
Name string
Name of the ccm filters.
OrgId string
Organization Identifier for the Entity.
ProjectId string
Project Identifier for the Entity.
Type string
Type of ccm filters.
filterProperties PlatformCcmFiltersFilterProperties
Properties of the filters entity defined in Harness.
filterVisibility String
This indicates visibility of filters. By default, everyone can view this filter..
identifier String
Unique identifier of the resource.
name String
Name of the ccm filters.
orgId String
Organization Identifier for the Entity.
projectId String
Project Identifier for the Entity.
type String
Type of ccm filters.
filterProperties PlatformCcmFiltersFilterProperties
Properties of the filters entity defined in Harness.
filterVisibility string
This indicates visibility of filters. By default, everyone can view this filter..
identifier string
Unique identifier of the resource.
name string
Name of the ccm filters.
orgId string
Organization Identifier for the Entity.
projectId string
Project Identifier for the Entity.
type string
Type of ccm filters.
filter_properties PlatformCcmFiltersFilterPropertiesArgs
Properties of the filters entity defined in Harness.
filter_visibility str
This indicates visibility of filters. By default, everyone can view this filter..
identifier str
Unique identifier of the resource.
name str
Name of the ccm filters.
org_id str
Organization Identifier for the Entity.
project_id str
Project Identifier for the Entity.
type str
Type of ccm filters.
filterProperties Property Map
Properties of the filters entity defined in Harness.
filterVisibility String
This indicates visibility of filters. By default, everyone can view this filter..
identifier String
Unique identifier of the resource.
name String
Name of the ccm filters.
orgId String
Organization Identifier for the Entity.
projectId String
Project Identifier for the Entity.
type String
Type of ccm filters.

Supporting Types

PlatformCcmFiltersFilterProperties
, PlatformCcmFiltersFilterPropertiesArgs

FilterType This property is required. string
Type of CCM filters.
Tags List<string>
Tags to associate with the resource. Tags should be in the form name:value.
FilterType This property is required. string
Type of CCM filters.
Tags []string
Tags to associate with the resource. Tags should be in the form name:value.
filterType This property is required. String
Type of CCM filters.
tags List<String>
Tags to associate with the resource. Tags should be in the form name:value.
filterType This property is required. string
Type of CCM filters.
tags string[]
Tags to associate with the resource. Tags should be in the form name:value.
filter_type This property is required. str
Type of CCM filters.
tags Sequence[str]
Tags to associate with the resource. Tags should be in the form name:value.
filterType This property is required. String
Type of CCM filters.
tags List<String>
Tags to associate with the resource. Tags should be in the form name:value.

Import

Import account level ccm filter

$ pulumi import harness:index/platformCcmFilters:PlatformCcmFilters example <filter_id>/<type>
Copy

Import org level ccm filter

$ pulumi import harness:index/platformCcmFilters:PlatformCcmFilters example <ord_id>/<filter_id>/<type>
Copy

Import project level ccm filter

$ pulumi import harness:index/platformCcmFilters:PlatformCcmFilters example <org_id>/<project_id>/<filter_id>/<type>
Copy

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.