1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. CapacityManagement
  5. OccCustomerGroup
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.CapacityManagement.OccCustomerGroup

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

    This resource provides the Occ Customer Group resource in Oracle Cloud Infrastructure Capacity Management service.

    Create customer group.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testOccCustomerGroup = new oci.capacitymanagement.OccCustomerGroup("test_occ_customer_group", {
        compartmentId: compartmentId,
        displayName: occCustomerGroupDisplayName,
        customersLists: [{
            displayName: occCustomerGroupCustomersListDisplayName,
            tenancyId: testTenancy.id,
            description: occCustomerGroupCustomersListDescription,
            status: occCustomerGroupCustomersListStatus,
        }],
        definedTags: {
            "foo-namespace.bar-key": "value",
        },
        description: occCustomerGroupDescription,
        freeformTags: {
            "bar-key": "value",
        },
        lifecycleDetails: occCustomerGroupLifecycleDetails,
        status: occCustomerGroupStatus,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_occ_customer_group = oci.capacity_management.OccCustomerGroup("test_occ_customer_group",
        compartment_id=compartment_id,
        display_name=occ_customer_group_display_name,
        customers_lists=[{
            "display_name": occ_customer_group_customers_list_display_name,
            "tenancy_id": test_tenancy["id"],
            "description": occ_customer_group_customers_list_description,
            "status": occ_customer_group_customers_list_status,
        }],
        defined_tags={
            "foo-namespace.bar-key": "value",
        },
        description=occ_customer_group_description,
        freeform_tags={
            "bar-key": "value",
        },
        lifecycle_details=occ_customer_group_lifecycle_details,
        status=occ_customer_group_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.NewOccCustomerGroup(ctx, "test_occ_customer_group", &CapacityManagement.OccCustomerGroupArgs{
    			CompartmentId: pulumi.Any(compartmentId),
    			DisplayName:   pulumi.Any(occCustomerGroupDisplayName),
    			CustomersLists: capacitymanagement.OccCustomerGroupCustomersListArray{
    				&capacitymanagement.OccCustomerGroupCustomersListArgs{
    					DisplayName: pulumi.Any(occCustomerGroupCustomersListDisplayName),
    					TenancyId:   pulumi.Any(testTenancy.Id),
    					Description: pulumi.Any(occCustomerGroupCustomersListDescription),
    					Status:      pulumi.Any(occCustomerGroupCustomersListStatus),
    				},
    			},
    			DefinedTags: pulumi.StringMap{
    				"foo-namespace.bar-key": pulumi.String("value"),
    			},
    			Description: pulumi.Any(occCustomerGroupDescription),
    			FreeformTags: pulumi.StringMap{
    				"bar-key": pulumi.String("value"),
    			},
    			LifecycleDetails: pulumi.Any(occCustomerGroupLifecycleDetails),
    			Status:           pulumi.Any(occCustomerGroupStatus),
    		})
    		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 testOccCustomerGroup = new Oci.CapacityManagement.OccCustomerGroup("test_occ_customer_group", new()
        {
            CompartmentId = compartmentId,
            DisplayName = occCustomerGroupDisplayName,
            CustomersLists = new[]
            {
                new Oci.CapacityManagement.Inputs.OccCustomerGroupCustomersListArgs
                {
                    DisplayName = occCustomerGroupCustomersListDisplayName,
                    TenancyId = testTenancy.Id,
                    Description = occCustomerGroupCustomersListDescription,
                    Status = occCustomerGroupCustomersListStatus,
                },
            },
            DefinedTags = 
            {
                { "foo-namespace.bar-key", "value" },
            },
            Description = occCustomerGroupDescription,
            FreeformTags = 
            {
                { "bar-key", "value" },
            },
            LifecycleDetails = occCustomerGroupLifecycleDetails,
            Status = occCustomerGroupStatus,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.CapacityManagement.OccCustomerGroup;
    import com.pulumi.oci.CapacityManagement.OccCustomerGroupArgs;
    import com.pulumi.oci.CapacityManagement.inputs.OccCustomerGroupCustomersListArgs;
    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 testOccCustomerGroup = new OccCustomerGroup("testOccCustomerGroup", OccCustomerGroupArgs.builder()
                .compartmentId(compartmentId)
                .displayName(occCustomerGroupDisplayName)
                .customersLists(OccCustomerGroupCustomersListArgs.builder()
                    .displayName(occCustomerGroupCustomersListDisplayName)
                    .tenancyId(testTenancy.id())
                    .description(occCustomerGroupCustomersListDescription)
                    .status(occCustomerGroupCustomersListStatus)
                    .build())
                .definedTags(Map.of("foo-namespace.bar-key", "value"))
                .description(occCustomerGroupDescription)
                .freeformTags(Map.of("bar-key", "value"))
                .lifecycleDetails(occCustomerGroupLifecycleDetails)
                .status(occCustomerGroupStatus)
                .build());
    
        }
    }
    
    resources:
      testOccCustomerGroup:
        type: oci:CapacityManagement:OccCustomerGroup
        name: test_occ_customer_group
        properties:
          compartmentId: ${compartmentId}
          displayName: ${occCustomerGroupDisplayName}
          customersLists:
            - displayName: ${occCustomerGroupCustomersListDisplayName}
              tenancyId: ${testTenancy.id}
              description: ${occCustomerGroupCustomersListDescription}
              status: ${occCustomerGroupCustomersListStatus}
          definedTags:
            foo-namespace.bar-key: value
          description: ${occCustomerGroupDescription}
          freeformTags:
            bar-key: value
          lifecycleDetails: ${occCustomerGroupLifecycleDetails}
          status: ${occCustomerGroupStatus}
    

    Create OccCustomerGroup Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new OccCustomerGroup(name: string, args: OccCustomerGroupArgs, opts?: CustomResourceOptions);
    @overload
    def OccCustomerGroup(resource_name: str,
                         args: OccCustomerGroupArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def OccCustomerGroup(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         compartment_id: Optional[str] = None,
                         display_name: Optional[str] = None,
                         customers_lists: Optional[Sequence[_capacitymanagement.OccCustomerGroupCustomersListArgs]] = None,
                         defined_tags: Optional[Mapping[str, str]] = None,
                         description: Optional[str] = None,
                         freeform_tags: Optional[Mapping[str, str]] = None,
                         lifecycle_details: Optional[str] = None,
                         status: Optional[str] = None)
    func NewOccCustomerGroup(ctx *Context, name string, args OccCustomerGroupArgs, opts ...ResourceOption) (*OccCustomerGroup, error)
    public OccCustomerGroup(string name, OccCustomerGroupArgs args, CustomResourceOptions? opts = null)
    public OccCustomerGroup(String name, OccCustomerGroupArgs args)
    public OccCustomerGroup(String name, OccCustomerGroupArgs args, CustomResourceOptions options)
    
    type: oci:CapacityManagement:OccCustomerGroup
    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 OccCustomerGroupArgs
    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 OccCustomerGroupArgs
    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 OccCustomerGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OccCustomerGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OccCustomerGroupArgs
    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 occCustomerGroupResource = new Oci.CapacityManagement.OccCustomerGroup("occCustomerGroupResource", new()
    {
        CompartmentId = "string",
        DisplayName = "string",
        CustomersLists = new[]
        {
            new Oci.CapacityManagement.Inputs.OccCustomerGroupCustomersListArgs
            {
                DisplayName = "string",
                TenancyId = "string",
                Description = "string",
                OccCustomerGroupId = "string",
                Status = "string",
            },
        },
        DefinedTags = 
        {
            { "string", "string" },
        },
        Description = "string",
        FreeformTags = 
        {
            { "string", "string" },
        },
        LifecycleDetails = "string",
        Status = "string",
    });
    
    example, err := CapacityManagement.NewOccCustomerGroup(ctx, "occCustomerGroupResource", &CapacityManagement.OccCustomerGroupArgs{
    	CompartmentId: pulumi.String("string"),
    	DisplayName:   pulumi.String("string"),
    	CustomersLists: capacitymanagement.OccCustomerGroupCustomersListArray{
    		&capacitymanagement.OccCustomerGroupCustomersListArgs{
    			DisplayName:        pulumi.String("string"),
    			TenancyId:          pulumi.String("string"),
    			Description:        pulumi.String("string"),
    			OccCustomerGroupId: pulumi.String("string"),
    			Status:             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"),
    	Status:           pulumi.String("string"),
    })
    
    var occCustomerGroupResource = new OccCustomerGroup("occCustomerGroupResource", OccCustomerGroupArgs.builder()
        .compartmentId("string")
        .displayName("string")
        .customersLists(OccCustomerGroupCustomersListArgs.builder()
            .displayName("string")
            .tenancyId("string")
            .description("string")
            .occCustomerGroupId("string")
            .status("string")
            .build())
        .definedTags(Map.of("string", "string"))
        .description("string")
        .freeformTags(Map.of("string", "string"))
        .lifecycleDetails("string")
        .status("string")
        .build());
    
    occ_customer_group_resource = oci.capacity_management.OccCustomerGroup("occCustomerGroupResource",
        compartment_id="string",
        display_name="string",
        customers_lists=[oci.capacity_management.OccCustomerGroupCustomersListArgs(
            display_name="string",
            tenancy_id="string",
            description="string",
            occ_customer_group_id="string",
            status="string",
        )],
        defined_tags={
            "string": "string",
        },
        description="string",
        freeform_tags={
            "string": "string",
        },
        lifecycle_details="string",
        status="string")
    
    const occCustomerGroupResource = new oci.capacitymanagement.OccCustomerGroup("occCustomerGroupResource", {
        compartmentId: "string",
        displayName: "string",
        customersLists: [{
            displayName: "string",
            tenancyId: "string",
            description: "string",
            occCustomerGroupId: "string",
            status: "string",
        }],
        definedTags: {
            string: "string",
        },
        description: "string",
        freeformTags: {
            string: "string",
        },
        lifecycleDetails: "string",
        status: "string",
    });
    
    type: oci:CapacityManagement:OccCustomerGroup
    properties:
        compartmentId: string
        customersLists:
            - description: string
              displayName: string
              occCustomerGroupId: string
              status: string
              tenancyId: string
        definedTags:
            string: string
        description: string
        displayName: string
        freeformTags:
            string: string
        lifecycleDetails: string
        status: string
    

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

    CompartmentId string
    Since all resources are at tenancy level hence this will be the ocid of the tenancy where operation is to be performed.
    DisplayName string
    (Updatable) The name of the customer group.
    CustomersLists List<OccCustomerGroupCustomersList>
    A list containing all the customers that belong to this customer group.
    DefinedTags 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 description about the customer group.
    FreeformTags 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"}
    LifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State.
    Status string

    (Updatable) To determine whether the customer group is enabled/disabled.

    ** 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

    CompartmentId string
    Since all resources are at tenancy level hence this will be the ocid of the tenancy where operation is to be performed.
    DisplayName string
    (Updatable) The name of the customer group.
    CustomersLists []OccCustomerGroupCustomersListArgs
    A list containing all the customers that belong to this customer group.
    DefinedTags 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 description about the customer group.
    FreeformTags 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"}
    LifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State.
    Status string

    (Updatable) To determine whether the customer group is enabled/disabled.

    ** 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

    compartmentId String
    Since all resources are at tenancy level hence this will be the ocid of the tenancy where operation is to be performed.
    displayName String
    (Updatable) The name of the customer group.
    customersLists List<OccCustomerGroupCustomersList>
    A list containing all the customers that belong to this customer group.
    definedTags 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 description about the customer group.
    freeformTags 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"}
    lifecycleDetails String
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State.
    status String

    (Updatable) To determine whether the customer group is enabled/disabled.

    ** 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

    compartmentId string
    Since all resources are at tenancy level hence this will be the ocid of the tenancy where operation is to be performed.
    displayName string
    (Updatable) The name of the customer group.
    customersLists OccCustomerGroupCustomersList[]
    A list containing all the customers that belong to this customer group.
    definedTags {[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 description about the customer group.
    freeformTags {[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"}
    lifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State.
    status string

    (Updatable) To determine whether the customer group is enabled/disabled.

    ** 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
    Since all resources are at tenancy level hence this will be the ocid of the tenancy where operation is to be performed.
    display_name str
    (Updatable) The name of the customer group.
    customers_lists Sequence[capacitymanagement.OccCustomerGroupCustomersListArgs]
    A list containing all the customers that belong to this customer group.
    defined_tags 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 description about the customer group.
    freeform_tags 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"}
    lifecycle_details str
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State.
    status str

    (Updatable) To determine whether the customer group is enabled/disabled.

    ** 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

    compartmentId String
    Since all resources are at tenancy level hence this will be the ocid of the tenancy where operation is to be performed.
    displayName String
    (Updatable) The name of the customer group.
    customersLists List<Property Map>
    A list containing all the customers that belong to this customer group.
    definedTags 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 description about the customer group.
    freeformTags 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"}
    lifecycleDetails String
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State.
    status String

    (Updatable) To determine whether the customer group is enabled/disabled.

    ** 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 OccCustomerGroup 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.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time when the customer group was created.
    TimeUpdated string
    The time when the customer group was last updated.
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The current lifecycle state of the resource.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time when the customer group was created.
    TimeUpdated string
    The time when the customer group was last updated.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The current lifecycle state of the resource.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time when the customer group was created.
    timeUpdated String
    The time when the customer group was last updated.
    id string
    The provider-assigned unique ID for this managed resource.
    state string
    The current lifecycle state of the resource.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The time when the customer group was created.
    timeUpdated string
    The time when the customer group was last updated.
    id str
    The provider-assigned unique ID for this managed resource.
    state str
    The current lifecycle state of the resource.
    system_tags 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 customer group was created.
    time_updated str
    The time when the customer group was last updated.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The current lifecycle state of the resource.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time when the customer group was created.
    timeUpdated String
    The time when the customer group was last updated.

    Look up Existing OccCustomerGroup Resource

    Get an existing OccCustomerGroup 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?: OccCustomerGroupState, opts?: CustomResourceOptions): OccCustomerGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            compartment_id: Optional[str] = None,
            customers_lists: Optional[Sequence[_capacitymanagement.OccCustomerGroupCustomersListArgs]] = 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,
            status: Optional[str] = None,
            system_tags: Optional[Mapping[str, str]] = None,
            time_created: Optional[str] = None,
            time_updated: Optional[str] = None) -> OccCustomerGroup
    func GetOccCustomerGroup(ctx *Context, name string, id IDInput, state *OccCustomerGroupState, opts ...ResourceOption) (*OccCustomerGroup, error)
    public static OccCustomerGroup Get(string name, Input<string> id, OccCustomerGroupState? state, CustomResourceOptions? opts = null)
    public static OccCustomerGroup get(String name, Output<String> id, OccCustomerGroupState 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:
    CompartmentId string
    Since all resources are at tenancy level hence this will be the ocid of the tenancy where operation is to be performed.
    CustomersLists List<OccCustomerGroupCustomersList>
    A list containing all the customers that belong to this customer group.
    DefinedTags 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 description about the customer group.
    DisplayName string
    (Updatable) The name of the customer group.
    FreeformTags 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"}
    LifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State.
    State string
    The current lifecycle state of the resource.
    Status string

    (Updatable) To determine whether the customer group is enabled/disabled.

    ** 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

    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time when the customer group was created.
    TimeUpdated string
    The time when the customer group was last updated.
    CompartmentId string
    Since all resources are at tenancy level hence this will be the ocid of the tenancy where operation is to be performed.
    CustomersLists []OccCustomerGroupCustomersListArgs
    A list containing all the customers that belong to this customer group.
    DefinedTags 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 description about the customer group.
    DisplayName string
    (Updatable) The name of the customer group.
    FreeformTags 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"}
    LifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State.
    State string
    The current lifecycle state of the resource.
    Status string

    (Updatable) To determine whether the customer group is enabled/disabled.

    ** 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

    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time when the customer group was created.
    TimeUpdated string
    The time when the customer group was last updated.
    compartmentId String
    Since all resources are at tenancy level hence this will be the ocid of the tenancy where operation is to be performed.
    customersLists List<OccCustomerGroupCustomersList>
    A list containing all the customers that belong to this customer group.
    definedTags 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 description about the customer group.
    displayName String
    (Updatable) The name of the customer group.
    freeformTags 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"}
    lifecycleDetails String
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State.
    state String
    The current lifecycle state of the resource.
    status String

    (Updatable) To determine whether the customer group is enabled/disabled.

    ** 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

    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time when the customer group was created.
    timeUpdated String
    The time when the customer group was last updated.
    compartmentId string
    Since all resources are at tenancy level hence this will be the ocid of the tenancy where operation is to be performed.
    customersLists OccCustomerGroupCustomersList[]
    A list containing all the customers that belong to this customer group.
    definedTags {[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 description about the customer group.
    displayName string
    (Updatable) The name of the customer group.
    freeformTags {[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"}
    lifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State.
    state string
    The current lifecycle state of the resource.
    status string

    (Updatable) To determine whether the customer group is enabled/disabled.

    ** 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

    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The time when the customer group was created.
    timeUpdated string
    The time when the customer group was last updated.
    compartment_id str
    Since all resources are at tenancy level hence this will be the ocid of the tenancy where operation is to be performed.
    customers_lists Sequence[capacitymanagement.OccCustomerGroupCustomersListArgs]
    A list containing all the customers that belong to this customer group.
    defined_tags 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 description about the customer group.
    display_name str
    (Updatable) The name of the customer group.
    freeform_tags 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"}
    lifecycle_details str
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State.
    state str
    The current lifecycle state of the resource.
    status str

    (Updatable) To determine whether the customer group is enabled/disabled.

    ** 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

    system_tags 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 customer group was created.
    time_updated str
    The time when the customer group was last updated.
    compartmentId String
    Since all resources are at tenancy level hence this will be the ocid of the tenancy where operation is to be performed.
    customersLists List<Property Map>
    A list containing all the customers that belong to this customer group.
    definedTags 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 description about the customer group.
    displayName String
    (Updatable) The name of the customer group.
    freeformTags 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"}
    lifecycleDetails String
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State.
    state String
    The current lifecycle state of the resource.
    status String

    (Updatable) To determine whether the customer group is enabled/disabled.

    ** 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

    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time when the customer group was created.
    timeUpdated String
    The time when the customer group was last updated.

    Supporting Types

    OccCustomerGroupCustomersList, OccCustomerGroupCustomersListArgs

    DisplayName string
    The display name for the customer.
    TenancyId string
    The OCID of the tenancy belonging to the customer.
    Description string
    The description about the customer group.
    OccCustomerGroupId string
    The OCID of the customer group.
    Status string
    To determine whether the customer is enabled/disabled.
    DisplayName string
    The display name for the customer.
    TenancyId string
    The OCID of the tenancy belonging to the customer.
    Description string
    The description about the customer group.
    OccCustomerGroupId string
    The OCID of the customer group.
    Status string
    To determine whether the customer is enabled/disabled.
    displayName String
    The display name for the customer.
    tenancyId String
    The OCID of the tenancy belonging to the customer.
    description String
    The description about the customer group.
    occCustomerGroupId String
    The OCID of the customer group.
    status String
    To determine whether the customer is enabled/disabled.
    displayName string
    The display name for the customer.
    tenancyId string
    The OCID of the tenancy belonging to the customer.
    description string
    The description about the customer group.
    occCustomerGroupId string
    The OCID of the customer group.
    status string
    To determine whether the customer is enabled/disabled.
    display_name str
    The display name for the customer.
    tenancy_id str
    The OCID of the tenancy belonging to the customer.
    description str
    The description about the customer group.
    occ_customer_group_id str
    The OCID of the customer group.
    status str
    To determine whether the customer is enabled/disabled.
    displayName String
    The display name for the customer.
    tenancyId String
    The OCID of the tenancy belonging to the customer.
    description String
    The description about the customer group.
    occCustomerGroupId String
    The OCID of the customer group.
    status String
    To determine whether the customer is enabled/disabled.

    Import

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

    $ pulumi import oci:CapacityManagement/occCustomerGroup:OccCustomerGroup test_occ_customer_group "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.
    oci logo
    Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi