Create Integration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Integration(name: string, args: IntegrationArgs, opts?: CustomResourceOptions);@overload
def Integration(resource_name: str,
args: IntegrationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Integration(resource_name: str,
opts: Optional[ResourceOptions] = None,
installation_id: Optional[str] = None,
config: Optional[str] = None,
installation_app_type: Optional[str] = None,
kafka_changelog_destination: Optional[IntegrationKafkaChangelogDestinationArgs] = None,
title: Optional[str] = None,
version: Optional[str] = None,
webhook_changelog_destination: Optional[IntegrationWebhookChangelogDestinationArgs] = None)func NewIntegration(ctx *Context, name string, args IntegrationArgs, opts ...ResourceOption) (*Integration, error)public Integration(string name, IntegrationArgs args, CustomResourceOptions? opts = null)
public Integration(String name, IntegrationArgs args)
public Integration(String name, IntegrationArgs args, CustomResourceOptions options)
type: port:Integration
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 IntegrationArgs
- 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 IntegrationArgs
- 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 IntegrationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IntegrationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IntegrationArgs
- 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 integrationResource = new Port.Integration("integrationResource", new()
{
InstallationId = "string",
Config = "string",
InstallationAppType = "string",
KafkaChangelogDestination = null,
Title = "string",
Version = "string",
WebhookChangelogDestination = new Port.Inputs.IntegrationWebhookChangelogDestinationArgs
{
Url = "string",
Agent = false,
},
});
example, err := port.NewIntegration(ctx, "integrationResource", &port.IntegrationArgs{
InstallationId: pulumi.String("string"),
Config: pulumi.String("string"),
InstallationAppType: pulumi.String("string"),
KafkaChangelogDestination: &port.IntegrationKafkaChangelogDestinationArgs{},
Title: pulumi.String("string"),
Version: pulumi.String("string"),
WebhookChangelogDestination: &port.IntegrationWebhookChangelogDestinationArgs{
Url: pulumi.String("string"),
Agent: pulumi.Bool(false),
},
})
var integrationResource = new Integration("integrationResource", IntegrationArgs.builder()
.installationId("string")
.config("string")
.installationAppType("string")
.kafkaChangelogDestination(IntegrationKafkaChangelogDestinationArgs.builder()
.build())
.title("string")
.version("string")
.webhookChangelogDestination(IntegrationWebhookChangelogDestinationArgs.builder()
.url("string")
.agent(false)
.build())
.build());
integration_resource = port.Integration("integrationResource",
installation_id="string",
config="string",
installation_app_type="string",
kafka_changelog_destination={},
title="string",
version="string",
webhook_changelog_destination={
"url": "string",
"agent": False,
})
const integrationResource = new port.Integration("integrationResource", {
installationId: "string",
config: "string",
installationAppType: "string",
kafkaChangelogDestination: {},
title: "string",
version: "string",
webhookChangelogDestination: {
url: "string",
agent: false,
},
});
type: port:Integration
properties:
config: string
installationAppType: string
installationId: string
kafkaChangelogDestination: {}
title: string
version: string
webhookChangelogDestination:
agent: false
url: string
Integration 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 Integration resource accepts the following input properties:
- Installation
Id string - The installation ID of the integration. Must contain only lowercase letters, numbers, and dashes (pattern:
^[a-z0-9-]+$). - Config string
- Integration Config Raw JSON string (use
jsonencode) - Installation
App stringType - Kafka
Changelog port_Destination labs. Port. Inputs. Integration Kafka Changelog Destination - The changelog destination of the blueprint (just an empty
{}) - Title string
- Version string
- Webhook
Changelog port_Destination labs. Port. Inputs. Integration Webhook Changelog Destination - The webhook changelog destination of the integration
- Installation
Id string - The installation ID of the integration. Must contain only lowercase letters, numbers, and dashes (pattern:
^[a-z0-9-]+$). - Config string
- Integration Config Raw JSON string (use
jsonencode) - Installation
App stringType - Kafka
Changelog IntegrationDestination Kafka Changelog Destination Args - The changelog destination of the blueprint (just an empty
{}) - Title string
- Version string
- Webhook
Changelog IntegrationDestination Webhook Changelog Destination Args - The webhook changelog destination of the integration
- installation
Id String - The installation ID of the integration. Must contain only lowercase letters, numbers, and dashes (pattern:
^[a-z0-9-]+$). - config String
- Integration Config Raw JSON string (use
jsonencode) - installation
App StringType - kafka
Changelog IntegrationDestination Kafka Changelog Destination - The changelog destination of the blueprint (just an empty
{}) - title String
- version String
- webhook
Changelog IntegrationDestination Webhook Changelog Destination - The webhook changelog destination of the integration
- installation
Id string - The installation ID of the integration. Must contain only lowercase letters, numbers, and dashes (pattern:
^[a-z0-9-]+$). - config string
- Integration Config Raw JSON string (use
jsonencode) - installation
App stringType - kafka
Changelog IntegrationDestination Kafka Changelog Destination - The changelog destination of the blueprint (just an empty
{}) - title string
- version string
- webhook
Changelog IntegrationDestination Webhook Changelog Destination - The webhook changelog destination of the integration
- installation_
id str - The installation ID of the integration. Must contain only lowercase letters, numbers, and dashes (pattern:
^[a-z0-9-]+$). - config str
- Integration Config Raw JSON string (use
jsonencode) - installation_
app_ strtype - kafka_
changelog_ Integrationdestination Kafka Changelog Destination Args - The changelog destination of the blueprint (just an empty
{}) - title str
- version str
- webhook_
changelog_ Integrationdestination Webhook Changelog Destination Args - The webhook changelog destination of the integration
- installation
Id String - The installation ID of the integration. Must contain only lowercase letters, numbers, and dashes (pattern:
^[a-z0-9-]+$). - config String
- Integration Config Raw JSON string (use
jsonencode) - installation
App StringType - kafka
Changelog Property MapDestination - The changelog destination of the blueprint (just an empty
{}) - title String
- version String
- webhook
Changelog Property MapDestination - The webhook changelog destination of the integration
Outputs
All input properties are implicitly available as output properties. Additionally, the Integration resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Integration Resource
Get an existing Integration 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?: IntegrationState, opts?: CustomResourceOptions): Integration@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
config: Optional[str] = None,
installation_app_type: Optional[str] = None,
installation_id: Optional[str] = None,
kafka_changelog_destination: Optional[IntegrationKafkaChangelogDestinationArgs] = None,
title: Optional[str] = None,
version: Optional[str] = None,
webhook_changelog_destination: Optional[IntegrationWebhookChangelogDestinationArgs] = None) -> Integrationfunc GetIntegration(ctx *Context, name string, id IDInput, state *IntegrationState, opts ...ResourceOption) (*Integration, error)public static Integration Get(string name, Input<string> id, IntegrationState? state, CustomResourceOptions? opts = null)public static Integration get(String name, Output<String> id, IntegrationState state, CustomResourceOptions options)resources: _: type: port:Integration 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.
- Config string
- Integration Config Raw JSON string (use
jsonencode) - Installation
App stringType - Installation
Id string - The installation ID of the integration. Must contain only lowercase letters, numbers, and dashes (pattern:
^[a-z0-9-]+$). - Kafka
Changelog port_Destination labs. Port. Inputs. Integration Kafka Changelog Destination - The changelog destination of the blueprint (just an empty
{}) - Title string
- Version string
- Webhook
Changelog port_Destination labs. Port. Inputs. Integration Webhook Changelog Destination - The webhook changelog destination of the integration
- Config string
- Integration Config Raw JSON string (use
jsonencode) - Installation
App stringType - Installation
Id string - The installation ID of the integration. Must contain only lowercase letters, numbers, and dashes (pattern:
^[a-z0-9-]+$). - Kafka
Changelog IntegrationDestination Kafka Changelog Destination Args - The changelog destination of the blueprint (just an empty
{}) - Title string
- Version string
- Webhook
Changelog IntegrationDestination Webhook Changelog Destination Args - The webhook changelog destination of the integration
- config String
- Integration Config Raw JSON string (use
jsonencode) - installation
App StringType - installation
Id String - The installation ID of the integration. Must contain only lowercase letters, numbers, and dashes (pattern:
^[a-z0-9-]+$). - kafka
Changelog IntegrationDestination Kafka Changelog Destination - The changelog destination of the blueprint (just an empty
{}) - title String
- version String
- webhook
Changelog IntegrationDestination Webhook Changelog Destination - The webhook changelog destination of the integration
- config string
- Integration Config Raw JSON string (use
jsonencode) - installation
App stringType - installation
Id string - The installation ID of the integration. Must contain only lowercase letters, numbers, and dashes (pattern:
^[a-z0-9-]+$). - kafka
Changelog IntegrationDestination Kafka Changelog Destination - The changelog destination of the blueprint (just an empty
{}) - title string
- version string
- webhook
Changelog IntegrationDestination Webhook Changelog Destination - The webhook changelog destination of the integration
- config str
- Integration Config Raw JSON string (use
jsonencode) - installation_
app_ strtype - installation_
id str - The installation ID of the integration. Must contain only lowercase letters, numbers, and dashes (pattern:
^[a-z0-9-]+$). - kafka_
changelog_ Integrationdestination Kafka Changelog Destination Args - The changelog destination of the blueprint (just an empty
{}) - title str
- version str
- webhook_
changelog_ Integrationdestination Webhook Changelog Destination Args - The webhook changelog destination of the integration
- config String
- Integration Config Raw JSON string (use
jsonencode) - installation
App StringType - installation
Id String - The installation ID of the integration. Must contain only lowercase letters, numbers, and dashes (pattern:
^[a-z0-9-]+$). - kafka
Changelog Property MapDestination - The changelog destination of the blueprint (just an empty
{}) - title String
- version String
- webhook
Changelog Property MapDestination - The webhook changelog destination of the integration
Supporting Types
IntegrationWebhookChangelogDestination, IntegrationWebhookChangelogDestinationArgs
Package Details
- Repository
- port port-labs/pulumi-port
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
port-labsTerraform Provider.
