1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. MediaServices
  5. getMediaWorkflowTaskDeclaration
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.MediaServices.getMediaWorkflowTaskDeclaration

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

    This data source provides details about a specific Media Workflow Task Declaration resource in Oracle Cloud Infrastructure Media Services service.

    Returns a list of MediaWorkflowTaskDeclarations.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testMediaWorkflowTaskDeclaration = oci.MediaServices.getMediaWorkflowTaskDeclaration({
        compartmentId: compartmentId,
        isCurrent: mediaWorkflowTaskDeclarationIsCurrent,
        name: mediaWorkflowTaskDeclarationName,
        version: mediaWorkflowTaskDeclarationVersion,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_media_workflow_task_declaration = oci.MediaServices.get_media_workflow_task_declaration(compartment_id=compartment_id,
        is_current=media_workflow_task_declaration_is_current,
        name=media_workflow_task_declaration_name,
        version=media_workflow_task_declaration_version)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/MediaServices"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := MediaServices.GetMediaWorkflowTaskDeclaration(ctx, &mediaservices.GetMediaWorkflowTaskDeclarationArgs{
    			CompartmentId: pulumi.StringRef(compartmentId),
    			IsCurrent:     pulumi.BoolRef(mediaWorkflowTaskDeclarationIsCurrent),
    			Name:          pulumi.StringRef(mediaWorkflowTaskDeclarationName),
    			Version:       pulumi.IntRef(mediaWorkflowTaskDeclarationVersion),
    		}, 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 testMediaWorkflowTaskDeclaration = Oci.MediaServices.GetMediaWorkflowTaskDeclaration.Invoke(new()
        {
            CompartmentId = compartmentId,
            IsCurrent = mediaWorkflowTaskDeclarationIsCurrent,
            Name = mediaWorkflowTaskDeclarationName,
            Version = mediaWorkflowTaskDeclarationVersion,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.MediaServices.MediaServicesFunctions;
    import com.pulumi.oci.MediaServices.inputs.GetMediaWorkflowTaskDeclarationArgs;
    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 testMediaWorkflowTaskDeclaration = MediaServicesFunctions.getMediaWorkflowTaskDeclaration(GetMediaWorkflowTaskDeclarationArgs.builder()
                .compartmentId(compartmentId)
                .isCurrent(mediaWorkflowTaskDeclarationIsCurrent)
                .name(mediaWorkflowTaskDeclarationName)
                .version(mediaWorkflowTaskDeclarationVersion)
                .build());
    
        }
    }
    
    variables:
      testMediaWorkflowTaskDeclaration:
        fn::invoke:
          Function: oci:MediaServices:getMediaWorkflowTaskDeclaration
          Arguments:
            compartmentId: ${compartmentId}
            isCurrent: ${mediaWorkflowTaskDeclarationIsCurrent}
            name: ${mediaWorkflowTaskDeclarationName}
            version: ${mediaWorkflowTaskDeclarationVersion}
    

    Using getMediaWorkflowTaskDeclaration

    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 getMediaWorkflowTaskDeclaration(args: GetMediaWorkflowTaskDeclarationArgs, opts?: InvokeOptions): Promise<GetMediaWorkflowTaskDeclarationResult>
    function getMediaWorkflowTaskDeclarationOutput(args: GetMediaWorkflowTaskDeclarationOutputArgs, opts?: InvokeOptions): Output<GetMediaWorkflowTaskDeclarationResult>
    def get_media_workflow_task_declaration(compartment_id: Optional[str] = None,
                                            is_current: Optional[bool] = None,
                                            name: Optional[str] = None,
                                            version: Optional[int] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetMediaWorkflowTaskDeclarationResult
    def get_media_workflow_task_declaration_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                            is_current: Optional[pulumi.Input[bool]] = None,
                                            name: Optional[pulumi.Input[str]] = None,
                                            version: Optional[pulumi.Input[int]] = None,
                                            opts: Optional[InvokeOptions] = None) -> Output[GetMediaWorkflowTaskDeclarationResult]
    func GetMediaWorkflowTaskDeclaration(ctx *Context, args *GetMediaWorkflowTaskDeclarationArgs, opts ...InvokeOption) (*GetMediaWorkflowTaskDeclarationResult, error)
    func GetMediaWorkflowTaskDeclarationOutput(ctx *Context, args *GetMediaWorkflowTaskDeclarationOutputArgs, opts ...InvokeOption) GetMediaWorkflowTaskDeclarationResultOutput

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

    public static class GetMediaWorkflowTaskDeclaration 
    {
        public static Task<GetMediaWorkflowTaskDeclarationResult> InvokeAsync(GetMediaWorkflowTaskDeclarationArgs args, InvokeOptions? opts = null)
        public static Output<GetMediaWorkflowTaskDeclarationResult> Invoke(GetMediaWorkflowTaskDeclarationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMediaWorkflowTaskDeclarationResult> getMediaWorkflowTaskDeclaration(GetMediaWorkflowTaskDeclarationArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:MediaServices/getMediaWorkflowTaskDeclaration:getMediaWorkflowTaskDeclaration
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The ID of the compartment in which to list resources.
    IsCurrent bool
    A filter to only select the newest version for each MediaWorkflowTaskDeclaration name.
    Name string
    A filter to return only the resources with their system defined, unique name matching the given name.
    Version int
    A filter to select MediaWorkflowTaskDeclaration by version.
    CompartmentId string
    The ID of the compartment in which to list resources.
    IsCurrent bool
    A filter to only select the newest version for each MediaWorkflowTaskDeclaration name.
    Name string
    A filter to return only the resources with their system defined, unique name matching the given name.
    Version int
    A filter to select MediaWorkflowTaskDeclaration by version.
    compartmentId String
    The ID of the compartment in which to list resources.
    isCurrent Boolean
    A filter to only select the newest version for each MediaWorkflowTaskDeclaration name.
    name String
    A filter to return only the resources with their system defined, unique name matching the given name.
    version Integer
    A filter to select MediaWorkflowTaskDeclaration by version.
    compartmentId string
    The ID of the compartment in which to list resources.
    isCurrent boolean
    A filter to only select the newest version for each MediaWorkflowTaskDeclaration name.
    name string
    A filter to return only the resources with their system defined, unique name matching the given name.
    version number
    A filter to select MediaWorkflowTaskDeclaration by version.
    compartment_id str
    The ID of the compartment in which to list resources.
    is_current bool
    A filter to only select the newest version for each MediaWorkflowTaskDeclaration name.
    name str
    A filter to return only the resources with their system defined, unique name matching the given name.
    version int
    A filter to select MediaWorkflowTaskDeclaration by version.
    compartmentId String
    The ID of the compartment in which to list resources.
    isCurrent Boolean
    A filter to only select the newest version for each MediaWorkflowTaskDeclaration name.
    name String
    A filter to return only the resources with their system defined, unique name matching the given name.
    version Number
    A filter to select MediaWorkflowTaskDeclaration by version.

    getMediaWorkflowTaskDeclaration Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Items List<GetMediaWorkflowTaskDeclarationItem>
    List of MediaWorkflowTaskDeclaration objects.
    CompartmentId string
    IsCurrent bool
    Name string
    MediaWorkflowTaskDeclaration identifier. The name and version should be unique among MediaWorkflowTaskDeclarations.
    Version int
    The version of MediaWorkflowTaskDeclaration, incremented whenever the team implementing the task processor modifies the JSON schema of this declaration's definitions, parameters or list of required parameters.
    Id string
    The provider-assigned unique ID for this managed resource.
    Items []GetMediaWorkflowTaskDeclarationItem
    List of MediaWorkflowTaskDeclaration objects.
    CompartmentId string
    IsCurrent bool
    Name string
    MediaWorkflowTaskDeclaration identifier. The name and version should be unique among MediaWorkflowTaskDeclarations.
    Version int
    The version of MediaWorkflowTaskDeclaration, incremented whenever the team implementing the task processor modifies the JSON schema of this declaration's definitions, parameters or list of required parameters.
    id String
    The provider-assigned unique ID for this managed resource.
    items List<GetMediaWorkflowTaskDeclarationItem>
    List of MediaWorkflowTaskDeclaration objects.
    compartmentId String
    isCurrent Boolean
    name String
    MediaWorkflowTaskDeclaration identifier. The name and version should be unique among MediaWorkflowTaskDeclarations.
    version Integer
    The version of MediaWorkflowTaskDeclaration, incremented whenever the team implementing the task processor modifies the JSON schema of this declaration's definitions, parameters or list of required parameters.
    id string
    The provider-assigned unique ID for this managed resource.
    items GetMediaWorkflowTaskDeclarationItem[]
    List of MediaWorkflowTaskDeclaration objects.
    compartmentId string
    isCurrent boolean
    name string
    MediaWorkflowTaskDeclaration identifier. The name and version should be unique among MediaWorkflowTaskDeclarations.
    version number
    The version of MediaWorkflowTaskDeclaration, incremented whenever the team implementing the task processor modifies the JSON schema of this declaration's definitions, parameters or list of required parameters.
    id str
    The provider-assigned unique ID for this managed resource.
    items Sequence[mediaservices.GetMediaWorkflowTaskDeclarationItem]
    List of MediaWorkflowTaskDeclaration objects.
    compartment_id str
    is_current bool
    name str
    MediaWorkflowTaskDeclaration identifier. The name and version should be unique among MediaWorkflowTaskDeclarations.
    version int
    The version of MediaWorkflowTaskDeclaration, incremented whenever the team implementing the task processor modifies the JSON schema of this declaration's definitions, parameters or list of required parameters.
    id String
    The provider-assigned unique ID for this managed resource.
    items List<Property Map>
    List of MediaWorkflowTaskDeclaration objects.
    compartmentId String
    isCurrent Boolean
    name String
    MediaWorkflowTaskDeclaration identifier. The name and version should be unique among MediaWorkflowTaskDeclarations.
    version Number
    The version of MediaWorkflowTaskDeclaration, incremented whenever the team implementing the task processor modifies the JSON schema of this declaration's definitions, parameters or list of required parameters.

    Supporting Types

    GetMediaWorkflowTaskDeclarationItem

    Name string
    A filter to return only the resources with their system defined, unique name matching the given name.
    ParametersSchema string
    JSON schema specifying the parameters supported by this type of task. This is used to validate tasks' parameters when jobs are created.
    ParametersSchemaAllowingReferences string
    JSON schema similar to the parameterSchema, but permits parameter values to refer to other parameters using the ${/path/to/another/parmeter} syntax. This is used to validate task parameters when workflows are created.
    Version int
    A filter to select MediaWorkflowTaskDeclaration by version.
    Name string
    A filter to return only the resources with their system defined, unique name matching the given name.
    ParametersSchema string
    JSON schema specifying the parameters supported by this type of task. This is used to validate tasks' parameters when jobs are created.
    ParametersSchemaAllowingReferences string
    JSON schema similar to the parameterSchema, but permits parameter values to refer to other parameters using the ${/path/to/another/parmeter} syntax. This is used to validate task parameters when workflows are created.
    Version int
    A filter to select MediaWorkflowTaskDeclaration by version.
    name String
    A filter to return only the resources with their system defined, unique name matching the given name.
    parametersSchema String
    JSON schema specifying the parameters supported by this type of task. This is used to validate tasks' parameters when jobs are created.
    parametersSchemaAllowingReferences String
    JSON schema similar to the parameterSchema, but permits parameter values to refer to other parameters using the ${/path/to/another/parmeter} syntax. This is used to validate task parameters when workflows are created.
    version Integer
    A filter to select MediaWorkflowTaskDeclaration by version.
    name string
    A filter to return only the resources with their system defined, unique name matching the given name.
    parametersSchema string
    JSON schema specifying the parameters supported by this type of task. This is used to validate tasks' parameters when jobs are created.
    parametersSchemaAllowingReferences string
    JSON schema similar to the parameterSchema, but permits parameter values to refer to other parameters using the ${/path/to/another/parmeter} syntax. This is used to validate task parameters when workflows are created.
    version number
    A filter to select MediaWorkflowTaskDeclaration by version.
    name str
    A filter to return only the resources with their system defined, unique name matching the given name.
    parameters_schema str
    JSON schema specifying the parameters supported by this type of task. This is used to validate tasks' parameters when jobs are created.
    parameters_schema_allowing_references str
    JSON schema similar to the parameterSchema, but permits parameter values to refer to other parameters using the ${/path/to/another/parmeter} syntax. This is used to validate task parameters when workflows are created.
    version int
    A filter to select MediaWorkflowTaskDeclaration by version.
    name String
    A filter to return only the resources with their system defined, unique name matching the given name.
    parametersSchema String
    JSON schema specifying the parameters supported by this type of task. This is used to validate tasks' parameters when jobs are created.
    parametersSchemaAllowingReferences String
    JSON schema similar to the parameterSchema, but permits parameter values to refer to other parameters using the ${/path/to/another/parmeter} syntax. This is used to validate task parameters when workflows are created.
    version Number
    A filter to select MediaWorkflowTaskDeclaration by version.

    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.11.0 published on Thursday, Sep 19, 2024 by Pulumi