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());
}
}
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
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)
type: commercetools:Type
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 TypeArgs
- 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 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 string
- The unique name of the resource.
- args TypeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TypeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
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"),
})
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());
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")
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",
});
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
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 string
- Identifier for the type (max. 256 characters)
- Name Dictionary<string, string>
- LocalizedString
- Resource
Type List<string>Ids - Defines for which resources the type is valid
- Description Dictionary<string, string>
- LocalizedString
- Fields
List<Type
Field> - Field definition
- Type
Id string - The ID of this resource.
- Key string
- Identifier for the type (max. 256 characters)
- Name map[string]string
- LocalizedString
- Resource
Type []stringIds - Defines for which resources the type is valid
- Description map[string]string
- LocalizedString
- Fields
[]Type
Field Args - Field definition
- Type
Id string - The ID of this resource.
- key String
- Identifier for the type (max. 256 characters)
- name Map<String,String>
- LocalizedString
- resource
Type List<String>Ids - Defines for which resources the type is valid
- description Map<String,String>
- LocalizedString
- fields
List<Type
Field> - Field definition
- type
Id String - The ID of this resource.
- key string
- Identifier for the type (max. 256 characters)
- name {[key: string]: string}
- LocalizedString
- resource
Type string[]Ids - Defines for which resources the type is valid
- description {[key: string]: string}
- LocalizedString
- fields
Type
Field[] - Field definition
- type
Id string - The ID of this resource.
- key str
- Identifier for the type (max. 256 characters)
- name Mapping[str, str]
- LocalizedString
- resource_
type_ Sequence[str]ids - Defines for which resources the type is valid
- description Mapping[str, str]
- LocalizedString
- fields
Sequence[Type
Field Args] - Field definition
- type_
id str - The ID of this resource.
- key String
- Identifier for the type (max. 256 characters)
- name Map<String>
- LocalizedString
- resource
Type List<String>Ids - Defines for which resources the type is valid
- description Map<String>
- LocalizedString
- fields List<Property Map>
- Field definition
- type
Id 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:
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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Description Dictionary<string, string>
- LocalizedString
- Fields
List<Type
Field> - Field definition
- Key string
- Identifier for the type (max. 256 characters)
- Name Dictionary<string, string>
- LocalizedString
- Resource
Type List<string>Ids - Defines for which resources the type is valid
- Type
Id string - The ID of this resource.
- Version double
- Description map[string]string
- LocalizedString
- Fields
[]Type
Field Args - Field definition
- Key string
- Identifier for the type (max. 256 characters)
- Name map[string]string
- LocalizedString
- Resource
Type []stringIds - Defines for which resources the type is valid
- Type
Id string - The ID of this resource.
- Version float64
- description Map<String,String>
- LocalizedString
- fields
List<Type
Field> - Field definition
- key String
- Identifier for the type (max. 256 characters)
- name Map<String,String>
- LocalizedString
- resource
Type List<String>Ids - Defines for which resources the type is valid
- type
Id String - The ID of this resource.
- version Double
- description {[key: string]: string}
- LocalizedString
- fields
Type
Field[] - Field definition
- key string
- Identifier for the type (max. 256 characters)
- name {[key: string]: string}
- LocalizedString
- resource
Type string[]Ids - Defines for which resources the type is valid
- type
Id string - The ID of this resource.
- version number
- description Mapping[str, str]
- LocalizedString
- fields
Sequence[Type
Field Args] - Field definition
- key str
- Identifier for the type (max. 256 characters)
- name Mapping[str, str]
- LocalizedString
- resource_
type_ Sequence[str]ids - 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
- resource
Type List<String>Ids - Defines for which resources the type is valid
- type
Id String - The ID of this resource.
- version Number
Supporting Types
TypeField, TypeFieldArgs
- Label Dictionary<string, string>
- A human-readable label for the field
- Name 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
Type
Field Type - Describes the type of the field
- Input
Hint 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 map[string]string
- A human-readable label for the field
- Name 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
Type
Field Type - Describes the type of the field
- Input
Hint 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 Map<String,String>
- A human-readable label for the field
- name 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
Type
Field Type - Describes the type of the field
- input
Hint 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 {[key: string]: string}
- A human-readable label for the field
- name 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
Type
Field Type - Describes the type of the field
- input
Hint 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 Mapping[str, str]
- A human-readable label for the field
- name 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
Type
Field Type - 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 Map<String>
- A human-readable label for the field
- name 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 Property Map
- Describes the type of the field
- input
Hint 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 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.
- Element
Type TypeField Type Element Type - Localized
Values List<TypeField Type Localized Value> - Localized values for the
lenum
type. - Reference
Type stringId - Resource type the Custom Field can reference. Required when type is
Reference
- Values
List<Type
Field Type Value> - Values for the
enum
type.
- Name 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.
- Element
Type TypeField Type Element Type - Localized
Values []TypeField Type Localized Value - Localized values for the
lenum
type. - Reference
Type stringId - Resource type the Custom Field can reference. Required when type is
Reference
- Values
[]Type
Field Type Value - Values for the
enum
type.
- name 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.
- element
Type TypeField Type Element Type - localized
Values List<TypeField Type Localized Value> - Localized values for the
lenum
type. - reference
Type StringId - Resource type the Custom Field can reference. Required when type is
Reference
- values
List<Type
Field Type Value> - Values for the
enum
type.
- name 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.
- element
Type TypeField Type Element Type - localized
Values TypeField Type Localized Value[] - Localized values for the
lenum
type. - reference
Type stringId - Resource type the Custom Field can reference. Required when type is
Reference
- values
Type
Field Type Value[] - Values for the
enum
type.
- name 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 TypeField Type Element Type - localized_
values Sequence[TypeField Type Localized Value] - Localized values for the
lenum
type. - reference_
type_ strid - Resource type the Custom Field can reference. Required when type is
Reference
- values
Sequence[Type
Field Type Value] - Values for the
enum
type.
- name 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.
- element
Type Property Map - localized
Values List<Property Map> - Localized values for the
lenum
type. - reference
Type StringId - Resource type the Custom Field can reference. Required when type is
Reference
- values List<Property Map>
- Values for the
enum
type.
TypeFieldTypeElementType, TypeFieldTypeElementTypeArgs
- Name 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.
- Localized
Values List<TypeField Type Element Type Localized Value> - Localized values for the
lenum
type. - Reference
Type stringId - Resource type the Custom Field can reference. Required when type is
Reference
- Values
List<Type
Field Type Element Type Value> - Values for the
enum
type.
- Name 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.
- Localized
Values []TypeField Type Element Type Localized Value - Localized values for the
lenum
type. - Reference
Type stringId - Resource type the Custom Field can reference. Required when type is
Reference
- Values
[]Type
Field Type Element Type Value - Values for the
enum
type.
- name 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.
- localized
Values List<TypeField Type Element Type Localized Value> - Localized values for the
lenum
type. - reference
Type StringId - Resource type the Custom Field can reference. Required when type is
Reference
- values
List<Type
Field Type Element Type Value> - Values for the
enum
type.
- name 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.
- localized
Values TypeField Type Element Type Localized Value[] - Localized values for the
lenum
type. - reference
Type stringId - Resource type the Custom Field can reference. Required when type is
Reference
- values
Type
Field Type Element Type Value[] - Values for the
enum
type.
- name 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[TypeField Type Element Type Localized Value] - Localized values for the
lenum
type. - reference_
type_ strid - Resource type the Custom Field can reference. Required when type is
Reference
- values
Sequence[Type
Field Type Element Type Value] - Values for the
enum
type.
- name 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.
- localized
Values List<Property Map> - Localized values for the
lenum
type. - reference
Type StringId - Resource type the Custom Field can reference. Required when type is
Reference
- values List<Property Map>
- Values for the
enum
type.
TypeFieldTypeElementTypeLocalizedValue, TypeFieldTypeElementTypeLocalizedValueArgs
TypeFieldTypeElementTypeValue, TypeFieldTypeElementTypeValueArgs
TypeFieldTypeLocalizedValue, TypeFieldTypeLocalizedValueArgs
TypeFieldTypeValue, TypeFieldTypeValueArgs
Package Details
- Repository
- commercetools labd/terraform-provider-commercetools
- License
- Notes
- This Pulumi package is based on the
commercetools
Terraform Provider.