1. Packages
  2. Commercetools Provider
  3. API Docs
  4. Type
commercetools 1.19.3 published on Friday, Apr 4, 2025 by labd

commercetools.Type

Explore with Pulumi AI

Types define custom fields that are used to enhance resources as you need. Use Types to model your own CustomFields on resources, like Category and Customer.

In case you want to customize products, please use product types instead that serve a similar purpose, but tailored to products.

See also the Types Api Documentation

Example Usage

Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.commercetools.Type;
import com.pulumi.commercetools.TypeArgs;
import com.pulumi.commercetools.inputs.TypeFieldArgs;
import com.pulumi.commercetools.inputs.TypeFieldTypeArgs;
import com.pulumi.commercetools.inputs.TypeFieldTypeElementTypeArgs;
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 my_custom_type = new Type("my-custom-type", TypeArgs.builder()
            .description(Map.ofEntries(
                Map.entry("en", "All things related communication"),
                Map.entry("nl", "Alle communicatie-gerelateerde zaken")
            ))
            .fields(            
                TypeFieldArgs.builder()
                    .label(Map.ofEntries(
                        Map.entry("en", "Skype name"),
                        Map.entry("nl", "Skype naam")
                    ))
                    .name("skype_name")
                    .type(TypeFieldTypeArgs.builder()
                        .name("String")
                        .build())
                    .build(),
                TypeFieldArgs.builder()
                    .label(Map.ofEntries(
                        Map.entry("en", "Contact time"),
                        Map.entry("nl", "Contact tijd")
                    ))
                    .name("contact_time")
                    .type(TypeFieldTypeArgs.builder()
                        .name("Enum")
                        .value(                        
                            %!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
                            %!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
                        .build())
                    .build(),
                TypeFieldArgs.builder()
                    .label(Map.ofEntries(
                        Map.entry("en", "Emails"),
                        Map.entry("nl", "Emails")
                    ))
                    .name("emails")
                    .type(TypeFieldTypeArgs.builder()
                        .elementType(TypeFieldTypeElementTypeArgs.builder()
                            .name("String")
                            .build())
                        .name("Set")
                        .build())
                    .build(),
                TypeFieldArgs.builder()
                    .label(Map.ofEntries(
                        Map.entry("en", "Contact preference"),
                        Map.entry("nl", "Contact voorkeur")
                    ))
                    .name("contact_preference")
                    .type(TypeFieldTypeArgs.builder()
                        .localizedValue(                        
                            %!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
                            %!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
                        .name("LocalizedEnum")
                        .build())
                    .build())
            .key("my-custom-type")
            .name(Map.ofEntries(
                Map.entry("en", "Contact info"),
                Map.entry("nl", "Contact informatie")
            ))
            .resourceTypeIds("customer")
            .build());

    }
}
Copy
resources:
  my-custom-type:
    type: commercetools:Type
    properties:
      description:
        en: All things related communication
        nl: Alle communicatie-gerelateerde zaken
      fields:
        - label:
            en: Skype name
            nl: Skype naam
          name: skype_name
          type:
            name: String
        - label:
            en: Contact time
            nl: Contact tijd
          name: contact_time
          type:
            name: Enum
            value:
              - key: day
                label: Daytime
              - key: evening
                label: Evening
        - label:
            en: Emails
            nl: Emails
          name: emails
          type:
            elementType:
              name: String
            name: Set
        - label:
            en: Contact preference
            nl: Contact voorkeur
          name: contact_preference
          type:
            localizedValue:
              - key: phone
                label:
                  en: Phone
                  nl: Telefoon
              - key: skype
                label:
                  en: Skype
                  nl: Skype
            name: LocalizedEnum
      key: my-custom-type
      name:
        en: Contact info
        nl: Contact informatie
      resourceTypeIds:
        - customer
Copy

Create Type Resource

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

Constructor syntax

new Type(name: string, args: TypeArgs, opts?: CustomResourceOptions);
@overload
def Type(resource_name: str,
         args: TypeArgs,
         opts: Optional[ResourceOptions] = None)

@overload
def Type(resource_name: str,
         opts: Optional[ResourceOptions] = None,
         key: Optional[str] = None,
         name: Optional[Mapping[str, str]] = None,
         resource_type_ids: Optional[Sequence[str]] = None,
         description: Optional[Mapping[str, str]] = None,
         fields: Optional[Sequence[TypeFieldArgs]] = None,
         type_id: Optional[str] = None)
func NewType(ctx *Context, name string, args TypeArgs, opts ...ResourceOption) (*Type, error)
public Type(string name, TypeArgs args, CustomResourceOptions? opts = null)
public Type(String name, TypeArgs args)
public Type(String name, TypeArgs args, CustomResourceOptions options)
type: commercetools:Type
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. TypeArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. TypeArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. TypeArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. TypeArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. TypeArgs
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 typeResource = new Commercetools.Type("typeResource", new()
{
    Key = "string",
    Name = 
    {
        { "string", "string" },
    },
    ResourceTypeIds = new[]
    {
        "string",
    },
    Description = 
    {
        { "string", "string" },
    },
    Fields = new[]
    {
        new Commercetools.Inputs.TypeFieldArgs
        {
            Label = 
            {
                { "string", "string" },
            },
            Name = "string",
            Type = new Commercetools.Inputs.TypeFieldTypeArgs
            {
                Name = "string",
                ElementType = new Commercetools.Inputs.TypeFieldTypeElementTypeArgs
                {
                    Name = "string",
                    LocalizedValues = new[]
                    {
                        new Commercetools.Inputs.TypeFieldTypeElementTypeLocalizedValueArgs
                        {
                            Key = "string",
                            Label = 
                            {
                                { "string", "string" },
                            },
                        },
                    },
                    ReferenceTypeId = "string",
                    Values = new[]
                    {
                        new Commercetools.Inputs.TypeFieldTypeElementTypeValueArgs
                        {
                            Key = "string",
                            Label = "string",
                        },
                    },
                },
                LocalizedValues = new[]
                {
                    new Commercetools.Inputs.TypeFieldTypeLocalizedValueArgs
                    {
                        Key = "string",
                        Label = 
                        {
                            { "string", "string" },
                        },
                    },
                },
                ReferenceTypeId = "string",
                Values = new[]
                {
                    new Commercetools.Inputs.TypeFieldTypeValueArgs
                    {
                        Key = "string",
                        Label = "string",
                    },
                },
            },
            InputHint = "string",
            Required = false,
        },
    },
    TypeId = "string",
});
Copy
example, err := commercetools.NewType(ctx, "typeResource", &commercetools.TypeArgs{
Key: pulumi.String("string"),
Name: pulumi.StringMap{
"string": pulumi.String("string"),
},
ResourceTypeIds: pulumi.StringArray{
pulumi.String("string"),
},
Description: pulumi.StringMap{
"string": pulumi.String("string"),
},
Fields: .TypeFieldArray{
&.TypeFieldArgs{
Label: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
Type: &.TypeFieldTypeArgs{
Name: pulumi.String("string"),
ElementType: &.TypeFieldTypeElementTypeArgs{
Name: pulumi.String("string"),
LocalizedValues: .TypeFieldTypeElementTypeLocalizedValueArray{
&.TypeFieldTypeElementTypeLocalizedValueArgs{
Key: pulumi.String("string"),
Label: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
},
ReferenceTypeId: pulumi.String("string"),
Values: .TypeFieldTypeElementTypeValueArray{
&.TypeFieldTypeElementTypeValueArgs{
Key: pulumi.String("string"),
Label: pulumi.String("string"),
},
},
},
LocalizedValues: .TypeFieldTypeLocalizedValueArray{
&.TypeFieldTypeLocalizedValueArgs{
Key: pulumi.String("string"),
Label: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
},
ReferenceTypeId: pulumi.String("string"),
Values: .TypeFieldTypeValueArray{
&.TypeFieldTypeValueArgs{
Key: pulumi.String("string"),
Label: pulumi.String("string"),
},
},
},
InputHint: pulumi.String("string"),
Required: pulumi.Bool(false),
},
},
TypeId: pulumi.String("string"),
})
Copy
var typeResource = new Type("typeResource", TypeArgs.builder()
    .key("string")
    .name(Map.of("string", "string"))
    .resourceTypeIds("string")
    .description(Map.of("string", "string"))
    .fields(TypeFieldArgs.builder()
        .label(Map.of("string", "string"))
        .name("string")
        .type(TypeFieldTypeArgs.builder()
            .name("string")
            .elementType(TypeFieldTypeElementTypeArgs.builder()
                .name("string")
                .localizedValues(TypeFieldTypeElementTypeLocalizedValueArgs.builder()
                    .key("string")
                    .label(Map.of("string", "string"))
                    .build())
                .referenceTypeId("string")
                .values(TypeFieldTypeElementTypeValueArgs.builder()
                    .key("string")
                    .label("string")
                    .build())
                .build())
            .localizedValues(TypeFieldTypeLocalizedValueArgs.builder()
                .key("string")
                .label(Map.of("string", "string"))
                .build())
            .referenceTypeId("string")
            .values(TypeFieldTypeValueArgs.builder()
                .key("string")
                .label("string")
                .build())
            .build())
        .inputHint("string")
        .required(false)
        .build())
    .typeId("string")
    .build());
Copy
type_resource = commercetools.Type("typeResource",
    key="string",
    name={
        "string": "string",
    },
    resource_type_ids=["string"],
    description={
        "string": "string",
    },
    fields=[{
        "label": {
            "string": "string",
        },
        "name": "string",
        "type": {
            "name": "string",
            "element_type": {
                "name": "string",
                "localized_values": [{
                    "key": "string",
                    "label": {
                        "string": "string",
                    },
                }],
                "reference_type_id": "string",
                "values": [{
                    "key": "string",
                    "label": "string",
                }],
            },
            "localized_values": [{
                "key": "string",
                "label": {
                    "string": "string",
                },
            }],
            "reference_type_id": "string",
            "values": [{
                "key": "string",
                "label": "string",
            }],
        },
        "input_hint": "string",
        "required": False,
    }],
    type_id="string")
Copy
const typeResource = new commercetools.Type("typeResource", {
    key: "string",
    name: {
        string: "string",
    },
    resourceTypeIds: ["string"],
    description: {
        string: "string",
    },
    fields: [{
        label: {
            string: "string",
        },
        name: "string",
        type: {
            name: "string",
            elementType: {
                name: "string",
                localizedValues: [{
                    key: "string",
                    label: {
                        string: "string",
                    },
                }],
                referenceTypeId: "string",
                values: [{
                    key: "string",
                    label: "string",
                }],
            },
            localizedValues: [{
                key: "string",
                label: {
                    string: "string",
                },
            }],
            referenceTypeId: "string",
            values: [{
                key: "string",
                label: "string",
            }],
        },
        inputHint: "string",
        required: false,
    }],
    typeId: "string",
});
Copy
type: commercetools:Type
properties:
    description:
        string: string
    fields:
        - inputHint: string
          label:
            string: string
          name: string
          required: false
          type:
            elementType:
                localizedValues:
                    - key: string
                      label:
                        string: string
                name: string
                referenceTypeId: string
                values:
                    - key: string
                      label: string
            localizedValues:
                - key: string
                  label:
                    string: string
            name: string
            referenceTypeId: string
            values:
                - key: string
                  label: string
    key: string
    name:
        string: string
    resourceTypeIds:
        - string
    typeId: string
Copy

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

Key This property is required. string
Identifier for the type (max. 256 characters)
Name This property is required. Dictionary<string, string>
LocalizedString
ResourceTypeIds This property is required. List<string>
Defines for which resources the type is valid
Description Dictionary<string, string>
LocalizedString
Fields List<TypeField>
Field definition
TypeId string
The ID of this resource.
Key This property is required. string
Identifier for the type (max. 256 characters)
Name This property is required. map[string]string
LocalizedString
ResourceTypeIds This property is required. []string
Defines for which resources the type is valid
Description map[string]string
LocalizedString
Fields []TypeFieldArgs
Field definition
TypeId string
The ID of this resource.
key This property is required. String
Identifier for the type (max. 256 characters)
name This property is required. Map<String,String>
LocalizedString
resourceTypeIds This property is required. List<String>
Defines for which resources the type is valid
description Map<String,String>
LocalizedString
fields List<TypeField>
Field definition
typeId String
The ID of this resource.
key This property is required. string
Identifier for the type (max. 256 characters)
name This property is required. {[key: string]: string}
LocalizedString
resourceTypeIds This property is required. string[]
Defines for which resources the type is valid
description {[key: string]: string}
LocalizedString
fields TypeField[]
Field definition
typeId string
The ID of this resource.
key This property is required. str
Identifier for the type (max. 256 characters)
name This property is required. Mapping[str, str]
LocalizedString
resource_type_ids This property is required. Sequence[str]
Defines for which resources the type is valid
description Mapping[str, str]
LocalizedString
fields Sequence[TypeFieldArgs]
Field definition
type_id str
The ID of this resource.
key This property is required. String
Identifier for the type (max. 256 characters)
name This property is required. Map<String>
LocalizedString
resourceTypeIds This property is required. List<String>
Defines for which resources the type is valid
description Map<String>
LocalizedString
fields List<Property Map>
Field definition
typeId String
The ID of this resource.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Version double
Id string
The provider-assigned unique ID for this managed resource.
Version float64
id String
The provider-assigned unique ID for this managed resource.
version Double
id string
The provider-assigned unique ID for this managed resource.
version number
id str
The provider-assigned unique ID for this managed resource.
version float
id String
The provider-assigned unique ID for this managed resource.
version Number

Look up Existing Type Resource

Get an existing Type 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?: TypeState, opts?: CustomResourceOptions): Type
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[Mapping[str, str]] = None,
        fields: Optional[Sequence[TypeFieldArgs]] = None,
        key: Optional[str] = None,
        name: Optional[Mapping[str, str]] = None,
        resource_type_ids: Optional[Sequence[str]] = None,
        type_id: Optional[str] = None,
        version: Optional[float] = None) -> Type
func GetType(ctx *Context, name string, id IDInput, state *TypeState, opts ...ResourceOption) (*Type, error)
public static Type Get(string name, Input<string> id, TypeState? state, CustomResourceOptions? opts = null)
public static Type get(String name, Output<String> id, TypeState state, CustomResourceOptions options)
resources:  _:    type: commercetools:Type    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Description Dictionary<string, string>
LocalizedString
Fields List<TypeField>
Field definition
Key string
Identifier for the type (max. 256 characters)
Name Dictionary<string, string>
LocalizedString
ResourceTypeIds List<string>
Defines for which resources the type is valid
TypeId string
The ID of this resource.
Version double
Description map[string]string
LocalizedString
Fields []TypeFieldArgs
Field definition
Key string
Identifier for the type (max. 256 characters)
Name map[string]string
LocalizedString
ResourceTypeIds []string
Defines for which resources the type is valid
TypeId string
The ID of this resource.
Version float64
description Map<String,String>
LocalizedString
fields List<TypeField>
Field definition
key String
Identifier for the type (max. 256 characters)
name Map<String,String>
LocalizedString
resourceTypeIds List<String>
Defines for which resources the type is valid
typeId String
The ID of this resource.
version Double
description {[key: string]: string}
LocalizedString
fields TypeField[]
Field definition
key string
Identifier for the type (max. 256 characters)
name {[key: string]: string}
LocalizedString
resourceTypeIds string[]
Defines for which resources the type is valid
typeId string
The ID of this resource.
version number
description Mapping[str, str]
LocalizedString
fields Sequence[TypeFieldArgs]
Field definition
key str
Identifier for the type (max. 256 characters)
name Mapping[str, str]
LocalizedString
resource_type_ids Sequence[str]
Defines for which resources the type is valid
type_id str
The ID of this resource.
version float
description Map<String>
LocalizedString
fields List<Property Map>
Field definition
key String
Identifier for the type (max. 256 characters)
name Map<String>
LocalizedString
resourceTypeIds List<String>
Defines for which resources the type is valid
typeId String
The ID of this resource.
version Number

Supporting Types

TypeField
, TypeFieldArgs

Label This property is required. Dictionary<string, string>
A human-readable label for the field
Name This property is required. string
The name of the field. The name must be between two and 36 characters long and can contain the ASCII letters A to Z in lowercase or uppercase, digits, underscores (_) and the hyphen-minus (-). The name must be unique for a given resource type ID. In case there is a field with the same name in another type it has to have the same FieldType also
Type This property is required. TypeFieldType
Describes the type of the field
InputHint string
TextInputHint Provides a visual representation type for this field. It is only relevant for string-based field types like StringType and LocalizedStringType
Required bool
Whether the field is required to have a value
Label This property is required. map[string]string
A human-readable label for the field
Name This property is required. string
The name of the field. The name must be between two and 36 characters long and can contain the ASCII letters A to Z in lowercase or uppercase, digits, underscores (_) and the hyphen-minus (-). The name must be unique for a given resource type ID. In case there is a field with the same name in another type it has to have the same FieldType also
Type This property is required. TypeFieldType
Describes the type of the field
InputHint string
TextInputHint Provides a visual representation type for this field. It is only relevant for string-based field types like StringType and LocalizedStringType
Required bool
Whether the field is required to have a value
label This property is required. Map<String,String>
A human-readable label for the field
name This property is required. String
The name of the field. The name must be between two and 36 characters long and can contain the ASCII letters A to Z in lowercase or uppercase, digits, underscores (_) and the hyphen-minus (-). The name must be unique for a given resource type ID. In case there is a field with the same name in another type it has to have the same FieldType also
type This property is required. TypeFieldType
Describes the type of the field
inputHint String
TextInputHint Provides a visual representation type for this field. It is only relevant for string-based field types like StringType and LocalizedStringType
required Boolean
Whether the field is required to have a value
label This property is required. {[key: string]: string}
A human-readable label for the field
name This property is required. string
The name of the field. The name must be between two and 36 characters long and can contain the ASCII letters A to Z in lowercase or uppercase, digits, underscores (_) and the hyphen-minus (-). The name must be unique for a given resource type ID. In case there is a field with the same name in another type it has to have the same FieldType also
type This property is required. TypeFieldType
Describes the type of the field
inputHint string
TextInputHint Provides a visual representation type for this field. It is only relevant for string-based field types like StringType and LocalizedStringType
required boolean
Whether the field is required to have a value
label This property is required. Mapping[str, str]
A human-readable label for the field
name This property is required. str
The name of the field. The name must be between two and 36 characters long and can contain the ASCII letters A to Z in lowercase or uppercase, digits, underscores (_) and the hyphen-minus (-). The name must be unique for a given resource type ID. In case there is a field with the same name in another type it has to have the same FieldType also
type This property is required. TypeFieldType
Describes the type of the field
input_hint str
TextInputHint Provides a visual representation type for this field. It is only relevant for string-based field types like StringType and LocalizedStringType
required bool
Whether the field is required to have a value
label This property is required. Map<String>
A human-readable label for the field
name This property is required. String
The name of the field. The name must be between two and 36 characters long and can contain the ASCII letters A to Z in lowercase or uppercase, digits, underscores (_) and the hyphen-minus (-). The name must be unique for a given resource type ID. In case there is a field with the same name in another type it has to have the same FieldType also
type This property is required. Property Map
Describes the type of the field
inputHint String
TextInputHint Provides a visual representation type for this field. It is only relevant for string-based field types like StringType and LocalizedStringType
required Boolean
Whether the field is required to have a value

TypeFieldType
, TypeFieldTypeArgs

Name This property is required. string
Name of the field type. Some types require extra fields to be set. Note that changing the type after creating is not supported. You need to delete the attribute and re-add it.
ElementType TypeFieldTypeElementType
LocalizedValues List<TypeFieldTypeLocalizedValue>
Localized values for the lenum type.
ReferenceTypeId string
Resource type the Custom Field can reference. Required when type is Reference
Values List<TypeFieldTypeValue>
Values for the enum type.
Name This property is required. string
Name of the field type. Some types require extra fields to be set. Note that changing the type after creating is not supported. You need to delete the attribute and re-add it.
ElementType TypeFieldTypeElementType
LocalizedValues []TypeFieldTypeLocalizedValue
Localized values for the lenum type.
ReferenceTypeId string
Resource type the Custom Field can reference. Required when type is Reference
Values []TypeFieldTypeValue
Values for the enum type.
name This property is required. String
Name of the field type. Some types require extra fields to be set. Note that changing the type after creating is not supported. You need to delete the attribute and re-add it.
elementType TypeFieldTypeElementType
localizedValues List<TypeFieldTypeLocalizedValue>
Localized values for the lenum type.
referenceTypeId String
Resource type the Custom Field can reference. Required when type is Reference
values List<TypeFieldTypeValue>
Values for the enum type.
name This property is required. string
Name of the field type. Some types require extra fields to be set. Note that changing the type after creating is not supported. You need to delete the attribute and re-add it.
elementType TypeFieldTypeElementType
localizedValues TypeFieldTypeLocalizedValue[]
Localized values for the lenum type.
referenceTypeId string
Resource type the Custom Field can reference. Required when type is Reference
values TypeFieldTypeValue[]
Values for the enum type.
name This property is required. str
Name of the field type. Some types require extra fields to be set. Note that changing the type after creating is not supported. You need to delete the attribute and re-add it.
element_type TypeFieldTypeElementType
localized_values Sequence[TypeFieldTypeLocalizedValue]
Localized values for the lenum type.
reference_type_id str
Resource type the Custom Field can reference. Required when type is Reference
values Sequence[TypeFieldTypeValue]
Values for the enum type.
name This property is required. String
Name of the field type. Some types require extra fields to be set. Note that changing the type after creating is not supported. You need to delete the attribute and re-add it.
elementType Property Map
localizedValues List<Property Map>
Localized values for the lenum type.
referenceTypeId String
Resource type the Custom Field can reference. Required when type is Reference
values List<Property Map>
Values for the enum type.

TypeFieldTypeElementType
, TypeFieldTypeElementTypeArgs

Name This property is required. string
Name of the field type. Some types require extra fields to be set. Note that changing the type after creating is not supported. You need to delete the attribute and re-add it.
LocalizedValues List<TypeFieldTypeElementTypeLocalizedValue>
Localized values for the lenum type.
ReferenceTypeId string
Resource type the Custom Field can reference. Required when type is Reference
Values List<TypeFieldTypeElementTypeValue>
Values for the enum type.
Name This property is required. string
Name of the field type. Some types require extra fields to be set. Note that changing the type after creating is not supported. You need to delete the attribute and re-add it.
LocalizedValues []TypeFieldTypeElementTypeLocalizedValue
Localized values for the lenum type.
ReferenceTypeId string
Resource type the Custom Field can reference. Required when type is Reference
Values []TypeFieldTypeElementTypeValue
Values for the enum type.
name This property is required. String
Name of the field type. Some types require extra fields to be set. Note that changing the type after creating is not supported. You need to delete the attribute and re-add it.
localizedValues List<TypeFieldTypeElementTypeLocalizedValue>
Localized values for the lenum type.
referenceTypeId String
Resource type the Custom Field can reference. Required when type is Reference
values List<TypeFieldTypeElementTypeValue>
Values for the enum type.
name This property is required. string
Name of the field type. Some types require extra fields to be set. Note that changing the type after creating is not supported. You need to delete the attribute and re-add it.
localizedValues TypeFieldTypeElementTypeLocalizedValue[]
Localized values for the lenum type.
referenceTypeId string
Resource type the Custom Field can reference. Required when type is Reference
values TypeFieldTypeElementTypeValue[]
Values for the enum type.
name This property is required. str
Name of the field type. Some types require extra fields to be set. Note that changing the type after creating is not supported. You need to delete the attribute and re-add it.
localized_values Sequence[TypeFieldTypeElementTypeLocalizedValue]
Localized values for the lenum type.
reference_type_id str
Resource type the Custom Field can reference. Required when type is Reference
values Sequence[TypeFieldTypeElementTypeValue]
Values for the enum type.
name This property is required. String
Name of the field type. Some types require extra fields to be set. Note that changing the type after creating is not supported. You need to delete the attribute and re-add it.
localizedValues List<Property Map>
Localized values for the lenum type.
referenceTypeId String
Resource type the Custom Field can reference. Required when type is Reference
values List<Property Map>
Values for the enum type.

TypeFieldTypeElementTypeLocalizedValue
, TypeFieldTypeElementTypeLocalizedValueArgs

Key This property is required. string
Label This property is required. Dictionary<string, string>
Key This property is required. string
Label This property is required. map[string]string
key This property is required. String
label This property is required. Map<String,String>
key This property is required. string
label This property is required. {[key: string]: string}
key This property is required. str
label This property is required. Mapping[str, str]
key This property is required. String
label This property is required. Map<String>

TypeFieldTypeElementTypeValue
, TypeFieldTypeElementTypeValueArgs

Key This property is required. string
Label This property is required. string
Key This property is required. string
Label This property is required. string
key This property is required. String
label This property is required. String
key This property is required. string
label This property is required. string
key This property is required. str
label This property is required. str
key This property is required. String
label This property is required. String

TypeFieldTypeLocalizedValue
, TypeFieldTypeLocalizedValueArgs

Key This property is required. string
Label This property is required. Dictionary<string, string>
Key This property is required. string
Label This property is required. map[string]string
key This property is required. String
label This property is required. Map<String,String>
key This property is required. string
label This property is required. {[key: string]: string}
key This property is required. str
label This property is required. Mapping[str, str]
key This property is required. String
label This property is required. Map<String>

TypeFieldTypeValue
, TypeFieldTypeValueArgs

Key This property is required. string
Label This property is required. string
Key This property is required. string
Label This property is required. string
key This property is required. String
label This property is required. String
key This property is required. string
label This property is required. string
key This property is required. str
label This property is required. str
key This property is required. String
label This property is required. String

Package Details

Repository
commercetools labd/terraform-provider-commercetools
License
Notes
This Pulumi package is based on the commercetools Terraform Provider.