Skip to main content

product_subscriptions

Creates, updates, deletes or gets a product_subscription resource or lists product_subscriptions in a region

Overview

Nameproduct_subscriptions
TypeResource
DescriptionThe AWS::SecurityHub::ProductSubscription resource represents a subscription to a service that is allowed to generate findings for your Security Hub account. One product subscription resource is created for each product enabled.
Idaws.securityhub.product_subscriptions

Fields

NameDatatypeDescription
product_arnstringThe generic ARN of the product being subscribed to
product_subscription_arnstringThe ARN of the product subscription for the account
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTProductArn, region
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all product_subscriptions in a region.

SELECT
region,
product_arn,
product_subscription_arn
FROM aws.securityhub.product_subscriptions
WHERE region = 'us-east-1';

Gets all properties from an individual product_subscription.

SELECT
region,
product_arn,
product_subscription_arn
FROM aws.securityhub.product_subscriptions
WHERE region = 'us-east-1' AND data__Identifier = '<ProductSubscriptionArn>';

INSERT example

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

/*+ create */
INSERT INTO aws.securityhub.product_subscriptions (
ProductArn,
region
)
SELECT
'{{ ProductArn }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.securityhub.product_subscriptions
WHERE data__Identifier = '<ProductSubscriptionArn>'
AND region = 'us-east-1';

Permissions

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

Create

securityhub:EnableImportFindingsForProduct

Read

securityhub:ListEnabledProductsForImport

Delete

securityhub:ListEnabledProductsForImport,
securityhub:DisableImportFindingsForProduct

List

securityhub:ListEnabledProductsForImport