Skip to main content

network_performance_metric_subscriptions

Creates, updates, deletes or gets a network_performance_metric_subscription resource or lists network_performance_metric_subscriptions in a region

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_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all network_performance_metric_subscriptions in a region.

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

Gets all properties from an individual network_performance_metric_subscription.

SELECT
region,
source,
destination,
metric,
statistic
FROM aws.ec2.network_performance_metric_subscriptions
WHERE region = 'us-east-1' AND data__Identifier = '<Source>|<Destination>|<Metric>|<Statistic>';

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

Read

ec2:DescribeAwsNetworkPerformanceMetricSubscriptions

Delete

ec2:DescribeAwsNetworkPerformanceMetricSubscriptions,
ec2:DisableAwsNetworkPerformanceMetricSubscription

List

ec2:DescribeAwsNetworkPerformanceMetricSubscriptions