1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataLabellingService
  5. getAnnotationFormats
Oracle Cloud Infrastructure v1.24.0 published on Thursday, Feb 22, 2024 by Pulumi

oci.DataLabellingService.getAnnotationFormats

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.24.0 published on Thursday, Feb 22, 2024 by Pulumi

    This data source provides the list of Annotation Formats in Oracle Cloud Infrastructure Data Labeling Service service.

    These are a static list in a given region.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testAnnotationFormats = Oci.DataLabellingService.GetAnnotationFormats.Invoke(new()
        {
            CompartmentId = @var.Compartment_id,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/DataLabellingService"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := DataLabellingService.GetAnnotationFormats(ctx, &datalabellingservice.GetAnnotationFormatsArgs{
    			CompartmentId: _var.Compartment_id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.DataLabellingService.DataLabellingServiceFunctions;
    import com.pulumi.oci.DataLabellingService.inputs.GetAnnotationFormatsArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var testAnnotationFormats = DataLabellingServiceFunctions.getAnnotationFormats(GetAnnotationFormatsArgs.builder()
                .compartmentId(var_.compartment_id())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_oci as oci
    
    test_annotation_formats = oci.DataLabellingService.get_annotation_formats(compartment_id=var["compartment_id"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAnnotationFormats = oci.DataLabellingService.getAnnotationFormats({
        compartmentId: _var.compartment_id,
    });
    
    variables:
      testAnnotationFormats:
        fn::invoke:
          Function: oci:DataLabellingService:getAnnotationFormats
          Arguments:
            compartmentId: ${var.compartment_id}
    

    Using getAnnotationFormats

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getAnnotationFormats(args: GetAnnotationFormatsArgs, opts?: InvokeOptions): Promise<GetAnnotationFormatsResult>
    function getAnnotationFormatsOutput(args: GetAnnotationFormatsOutputArgs, opts?: InvokeOptions): Output<GetAnnotationFormatsResult>
    def get_annotation_formats(compartment_id: Optional[str] = None,
                               filters: Optional[Sequence[_datalabellingservice.GetAnnotationFormatsFilter]] = None,
                               opts: Optional[InvokeOptions] = None) -> GetAnnotationFormatsResult
    def get_annotation_formats_output(compartment_id: Optional[pulumi.Input[str]] = None,
                               filters: Optional[pulumi.Input[Sequence[pulumi.Input[_datalabellingservice.GetAnnotationFormatsFilterArgs]]]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetAnnotationFormatsResult]
    func GetAnnotationFormats(ctx *Context, args *GetAnnotationFormatsArgs, opts ...InvokeOption) (*GetAnnotationFormatsResult, error)
    func GetAnnotationFormatsOutput(ctx *Context, args *GetAnnotationFormatsOutputArgs, opts ...InvokeOption) GetAnnotationFormatsResultOutput

    > Note: This function is named GetAnnotationFormats in the Go SDK.

    public static class GetAnnotationFormats 
    {
        public static Task<GetAnnotationFormatsResult> InvokeAsync(GetAnnotationFormatsArgs args, InvokeOptions? opts = null)
        public static Output<GetAnnotationFormatsResult> Invoke(GetAnnotationFormatsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAnnotationFormatsResult> getAnnotationFormats(GetAnnotationFormatsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:DataLabellingService/getAnnotationFormats:getAnnotationFormats
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The ID of the compartment in which to list resources.
    Filters List<GetAnnotationFormatsFilter>
    CompartmentId string
    The ID of the compartment in which to list resources.
    Filters []GetAnnotationFormatsFilter
    compartmentId String
    The ID of the compartment in which to list resources.
    filters List<GetAnnotationFormatsFilter>
    compartmentId string
    The ID of the compartment in which to list resources.
    filters GetAnnotationFormatsFilter[]
    compartment_id str
    The ID of the compartment in which to list resources.
    filters GetAnnotationFormatsFilter]
    compartmentId String
    The ID of the compartment in which to list resources.
    filters List<Property Map>

    getAnnotationFormats Result

    The following output properties are available:

    AnnotationFormatCollections List<GetAnnotationFormatsAnnotationFormatCollection>
    The list of annotation_format_collection.
    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters List<GetAnnotationFormatsFilter>
    AnnotationFormatCollections []GetAnnotationFormatsAnnotationFormatCollection
    The list of annotation_format_collection.
    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters []GetAnnotationFormatsFilter
    annotationFormatCollections List<GetAnnotationFormatsAnnotationFormatCollection>
    The list of annotation_format_collection.
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<GetAnnotationFormatsFilter>
    annotationFormatCollections GetAnnotationFormatsAnnotationFormatCollection[]
    The list of annotation_format_collection.
    compartmentId string
    id string
    The provider-assigned unique ID for this managed resource.
    filters GetAnnotationFormatsFilter[]
    annotation_format_collections GetAnnotationFormatsAnnotationFormatCollection]
    The list of annotation_format_collection.
    compartment_id str
    id str
    The provider-assigned unique ID for this managed resource.
    filters GetAnnotationFormatsFilter]
    annotationFormatCollections List<Property Map>
    The list of annotation_format_collection.
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<Property Map>

    Supporting Types

    GetAnnotationFormatsAnnotationFormatCollection

    items List<Property Map>
    List of annotation formats.

    GetAnnotationFormatsAnnotationFormatCollectionItem

    Name string
    A unique name for the target AnnotationFormat for the Dataset.
    Name string
    A unique name for the target AnnotationFormat for the Dataset.
    name String
    A unique name for the target AnnotationFormat for the Dataset.
    name string
    A unique name for the target AnnotationFormat for the Dataset.
    name str
    A unique name for the target AnnotationFormat for the Dataset.
    name String
    A unique name for the target AnnotationFormat for the Dataset.

    GetAnnotationFormatsFilter

    Name string
    A unique name for the target AnnotationFormat for the Dataset.
    Values List<string>
    Regex bool
    Name string
    A unique name for the target AnnotationFormat for the Dataset.
    Values []string
    Regex bool
    name String
    A unique name for the target AnnotationFormat for the Dataset.
    values List<String>
    regex Boolean
    name string
    A unique name for the target AnnotationFormat for the Dataset.
    values string[]
    regex boolean
    name str
    A unique name for the target AnnotationFormat for the Dataset.
    values Sequence[str]
    regex bool
    name String
    A unique name for the target AnnotationFormat for the Dataset.
    values List<String>
    regex Boolean

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.24.0 published on Thursday, Feb 22, 2024 by Pulumi