datadog.ComplianceResourceEvaluationFilter
Explore with Pulumi AI
Provides a Datadog ComplianceResourceEvaluationFilter resource. This can be used to create and manage a compliance resource evaluation filter.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";
// Manage Datadog compliance resource evaluation filters
const basicFilter = new datadog.ComplianceResourceEvaluationFilter("basic_filter", {
tags: ["tag1:val1"],
cloudProvider: "aws",
resourceId: "000000000000",
});
import pulumi
import pulumi_datadog as datadog
# Manage Datadog compliance resource evaluation filters
basic_filter = datadog.ComplianceResourceEvaluationFilter("basic_filter",
tags=["tag1:val1"],
cloud_provider="aws",
resource_id="000000000000")
package main
import (
"github.com/pulumi/pulumi-datadog/sdk/v4/go/datadog"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Manage Datadog compliance resource evaluation filters
_, err := datadog.NewComplianceResourceEvaluationFilter(ctx, "basic_filter", &datadog.ComplianceResourceEvaluationFilterArgs{
Tags: pulumi.StringArray{
pulumi.String("tag1:val1"),
},
CloudProvider: pulumi.String("aws"),
ResourceId: pulumi.String("000000000000"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Datadog = Pulumi.Datadog;
return await Deployment.RunAsync(() =>
{
// Manage Datadog compliance resource evaluation filters
var basicFilter = new Datadog.ComplianceResourceEvaluationFilter("basic_filter", new()
{
Tags = new[]
{
"tag1:val1",
},
CloudProvider = "aws",
ResourceId = "000000000000",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.datadog.ComplianceResourceEvaluationFilter;
import com.pulumi.datadog.ComplianceResourceEvaluationFilterArgs;
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) {
// Manage Datadog compliance resource evaluation filters
var basicFilter = new ComplianceResourceEvaluationFilter("basicFilter", ComplianceResourceEvaluationFilterArgs.builder()
.tags("tag1:val1")
.cloudProvider("aws")
.resourceId("000000000000")
.build());
}
}
resources:
# Manage Datadog compliance resource evaluation filters
basicFilter:
type: datadog:ComplianceResourceEvaluationFilter
name: basic_filter
properties:
tags:
- tag1:val1
cloudProvider: aws
resourceId: '000000000000'
Create ComplianceResourceEvaluationFilter Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ComplianceResourceEvaluationFilter(name: string, args: ComplianceResourceEvaluationFilterArgs, opts?: CustomResourceOptions);
@overload
def ComplianceResourceEvaluationFilter(resource_name: str,
args: ComplianceResourceEvaluationFilterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ComplianceResourceEvaluationFilter(resource_name: str,
opts: Optional[ResourceOptions] = None,
cloud_provider: Optional[str] = None,
resource_id: Optional[str] = None,
tags: Optional[Sequence[str]] = None)
func NewComplianceResourceEvaluationFilter(ctx *Context, name string, args ComplianceResourceEvaluationFilterArgs, opts ...ResourceOption) (*ComplianceResourceEvaluationFilter, error)
public ComplianceResourceEvaluationFilter(string name, ComplianceResourceEvaluationFilterArgs args, CustomResourceOptions? opts = null)
public ComplianceResourceEvaluationFilter(String name, ComplianceResourceEvaluationFilterArgs args)
public ComplianceResourceEvaluationFilter(String name, ComplianceResourceEvaluationFilterArgs args, CustomResourceOptions options)
type: datadog:ComplianceResourceEvaluationFilter
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 ComplianceResourceEvaluationFilterArgs
- 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 ComplianceResourceEvaluationFilterArgs
- 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 ComplianceResourceEvaluationFilterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ComplianceResourceEvaluationFilterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ComplianceResourceEvaluationFilterArgs
- 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 complianceResourceEvaluationFilterResource = new Datadog.ComplianceResourceEvaluationFilter("complianceResourceEvaluationFilterResource", new()
{
CloudProvider = "string",
ResourceId = "string",
Tags = new[]
{
"string",
},
});
example, err := datadog.NewComplianceResourceEvaluationFilter(ctx, "complianceResourceEvaluationFilterResource", &datadog.ComplianceResourceEvaluationFilterArgs{
CloudProvider: pulumi.String("string"),
ResourceId: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
})
var complianceResourceEvaluationFilterResource = new ComplianceResourceEvaluationFilter("complianceResourceEvaluationFilterResource", ComplianceResourceEvaluationFilterArgs.builder()
.cloudProvider("string")
.resourceId("string")
.tags("string")
.build());
compliance_resource_evaluation_filter_resource = datadog.ComplianceResourceEvaluationFilter("complianceResourceEvaluationFilterResource",
cloud_provider="string",
resource_id="string",
tags=["string"])
const complianceResourceEvaluationFilterResource = new datadog.ComplianceResourceEvaluationFilter("complianceResourceEvaluationFilterResource", {
cloudProvider: "string",
resourceId: "string",
tags: ["string"],
});
type: datadog:ComplianceResourceEvaluationFilter
properties:
cloudProvider: string
resourceId: string
tags:
- string
ComplianceResourceEvaluationFilter 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 ComplianceResourceEvaluationFilter resource accepts the following input properties:
- Cloud
Provider string - The cloud provider of the filter's targeted resource. Only
aws
,gcp
, orazure
are considered valid cloud providers. - Resource
Id string - The ID of the of the filter's targeted resource. Different cloud providers target different resource IDs: -
aws
: account ID -gcp
: project ID -azure
: subscription ID - List<string>
- List of tags to filter misconfiguration detections. Each entry should follow the format: "key":"value".
- Cloud
Provider string - The cloud provider of the filter's targeted resource. Only
aws
,gcp
, orazure
are considered valid cloud providers. - Resource
Id string - The ID of the of the filter's targeted resource. Different cloud providers target different resource IDs: -
aws
: account ID -gcp
: project ID -azure
: subscription ID - []string
- List of tags to filter misconfiguration detections. Each entry should follow the format: "key":"value".
- cloud
Provider String - The cloud provider of the filter's targeted resource. Only
aws
,gcp
, orazure
are considered valid cloud providers. - resource
Id String - The ID of the of the filter's targeted resource. Different cloud providers target different resource IDs: -
aws
: account ID -gcp
: project ID -azure
: subscription ID - List<String>
- List of tags to filter misconfiguration detections. Each entry should follow the format: "key":"value".
- cloud
Provider string - The cloud provider of the filter's targeted resource. Only
aws
,gcp
, orazure
are considered valid cloud providers. - resource
Id string - The ID of the of the filter's targeted resource. Different cloud providers target different resource IDs: -
aws
: account ID -gcp
: project ID -azure
: subscription ID - string[]
- List of tags to filter misconfiguration detections. Each entry should follow the format: "key":"value".
- cloud_
provider str - The cloud provider of the filter's targeted resource. Only
aws
,gcp
, orazure
are considered valid cloud providers. - resource_
id str - The ID of the of the filter's targeted resource. Different cloud providers target different resource IDs: -
aws
: account ID -gcp
: project ID -azure
: subscription ID - Sequence[str]
- List of tags to filter misconfiguration detections. Each entry should follow the format: "key":"value".
- cloud
Provider String - The cloud provider of the filter's targeted resource. Only
aws
,gcp
, orazure
are considered valid cloud providers. - resource
Id String - The ID of the of the filter's targeted resource. Different cloud providers target different resource IDs: -
aws
: account ID -gcp
: project ID -azure
: subscription ID - List<String>
- List of tags to filter misconfiguration detections. Each entry should follow the format: "key":"value".
Outputs
All input properties are implicitly available as output properties. Additionally, the ComplianceResourceEvaluationFilter 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 ComplianceResourceEvaluationFilter Resource
Get an existing ComplianceResourceEvaluationFilter 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?: ComplianceResourceEvaluationFilterState, opts?: CustomResourceOptions): ComplianceResourceEvaluationFilter
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cloud_provider: Optional[str] = None,
resource_id: Optional[str] = None,
tags: Optional[Sequence[str]] = None) -> ComplianceResourceEvaluationFilter
func GetComplianceResourceEvaluationFilter(ctx *Context, name string, id IDInput, state *ComplianceResourceEvaluationFilterState, opts ...ResourceOption) (*ComplianceResourceEvaluationFilter, error)
public static ComplianceResourceEvaluationFilter Get(string name, Input<string> id, ComplianceResourceEvaluationFilterState? state, CustomResourceOptions? opts = null)
public static ComplianceResourceEvaluationFilter get(String name, Output<String> id, ComplianceResourceEvaluationFilterState state, CustomResourceOptions options)
resources: _: type: datadog:ComplianceResourceEvaluationFilter get: id: ${id}
- 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.
- Cloud
Provider string - The cloud provider of the filter's targeted resource. Only
aws
,gcp
, orazure
are considered valid cloud providers. - Resource
Id string - The ID of the of the filter's targeted resource. Different cloud providers target different resource IDs: -
aws
: account ID -gcp
: project ID -azure
: subscription ID - List<string>
- List of tags to filter misconfiguration detections. Each entry should follow the format: "key":"value".
- Cloud
Provider string - The cloud provider of the filter's targeted resource. Only
aws
,gcp
, orazure
are considered valid cloud providers. - Resource
Id string - The ID of the of the filter's targeted resource. Different cloud providers target different resource IDs: -
aws
: account ID -gcp
: project ID -azure
: subscription ID - []string
- List of tags to filter misconfiguration detections. Each entry should follow the format: "key":"value".
- cloud
Provider String - The cloud provider of the filter's targeted resource. Only
aws
,gcp
, orazure
are considered valid cloud providers. - resource
Id String - The ID of the of the filter's targeted resource. Different cloud providers target different resource IDs: -
aws
: account ID -gcp
: project ID -azure
: subscription ID - List<String>
- List of tags to filter misconfiguration detections. Each entry should follow the format: "key":"value".
- cloud
Provider string - The cloud provider of the filter's targeted resource. Only
aws
,gcp
, orazure
are considered valid cloud providers. - resource
Id string - The ID of the of the filter's targeted resource. Different cloud providers target different resource IDs: -
aws
: account ID -gcp
: project ID -azure
: subscription ID - string[]
- List of tags to filter misconfiguration detections. Each entry should follow the format: "key":"value".
- cloud_
provider str - The cloud provider of the filter's targeted resource. Only
aws
,gcp
, orazure
are considered valid cloud providers. - resource_
id str - The ID of the of the filter's targeted resource. Different cloud providers target different resource IDs: -
aws
: account ID -gcp
: project ID -azure
: subscription ID - Sequence[str]
- List of tags to filter misconfiguration detections. Each entry should follow the format: "key":"value".
- cloud
Provider String - The cloud provider of the filter's targeted resource. Only
aws
,gcp
, orazure
are considered valid cloud providers. - resource
Id String - The ID of the of the filter's targeted resource. Different cloud providers target different resource IDs: -
aws
: account ID -gcp
: project ID -azure
: subscription ID - List<String>
- List of tags to filter misconfiguration detections. Each entry should follow the format: "key":"value".
Import
The pulumi import
command can be used, for example:
$ pulumi import datadog:index/complianceResourceEvaluationFilter:ComplianceResourceEvaluationFilter test_filter aws:00000000000000
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Datadog pulumi/pulumi-datadog
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
datadog
Terraform Provider.