Package com.pulumi.aws.securityhub
Class StandardsSubscription
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.securityhub.StandardsSubscription
-
public class StandardsSubscription extends com.pulumi.resources.CustomResourceSubscribes to a Security Hub standard. ## Example Usage
## Import ### Identity Schema #### Required - `arn` (String) Security Hub finding aggregator ARN. Using `pulumi import`, import Security Hub standards subscriptions using `arn`. For example: ```sh $ pulumi import aws:securityhub/standardsSubscription:StandardsSubscription example arn:aws:securityhub:eu-west-1:123456789012:subscription/cis-aws-foundations-benchmark/v/1.2.0 ```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.StandardsSubscription; import com.pulumi.aws.securityhub.StandardsSubscriptionArgs; 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 cis = new StandardsSubscription("cis", StandardsSubscriptionArgs.builder() .standardsArn("arn:aws:securityhub:::ruleset/cis-aws-foundations-benchmark/v/1.2.0") .build(), CustomResourceOptions.builder() .dependsOn(example) .build()); var pci321 = new StandardsSubscription("pci321", StandardsSubscriptionArgs.builder() .standardsArn(String.format("arn:aws:securityhub:%s::standards/pci-dss/v/3.2.1", current.region())) .build(), CustomResourceOptions.builder() .dependsOn(example) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description StandardsSubscription(java.lang.String name)StandardsSubscription(java.lang.String name, StandardsSubscriptionArgs args)StandardsSubscription(java.lang.String name, StandardsSubscriptionArgs 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 StandardsSubscriptionget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, StandardsSubscriptionState 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>region()com.pulumi.core.Output<java.lang.String>standardsArn()
-
-
-
Constructor Detail
-
StandardsSubscription
public StandardsSubscription(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
StandardsSubscription
public StandardsSubscription(java.lang.String name, StandardsSubscriptionArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
StandardsSubscription
public StandardsSubscription(java.lang.String name, StandardsSubscriptionArgs 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 a supported standard.
-
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.
-
standardsArn
public com.pulumi.core.Output<java.lang.String> standardsArn()
- Returns:
- The ARN of a standard - see below. Currently available standards (remember to replace `${var.partition}` and `${var.region}` as appropriate): | Name | ARN | |------------------------------------------|--------------------------------------------------------------------------------------------------------------| | AWS Foundational Security Best Practices | `arn:${var.partition}:securityhub:${var.region}::standards/aws-foundational-security-best-practices/v/1.0.0` | | AWS Resource Tagging Standard | `arn:${var.partition}:securityhub:${var.region}::standards/aws-resource-tagging-standard/v/1.0.0` | | CIS AWS Foundations Benchmark v1.2.0 | `arn:${var.partition}:securityhub:::ruleset/cis-aws-foundations-benchmark/v/1.2.0` | | CIS AWS Foundations Benchmark v1.4.0 | `arn:${var.partition}:securityhub:${var.region}::standards/cis-aws-foundations-benchmark/v/1.4.0` | | CIS AWS Foundations Benchmark v3.0.0 | `arn:${var.partition}:securityhub:${var.region}::standards/cis-aws-foundations-benchmark/v/3.0.0` | | NIST SP 800-53 Rev. 5 | `arn:${var.partition}:securityhub:${var.region}::standards/nist-800-53/v/5.0.0` | | NIST SP 800-171 Rev. 2 | `arn:${var.partition}:securityhub:${var.region}::standards/nist-800-171/v/2.0.0` | | PCI DSS v3.2.1 | `arn:${var.partition}:securityhub:${var.region}::standards/pci-dss/v/3.2.1` | | PCI DSS v4.0.1 | `arn:${var.partition}:securityhub:${var.region}::standards/pci-dss/v/4.0.1` |
-
get
public static StandardsSubscription get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable StandardsSubscriptionState 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.
-
-