import * as pulumi from "@pulumi/pulumi"; /** * Provides a resource to manage a GuardDuty ThreatIntelSet. * * > **Note:** Currently in GuardDuty, users from member accounts cannot upload and further manage ThreatIntelSets. ThreatIntelSets that are uploaded by the primary account are imposed on GuardDuty functionality in its member accounts. See the [GuardDuty API Documentation](https://docs.aws.amazon.com/guardduty/latest/ug/create-threat-intel-set.html) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const primary = new aws.guardduty.Detector("primary", {enable: true}); * const bucket = new aws.s3.Bucket("bucket", {}); * const bucketAcl = new aws.s3.BucketAcl("bucket_acl", { * bucket: bucket.id, * acl: "private", * }); * const myThreatIntelSet = new aws.s3.BucketObjectv2("MyThreatIntelSet", { * acl: "public-read", * content: "10.0.0.0/8\n", * bucket: bucket.id, * key: "MyThreatIntelSet", * }); * const myThreatIntelSetThreatIntelSet = new aws.guardduty.ThreatIntelSet("MyThreatIntelSet", { * activate: true, * detectorId: primary.id, * format: "TXT", * location: pulumi.interpolate`https://s3.amazonaws.com/${myThreatIntelSet.bucket}/${myThreatIntelSet.key}`, * name: "MyThreatIntelSet", * }); * ``` * * ## Import * * Using `pulumi import`, import GuardDuty ThreatIntelSet using the primary GuardDuty detector ID and ThreatIntelSetID. For example: * * ```sh * $ pulumi import aws:guardduty/threatIntelSet:ThreatIntelSet MyThreatIntelSet 00b00fd5aecc0ab60a708659477e9617:123456789012 * ``` */ export declare class ThreatIntelSet extends pulumi.CustomResource { /** * Get an existing ThreatIntelSet 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?: ThreatIntelSetState, opts?: pulumi.CustomResourceOptions): ThreatIntelSet; /** * Check whether an existing ThreatIntelSet resource with the given ID exists. * * @param id The _unique_ provider ID of the resource to check. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static exists(id: pulumi.Input, state?: ThreatIntelSetState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of ThreatIntelSet. 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 ThreatIntelSet; /** * Whether to start using the uploaded ThreatIntelSet. */ readonly activate: pulumi.Output; /** * ARN of the GuardDuty ThreatIntelSet. */ readonly arn: pulumi.Output; /** * Detector ID of the GuardDuty. */ readonly detectorId: pulumi.Output; /** * Format of the file that contains the ThreatIntelSet. Valid values: `TXT` | `STIX` | `OTX_CSV` | `ALIEN_VAULT` | `PROOF_POINT` | `FIRE_EYE` */ readonly format: pulumi.Output; /** * URI of the file that contains the ThreatIntelSet. */ readonly location: pulumi.Output; /** * Friendly name to identify the ThreatIntelSet. */ readonly name: 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; /** * Key-value map of resource tags. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. */ readonly tagsAll: pulumi.Output<{ [key: string]: string; }>; /** * ID of the GuardDuty ThreatIntelSet. */ readonly threatIntelSetId: pulumi.Output; /** * Create a ThreatIntelSet 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: ThreatIntelSetArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ThreatIntelSet resources. */ export interface ThreatIntelSetState { /** * Whether to start using the uploaded ThreatIntelSet. */ activate?: pulumi.Input; /** * ARN of the GuardDuty ThreatIntelSet. */ arn?: pulumi.Input; /** * Detector ID of the GuardDuty. */ detectorId?: pulumi.Input; /** * Format of the file that contains the ThreatIntelSet. Valid values: `TXT` | `STIX` | `OTX_CSV` | `ALIEN_VAULT` | `PROOF_POINT` | `FIRE_EYE` */ format?: pulumi.Input; /** * URI of the file that contains the ThreatIntelSet. */ location?: pulumi.Input; /** * Friendly name to identify the ThreatIntelSet. */ name?: 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; /** * Key-value map of resource tags. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. */ tagsAll?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * ID of the GuardDuty ThreatIntelSet. */ threatIntelSetId?: pulumi.Input; } /** * The set of arguments for constructing a ThreatIntelSet resource. */ export interface ThreatIntelSetArgs { /** * Whether to start using the uploaded ThreatIntelSet. */ activate: pulumi.Input; /** * Detector ID of the GuardDuty. */ detectorId: pulumi.Input; /** * Format of the file that contains the ThreatIntelSet. Valid values: `TXT` | `STIX` | `OTX_CSV` | `ALIEN_VAULT` | `PROOF_POINT` | `FIRE_EYE` */ format: pulumi.Input; /** * URI of the file that contains the ThreatIntelSet. */ location: pulumi.Input; /** * Friendly name to identify the ThreatIntelSet. */ name?: 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; /** * Key-value map of resource tags. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; } //# sourceMappingURL=threatIntelSet.d.ts.map