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

oci.Jms.getJavaDownloadsJavaLicenses

Explore with Pulumi AI

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

    This data source provides the list of Java Licenses in Oracle Cloud Infrastructure Jms Java Downloads service.

    Return a list with details of all Java licenses.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testJavaLicenses = oci.Jms.getJavaDownloadsJavaLicenses({
        displayName: javaLicenseDisplayName,
        licenseType: javaLicenseLicenseType,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_java_licenses = oci.Jms.get_java_downloads_java_licenses(display_name=java_license_display_name,
        license_type=java_license_license_type)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Jms"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Jms.GetJavaDownloadsJavaLicenses(ctx, &jms.GetJavaDownloadsJavaLicensesArgs{
    			DisplayName: pulumi.StringRef(javaLicenseDisplayName),
    			LicenseType: pulumi.StringRef(javaLicenseLicenseType),
    		}, 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 testJavaLicenses = Oci.Jms.GetJavaDownloadsJavaLicenses.Invoke(new()
        {
            DisplayName = javaLicenseDisplayName,
            LicenseType = javaLicenseLicenseType,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Jms.JmsFunctions;
    import com.pulumi.oci.Jms.inputs.GetJavaDownloadsJavaLicensesArgs;
    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 testJavaLicenses = JmsFunctions.getJavaDownloadsJavaLicenses(GetJavaDownloadsJavaLicensesArgs.builder()
                .displayName(javaLicenseDisplayName)
                .licenseType(javaLicenseLicenseType)
                .build());
    
        }
    }
    
    variables:
      testJavaLicenses:
        fn::invoke:
          Function: oci:Jms:getJavaDownloadsJavaLicenses
          Arguments:
            displayName: ${javaLicenseDisplayName}
            licenseType: ${javaLicenseLicenseType}
    

    Using getJavaDownloadsJavaLicenses

    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 getJavaDownloadsJavaLicenses(args: GetJavaDownloadsJavaLicensesArgs, opts?: InvokeOptions): Promise<GetJavaDownloadsJavaLicensesResult>
    function getJavaDownloadsJavaLicensesOutput(args: GetJavaDownloadsJavaLicensesOutputArgs, opts?: InvokeOptions): Output<GetJavaDownloadsJavaLicensesResult>
    def get_java_downloads_java_licenses(display_name: Optional[str] = None,
                                         filters: Optional[Sequence[_jms.GetJavaDownloadsJavaLicensesFilter]] = None,
                                         license_type: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetJavaDownloadsJavaLicensesResult
    def get_java_downloads_java_licenses_output(display_name: Optional[pulumi.Input[str]] = None,
                                         filters: Optional[pulumi.Input[Sequence[pulumi.Input[_jms.GetJavaDownloadsJavaLicensesFilterArgs]]]] = None,
                                         license_type: Optional[pulumi.Input[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetJavaDownloadsJavaLicensesResult]
    func GetJavaDownloadsJavaLicenses(ctx *Context, args *GetJavaDownloadsJavaLicensesArgs, opts ...InvokeOption) (*GetJavaDownloadsJavaLicensesResult, error)
    func GetJavaDownloadsJavaLicensesOutput(ctx *Context, args *GetJavaDownloadsJavaLicensesOutputArgs, opts ...InvokeOption) GetJavaDownloadsJavaLicensesResultOutput

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

    public static class GetJavaDownloadsJavaLicenses 
    {
        public static Task<GetJavaDownloadsJavaLicensesResult> InvokeAsync(GetJavaDownloadsJavaLicensesArgs args, InvokeOptions? opts = null)
        public static Output<GetJavaDownloadsJavaLicensesResult> Invoke(GetJavaDownloadsJavaLicensesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetJavaDownloadsJavaLicensesResult> getJavaDownloadsJavaLicenses(GetJavaDownloadsJavaLicensesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Jms/getJavaDownloadsJavaLicenses:getJavaDownloadsJavaLicenses
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DisplayName string
    A filter to return only resources that match the display name.
    Filters List<GetJavaDownloadsJavaLicensesFilter>
    LicenseType string
    Unique Java license type.
    DisplayName string
    A filter to return only resources that match the display name.
    Filters []GetJavaDownloadsJavaLicensesFilter
    LicenseType string
    Unique Java license type.
    displayName String
    A filter to return only resources that match the display name.
    filters List<GetJavaDownloadsJavaLicensesFilter>
    licenseType String
    Unique Java license type.
    displayName string
    A filter to return only resources that match the display name.
    filters GetJavaDownloadsJavaLicensesFilter[]
    licenseType string
    Unique Java license type.
    display_name str
    A filter to return only resources that match the display name.
    filters Sequence[jms.GetJavaDownloadsJavaLicensesFilter]
    license_type str
    Unique Java license type.
    displayName String
    A filter to return only resources that match the display name.
    filters List<Property Map>
    licenseType String
    Unique Java license type.

    getJavaDownloadsJavaLicenses Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    JavaLicenseCollections List<GetJavaDownloadsJavaLicensesJavaLicenseCollection>
    The list of java_license_collection.
    DisplayName string
    Commonly used name for the license type.
    Filters List<GetJavaDownloadsJavaLicensesFilter>
    LicenseType string
    License Type
    Id string
    The provider-assigned unique ID for this managed resource.
    JavaLicenseCollections []GetJavaDownloadsJavaLicensesJavaLicenseCollection
    The list of java_license_collection.
    DisplayName string
    Commonly used name for the license type.
    Filters []GetJavaDownloadsJavaLicensesFilter
    LicenseType string
    License Type
    id String
    The provider-assigned unique ID for this managed resource.
    javaLicenseCollections List<GetJavaDownloadsJavaLicensesJavaLicenseCollection>
    The list of java_license_collection.
    displayName String
    Commonly used name for the license type.
    filters List<GetJavaDownloadsJavaLicensesFilter>
    licenseType String
    License Type
    id string
    The provider-assigned unique ID for this managed resource.
    javaLicenseCollections GetJavaDownloadsJavaLicensesJavaLicenseCollection[]
    The list of java_license_collection.
    displayName string
    Commonly used name for the license type.
    filters GetJavaDownloadsJavaLicensesFilter[]
    licenseType string
    License Type
    id str
    The provider-assigned unique ID for this managed resource.
    java_license_collections Sequence[jms.GetJavaDownloadsJavaLicensesJavaLicenseCollection]
    The list of java_license_collection.
    display_name str
    Commonly used name for the license type.
    filters Sequence[jms.GetJavaDownloadsJavaLicensesFilter]
    license_type str
    License Type
    id String
    The provider-assigned unique ID for this managed resource.
    javaLicenseCollections List<Property Map>
    The list of java_license_collection.
    displayName String
    Commonly used name for the license type.
    filters List<Property Map>
    licenseType String
    License Type

    Supporting Types

    GetJavaDownloadsJavaLicensesFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetJavaDownloadsJavaLicensesJavaLicenseCollection

    GetJavaDownloadsJavaLicensesJavaLicenseCollectionItem

    DisplayName string
    A filter to return only resources that match the display name.
    LicenseType string
    Unique Java license type.
    LicenseUrl string
    Publicly accessible license URL containing the detailed terms and conditions.
    DisplayName string
    A filter to return only resources that match the display name.
    LicenseType string
    Unique Java license type.
    LicenseUrl string
    Publicly accessible license URL containing the detailed terms and conditions.
    displayName String
    A filter to return only resources that match the display name.
    licenseType String
    Unique Java license type.
    licenseUrl String
    Publicly accessible license URL containing the detailed terms and conditions.
    displayName string
    A filter to return only resources that match the display name.
    licenseType string
    Unique Java license type.
    licenseUrl string
    Publicly accessible license URL containing the detailed terms and conditions.
    display_name str
    A filter to return only resources that match the display name.
    license_type str
    Unique Java license type.
    license_url str
    Publicly accessible license URL containing the detailed terms and conditions.
    displayName String
    A filter to return only resources that match the display name.
    licenseType String
    Unique Java license type.
    licenseUrl String
    Publicly accessible license URL containing the detailed terms and conditions.

    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