Try AWS Native preview for resources not in the classic version.
aws.ec2.VpcNetworkPerformanceMetricSubscription
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Provides a resource to manage an Infrastructure Performance subscription.
Example Usage
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",
});
import pulumi
import pulumi_aws as aws
example = aws.ec2.VpcNetworkPerformanceMetricSubscription("example",
source="us-east-1",
destination="us-west-1")
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
})
}
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",
});
});
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());
}
}
resources:
example:
type: aws:ec2:VpcNetworkPerformanceMetricSubscription
properties:
source: us-east-1
destination: us-west-1
Create VpcNetworkPerformanceMetricSubscription Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpcNetworkPerformanceMetricSubscription(name: string, args: VpcNetworkPerformanceMetricSubscriptionArgs, opts?: CustomResourceOptions);
@overload
def VpcNetworkPerformanceMetricSubscription(resource_name: str,
args: VpcNetworkPerformanceMetricSubscriptionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VpcNetworkPerformanceMetricSubscription(resource_name: str,
opts: Optional[ResourceOptions] = None,
destination: Optional[str] = None,
source: Optional[str] = None,
metric: Optional[str] = None,
statistic: Optional[str] = None)
func NewVpcNetworkPerformanceMetricSubscription(ctx *Context, name string, args VpcNetworkPerformanceMetricSubscriptionArgs, opts ...ResourceOption) (*VpcNetworkPerformanceMetricSubscription, error)
public VpcNetworkPerformanceMetricSubscription(string name, VpcNetworkPerformanceMetricSubscriptionArgs args, CustomResourceOptions? opts = null)
public VpcNetworkPerformanceMetricSubscription(String name, VpcNetworkPerformanceMetricSubscriptionArgs args)
public VpcNetworkPerformanceMetricSubscription(String name, VpcNetworkPerformanceMetricSubscriptionArgs args, CustomResourceOptions options)
type: aws:ec2:VpcNetworkPerformanceMetricSubscription
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 VpcNetworkPerformanceMetricSubscriptionArgs
- 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 VpcNetworkPerformanceMetricSubscriptionArgs
- 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 VpcNetworkPerformanceMetricSubscriptionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcNetworkPerformanceMetricSubscriptionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpcNetworkPerformanceMetricSubscriptionArgs
- 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 vpcNetworkPerformanceMetricSubscriptionResource = new Aws.Ec2.VpcNetworkPerformanceMetricSubscription("vpcNetworkPerformanceMetricSubscriptionResource", new()
{
Destination = "string",
Source = "string",
Metric = "string",
Statistic = "string",
});
example, err := ec2.NewVpcNetworkPerformanceMetricSubscription(ctx, "vpcNetworkPerformanceMetricSubscriptionResource", &ec2.VpcNetworkPerformanceMetricSubscriptionArgs{
Destination: pulumi.String("string"),
Source: pulumi.String("string"),
Metric: pulumi.String("string"),
Statistic: pulumi.String("string"),
})
var vpcNetworkPerformanceMetricSubscriptionResource = new VpcNetworkPerformanceMetricSubscription("vpcNetworkPerformanceMetricSubscriptionResource", VpcNetworkPerformanceMetricSubscriptionArgs.builder()
.destination("string")
.source("string")
.metric("string")
.statistic("string")
.build());
vpc_network_performance_metric_subscription_resource = aws.ec2.VpcNetworkPerformanceMetricSubscription("vpcNetworkPerformanceMetricSubscriptionResource",
destination="string",
source="string",
metric="string",
statistic="string")
const vpcNetworkPerformanceMetricSubscriptionResource = new aws.ec2.VpcNetworkPerformanceMetricSubscription("vpcNetworkPerformanceMetricSubscriptionResource", {
destination: "string",
source: "string",
metric: "string",
statistic: "string",
});
type: aws:ec2:VpcNetworkPerformanceMetricSubscription
properties:
destination: string
metric: string
source: string
statistic: string
VpcNetworkPerformanceMetricSubscription 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 VpcNetworkPerformanceMetricSubscription resource accepts the following input properties:
- Destination string
- The target Region or Availability Zone that the metric subscription is enabled for. For example,
eu-west-1
. - Source string
- The source Region or Availability Zone that the metric subscription is enabled for. For example,
us-east-1
. - Metric string
- The metric used for the enabled subscription. Valid values:
aggregate-latency
. Default:aggregate-latency
. - Statistic string
- The statistic used for the enabled subscription. Valid values:
p50
. Default:p50
.
- Destination string
- The target Region or Availability Zone that the metric subscription is enabled for. For example,
eu-west-1
. - Source string
- The source Region or Availability Zone that the metric subscription is enabled for. For example,
us-east-1
. - Metric string
- The metric used for the enabled subscription. Valid values:
aggregate-latency
. Default:aggregate-latency
. - Statistic string
- The statistic used for the enabled subscription. Valid values:
p50
. Default:p50
.
- destination String
- The target Region or Availability Zone that the metric subscription is enabled for. For example,
eu-west-1
. - source String
- The source Region or Availability Zone that the metric subscription is enabled for. For example,
us-east-1
. - metric String
- The metric used for the enabled subscription. Valid values:
aggregate-latency
. Default:aggregate-latency
. - statistic String
- The statistic used for the enabled subscription. Valid values:
p50
. Default:p50
.
- destination string
- The target Region or Availability Zone that the metric subscription is enabled for. For example,
eu-west-1
. - source string
- The source Region or Availability Zone that the metric subscription is enabled for. For example,
us-east-1
. - metric string
- The metric used for the enabled subscription. Valid values:
aggregate-latency
. Default:aggregate-latency
. - statistic string
- The statistic used for the enabled subscription. Valid values:
p50
. Default:p50
.
- destination str
- The target Region or Availability Zone that the metric subscription is enabled for. For example,
eu-west-1
. - source str
- The source Region or Availability Zone that the metric subscription is enabled for. For example,
us-east-1
. - metric str
- The metric used for the enabled subscription. Valid values:
aggregate-latency
. Default:aggregate-latency
. - statistic str
- The statistic used for the enabled subscription. Valid values:
p50
. Default:p50
.
- destination String
- The target Region or Availability Zone that the metric subscription is enabled for. For example,
eu-west-1
. - source String
- The source Region or Availability Zone that the metric subscription is enabled for. For example,
us-east-1
. - metric String
- The metric used for the enabled subscription. Valid values:
aggregate-latency
. Default:aggregate-latency
. - statistic String
- The statistic used for the enabled subscription. Valid values:
p50
. Default:p50
.
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcNetworkPerformanceMetricSubscription resource produces the following output properties:
Look up Existing VpcNetworkPerformanceMetricSubscription Resource
Get an existing VpcNetworkPerformanceMetricSubscription 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?: VpcNetworkPerformanceMetricSubscriptionState, opts?: CustomResourceOptions): VpcNetworkPerformanceMetricSubscription
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
destination: Optional[str] = None,
metric: Optional[str] = None,
period: Optional[str] = None,
source: Optional[str] = None,
statistic: Optional[str] = None) -> VpcNetworkPerformanceMetricSubscription
func GetVpcNetworkPerformanceMetricSubscription(ctx *Context, name string, id IDInput, state *VpcNetworkPerformanceMetricSubscriptionState, opts ...ResourceOption) (*VpcNetworkPerformanceMetricSubscription, error)
public static VpcNetworkPerformanceMetricSubscription Get(string name, Input<string> id, VpcNetworkPerformanceMetricSubscriptionState? state, CustomResourceOptions? opts = null)
public static VpcNetworkPerformanceMetricSubscription get(String name, Output<String> id, VpcNetworkPerformanceMetricSubscriptionState 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.
- Destination string
- The target Region or Availability Zone that the metric subscription is enabled for. For example,
eu-west-1
. - Metric string
- The metric used for the enabled subscription. Valid values:
aggregate-latency
. Default:aggregate-latency
. - Period string
- The data aggregation time for the subscription.
- Source string
- The source Region or Availability Zone that the metric subscription is enabled for. For example,
us-east-1
. - Statistic string
- The statistic used for the enabled subscription. Valid values:
p50
. Default:p50
.
- Destination string
- The target Region or Availability Zone that the metric subscription is enabled for. For example,
eu-west-1
. - Metric string
- The metric used for the enabled subscription. Valid values:
aggregate-latency
. Default:aggregate-latency
. - Period string
- The data aggregation time for the subscription.
- Source string
- The source Region or Availability Zone that the metric subscription is enabled for. For example,
us-east-1
. - Statistic string
- The statistic used for the enabled subscription. Valid values:
p50
. Default:p50
.
- destination String
- The target Region or Availability Zone that the metric subscription is enabled for. For example,
eu-west-1
. - metric String
- The metric used for the enabled subscription. Valid values:
aggregate-latency
. Default:aggregate-latency
. - period String
- The data aggregation time for the subscription.
- source String
- The source Region or Availability Zone that the metric subscription is enabled for. For example,
us-east-1
. - statistic String
- The statistic used for the enabled subscription. Valid values:
p50
. Default:p50
.
- destination string
- The target Region or Availability Zone that the metric subscription is enabled for. For example,
eu-west-1
. - metric string
- The metric used for the enabled subscription. Valid values:
aggregate-latency
. Default:aggregate-latency
. - period string
- The data aggregation time for the subscription.
- source string
- The source Region or Availability Zone that the metric subscription is enabled for. For example,
us-east-1
. - statistic string
- The statistic used for the enabled subscription. Valid values:
p50
. Default:p50
.
- destination str
- The target Region or Availability Zone that the metric subscription is enabled for. For example,
eu-west-1
. - metric str
- The metric used for the enabled subscription. Valid values:
aggregate-latency
. Default:aggregate-latency
. - period str
- The data aggregation time for the subscription.
- source str
- The source Region or Availability Zone that the metric subscription is enabled for. For example,
us-east-1
. - statistic str
- The statistic used for the enabled subscription. Valid values:
p50
. Default:p50
.
- destination String
- The target Region or Availability Zone that the metric subscription is enabled for. For example,
eu-west-1
. - metric String
- The metric used for the enabled subscription. Valid values:
aggregate-latency
. Default:aggregate-latency
. - period String
- The data aggregation time for the subscription.
- source String
- The source Region or Availability Zone that the metric subscription is enabled for. For example,
us-east-1
. - statistic String
- The statistic used for the enabled subscription. Valid values:
p50
. Default:p50
.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.