Oracle Cloud Infrastructure

v0.5.0 published on Monday, Sep 12, 2022 by Pulumi

GenericArtifact

This resource provides the Generic Artifact resource in Oracle Cloud Infrastructure Artifacts service.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testGenericArtifact = new Oci.Artifacts.GenericArtifact("testGenericArtifact", new()
    {
        ArtifactId = oci_artifacts_artifact.Test_artifact.Id,
        DefinedTags = 
        {
            { "Operations.CostCenter", "42" },
        },
        FreeformTags = 
        {
            { "Department", "Finance" },
        },
    });

});
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/Artifacts"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Artifacts.NewGenericArtifact(ctx, "testGenericArtifact", &Artifacts.GenericArtifactArgs{
			ArtifactId: pulumi.Any(oci_artifacts_artifact.Test_artifact.Id),
			DefinedTags: pulumi.AnyMap{
				"Operations.CostCenter": pulumi.Any("42"),
			},
			FreeformTags: pulumi.AnyMap{
				"Department": pulumi.Any("Finance"),
			},
		})
		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.Artifacts.GenericArtifact;
import com.pulumi.oci.Artifacts.GenericArtifactArgs;
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 testGenericArtifact = new GenericArtifact("testGenericArtifact", GenericArtifactArgs.builder()        
            .artifactId(oci_artifacts_artifact.test_artifact().id())
            .definedTags(Map.of("Operations.CostCenter", "42"))
            .freeformTags(Map.of("Department", "Finance"))
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_generic_artifact = oci.artifacts.GenericArtifact("testGenericArtifact",
    artifact_id=oci_artifacts_artifact["test_artifact"]["id"],
    defined_tags={
        "Operations.CostCenter": "42",
    },
    freeform_tags={
        "Department": "Finance",
    })
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testGenericArtifact = new oci.artifacts.GenericArtifact("testGenericArtifact", {
    artifactId: oci_artifacts_artifact.test_artifact.id,
    definedTags: {
        "Operations.CostCenter": "42",
    },
    freeformTags: {
        Department: "Finance",
    },
});
resources:
  testGenericArtifact:
    type: oci:Artifacts:GenericArtifact
    properties:
      #Required
      artifactId: ${oci_artifacts_artifact.test_artifact.id}
      #Optional
      definedTags:
        Operations.CostCenter: 42
      freeformTags:
        Department: Finance

Create a GenericArtifact Resource

new GenericArtifact(name: string, args: GenericArtifactArgs, opts?: CustomResourceOptions);
@overload
def GenericArtifact(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    artifact_id: Optional[str] = None,
                    defined_tags: Optional[Mapping[str, Any]] = None,
                    freeform_tags: Optional[Mapping[str, Any]] = None)
@overload
def GenericArtifact(resource_name: str,
                    args: GenericArtifactArgs,
                    opts: Optional[ResourceOptions] = None)
func NewGenericArtifact(ctx *Context, name string, args GenericArtifactArgs, opts ...ResourceOption) (*GenericArtifact, error)
public GenericArtifact(string name, GenericArtifactArgs args, CustomResourceOptions? opts = null)
public GenericArtifact(String name, GenericArtifactArgs args)
public GenericArtifact(String name, GenericArtifactArgs args, CustomResourceOptions options)
type: oci:Artifacts:GenericArtifact
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args GenericArtifactArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args GenericArtifactArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args GenericArtifactArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args GenericArtifactArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args GenericArtifactArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

GenericArtifact Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The GenericArtifact resource accepts the following input properties:

ArtifactId string

The OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID

DefinedTags Dictionary<string, object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

FreeformTags Dictionary<string, object>

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

ArtifactId string

The OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID

DefinedTags map[string]interface{}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

FreeformTags map[string]interface{}

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

artifactId String

The OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID

definedTags Map<String,Object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

freeformTags Map<String,Object>

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

artifactId string

The OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID

definedTags {[key: string]: any}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

freeformTags {[key: string]: any}

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

artifact_id str

The OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID

defined_tags Mapping[str, Any]

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

freeform_tags Mapping[str, Any]

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

artifactId String

The OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID

definedTags Map<Any>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

freeformTags Map<Any>

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

Outputs

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

ArtifactPath string

A user-defined path to describe the location of an artifact. Slashes do not create a directory structure, but you can use slashes to organize the repository. An artifact path does not include an artifact version. Example: project01/my-web-app/artifact-abc

CompartmentId string

The OCID of the repository's compartment.

DisplayName string

The artifact name with the format of <artifact-path>:<artifact-version>. The artifact name is truncated to a maximum length of 255. Example: project01/my-web-app/artifact-abc:1.0.0

Id string

The provider-assigned unique ID for this managed resource.

RepositoryId string

The OCID of the repository.

Sha256 string

The SHA256 digest for the artifact. When you upload an artifact to the repository, a SHA256 digest is calculated and added to the artifact properties.

SizeInBytes string

The size of the artifact in bytes.

State string

The current state of the artifact.

TimeCreated string

An RFC 3339 timestamp indicating when the repository was created.

Version string

A user-defined string to describe the artifact version. Example: 1.1.0 or 1.2-beta-2

ArtifactPath string

A user-defined path to describe the location of an artifact. Slashes do not create a directory structure, but you can use slashes to organize the repository. An artifact path does not include an artifact version. Example: project01/my-web-app/artifact-abc

CompartmentId string

The OCID of the repository's compartment.

DisplayName string

The artifact name with the format of <artifact-path>:<artifact-version>. The artifact name is truncated to a maximum length of 255. Example: project01/my-web-app/artifact-abc:1.0.0

Id string

The provider-assigned unique ID for this managed resource.

RepositoryId string

The OCID of the repository.

Sha256 string

The SHA256 digest for the artifact. When you upload an artifact to the repository, a SHA256 digest is calculated and added to the artifact properties.

SizeInBytes string

The size of the artifact in bytes.

State string

The current state of the artifact.

TimeCreated string

An RFC 3339 timestamp indicating when the repository was created.

Version string

A user-defined string to describe the artifact version. Example: 1.1.0 or 1.2-beta-2

artifactPath String

A user-defined path to describe the location of an artifact. Slashes do not create a directory structure, but you can use slashes to organize the repository. An artifact path does not include an artifact version. Example: project01/my-web-app/artifact-abc

compartmentId String

The OCID of the repository's compartment.

displayName String

The artifact name with the format of <artifact-path>:<artifact-version>. The artifact name is truncated to a maximum length of 255. Example: project01/my-web-app/artifact-abc:1.0.0

id String

The provider-assigned unique ID for this managed resource.

repositoryId String

The OCID of the repository.

sha256 String

The SHA256 digest for the artifact. When you upload an artifact to the repository, a SHA256 digest is calculated and added to the artifact properties.

sizeInBytes String

The size of the artifact in bytes.

state String

The current state of the artifact.

timeCreated String

An RFC 3339 timestamp indicating when the repository was created.

version String

A user-defined string to describe the artifact version. Example: 1.1.0 or 1.2-beta-2

artifactPath string

A user-defined path to describe the location of an artifact. Slashes do not create a directory structure, but you can use slashes to organize the repository. An artifact path does not include an artifact version. Example: project01/my-web-app/artifact-abc

compartmentId string

The OCID of the repository's compartment.

displayName string

The artifact name with the format of <artifact-path>:<artifact-version>. The artifact name is truncated to a maximum length of 255. Example: project01/my-web-app/artifact-abc:1.0.0

id string

The provider-assigned unique ID for this managed resource.

repositoryId string

The OCID of the repository.

sha256 string

The SHA256 digest for the artifact. When you upload an artifact to the repository, a SHA256 digest is calculated and added to the artifact properties.

sizeInBytes string

The size of the artifact in bytes.

state string

The current state of the artifact.

timeCreated string

An RFC 3339 timestamp indicating when the repository was created.

version string

A user-defined string to describe the artifact version. Example: 1.1.0 or 1.2-beta-2

artifact_path str

A user-defined path to describe the location of an artifact. Slashes do not create a directory structure, but you can use slashes to organize the repository. An artifact path does not include an artifact version. Example: project01/my-web-app/artifact-abc

compartment_id str

The OCID of the repository's compartment.

display_name str

The artifact name with the format of <artifact-path>:<artifact-version>. The artifact name is truncated to a maximum length of 255. Example: project01/my-web-app/artifact-abc:1.0.0

id str

The provider-assigned unique ID for this managed resource.

repository_id str

The OCID of the repository.

sha256 str

The SHA256 digest for the artifact. When you upload an artifact to the repository, a SHA256 digest is calculated and added to the artifact properties.

size_in_bytes str

The size of the artifact in bytes.

state str

The current state of the artifact.

time_created str

An RFC 3339 timestamp indicating when the repository was created.

version str

A user-defined string to describe the artifact version. Example: 1.1.0 or 1.2-beta-2

artifactPath String

A user-defined path to describe the location of an artifact. Slashes do not create a directory structure, but you can use slashes to organize the repository. An artifact path does not include an artifact version. Example: project01/my-web-app/artifact-abc

compartmentId String

The OCID of the repository's compartment.

displayName String

The artifact name with the format of <artifact-path>:<artifact-version>. The artifact name is truncated to a maximum length of 255. Example: project01/my-web-app/artifact-abc:1.0.0

id String

The provider-assigned unique ID for this managed resource.

repositoryId String

The OCID of the repository.

sha256 String

The SHA256 digest for the artifact. When you upload an artifact to the repository, a SHA256 digest is calculated and added to the artifact properties.

sizeInBytes String

The size of the artifact in bytes.

state String

The current state of the artifact.

timeCreated String

An RFC 3339 timestamp indicating when the repository was created.

version String

A user-defined string to describe the artifact version. Example: 1.1.0 or 1.2-beta-2

Look up an Existing GenericArtifact Resource

Get an existing GenericArtifact 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?: GenericArtifactState, opts?: CustomResourceOptions): GenericArtifact
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        artifact_id: Optional[str] = None,
        artifact_path: Optional[str] = None,
        compartment_id: Optional[str] = None,
        defined_tags: Optional[Mapping[str, Any]] = None,
        display_name: Optional[str] = None,
        freeform_tags: Optional[Mapping[str, Any]] = None,
        repository_id: Optional[str] = None,
        sha256: Optional[str] = None,
        size_in_bytes: Optional[str] = None,
        state: Optional[str] = None,
        time_created: Optional[str] = None,
        version: Optional[str] = None) -> GenericArtifact
func GetGenericArtifact(ctx *Context, name string, id IDInput, state *GenericArtifactState, opts ...ResourceOption) (*GenericArtifact, error)
public static GenericArtifact Get(string name, Input<string> id, GenericArtifactState? state, CustomResourceOptions? opts = null)
public static GenericArtifact get(String name, Output<String> id, GenericArtifactState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
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:
ArtifactId string

The OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID

ArtifactPath string

A user-defined path to describe the location of an artifact. Slashes do not create a directory structure, but you can use slashes to organize the repository. An artifact path does not include an artifact version. Example: project01/my-web-app/artifact-abc

CompartmentId string

The OCID of the repository's compartment.

DefinedTags Dictionary<string, object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

DisplayName string

The artifact name with the format of <artifact-path>:<artifact-version>. The artifact name is truncated to a maximum length of 255. Example: project01/my-web-app/artifact-abc:1.0.0

FreeformTags Dictionary<string, object>

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

RepositoryId string

The OCID of the repository.

Sha256 string

The SHA256 digest for the artifact. When you upload an artifact to the repository, a SHA256 digest is calculated and added to the artifact properties.

SizeInBytes string

The size of the artifact in bytes.

State string

The current state of the artifact.

TimeCreated string

An RFC 3339 timestamp indicating when the repository was created.

Version string

A user-defined string to describe the artifact version. Example: 1.1.0 or 1.2-beta-2

ArtifactId string

The OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID

ArtifactPath string

A user-defined path to describe the location of an artifact. Slashes do not create a directory structure, but you can use slashes to organize the repository. An artifact path does not include an artifact version. Example: project01/my-web-app/artifact-abc

CompartmentId string

The OCID of the repository's compartment.

DefinedTags map[string]interface{}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

DisplayName string

The artifact name with the format of <artifact-path>:<artifact-version>. The artifact name is truncated to a maximum length of 255. Example: project01/my-web-app/artifact-abc:1.0.0

FreeformTags map[string]interface{}

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

RepositoryId string

The OCID of the repository.

Sha256 string

The SHA256 digest for the artifact. When you upload an artifact to the repository, a SHA256 digest is calculated and added to the artifact properties.

SizeInBytes string

The size of the artifact in bytes.

State string

The current state of the artifact.

TimeCreated string

An RFC 3339 timestamp indicating when the repository was created.

Version string

A user-defined string to describe the artifact version. Example: 1.1.0 or 1.2-beta-2

artifactId String

The OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID

artifactPath String

A user-defined path to describe the location of an artifact. Slashes do not create a directory structure, but you can use slashes to organize the repository. An artifact path does not include an artifact version. Example: project01/my-web-app/artifact-abc

compartmentId String

The OCID of the repository's compartment.

definedTags Map<String,Object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

displayName String

The artifact name with the format of <artifact-path>:<artifact-version>. The artifact name is truncated to a maximum length of 255. Example: project01/my-web-app/artifact-abc:1.0.0

freeformTags Map<String,Object>

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

repositoryId String

The OCID of the repository.

sha256 String

The SHA256 digest for the artifact. When you upload an artifact to the repository, a SHA256 digest is calculated and added to the artifact properties.

sizeInBytes String

The size of the artifact in bytes.

state String

The current state of the artifact.

timeCreated String

An RFC 3339 timestamp indicating when the repository was created.

version String

A user-defined string to describe the artifact version. Example: 1.1.0 or 1.2-beta-2

artifactId string

The OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID

artifactPath string

A user-defined path to describe the location of an artifact. Slashes do not create a directory structure, but you can use slashes to organize the repository. An artifact path does not include an artifact version. Example: project01/my-web-app/artifact-abc

compartmentId string

The OCID of the repository's compartment.

definedTags {[key: string]: any}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

displayName string

The artifact name with the format of <artifact-path>:<artifact-version>. The artifact name is truncated to a maximum length of 255. Example: project01/my-web-app/artifact-abc:1.0.0

freeformTags {[key: string]: any}

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

repositoryId string

The OCID of the repository.

sha256 string

The SHA256 digest for the artifact. When you upload an artifact to the repository, a SHA256 digest is calculated and added to the artifact properties.

sizeInBytes string

The size of the artifact in bytes.

state string

The current state of the artifact.

timeCreated string

An RFC 3339 timestamp indicating when the repository was created.

version string

A user-defined string to describe the artifact version. Example: 1.1.0 or 1.2-beta-2

artifact_id str

The OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID

artifact_path str

A user-defined path to describe the location of an artifact. Slashes do not create a directory structure, but you can use slashes to organize the repository. An artifact path does not include an artifact version. Example: project01/my-web-app/artifact-abc

compartment_id str

The OCID of the repository's compartment.

defined_tags Mapping[str, Any]

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

display_name str

The artifact name with the format of <artifact-path>:<artifact-version>. The artifact name is truncated to a maximum length of 255. Example: project01/my-web-app/artifact-abc:1.0.0

freeform_tags Mapping[str, Any]

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

repository_id str

The OCID of the repository.

sha256 str

The SHA256 digest for the artifact. When you upload an artifact to the repository, a SHA256 digest is calculated and added to the artifact properties.

size_in_bytes str

The size of the artifact in bytes.

state str

The current state of the artifact.

time_created str

An RFC 3339 timestamp indicating when the repository was created.

version str

A user-defined string to describe the artifact version. Example: 1.1.0 or 1.2-beta-2

artifactId String

The OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID

artifactPath String

A user-defined path to describe the location of an artifact. Slashes do not create a directory structure, but you can use slashes to organize the repository. An artifact path does not include an artifact version. Example: project01/my-web-app/artifact-abc

compartmentId String

The OCID of the repository's compartment.

definedTags Map<Any>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

displayName String

The artifact name with the format of <artifact-path>:<artifact-version>. The artifact name is truncated to a maximum length of 255. Example: project01/my-web-app/artifact-abc:1.0.0

freeformTags Map<Any>

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

repositoryId String

The OCID of the repository.

sha256 String

The SHA256 digest for the artifact. When you upload an artifact to the repository, a SHA256 digest is calculated and added to the artifact properties.

sizeInBytes String

The size of the artifact in bytes.

state String

The current state of the artifact.

timeCreated String

An RFC 3339 timestamp indicating when the repository was created.

version String

A user-defined string to describe the artifact version. Example: 1.1.0 or 1.2-beta-2

Import

Import is not supported for this resource.

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.