Logger

Manages a Logger within an API Management Service.

Create a Logger Resource

new Logger(name: string, args: LoggerArgs, opts?: CustomResourceOptions);
def Logger(resource_name, opts=None, api_management_name=None, application_insights=None, buffered=None, description=None, eventhub=None, name=None, resource_group_name=None, __props__=None);
func NewLogger(ctx *Context, name string, args LoggerArgs, opts ...ResourceOption) (*Logger, error)
public Logger(string name, LoggerArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args LoggerArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args LoggerArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args LoggerArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Logger Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The Logger resource accepts the following input properties:

ApiManagementName string

The name of the API Management Service. Changing this forces a new resource to be created.

ResourceGroupName string

The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.

ApplicationInsights LoggerApplicationInsightsArgs

An application_insights block as documented below.

Buffered bool

Specifies whether records should be buffered in the Logger prior to publishing. Defaults to true.

Description string

A description of this Logger.

Eventhub LoggerEventhubArgs

An eventhub block as documented below.

Name string

The name of this Logger, which must be unique within the API Management Service. Changing this forces a new resource to be created.

ApiManagementName string

The name of the API Management Service. Changing this forces a new resource to be created.

ResourceGroupName string

The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.

ApplicationInsights LoggerApplicationInsights

An application_insights block as documented below.

Buffered bool

Specifies whether records should be buffered in the Logger prior to publishing. Defaults to true.

Description string

A description of this Logger.

Eventhub LoggerEventhub

An eventhub block as documented below.

Name string

The name of this Logger, which must be unique within the API Management Service. Changing this forces a new resource to be created.

apiManagementName string

The name of the API Management Service. Changing this forces a new resource to be created.

resourceGroupName string

The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.

applicationInsights LoggerApplicationInsights

An application_insights block as documented below.

buffered boolean

Specifies whether records should be buffered in the Logger prior to publishing. Defaults to true.

description string

A description of this Logger.

eventhub LoggerEventhub

An eventhub block as documented below.

name string

The name of this Logger, which must be unique within the API Management Service. Changing this forces a new resource to be created.

api_management_name str

The name of the API Management Service. Changing this forces a new resource to be created.

resource_group_name str

The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.

application_insights Dict[LoggerApplicationInsights]

An application_insights block as documented below.

buffered bool

Specifies whether records should be buffered in the Logger prior to publishing. Defaults to true.

description str

A description of this Logger.

eventhub Dict[LoggerEventhub]

An eventhub block as documented below.

name str

The name of this Logger, which must be unique within the API Management Service. Changing this forces a new resource to be created.

Outputs

All input properties are implicitly available as output properties. Additionally, the Logger 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 str
The provider-assigned unique ID for this managed resource.

Look up an Existing Logger Resource

Get an existing Logger 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?: LoggerState, opts?: CustomResourceOptions): Logger
static get(resource_name, id, opts=None, api_management_name=None, application_insights=None, buffered=None, description=None, eventhub=None, name=None, resource_group_name=None, __props__=None);
func GetLogger(ctx *Context, name string, id IDInput, state *LoggerState, opts ...ResourceOption) (*Logger, error)
public static Logger Get(string name, Input<string> id, LoggerState? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

ApiManagementName string

The name of the API Management Service. Changing this forces a new resource to be created.

ApplicationInsights LoggerApplicationInsightsArgs

An application_insights block as documented below.

Buffered bool

Specifies whether records should be buffered in the Logger prior to publishing. Defaults to true.

Description string

A description of this Logger.

Eventhub LoggerEventhubArgs

An eventhub block as documented below.

Name string

The name of this Logger, which must be unique within the API Management Service. Changing this forces a new resource to be created.

ResourceGroupName string

The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.

ApiManagementName string

The name of the API Management Service. Changing this forces a new resource to be created.

ApplicationInsights LoggerApplicationInsights

An application_insights block as documented below.

Buffered bool

Specifies whether records should be buffered in the Logger prior to publishing. Defaults to true.

Description string

A description of this Logger.

Eventhub LoggerEventhub

An eventhub block as documented below.

Name string

The name of this Logger, which must be unique within the API Management Service. Changing this forces a new resource to be created.

ResourceGroupName string

The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.

apiManagementName string

The name of the API Management Service. Changing this forces a new resource to be created.

applicationInsights LoggerApplicationInsights

An application_insights block as documented below.

buffered boolean

Specifies whether records should be buffered in the Logger prior to publishing. Defaults to true.

description string

A description of this Logger.

eventhub LoggerEventhub

An eventhub block as documented below.

name string

The name of this Logger, which must be unique within the API Management Service. Changing this forces a new resource to be created.

resourceGroupName string

The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.

api_management_name str

The name of the API Management Service. Changing this forces a new resource to be created.

application_insights Dict[LoggerApplicationInsights]

An application_insights block as documented below.

buffered bool

Specifies whether records should be buffered in the Logger prior to publishing. Defaults to true.

description str

A description of this Logger.

eventhub Dict[LoggerEventhub]

An eventhub block as documented below.

name str

The name of this Logger, which must be unique within the API Management Service. Changing this forces a new resource to be created.

resource_group_name str

The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.

Supporting Types

LoggerApplicationInsights

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

InstrumentationKey string

The instrumentation key used to push data to Application Insights.

InstrumentationKey string

The instrumentation key used to push data to Application Insights.

instrumentationKey string

The instrumentation key used to push data to Application Insights.

instrumentation_key str

The instrumentation key used to push data to Application Insights.

LoggerEventhub

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

ConnectionString string

The connection string of an EventHub Namespace.

Name string

The name of an EventHub.

ConnectionString string

The connection string of an EventHub Namespace.

Name string

The name of an EventHub.

connectionString string

The connection string of an EventHub Namespace.

name string

The name of an EventHub.

connection_string str

The connection string of an EventHub Namespace.

name str

The name of an EventHub.

Package Details

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