import * as pulumi from "@pulumi/pulumi"; /** * Manages an opt-in [Security Hub V2](https://docs.aws.amazon.com/securityhub/latest/userguide/what-is-securityhub.html) feature, such as network scanning (NetScan), for the calling account in the current AWS Region. * * > **NOTE:** Security Hub V2 must be enabled (see `aws.securityhub.AccountV2`) before you can enable a feature. Use `dependsOn` to ensure the correct ordering. * * > **NOTE:** Deleting this resource does not disable the feature, the resource in simply removed from state instead. * * > **NOTE:** You cannot enable a feature that is managed by an organization policy. * * ## Example Usage * * ### Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.securityhub.AccountV2("example", {}); * const exampleFeatureV2 = new aws.securityhub.FeatureV2("example", { * featureName: "NETWORK_SCANNING", * featureStatus: "ENABLED", * }, { * dependsOn: [example], * }); * ``` * * ## Import * * ### Identity Schema * * #### Required * * * `featureName` (String) Name of the opt-in Security Hub V2 feature. * * #### Optional * * * `accountId` (String) AWS Account where this resource is managed. * * `region` (String) Region where this resource is managed. * * Using `pulumi import`, import Security Hub V2 features using `featureName`. For example: * * ```sh * $ pulumi import aws:securityhub/featureV2:FeatureV2 example NETWORK_SCANNING * ``` */ export declare class FeatureV2 extends pulumi.CustomResource { /** * Get an existing FeatureV2 resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: FeatureV2State, opts?: pulumi.CustomResourceOptions): FeatureV2; /** * Returns true if the given object is an instance of FeatureV2. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is FeatureV2; /** * Name of the opt-in feature to enable. Valid values: `NETWORK_SCANNING`. Changing this forces a new resource to be created. */ readonly featureName: pulumi.Output; /** * Current enablement status of the feature. Valid values: `ENABLED`, `DISABLED`. */ readonly featureStatus: pulumi.Output; /** * 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. */ readonly region: pulumi.Output; /** * Create a FeatureV2 resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: FeatureV2Args, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering FeatureV2 resources. */ export interface FeatureV2State { /** * Name of the opt-in feature to enable. Valid values: `NETWORK_SCANNING`. Changing this forces a new resource to be created. */ featureName?: pulumi.Input; /** * Current enablement status of the feature. Valid values: `ENABLED`, `DISABLED`. */ featureStatus?: pulumi.Input; /** * 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. */ region?: pulumi.Input; } /** * The set of arguments for constructing a FeatureV2 resource. */ export interface FeatureV2Args { /** * Name of the opt-in feature to enable. Valid values: `NETWORK_SCANNING`. Changing this forces a new resource to be created. */ featureName: pulumi.Input; /** * Current enablement status of the feature. Valid values: `ENABLED`, `DISABLED`. */ featureStatus: pulumi.Input; /** * 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. */ region?: pulumi.Input; } //# sourceMappingURL=featureV2.d.ts.map