Class ProductSubscription
Subscribes to a Security Hub product.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var exampleAccount = new Aws.SecurityHub.Account("exampleAccount", new Aws.SecurityHub.AccountArgs
{
});
var current = Output.Create(Aws.GetRegion.InvokeAsync());
var exampleProductSubscription = new Aws.SecurityHub.ProductSubscription("exampleProductSubscription", new Aws.SecurityHub.ProductSubscriptionArgs
{
ProductArn = current.Apply(current => $"arn:aws:securityhub:{current.Name}:733251395267:product/alertlogic/althreatmanagement"),
});
}
}
Inherited Members
Namespace: Pulumi.Aws.SecurityHub
Assembly: Pulumi.Aws.dll
Syntax
public class ProductSubscription : CustomResource
Constructors
View SourceProductSubscription(String, ProductSubscriptionArgs, CustomResourceOptions)
Create a ProductSubscription resource with the given unique name, arguments, and options.
Declaration
public ProductSubscription(string name, ProductSubscriptionArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ProductSubscriptionArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceArn
The ARN of a resource that represents your subscription to the product that generates the findings that you want to import into Security Hub.
Declaration
public Output<string> Arn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ProductArn
The ARN of the product that generates findings that you want to import into Security Hub - see below.
Declaration
public Output<string> ProductArn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, ProductSubscriptionState, CustomResourceOptions)
Get an existing ProductSubscription resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static ProductSubscription Get(string name, Input<string> id, ProductSubscriptionState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ProductSubscriptionState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| ProductSubscription |