cockroach.MetricExportCloudwatchConfig
Explore with Pulumi AI
Amazon CloudWatch metric export configuration for a cluster.
Create MetricExportCloudwatchConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MetricExportCloudwatchConfig(name: string, args: MetricExportCloudwatchConfigArgs, opts?: CustomResourceOptions);
@overload
def MetricExportCloudwatchConfig(resource_name: str,
args: MetricExportCloudwatchConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MetricExportCloudwatchConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
role_arn: Optional[str] = None,
log_group_name: Optional[str] = None,
target_region: Optional[str] = None)
func NewMetricExportCloudwatchConfig(ctx *Context, name string, args MetricExportCloudwatchConfigArgs, opts ...ResourceOption) (*MetricExportCloudwatchConfig, error)
public MetricExportCloudwatchConfig(string name, MetricExportCloudwatchConfigArgs args, CustomResourceOptions? opts = null)
public MetricExportCloudwatchConfig(String name, MetricExportCloudwatchConfigArgs args)
public MetricExportCloudwatchConfig(String name, MetricExportCloudwatchConfigArgs args, CustomResourceOptions options)
type: cockroach:MetricExportCloudwatchConfig
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 MetricExportCloudwatchConfigArgs
- 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 MetricExportCloudwatchConfigArgs
- 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 MetricExportCloudwatchConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MetricExportCloudwatchConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MetricExportCloudwatchConfigArgs
- 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 metricExportCloudwatchConfigResource = new Cockroach.MetricExportCloudwatchConfig("metricExportCloudwatchConfigResource", new()
{
ClusterId = "string",
RoleArn = "string",
LogGroupName = "string",
TargetRegion = "string",
});
example, err := cockroach.NewMetricExportCloudwatchConfig(ctx, "metricExportCloudwatchConfigResource", &cockroach.MetricExportCloudwatchConfigArgs{
ClusterId: pulumi.String("string"),
RoleArn: pulumi.String("string"),
LogGroupName: pulumi.String("string"),
TargetRegion: pulumi.String("string"),
})
var metricExportCloudwatchConfigResource = new MetricExportCloudwatchConfig("metricExportCloudwatchConfigResource", MetricExportCloudwatchConfigArgs.builder()
.clusterId("string")
.roleArn("string")
.logGroupName("string")
.targetRegion("string")
.build());
metric_export_cloudwatch_config_resource = cockroach.MetricExportCloudwatchConfig("metricExportCloudwatchConfigResource",
cluster_id="string",
role_arn="string",
log_group_name="string",
target_region="string")
const metricExportCloudwatchConfigResource = new cockroach.MetricExportCloudwatchConfig("metricExportCloudwatchConfigResource", {
clusterId: "string",
roleArn: "string",
logGroupName: "string",
targetRegion: "string",
});
type: cockroach:MetricExportCloudwatchConfig
properties:
clusterId: string
logGroupName: string
roleArn: string
targetRegion: string
MetricExportCloudwatchConfig 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 MetricExportCloudwatchConfig resource accepts the following input properties:
- Cluster
Id string - Cluster ID.
- Role
Arn string - The IAM role used to upload metric segments to the target AWS account.
- Log
Group stringName - The customized AWS CloudWatch log group name.
- Target
Region string - The specific AWS region that the metrics will be exported to.
- Cluster
Id string - Cluster ID.
- Role
Arn string - The IAM role used to upload metric segments to the target AWS account.
- Log
Group stringName - The customized AWS CloudWatch log group name.
- Target
Region string - The specific AWS region that the metrics will be exported to.
- cluster
Id String - Cluster ID.
- role
Arn String - The IAM role used to upload metric segments to the target AWS account.
- log
Group StringName - The customized AWS CloudWatch log group name.
- target
Region String - The specific AWS region that the metrics will be exported to.
- cluster
Id string - Cluster ID.
- role
Arn string - The IAM role used to upload metric segments to the target AWS account.
- log
Group stringName - The customized AWS CloudWatch log group name.
- target
Region string - The specific AWS region that the metrics will be exported to.
- cluster_
id str - Cluster ID.
- role_
arn str - The IAM role used to upload metric segments to the target AWS account.
- log_
group_ strname - The customized AWS CloudWatch log group name.
- target_
region str - The specific AWS region that the metrics will be exported to.
- cluster
Id String - Cluster ID.
- role
Arn String - The IAM role used to upload metric segments to the target AWS account.
- log
Group StringName - The customized AWS CloudWatch log group name.
- target
Region String - The specific AWS region that the metrics will be exported to.
Outputs
All input properties are implicitly available as output properties. Additionally, the MetricExportCloudwatchConfig 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 MetricExportCloudwatchConfig Resource
Get an existing MetricExportCloudwatchConfig 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?: MetricExportCloudwatchConfigState, opts?: CustomResourceOptions): MetricExportCloudwatchConfig
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
log_group_name: Optional[str] = None,
role_arn: Optional[str] = None,
status: Optional[str] = None,
target_region: Optional[str] = None,
user_message: Optional[str] = None) -> MetricExportCloudwatchConfig
func GetMetricExportCloudwatchConfig(ctx *Context, name string, id IDInput, state *MetricExportCloudwatchConfigState, opts ...ResourceOption) (*MetricExportCloudwatchConfig, error)
public static MetricExportCloudwatchConfig Get(string name, Input<string> id, MetricExportCloudwatchConfigState? state, CustomResourceOptions? opts = null)
public static MetricExportCloudwatchConfig get(String name, Output<String> id, MetricExportCloudwatchConfigState 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.
- Cluster
Id string - Cluster ID.
- Log
Group stringName - The customized AWS CloudWatch log group name.
- Role
Arn string - The IAM role used to upload metric segments to the target AWS account.
- Status string
- Encodes the possible states that a metric export configuration can be in as it is created, deployed, and disabled.
- Target
Region string - The specific AWS region that the metrics will be exported to.
- User
Message string - Elaborates on the metric export status and hints at how to fix issues that may have occurred during asynchronous operations.
- Cluster
Id string - Cluster ID.
- Log
Group stringName - The customized AWS CloudWatch log group name.
- Role
Arn string - The IAM role used to upload metric segments to the target AWS account.
- Status string
- Encodes the possible states that a metric export configuration can be in as it is created, deployed, and disabled.
- Target
Region string - The specific AWS region that the metrics will be exported to.
- User
Message string - Elaborates on the metric export status and hints at how to fix issues that may have occurred during asynchronous operations.
- cluster
Id String - Cluster ID.
- log
Group StringName - The customized AWS CloudWatch log group name.
- role
Arn String - The IAM role used to upload metric segments to the target AWS account.
- status String
- Encodes the possible states that a metric export configuration can be in as it is created, deployed, and disabled.
- target
Region String - The specific AWS region that the metrics will be exported to.
- user
Message String - Elaborates on the metric export status and hints at how to fix issues that may have occurred during asynchronous operations.
- cluster
Id string - Cluster ID.
- log
Group stringName - The customized AWS CloudWatch log group name.
- role
Arn string - The IAM role used to upload metric segments to the target AWS account.
- status string
- Encodes the possible states that a metric export configuration can be in as it is created, deployed, and disabled.
- target
Region string - The specific AWS region that the metrics will be exported to.
- user
Message string - Elaborates on the metric export status and hints at how to fix issues that may have occurred during asynchronous operations.
- cluster_
id str - Cluster ID.
- log_
group_ strname - The customized AWS CloudWatch log group name.
- role_
arn str - The IAM role used to upload metric segments to the target AWS account.
- status str
- Encodes the possible states that a metric export configuration can be in as it is created, deployed, and disabled.
- target_
region str - The specific AWS region that the metrics will be exported to.
- user_
message str - Elaborates on the metric export status and hints at how to fix issues that may have occurred during asynchronous operations.
- cluster
Id String - Cluster ID.
- log
Group StringName - The customized AWS CloudWatch log group name.
- role
Arn String - The IAM role used to upload metric segments to the target AWS account.
- status String
- Encodes the possible states that a metric export configuration can be in as it is created, deployed, and disabled.
- target
Region String - The specific AWS region that the metrics will be exported to.
- 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.