com.pulumi.aws.xray.kotlin.GroupArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.xray.kotlin
import com.pulumi.aws.xray.GroupArgs.builder
import com.pulumi.aws.xray.kotlin.inputs.GroupInsightsConfigurationArgs
import com.pulumi.aws.xray.kotlin.inputs.GroupInsightsConfigurationArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Creates and manages an AWS XRay Group.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = new aws.xray.Group("example", {
* groupName: "example",
* filterExpression: "responsetime > 5",
* insightsConfiguration: {
* insightsEnabled: true,
* notificationsEnabled: true,
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.xray.Group("example",
* group_name="example",
* filter_expression="responsetime > 5",
* insights_configuration={
* "insights_enabled": True,
* "notifications_enabled": True,
* })
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = new Aws.Xray.Group("example", new()
* {
* GroupName = "example",
* FilterExpression = "responsetime > 5",
* InsightsConfiguration = new Aws.Xray.Inputs.GroupInsightsConfigurationArgs
* {
* InsightsEnabled = true,
* NotificationsEnabled = true,
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/xray"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := xray.NewGroup(ctx, "example", &xray.GroupArgs{
* GroupName: pulumi.String("example"),
* FilterExpression: pulumi.String("responsetime > 5"),
* InsightsConfiguration: &xray.GroupInsightsConfigurationArgs{
* InsightsEnabled: pulumi.Bool(true),
* NotificationsEnabled: pulumi.Bool(true),
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.xray.Group;
* import com.pulumi.aws.xray.GroupArgs;
* import com.pulumi.aws.xray.inputs.GroupInsightsConfigurationArgs;
* 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 example = new Group("example", GroupArgs.builder()
* .groupName("example")
* .filterExpression("responsetime > 5")
* .insightsConfiguration(GroupInsightsConfigurationArgs.builder()
* .insightsEnabled(true)
* .notificationsEnabled(true)
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:xray:Group
* properties:
* groupName: example
* filterExpression: responsetime > 5
* insightsConfiguration:
* insightsEnabled: true
* notificationsEnabled: true
* ```
*
* ## Import
* Using `pulumi import`, import XRay Groups using the ARN. For example:
* ```sh
* $ pulumi import aws:xray/group:Group example arn:aws:xray:us-west-2:1234567890:group/example-group/TNGX7SW5U6QY36T4ZMOUA3HVLBYCZTWDIOOXY3CJAXTHSS3YCWUA
* ```
* @property filterExpression The filter expression defining criteria by which to group traces. more info can be found in official [docs](https://docs.aws.amazon.com/xray/latest/devguide/xray-console-filters.html).
* @property groupName The name of the group.
* @property insightsConfiguration Configuration options for enabling insights.
* @property tags Key-value mapping of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level
*/
public data class GroupArgs(
public val filterExpression: Output? = null,
public val groupName: Output? = null,
public val insightsConfiguration: Output? = null,
public val tags: Output
© 2015 - 2024 Weber Informatics LLC | Privacy Policy