ProductSubscription

class ProductSubscription : KotlinCustomResource

Subscribes to a Security Hub product.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.securityhub.Account;
import com.pulumi.aws.AwsFunctions;
import com.pulumi.aws.inputs.GetRegionArgs;
import com.pulumi.aws.securityhub.ProductSubscription;
import com.pulumi.aws.securityhub.ProductSubscriptionArgs;
import com.pulumi.resources.CustomResourceOptions;
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 exampleAccount = new Account("exampleAccount");
final var current = AwsFunctions.getRegion();
var exampleProductSubscription = new ProductSubscription("exampleProductSubscription", ProductSubscriptionArgs.builder()
.productArn(String.format("arn:aws:securityhub:%s:733251395267:product/alertlogic/althreatmanagement", current.applyValue(getRegionResult -> getRegionResult.name())))
.build(), CustomResourceOptions.builder()
.dependsOn(exampleAccount)
.build());
}
}

Import

Security Hub product subscriptions can be imported in the form product_arn,arn, e.g.,

$ pulumi import aws:securityhub/productSubscription:ProductSubscription example arn:aws:securityhub:eu-west-1:733251395267:product/alertlogic/althreatmanagement,arn:aws:securityhub:eu-west-1:123456789012:product-subscription/alertlogic/althreatmanagement

Properties

Link copied to clipboard
val arn: Output<String>

The ARN of a resource that represents your subscription to the product that generates the findings that you want to import into Security Hub.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val productArn: Output<String>

The ARN of the product that generates findings that you want to import into Security Hub - see below. Amazon maintains a list of Product integrations in AWS Security Hub that changes over time. Any of the products on the linked Available AWS service integrations or Available third-party partner product integrations can be configured using aws.securityhub.ProductSubscription. Available products can also be listed by running the AWS CLI command aws securityhub describe-products. A subset of currently available products (remember to replace ${var.region} as appropriate) includes:

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>