1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Jms
  5. JavaDownloadsJavaDownloadToken
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

oci.Jms.JavaDownloadsJavaDownloadToken

Explore with Pulumi AI

This resource provides the Java Download Token resource in Oracle Cloud Infrastructure Jms Java Downloads service.

Creates a new JavaDownloadToken in the tenancy with specified attributes. Ensure that you review the license terms before token generation. Visit the Oracle Java Downloads page to understand the license terms of the Java version for which you are generating a token. By generating a token, you agree to the associated license terms. See Oracle JDK Licensing - FAQs for detailed information.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testJavaDownloadToken = new oci.jms.JavaDownloadsJavaDownloadToken("test_java_download_token", {
    compartmentId: tenancyOcid,
    description: javaDownloadTokenDescription,
    displayName: javaDownloadTokenDisplayName,
    javaVersion: javaDownloadTokenJavaVersion,
    licenseTypes: javaDownloadTokenLicenseType,
    timeExpires: javaDownloadTokenTimeExpires,
    definedTags: {
        "foo-namespace.bar-key": "value",
    },
    freeformTags: {
        "bar-key": "value",
    },
    isDefault: javaDownloadTokenIsDefault,
});
Copy
import pulumi
import pulumi_oci as oci

test_java_download_token = oci.jms.JavaDownloadsJavaDownloadToken("test_java_download_token",
    compartment_id=tenancy_ocid,
    description=java_download_token_description,
    display_name=java_download_token_display_name,
    java_version=java_download_token_java_version,
    license_types=java_download_token_license_type,
    time_expires=java_download_token_time_expires,
    defined_tags={
        "foo-namespace.bar-key": "value",
    },
    freeform_tags={
        "bar-key": "value",
    },
    is_default=java_download_token_is_default)
Copy
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.NewJavaDownloadsJavaDownloadToken(ctx, "test_java_download_token", &jms.JavaDownloadsJavaDownloadTokenArgs{
			CompartmentId: pulumi.Any(tenancyOcid),
			Description:   pulumi.Any(javaDownloadTokenDescription),
			DisplayName:   pulumi.Any(javaDownloadTokenDisplayName),
			JavaVersion:   pulumi.Any(javaDownloadTokenJavaVersion),
			LicenseTypes:  pulumi.Any(javaDownloadTokenLicenseType),
			TimeExpires:   pulumi.Any(javaDownloadTokenTimeExpires),
			DefinedTags: pulumi.StringMap{
				"foo-namespace.bar-key": pulumi.String("value"),
			},
			FreeformTags: pulumi.StringMap{
				"bar-key": pulumi.String("value"),
			},
			IsDefault: pulumi.Any(javaDownloadTokenIsDefault),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testJavaDownloadToken = new Oci.Jms.JavaDownloadsJavaDownloadToken("test_java_download_token", new()
    {
        CompartmentId = tenancyOcid,
        Description = javaDownloadTokenDescription,
        DisplayName = javaDownloadTokenDisplayName,
        JavaVersion = javaDownloadTokenJavaVersion,
        LicenseTypes = javaDownloadTokenLicenseType,
        TimeExpires = javaDownloadTokenTimeExpires,
        DefinedTags = 
        {
            { "foo-namespace.bar-key", "value" },
        },
        FreeformTags = 
        {
            { "bar-key", "value" },
        },
        IsDefault = javaDownloadTokenIsDefault,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Jms.JavaDownloadsJavaDownloadToken;
import com.pulumi.oci.Jms.JavaDownloadsJavaDownloadTokenArgs;
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) {
        var testJavaDownloadToken = new JavaDownloadsJavaDownloadToken("testJavaDownloadToken", JavaDownloadsJavaDownloadTokenArgs.builder()
            .compartmentId(tenancyOcid)
            .description(javaDownloadTokenDescription)
            .displayName(javaDownloadTokenDisplayName)
            .javaVersion(javaDownloadTokenJavaVersion)
            .licenseTypes(javaDownloadTokenLicenseType)
            .timeExpires(javaDownloadTokenTimeExpires)
            .definedTags(Map.of("foo-namespace.bar-key", "value"))
            .freeformTags(Map.of("bar-key", "value"))
            .isDefault(javaDownloadTokenIsDefault)
            .build());

    }
}
Copy
resources:
  testJavaDownloadToken:
    type: oci:Jms:JavaDownloadsJavaDownloadToken
    name: test_java_download_token
    properties:
      compartmentId: ${tenancyOcid}
      description: ${javaDownloadTokenDescription}
      displayName: ${javaDownloadTokenDisplayName}
      javaVersion: ${javaDownloadTokenJavaVersion}
      licenseTypes: ${javaDownloadTokenLicenseType}
      timeExpires: ${javaDownloadTokenTimeExpires}
      definedTags:
        foo-namespace.bar-key: value
      freeformTags:
        bar-key: value
      isDefault: ${javaDownloadTokenIsDefault}
Copy

Create JavaDownloadsJavaDownloadToken Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new JavaDownloadsJavaDownloadToken(name: string, args: JavaDownloadsJavaDownloadTokenArgs, opts?: CustomResourceOptions);
@overload
def JavaDownloadsJavaDownloadToken(resource_name: str,
                                   args: JavaDownloadsJavaDownloadTokenArgs,
                                   opts: Optional[ResourceOptions] = None)

@overload
def JavaDownloadsJavaDownloadToken(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   compartment_id: Optional[str] = None,
                                   description: Optional[str] = None,
                                   display_name: Optional[str] = None,
                                   java_version: Optional[str] = None,
                                   license_types: Optional[Sequence[str]] = None,
                                   time_expires: Optional[str] = None,
                                   defined_tags: Optional[Mapping[str, str]] = None,
                                   freeform_tags: Optional[Mapping[str, str]] = None,
                                   is_default: Optional[bool] = None)
func NewJavaDownloadsJavaDownloadToken(ctx *Context, name string, args JavaDownloadsJavaDownloadTokenArgs, opts ...ResourceOption) (*JavaDownloadsJavaDownloadToken, error)
public JavaDownloadsJavaDownloadToken(string name, JavaDownloadsJavaDownloadTokenArgs args, CustomResourceOptions? opts = null)
public JavaDownloadsJavaDownloadToken(String name, JavaDownloadsJavaDownloadTokenArgs args)
public JavaDownloadsJavaDownloadToken(String name, JavaDownloadsJavaDownloadTokenArgs args, CustomResourceOptions options)
type: oci:Jms:JavaDownloadsJavaDownloadToken
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. JavaDownloadsJavaDownloadTokenArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. JavaDownloadsJavaDownloadTokenArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. JavaDownloadsJavaDownloadTokenArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. JavaDownloadsJavaDownloadTokenArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. JavaDownloadsJavaDownloadTokenArgs
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 javaDownloadsJavaDownloadTokenResource = new Oci.Jms.JavaDownloadsJavaDownloadToken("javaDownloadsJavaDownloadTokenResource", new()
{
    CompartmentId = "string",
    Description = "string",
    DisplayName = "string",
    JavaVersion = "string",
    LicenseTypes = new[]
    {
        "string",
    },
    TimeExpires = "string",
    DefinedTags = 
    {
        { "string", "string" },
    },
    FreeformTags = 
    {
        { "string", "string" },
    },
    IsDefault = false,
});
Copy
example, err := Jms.NewJavaDownloadsJavaDownloadToken(ctx, "javaDownloadsJavaDownloadTokenResource", &Jms.JavaDownloadsJavaDownloadTokenArgs{
	CompartmentId: pulumi.String("string"),
	Description:   pulumi.String("string"),
	DisplayName:   pulumi.String("string"),
	JavaVersion:   pulumi.String("string"),
	LicenseTypes: pulumi.StringArray{
		pulumi.String("string"),
	},
	TimeExpires: pulumi.String("string"),
	DefinedTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	FreeformTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	IsDefault: pulumi.Bool(false),
})
Copy
var javaDownloadsJavaDownloadTokenResource = new JavaDownloadsJavaDownloadToken("javaDownloadsJavaDownloadTokenResource", JavaDownloadsJavaDownloadTokenArgs.builder()
    .compartmentId("string")
    .description("string")
    .displayName("string")
    .javaVersion("string")
    .licenseTypes("string")
    .timeExpires("string")
    .definedTags(Map.of("string", "string"))
    .freeformTags(Map.of("string", "string"))
    .isDefault(false)
    .build());
Copy
java_downloads_java_download_token_resource = oci.jms.JavaDownloadsJavaDownloadToken("javaDownloadsJavaDownloadTokenResource",
    compartment_id="string",
    description="string",
    display_name="string",
    java_version="string",
    license_types=["string"],
    time_expires="string",
    defined_tags={
        "string": "string",
    },
    freeform_tags={
        "string": "string",
    },
    is_default=False)
Copy
const javaDownloadsJavaDownloadTokenResource = new oci.jms.JavaDownloadsJavaDownloadToken("javaDownloadsJavaDownloadTokenResource", {
    compartmentId: "string",
    description: "string",
    displayName: "string",
    javaVersion: "string",
    licenseTypes: ["string"],
    timeExpires: "string",
    definedTags: {
        string: "string",
    },
    freeformTags: {
        string: "string",
    },
    isDefault: false,
});
Copy
type: oci:Jms:JavaDownloadsJavaDownloadToken
properties:
    compartmentId: string
    definedTags:
        string: string
    description: string
    displayName: string
    freeformTags:
        string: string
    isDefault: false
    javaVersion: string
    licenseTypes:
        - string
    timeExpires: string
Copy

JavaDownloadsJavaDownloadToken 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 JavaDownloadsJavaDownloadToken resource accepts the following input properties:

CompartmentId
This property is required.
Changes to this property will trigger replacement.
string
The OCID of the tenancy scoped to the JavaDownloadToken.
Description This property is required. string
(Updatable) User provided description of the JavaDownloadToken.
DisplayName This property is required. string
(Updatable) User provided display name of the JavaDownloadToken.
JavaVersion
This property is required.
Changes to this property will trigger replacement.
string
The Java version associated with the token.
LicenseTypes This property is required. List<string>
(Updatable) The license type(s) associated with the JavaDownloadToken.
TimeExpires This property is required. string

(Updatable) Expiry time of the token.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

DefinedTags Dictionary<string, string>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}. (See Understanding Free-form Tags).
FreeformTags Dictionary<string, string>
(Updatable) Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}. (See Managing Tags and Tag Namespaces.)
IsDefault bool
(Updatable) The token default attribute.
CompartmentId
This property is required.
Changes to this property will trigger replacement.
string
The OCID of the tenancy scoped to the JavaDownloadToken.
Description This property is required. string
(Updatable) User provided description of the JavaDownloadToken.
DisplayName This property is required. string
(Updatable) User provided display name of the JavaDownloadToken.
JavaVersion
This property is required.
Changes to this property will trigger replacement.
string
The Java version associated with the token.
LicenseTypes This property is required. []string
(Updatable) The license type(s) associated with the JavaDownloadToken.
TimeExpires This property is required. string

(Updatable) Expiry time of the token.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

DefinedTags map[string]string
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}. (See Understanding Free-form Tags).
FreeformTags map[string]string
(Updatable) Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}. (See Managing Tags and Tag Namespaces.)
IsDefault bool
(Updatable) The token default attribute.
compartmentId
This property is required.
Changes to this property will trigger replacement.
String
The OCID of the tenancy scoped to the JavaDownloadToken.
description This property is required. String
(Updatable) User provided description of the JavaDownloadToken.
displayName This property is required. String
(Updatable) User provided display name of the JavaDownloadToken.
javaVersion
This property is required.
Changes to this property will trigger replacement.
String
The Java version associated with the token.
licenseTypes This property is required. List<String>
(Updatable) The license type(s) associated with the JavaDownloadToken.
timeExpires This property is required. String

(Updatable) Expiry time of the token.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

definedTags Map<String,String>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}. (See Understanding Free-form Tags).
freeformTags Map<String,String>
(Updatable) Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}. (See Managing Tags and Tag Namespaces.)
isDefault Boolean
(Updatable) The token default attribute.
compartmentId
This property is required.
Changes to this property will trigger replacement.
string
The OCID of the tenancy scoped to the JavaDownloadToken.
description This property is required. string
(Updatable) User provided description of the JavaDownloadToken.
displayName This property is required. string
(Updatable) User provided display name of the JavaDownloadToken.
javaVersion
This property is required.
Changes to this property will trigger replacement.
string
The Java version associated with the token.
licenseTypes This property is required. string[]
(Updatable) The license type(s) associated with the JavaDownloadToken.
timeExpires This property is required. string

(Updatable) Expiry time of the token.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

definedTags {[key: string]: string}
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}. (See Understanding Free-form Tags).
freeformTags {[key: string]: string}
(Updatable) Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}. (See Managing Tags and Tag Namespaces.)
isDefault boolean
(Updatable) The token default attribute.
compartment_id
This property is required.
Changes to this property will trigger replacement.
str
The OCID of the tenancy scoped to the JavaDownloadToken.
description This property is required. str
(Updatable) User provided description of the JavaDownloadToken.
display_name This property is required. str
(Updatable) User provided display name of the JavaDownloadToken.
java_version
This property is required.
Changes to this property will trigger replacement.
str
The Java version associated with the token.
license_types This property is required. Sequence[str]
(Updatable) The license type(s) associated with the JavaDownloadToken.
time_expires This property is required. str

(Updatable) Expiry time of the token.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

defined_tags Mapping[str, str]
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}. (See Understanding Free-form Tags).
freeform_tags Mapping[str, str]
(Updatable) Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}. (See Managing Tags and Tag Namespaces.)
is_default bool
(Updatable) The token default attribute.
compartmentId
This property is required.
Changes to this property will trigger replacement.
String
The OCID of the tenancy scoped to the JavaDownloadToken.
description This property is required. String
(Updatable) User provided description of the JavaDownloadToken.
displayName This property is required. String
(Updatable) User provided display name of the JavaDownloadToken.
javaVersion
This property is required.
Changes to this property will trigger replacement.
String
The Java version associated with the token.
licenseTypes This property is required. List<String>
(Updatable) The license type(s) associated with the JavaDownloadToken.
timeExpires This property is required. String

(Updatable) Expiry time of the token.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

definedTags Map<String>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}. (See Understanding Free-form Tags).
freeformTags Map<String>
(Updatable) Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}. (See Managing Tags and Tag Namespaces.)
isDefault Boolean
(Updatable) The token default attribute.

Outputs

All input properties are implicitly available as output properties. Additionally, the JavaDownloadsJavaDownloadToken resource produces the following output properties:

CreatedBies List<JavaDownloadsJavaDownloadTokenCreatedBy>
An authorized principal.
Id string
The provider-assigned unique ID for this managed resource.
LastUpdatedBies List<JavaDownloadsJavaDownloadTokenLastUpdatedBy>
An authorized principal.
LifecycleDetails string
Possible lifecycle substates.
State string
The current state of the JavaDownloadToken.
SystemTags Dictionary<string, string>
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
TimeCreated string
The time the JavaDownloadToken was created, displayed as an RFC3339 formatted datetime string.
TimeLastUsed string
The time the JavaDownloadToken was last used for download, displayed as an RFC3339 formatted datetime string.
TimeUpdated string
The time the JavaDownloadToken was updated, displayed as an RFC3339 formatted datetime string.
Value string
Uniquely generated value for the JavaDownloadToken.
CreatedBies []JavaDownloadsJavaDownloadTokenCreatedBy
An authorized principal.
Id string
The provider-assigned unique ID for this managed resource.
LastUpdatedBies []JavaDownloadsJavaDownloadTokenLastUpdatedBy
An authorized principal.
LifecycleDetails string
Possible lifecycle substates.
State string
The current state of the JavaDownloadToken.
SystemTags map[string]string
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
TimeCreated string
The time the JavaDownloadToken was created, displayed as an RFC3339 formatted datetime string.
TimeLastUsed string
The time the JavaDownloadToken was last used for download, displayed as an RFC3339 formatted datetime string.
TimeUpdated string
The time the JavaDownloadToken was updated, displayed as an RFC3339 formatted datetime string.
Value string
Uniquely generated value for the JavaDownloadToken.
createdBies List<JavaDownloadsJavaDownloadTokenCreatedBy>
An authorized principal.
id String
The provider-assigned unique ID for this managed resource.
lastUpdatedBies List<JavaDownloadsJavaDownloadTokenLastUpdatedBy>
An authorized principal.
lifecycleDetails String
Possible lifecycle substates.
state String
The current state of the JavaDownloadToken.
systemTags Map<String,String>
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
timeCreated String
The time the JavaDownloadToken was created, displayed as an RFC3339 formatted datetime string.
timeLastUsed String
The time the JavaDownloadToken was last used for download, displayed as an RFC3339 formatted datetime string.
timeUpdated String
The time the JavaDownloadToken was updated, displayed as an RFC3339 formatted datetime string.
value String
Uniquely generated value for the JavaDownloadToken.
createdBies JavaDownloadsJavaDownloadTokenCreatedBy[]
An authorized principal.
id string
The provider-assigned unique ID for this managed resource.
lastUpdatedBies JavaDownloadsJavaDownloadTokenLastUpdatedBy[]
An authorized principal.
lifecycleDetails string
Possible lifecycle substates.
state string
The current state of the JavaDownloadToken.
systemTags {[key: string]: string}
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
timeCreated string
The time the JavaDownloadToken was created, displayed as an RFC3339 formatted datetime string.
timeLastUsed string
The time the JavaDownloadToken was last used for download, displayed as an RFC3339 formatted datetime string.
timeUpdated string
The time the JavaDownloadToken was updated, displayed as an RFC3339 formatted datetime string.
value string
Uniquely generated value for the JavaDownloadToken.
created_bies Sequence[jms.JavaDownloadsJavaDownloadTokenCreatedBy]
An authorized principal.
id str
The provider-assigned unique ID for this managed resource.
last_updated_bies Sequence[jms.JavaDownloadsJavaDownloadTokenLastUpdatedBy]
An authorized principal.
lifecycle_details str
Possible lifecycle substates.
state str
The current state of the JavaDownloadToken.
system_tags Mapping[str, str]
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
time_created str
The time the JavaDownloadToken was created, displayed as an RFC3339 formatted datetime string.
time_last_used str
The time the JavaDownloadToken was last used for download, displayed as an RFC3339 formatted datetime string.
time_updated str
The time the JavaDownloadToken was updated, displayed as an RFC3339 formatted datetime string.
value str
Uniquely generated value for the JavaDownloadToken.
createdBies List<Property Map>
An authorized principal.
id String
The provider-assigned unique ID for this managed resource.
lastUpdatedBies List<Property Map>
An authorized principal.
lifecycleDetails String
Possible lifecycle substates.
state String
The current state of the JavaDownloadToken.
systemTags Map<String>
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
timeCreated String
The time the JavaDownloadToken was created, displayed as an RFC3339 formatted datetime string.
timeLastUsed String
The time the JavaDownloadToken was last used for download, displayed as an RFC3339 formatted datetime string.
timeUpdated String
The time the JavaDownloadToken was updated, displayed as an RFC3339 formatted datetime string.
value String
Uniquely generated value for the JavaDownloadToken.

Look up Existing JavaDownloadsJavaDownloadToken Resource

Get an existing JavaDownloadsJavaDownloadToken resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: JavaDownloadsJavaDownloadTokenState, opts?: CustomResourceOptions): JavaDownloadsJavaDownloadToken
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        compartment_id: Optional[str] = None,
        created_bies: Optional[Sequence[_jms.JavaDownloadsJavaDownloadTokenCreatedByArgs]] = None,
        defined_tags: Optional[Mapping[str, str]] = None,
        description: Optional[str] = None,
        display_name: Optional[str] = None,
        freeform_tags: Optional[Mapping[str, str]] = None,
        is_default: Optional[bool] = None,
        java_version: Optional[str] = None,
        last_updated_bies: Optional[Sequence[_jms.JavaDownloadsJavaDownloadTokenLastUpdatedByArgs]] = None,
        license_types: Optional[Sequence[str]] = None,
        lifecycle_details: Optional[str] = None,
        state: Optional[str] = None,
        system_tags: Optional[Mapping[str, str]] = None,
        time_created: Optional[str] = None,
        time_expires: Optional[str] = None,
        time_last_used: Optional[str] = None,
        time_updated: Optional[str] = None,
        value: Optional[str] = None) -> JavaDownloadsJavaDownloadToken
func GetJavaDownloadsJavaDownloadToken(ctx *Context, name string, id IDInput, state *JavaDownloadsJavaDownloadTokenState, opts ...ResourceOption) (*JavaDownloadsJavaDownloadToken, error)
public static JavaDownloadsJavaDownloadToken Get(string name, Input<string> id, JavaDownloadsJavaDownloadTokenState? state, CustomResourceOptions? opts = null)
public static JavaDownloadsJavaDownloadToken get(String name, Output<String> id, JavaDownloadsJavaDownloadTokenState state, CustomResourceOptions options)
resources:  _:    type: oci:Jms:JavaDownloadsJavaDownloadToken    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CompartmentId Changes to this property will trigger replacement. string
The OCID of the tenancy scoped to the JavaDownloadToken.
CreatedBies List<JavaDownloadsJavaDownloadTokenCreatedBy>
An authorized principal.
DefinedTags Dictionary<string, string>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}. (See Understanding Free-form Tags).
Description string
(Updatable) User provided description of the JavaDownloadToken.
DisplayName string
(Updatable) User provided display name of the JavaDownloadToken.
FreeformTags Dictionary<string, string>
(Updatable) Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}. (See Managing Tags and Tag Namespaces.)
IsDefault bool
(Updatable) The token default attribute.
JavaVersion Changes to this property will trigger replacement. string
The Java version associated with the token.
LastUpdatedBies List<JavaDownloadsJavaDownloadTokenLastUpdatedBy>
An authorized principal.
LicenseTypes List<string>
(Updatable) The license type(s) associated with the JavaDownloadToken.
LifecycleDetails string
Possible lifecycle substates.
State string
The current state of the JavaDownloadToken.
SystemTags Dictionary<string, string>
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
TimeCreated string
The time the JavaDownloadToken was created, displayed as an RFC3339 formatted datetime string.
TimeExpires string

(Updatable) Expiry time of the token.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

TimeLastUsed string
The time the JavaDownloadToken was last used for download, displayed as an RFC3339 formatted datetime string.
TimeUpdated string
The time the JavaDownloadToken was updated, displayed as an RFC3339 formatted datetime string.
Value string
Uniquely generated value for the JavaDownloadToken.
CompartmentId Changes to this property will trigger replacement. string
The OCID of the tenancy scoped to the JavaDownloadToken.
CreatedBies []JavaDownloadsJavaDownloadTokenCreatedByArgs
An authorized principal.
DefinedTags map[string]string
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}. (See Understanding Free-form Tags).
Description string
(Updatable) User provided description of the JavaDownloadToken.
DisplayName string
(Updatable) User provided display name of the JavaDownloadToken.
FreeformTags map[string]string
(Updatable) Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}. (See Managing Tags and Tag Namespaces.)
IsDefault bool
(Updatable) The token default attribute.
JavaVersion Changes to this property will trigger replacement. string
The Java version associated with the token.
LastUpdatedBies []JavaDownloadsJavaDownloadTokenLastUpdatedByArgs
An authorized principal.
LicenseTypes []string
(Updatable) The license type(s) associated with the JavaDownloadToken.
LifecycleDetails string
Possible lifecycle substates.
State string
The current state of the JavaDownloadToken.
SystemTags map[string]string
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
TimeCreated string
The time the JavaDownloadToken was created, displayed as an RFC3339 formatted datetime string.
TimeExpires string

(Updatable) Expiry time of the token.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

TimeLastUsed string
The time the JavaDownloadToken was last used for download, displayed as an RFC3339 formatted datetime string.
TimeUpdated string
The time the JavaDownloadToken was updated, displayed as an RFC3339 formatted datetime string.
Value string
Uniquely generated value for the JavaDownloadToken.
compartmentId Changes to this property will trigger replacement. String
The OCID of the tenancy scoped to the JavaDownloadToken.
createdBies List<JavaDownloadsJavaDownloadTokenCreatedBy>
An authorized principal.
definedTags Map<String,String>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}. (See Understanding Free-form Tags).
description String
(Updatable) User provided description of the JavaDownloadToken.
displayName String
(Updatable) User provided display name of the JavaDownloadToken.
freeformTags Map<String,String>
(Updatable) Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}. (See Managing Tags and Tag Namespaces.)
isDefault Boolean
(Updatable) The token default attribute.
javaVersion Changes to this property will trigger replacement. String
The Java version associated with the token.
lastUpdatedBies List<JavaDownloadsJavaDownloadTokenLastUpdatedBy>
An authorized principal.
licenseTypes List<String>
(Updatable) The license type(s) associated with the JavaDownloadToken.
lifecycleDetails String
Possible lifecycle substates.
state String
The current state of the JavaDownloadToken.
systemTags Map<String,String>
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
timeCreated String
The time the JavaDownloadToken was created, displayed as an RFC3339 formatted datetime string.
timeExpires String

(Updatable) Expiry time of the token.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

timeLastUsed String
The time the JavaDownloadToken was last used for download, displayed as an RFC3339 formatted datetime string.
timeUpdated String
The time the JavaDownloadToken was updated, displayed as an RFC3339 formatted datetime string.
value String
Uniquely generated value for the JavaDownloadToken.
compartmentId Changes to this property will trigger replacement. string
The OCID of the tenancy scoped to the JavaDownloadToken.
createdBies JavaDownloadsJavaDownloadTokenCreatedBy[]
An authorized principal.
definedTags {[key: string]: string}
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}. (See Understanding Free-form Tags).
description string
(Updatable) User provided description of the JavaDownloadToken.
displayName string
(Updatable) User provided display name of the JavaDownloadToken.
freeformTags {[key: string]: string}
(Updatable) Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}. (See Managing Tags and Tag Namespaces.)
isDefault boolean
(Updatable) The token default attribute.
javaVersion Changes to this property will trigger replacement. string
The Java version associated with the token.
lastUpdatedBies JavaDownloadsJavaDownloadTokenLastUpdatedBy[]
An authorized principal.
licenseTypes string[]
(Updatable) The license type(s) associated with the JavaDownloadToken.
lifecycleDetails string
Possible lifecycle substates.
state string
The current state of the JavaDownloadToken.
systemTags {[key: string]: string}
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
timeCreated string
The time the JavaDownloadToken was created, displayed as an RFC3339 formatted datetime string.
timeExpires string

(Updatable) Expiry time of the token.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

timeLastUsed string
The time the JavaDownloadToken was last used for download, displayed as an RFC3339 formatted datetime string.
timeUpdated string
The time the JavaDownloadToken was updated, displayed as an RFC3339 formatted datetime string.
value string
Uniquely generated value for the JavaDownloadToken.
compartment_id Changes to this property will trigger replacement. str
The OCID of the tenancy scoped to the JavaDownloadToken.
created_bies Sequence[jms.JavaDownloadsJavaDownloadTokenCreatedByArgs]
An authorized principal.
defined_tags Mapping[str, str]
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}. (See Understanding Free-form Tags).
description str
(Updatable) User provided description of the JavaDownloadToken.
display_name str
(Updatable) User provided display name of the JavaDownloadToken.
freeform_tags Mapping[str, str]
(Updatable) Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}. (See Managing Tags and Tag Namespaces.)
is_default bool
(Updatable) The token default attribute.
java_version Changes to this property will trigger replacement. str
The Java version associated with the token.
last_updated_bies Sequence[jms.JavaDownloadsJavaDownloadTokenLastUpdatedByArgs]
An authorized principal.
license_types Sequence[str]
(Updatable) The license type(s) associated with the JavaDownloadToken.
lifecycle_details str
Possible lifecycle substates.
state str
The current state of the JavaDownloadToken.
system_tags Mapping[str, str]
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
time_created str
The time the JavaDownloadToken was created, displayed as an RFC3339 formatted datetime string.
time_expires str

(Updatable) Expiry time of the token.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

time_last_used str
The time the JavaDownloadToken was last used for download, displayed as an RFC3339 formatted datetime string.
time_updated str
The time the JavaDownloadToken was updated, displayed as an RFC3339 formatted datetime string.
value str
Uniquely generated value for the JavaDownloadToken.
compartmentId Changes to this property will trigger replacement. String
The OCID of the tenancy scoped to the JavaDownloadToken.
createdBies List<Property Map>
An authorized principal.
definedTags Map<String>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}. (See Understanding Free-form Tags).
description String
(Updatable) User provided description of the JavaDownloadToken.
displayName String
(Updatable) User provided display name of the JavaDownloadToken.
freeformTags Map<String>
(Updatable) Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}. (See Managing Tags and Tag Namespaces.)
isDefault Boolean
(Updatable) The token default attribute.
javaVersion Changes to this property will trigger replacement. String
The Java version associated with the token.
lastUpdatedBies List<Property Map>
An authorized principal.
licenseTypes List<String>
(Updatable) The license type(s) associated with the JavaDownloadToken.
lifecycleDetails String
Possible lifecycle substates.
state String
The current state of the JavaDownloadToken.
systemTags Map<String>
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
timeCreated String
The time the JavaDownloadToken was created, displayed as an RFC3339 formatted datetime string.
timeExpires String

(Updatable) Expiry time of the token.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

timeLastUsed String
The time the JavaDownloadToken was last used for download, displayed as an RFC3339 formatted datetime string.
timeUpdated String
The time the JavaDownloadToken was updated, displayed as an RFC3339 formatted datetime string.
value String
Uniquely generated value for the JavaDownloadToken.

Supporting Types

JavaDownloadsJavaDownloadTokenCreatedBy
, JavaDownloadsJavaDownloadTokenCreatedByArgs

DisplayName string
(Updatable) User provided display name of the JavaDownloadToken.
Email string
The email of the principal.
Id string
The OCID of the principal.
DisplayName string
(Updatable) User provided display name of the JavaDownloadToken.
Email string
The email of the principal.
Id string
The OCID of the principal.
displayName String
(Updatable) User provided display name of the JavaDownloadToken.
email String
The email of the principal.
id String
The OCID of the principal.
displayName string
(Updatable) User provided display name of the JavaDownloadToken.
email string
The email of the principal.
id string
The OCID of the principal.
display_name str
(Updatable) User provided display name of the JavaDownloadToken.
email str
The email of the principal.
id str
The OCID of the principal.
displayName String
(Updatable) User provided display name of the JavaDownloadToken.
email String
The email of the principal.
id String
The OCID of the principal.

JavaDownloadsJavaDownloadTokenLastUpdatedBy
, JavaDownloadsJavaDownloadTokenLastUpdatedByArgs

DisplayName string
(Updatable) User provided display name of the JavaDownloadToken.
Email string
The email of the principal.
Id string
The OCID of the principal.
DisplayName string
(Updatable) User provided display name of the JavaDownloadToken.
Email string
The email of the principal.
Id string
The OCID of the principal.
displayName String
(Updatable) User provided display name of the JavaDownloadToken.
email String
The email of the principal.
id String
The OCID of the principal.
displayName string
(Updatable) User provided display name of the JavaDownloadToken.
email string
The email of the principal.
id string
The OCID of the principal.
display_name str
(Updatable) User provided display name of the JavaDownloadToken.
email str
The email of the principal.
id str
The OCID of the principal.
displayName String
(Updatable) User provided display name of the JavaDownloadToken.
email String
The email of the principal.
id String
The OCID of the principal.

Import

Import is not supported for this resource.

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.