1. Packages
  2. Harness
  3. API Docs
  4. PlatformCcmFilters
Harness v0.3.2 published on Monday, Sep 16, 2024 by Pulumi

harness.PlatformCcmFilters

Explore with Pulumi AI

harness logo
Harness v0.3.2 published on Monday, Sep 16, 2024 by Pulumi

    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",
    });
    
    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")
    
    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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    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
    

    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 string
    The unique name of the resource.
    args PlatformCcmFiltersArgs
    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 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 string
    The unique name of the resource.
    args PlatformCcmFiltersArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PlatformCcmFiltersArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args 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",
    });
    
    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"),
    })
    
    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());
    
    platform_ccm_filters_resource = harness.PlatformCcmFilters("platformCcmFiltersResource",
        filter_properties=harness.PlatformCcmFiltersFilterPropertiesArgs(
            filter_type="string",
            tags=["string"],
        ),
        identifier="string",
        type="string",
        filter_visibility="string",
        name="string",
        org_id="string",
        project_id="string")
    
    const platformCcmFiltersResource = new harness.PlatformCcmFilters("platformCcmFiltersResource", {
        filterProperties: {
            filterType: "string",
            tags: ["string"],
        },
        identifier: "string",
        type: "string",
        filterVisibility: "string",
        name: "string",
        orgId: "string",
        projectId: "string",
    });
    
    type: harness:PlatformCcmFilters
    properties:
        filterProperties:
            filterType: string
            tags:
                - string
        filterVisibility: string
        identifier: string
        name: string
        orgId: string
        projectId: string
        type: string
    

    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

    The PlatformCcmFilters resource accepts the following input properties:

    FilterProperties PlatformCcmFiltersFilterProperties
    Properties of the filters entity defined in Harness.
    Identifier string
    Unique identifier of the resource.
    Type 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 PlatformCcmFiltersFilterPropertiesArgs
    Properties of the filters entity defined in Harness.
    Identifier string
    Unique identifier of the resource.
    Type 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 PlatformCcmFiltersFilterProperties
    Properties of the filters entity defined in Harness.
    identifier String
    Unique identifier of the resource.
    type 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 PlatformCcmFiltersFilterProperties
    Properties of the filters entity defined in Harness.
    identifier string
    Unique identifier of the resource.
    type 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 PlatformCcmFiltersFilterPropertiesArgs
    Properties of the filters entity defined in Harness.
    identifier str
    Unique identifier of the resource.
    type 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 Property Map
    Properties of the filters entity defined in Harness.
    identifier String
    Unique identifier of the resource.
    type 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)
    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:
    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 string
    Type of CCM filters.
    Tags List<string>
    Tags to associate with the resource. Tags should be in the form name:value.
    FilterType string
    Type of CCM filters.
    Tags []string
    Tags to associate with the resource. Tags should be in the form name:value.
    filterType String
    Type of CCM filters.
    tags List<String>
    Tags to associate with the resource. Tags should be in the form name:value.
    filterType string
    Type of CCM filters.
    tags string[]
    Tags to associate with the resource. Tags should be in the form name:value.
    filter_type str
    Type of CCM filters.
    tags Sequence[str]
    Tags to associate with the resource. Tags should be in the form name:value.
    filterType 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>
    

    Import org level ccm filter

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

    Import project level ccm filter

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

    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.
    harness logo
    Harness v0.3.2 published on Monday, Sep 16, 2024 by Pulumi