cockroach.MetricExportDatadogConfig
Explore with Pulumi AI
DataDog metric export configuration for a cluster.
Create MetricExportDatadogConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MetricExportDatadogConfig(name: string, args: MetricExportDatadogConfigArgs, opts?: CustomResourceOptions);
@overload
def MetricExportDatadogConfig(resource_name: str,
args: MetricExportDatadogConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MetricExportDatadogConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
api_key: Optional[str] = None,
cluster_id: Optional[str] = None,
site: Optional[str] = None)
func NewMetricExportDatadogConfig(ctx *Context, name string, args MetricExportDatadogConfigArgs, opts ...ResourceOption) (*MetricExportDatadogConfig, error)
public MetricExportDatadogConfig(string name, MetricExportDatadogConfigArgs args, CustomResourceOptions? opts = null)
public MetricExportDatadogConfig(String name, MetricExportDatadogConfigArgs args)
public MetricExportDatadogConfig(String name, MetricExportDatadogConfigArgs args, CustomResourceOptions options)
type: cockroach:MetricExportDatadogConfig
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 MetricExportDatadogConfigArgs
- 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 MetricExportDatadogConfigArgs
- 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 MetricExportDatadogConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MetricExportDatadogConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MetricExportDatadogConfigArgs
- 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 metricExportDatadogConfigResource = new Cockroach.MetricExportDatadogConfig("metricExportDatadogConfigResource", new()
{
ApiKey = "string",
ClusterId = "string",
Site = "string",
});
example, err := cockroach.NewMetricExportDatadogConfig(ctx, "metricExportDatadogConfigResource", &cockroach.MetricExportDatadogConfigArgs{
ApiKey: pulumi.String("string"),
ClusterId: pulumi.String("string"),
Site: pulumi.String("string"),
})
var metricExportDatadogConfigResource = new MetricExportDatadogConfig("metricExportDatadogConfigResource", MetricExportDatadogConfigArgs.builder()
.apiKey("string")
.clusterId("string")
.site("string")
.build());
metric_export_datadog_config_resource = cockroach.MetricExportDatadogConfig("metricExportDatadogConfigResource",
api_key="string",
cluster_id="string",
site="string")
const metricExportDatadogConfigResource = new cockroach.MetricExportDatadogConfig("metricExportDatadogConfigResource", {
apiKey: "string",
clusterId: "string",
site: "string",
});
type: cockroach:MetricExportDatadogConfig
properties:
apiKey: string
clusterId: string
site: string
MetricExportDatadogConfig 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 MetricExportDatadogConfig resource accepts the following input properties:
- api_
key str - A Datadog API key.
- cluster_
id str - Cluster ID.
- site str
- The Datadog region to export to.
Outputs
All input properties are implicitly available as output properties. Additionally, the MetricExportDatadogConfig resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- Encodes the possible states that a metric export configuration can be in as it is created, deployed, and disabled.
- User
Message string - Elaborates on the metric export status and hints at how to fix issues that may have occurred during asynchronous operations.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- Encodes the possible states that a metric export configuration can be in as it is created, deployed, and disabled.
- User
Message string - Elaborates on the metric export status and hints at how to fix issues that may have occurred during asynchronous operations.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- Encodes the possible states that a metric export configuration can be in as it is created, deployed, and disabled.
- user
Message String - Elaborates on the metric export status and hints at how to fix issues that may have occurred during asynchronous operations.
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- Encodes the possible states that a metric export configuration can be in as it is created, deployed, and disabled.
- user
Message string - Elaborates on the metric export status and hints at how to fix issues that may have occurred during asynchronous operations.
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- Encodes the possible states that a metric export configuration can be in as it is created, deployed, and disabled.
- user_
message str - Elaborates on the metric export status and hints at how to fix issues that may have occurred during asynchronous operations.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- Encodes the possible states that a metric export configuration can be in as it is created, deployed, and disabled.
- user
Message String - Elaborates on the metric export status and hints at how to fix issues that may have occurred during asynchronous operations.
Look up Existing MetricExportDatadogConfig Resource
Get an existing MetricExportDatadogConfig 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?: MetricExportDatadogConfigState, opts?: CustomResourceOptions): MetricExportDatadogConfig
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
api_key: Optional[str] = None,
cluster_id: Optional[str] = None,
site: Optional[str] = None,
status: Optional[str] = None,
user_message: Optional[str] = None) -> MetricExportDatadogConfig
func GetMetricExportDatadogConfig(ctx *Context, name string, id IDInput, state *MetricExportDatadogConfigState, opts ...ResourceOption) (*MetricExportDatadogConfig, error)
public static MetricExportDatadogConfig Get(string name, Input<string> id, MetricExportDatadogConfigState? state, CustomResourceOptions? opts = null)
public static MetricExportDatadogConfig get(String name, Output<String> id, MetricExportDatadogConfigState 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.
- Api
Key string - A Datadog API key.
- Cluster
Id string - Cluster ID.
- Site string
- The Datadog region to export to.
- Status string
- Encodes the possible states that a metric export configuration can be in as it is created, deployed, and disabled.
- User
Message string - Elaborates on the metric export status and hints at how to fix issues that may have occurred during asynchronous operations.
- Api
Key string - A Datadog API key.
- Cluster
Id string - Cluster ID.
- Site string
- The Datadog region to export to.
- Status string
- Encodes the possible states that a metric export configuration can be in as it is created, deployed, and disabled.
- User
Message string - Elaborates on the metric export status and hints at how to fix issues that may have occurred during asynchronous operations.
- api
Key String - A Datadog API key.
- cluster
Id String - Cluster ID.
- site String
- The Datadog region to export to.
- status String
- Encodes the possible states that a metric export configuration can be in as it is created, deployed, and disabled.
- user
Message String - Elaborates on the metric export status and hints at how to fix issues that may have occurred during asynchronous operations.
- api
Key string - A Datadog API key.
- cluster
Id string - Cluster ID.
- site string
- The Datadog region to export to.
- status string
- Encodes the possible states that a metric export configuration can be in as it is created, deployed, and disabled.
- user
Message string - Elaborates on the metric export status and hints at how to fix issues that may have occurred during asynchronous operations.
- api_
key str - A Datadog API key.
- cluster_
id str - Cluster ID.
- site str
- The Datadog region to export to.
- status str
- Encodes the possible states that a metric export configuration can be in as it is created, deployed, and disabled.
- user_
message str - Elaborates on the metric export status and hints at how to fix issues that may have occurred during asynchronous operations.
- api
Key String - A Datadog API key.
- cluster
Id String - Cluster ID.
- site String
- The Datadog region to export to.
- status String
- Encodes the possible states that a metric export configuration can be in as it is created, deployed, and disabled.
- user
Message String - Elaborates on the metric export status and hints at how to fix issues that may have occurred during asynchronous operations.
Package Details
- Repository
- cockroach pulumiverse/pulumi-cockroach
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cockroach
Terraform Provider.