This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
getLogger.go
47 lines (42 loc) · 1.62 KB
/
getLogger.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
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package v20170301
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupLogger(ctx *pulumi.Context, args *LookupLoggerArgs, opts ...pulumi.InvokeOption) (*LookupLoggerResult, error) {
var rv LookupLoggerResult
err := ctx.Invoke("azure-nextgen:apimanagement/v20170301:getLogger", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupLoggerArgs struct {
// Logger identifier. Must be unique in the API Management service instance.
Loggerid string `pulumi:"loggerid"`
// The name of the resource group.
ResourceGroupName string `pulumi:"resourceGroupName"`
// The name of the API Management service.
ServiceName string `pulumi:"serviceName"`
}
// Logger details.
type LookupLoggerResult struct {
// The name and SendRule connection string of the event hub for azureEventHub logger.
// Instrumentation key for applicationInsights logger.
Credentials map[string]string `pulumi:"credentials"`
// Logger description.
Description *string `pulumi:"description"`
// Resource ID.
Id string `pulumi:"id"`
// Whether records are buffered in the logger before publishing. Default is assumed to be true.
IsBuffered *bool `pulumi:"isBuffered"`
// Logger type.
LoggerType string `pulumi:"loggerType"`
// Resource name.
Name string `pulumi:"name"`
// Sampling settings for an ApplicationInsights logger.
Sampling *LoggerSamplingContractResponse `pulumi:"sampling"`
// Resource type for API Management resource.
Type string `pulumi:"type"`
}