Package com.pulumi.aws.securityhub
Class ProductSubscription
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.securityhub.ProductSubscription
-
public class ProductSubscription extends com.pulumi.resources.CustomResourceSubscribes to a Security Hub product. ## Example Usage
## Import ### Identity Schema #### Required * `arn` (String) Subscription ARN. * `productArn` (String) Product ARN. #### Optional * `accountId` (String) AWS Account where this resource is managed. * `region` (String) Region where this resource is managed. Using `pulumi import`, import Security Hub product subscriptions using `productArn` and `arn` separated by a comma (`,`). For example: ```sh $ pulumi import aws:securityhub/productSubscription:ProductSubscription example arn:aws:securityhub:eu-west-1::product/alertlogic/althreatmanagement,arn:aws:securityhub:eu-west-1:123456789012:product-subscription/alertlogic/althreatmanagement ```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.ArrayList; import java.util.Arrays; 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 example = new Account("example"); final var current = AwsFunctions.getRegion(GetRegionArgs.builder() .build()); var exampleProductSubscription = new ProductSubscription("exampleProductSubscription", ProductSubscriptionArgs.builder() .productArn(String.format("arn:aws:securityhub:%s:733251395267:product/alertlogic/althreatmanagement", current.region())) .build(), CustomResourceOptions.builder() .dependsOn(example) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description ProductSubscription(java.lang.String name)ProductSubscription(java.lang.String name, ProductSubscriptionArgs args)ProductSubscription(java.lang.String name, ProductSubscriptionArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>arn()static ProductSubscriptionget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, ProductSubscriptionState state, com.pulumi.resources.CustomResourceOptions options)Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>productArn()com.pulumi.core.Output<java.lang.String>region()
-
-
-
Constructor Detail
-
ProductSubscription
public ProductSubscription(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
ProductSubscription
public ProductSubscription(java.lang.String name, ProductSubscriptionArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
ProductSubscription
public ProductSubscription(java.lang.String name, ProductSubscriptionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
arn
public com.pulumi.core.Output<java.lang.String> arn()
- Returns:
- The ARN of a resource that represents your subscription to the product that generates the findings that you want to import into Security Hub.
-
productArn
public com.pulumi.core.Output<java.lang.String> productArn()
- Returns:
- 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](https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-findings-providers.html) that changes over time. Any of the products on the linked [Available AWS service integrations](https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-internal-providers.html) or [Available third-party partner product integrations](https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-partner-providers.html) 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: * `arn:aws:securityhub:${var.region}::product/aws/guardduty` * `arn:aws:securityhub:${var.region}::product/aws/inspector` * `arn:aws:securityhub:${var.region}::product/aws/macie` * `arn:aws:securityhub:${var.region}::product/alertlogic/althreatmanagement` * `arn:aws:securityhub:${var.region}::product/armordefense/armoranywhere` * `arn:aws:securityhub:${var.region}::product/barracuda/cloudsecurityguardian` * `arn:aws:securityhub:${var.region}::product/checkpoint/cloudguard-iaas` * `arn:aws:securityhub:${var.region}::product/checkpoint/dome9-arc` * `arn:aws:securityhub:${var.region}::product/crowdstrike/crowdstrike-falcon` * `arn:aws:securityhub:${var.region}::product/cyberark/cyberark-pta` * `arn:aws:securityhub:${var.region}::product/f5networks/f5-advanced-waf` * `arn:aws:securityhub:${var.region}::product/fortinet/fortigate` * `arn:aws:securityhub:${var.region}::product/guardicore/aws-infection-monkey` * `arn:aws:securityhub:${var.region}::product/guardicore/guardicore` * `arn:aws:securityhub:${var.region}::product/ibm/qradar-siem` * `arn:aws:securityhub:${var.region}::product/imperva/imperva-attack-analytics` * `arn:aws:securityhub:${var.region}::product/mcafee-skyhigh/mcafee-mvision-cloud-aws` * `arn:aws:securityhub:${var.region}::product/paloaltonetworks/redlock` * `arn:aws:securityhub:${var.region}::product/paloaltonetworks/vm-series` * `arn:aws:securityhub:${var.region}::product/qualys/qualys-pc` * `arn:aws:securityhub:${var.region}::product/qualys/qualys-vm` * `arn:aws:securityhub:${var.region}::product/rapid7/insightvm` * `arn:aws:securityhub:${var.region}::product/sophos/sophos-server-protection` * `arn:aws:securityhub:${var.region}::product/splunk/splunk-enterprise` * `arn:aws:securityhub:${var.region}::product/splunk/splunk-phantom` * `arn:aws:securityhub:${var.region}::product/sumologicinc/sumologic-mda` * `arn:aws:securityhub:${var.region}::product/symantec-corp/symantec-cwp` * `arn:aws:securityhub:${var.region}::product/tenable/tenable-io` * `arn:aws:securityhub:${var.region}::product/trend-micro/deep-security` * `arn:aws:securityhub:${var.region}::product/turbot/turbot` * `arn:aws:securityhub:${var.region}::product/twistlock/twistlock-enterprise`
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
get
public static ProductSubscription get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable ProductSubscriptionState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name- The _unique_ name of the resulting resource.id- The _unique_ provider ID of the resource to lookup.state-options- Optional settings to control the behavior of the CustomResource.
-
-