1. Packages
  2. Nutanix
  3. API Docs
  4. CategoryValue
Nutanix v0.5.0 published on Monday, Nov 4, 2024 by Piers Karsenbarg

nutanix.CategoryValue

Explore with Pulumi AI

nutanix logo
Nutanix v0.5.0 published on Monday, Nov 4, 2024 by Piers Karsenbarg

    Provides a Nutanix Category value resource to Create a category value.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as nutanix from "@pierskarsenbarg/nutanix";
    
    const test_category_key = new nutanix.CategoryKey("test-category-key", {description: "App Support Category Key"});
    const test = new nutanix.CategoryValue("test", {
        description: "Test Category Value",
        value: "test-value",
    });
    
    import pulumi
    import pulumi_nutanix as nutanix
    
    test_category_key = nutanix.CategoryKey("test-category-key", description="App Support Category Key")
    test = nutanix.CategoryValue("test",
        description="Test Category Value",
        value="test-value")
    
    package main
    
    import (
    	"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := nutanix.NewCategoryKey(ctx, "test-category-key", &nutanix.CategoryKeyArgs{
    			Description: pulumi.String("App Support Category Key"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = nutanix.NewCategoryValue(ctx, "test", &nutanix.CategoryValueArgs{
    			Description: pulumi.String("Test Category Value"),
    			Value:       pulumi.String("test-value"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Nutanix = PiersKarsenbarg.Nutanix;
    
    return await Deployment.RunAsync(() => 
    {
        var test_category_key = new Nutanix.CategoryKey("test-category-key", new()
        {
            Description = "App Support Category Key",
        });
    
        var test = new Nutanix.CategoryValue("test", new()
        {
            Description = "Test Category Value",
            Value = "test-value",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.nutanix.CategoryKey;
    import com.pulumi.nutanix.CategoryKeyArgs;
    import com.pulumi.nutanix.CategoryValue;
    import com.pulumi.nutanix.CategoryValueArgs;
    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 test_category_key = new CategoryKey("test-category-key", CategoryKeyArgs.builder()
                .description("App Support Category Key")
                .build());
    
            var test = new CategoryValue("test", CategoryValueArgs.builder()
                .description("Test Category Value")
                .value("test-value")
                .build());
    
        }
    }
    
    resources:
      test-category-key:
        type: nutanix:CategoryKey
        properties:
          description: App Support Category Key
      test:
        type: nutanix:CategoryValue
        properties:
          description: Test Category Value
          value: test-value
    

    Create CategoryValue Resource

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

    Constructor syntax

    new CategoryValue(name: string, args: CategoryValueArgs, opts?: CustomResourceOptions);
    @overload
    def CategoryValue(resource_name: str,
                      args: CategoryValueArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def CategoryValue(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      value: Optional[str] = None,
                      description: Optional[str] = None,
                      name: Optional[str] = None)
    func NewCategoryValue(ctx *Context, name string, args CategoryValueArgs, opts ...ResourceOption) (*CategoryValue, error)
    public CategoryValue(string name, CategoryValueArgs args, CustomResourceOptions? opts = null)
    public CategoryValue(String name, CategoryValueArgs args)
    public CategoryValue(String name, CategoryValueArgs args, CustomResourceOptions options)
    
    type: nutanix:CategoryValue
    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 CategoryValueArgs
    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 CategoryValueArgs
    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 CategoryValueArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CategoryValueArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CategoryValueArgs
    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 categoryValueResource = new Nutanix.CategoryValue("categoryValueResource", new()
    {
        Value = "string",
        Description = "string",
        Name = "string",
    });
    
    example, err := nutanix.NewCategoryValue(ctx, "categoryValueResource", &nutanix.CategoryValueArgs{
    	Value:       pulumi.String("string"),
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    })
    
    var categoryValueResource = new CategoryValue("categoryValueResource", CategoryValueArgs.builder()
        .value("string")
        .description("string")
        .name("string")
        .build());
    
    category_value_resource = nutanix.CategoryValue("categoryValueResource",
        value="string",
        description="string",
        name="string")
    
    const categoryValueResource = new nutanix.CategoryValue("categoryValueResource", {
        value: "string",
        description: "string",
        name: "string",
    });
    
    type: nutanix:CategoryValue
    properties:
        description: string
        name: string
        value: string
    

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

    Value string
    The value for the category value.
    Description string
    • (Optional) A description for category value.
    Name string
    • (Required) The category_key name for the category value.
    Value string
    The value for the category value.
    Description string
    • (Optional) A description for category value.
    Name string
    • (Required) The category_key name for the category value.
    value String
    The value for the category value.
    description String
    • (Optional) A description for category value.
    name String
    • (Required) The category_key name for the category value.
    value string
    The value for the category value.
    description string
    • (Optional) A description for category value.
    name string
    • (Required) The category_key name for the category value.
    value str
    The value for the category value.
    description str
    • (Optional) A description for category value.
    name str
    • (Required) The category_key name for the category value.
    value String
    The value for the category value.
    description String
    • (Optional) A description for category value.
    name String
    • (Required) The category_key name for the category value.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CategoryValue resource produces the following output properties:

    ApiVersion string
    (Optional) The version of the API.
    Id string
    The provider-assigned unique ID for this managed resource.
    SystemDefined bool
    • Specifying whether its a system defined category.
    ApiVersion string
    (Optional) The version of the API.
    Id string
    The provider-assigned unique ID for this managed resource.
    SystemDefined bool
    • Specifying whether its a system defined category.
    apiVersion String
    (Optional) The version of the API.
    id String
    The provider-assigned unique ID for this managed resource.
    systemDefined Boolean
    • Specifying whether its a system defined category.
    apiVersion string
    (Optional) The version of the API.
    id string
    The provider-assigned unique ID for this managed resource.
    systemDefined boolean
    • Specifying whether its a system defined category.
    api_version str
    (Optional) The version of the API.
    id str
    The provider-assigned unique ID for this managed resource.
    system_defined bool
    • Specifying whether its a system defined category.
    apiVersion String
    (Optional) The version of the API.
    id String
    The provider-assigned unique ID for this managed resource.
    systemDefined Boolean
    • Specifying whether its a system defined category.

    Look up Existing CategoryValue Resource

    Get an existing CategoryValue 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?: CategoryValueState, opts?: CustomResourceOptions): CategoryValue
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            api_version: Optional[str] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            system_defined: Optional[bool] = None,
            value: Optional[str] = None) -> CategoryValue
    func GetCategoryValue(ctx *Context, name string, id IDInput, state *CategoryValueState, opts ...ResourceOption) (*CategoryValue, error)
    public static CategoryValue Get(string name, Input<string> id, CategoryValueState? state, CustomResourceOptions? opts = null)
    public static CategoryValue get(String name, Output<String> id, CategoryValueState 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:
    ApiVersion string
    (Optional) The version of the API.
    Description string
    • (Optional) A description for category value.
    Name string
    • (Required) The category_key name for the category value.
    SystemDefined bool
    • Specifying whether its a system defined category.
    Value string
    The value for the category value.
    ApiVersion string
    (Optional) The version of the API.
    Description string
    • (Optional) A description for category value.
    Name string
    • (Required) The category_key name for the category value.
    SystemDefined bool
    • Specifying whether its a system defined category.
    Value string
    The value for the category value.
    apiVersion String
    (Optional) The version of the API.
    description String
    • (Optional) A description for category value.
    name String
    • (Required) The category_key name for the category value.
    systemDefined Boolean
    • Specifying whether its a system defined category.
    value String
    The value for the category value.
    apiVersion string
    (Optional) The version of the API.
    description string
    • (Optional) A description for category value.
    name string
    • (Required) The category_key name for the category value.
    systemDefined boolean
    • Specifying whether its a system defined category.
    value string
    The value for the category value.
    api_version str
    (Optional) The version of the API.
    description str
    • (Optional) A description for category value.
    name str
    • (Required) The category_key name for the category value.
    system_defined bool
    • Specifying whether its a system defined category.
    value str
    The value for the category value.
    apiVersion String
    (Optional) The version of the API.
    description String
    • (Optional) A description for category value.
    name String
    • (Required) The category_key name for the category value.
    systemDefined Boolean
    • Specifying whether its a system defined category.
    value String
    The value for the category value.

    Package Details

    Repository
    nutanix pierskarsenbarg/pulumi-nutanix
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the nutanix Terraform Provider.
    nutanix logo
    Nutanix v0.5.0 published on Monday, Nov 4, 2024 by Piers Karsenbarg