Package com.pulumi.aws.ec2
Class VpcNetworkPerformanceMetricSubscription
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.ec2.VpcNetworkPerformanceMetricSubscription
-
public class VpcNetworkPerformanceMetricSubscription extends com.pulumi.resources.CustomResource
Provides a resource to manage an Infrastructure Performance subscription. ## Example Usage <!--Start PulumiCodeChooser --> ```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()); } } ``` <!--End PulumiCodeChooser -->
-
-
Constructor Summary
Constructors Constructor Description VpcNetworkPerformanceMetricSubscription(java.lang.String name)
VpcNetworkPerformanceMetricSubscription(java.lang.String name, VpcNetworkPerformanceMetricSubscriptionArgs args)
VpcNetworkPerformanceMetricSubscription(java.lang.String name, VpcNetworkPerformanceMetricSubscriptionArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>
destination()
static VpcNetworkPerformanceMetricSubscription
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, VpcNetworkPerformanceMetricSubscriptionState state, com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.util.Optional<java.lang.String>>
metric()
com.pulumi.core.Output<java.lang.String>
period()
com.pulumi.core.Output<java.lang.String>
source()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
statistic()
-
-
-
Constructor Detail
-
VpcNetworkPerformanceMetricSubscription
public VpcNetworkPerformanceMetricSubscription(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
VpcNetworkPerformanceMetricSubscription
public VpcNetworkPerformanceMetricSubscription(java.lang.String name, VpcNetworkPerformanceMetricSubscriptionArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
VpcNetworkPerformanceMetricSubscription
public VpcNetworkPerformanceMetricSubscription(java.lang.String name, VpcNetworkPerformanceMetricSubscriptionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
destination
public com.pulumi.core.Output<java.lang.String> destination()
- Returns:
- The target Region or Availability Zone that the metric subscription is enabled for. For example, `eu-west-1`.
-
metric
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> metric()
- Returns:
- The metric used for the enabled subscription. Valid values: `aggregate-latency`. Default: `aggregate-latency`.
-
period
public com.pulumi.core.Output<java.lang.String> period()
- Returns:
- The data aggregation time for the subscription.
-
source
public com.pulumi.core.Output<java.lang.String> source()
- Returns:
- The source Region or Availability Zone that the metric subscription is enabled for. For example, `us-east-1`.
-
statistic
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> statistic()
- Returns:
- The statistic used for the enabled subscription. Valid values: `p50`. Default: `p50`.
-
get
public static VpcNetworkPerformanceMetricSubscription get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable VpcNetworkPerformanceMetricSubscriptionState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.state
-options
- Optional settings to control the behavior of the CustomResource.
-
-