Class 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 -->
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • 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()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, id, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.