Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

getServiceIntegration

# Service Integration Data Source

The Service Integration data source provides information about the existing Aiven Service Integration.

Service Integration defines an integration between two Aiven services or between Aiven service and an external integration endpoint. Integration could be for example sending metrics from Kafka service to an InfluxDB service, getting metrics from an InfluxDB service to a Grafana service to show dashboards, sending logs from any service to Elasticsearch, etc.

Example Usage

using Pulumi;
using Aiven = Pulumi.Aiven;

class MyStack : Stack
{
    public MyStack()
    {
        var myintegration = Output.Create(Aiven.GetServiceIntegration.InvokeAsync(new Aiven.GetServiceIntegrationArgs
        {
            DestinationServiceName = "<DESTINATION_SERVICE_NAME>",
            IntegrationType = "datadog",
            Project = aiven_project.Myproject.Project,
            SourceServiceName = "<SOURCE_SERVICE_NAME>",
        }));
    }

}
package main

import (
    "github.com/pulumi/pulumi-aiven/sdk/v3/go/aiven"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := aiven.LookupServiceIntegration(ctx, &aiven.LookupServiceIntegrationArgs{
            DestinationServiceName: "<DESTINATION_SERVICE_NAME>",
            IntegrationType:        "datadog",
            Project:                aiven_project.Myproject.Project,
            SourceServiceName:      "<SOURCE_SERVICE_NAME>",
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aiven as aiven

myintegration = aiven.get_service_integration(destination_service_name="<DESTINATION_SERVICE_NAME>",
    integration_type="datadog",
    project=aiven_project["myproject"]["project"],
    source_service_name="<SOURCE_SERVICE_NAME>")
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";

const myintegration = aiven_project_myproject.project.apply(project => aiven.getServiceIntegration({
    destinationServiceName: "<DESTINATION_SERVICE_NAME>",
    integrationType: "datadog",
    project: project,
    sourceServiceName: "<SOURCE_SERVICE_NAME>",
}, { async: true }));

Using getServiceIntegration

function getServiceIntegration(args: GetServiceIntegrationArgs, opts?: InvokeOptions): Promise<GetServiceIntegrationResult>
def get_service_integration(dashboard_user_config: Optional[GetServiceIntegrationDashboardUserConfigArgs] = None, datadog_user_config: Optional[GetServiceIntegrationDatadogUserConfigArgs] = None, destination_endpoint_id: Optional[str] = None, destination_service_name: Optional[str] = None, external_aws_cloudwatch_logs_user_config: Optional[GetServiceIntegrationExternalAwsCloudwatchLogsUserConfigArgs] = None, external_elasticsearch_logs_user_config: Optional[GetServiceIntegrationExternalElasticsearchLogsUserConfigArgs] = None, external_google_cloud_logging_user_config: Optional[GetServiceIntegrationExternalGoogleCloudLoggingUserConfigArgs] = None, integration_type: Optional[str] = None, kafka_connect_user_config: Optional[GetServiceIntegrationKafkaConnectUserConfigArgs] = None, kafka_logs_user_config: Optional[GetServiceIntegrationKafkaLogsUserConfigArgs] = None, kafka_mirrormaker_user_config: Optional[GetServiceIntegrationKafkaMirrormakerUserConfigArgs] = None, logs_user_config: Optional[GetServiceIntegrationLogsUserConfigArgs] = None, m3aggregator_user_config: Optional[GetServiceIntegrationM3aggregatorUserConfigArgs] = None, m3coordinator_user_config: Optional[GetServiceIntegrationM3coordinatorUserConfigArgs] = None, metrics_user_config: Optional[GetServiceIntegrationMetricsUserConfigArgs] = None, mirrormaker_user_config: Optional[GetServiceIntegrationMirrormakerUserConfigArgs] = None, project: Optional[str] = None, prometheus_user_config: Optional[GetServiceIntegrationPrometheusUserConfigArgs] = None, read_replica_user_config: Optional[GetServiceIntegrationReadReplicaUserConfigArgs] = None, rsyslog_user_config: Optional[GetServiceIntegrationRsyslogUserConfigArgs] = None, schema_registry_proxy_user_config: Optional[GetServiceIntegrationSchemaRegistryProxyUserConfigArgs] = None, signalfx_user_config: Optional[GetServiceIntegrationSignalfxUserConfigArgs] = None, source_endpoint_id: Optional[str] = None, source_service_name: Optional[str] = None, opts: Optional[InvokeOptions] = None) -> GetServiceIntegrationResult
func LookupServiceIntegration(ctx *Context, args *LookupServiceIntegrationArgs, opts ...InvokeOption) (*LookupServiceIntegrationResult, error)

Note: This function is named LookupServiceIntegration in the Go SDK.

public static class GetServiceIntegration {
    public static Task<GetServiceIntegrationResult> InvokeAsync(GetServiceIntegrationArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

DestinationServiceName string

identifies the target side of the integration.

IntegrationType string

identifies the type of integration that is set up. Possible values include dashboard , datadog, logs, metrics and mirrormaker.

Project string

defines the project the integration belongs to.

SourceServiceName string

identifies the source side of the integration.

DashboardUserConfig GetServiceIntegrationDashboardUserConfigArgs
DatadogUserConfig GetServiceIntegrationDatadogUserConfigArgs
DestinationEndpointId string
ExternalAwsCloudwatchLogsUserConfig GetServiceIntegrationExternalAwsCloudwatchLogsUserConfigArgs
ExternalElasticsearchLogsUserConfig GetServiceIntegrationExternalElasticsearchLogsUserConfigArgs
ExternalGoogleCloudLoggingUserConfig GetServiceIntegrationExternalGoogleCloudLoggingUserConfigArgs
KafkaConnectUserConfig GetServiceIntegrationKafkaConnectUserConfigArgs
KafkaLogsUserConfig GetServiceIntegrationKafkaLogsUserConfigArgs
KafkaMirrormakerUserConfig GetServiceIntegrationKafkaMirrormakerUserConfigArgs
LogsUserConfig GetServiceIntegrationLogsUserConfigArgs
M3aggregatorUserConfig GetServiceIntegrationM3aggregatorUserConfigArgs
M3coordinatorUserConfig GetServiceIntegrationM3coordinatorUserConfigArgs
MetricsUserConfig GetServiceIntegrationMetricsUserConfigArgs
MirrormakerUserConfig GetServiceIntegrationMirrormakerUserConfigArgs
PrometheusUserConfig GetServiceIntegrationPrometheusUserConfigArgs
ReadReplicaUserConfig GetServiceIntegrationReadReplicaUserConfigArgs
RsyslogUserConfig GetServiceIntegrationRsyslogUserConfigArgs
SchemaRegistryProxyUserConfig GetServiceIntegrationSchemaRegistryProxyUserConfigArgs
SignalfxUserConfig GetServiceIntegrationSignalfxUserConfigArgs
SourceEndpointId string
DestinationServiceName string

identifies the target side of the integration.

IntegrationType string

identifies the type of integration that is set up. Possible values include dashboard , datadog, logs, metrics and mirrormaker.

Project string

defines the project the integration belongs to.

SourceServiceName string

identifies the source side of the integration.

DashboardUserConfig GetServiceIntegrationDashboardUserConfig
DatadogUserConfig GetServiceIntegrationDatadogUserConfig
DestinationEndpointId string
ExternalAwsCloudwatchLogsUserConfig GetServiceIntegrationExternalAwsCloudwatchLogsUserConfig
ExternalElasticsearchLogsUserConfig GetServiceIntegrationExternalElasticsearchLogsUserConfig
ExternalGoogleCloudLoggingUserConfig GetServiceIntegrationExternalGoogleCloudLoggingUserConfig
KafkaConnectUserConfig GetServiceIntegrationKafkaConnectUserConfig
KafkaLogsUserConfig GetServiceIntegrationKafkaLogsUserConfig
KafkaMirrormakerUserConfig GetServiceIntegrationKafkaMirrormakerUserConfig
LogsUserConfig GetServiceIntegrationLogsUserConfig
M3aggregatorUserConfig GetServiceIntegrationM3aggregatorUserConfig
M3coordinatorUserConfig GetServiceIntegrationM3coordinatorUserConfig
MetricsUserConfig GetServiceIntegrationMetricsUserConfig
MirrormakerUserConfig GetServiceIntegrationMirrormakerUserConfig
PrometheusUserConfig GetServiceIntegrationPrometheusUserConfig
ReadReplicaUserConfig GetServiceIntegrationReadReplicaUserConfig
RsyslogUserConfig GetServiceIntegrationRsyslogUserConfig
SchemaRegistryProxyUserConfig GetServiceIntegrationSchemaRegistryProxyUserConfig
SignalfxUserConfig GetServiceIntegrationSignalfxUserConfig
SourceEndpointId string
destinationServiceName string

identifies the target side of the integration.

integrationType string

identifies the type of integration that is set up. Possible values include dashboard , datadog, logs, metrics and mirrormaker.

project string

defines the project the integration belongs to.

sourceServiceName string

identifies the source side of the integration.

dashboardUserConfig GetServiceIntegrationDashboardUserConfig
datadogUserConfig GetServiceIntegrationDatadogUserConfig
destinationEndpointId string
externalAwsCloudwatchLogsUserConfig GetServiceIntegrationExternalAwsCloudwatchLogsUserConfig
externalElasticsearchLogsUserConfig GetServiceIntegrationExternalElasticsearchLogsUserConfig
externalGoogleCloudLoggingUserConfig GetServiceIntegrationExternalGoogleCloudLoggingUserConfig
kafkaConnectUserConfig GetServiceIntegrationKafkaConnectUserConfig
kafkaLogsUserConfig GetServiceIntegrationKafkaLogsUserConfig
kafkaMirrormakerUserConfig GetServiceIntegrationKafkaMirrormakerUserConfig
logsUserConfig GetServiceIntegrationLogsUserConfig
m3aggregatorUserConfig GetServiceIntegrationM3aggregatorUserConfig
m3coordinatorUserConfig GetServiceIntegrationM3coordinatorUserConfig
metricsUserConfig GetServiceIntegrationMetricsUserConfig
mirrormakerUserConfig GetServiceIntegrationMirrormakerUserConfig
prometheusUserConfig GetServiceIntegrationPrometheusUserConfig
readReplicaUserConfig GetServiceIntegrationReadReplicaUserConfig
rsyslogUserConfig GetServiceIntegrationRsyslogUserConfig
schemaRegistryProxyUserConfig GetServiceIntegrationSchemaRegistryProxyUserConfig
signalfxUserConfig GetServiceIntegrationSignalfxUserConfig
sourceEndpointId string
destination_service_name str

identifies the target side of the integration.

integration_type str

identifies the type of integration that is set up. Possible values include dashboard , datadog, logs, metrics and mirrormaker.

project str

defines the project the integration belongs to.

source_service_name str

identifies the source side of the integration.

dashboard_user_config GetServiceIntegrationDashboardUserConfigArgs
datadog_user_config GetServiceIntegrationDatadogUserConfigArgs
destination_endpoint_id str
external_aws_cloudwatch_logs_user_config GetServiceIntegrationExternalAwsCloudwatchLogsUserConfigArgs
external_elasticsearch_logs_user_config GetServiceIntegrationExternalElasticsearchLogsUserConfigArgs
external_google_cloud_logging_user_config GetServiceIntegrationExternalGoogleCloudLoggingUserConfigArgs
kafka_connect_user_config GetServiceIntegrationKafkaConnectUserConfigArgs
kafka_logs_user_config GetServiceIntegrationKafkaLogsUserConfigArgs
kafka_mirrormaker_user_config GetServiceIntegrationKafkaMirrormakerUserConfigArgs
logs_user_config GetServiceIntegrationLogsUserConfigArgs
m3aggregator_user_config GetServiceIntegrationM3aggregatorUserConfigArgs
m3coordinator_user_config GetServiceIntegrationM3coordinatorUserConfigArgs
metrics_user_config GetServiceIntegrationMetricsUserConfigArgs
mirrormaker_user_config GetServiceIntegrationMirrormakerUserConfigArgs
prometheus_user_config GetServiceIntegrationPrometheusUserConfigArgs
read_replica_user_config GetServiceIntegrationReadReplicaUserConfigArgs
rsyslog_user_config GetServiceIntegrationRsyslogUserConfigArgs
schema_registry_proxy_user_config GetServiceIntegrationSchemaRegistryProxyUserConfigArgs
signalfx_user_config GetServiceIntegrationSignalfxUserConfigArgs
source_endpoint_id str

getServiceIntegration Result

The following output properties are available:

DestinationServiceName string
Id string

The provider-assigned unique ID for this managed resource.

IntegrationType string
Project string
SourceServiceName string
DashboardUserConfig GetServiceIntegrationDashboardUserConfig
DatadogUserConfig GetServiceIntegrationDatadogUserConfig
DestinationEndpointId string
ExternalAwsCloudwatchLogsUserConfig GetServiceIntegrationExternalAwsCloudwatchLogsUserConfig
ExternalElasticsearchLogsUserConfig GetServiceIntegrationExternalElasticsearchLogsUserConfig
ExternalGoogleCloudLoggingUserConfig GetServiceIntegrationExternalGoogleCloudLoggingUserConfig
KafkaConnectUserConfig GetServiceIntegrationKafkaConnectUserConfig
KafkaLogsUserConfig GetServiceIntegrationKafkaLogsUserConfig
KafkaMirrormakerUserConfig GetServiceIntegrationKafkaMirrormakerUserConfig
LogsUserConfig GetServiceIntegrationLogsUserConfig
M3aggregatorUserConfig GetServiceIntegrationM3aggregatorUserConfig
M3coordinatorUserConfig GetServiceIntegrationM3coordinatorUserConfig
MetricsUserConfig GetServiceIntegrationMetricsUserConfig
MirrormakerUserConfig GetServiceIntegrationMirrormakerUserConfig
PrometheusUserConfig GetServiceIntegrationPrometheusUserConfig
ReadReplicaUserConfig GetServiceIntegrationReadReplicaUserConfig
RsyslogUserConfig GetServiceIntegrationRsyslogUserConfig
SchemaRegistryProxyUserConfig GetServiceIntegrationSchemaRegistryProxyUserConfig
SignalfxUserConfig GetServiceIntegrationSignalfxUserConfig
SourceEndpointId string
DestinationServiceName string
Id string

The provider-assigned unique ID for this managed resource.

IntegrationType string
Project string
SourceServiceName string
DashboardUserConfig GetServiceIntegrationDashboardUserConfig
DatadogUserConfig GetServiceIntegrationDatadogUserConfig
DestinationEndpointId string
ExternalAwsCloudwatchLogsUserConfig GetServiceIntegrationExternalAwsCloudwatchLogsUserConfig
ExternalElasticsearchLogsUserConfig GetServiceIntegrationExternalElasticsearchLogsUserConfig
ExternalGoogleCloudLoggingUserConfig GetServiceIntegrationExternalGoogleCloudLoggingUserConfig
KafkaConnectUserConfig GetServiceIntegrationKafkaConnectUserConfig
KafkaLogsUserConfig GetServiceIntegrationKafkaLogsUserConfig
KafkaMirrormakerUserConfig GetServiceIntegrationKafkaMirrormakerUserConfig
LogsUserConfig GetServiceIntegrationLogsUserConfig
M3aggregatorUserConfig GetServiceIntegrationM3aggregatorUserConfig
M3coordinatorUserConfig GetServiceIntegrationM3coordinatorUserConfig
MetricsUserConfig GetServiceIntegrationMetricsUserConfig
MirrormakerUserConfig GetServiceIntegrationMirrormakerUserConfig
PrometheusUserConfig GetServiceIntegrationPrometheusUserConfig
ReadReplicaUserConfig GetServiceIntegrationReadReplicaUserConfig
RsyslogUserConfig GetServiceIntegrationRsyslogUserConfig
SchemaRegistryProxyUserConfig GetServiceIntegrationSchemaRegistryProxyUserConfig
SignalfxUserConfig GetServiceIntegrationSignalfxUserConfig
SourceEndpointId string
destinationServiceName string
id string

The provider-assigned unique ID for this managed resource.

integrationType string
project string
sourceServiceName string
dashboardUserConfig GetServiceIntegrationDashboardUserConfig
datadogUserConfig GetServiceIntegrationDatadogUserConfig
destinationEndpointId string
externalAwsCloudwatchLogsUserConfig GetServiceIntegrationExternalAwsCloudwatchLogsUserConfig
externalElasticsearchLogsUserConfig GetServiceIntegrationExternalElasticsearchLogsUserConfig
externalGoogleCloudLoggingUserConfig GetServiceIntegrationExternalGoogleCloudLoggingUserConfig
kafkaConnectUserConfig GetServiceIntegrationKafkaConnectUserConfig
kafkaLogsUserConfig GetServiceIntegrationKafkaLogsUserConfig
kafkaMirrormakerUserConfig GetServiceIntegrationKafkaMirrormakerUserConfig
logsUserConfig GetServiceIntegrationLogsUserConfig
m3aggregatorUserConfig GetServiceIntegrationM3aggregatorUserConfig
m3coordinatorUserConfig GetServiceIntegrationM3coordinatorUserConfig
metricsUserConfig GetServiceIntegrationMetricsUserConfig
mirrormakerUserConfig GetServiceIntegrationMirrormakerUserConfig
prometheusUserConfig GetServiceIntegrationPrometheusUserConfig
readReplicaUserConfig GetServiceIntegrationReadReplicaUserConfig
rsyslogUserConfig GetServiceIntegrationRsyslogUserConfig
schemaRegistryProxyUserConfig GetServiceIntegrationSchemaRegistryProxyUserConfig
signalfxUserConfig GetServiceIntegrationSignalfxUserConfig
sourceEndpointId string
destination_service_name str
id str

The provider-assigned unique ID for this managed resource.

integration_type str
project str
source_service_name str
dashboard_user_config GetServiceIntegrationDashboardUserConfig
datadog_user_config GetServiceIntegrationDatadogUserConfig
destination_endpoint_id str
external_aws_cloudwatch_logs_user_config GetServiceIntegrationExternalAwsCloudwatchLogsUserConfig
external_elasticsearch_logs_user_config GetServiceIntegrationExternalElasticsearchLogsUserConfig
external_google_cloud_logging_user_config GetServiceIntegrationExternalGoogleCloudLoggingUserConfig
kafka_connect_user_config GetServiceIntegrationKafkaConnectUserConfig
kafka_logs_user_config GetServiceIntegrationKafkaLogsUserConfig
kafka_mirrormaker_user_config GetServiceIntegrationKafkaMirrormakerUserConfig
logs_user_config GetServiceIntegrationLogsUserConfig
m3aggregator_user_config GetServiceIntegrationM3aggregatorUserConfig
m3coordinator_user_config GetServiceIntegrationM3coordinatorUserConfig
metrics_user_config GetServiceIntegrationMetricsUserConfig
mirrormaker_user_config GetServiceIntegrationMirrormakerUserConfig
prometheus_user_config GetServiceIntegrationPrometheusUserConfig
read_replica_user_config GetServiceIntegrationReadReplicaUserConfig
rsyslog_user_config GetServiceIntegrationRsyslogUserConfig
schema_registry_proxy_user_config GetServiceIntegrationSchemaRegistryProxyUserConfig
signalfx_user_config GetServiceIntegrationSignalfxUserConfig
source_endpoint_id str

Supporting Types

GetServiceIntegrationDatadogUserConfig

ExcludeConsumerGroups List<string>
ExcludeTopics List<string>
IncludeConsumerGroups List<string>
IncludeTopics List<string>
KafkaCustomMetrics List<string>
exclude_consumer_groups Sequence[str]
exclude_topics Sequence[str]
include_consumer_groups Sequence[str]
include_topics Sequence[str]
kafka_custom_metrics Sequence[str]

GetServiceIntegrationKafkaConnectUserConfig

GetServiceIntegrationKafkaConnectUserConfigKafkaConnect

GetServiceIntegrationKafkaLogsUserConfig

KafkaTopic string
KafkaTopic string
kafkaTopic string

GetServiceIntegrationKafkaMirrormakerUserConfig

GetServiceIntegrationLogsUserConfig

GetServiceIntegrationMetricsUserConfig

GetServiceIntegrationMetricsUserConfigSourceMysql

GetServiceIntegrationMetricsUserConfigSourceMysqlTelegraf

GetServiceIntegrationMirrormakerUserConfig

GetServiceIntegrationPrometheusUserConfig

GetServiceIntegrationPrometheusUserConfigSourceMysql

GetServiceIntegrationPrometheusUserConfigSourceMysqlTelegraf

Package Details

Repository
https://github.com/pulumi/pulumi-aiven
License
Apache-2.0
Notes
This Pulumi package is based on the aiven Terraform Provider.