This is the new *CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [AWS CloudFormation User Guide](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html). # AWS::EC2::NetworkPerformanceMetricSubscription Describes Infrastructure Performance subscriptions. ## Syntax To declare this entity in your CloudFormation template, use the following syntax: ### JSON ``` { "Type" : "AWS::EC2::NetworkPerformanceMetricSubscription", "Properties" : { "[Destination](#cfn-ec2-networkperformancemetricsubscription-destination)" : {{String}}, "[Metric](#cfn-ec2-networkperformancemetricsubscription-metric)" : {{String}}, "[Source](#cfn-ec2-networkperformancemetricsubscription-source)" : {{String}}, "[Statistic](#cfn-ec2-networkperformancemetricsubscription-statistic)" : {{String}} } } ``` ### YAML ``` Type: AWS::EC2::NetworkPerformanceMetricSubscription Properties: [Destination](#cfn-ec2-networkperformancemetricsubscription-destination): {{String}} [Metric](#cfn-ec2-networkperformancemetricsubscription-metric): {{String}} [Source](#cfn-ec2-networkperformancemetricsubscription-source): {{String}} [Statistic](#cfn-ec2-networkperformancemetricsubscription-statistic): {{String}} ``` ## Properties `Destination` The Region or Availability Zone that's the target for the subscription. For example, `eu-west-1`. *Required*: Yes *Type*: String *Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) `Metric` The metric used for the subscription. *Required*: Yes *Type*: String *Allowed values*: `aggregate-latency` *Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) `Source` The Region or Availability Zone that's the source for the subscription. For example, `us-east-1`. *Required*: Yes *Type*: String *Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) `Statistic` The statistic used for the subscription. *Required*: Yes *Type*: String *Allowed values*: `p50` *Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) ## Return values ### Ref When you pass the logical ID of this resource to the intrinsic `Ref` function, `Ref` returns the `primaryIdentifier` property, which consists of the following properties: `source`, `destination`, `metric`, and `statistic`, with each value separated by a pipe (\|). For example, `{ "Ref": "us-east-1|us-east-2|aggregate-latency|p50" }`. For more information about using the `Ref` function, see [https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-ref.html](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-ref.html).

AltStyle によって変換されたページ (->オリジナル) /