Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azure.apimanagement;
import com.pulumi.azure.Utilities;
import com.pulumi.azure.apimanagement.ApiDiagnosticArgs;
import com.pulumi.azure.apimanagement.inputs.ApiDiagnosticState;
import com.pulumi.azure.apimanagement.outputs.ApiDiagnosticBackendRequest;
import com.pulumi.azure.apimanagement.outputs.ApiDiagnosticBackendResponse;
import com.pulumi.azure.apimanagement.outputs.ApiDiagnosticFrontendRequest;
import com.pulumi.azure.apimanagement.outputs.ApiDiagnosticFrontendResponse;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Boolean;
import java.lang.Double;
import java.lang.String;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Manages a API Management Service API Diagnostics Logs.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* API Management Service API Diagnostics Logs can be imported using the `resource id`, e.g.
*
* ```sh
* $ pulumi import azure:apimanagement/apiDiagnostic:ApiDiagnostic example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.ApiManagement/service/instance1/apis/api1/diagnostics/diagnostic1
* ```
*
*/
@ResourceType(type="azure:apimanagement/apiDiagnostic:ApiDiagnostic")
public class ApiDiagnostic extends com.pulumi.resources.CustomResource {
/**
* Always log errors. Send telemetry if there is an erroneous condition, regardless of sampling settings.
*
*/
@Export(name="alwaysLogErrors", refs={Boolean.class}, tree="[0]")
private Output alwaysLogErrors;
/**
* @return Always log errors. Send telemetry if there is an erroneous condition, regardless of sampling settings.
*
*/
public Output alwaysLogErrors() {
return this.alwaysLogErrors;
}
/**
* The ID (name) of the Diagnostics Logger.
*
*/
@Export(name="apiManagementLoggerId", refs={String.class}, tree="[0]")
private Output apiManagementLoggerId;
/**
* @return The ID (name) of the Diagnostics Logger.
*
*/
public Output apiManagementLoggerId() {
return this.apiManagementLoggerId;
}
/**
* The name of the API Management Service instance. Changing this forces a new API Management Service API Diagnostics Logs to be created.
*
*/
@Export(name="apiManagementName", refs={String.class}, tree="[0]")
private Output apiManagementName;
/**
* @return The name of the API Management Service instance. Changing this forces a new API Management Service API Diagnostics Logs to be created.
*
*/
public Output apiManagementName() {
return this.apiManagementName;
}
/**
* The name of the API on which to configure the Diagnostics Logs. Changing this forces a new API Management Service API Diagnostics Logs to be created.
*
*/
@Export(name="apiName", refs={String.class}, tree="[0]")
private Output apiName;
/**
* @return The name of the API on which to configure the Diagnostics Logs. Changing this forces a new API Management Service API Diagnostics Logs to be created.
*
*/
public Output apiName() {
return this.apiName;
}
/**
* A `backend_request` block as defined below.
*
*/
@Export(name="backendRequest", refs={ApiDiagnosticBackendRequest.class}, tree="[0]")
private Output backendRequest;
/**
* @return A `backend_request` block as defined below.
*
*/
public Output backendRequest() {
return this.backendRequest;
}
/**
* A `backend_response` block as defined below.
*
*/
@Export(name="backendResponse", refs={ApiDiagnosticBackendResponse.class}, tree="[0]")
private Output backendResponse;
/**
* @return A `backend_response` block as defined below.
*
*/
public Output backendResponse() {
return this.backendResponse;
}
/**
* A `frontend_request` block as defined below.
*
*/
@Export(name="frontendRequest", refs={ApiDiagnosticFrontendRequest.class}, tree="[0]")
private Output frontendRequest;
/**
* @return A `frontend_request` block as defined below.
*
*/
public Output frontendRequest() {
return this.frontendRequest;
}
/**
* A `frontend_response` block as defined below.
*
*/
@Export(name="frontendResponse", refs={ApiDiagnosticFrontendResponse.class}, tree="[0]")
private Output frontendResponse;
/**
* @return A `frontend_response` block as defined below.
*
*/
public Output frontendResponse() {
return this.frontendResponse;
}
/**
* The HTTP Correlation Protocol to use. Possible values are `None`, `Legacy` or `W3C`.
*
*/
@Export(name="httpCorrelationProtocol", refs={String.class}, tree="[0]")
private Output httpCorrelationProtocol;
/**
* @return The HTTP Correlation Protocol to use. Possible values are `None`, `Legacy` or `W3C`.
*
*/
public Output httpCorrelationProtocol() {
return this.httpCorrelationProtocol;
}
/**
* Identifier of the Diagnostics Logs. Possible values are `applicationinsights` and `azuremonitor`. Changing this forces a new API Management Service API Diagnostics Logs to be created.
*
*/
@Export(name="identifier", refs={String.class}, tree="[0]")
private Output identifier;
/**
* @return Identifier of the Diagnostics Logs. Possible values are `applicationinsights` and `azuremonitor`. Changing this forces a new API Management Service API Diagnostics Logs to be created.
*
*/
public Output identifier() {
return this.identifier;
}
/**
* Log client IP address.
*
*/
@Export(name="logClientIp", refs={Boolean.class}, tree="[0]")
private Output logClientIp;
/**
* @return Log client IP address.
*
*/
public Output logClientIp() {
return this.logClientIp;
}
/**
* The format of the Operation Name for Application Insights telemetries. Possible values are `Name`, and `Url`. Defaults to `Name`.
*
*/
@Export(name="operationNameFormat", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> operationNameFormat;
/**
* @return The format of the Operation Name for Application Insights telemetries. Possible values are `Name`, and `Url`. Defaults to `Name`.
*
*/
public Output> operationNameFormat() {
return Codegen.optional(this.operationNameFormat);
}
/**
* The name of the Resource Group where the API Management Service API Diagnostics Logs should exist. Changing this forces a new API Management Service API Diagnostics Logs to be created.
*
*/
@Export(name="resourceGroupName", refs={String.class}, tree="[0]")
private Output resourceGroupName;
/**
* @return The name of the Resource Group where the API Management Service API Diagnostics Logs should exist. Changing this forces a new API Management Service API Diagnostics Logs to be created.
*
*/
public Output resourceGroupName() {
return this.resourceGroupName;
}
/**
* Sampling (%). For high traffic APIs, please read this [documentation](https://docs.microsoft.com/azure/api-management/api-management-howto-app-insights#performance-implications-and-log-sampling) to understand performance implications and log sampling. Valid values are between `0.0` and `100.0`.
*
*/
@Export(name="samplingPercentage", refs={Double.class}, tree="[0]")
private Output samplingPercentage;
/**
* @return Sampling (%). For high traffic APIs, please read this [documentation](https://docs.microsoft.com/azure/api-management/api-management-howto-app-insights#performance-implications-and-log-sampling) to understand performance implications and log sampling. Valid values are between `0.0` and `100.0`.
*
*/
public Output samplingPercentage() {
return this.samplingPercentage;
}
/**
* Logging verbosity. Possible values are `verbose`, `information` or `error`.
*
*/
@Export(name="verbosity", refs={String.class}, tree="[0]")
private Output verbosity;
/**
* @return Logging verbosity. Possible values are `verbose`, `information` or `error`.
*
*/
public Output verbosity() {
return this.verbosity;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public ApiDiagnostic(java.lang.String name) {
this(name, ApiDiagnosticArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public ApiDiagnostic(java.lang.String name, ApiDiagnosticArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public ApiDiagnostic(java.lang.String name, ApiDiagnosticArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure:apimanagement/apiDiagnostic:ApiDiagnostic", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private ApiDiagnostic(java.lang.String name, Output id, @Nullable ApiDiagnosticState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure:apimanagement/apiDiagnostic:ApiDiagnostic", name, state, makeResourceOptions(options, id), false);
}
private static ApiDiagnosticArgs makeArgs(ApiDiagnosticArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? ApiDiagnosticArgs.Empty : args;
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static ApiDiagnostic get(java.lang.String name, Output id, @Nullable ApiDiagnosticState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new ApiDiagnostic(name, id, state, options);
}
}