1. Packages
  2. Chronosphere
  3. API Docs
  4. ResourcePoolsConfig
Chronosphere v0.9.2 published on Monday, Sep 9, 2024 by Chronosphere

chronosphere.ResourcePoolsConfig

Explore with Pulumi AI

chronosphere logo
Chronosphere v0.9.2 published on Monday, Sep 9, 2024 by Chronosphere

    Create ResourcePoolsConfig Resource

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

    Constructor syntax

    new ResourcePoolsConfig(name: string, args?: ResourcePoolsConfigArgs, opts?: CustomResourceOptions);
    @overload
    def ResourcePoolsConfig(resource_name: str,
                            args: Optional[ResourcePoolsConfigArgs] = None,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def ResourcePoolsConfig(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            default_pool: Optional[ResourcePoolsConfigDefaultPoolArgs] = None,
                            pool: Optional[Sequence[ResourcePoolsConfigPoolArgs]] = None,
                            pools: Optional[Sequence[ResourcePoolsConfigPoolArgs]] = None)
    func NewResourcePoolsConfig(ctx *Context, name string, args *ResourcePoolsConfigArgs, opts ...ResourceOption) (*ResourcePoolsConfig, error)
    public ResourcePoolsConfig(string name, ResourcePoolsConfigArgs? args = null, CustomResourceOptions? opts = null)
    public ResourcePoolsConfig(String name, ResourcePoolsConfigArgs args)
    public ResourcePoolsConfig(String name, ResourcePoolsConfigArgs args, CustomResourceOptions options)
    
    type: chronosphere:ResourcePoolsConfig
    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 ResourcePoolsConfigArgs
    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 ResourcePoolsConfigArgs
    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 ResourcePoolsConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ResourcePoolsConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ResourcePoolsConfigArgs
    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 resourcePoolsConfigResource = new Pulumi.ResourcePoolsConfig("resourcePoolsConfigResource", new()
    {
        DefaultPool = new Pulumi.Inputs.ResourcePoolsConfigDefaultPoolArgs
        {
            Allocation = new Pulumi.Inputs.ResourcePoolsConfigDefaultPoolAllocationArgs
            {
                FixedValues = new[]
                {
                    new Pulumi.Inputs.ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs
                    {
                        License = "string",
                        Value = 0,
                    },
                },
                PercentOfLicense = 0,
            },
            Priorities = new Pulumi.Inputs.ResourcePoolsConfigDefaultPoolPrioritiesArgs
            {
                HighPriorityMatchRules = new[]
                {
                    "string",
                },
                LowPriorityMatchRules = new[]
                {
                    "string",
                },
            },
        },
        Pool = new[]
        {
            new Pulumi.Inputs.ResourcePoolsConfigPoolArgs
            {
                Name = "string",
                Allocation = new Pulumi.Inputs.ResourcePoolsConfigPoolAllocationArgs
                {
                    FixedValues = new[]
                    {
                        new Pulumi.Inputs.ResourcePoolsConfigPoolAllocationFixedValueArgs
                        {
                            License = "string",
                            Value = 0,
                        },
                    },
                    PercentOfLicense = 0,
                },
                MatchRules = new[]
                {
                    "string",
                },
                Priorities = new Pulumi.Inputs.ResourcePoolsConfigPoolPrioritiesArgs
                {
                    HighPriorityMatchRules = new[]
                    {
                        "string",
                    },
                    LowPriorityMatchRules = new[]
                    {
                        "string",
                    },
                },
            },
        },
    });
    
    example, err := chronosphere.NewResourcePoolsConfig(ctx, "resourcePoolsConfigResource", &chronosphere.ResourcePoolsConfigArgs{
    	DefaultPool: &chronosphere.ResourcePoolsConfigDefaultPoolArgs{
    		Allocation: &chronosphere.ResourcePoolsConfigDefaultPoolAllocationArgs{
    			FixedValues: chronosphere.ResourcePoolsConfigDefaultPoolAllocationFixedValueArray{
    				&chronosphere.ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs{
    					License: pulumi.String("string"),
    					Value:   pulumi.Int(0),
    				},
    			},
    			PercentOfLicense: pulumi.Float64(0),
    		},
    		Priorities: &chronosphere.ResourcePoolsConfigDefaultPoolPrioritiesArgs{
    			HighPriorityMatchRules: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			LowPriorityMatchRules: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	Pool: chronosphere.ResourcePoolsConfigPoolArray{
    		&chronosphere.ResourcePoolsConfigPoolArgs{
    			Name: pulumi.String("string"),
    			Allocation: &chronosphere.ResourcePoolsConfigPoolAllocationArgs{
    				FixedValues: chronosphere.ResourcePoolsConfigPoolAllocationFixedValueArray{
    					&chronosphere.ResourcePoolsConfigPoolAllocationFixedValueArgs{
    						License: pulumi.String("string"),
    						Value:   pulumi.Int(0),
    					},
    				},
    				PercentOfLicense: pulumi.Float64(0),
    			},
    			MatchRules: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Priorities: &chronosphere.ResourcePoolsConfigPoolPrioritiesArgs{
    				HighPriorityMatchRules: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    				LowPriorityMatchRules: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    			},
    		},
    	},
    })
    
    var resourcePoolsConfigResource = new ResourcePoolsConfig("resourcePoolsConfigResource", ResourcePoolsConfigArgs.builder()
        .defaultPool(ResourcePoolsConfigDefaultPoolArgs.builder()
            .allocation(ResourcePoolsConfigDefaultPoolAllocationArgs.builder()
                .fixedValues(ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs.builder()
                    .license("string")
                    .value(0)
                    .build())
                .percentOfLicense(0)
                .build())
            .priorities(ResourcePoolsConfigDefaultPoolPrioritiesArgs.builder()
                .highPriorityMatchRules("string")
                .lowPriorityMatchRules("string")
                .build())
            .build())
        .pool(ResourcePoolsConfigPoolArgs.builder()
            .name("string")
            .allocation(ResourcePoolsConfigPoolAllocationArgs.builder()
                .fixedValues(ResourcePoolsConfigPoolAllocationFixedValueArgs.builder()
                    .license("string")
                    .value(0)
                    .build())
                .percentOfLicense(0)
                .build())
            .matchRules("string")
            .priorities(ResourcePoolsConfigPoolPrioritiesArgs.builder()
                .highPriorityMatchRules("string")
                .lowPriorityMatchRules("string")
                .build())
            .build())
        .build());
    
    resource_pools_config_resource = chronosphere.ResourcePoolsConfig("resourcePoolsConfigResource",
        default_pool=chronosphere.ResourcePoolsConfigDefaultPoolArgs(
            allocation=chronosphere.ResourcePoolsConfigDefaultPoolAllocationArgs(
                fixed_values=[chronosphere.ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs(
                    license="string",
                    value=0,
                )],
                percent_of_license=0,
            ),
            priorities=chronosphere.ResourcePoolsConfigDefaultPoolPrioritiesArgs(
                high_priority_match_rules=["string"],
                low_priority_match_rules=["string"],
            ),
        ),
        pool=[chronosphere.ResourcePoolsConfigPoolArgs(
            name="string",
            allocation=chronosphere.ResourcePoolsConfigPoolAllocationArgs(
                fixed_values=[chronosphere.ResourcePoolsConfigPoolAllocationFixedValueArgs(
                    license="string",
                    value=0,
                )],
                percent_of_license=0,
            ),
            match_rules=["string"],
            priorities=chronosphere.ResourcePoolsConfigPoolPrioritiesArgs(
                high_priority_match_rules=["string"],
                low_priority_match_rules=["string"],
            ),
        )])
    
    const resourcePoolsConfigResource = new chronosphere.ResourcePoolsConfig("resourcePoolsConfigResource", {
        defaultPool: {
            allocation: {
                fixedValues: [{
                    license: "string",
                    value: 0,
                }],
                percentOfLicense: 0,
            },
            priorities: {
                highPriorityMatchRules: ["string"],
                lowPriorityMatchRules: ["string"],
            },
        },
        pool: [{
            name: "string",
            allocation: {
                fixedValues: [{
                    license: "string",
                    value: 0,
                }],
                percentOfLicense: 0,
            },
            matchRules: ["string"],
            priorities: {
                highPriorityMatchRules: ["string"],
                lowPriorityMatchRules: ["string"],
            },
        }],
    });
    
    type: chronosphere:ResourcePoolsConfig
    properties:
        defaultPool:
            allocation:
                fixedValues:
                    - license: string
                      value: 0
                percentOfLicense: 0
            priorities:
                highPriorityMatchRules:
                    - string
                lowPriorityMatchRules:
                    - string
        pool:
            - allocation:
                fixedValues:
                    - license: string
                      value: 0
                percentOfLicense: 0
              matchRules:
                - string
              name: string
              priorities:
                highPriorityMatchRules:
                    - string
                lowPriorityMatchRules:
                    - string
    

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

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ResourcePoolsConfig 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 ResourcePoolsConfig Resource

    Get an existing ResourcePoolsConfig 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?: ResourcePoolsConfigState, opts?: CustomResourceOptions): ResourcePoolsConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            default_pool: Optional[ResourcePoolsConfigDefaultPoolArgs] = None,
            pool: Optional[Sequence[ResourcePoolsConfigPoolArgs]] = None,
            pools: Optional[Sequence[ResourcePoolsConfigPoolArgs]] = None) -> ResourcePoolsConfig
    func GetResourcePoolsConfig(ctx *Context, name string, id IDInput, state *ResourcePoolsConfigState, opts ...ResourceOption) (*ResourcePoolsConfig, error)
    public static ResourcePoolsConfig Get(string name, Input<string> id, ResourcePoolsConfigState? state, CustomResourceOptions? opts = null)
    public static ResourcePoolsConfig get(String name, Output<String> id, ResourcePoolsConfigState 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:

    Supporting Types

    ResourcePoolsConfigDefaultPool, ResourcePoolsConfigDefaultPoolArgs

    ResourcePoolsConfigDefaultPoolAllocation, ResourcePoolsConfigDefaultPoolAllocationArgs

    ResourcePoolsConfigDefaultPoolAllocationFixedValue, ResourcePoolsConfigDefaultPoolAllocationFixedValueArgs

    License string
    Value int
    License string
    Value int
    license String
    value Integer
    license string
    value number
    license str
    value int
    license String
    value Number

    ResourcePoolsConfigDefaultPoolPriorities, ResourcePoolsConfigDefaultPoolPrioritiesArgs

    ResourcePoolsConfigPool, ResourcePoolsConfigPoolArgs

    name String
    allocation Property Map
    matchRule String

    Deprecated: use match_rules

    matchRules List<String>
    priorities Property Map

    ResourcePoolsConfigPoolAllocation, ResourcePoolsConfigPoolAllocationArgs

    ResourcePoolsConfigPoolAllocationFixedValue, ResourcePoolsConfigPoolAllocationFixedValueArgs

    License string
    Value int
    License string
    Value int
    license String
    value Integer
    license string
    value number
    license str
    value int
    license String
    value Number

    ResourcePoolsConfigPoolPriorities, ResourcePoolsConfigPoolPrioritiesArgs

    Package Details

    Repository
    chronosphere chronosphereio/pulumi-chronosphere
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the chronosphere Terraform Provider.
    chronosphere logo
    Chronosphere v0.9.2 published on Monday, Sep 9, 2024 by Chronosphere