Oracle Cloud Infrastructure

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

CaBundle

This resource provides the Ca Bundle resource in Oracle Cloud Infrastructure Certificates Management service.

Creates a new CA bundle according to the details of the request.

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var testCaBundle = new Oci.CertificatesManagement.CaBundle("testCaBundle", new()
    {
        CaBundlePem = @var.Ca_bundle_ca_bundle_pem,
        CompartmentId = @var.Compartment_id,
        DefinedTags = 
        {
            { "Operations.CostCenter", "42" },
        },
        Description = @var.Ca_bundle_description,
        FreeformTags = 
        {
            { "Department", "Finance" },
        },
    });

});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := CertificatesManagement.NewCaBundle(ctx, "testCaBundle", &CertificatesManagement.CaBundleArgs{
			CaBundlePem:   pulumi.Any(_var.Ca_bundle_ca_bundle_pem),
			CompartmentId: pulumi.Any(_var.Compartment_id),
			DefinedTags: pulumi.AnyMap{
				"Operations.CostCenter": pulumi.Any("42"),
			},
			Description: pulumi.Any(_var.Ca_bundle_description),
			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.CertificatesManagement.CaBundle;
import com.pulumi.oci.CertificatesManagement.CaBundleArgs;
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 testCaBundle = new CaBundle("testCaBundle", CaBundleArgs.builder()        
            .caBundlePem(var_.ca_bundle_ca_bundle_pem())
            .compartmentId(var_.compartment_id())
            .definedTags(Map.of("Operations.CostCenter", "42"))
            .description(var_.ca_bundle_description())
            .freeformTags(Map.of("Department", "Finance"))
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_ca_bundle = oci.certificates_management.CaBundle("testCaBundle",
    ca_bundle_pem=var["ca_bundle_ca_bundle_pem"],
    compartment_id=var["compartment_id"],
    defined_tags={
        "Operations.CostCenter": "42",
    },
    description=var["ca_bundle_description"],
    freeform_tags={
        "Department": "Finance",
    })
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testCaBundle = new oci.certificatesmanagement.CaBundle("testCaBundle", {
    caBundlePem: _var.ca_bundle_ca_bundle_pem,
    compartmentId: _var.compartment_id,
    definedTags: {
        "Operations.CostCenter": "42",
    },
    description: _var.ca_bundle_description,
    freeformTags: {
        Department: "Finance",
    },
});
resources:
  testCaBundle:
    type: oci:CertificatesManagement:CaBundle
    properties:
      #Required
      caBundlePem: ${var.ca_bundle_ca_bundle_pem}
      compartmentId: ${var.compartment_id}
      #Optional
      definedTags:
        Operations.CostCenter: 42
      description: ${var.ca_bundle_description}
      freeformTags:
        Department: Finance

Create a CaBundle Resource

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

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

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

CaBundlePem string

(Updatable) Certificates (in PEM format) to include in the CA bundle.

CompartmentId string

(Updatable) The OCID of the compartment for the CA bundle.

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

Description string

(Updatable) A brief description of the CA bundle.

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

Name string

A user-friendly name for the CA bundle. Names are unique within a compartment. Avoid entering confidential information. Valid characters include uppercase or lowercase letters, numbers, hyphens, underscores, and periods.

CaBundlePem string

(Updatable) Certificates (in PEM format) to include in the CA bundle.

CompartmentId string

(Updatable) The OCID of the compartment for the CA bundle.

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

Description string

(Updatable) A brief description of the CA bundle.

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

Name string

A user-friendly name for the CA bundle. Names are unique within a compartment. Avoid entering confidential information. Valid characters include uppercase or lowercase letters, numbers, hyphens, underscores, and periods.

caBundlePem String

(Updatable) Certificates (in PEM format) to include in the CA bundle.

compartmentId String

(Updatable) The OCID of the compartment for the CA bundle.

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

description String

(Updatable) A brief description of the CA bundle.

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

name String

A user-friendly name for the CA bundle. Names are unique within a compartment. Avoid entering confidential information. Valid characters include uppercase or lowercase letters, numbers, hyphens, underscores, and periods.

caBundlePem string

(Updatable) Certificates (in PEM format) to include in the CA bundle.

compartmentId string

(Updatable) The OCID of the compartment for the CA bundle.

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

description string

(Updatable) A brief description of the CA bundle.

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

name string

A user-friendly name for the CA bundle. Names are unique within a compartment. Avoid entering confidential information. Valid characters include uppercase or lowercase letters, numbers, hyphens, underscores, and periods.

ca_bundle_pem str

(Updatable) Certificates (in PEM format) to include in the CA bundle.

compartment_id str

(Updatable) The OCID of the compartment for the CA bundle.

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

description str

(Updatable) A brief description of the CA bundle.

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

name str

A user-friendly name for the CA bundle. Names are unique within a compartment. Avoid entering confidential information. Valid characters include uppercase or lowercase letters, numbers, hyphens, underscores, and periods.

caBundlePem String

(Updatable) Certificates (in PEM format) to include in the CA bundle.

compartmentId String

(Updatable) The OCID of the compartment for the CA bundle.

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

description String

(Updatable) A brief description of the CA bundle.

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

name String

A user-friendly name for the CA bundle. Names are unique within a compartment. Avoid entering confidential information. Valid characters include uppercase or lowercase letters, numbers, hyphens, underscores, and periods.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

LifecycleDetails string

Additional information about the current lifecycle state of the CA bundle.

State string

The current lifecycle state of the CA bundle.

TimeCreated string

A property indicating when the CA bundle was created, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z

Id string

The provider-assigned unique ID for this managed resource.

LifecycleDetails string

Additional information about the current lifecycle state of the CA bundle.

State string

The current lifecycle state of the CA bundle.

TimeCreated string

A property indicating when the CA bundle was created, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z

id String

The provider-assigned unique ID for this managed resource.

lifecycleDetails String

Additional information about the current lifecycle state of the CA bundle.

state String

The current lifecycle state of the CA bundle.

timeCreated String

A property indicating when the CA bundle was created, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z

id string

The provider-assigned unique ID for this managed resource.

lifecycleDetails string

Additional information about the current lifecycle state of the CA bundle.

state string

The current lifecycle state of the CA bundle.

timeCreated string

A property indicating when the CA bundle was created, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z

id str

The provider-assigned unique ID for this managed resource.

lifecycle_details str

Additional information about the current lifecycle state of the CA bundle.

state str

The current lifecycle state of the CA bundle.

time_created str

A property indicating when the CA bundle was created, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z

id String

The provider-assigned unique ID for this managed resource.

lifecycleDetails String

Additional information about the current lifecycle state of the CA bundle.

state String

The current lifecycle state of the CA bundle.

timeCreated String

A property indicating when the CA bundle was created, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z

Look up an Existing CaBundle Resource

Get an existing CaBundle 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?: CaBundleState, opts?: CustomResourceOptions): CaBundle
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        ca_bundle_pem: Optional[str] = None,
        compartment_id: Optional[str] = None,
        defined_tags: Optional[Mapping[str, Any]] = None,
        description: Optional[str] = None,
        freeform_tags: Optional[Mapping[str, Any]] = None,
        lifecycle_details: Optional[str] = None,
        name: Optional[str] = None,
        state: Optional[str] = None,
        time_created: Optional[str] = None) -> CaBundle
func GetCaBundle(ctx *Context, name string, id IDInput, state *CaBundleState, opts ...ResourceOption) (*CaBundle, error)
public static CaBundle Get(string name, Input<string> id, CaBundleState? state, CustomResourceOptions? opts = null)
public static CaBundle get(String name, Output<String> id, CaBundleState 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:
CaBundlePem string

(Updatable) Certificates (in PEM format) to include in the CA bundle.

CompartmentId string

(Updatable) The OCID of the compartment for the CA bundle.

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

Description string

(Updatable) A brief description of the CA bundle.

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

LifecycleDetails string

Additional information about the current lifecycle state of the CA bundle.

Name string

A user-friendly name for the CA bundle. Names are unique within a compartment. Avoid entering confidential information. Valid characters include uppercase or lowercase letters, numbers, hyphens, underscores, and periods.

State string

The current lifecycle state of the CA bundle.

TimeCreated string

A property indicating when the CA bundle was created, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z

CaBundlePem string

(Updatable) Certificates (in PEM format) to include in the CA bundle.

CompartmentId string

(Updatable) The OCID of the compartment for the CA bundle.

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

Description string

(Updatable) A brief description of the CA bundle.

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

LifecycleDetails string

Additional information about the current lifecycle state of the CA bundle.

Name string

A user-friendly name for the CA bundle. Names are unique within a compartment. Avoid entering confidential information. Valid characters include uppercase or lowercase letters, numbers, hyphens, underscores, and periods.

State string

The current lifecycle state of the CA bundle.

TimeCreated string

A property indicating when the CA bundle was created, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z

caBundlePem String

(Updatable) Certificates (in PEM format) to include in the CA bundle.

compartmentId String

(Updatable) The OCID of the compartment for the CA bundle.

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

description String

(Updatable) A brief description of the CA bundle.

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

lifecycleDetails String

Additional information about the current lifecycle state of the CA bundle.

name String

A user-friendly name for the CA bundle. Names are unique within a compartment. Avoid entering confidential information. Valid characters include uppercase or lowercase letters, numbers, hyphens, underscores, and periods.

state String

The current lifecycle state of the CA bundle.

timeCreated String

A property indicating when the CA bundle was created, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z

caBundlePem string

(Updatable) Certificates (in PEM format) to include in the CA bundle.

compartmentId string

(Updatable) The OCID of the compartment for the CA bundle.

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

description string

(Updatable) A brief description of the CA bundle.

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

lifecycleDetails string

Additional information about the current lifecycle state of the CA bundle.

name string

A user-friendly name for the CA bundle. Names are unique within a compartment. Avoid entering confidential information. Valid characters include uppercase or lowercase letters, numbers, hyphens, underscores, and periods.

state string

The current lifecycle state of the CA bundle.

timeCreated string

A property indicating when the CA bundle was created, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z

ca_bundle_pem str

(Updatable) Certificates (in PEM format) to include in the CA bundle.

compartment_id str

(Updatable) The OCID of the compartment for the CA bundle.

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

description str

(Updatable) A brief description of the CA bundle.

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

lifecycle_details str

Additional information about the current lifecycle state of the CA bundle.

name str

A user-friendly name for the CA bundle. Names are unique within a compartment. Avoid entering confidential information. Valid characters include uppercase or lowercase letters, numbers, hyphens, underscores, and periods.

state str

The current lifecycle state of the CA bundle.

time_created str

A property indicating when the CA bundle was created, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z

caBundlePem String

(Updatable) Certificates (in PEM format) to include in the CA bundle.

compartmentId String

(Updatable) The OCID of the compartment for the CA bundle.

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

description String

(Updatable) A brief description of the CA bundle.

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

lifecycleDetails String

Additional information about the current lifecycle state of the CA bundle.

name String

A user-friendly name for the CA bundle. Names are unique within a compartment. Avoid entering confidential information. Valid characters include uppercase or lowercase letters, numbers, hyphens, underscores, and periods.

state String

The current lifecycle state of the CA bundle.

timeCreated String

A property indicating when the CA bundle was created, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z

Import

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

 $ pulumi import oci:CertificatesManagement/caBundle:CaBundle test_ca_bundle "id"

Package Details

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

This Pulumi package is based on the oci Terraform Provider.