Skip to main content

network_performance_metric_subscriptions

Used to retrieve a list of network_performance_metric_subscriptions in a region or to create or delete a network_performance_metric_subscriptions resource, use network_performance_metric_subscription to read or update an individual resource.

Overview

Namenetwork_performance_metric_subscriptions
TypeResource
DescriptionResource Type definition for AWS::EC2::NetworkPerformanceMetricSubscription
Idaws.ec2.network_performance_metric_subscriptions

Fields

NameDatatypeDescription
sourcestringThe starting Region or Availability Zone for metric to subscribe to.
destinationstringThe target Region or Availability Zone for the metric to subscribe to.
metricstringThe metric type to subscribe to.
statisticstringThe statistic to subscribe to.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTSource, Destination, Metric, Statistic, region
delete_resourceDELETEdata__Identifier, region
list_resourceSELECTregion

SELECT Example

SELECT
region,
source,
destination,
metric,
statistic
FROM aws.ec2.network_performance_metric_subscriptions
WHERE region = 'us-east-1';

INSERT Example

Use the following StackQL query and manifest file to create a new network_performance_metric_subscription resource, using stack-deploy.

/*+ create */
INSERT INTO aws.ec2.network_performance_metric_subscriptions (
Source,
Destination,
Metric,
Statistic,
region
)
SELECT
'{{ Source }}',
'{{ Destination }}',
'{{ Metric }}',
'{{ Statistic }}',
'{{ region }}';

DELETE Example

/*+ delete */
DELETE FROM aws.ec2.network_performance_metric_subscriptions
WHERE data__Identifier = '<Source|Destination|Metric|Statistic>'
AND region = 'us-east-1';

Permissions

To operate on the network_performance_metric_subscriptions resource, the following permissions are required:

Create

ec2:DescribeAwsNetworkPerformanceMetricSubscriptions,
ec2:EnableAwsNetworkPerformanceMetricSubscription

Delete

ec2:DescribeAwsNetworkPerformanceMetricSubscriptions,
ec2:DisableAwsNetworkPerformanceMetricSubscription

List

ec2:DescribeAwsNetworkPerformanceMetricSubscriptions