/
getServiceIntegrationEndpoint.go
66 lines (61 loc) · 3.51 KB
/
getServiceIntegrationEndpoint.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package aiven
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
// ## Example Usage
//
// ```go
// package main
//
// import (
// "github.com/pulumi/pulumi-aiven/sdk/v2/go/aiven"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := aiven.LookupServiceIntegrationEndpoint(ctx, &aiven.LookupServiceIntegrationEndpointArgs{
// Project: data.Aiven_project.Myproject.Project,
// EndpointName: "<ENDPOINT_NAME>",
// }, nil)
// if err != nil {
// return err
// }
// return nil
// })
// }
// ```
func LookupServiceIntegrationEndpoint(ctx *pulumi.Context, args *LookupServiceIntegrationEndpointArgs, opts ...pulumi.InvokeOption) (*LookupServiceIntegrationEndpointResult, error) {
var rv LookupServiceIntegrationEndpointResult
err := ctx.Invoke("aiven:index/getServiceIntegrationEndpoint:getServiceIntegrationEndpoint", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getServiceIntegrationEndpoint.
type LookupServiceIntegrationEndpointArgs struct {
DatadogUserConfig *GetServiceIntegrationEndpointDatadogUserConfig `pulumi:"datadogUserConfig"`
EndpointConfig map[string]string `pulumi:"endpointConfig"`
EndpointName string `pulumi:"endpointName"`
EndpointType *string `pulumi:"endpointType"`
ExternalElasticsearchLogsUserConfig *GetServiceIntegrationEndpointExternalElasticsearchLogsUserConfig `pulumi:"externalElasticsearchLogsUserConfig"`
Project string `pulumi:"project"`
PrometheusUserConfig *GetServiceIntegrationEndpointPrometheusUserConfig `pulumi:"prometheusUserConfig"`
RsyslogUserConfig *GetServiceIntegrationEndpointRsyslogUserConfig `pulumi:"rsyslogUserConfig"`
}
// A collection of values returned by getServiceIntegrationEndpoint.
type LookupServiceIntegrationEndpointResult struct {
DatadogUserConfig *GetServiceIntegrationEndpointDatadogUserConfig `pulumi:"datadogUserConfig"`
EndpointConfig map[string]string `pulumi:"endpointConfig"`
EndpointName string `pulumi:"endpointName"`
EndpointType *string `pulumi:"endpointType"`
ExternalElasticsearchLogsUserConfig *GetServiceIntegrationEndpointExternalElasticsearchLogsUserConfig `pulumi:"externalElasticsearchLogsUserConfig"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
Project string `pulumi:"project"`
PrometheusUserConfig *GetServiceIntegrationEndpointPrometheusUserConfig `pulumi:"prometheusUserConfig"`
RsyslogUserConfig *GetServiceIntegrationEndpointRsyslogUserConfig `pulumi:"rsyslogUserConfig"`
}