integration

package
v2.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IntegrationResourceMarkdownDescription = `

# Integration resource

**NOTE:** This resource manages existing integration and integration mappings, not for creating new integrations.

Docs about integrations can be found [here](https://docs.getport.io/integrations-index/).

Docs about how to import existing integrations and manage their mappings can be found [here](https://docs.getport.io/guides/all/import-and-manage-integration).


` + "```hcl" + `
resource "port_integration" "my_custom_integration" {
	installation_id       = "my-custom-integration-id"
	title                 = "My Custom Integration"
	config = jsonencode({
		createMissingRelatedEntitiesboolean = true
		deleteDependentEntities = true,
		resources = [{
			kind = "my-custom-kind"
			selector = {
				query = ".title"
			}
			port = {
				entity = {
					mappings = [{
						identifier = "'my-identifier'"
						title      = ".title"
						blueprint  = "'my-blueprint'"
						properties = {
							my_property = 123
						}
						relations  = {}
					}]
				}
			}
		}]
	})
}


` + "```\n" + `
### NOTICE:

The following config properties (` + "`selector.query|entity.mappings.*`" + `) are jq expressions, which means that you need to input either a valid jq expression (E.g ` + "`.title`" + `), or if you want a string value, a qouted escaped string val (E.g ` + "`'my-string'`" + `).
`

Functions

func IntegrationSchema

func IntegrationSchema() map[string]schema.Attribute

func NewIntegrationResource

func NewIntegrationResource() resource.Resource

Types

type IntegrationModel

type IntegrationModel struct {
	ID                          types.String                      `tfsdk:"id"`
	InstallationId              types.String                      `tfsdk:"installation_id"`
	InstallationAppType         types.String                      `tfsdk:"installation_app_type"`
	Title                       types.String                      `tfsdk:"title"`
	Version                     types.String                      `tfsdk:"version"`
	Config                      types.String                      `tfsdk:"config"`
	KafkaChangelogDestination   types.Object                      `tfsdk:"kafka_changelog_destination"`
	WebhookChangelogDestination *WebhookChangelogDestinationModel `tfsdk:"webhook_changelog_destination"`
}

type IntegrationResource

type IntegrationResource struct {
	// contains filtered or unexported fields
}

func (*IntegrationResource) Configure

func (*IntegrationResource) Create

func (*IntegrationResource) Delete

func (*IntegrationResource) ImportState

func (*IntegrationResource) Metadata

func (*IntegrationResource) Read

func (*IntegrationResource) Schema

func (*IntegrationResource) Update

type WebhookChangelogDestinationModel

type WebhookChangelogDestinationModel struct {
	Url   types.String `tfsdk:"url"`
	Agent types.Bool   `tfsdk:"agent"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL