1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataLabellingService
  5. getAnnotationFormat
Oracle Cloud Infrastructure v2.18.0 published on Friday, Nov 22, 2024 by Pulumi

oci.DataLabellingService.getAnnotationFormat

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.18.0 published on Friday, Nov 22, 2024 by Pulumi

    This data source provides details about a specific Annotation Format resource in Oracle Cloud Infrastructure Data Labeling Service service.

    These are a static list in a given region.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAnnotationFormat = oci.DataLabellingService.getAnnotationFormat({
        compartmentId: compartmentId,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_annotation_format = oci.DataLabellingService.get_annotation_format(compartment_id=compartment_id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/DataLabellingService"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := DataLabellingService.GetAnnotationFormat(ctx, &datalabellingservice.GetAnnotationFormatArgs{
    			CompartmentId: compartmentId,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testAnnotationFormat = Oci.DataLabellingService.GetAnnotationFormat.Invoke(new()
        {
            CompartmentId = compartmentId,
        });
    
    });
    
    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.GetAnnotationFormatArgs;
    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 testAnnotationFormat = DataLabellingServiceFunctions.getAnnotationFormat(GetAnnotationFormatArgs.builder()
                .compartmentId(compartmentId)
                .build());
    
        }
    }
    
    variables:
      testAnnotationFormat:
        fn::invoke:
          Function: oci:DataLabellingService:getAnnotationFormat
          Arguments:
            compartmentId: ${compartmentId}
    

    Using getAnnotationFormat

    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 getAnnotationFormat(args: GetAnnotationFormatArgs, opts?: InvokeOptions): Promise<GetAnnotationFormatResult>
    function getAnnotationFormatOutput(args: GetAnnotationFormatOutputArgs, opts?: InvokeOptions): Output<GetAnnotationFormatResult>
    def get_annotation_format(compartment_id: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetAnnotationFormatResult
    def get_annotation_format_output(compartment_id: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetAnnotationFormatResult]
    func GetAnnotationFormat(ctx *Context, args *GetAnnotationFormatArgs, opts ...InvokeOption) (*GetAnnotationFormatResult, error)
    func GetAnnotationFormatOutput(ctx *Context, args *GetAnnotationFormatOutputArgs, opts ...InvokeOption) GetAnnotationFormatResultOutput

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

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

    The following arguments are supported:

    CompartmentId string
    The ID of the compartment in which to list resources.
    CompartmentId string
    The ID of the compartment in which to list resources.
    compartmentId String
    The ID of the compartment in which to list resources.
    compartmentId string
    The ID of the compartment in which to list resources.
    compartment_id str
    The ID of the compartment in which to list resources.
    compartmentId String
    The ID of the compartment in which to list resources.

    getAnnotationFormat Result

    The following output properties are available:

    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Items List<GetAnnotationFormatItem>
    List of annotation formats.
    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Items []GetAnnotationFormatItem
    List of annotation formats.
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    items List<GetAnnotationFormatItem>
    List of annotation formats.
    compartmentId string
    id string
    The provider-assigned unique ID for this managed resource.
    items GetAnnotationFormatItem[]
    List of annotation formats.
    compartment_id str
    id str
    The provider-assigned unique ID for this managed resource.
    items Sequence[datalabellingservice.GetAnnotationFormatItem]
    List of annotation formats.
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    items List<Property Map>
    List of annotation formats.

    Supporting Types

    GetAnnotationFormatItem

    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.

    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 v2.18.0 published on Friday, Nov 22, 2024 by Pulumi