Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.datalabeling/v1beta1.Instruction
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates an instruction for how data should be labeled. Auto-naming is currently not supported for this resource.
Create Instruction Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Instruction(name: string, args: InstructionArgs, opts?: CustomResourceOptions);
@overload
def Instruction(resource_name: str,
args: InstructionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Instruction(resource_name: str,
opts: Optional[ResourceOptions] = None,
data_type: Optional[InstructionDataType] = None,
display_name: Optional[str] = None,
csv_instruction: Optional[GoogleCloudDatalabelingV1beta1CsvInstructionArgs] = None,
description: Optional[str] = None,
pdf_instruction: Optional[GoogleCloudDatalabelingV1beta1PdfInstructionArgs] = None,
project: Optional[str] = None)
func NewInstruction(ctx *Context, name string, args InstructionArgs, opts ...ResourceOption) (*Instruction, error)
public Instruction(string name, InstructionArgs args, CustomResourceOptions? opts = null)
public Instruction(String name, InstructionArgs args)
public Instruction(String name, InstructionArgs args, CustomResourceOptions options)
type: google-native:datalabeling/v1beta1:Instruction
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args InstructionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args InstructionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args InstructionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstructionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InstructionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var instructionResource = new GoogleNative.DataLabeling.V1Beta1.Instruction("instructionResource", new()
{
DataType = GoogleNative.DataLabeling.V1Beta1.InstructionDataType.DataTypeUnspecified,
DisplayName = "string",
Description = "string",
PdfInstruction = new GoogleNative.DataLabeling.V1Beta1.Inputs.GoogleCloudDatalabelingV1beta1PdfInstructionArgs
{
GcsFileUri = "string",
},
Project = "string",
});
example, err := datalabeling.NewInstruction(ctx, "instructionResource", &datalabeling.InstructionArgs{
DataType: datalabeling.InstructionDataTypeDataTypeUnspecified,
DisplayName: pulumi.String("string"),
Description: pulumi.String("string"),
PdfInstruction: &datalabeling.GoogleCloudDatalabelingV1beta1PdfInstructionArgs{
GcsFileUri: pulumi.String("string"),
},
Project: pulumi.String("string"),
})
var instructionResource = new Instruction("instructionResource", InstructionArgs.builder()
.dataType("DATA_TYPE_UNSPECIFIED")
.displayName("string")
.description("string")
.pdfInstruction(GoogleCloudDatalabelingV1beta1PdfInstructionArgs.builder()
.gcsFileUri("string")
.build())
.project("string")
.build());
instruction_resource = google_native.datalabeling.v1beta1.Instruction("instructionResource",
data_type=google_native.datalabeling.v1beta1.InstructionDataType.DATA_TYPE_UNSPECIFIED,
display_name="string",
description="string",
pdf_instruction={
"gcs_file_uri": "string",
},
project="string")
const instructionResource = new google_native.datalabeling.v1beta1.Instruction("instructionResource", {
dataType: google_native.datalabeling.v1beta1.InstructionDataType.DataTypeUnspecified,
displayName: "string",
description: "string",
pdfInstruction: {
gcsFileUri: "string",
},
project: "string",
});
type: google-native:datalabeling/v1beta1:Instruction
properties:
dataType: DATA_TYPE_UNSPECIFIED
description: string
displayName: string
pdfInstruction:
gcsFileUri: string
project: string
Instruction Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Instruction resource accepts the following input properties:
- Data
Type Pulumi.Google Native. Data Labeling. V1Beta1. Instruction Data Type - The data type of this instruction.
- Display
Name string - The display name of the instruction. Maximum of 64 characters.
- Csv
Instruction Pulumi.Google Native. Data Labeling. V1Beta1. Inputs. Google Cloud Datalabeling V1beta1Csv Instruction - Deprecated: this instruction format is not supported any more. Instruction from a CSV file, such as for classification task. The CSV file should have exact two columns, in the following format: * The first column is labeled data, such as an image reference, text. * The second column is comma separated labels associated with data.
- Description string
- Optional. User-provided description of the instruction. The description can be up to 10000 characters long.
- Pdf
Instruction Pulumi.Google Native. Data Labeling. V1Beta1. Inputs. Google Cloud Datalabeling V1beta1Pdf Instruction - Instruction from a PDF document. The PDF should be in a Cloud Storage bucket.
- Project string
- Data
Type InstructionData Type - The data type of this instruction.
- Display
Name string - The display name of the instruction. Maximum of 64 characters.
- Csv
Instruction GoogleCloud Datalabeling V1beta1Csv Instruction Args - Deprecated: this instruction format is not supported any more. Instruction from a CSV file, such as for classification task. The CSV file should have exact two columns, in the following format: * The first column is labeled data, such as an image reference, text. * The second column is comma separated labels associated with data.
- Description string
- Optional. User-provided description of the instruction. The description can be up to 10000 characters long.
- Pdf
Instruction GoogleCloud Datalabeling V1beta1Pdf Instruction Args - Instruction from a PDF document. The PDF should be in a Cloud Storage bucket.
- Project string
- data
Type InstructionData Type - The data type of this instruction.
- display
Name String - The display name of the instruction. Maximum of 64 characters.
- csv
Instruction GoogleCloud Datalabeling V1beta1Csv Instruction - Deprecated: this instruction format is not supported any more. Instruction from a CSV file, such as for classification task. The CSV file should have exact two columns, in the following format: * The first column is labeled data, such as an image reference, text. * The second column is comma separated labels associated with data.
- description String
- Optional. User-provided description of the instruction. The description can be up to 10000 characters long.
- pdf
Instruction GoogleCloud Datalabeling V1beta1Pdf Instruction - Instruction from a PDF document. The PDF should be in a Cloud Storage bucket.
- project String
- data
Type InstructionData Type - The data type of this instruction.
- display
Name string - The display name of the instruction. Maximum of 64 characters.
- csv
Instruction GoogleCloud Datalabeling V1beta1Csv Instruction - Deprecated: this instruction format is not supported any more. Instruction from a CSV file, such as for classification task. The CSV file should have exact two columns, in the following format: * The first column is labeled data, such as an image reference, text. * The second column is comma separated labels associated with data.
- description string
- Optional. User-provided description of the instruction. The description can be up to 10000 characters long.
- pdf
Instruction GoogleCloud Datalabeling V1beta1Pdf Instruction - Instruction from a PDF document. The PDF should be in a Cloud Storage bucket.
- project string
- data_
type InstructionData Type - The data type of this instruction.
- display_
name str - The display name of the instruction. Maximum of 64 characters.
- csv_
instruction GoogleCloud Datalabeling V1beta1Csv Instruction Args - Deprecated: this instruction format is not supported any more. Instruction from a CSV file, such as for classification task. The CSV file should have exact two columns, in the following format: * The first column is labeled data, such as an image reference, text. * The second column is comma separated labels associated with data.
- description str
- Optional. User-provided description of the instruction. The description can be up to 10000 characters long.
- pdf_
instruction GoogleCloud Datalabeling V1beta1Pdf Instruction Args - Instruction from a PDF document. The PDF should be in a Cloud Storage bucket.
- project str
- data
Type "DATA_TYPE_UNSPECIFIED" | "IMAGE" | "VIDEO" | "TEXT" | "GENERAL_DATA" - The data type of this instruction.
- display
Name String - The display name of the instruction. Maximum of 64 characters.
- csv
Instruction Property Map - Deprecated: this instruction format is not supported any more. Instruction from a CSV file, such as for classification task. The CSV file should have exact two columns, in the following format: * The first column is labeled data, such as an image reference, text. * The second column is comma separated labels associated with data.
- description String
- Optional. User-provided description of the instruction. The description can be up to 10000 characters long.
- pdf
Instruction Property Map - Instruction from a PDF document. The PDF should be in a Cloud Storage bucket.
- project String
Outputs
All input properties are implicitly available as output properties. Additionally, the Instruction resource produces the following output properties:
- Blocking
Resources List<string> - The names of any related resources that are blocking changes to the instruction.
- Create
Time string - Creation time of instruction.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Instruction resource name, format: projects/{project_id}/instructions/{instruction_id}
- Update
Time string - Last update time of instruction.
- Blocking
Resources []string - The names of any related resources that are blocking changes to the instruction.
- Create
Time string - Creation time of instruction.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Instruction resource name, format: projects/{project_id}/instructions/{instruction_id}
- Update
Time string - Last update time of instruction.
- blocking
Resources List<String> - The names of any related resources that are blocking changes to the instruction.
- create
Time String - Creation time of instruction.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Instruction resource name, format: projects/{project_id}/instructions/{instruction_id}
- update
Time String - Last update time of instruction.
- blocking
Resources string[] - The names of any related resources that are blocking changes to the instruction.
- create
Time string - Creation time of instruction.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Instruction resource name, format: projects/{project_id}/instructions/{instruction_id}
- update
Time string - Last update time of instruction.
- blocking_
resources Sequence[str] - The names of any related resources that are blocking changes to the instruction.
- create_
time str - Creation time of instruction.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Instruction resource name, format: projects/{project_id}/instructions/{instruction_id}
- update_
time str - Last update time of instruction.
- blocking
Resources List<String> - The names of any related resources that are blocking changes to the instruction.
- create
Time String - Creation time of instruction.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Instruction resource name, format: projects/{project_id}/instructions/{instruction_id}
- update
Time String - Last update time of instruction.
Supporting Types
GoogleCloudDatalabelingV1beta1CsvInstruction, GoogleCloudDatalabelingV1beta1CsvInstructionArgs
- Gcs
File stringUri - CSV file for the instruction. Only gcs path is allowed.
- Gcs
File stringUri - CSV file for the instruction. Only gcs path is allowed.
- gcs
File StringUri - CSV file for the instruction. Only gcs path is allowed.
- gcs
File stringUri - CSV file for the instruction. Only gcs path is allowed.
- gcs_
file_ struri - CSV file for the instruction. Only gcs path is allowed.
- gcs
File StringUri - CSV file for the instruction. Only gcs path is allowed.
GoogleCloudDatalabelingV1beta1CsvInstructionResponse, GoogleCloudDatalabelingV1beta1CsvInstructionResponseArgs
- Gcs
File stringUri - CSV file for the instruction. Only gcs path is allowed.
- Gcs
File stringUri - CSV file for the instruction. Only gcs path is allowed.
- gcs
File StringUri - CSV file for the instruction. Only gcs path is allowed.
- gcs
File stringUri - CSV file for the instruction. Only gcs path is allowed.
- gcs_
file_ struri - CSV file for the instruction. Only gcs path is allowed.
- gcs
File StringUri - CSV file for the instruction. Only gcs path is allowed.
GoogleCloudDatalabelingV1beta1PdfInstruction, GoogleCloudDatalabelingV1beta1PdfInstructionArgs
- Gcs
File stringUri - PDF file for the instruction. Only gcs path is allowed.
- Gcs
File stringUri - PDF file for the instruction. Only gcs path is allowed.
- gcs
File StringUri - PDF file for the instruction. Only gcs path is allowed.
- gcs
File stringUri - PDF file for the instruction. Only gcs path is allowed.
- gcs_
file_ struri - PDF file for the instruction. Only gcs path is allowed.
- gcs
File StringUri - PDF file for the instruction. Only gcs path is allowed.
GoogleCloudDatalabelingV1beta1PdfInstructionResponse, GoogleCloudDatalabelingV1beta1PdfInstructionResponseArgs
- Gcs
File stringUri - PDF file for the instruction. Only gcs path is allowed.
- Gcs
File stringUri - PDF file for the instruction. Only gcs path is allowed.
- gcs
File StringUri - PDF file for the instruction. Only gcs path is allowed.
- gcs
File stringUri - PDF file for the instruction. Only gcs path is allowed.
- gcs_
file_ struri - PDF file for the instruction. Only gcs path is allowed.
- gcs
File StringUri - PDF file for the instruction. Only gcs path is allowed.
InstructionDataType, InstructionDataTypeArgs
- Data
Type Unspecified - DATA_TYPE_UNSPECIFIEDData type is unspecified.
- Image
- IMAGEAllowed for continuous evaluation.
- Video
- VIDEOVideo data type.
- Text
- TEXTAllowed for continuous evaluation.
- General
Data - GENERAL_DATAAllowed for continuous evaluation.
- Instruction
Data Type Data Type Unspecified - DATA_TYPE_UNSPECIFIEDData type is unspecified.
- Instruction
Data Type Image - IMAGEAllowed for continuous evaluation.
- Instruction
Data Type Video - VIDEOVideo data type.
- Instruction
Data Type Text - TEXTAllowed for continuous evaluation.
- Instruction
Data Type General Data - GENERAL_DATAAllowed for continuous evaluation.
- Data
Type Unspecified - DATA_TYPE_UNSPECIFIEDData type is unspecified.
- Image
- IMAGEAllowed for continuous evaluation.
- Video
- VIDEOVideo data type.
- Text
- TEXTAllowed for continuous evaluation.
- General
Data - GENERAL_DATAAllowed for continuous evaluation.
- Data
Type Unspecified - DATA_TYPE_UNSPECIFIEDData type is unspecified.
- Image
- IMAGEAllowed for continuous evaluation.
- Video
- VIDEOVideo data type.
- Text
- TEXTAllowed for continuous evaluation.
- General
Data - GENERAL_DATAAllowed for continuous evaluation.
- DATA_TYPE_UNSPECIFIED
- DATA_TYPE_UNSPECIFIEDData type is unspecified.
- IMAGE
- IMAGEAllowed for continuous evaluation.
- VIDEO
- VIDEOVideo data type.
- TEXT
- TEXTAllowed for continuous evaluation.
- GENERAL_DATA
- GENERAL_DATAAllowed for continuous evaluation.
- "DATA_TYPE_UNSPECIFIED"
- DATA_TYPE_UNSPECIFIEDData type is unspecified.
- "IMAGE"
- IMAGEAllowed for continuous evaluation.
- "VIDEO"
- VIDEOVideo data type.
- "TEXT"
- TEXTAllowed for continuous evaluation.
- "GENERAL_DATA"
- GENERAL_DATAAllowed for continuous evaluation.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.