labd / terraform-provider-amplience

Terraform provider for Amplience
https://registry.terraform.io/providers/labd/amplience/latest
Mozilla Public License 2.0
7 stars 4 forks source link

Resource: Content type #6

Closed qdegraaf closed 1 year ago

qdegraaf commented 3 years ago

Adds Content Type resource to the provider.

Content Types are JSON schemas that define a type of content to be created including structure, format and validation. For more info see https://amplience.com/docs/integration/contenttypes.html

Example

resource "amplience_content_type" "test_type" {
  content_type_uri = "http://www.example.com/content-type.json"
  settings {
    label = "test_settings"

    icon {
      size = 12
      url  = "http://www.example.com"
    }
    icon {
      size = 34
      url  = "http://www.google.com"
    }

    visualization {
      label         = "label_1"
      templated_uri = "http://www.example.com"
      default       = false
    }
    visualization {
      label         = "label_2"
      templated_uri = "http://www.google.com"
      default       = true
    }
  }
}
qdegraaf commented 3 years ago

Halting further work on this until Resource: Content Type Schemas is merged

demeyerthom commented 1 year ago

Closing, has been added a while ago: https://github.com/labd/terraform-provider-amplience/blob/main/amplience/resource_content_type.go