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:
- Api
Management stringName The name of the API Management Service. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.
- Application
Insights LoggerApplication Insights Args An
application_insightsblock 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
Logger
Eventhub Args An
eventhubblock 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 stringName The name of the API Management Service. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.
- Application
Insights LoggerApplication Insights An
application_insightsblock 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
Logger
Eventhub An
eventhubblock 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 stringName The name of the API Management Service. Changing this forces a new resource to be created.
- resource
Group stringName The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.
- application
Insights LoggerApplication Insights An
application_insightsblock 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
Logger
Eventhub An
eventhubblock 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_ strname The name of the API Management Service. Changing this forces a new resource to be created.
- resource_
group_ strname 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[LoggerApplication Insights] An
application_insightsblock 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[Logger
Eventhub] An
eventhubblock 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:
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): Loggerstatic 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:
- Api
Management stringName The name of the API Management Service. Changing this forces a new resource to be created.
- Application
Insights LoggerApplication Insights Args An
application_insightsblock 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
Logger
Eventhub Args An
eventhubblock 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.
- Resource
Group stringName The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.
- Api
Management stringName The name of the API Management Service. Changing this forces a new resource to be created.
- Application
Insights LoggerApplication Insights An
application_insightsblock 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
Logger
Eventhub An
eventhubblock 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.
- Resource
Group stringName The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.
- api
Management stringName The name of the API Management Service. Changing this forces a new resource to be created.
- application
Insights LoggerApplication Insights An
application_insightsblock 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
Logger
Eventhub An
eventhubblock 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.
- resource
Group stringName The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.
- api_
management_ strname The name of the API Management Service. Changing this forces a new resource to be created.
- application_
insights Dict[LoggerApplication Insights] An
application_insightsblock 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[Logger
Eventhub] An
eventhubblock 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_ strname 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
- Instrumentation
Key string The instrumentation key used to push data to Application Insights.
- Instrumentation
Key string The instrumentation key used to push data to Application Insights.
- instrumentation
Key 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
- Connection
String string The connection string of an EventHub Namespace.
- Name string
The name of an EventHub.
- Connection
String string The connection string of an EventHub Namespace.
- Name string
The name of an EventHub.
- connection
String 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
azurermTerraform Provider.