oci.CapacityManagement.OccmDemandSignal
Explore with Pulumi AI
This resource provides the Occm Demand Signal resource in Oracle Cloud Infrastructure Capacity Management service.
This is a post API to create occm demand signal.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testOccmDemandSignal = new oci.capacitymanagement.OccmDemandSignal("test_occm_demand_signal", {
compartmentId: compartmentId,
displayName: occmDemandSignalDisplayName,
definedTags: {
"foo-namespace.bar-key": "value",
},
description: occmDemandSignalDescription,
freeformTags: {
"bar-key": "value",
},
});
import pulumi
import pulumi_oci as oci
test_occm_demand_signal = oci.capacity_management.OccmDemandSignal("test_occm_demand_signal",
compartment_id=compartment_id,
display_name=occm_demand_signal_display_name,
defined_tags={
"foo-namespace.bar-key": "value",
},
description=occm_demand_signal_description,
freeform_tags={
"bar-key": "value",
})
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/capacitymanagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := capacitymanagement.NewOccmDemandSignal(ctx, "test_occm_demand_signal", &capacitymanagement.OccmDemandSignalArgs{
CompartmentId: pulumi.Any(compartmentId),
DisplayName: pulumi.Any(occmDemandSignalDisplayName),
DefinedTags: pulumi.StringMap{
"foo-namespace.bar-key": pulumi.String("value"),
},
Description: pulumi.Any(occmDemandSignalDescription),
FreeformTags: pulumi.StringMap{
"bar-key": pulumi.String("value"),
},
})
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 testOccmDemandSignal = new Oci.CapacityManagement.OccmDemandSignal("test_occm_demand_signal", new()
{
CompartmentId = compartmentId,
DisplayName = occmDemandSignalDisplayName,
DefinedTags =
{
{ "foo-namespace.bar-key", "value" },
},
Description = occmDemandSignalDescription,
FreeformTags =
{
{ "bar-key", "value" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.CapacityManagement.OccmDemandSignal;
import com.pulumi.oci.CapacityManagement.OccmDemandSignalArgs;
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 testOccmDemandSignal = new OccmDemandSignal("testOccmDemandSignal", OccmDemandSignalArgs.builder()
.compartmentId(compartmentId)
.displayName(occmDemandSignalDisplayName)
.definedTags(Map.of("foo-namespace.bar-key", "value"))
.description(occmDemandSignalDescription)
.freeformTags(Map.of("bar-key", "value"))
.build());
}
}
resources:
testOccmDemandSignal:
type: oci:CapacityManagement:OccmDemandSignal
name: test_occm_demand_signal
properties:
compartmentId: ${compartmentId}
displayName: ${occmDemandSignalDisplayName}
definedTags:
foo-namespace.bar-key: value
description: ${occmDemandSignalDescription}
freeformTags:
bar-key: value
Create OccmDemandSignal Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OccmDemandSignal(name: string, args: OccmDemandSignalArgs, opts?: CustomResourceOptions);
@overload
def OccmDemandSignal(resource_name: str,
args: OccmDemandSignalArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OccmDemandSignal(resource_name: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
display_name: 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)
func NewOccmDemandSignal(ctx *Context, name string, args OccmDemandSignalArgs, opts ...ResourceOption) (*OccmDemandSignal, error)
public OccmDemandSignal(string name, OccmDemandSignalArgs args, CustomResourceOptions? opts = null)
public OccmDemandSignal(String name, OccmDemandSignalArgs args)
public OccmDemandSignal(String name, OccmDemandSignalArgs args, CustomResourceOptions options)
type: oci:CapacityManagement:OccmDemandSignal
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 OccmDemandSignalArgs
- 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 OccmDemandSignalArgs
- 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 OccmDemandSignalArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OccmDemandSignalArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OccmDemandSignalArgs
- 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 occmDemandSignalResource = new Oci.CapacityManagement.OccmDemandSignal("occmDemandSignalResource", new()
{
CompartmentId = "string",
DisplayName = "string",
DefinedTags =
{
{ "string", "string" },
},
Description = "string",
FreeformTags =
{
{ "string", "string" },
},
LifecycleDetails = "string",
});
example, err := capacitymanagement.NewOccmDemandSignal(ctx, "occmDemandSignalResource", &capacitymanagement.OccmDemandSignalArgs{
CompartmentId: pulumi.String("string"),
DisplayName: pulumi.String("string"),
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Description: pulumi.String("string"),
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
LifecycleDetails: pulumi.String("string"),
})
var occmDemandSignalResource = new OccmDemandSignal("occmDemandSignalResource", OccmDemandSignalArgs.builder()
.compartmentId("string")
.displayName("string")
.definedTags(Map.of("string", "string"))
.description("string")
.freeformTags(Map.of("string", "string"))
.lifecycleDetails("string")
.build());
occm_demand_signal_resource = oci.capacitymanagement.OccmDemandSignal("occmDemandSignalResource",
compartment_id="string",
display_name="string",
defined_tags={
"string": "string",
},
description="string",
freeform_tags={
"string": "string",
},
lifecycle_details="string")
const occmDemandSignalResource = new oci.capacitymanagement.OccmDemandSignal("occmDemandSignalResource", {
compartmentId: "string",
displayName: "string",
definedTags: {
string: "string",
},
description: "string",
freeformTags: {
string: "string",
},
lifecycleDetails: "string",
});
type: oci:CapacityManagement:OccmDemandSignal
properties:
compartmentId: string
definedTags:
string: string
description: string
displayName: string
freeformTags:
string: string
lifecycleDetails: string
OccmDemandSignal 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 OccmDemandSignal resource accepts the following input properties:
- Compartment
Id string - The OCID of the tenancy where we would like to create a demand signal.
- Display
Name string - (Updatable) The user-friendly name of the demand signal. Does not have to be unique. Avoid entering anything confidential.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- (Updatable) A short description of the demand signal.
- Dictionary<string, string>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
** 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
- Lifecycle
Details string - The different states associated with a demand signal.
- Compartment
Id string - The OCID of the tenancy where we would like to create a demand signal.
- Display
Name string - (Updatable) The user-friendly name of the demand signal. Does not have to be unique. Avoid entering anything confidential.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- (Updatable) A short description of the demand signal.
- map[string]string
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
** 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
- Lifecycle
Details string - The different states associated with a demand signal.
- compartment
Id String - The OCID of the tenancy where we would like to create a demand signal.
- display
Name String - (Updatable) The user-friendly name of the demand signal. Does not have to be unique. Avoid entering anything confidential.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
- (Updatable) A short description of the demand signal.
- Map<String,String>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
** 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
- lifecycle
Details String - The different states associated with a demand signal.
- compartment
Id string - The OCID of the tenancy where we would like to create a demand signal.
- display
Name string - (Updatable) The user-friendly name of the demand signal. Does not have to be unique. Avoid entering anything confidential.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description string
- (Updatable) A short description of the demand signal.
- {[key: string]: string}
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
** 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
- lifecycle
Details string - The different states associated with a demand signal.
- compartment_
id str - The OCID of the tenancy where we would like to create a demand signal.
- display_
name str - (Updatable) The user-friendly name of the demand signal. Does not have to be unique. Avoid entering anything confidential.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description str
- (Updatable) A short description of the demand signal.
- Mapping[str, str]
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
** 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
- lifecycle_
details str - The different states associated with a demand signal.
- compartment
Id String - The OCID of the tenancy where we would like to create a demand signal.
- display
Name String - (Updatable) The user-friendly name of the demand signal. Does not have to be unique. Avoid entering anything confidential.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
- (Updatable) A short description of the demand signal.
- Map<String>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
** 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
- lifecycle
Details String - The different states associated with a demand signal.
Outputs
All input properties are implicitly available as output properties. Additionally, the OccmDemandSignal resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- The current lifecycle state of the resource.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time when the demand signal was created.
- Time
Updated string - The time when the demand signal was last updated.
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- The current lifecycle state of the resource.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time when the demand signal was created.
- Time
Updated string - The time when the demand signal was last updated.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- The current lifecycle state of the resource.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time when the demand signal was created.
- time
Updated String - The time when the demand signal was last updated.
- id string
- The provider-assigned unique ID for this managed resource.
- state string
- The current lifecycle state of the resource.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The time when the demand signal was created.
- time
Updated string - The time when the demand signal was last updated.
- id str
- The provider-assigned unique ID for this managed resource.
- state str
- The current lifecycle state of the resource.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time_
created str - The time when the demand signal was created.
- time_
updated str - The time when the demand signal was last updated.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- The current lifecycle state of the resource.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time when the demand signal was created.
- time
Updated String - The time when the demand signal was last updated.
Look up Existing OccmDemandSignal Resource
Get an existing OccmDemandSignal 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?: OccmDemandSignalState, opts?: CustomResourceOptions): OccmDemandSignal
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
lifecycle_details: Optional[str] = None,
state: Optional[str] = None,
system_tags: Optional[Mapping[str, str]] = None,
time_created: Optional[str] = None,
time_updated: Optional[str] = None) -> OccmDemandSignal
func GetOccmDemandSignal(ctx *Context, name string, id IDInput, state *OccmDemandSignalState, opts ...ResourceOption) (*OccmDemandSignal, error)
public static OccmDemandSignal Get(string name, Input<string> id, OccmDemandSignalState? state, CustomResourceOptions? opts = null)
public static OccmDemandSignal get(String name, Output<String> id, OccmDemandSignalState state, CustomResourceOptions options)
resources: _: type: oci:CapacityManagement:OccmDemandSignal get: id: ${id}
- 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 - The OCID of the tenancy where we would like to create a demand signal.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- (Updatable) A short description of the demand signal.
- Display
Name string - (Updatable) The user-friendly name of the demand signal. Does not have to be unique. Avoid entering anything confidential.
- Dictionary<string, string>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
** 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
- Lifecycle
Details string - The different states associated with a demand signal.
- State string
- The current lifecycle state of the resource.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time when the demand signal was created.
- Time
Updated string - The time when the demand signal was last updated.
- Compartment
Id string - The OCID of the tenancy where we would like to create a demand signal.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- (Updatable) A short description of the demand signal.
- Display
Name string - (Updatable) The user-friendly name of the demand signal. Does not have to be unique. Avoid entering anything confidential.
- map[string]string
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
** 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
- Lifecycle
Details string - The different states associated with a demand signal.
- State string
- The current lifecycle state of the resource.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time when the demand signal was created.
- Time
Updated string - The time when the demand signal was last updated.
- compartment
Id String - The OCID of the tenancy where we would like to create a demand signal.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
- (Updatable) A short description of the demand signal.
- display
Name String - (Updatable) The user-friendly name of the demand signal. Does not have to be unique. Avoid entering anything confidential.
- Map<String,String>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
** 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
- lifecycle
Details String - The different states associated with a demand signal.
- state String
- The current lifecycle state of the resource.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time when the demand signal was created.
- time
Updated String - The time when the demand signal was last updated.
- compartment
Id string - The OCID of the tenancy where we would like to create a demand signal.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description string
- (Updatable) A short description of the demand signal.
- display
Name string - (Updatable) The user-friendly name of the demand signal. Does not have to be unique. Avoid entering anything confidential.
- {[key: string]: string}
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
** 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
- lifecycle
Details string - The different states associated with a demand signal.
- state string
- The current lifecycle state of the resource.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The time when the demand signal was created.
- time
Updated string - The time when the demand signal was last updated.
- compartment_
id str - The OCID of the tenancy where we would like to create a demand signal.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description str
- (Updatable) A short description of the demand signal.
- display_
name str - (Updatable) The user-friendly name of the demand signal. Does not have to be unique. Avoid entering anything confidential.
- Mapping[str, str]
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
** 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
- lifecycle_
details str - The different states associated with a demand signal.
- state str
- The current lifecycle state of the resource.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time_
created str - The time when the demand signal was created.
- time_
updated str - The time when the demand signal was last updated.
- compartment
Id String - The OCID of the tenancy where we would like to create a demand signal.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
- (Updatable) A short description of the demand signal.
- display
Name String - (Updatable) The user-friendly name of the demand signal. Does not have to be unique. Avoid entering anything confidential.
- Map<String>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
** 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
- lifecycle
Details String - The different states associated with a demand signal.
- state String
- The current lifecycle state of the resource.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time when the demand signal was created.
- time
Updated String - The time when the demand signal was last updated.
Import
OccmDemandSignals can be imported using the id
, e.g.
$ pulumi import oci:CapacityManagement/occmDemandSignal:OccmDemandSignal test_occm_demand_signal "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.