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", {});
import pulumi
import pulumi_oci as oci
test_container_configuration = oci.artifacts.ContainerConfiguration("test_container_configuration")
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, "test_container_configuration", nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testContainerConfiguration = new Oci.Artifacts.ContainerConfiguration("test_container_configuration");
});
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");
}
}
resources:
testContainerConfiguration:
type: oci:Artifacts:ContainerConfiguration
name: test_container_configuration
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 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.
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,
});
example, err := Artifacts.NewContainerConfiguration(ctx, "containerConfigurationResource", &Artifacts.ContainerConfigurationArgs{
CompartmentId: pulumi.String("string"),
IsRepositoryCreatedOnFirstPush: pulumi.Bool(false),
})
var containerConfigurationResource = new ContainerConfiguration("containerConfigurationResource", ContainerConfigurationArgs.builder()
.compartmentId("string")
.isRepositoryCreatedOnFirstPush(false)
.build());
container_configuration_resource = oci.artifacts.ContainerConfiguration("containerConfigurationResource",
compartment_id="string",
is_repository_created_on_first_push=False)
const containerConfigurationResource = new oci.artifacts.ContainerConfiguration("containerConfigurationResource", {
compartmentId: "string",
isRepositoryCreatedOnFirstPush: false,
});
type: oci:Artifacts:ContainerConfiguration
properties:
compartmentId: string
isRepositoryCreatedOnFirstPush: false
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:
- Compartment
Id string - Is
Repository boolCreated On First Push - 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 string - Is
Repository boolCreated On First Push - 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 String - is
Repository BooleanCreated On First Push - 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 string - is
Repository booleanCreated On First Push - 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_ boolcreated_ on_ first_ push - 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 String - is
Repository BooleanCreated On First Push - 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:
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.
- Compartment
Id string - Is
Repository boolCreated On First Push - 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 string - Is
Repository boolCreated On First Push - 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 String - is
Repository BooleanCreated On First Push - 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 string - is
Repository booleanCreated On First Push - 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_ boolcreated_ on_ first_ push - 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.
- compartment
Id String - is
Repository BooleanCreated On First Push - 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}"
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.