oci.LicenseManager.Configuration
Explore with Pulumi AI
This resource provides the Configuration resource in Oracle Cloud Infrastructure License Manager service.
Updates the configuration for the compartment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testConfiguration = new oci.licensemanager.Configuration("test_configuration", {
compartmentId: compartmentId,
emailIds: configurationEmailIds,
});
import pulumi
import pulumi_oci as oci
test_configuration = oci.license_manager.Configuration("test_configuration",
compartment_id=compartment_id,
email_ids=configuration_email_ids)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/LicenseManager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := LicenseManager.NewConfiguration(ctx, "test_configuration", &LicenseManager.ConfigurationArgs{
CompartmentId: pulumi.Any(compartmentId),
EmailIds: pulumi.Any(configurationEmailIds),
})
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 testConfiguration = new Oci.LicenseManager.Configuration("test_configuration", new()
{
CompartmentId = compartmentId,
EmailIds = configurationEmailIds,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.LicenseManager.Configuration;
import com.pulumi.oci.LicenseManager.ConfigurationArgs;
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 testConfiguration = new Configuration("testConfiguration", ConfigurationArgs.builder()
.compartmentId(compartmentId)
.emailIds(configurationEmailIds)
.build());
}
}
resources:
testConfiguration:
type: oci:LicenseManager:Configuration
name: test_configuration
properties:
compartmentId: ${compartmentId}
emailIds: ${configurationEmailIds}
Create Configuration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Configuration(name: string, args: ConfigurationArgs, opts?: CustomResourceOptions);
@overload
def Configuration(resource_name: str,
args: ConfigurationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Configuration(resource_name: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
email_ids: Optional[Sequence[str]] = None)
func NewConfiguration(ctx *Context, name string, args ConfigurationArgs, opts ...ResourceOption) (*Configuration, error)
public Configuration(string name, ConfigurationArgs args, CustomResourceOptions? opts = null)
public Configuration(String name, ConfigurationArgs args)
public Configuration(String name, ConfigurationArgs args, CustomResourceOptions options)
type: oci:LicenseManager:Configuration
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 ConfigurationArgs
- 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 ConfigurationArgs
- 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 ConfigurationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ConfigurationArgs
- 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 ociConfigurationResource = new Oci.LicenseManager.Configuration("ociConfigurationResource", new()
{
CompartmentId = "string",
EmailIds = new[]
{
"string",
},
});
example, err := LicenseManager.NewConfiguration(ctx, "ociConfigurationResource", &LicenseManager.ConfigurationArgs{
CompartmentId: pulumi.String("string"),
EmailIds: pulumi.StringArray{
pulumi.String("string"),
},
})
var ociConfigurationResource = new Configuration("ociConfigurationResource", ConfigurationArgs.builder()
.compartmentId("string")
.emailIds("string")
.build());
oci_configuration_resource = oci.license_manager.Configuration("ociConfigurationResource",
compartment_id="string",
email_ids=["string"])
const ociConfigurationResource = new oci.licensemanager.Configuration("ociConfigurationResource", {
compartmentId: "string",
emailIds: ["string"],
});
type: oci:LicenseManager:Configuration
properties:
compartmentId: string
emailIds:
- string
Configuration 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 Configuration resource accepts the following input properties:
- Compartment
Id string - (Updatable) The compartment OCID used for the license record, product license, and configuration.
- Email
Ids List<string> (Updatable) List of email IDs associated with the configuration.
** 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
- Compartment
Id string - (Updatable) The compartment OCID used for the license record, product license, and configuration.
- Email
Ids []string (Updatable) List of email IDs associated with the configuration.
** 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
- compartment
Id String - (Updatable) The compartment OCID used for the license record, product license, and configuration.
- email
Ids List<String> (Updatable) List of email IDs associated with the configuration.
** 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
- compartment
Id string - (Updatable) The compartment OCID used for the license record, product license, and configuration.
- email
Ids string[] (Updatable) List of email IDs associated with the configuration.
** 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
- compartment_
id str - (Updatable) The compartment OCID used for the license record, product license, and configuration.
- email_
ids Sequence[str] (Updatable) List of email IDs associated with the configuration.
** 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
- compartment
Id String - (Updatable) The compartment OCID used for the license record, product license, and configuration.
- email
Ids List<String> (Updatable) List of email IDs associated with the configuration.
** 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 Configuration resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Time
Created string - The time the configuration was created. An RFC 3339-formatted datetime string.
- Time
Updated string - The time the configuration was updated. An RFC 3339-formatted datetime string.
- Id string
- The provider-assigned unique ID for this managed resource.
- Time
Created string - The time the configuration was created. An RFC 3339-formatted datetime string.
- Time
Updated string - The time the configuration was updated. An RFC 3339-formatted datetime string.
- id String
- The provider-assigned unique ID for this managed resource.
- time
Created String - The time the configuration was created. An RFC 3339-formatted datetime string.
- time
Updated String - The time the configuration was updated. An RFC 3339-formatted datetime string.
- id string
- The provider-assigned unique ID for this managed resource.
- time
Created string - The time the configuration was created. An RFC 3339-formatted datetime string.
- time
Updated string - The time the configuration was updated. An RFC 3339-formatted datetime string.
- id str
- The provider-assigned unique ID for this managed resource.
- time_
created str - The time the configuration was created. An RFC 3339-formatted datetime string.
- time_
updated str - The time the configuration was updated. An RFC 3339-formatted datetime string.
- id String
- The provider-assigned unique ID for this managed resource.
- time
Created String - The time the configuration was created. An RFC 3339-formatted datetime string.
- time
Updated String - The time the configuration was updated. An RFC 3339-formatted datetime string.
Look up Existing Configuration Resource
Get an existing Configuration 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?: ConfigurationState, opts?: CustomResourceOptions): Configuration
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
email_ids: Optional[Sequence[str]] = None,
time_created: Optional[str] = None,
time_updated: Optional[str] = None) -> Configuration
func GetConfiguration(ctx *Context, name string, id IDInput, state *ConfigurationState, opts ...ResourceOption) (*Configuration, error)
public static Configuration Get(string name, Input<string> id, ConfigurationState? state, CustomResourceOptions? opts = null)
public static Configuration get(String name, Output<String> id, ConfigurationState 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 - (Updatable) The compartment OCID used for the license record, product license, and configuration.
- Email
Ids List<string> (Updatable) List of email IDs associated with the configuration.
** 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
- Time
Created string - The time the configuration was created. An RFC 3339-formatted datetime string.
- Time
Updated string - The time the configuration was updated. An RFC 3339-formatted datetime string.
- Compartment
Id string - (Updatable) The compartment OCID used for the license record, product license, and configuration.
- Email
Ids []string (Updatable) List of email IDs associated with the configuration.
** 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
- Time
Created string - The time the configuration was created. An RFC 3339-formatted datetime string.
- Time
Updated string - The time the configuration was updated. An RFC 3339-formatted datetime string.
- compartment
Id String - (Updatable) The compartment OCID used for the license record, product license, and configuration.
- email
Ids List<String> (Updatable) List of email IDs associated with the configuration.
** 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
- time
Created String - The time the configuration was created. An RFC 3339-formatted datetime string.
- time
Updated String - The time the configuration was updated. An RFC 3339-formatted datetime string.
- compartment
Id string - (Updatable) The compartment OCID used for the license record, product license, and configuration.
- email
Ids string[] (Updatable) List of email IDs associated with the configuration.
** 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
- time
Created string - The time the configuration was created. An RFC 3339-formatted datetime string.
- time
Updated string - The time the configuration was updated. An RFC 3339-formatted datetime string.
- compartment_
id str - (Updatable) The compartment OCID used for the license record, product license, and configuration.
- email_
ids Sequence[str] (Updatable) List of email IDs associated with the configuration.
** 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
- time_
created str - The time the configuration was created. An RFC 3339-formatted datetime string.
- time_
updated str - The time the configuration was updated. An RFC 3339-formatted datetime string.
- compartment
Id String - (Updatable) The compartment OCID used for the license record, product license, and configuration.
- email
Ids List<String> (Updatable) List of email IDs associated with the configuration.
** 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
- time
Created String - The time the configuration was created. An RFC 3339-formatted datetime string.
- time
Updated String - The time the configuration was updated. An RFC 3339-formatted datetime string.
Import
Configurations can be imported using the id
, e.g.
$ pulumi import oci:LicenseManager/configuration:Configuration test_configuration "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.