1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Artifacts
  5. ContainerConfiguration
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.Artifacts.ContainerConfiguration

Explore with Pulumi AI

This resource provides the Container Configuration resource in Oracle Cloud Infrastructure Artifacts service.

Example Usage

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

const testContainerConfiguration = new oci.artifacts.ContainerConfiguration("test_container_configuration", {});
Copy
import pulumi
import pulumi_oci as oci

test_container_configuration = oci.artifacts.ContainerConfiguration("test_container_configuration")
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := artifacts.NewContainerConfiguration(ctx, "test_container_configuration", nil)
		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 testContainerConfiguration = new Oci.Artifacts.ContainerConfiguration("test_container_configuration");

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Artifacts.ContainerConfiguration;
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 testContainerConfiguration = new ContainerConfiguration("testContainerConfiguration");

    }
}
Copy
resources:
  testContainerConfiguration:
    type: oci:Artifacts:ContainerConfiguration
    name: test_container_configuration
Copy

Create ContainerConfiguration Resource

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

Constructor syntax

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

@overload
def ContainerConfiguration(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           compartment_id: Optional[str] = None,
                           is_repository_created_on_first_push: Optional[bool] = None)
func NewContainerConfiguration(ctx *Context, name string, args ContainerConfigurationArgs, opts ...ResourceOption) (*ContainerConfiguration, error)
public ContainerConfiguration(string name, ContainerConfigurationArgs args, CustomResourceOptions? opts = null)
public ContainerConfiguration(String name, ContainerConfigurationArgs args)
public ContainerConfiguration(String name, ContainerConfigurationArgs args, CustomResourceOptions options)
type: oci:Artifacts:ContainerConfiguration
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. ContainerConfigurationArgs
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. ContainerConfigurationArgs
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. ContainerConfigurationArgs
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. ContainerConfigurationArgs
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. ContainerConfigurationArgs
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 containerConfigurationResource = new Oci.Artifacts.ContainerConfiguration("containerConfigurationResource", new()
{
    CompartmentId = "string",
    IsRepositoryCreatedOnFirstPush = false,
});
Copy
example, err := Artifacts.NewContainerConfiguration(ctx, "containerConfigurationResource", &Artifacts.ContainerConfigurationArgs{
	CompartmentId:                  pulumi.String("string"),
	IsRepositoryCreatedOnFirstPush: pulumi.Bool(false),
})
Copy
var containerConfigurationResource = new ContainerConfiguration("containerConfigurationResource", ContainerConfigurationArgs.builder()
    .compartmentId("string")
    .isRepositoryCreatedOnFirstPush(false)
    .build());
Copy
container_configuration_resource = oci.artifacts.ContainerConfiguration("containerConfigurationResource",
    compartment_id="string",
    is_repository_created_on_first_push=False)
Copy
const containerConfigurationResource = new oci.artifacts.ContainerConfiguration("containerConfigurationResource", {
    compartmentId: "string",
    isRepositoryCreatedOnFirstPush: false,
});
Copy
type: oci:Artifacts:ContainerConfiguration
properties:
    compartmentId: string
    isRepositoryCreatedOnFirstPush: false
Copy

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

CompartmentId This property is required. string
IsRepositoryCreatedOnFirstPush This property is required. bool
Whether to create a new container repository when a container is pushed to a new repository path. Repositories created in this way belong to the root compartment.
CompartmentId This property is required. string
IsRepositoryCreatedOnFirstPush This property is required. bool
Whether to create a new container repository when a container is pushed to a new repository path. Repositories created in this way belong to the root compartment.
compartmentId This property is required. String
isRepositoryCreatedOnFirstPush This property is required. Boolean
Whether to create a new container repository when a container is pushed to a new repository path. Repositories created in this way belong to the root compartment.
compartmentId This property is required. string
isRepositoryCreatedOnFirstPush This property is required. boolean
Whether to create a new container repository when a container is pushed to a new repository path. Repositories created in this way belong to the root compartment.
compartment_id This property is required. str
is_repository_created_on_first_push This property is required. bool
Whether to create a new container repository when a container is pushed to a new repository path. Repositories created in this way belong to the root compartment.
compartmentId This property is required. String
isRepositoryCreatedOnFirstPush This property is required. Boolean
Whether to create a new container repository when a container is pushed to a new repository path. Repositories created in this way belong to the root compartment.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Namespace string
The tenancy namespace used in the container repository path.
Id string
The provider-assigned unique ID for this managed resource.
Namespace string
The tenancy namespace used in the container repository path.
id String
The provider-assigned unique ID for this managed resource.
namespace String
The tenancy namespace used in the container repository path.
id string
The provider-assigned unique ID for this managed resource.
namespace string
The tenancy namespace used in the container repository path.
id str
The provider-assigned unique ID for this managed resource.
namespace str
The tenancy namespace used in the container repository path.
id String
The provider-assigned unique ID for this managed resource.
namespace String
The tenancy namespace used in the container repository path.

Look up Existing ContainerConfiguration Resource

Get an existing ContainerConfiguration 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?: ContainerConfigurationState, opts?: CustomResourceOptions): ContainerConfiguration
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        compartment_id: Optional[str] = None,
        is_repository_created_on_first_push: Optional[bool] = None,
        namespace: Optional[str] = None) -> ContainerConfiguration
func GetContainerConfiguration(ctx *Context, name string, id IDInput, state *ContainerConfigurationState, opts ...ResourceOption) (*ContainerConfiguration, error)
public static ContainerConfiguration Get(string name, Input<string> id, ContainerConfigurationState? state, CustomResourceOptions? opts = null)
public static ContainerConfiguration get(String name, Output<String> id, ContainerConfigurationState state, CustomResourceOptions options)
resources:  _:    type: oci:Artifacts:ContainerConfiguration    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 string
IsRepositoryCreatedOnFirstPush bool
Whether to create a new container repository when a container is pushed to a new repository path. Repositories created in this way belong to the root compartment.
Namespace string
The tenancy namespace used in the container repository path.
CompartmentId string
IsRepositoryCreatedOnFirstPush bool
Whether to create a new container repository when a container is pushed to a new repository path. Repositories created in this way belong to the root compartment.
Namespace string
The tenancy namespace used in the container repository path.
compartmentId String
isRepositoryCreatedOnFirstPush Boolean
Whether to create a new container repository when a container is pushed to a new repository path. Repositories created in this way belong to the root compartment.
namespace String
The tenancy namespace used in the container repository path.
compartmentId string
isRepositoryCreatedOnFirstPush boolean
Whether to create a new container repository when a container is pushed to a new repository path. Repositories created in this way belong to the root compartment.
namespace string
The tenancy namespace used in the container repository path.
compartment_id str
is_repository_created_on_first_push bool
Whether to create a new container repository when a container is pushed to a new repository path. Repositories created in this way belong to the root compartment.
namespace str
The tenancy namespace used in the container repository path.
compartmentId String
isRepositoryCreatedOnFirstPush Boolean
Whether to create a new container repository when a container is pushed to a new repository path. Repositories created in this way belong to the root compartment.
namespace String
The tenancy namespace used in the container repository path.

Import

ContainerConfiguration can be imported using the id, e.g.

$ pulumi import oci:Artifacts/containerConfiguration:ContainerConfiguration test_container_configuration "container/configuration/compartmentId/{compartmentId}"
Copy

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.