com.pulumi.aws.ec2.kotlin.VpcNetworkPerformanceMetricSubscriptionArgs.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.ec2.kotlin
import com.pulumi.aws.ec2.VpcNetworkPerformanceMetricSubscriptionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Provides a resource to manage an Infrastructure Performance subscription.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = new aws.ec2.VpcNetworkPerformanceMetricSubscription("example", {
* source: "us-east-1",
* destination: "us-west-1",
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.ec2.VpcNetworkPerformanceMetricSubscription("example",
* source="us-east-1",
* destination="us-west-1")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = new Aws.Ec2.VpcNetworkPerformanceMetricSubscription("example", new()
* {
* Source = "us-east-1",
* Destination = "us-west-1",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := ec2.NewVpcNetworkPerformanceMetricSubscription(ctx, "example", &ec2.VpcNetworkPerformanceMetricSubscriptionArgs{
* Source: pulumi.String("us-east-1"),
* Destination: pulumi.String("us-west-1"),
* })
* 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.ec2.VpcNetworkPerformanceMetricSubscription;
* import com.pulumi.aws.ec2.VpcNetworkPerformanceMetricSubscriptionArgs;
* 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 VpcNetworkPerformanceMetricSubscription("example", VpcNetworkPerformanceMetricSubscriptionArgs.builder()
* .source("us-east-1")
* .destination("us-west-1")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:ec2:VpcNetworkPerformanceMetricSubscription
* properties:
* source: us-east-1
* destination: us-west-1
* ```
*
* @property destination The target Region or Availability Zone that the metric subscription is enabled for. For example, `eu-west-1`.
* @property metric The metric used for the enabled subscription. Valid values: `aggregate-latency`. Default: `aggregate-latency`.
* @property source The source Region or Availability Zone that the metric subscription is enabled for. For example, `us-east-1`.
* @property statistic The statistic used for the enabled subscription. Valid values: `p50`. Default: `p50`.
*/
public data class VpcNetworkPerformanceMetricSubscriptionArgs(
public val destination: Output? = null,
public val metric: Output? = null,
public val source: Output? = null,
public val statistic: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.ec2.VpcNetworkPerformanceMetricSubscriptionArgs =
com.pulumi.aws.ec2.VpcNetworkPerformanceMetricSubscriptionArgs.builder()
.destination(destination?.applyValue({ args0 -> args0 }))
.metric(metric?.applyValue({ args0 -> args0 }))
.source(source?.applyValue({ args0 -> args0 }))
.statistic(statistic?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [VpcNetworkPerformanceMetricSubscriptionArgs].
*/
@PulumiTagMarker
public class VpcNetworkPerformanceMetricSubscriptionArgsBuilder internal constructor() {
private var destination: Output? = null
private var metric: Output? = null
private var source: Output? = null
private var statistic: Output? = null
/**
* @param value The target Region or Availability Zone that the metric subscription is enabled for. For example, `eu-west-1`.
*/
@JvmName("qrqhndsjgvdsnbur")
public suspend fun destination(`value`: Output) {
this.destination = value
}
/**
* @param value The metric used for the enabled subscription. Valid values: `aggregate-latency`. Default: `aggregate-latency`.
*/
@JvmName("gxnlrnxmodqggbyv")
public suspend fun metric(`value`: Output) {
this.metric = value
}
/**
* @param value The source Region or Availability Zone that the metric subscription is enabled for. For example, `us-east-1`.
*/
@JvmName("yrpkchboauayuxjo")
public suspend fun source(`value`: Output) {
this.source = value
}
/**
* @param value The statistic used for the enabled subscription. Valid values: `p50`. Default: `p50`.
*/
@JvmName("huevcqpvmfxsdrig")
public suspend fun statistic(`value`: Output) {
this.statistic = value
}
/**
* @param value The target Region or Availability Zone that the metric subscription is enabled for. For example, `eu-west-1`.
*/
@JvmName("tudsqqfhhtvbbbxv")
public suspend fun destination(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.destination = mapped
}
/**
* @param value The metric used for the enabled subscription. Valid values: `aggregate-latency`. Default: `aggregate-latency`.
*/
@JvmName("wigxhcdlvyfnviir")
public suspend fun metric(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.metric = mapped
}
/**
* @param value The source Region or Availability Zone that the metric subscription is enabled for. For example, `us-east-1`.
*/
@JvmName("wmskcajjcohtoijw")
public suspend fun source(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.source = mapped
}
/**
* @param value The statistic used for the enabled subscription. Valid values: `p50`. Default: `p50`.
*/
@JvmName("pwbtnsfmwalxamsh")
public suspend fun statistic(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.statistic = mapped
}
internal fun build(): VpcNetworkPerformanceMetricSubscriptionArgs =
VpcNetworkPerformanceMetricSubscriptionArgs(
destination = destination,
metric = metric,
source = source,
statistic = statistic,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy