oci logo
Oracle Cloud Infrastructure v0.20.0, May 31 23

oci.Artifacts.ContainerConfiguration

Explore with Pulumi AI

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

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var testContainerConfiguration = new Oci.Artifacts.ContainerConfiguration("testContainerConfiguration");

});
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.NewContainerConfiguration(ctx, "testContainerConfiguration", nil)
		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.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");

    }
}
import pulumi
import pulumi_oci as oci

test_container_configuration = oci.artifacts.ContainerConfiguration("testContainerConfiguration")
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testContainerConfiguration = new oci.artifacts.ContainerConfiguration("testContainerConfiguration", {});
resources:
  testContainerConfiguration:
    type: oci:Artifacts:ContainerConfiguration

Create ContainerConfiguration Resource

new ContainerConfiguration(name: string, args: ContainerConfigurationArgs, opts?: CustomResourceOptions);
@overload
def ContainerConfiguration(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           compartment_id: Optional[str] = None,
                           is_repository_created_on_first_push: Optional[bool] = None)
@overload
def ContainerConfiguration(resource_name: str,
                           args: ContainerConfigurationArgs,
                           opts: Optional[ResourceOptions] = 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.

name string
The unique name of the resource.
args ContainerConfigurationArgs
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 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 string
The unique name of the resource.
args ContainerConfigurationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ContainerConfigurationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ContainerConfigurationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

The ContainerConfiguration resource accepts the following input properties:

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.

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.

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.

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.

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.

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.

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)
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:
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}"

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.