import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages an Amazon Bedrock model invocation job. A model invocation job runs a foundation model, or a model accessed through an inference profile, against multiple prompts read from Amazon S3, and writes the results back to Amazon S3. * * > Amazon Bedrock does not support permanently deleting a model invocation job. Destroying this resource stops the job (if it hasn't already reached a terminal state) using the [StopModelInvocationJob](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_StopModelInvocationJob.html) API, then removes it from Terraform state. Set `skipDestroy` to leave the job in its current state instead. * * > This resource does not support `tags`. Amazon Bedrock does not allow retrieving tags for a batch inference job that has already finished running, which would cause errors when importing or listing existing jobs. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.bedrockmodel.InvocationJob("example", { * inputDataConfig: { * s3InputDataConfig: { * s3Uri: `s3://${exampleAwsS3Bucket.id}/input/`, * }, * }, * outputDataConfig: { * s3OutputDataConfig: { * s3Uri: `s3://${exampleAwsS3Bucket.id}/output/`, * }, * }, * jobName: "example-job", * modelId: "us.amazon.nova-2-lite-v1:0", * roleArn: exampleAwsIamRole.arn, * }); * ``` * * ## Import * * ### Identity Schema * * #### Required * * - `jobArn` (String) ARN of the batch inference job. * * Using `pulumi import`, import Bedrock Model Invocation Job using the `jobArn`. For example: * * ```sh * $ pulumi import aws:bedrockmodel/invocationJob:InvocationJob example arn:aws:bedrock:us-west-2:123456789012:model-invocation-job/abcdefgh1234 * ``` */ export declare class InvocationJob extends pulumi.CustomResource { /** * Get an existing InvocationJob 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?: InvocationJobState, opts?: pulumi.CustomResourceOptions): InvocationJob; /** * Returns true if the given object is an instance of InvocationJob. 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 InvocationJob; /** * Time at which the batch inference job ended. */ readonly endTime: pulumi.Output; /** * Number of records that failed to process in the batch inference job. */ readonly errorRecordCount: pulumi.Output; /** * Location of the input data for the batch inference job. See `inputDataConfig` Block below. */ readonly inputDataConfig: pulumi.Output; /** * ARN of the batch inference job. */ readonly jobArn: pulumi.Output; /** * Time at which the batch inference job times or timed out. */ readonly jobExpirationTime: pulumi.Output; /** * Name for the batch inference job. */ readonly jobName: pulumi.Output; /** * Identifier of the foundation model, or inference profile, to use for the batch inference job. */ readonly modelId: pulumi.Output; /** * Invocation endpoint used for the batch inference job. */ readonly modelInvocationType: pulumi.Output; /** * Location where the results of the batch inference job are stored. See `outputDataConfig` Block below. */ readonly outputDataConfig: pulumi.Output; /** * Number of records that have been processed in the batch inference job. */ readonly processedRecordCount: 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; /** * ARN of the IAM service role that Amazon Bedrock can assume to carry out and manage the batch inference job. See [Create a service role for batch inference](https://docs.aws.amazon.com/bedrock/latest/userguide/batch-iam-sr.html). * * The following arguments are optional: */ readonly roleArn: pulumi.Output; /** * Whether to leave the batch inference job in its current state when destroying the resource, instead of stopping it. */ readonly skipDestroy: pulumi.Output; /** * Status of the batch inference job. */ readonly status: pulumi.Output; /** * Time at which the batch inference job was submitted. */ readonly submitTime: pulumi.Output; /** * Number of records that were successfully processed in the batch inference job. */ readonly successRecordCount: pulumi.Output; /** * Number of hours after which to force the batch inference job to time out. */ readonly timeoutDurationInHours: pulumi.Output; readonly timeouts: pulumi.Output; /** * Total number of records in the batch inference job. */ readonly totalRecordCount: pulumi.Output; /** * VPC configuration for the data used by the batch inference job. See `vpcConfig` Block below. */ readonly vpcConfig: pulumi.Output; /** * Create a InvocationJob 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: InvocationJobArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering InvocationJob resources. */ export interface InvocationJobState { /** * Time at which the batch inference job ended. */ endTime?: pulumi.Input; /** * Number of records that failed to process in the batch inference job. */ errorRecordCount?: pulumi.Input; /** * Location of the input data for the batch inference job. See `inputDataConfig` Block below. */ inputDataConfig?: pulumi.Input; /** * ARN of the batch inference job. */ jobArn?: pulumi.Input; /** * Time at which the batch inference job times or timed out. */ jobExpirationTime?: pulumi.Input; /** * Name for the batch inference job. */ jobName?: pulumi.Input; /** * Identifier of the foundation model, or inference profile, to use for the batch inference job. */ modelId?: pulumi.Input; /** * Invocation endpoint used for the batch inference job. */ modelInvocationType?: pulumi.Input; /** * Location where the results of the batch inference job are stored. See `outputDataConfig` Block below. */ outputDataConfig?: pulumi.Input; /** * Number of records that have been processed in the batch inference job. */ processedRecordCount?: 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; /** * ARN of the IAM service role that Amazon Bedrock can assume to carry out and manage the batch inference job. See [Create a service role for batch inference](https://docs.aws.amazon.com/bedrock/latest/userguide/batch-iam-sr.html). * * The following arguments are optional: */ roleArn?: pulumi.Input; /** * Whether to leave the batch inference job in its current state when destroying the resource, instead of stopping it. */ skipDestroy?: pulumi.Input; /** * Status of the batch inference job. */ status?: pulumi.Input; /** * Time at which the batch inference job was submitted. */ submitTime?: pulumi.Input; /** * Number of records that were successfully processed in the batch inference job. */ successRecordCount?: pulumi.Input; /** * Number of hours after which to force the batch inference job to time out. */ timeoutDurationInHours?: pulumi.Input; timeouts?: pulumi.Input; /** * Total number of records in the batch inference job. */ totalRecordCount?: pulumi.Input; /** * VPC configuration for the data used by the batch inference job. See `vpcConfig` Block below. */ vpcConfig?: pulumi.Input; } /** * The set of arguments for constructing a InvocationJob resource. */ export interface InvocationJobArgs { /** * Location of the input data for the batch inference job. See `inputDataConfig` Block below. */ inputDataConfig: pulumi.Input; /** * Name for the batch inference job. */ jobName: pulumi.Input; /** * Identifier of the foundation model, or inference profile, to use for the batch inference job. */ modelId: pulumi.Input; /** * Location where the results of the batch inference job are stored. See `outputDataConfig` Block below. */ outputDataConfig: 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; /** * ARN of the IAM service role that Amazon Bedrock can assume to carry out and manage the batch inference job. See [Create a service role for batch inference](https://docs.aws.amazon.com/bedrock/latest/userguide/batch-iam-sr.html). * * The following arguments are optional: */ roleArn: pulumi.Input; /** * Whether to leave the batch inference job in its current state when destroying the resource, instead of stopping it. */ skipDestroy?: pulumi.Input; /** * Number of hours after which to force the batch inference job to time out. */ timeoutDurationInHours?: pulumi.Input; timeouts?: pulumi.Input; /** * VPC configuration for the data used by the batch inference job. See `vpcConfig` Block below. */ vpcConfig?: pulumi.Input; } //# sourceMappingURL=invocationJob.d.ts.map