oci.CertificatesManagement.CaBundle
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testCaBundle = new oci.certificatesmanagement.CaBundle("test_ca_bundle", {
caBundlePem: caBundleCaBundlePem,
compartmentId: compartmentId,
name: caBundleName,
definedTags: {
"Operations.CostCenter": "42",
},
description: caBundleDescription,
freeformTags: {
Department: "Finance",
},
});
import pulumi
import pulumi_oci as oci
test_ca_bundle = oci.certificates_management.CaBundle("test_ca_bundle",
ca_bundle_pem=ca_bundle_ca_bundle_pem,
compartment_id=compartment_id,
name=ca_bundle_name,
defined_tags={
"Operations.CostCenter": "42",
},
description=ca_bundle_description,
freeform_tags={
"Department": "Finance",
})
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/CertificatesManagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := CertificatesManagement.NewCaBundle(ctx, "test_ca_bundle", &CertificatesManagement.CaBundleArgs{
CaBundlePem: pulumi.Any(caBundleCaBundlePem),
CompartmentId: pulumi.Any(compartmentId),
Name: pulumi.Any(caBundleName),
DefinedTags: pulumi.StringMap{
"Operations.CostCenter": pulumi.String("42"),
},
Description: pulumi.Any(caBundleDescription),
FreeformTags: pulumi.StringMap{
"Department": pulumi.String("Finance"),
},
})
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 testCaBundle = new Oci.CertificatesManagement.CaBundle("test_ca_bundle", new()
{
CaBundlePem = caBundleCaBundlePem,
CompartmentId = compartmentId,
Name = caBundleName,
DefinedTags =
{
{ "Operations.CostCenter", "42" },
},
Description = caBundleDescription,
FreeformTags =
{
{ "Department", "Finance" },
},
});
});
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(caBundleCaBundlePem)
.compartmentId(compartmentId)
.name(caBundleName)
.definedTags(Map.of("Operations.CostCenter", "42"))
.description(caBundleDescription)
.freeformTags(Map.of("Department", "Finance"))
.build());
}
}
resources:
testCaBundle:
type: oci:CertificatesManagement:CaBundle
name: test_ca_bundle
properties:
caBundlePem: ${caBundleCaBundlePem}
compartmentId: ${compartmentId}
name: ${caBundleName}
definedTags:
Operations.CostCenter: '42'
description: ${caBundleDescription}
freeformTags:
Department: Finance
Create CaBundle Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CaBundle(name: string, args: CaBundleArgs, opts?: CustomResourceOptions);
@overload
def CaBundle(resource_name: str,
args: CaBundleArgs,
opts: Optional[ResourceOptions] = None)
@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, str]] = None,
description: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
name: Optional[str] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var caBundleResource = new Oci.CertificatesManagement.CaBundle("caBundleResource", new()
{
CaBundlePem = "string",
CompartmentId = "string",
DefinedTags =
{
{ "string", "string" },
},
Description = "string",
FreeformTags =
{
{ "string", "string" },
},
Name = "string",
});
example, err := CertificatesManagement.NewCaBundle(ctx, "caBundleResource", &CertificatesManagement.CaBundleArgs{
CaBundlePem: pulumi.String("string"),
CompartmentId: pulumi.String("string"),
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Description: pulumi.String("string"),
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
})
var caBundleResource = new CaBundle("caBundleResource", CaBundleArgs.builder()
.caBundlePem("string")
.compartmentId("string")
.definedTags(Map.of("string", "string"))
.description("string")
.freeformTags(Map.of("string", "string"))
.name("string")
.build());
ca_bundle_resource = oci.certificates_management.CaBundle("caBundleResource",
ca_bundle_pem="string",
compartment_id="string",
defined_tags={
"string": "string",
},
description="string",
freeform_tags={
"string": "string",
},
name="string")
const caBundleResource = new oci.certificatesmanagement.CaBundle("caBundleResource", {
caBundlePem: "string",
compartmentId: "string",
definedTags: {
string: "string",
},
description: "string",
freeformTags: {
string: "string",
},
name: "string",
});
type: oci:CertificatesManagement:CaBundle
properties:
caBundlePem: string
compartmentId: string
definedTags:
string: string
description: string
freeformTags:
string: string
name: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CaBundle resource accepts the following input properties:
- Ca
Bundle stringPem - (Updatable) Certificates (in PEM format) to include in the CA bundle.
- Compartment
Id string - (Updatable) The OCID of the compartment for the CA bundle.
- Dictionary<string, string>
- (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.
- Dictionary<string, string>
- (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.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Ca
Bundle stringPem - (Updatable) Certificates (in PEM format) to include in the CA bundle.
- Compartment
Id string - (Updatable) The OCID of the compartment for the CA bundle.
- map[string]string
- (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.
- map[string]string
- (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.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- ca
Bundle StringPem - (Updatable) Certificates (in PEM format) to include in the CA bundle.
- compartment
Id String - (Updatable) The OCID of the compartment for the CA bundle.
- Map<String,String>
- (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.
- Map<String,String>
- (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.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- ca
Bundle stringPem - (Updatable) Certificates (in PEM format) to include in the CA bundle.
- compartment
Id string - (Updatable) The OCID of the compartment for the CA bundle.
- {[key: string]: string}
- (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.
- {[key: string]: string}
- (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.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- ca_
bundle_ strpem - (Updatable) Certificates (in PEM format) to include in the CA bundle.
- compartment_
id str - (Updatable) The OCID of the compartment for the CA bundle.
- Mapping[str, str]
- (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.
- Mapping[str, str]
- (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.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- ca
Bundle StringPem - (Updatable) Certificates (in PEM format) to include in the CA bundle.
- compartment
Id String - (Updatable) The OCID of the compartment for the CA bundle.
- Map<String>
- (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.
- Map<String>
- (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.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
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.
- Lifecycle
Details string - Additional information about the current lifecycle state of the CA bundle.
- State string
- The current lifecycle state of the CA bundle.
- Time
Created 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.
- Lifecycle
Details string - Additional information about the current lifecycle state of the CA bundle.
- State string
- The current lifecycle state of the CA bundle.
- Time
Created 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.
- lifecycle
Details String - Additional information about the current lifecycle state of the CA bundle.
- state String
- The current lifecycle state of the CA bundle.
- time
Created 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.
- lifecycle
Details string - Additional information about the current lifecycle state of the CA bundle.
- state string
- The current lifecycle state of the CA bundle.
- time
Created 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.
- lifecycle
Details String - Additional information about the current lifecycle state of the CA bundle.
- state String
- The current lifecycle state of the CA bundle.
- time
Created 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 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, str]] = None,
description: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = 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.
- Ca
Bundle stringPem - (Updatable) Certificates (in PEM format) to include in the CA bundle.
- Compartment
Id string - (Updatable) The OCID of the compartment for the CA bundle.
- Dictionary<string, string>
- (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.
- Dictionary<string, string>
- (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 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.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- State string
- The current lifecycle state of the CA bundle.
- Time
Created 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 stringPem - (Updatable) Certificates (in PEM format) to include in the CA bundle.
- Compartment
Id string - (Updatable) The OCID of the compartment for the CA bundle.
- map[string]string
- (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.
- map[string]string
- (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 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.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- State string
- The current lifecycle state of the CA bundle.
- Time
Created 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 StringPem - (Updatable) Certificates (in PEM format) to include in the CA bundle.
- compartment
Id String - (Updatable) The OCID of the compartment for the CA bundle.
- Map<String,String>
- (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.
- Map<String,String>
- (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 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.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- state String
- The current lifecycle state of the CA bundle.
- time
Created 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 stringPem - (Updatable) Certificates (in PEM format) to include in the CA bundle.
- compartment
Id string - (Updatable) The OCID of the compartment for the CA bundle.
- {[key: string]: string}
- (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.
- {[key: string]: string}
- (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 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.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- state string
- The current lifecycle state of the CA bundle.
- time
Created 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_ strpem - (Updatable) Certificates (in PEM format) to include in the CA bundle.
- compartment_
id str - (Updatable) The OCID of the compartment for the CA bundle.
- Mapping[str, str]
- (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.
- Mapping[str, str]
- (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.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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
- ca
Bundle StringPem - (Updatable) Certificates (in PEM format) to include in the CA bundle.
- compartment
Id String - (Updatable) The OCID of the compartment for the CA bundle.
- Map<String>
- (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.
- Map<String>
- (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 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.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- state String
- The current lifecycle state of the CA bundle.
- time
Created 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"
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.