oci.CapacityManagement.OccCustomerGroupOccCustomer
Explore with Pulumi AI
This resource provides the Occ Customer Group Occ Customer resource in Oracle Cloud Infrastructure Capacity Management service.
Create customer.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testOccCustomerGroupOccCustomer = new oci.capacitymanagement.OccCustomerGroupOccCustomer("test_occ_customer_group_occ_customer", {
displayName: occCustomerGroupOccCustomerDisplayName,
occCustomerGroupId: testOccCustomerGroup.id,
tenancyId: testTenancy.id,
description: occCustomerGroupOccCustomerDescription,
status: occCustomerGroupOccCustomerStatus,
});
import pulumi
import pulumi_oci as oci
test_occ_customer_group_occ_customer = oci.capacity_management.OccCustomerGroupOccCustomer("test_occ_customer_group_occ_customer",
display_name=occ_customer_group_occ_customer_display_name,
occ_customer_group_id=test_occ_customer_group["id"],
tenancy_id=test_tenancy["id"],
description=occ_customer_group_occ_customer_description,
status=occ_customer_group_occ_customer_status)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/CapacityManagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := CapacityManagement.NewOccCustomerGroupOccCustomer(ctx, "test_occ_customer_group_occ_customer", &CapacityManagement.OccCustomerGroupOccCustomerArgs{
DisplayName: pulumi.Any(occCustomerGroupOccCustomerDisplayName),
OccCustomerGroupId: pulumi.Any(testOccCustomerGroup.Id),
TenancyId: pulumi.Any(testTenancy.Id),
Description: pulumi.Any(occCustomerGroupOccCustomerDescription),
Status: pulumi.Any(occCustomerGroupOccCustomerStatus),
})
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 testOccCustomerGroupOccCustomer = new Oci.CapacityManagement.OccCustomerGroupOccCustomer("test_occ_customer_group_occ_customer", new()
{
DisplayName = occCustomerGroupOccCustomerDisplayName,
OccCustomerGroupId = testOccCustomerGroup.Id,
TenancyId = testTenancy.Id,
Description = occCustomerGroupOccCustomerDescription,
Status = occCustomerGroupOccCustomerStatus,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.CapacityManagement.OccCustomerGroupOccCustomer;
import com.pulumi.oci.CapacityManagement.OccCustomerGroupOccCustomerArgs;
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 testOccCustomerGroupOccCustomer = new OccCustomerGroupOccCustomer("testOccCustomerGroupOccCustomer", OccCustomerGroupOccCustomerArgs.builder()
.displayName(occCustomerGroupOccCustomerDisplayName)
.occCustomerGroupId(testOccCustomerGroup.id())
.tenancyId(testTenancy.id())
.description(occCustomerGroupOccCustomerDescription)
.status(occCustomerGroupOccCustomerStatus)
.build());
}
}
resources:
testOccCustomerGroupOccCustomer:
type: oci:CapacityManagement:OccCustomerGroupOccCustomer
name: test_occ_customer_group_occ_customer
properties:
displayName: ${occCustomerGroupOccCustomerDisplayName}
occCustomerGroupId: ${testOccCustomerGroup.id}
tenancyId: ${testTenancy.id}
description: ${occCustomerGroupOccCustomerDescription}
status: ${occCustomerGroupOccCustomerStatus}
Create OccCustomerGroupOccCustomer Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OccCustomerGroupOccCustomer(name: string, args: OccCustomerGroupOccCustomerArgs, opts?: CustomResourceOptions);
@overload
def OccCustomerGroupOccCustomer(resource_name: str,
args: OccCustomerGroupOccCustomerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OccCustomerGroupOccCustomer(resource_name: str,
opts: Optional[ResourceOptions] = None,
display_name: Optional[str] = None,
occ_customer_group_id: Optional[str] = None,
tenancy_id: Optional[str] = None,
description: Optional[str] = None,
status: Optional[str] = None)
func NewOccCustomerGroupOccCustomer(ctx *Context, name string, args OccCustomerGroupOccCustomerArgs, opts ...ResourceOption) (*OccCustomerGroupOccCustomer, error)
public OccCustomerGroupOccCustomer(string name, OccCustomerGroupOccCustomerArgs args, CustomResourceOptions? opts = null)
public OccCustomerGroupOccCustomer(String name, OccCustomerGroupOccCustomerArgs args)
public OccCustomerGroupOccCustomer(String name, OccCustomerGroupOccCustomerArgs args, CustomResourceOptions options)
type: oci:CapacityManagement:OccCustomerGroupOccCustomer
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 OccCustomerGroupOccCustomerArgs
- 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 OccCustomerGroupOccCustomerArgs
- 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 OccCustomerGroupOccCustomerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OccCustomerGroupOccCustomerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OccCustomerGroupOccCustomerArgs
- 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 occCustomerGroupOccCustomerResource = new Oci.CapacityManagement.OccCustomerGroupOccCustomer("occCustomerGroupOccCustomerResource", new()
{
DisplayName = "string",
OccCustomerGroupId = "string",
TenancyId = "string",
Description = "string",
Status = "string",
});
example, err := CapacityManagement.NewOccCustomerGroupOccCustomer(ctx, "occCustomerGroupOccCustomerResource", &CapacityManagement.OccCustomerGroupOccCustomerArgs{
DisplayName: pulumi.String("string"),
OccCustomerGroupId: pulumi.String("string"),
TenancyId: pulumi.String("string"),
Description: pulumi.String("string"),
Status: pulumi.String("string"),
})
var occCustomerGroupOccCustomerResource = new OccCustomerGroupOccCustomer("occCustomerGroupOccCustomerResource", OccCustomerGroupOccCustomerArgs.builder()
.displayName("string")
.occCustomerGroupId("string")
.tenancyId("string")
.description("string")
.status("string")
.build());
occ_customer_group_occ_customer_resource = oci.capacity_management.OccCustomerGroupOccCustomer("occCustomerGroupOccCustomerResource",
display_name="string",
occ_customer_group_id="string",
tenancy_id="string",
description="string",
status="string")
const occCustomerGroupOccCustomerResource = new oci.capacitymanagement.OccCustomerGroupOccCustomer("occCustomerGroupOccCustomerResource", {
displayName: "string",
occCustomerGroupId: "string",
tenancyId: "string",
description: "string",
status: "string",
});
type: oci:CapacityManagement:OccCustomerGroupOccCustomer
properties:
description: string
displayName: string
occCustomerGroupId: string
status: string
tenancyId: string
OccCustomerGroupOccCustomer 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 OccCustomerGroupOccCustomer resource accepts the following input properties:
- Display
Name string - (Updatable) The display name for the customer.
- Occ
Customer stringGroup Id - The OCID of the customer group.
- Tenancy
Id string The OCID of the tenancy belonging to the customer.
** 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
- Description string
- (Updatable) The description about the customer group.
- Status string
- (Updatable) To determine whether the customer is enabled/disabled.
- Display
Name string - (Updatable) The display name for the customer.
- Occ
Customer stringGroup Id - The OCID of the customer group.
- Tenancy
Id string The OCID of the tenancy belonging to the customer.
** 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
- Description string
- (Updatable) The description about the customer group.
- Status string
- (Updatable) To determine whether the customer is enabled/disabled.
- display
Name String - (Updatable) The display name for the customer.
- occ
Customer StringGroup Id - The OCID of the customer group.
- tenancy
Id String The OCID of the tenancy belonging to the customer.
** 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
- description String
- (Updatable) The description about the customer group.
- status String
- (Updatable) To determine whether the customer is enabled/disabled.
- display
Name string - (Updatable) The display name for the customer.
- occ
Customer stringGroup Id - The OCID of the customer group.
- tenancy
Id string The OCID of the tenancy belonging to the customer.
** 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
- description string
- (Updatable) The description about the customer group.
- status string
- (Updatable) To determine whether the customer is enabled/disabled.
- display_
name str - (Updatable) The display name for the customer.
- occ_
customer_ strgroup_ id - The OCID of the customer group.
- tenancy_
id str The OCID of the tenancy belonging to the customer.
** 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
- description str
- (Updatable) The description about the customer group.
- status str
- (Updatable) To determine whether the customer is enabled/disabled.
- display
Name String - (Updatable) The display name for the customer.
- occ
Customer StringGroup Id - The OCID of the customer group.
- tenancy
Id String The OCID of the tenancy belonging to the customer.
** 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
- description String
- (Updatable) The description about the customer group.
- status String
- (Updatable) To determine whether the customer is enabled/disabled.
Outputs
All input properties are implicitly available as output properties. Additionally, the OccCustomerGroupOccCustomer resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing OccCustomerGroupOccCustomer Resource
Get an existing OccCustomerGroupOccCustomer 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?: OccCustomerGroupOccCustomerState, opts?: CustomResourceOptions): OccCustomerGroupOccCustomer
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
occ_customer_group_id: Optional[str] = None,
status: Optional[str] = None,
tenancy_id: Optional[str] = None) -> OccCustomerGroupOccCustomer
func GetOccCustomerGroupOccCustomer(ctx *Context, name string, id IDInput, state *OccCustomerGroupOccCustomerState, opts ...ResourceOption) (*OccCustomerGroupOccCustomer, error)
public static OccCustomerGroupOccCustomer Get(string name, Input<string> id, OccCustomerGroupOccCustomerState? state, CustomResourceOptions? opts = null)
public static OccCustomerGroupOccCustomer get(String name, Output<String> id, OccCustomerGroupOccCustomerState 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.
- Description string
- (Updatable) The description about the customer group.
- Display
Name string - (Updatable) The display name for the customer.
- Occ
Customer stringGroup Id - The OCID of the customer group.
- Status string
- (Updatable) To determine whether the customer is enabled/disabled.
- Tenancy
Id string The OCID of the tenancy belonging to the customer.
** 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
- Description string
- (Updatable) The description about the customer group.
- Display
Name string - (Updatable) The display name for the customer.
- Occ
Customer stringGroup Id - The OCID of the customer group.
- Status string
- (Updatable) To determine whether the customer is enabled/disabled.
- Tenancy
Id string The OCID of the tenancy belonging to the customer.
** 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
- description String
- (Updatable) The description about the customer group.
- display
Name String - (Updatable) The display name for the customer.
- occ
Customer StringGroup Id - The OCID of the customer group.
- status String
- (Updatable) To determine whether the customer is enabled/disabled.
- tenancy
Id String The OCID of the tenancy belonging to the customer.
** 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
- description string
- (Updatable) The description about the customer group.
- display
Name string - (Updatable) The display name for the customer.
- occ
Customer stringGroup Id - The OCID of the customer group.
- status string
- (Updatable) To determine whether the customer is enabled/disabled.
- tenancy
Id string The OCID of the tenancy belonging to the customer.
** 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
- description str
- (Updatable) The description about the customer group.
- display_
name str - (Updatable) The display name for the customer.
- occ_
customer_ strgroup_ id - The OCID of the customer group.
- status str
- (Updatable) To determine whether the customer is enabled/disabled.
- tenancy_
id str The OCID of the tenancy belonging to the customer.
** 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
- description String
- (Updatable) The description about the customer group.
- display
Name String - (Updatable) The display name for the customer.
- occ
Customer StringGroup Id - The OCID of the customer group.
- status String
- (Updatable) To determine whether the customer is enabled/disabled.
- tenancy
Id String The OCID of the tenancy belonging to the customer.
** 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
Import
OccCustomerGroupOccCustomers can be imported using the id
, e.g.
$ pulumi import oci:CapacityManagement/occCustomerGroupOccCustomer:OccCustomerGroupOccCustomer test_occ_customer_group_occ_customer "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.