import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Provides a resource to manage an [AWS Macie Classification Job](https://docs.aws.amazon.com/macie/latest/APIReference/jobs.html). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const test = new aws.macie2.Account("test", {}); * const testClassificationJob = new aws.macie2.ClassificationJob("test", { * s3JobDefinition: { * bucketDefinitions: [{ * accountId: "ACCOUNT ID", * buckets: ["S3 BUCKET NAME"], * }], * }, * jobType: "ONE_TIME", * name: "NAME OF THE CLASSIFICATION JOB", * }, { * dependsOn: [test], * }); * ``` * * ## Import * * Using `pulumi import`, import `aws.macie2.ClassificationJob` using the ID. For example: * * ```sh * $ pulumi import aws:macie2/classificationJob:ClassificationJob example abcd1 * ``` */ export declare class ClassificationJob extends pulumi.CustomResource { /** * Get an existing ClassificationJob 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?: ClassificationJobState, opts?: pulumi.CustomResourceOptions): ClassificationJob; /** * Check whether an existing ClassificationJob 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?: ClassificationJobState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of ClassificationJob. 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 ClassificationJob; /** * Date and time, in UTC and extended RFC 3339 format, when the job was created. */ readonly createdAt: pulumi.Output; /** * Custom data identifiers to use for data analysis and classification. */ readonly customDataIdentifierIds: pulumi.Output; /** * Custom description of the job. Can contain as many as 200 characters. */ readonly description: pulumi.Output; /** * Whether to analyze all existing, eligible objects immediately after the job is created. */ readonly initialRun: pulumi.Output; /** * ARN of the classification job. */ readonly jobArn: pulumi.Output; /** * Unique identifier (ID) of the classification job. */ readonly jobId: pulumi.Output; /** * Status for the job. Valid values are `CANCELLED`, `RUNNING` and `USER_PAUSED`. */ readonly jobStatus: pulumi.Output; /** * Schedule for running the job. Valid values are `ONE_TIME`, to run the job only once, and `SCHEDULED`, to run the job on a daily, weekly, or monthly basis. When set to `SCHEDULED`, use `scheduleFrequency` to define the recurrence pattern for the job. */ readonly jobType: pulumi.Output; /** * Custom name for the job. Can contain as many as 500 characters. If omitted, Terraform assigns a random, unique name. Conflicts with `namePrefix`. */ readonly name: pulumi.Output; /** * Creates a unique name beginning with the specified prefix. Conflicts with `name`. */ readonly namePrefix: 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; /** * S3 buckets that contain the objects to analyze, and the scope of that analysis. See `s3JobDefinition` Block for details. */ readonly s3JobDefinition: pulumi.Output; /** * Sampling depth, as a percentage, to apply when processing objects. This value determines the percentage of eligible objects that the job analyzes. If this value is less than 100, Amazon Macie selects the objects to analyze at random, up to the specified percentage, and analyzes all the data in those objects. */ readonly samplingPercentage: pulumi.Output; /** * Recurrence pattern for running the job. To run the job only once, omit this argument and set `jobType` to `ONE_TIME`. See `scheduleFrequency` Block for details. */ readonly scheduleFrequency: pulumi.Output; /** * Map of tags to assign to the resource. 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; }>; /** * If the current status of the job is `USER_PAUSED`, information about when the job was paused and when the job or job run will expire and be cancelled if it isn't resumed. This value is present only if `jobStatus` is `USER_PAUSED`. See `userPausedDetails` Block for details. */ readonly userPausedDetails: pulumi.Output; /** * Create a ClassificationJob 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: ClassificationJobArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ClassificationJob resources. */ export interface ClassificationJobState { /** * Date and time, in UTC and extended RFC 3339 format, when the job was created. */ createdAt?: pulumi.Input; /** * Custom data identifiers to use for data analysis and classification. */ customDataIdentifierIds?: pulumi.Input[] | undefined>; /** * Custom description of the job. Can contain as many as 200 characters. */ description?: pulumi.Input; /** * Whether to analyze all existing, eligible objects immediately after the job is created. */ initialRun?: pulumi.Input; /** * ARN of the classification job. */ jobArn?: pulumi.Input; /** * Unique identifier (ID) of the classification job. */ jobId?: pulumi.Input; /** * Status for the job. Valid values are `CANCELLED`, `RUNNING` and `USER_PAUSED`. */ jobStatus?: pulumi.Input; /** * Schedule for running the job. Valid values are `ONE_TIME`, to run the job only once, and `SCHEDULED`, to run the job on a daily, weekly, or monthly basis. When set to `SCHEDULED`, use `scheduleFrequency` to define the recurrence pattern for the job. */ jobType?: pulumi.Input; /** * Custom name for the job. Can contain as many as 500 characters. If omitted, Terraform assigns a random, unique name. Conflicts with `namePrefix`. */ name?: pulumi.Input; /** * Creates a unique name beginning with the specified prefix. Conflicts with `name`. */ namePrefix?: 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; /** * S3 buckets that contain the objects to analyze, and the scope of that analysis. See `s3JobDefinition` Block for details. */ s3JobDefinition?: pulumi.Input; /** * Sampling depth, as a percentage, to apply when processing objects. This value determines the percentage of eligible objects that the job analyzes. If this value is less than 100, Amazon Macie selects the objects to analyze at random, up to the specified percentage, and analyzes all the data in those objects. */ samplingPercentage?: pulumi.Input; /** * Recurrence pattern for running the job. To run the job only once, omit this argument and set `jobType` to `ONE_TIME`. See `scheduleFrequency` Block for details. */ scheduleFrequency?: pulumi.Input; /** * Map of tags to assign to the resource. 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>; /** * If the current status of the job is `USER_PAUSED`, information about when the job was paused and when the job or job run will expire and be cancelled if it isn't resumed. This value is present only if `jobStatus` is `USER_PAUSED`. See `userPausedDetails` Block for details. */ userPausedDetails?: pulumi.Input[] | undefined>; } /** * The set of arguments for constructing a ClassificationJob resource. */ export interface ClassificationJobArgs { /** * Custom data identifiers to use for data analysis and classification. */ customDataIdentifierIds?: pulumi.Input[] | undefined>; /** * Custom description of the job. Can contain as many as 200 characters. */ description?: pulumi.Input; /** * Whether to analyze all existing, eligible objects immediately after the job is created. */ initialRun?: pulumi.Input; /** * Status for the job. Valid values are `CANCELLED`, `RUNNING` and `USER_PAUSED`. */ jobStatus?: pulumi.Input; /** * Schedule for running the job. Valid values are `ONE_TIME`, to run the job only once, and `SCHEDULED`, to run the job on a daily, weekly, or monthly basis. When set to `SCHEDULED`, use `scheduleFrequency` to define the recurrence pattern for the job. */ jobType: pulumi.Input; /** * Custom name for the job. Can contain as many as 500 characters. If omitted, Terraform assigns a random, unique name. Conflicts with `namePrefix`. */ name?: pulumi.Input; /** * Creates a unique name beginning with the specified prefix. Conflicts with `name`. */ namePrefix?: 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; /** * S3 buckets that contain the objects to analyze, and the scope of that analysis. See `s3JobDefinition` Block for details. */ s3JobDefinition: pulumi.Input; /** * Sampling depth, as a percentage, to apply when processing objects. This value determines the percentage of eligible objects that the job analyzes. If this value is less than 100, Amazon Macie selects the objects to analyze at random, up to the specified percentage, and analyzes all the data in those objects. */ samplingPercentage?: pulumi.Input; /** * Recurrence pattern for running the job. To run the job only once, omit this argument and set `jobType` to `ONE_TIME`. See `scheduleFrequency` Block for details. */ scheduleFrequency?: pulumi.Input; /** * Map of tags to assign to the resource. 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=classificationJob.d.ts.map