azurerm_api_management_api_diagnostic

package
v0.0.0-...-4deecce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	// AlwaysLogErrors: bool, optional
	AlwaysLogErrors terra.BoolValue `hcl:"always_log_errors,attr"`
	// ApiManagementLoggerId: string, required
	ApiManagementLoggerId terra.StringValue `hcl:"api_management_logger_id,attr" validate:"required"`
	// ApiManagementName: string, required
	ApiManagementName terra.StringValue `hcl:"api_management_name,attr" validate:"required"`
	// ApiName: string, required
	ApiName terra.StringValue `hcl:"api_name,attr" validate:"required"`
	// HttpCorrelationProtocol: string, optional
	HttpCorrelationProtocol terra.StringValue `hcl:"http_correlation_protocol,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Identifier: string, required
	Identifier terra.StringValue `hcl:"identifier,attr" validate:"required"`
	// LogClientIp: bool, optional
	LogClientIp terra.BoolValue `hcl:"log_client_ip,attr"`
	// OperationNameFormat: string, optional
	OperationNameFormat terra.StringValue `hcl:"operation_name_format,attr"`
	// ResourceGroupName: string, required
	ResourceGroupName terra.StringValue `hcl:"resource_group_name,attr" validate:"required"`
	// SamplingPercentage: number, optional
	SamplingPercentage terra.NumberValue `hcl:"sampling_percentage,attr"`
	// Verbosity: string, optional
	Verbosity terra.StringValue `hcl:"verbosity,attr"`
	// BackendRequest: optional
	BackendRequest *BackendRequest `hcl:"backend_request,block"`
	// BackendResponse: optional
	BackendResponse *BackendResponse `hcl:"backend_response,block"`
	// FrontendRequest: optional
	FrontendRequest *FrontendRequest `hcl:"frontend_request,block"`
	// FrontendResponse: optional
	FrontendResponse *FrontendResponse `hcl:"frontend_response,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for azurerm_api_management_api_diagnostic.

type BackendRequest

type BackendRequest struct {
	// BodyBytes: number, optional
	BodyBytes terra.NumberValue `hcl:"body_bytes,attr"`
	// HeadersToLog: set of string, optional
	HeadersToLog terra.SetValue[terra.StringValue] `hcl:"headers_to_log,attr"`
	// BackendRequestDataMasking: optional
	DataMasking *BackendRequestDataMasking `hcl:"data_masking,block"`
}

type BackendRequestAttributes

type BackendRequestAttributes struct {
	// contains filtered or unexported fields
}

func (BackendRequestAttributes) BodyBytes

func (BackendRequestAttributes) DataMasking

func (BackendRequestAttributes) HeadersToLog

func (BackendRequestAttributes) InternalRef

func (br BackendRequestAttributes) InternalRef() (terra.Reference, error)

func (BackendRequestAttributes) InternalTokens

func (br BackendRequestAttributes) InternalTokens() (hclwrite.Tokens, error)

func (BackendRequestAttributes) InternalWithRef

type BackendRequestDataMasking

type BackendRequestDataMasking struct {
	// BackendRequestDataMaskingHeaders: min=0
	Headers []BackendRequestDataMaskingHeaders `hcl:"headers,block" validate:"min=0"`
	// BackendRequestDataMaskingQueryParams: min=0
	QueryParams []BackendRequestDataMaskingQueryParams `hcl:"query_params,block" validate:"min=0"`
}

type BackendRequestDataMaskingAttributes

type BackendRequestDataMaskingAttributes struct {
	// contains filtered or unexported fields
}

func (BackendRequestDataMaskingAttributes) Headers

func (BackendRequestDataMaskingAttributes) InternalRef

func (BackendRequestDataMaskingAttributes) InternalTokens

func (BackendRequestDataMaskingAttributes) InternalWithRef

func (BackendRequestDataMaskingAttributes) QueryParams

type BackendRequestDataMaskingHeaders

type BackendRequestDataMaskingHeaders struct {
	// Mode: string, required
	Mode terra.StringValue `hcl:"mode,attr" validate:"required"`
	// Value: string, required
	Value terra.StringValue `hcl:"value,attr" validate:"required"`
}

type BackendRequestDataMaskingHeadersAttributes

type BackendRequestDataMaskingHeadersAttributes struct {
	// contains filtered or unexported fields
}

func (BackendRequestDataMaskingHeadersAttributes) InternalRef

func (BackendRequestDataMaskingHeadersAttributes) InternalTokens

func (BackendRequestDataMaskingHeadersAttributes) InternalWithRef

func (BackendRequestDataMaskingHeadersAttributes) Mode

func (BackendRequestDataMaskingHeadersAttributes) Value

type BackendRequestDataMaskingHeadersState

type BackendRequestDataMaskingHeadersState struct {
	Mode  string `json:"mode"`
	Value string `json:"value"`
}

type BackendRequestDataMaskingQueryParams

type BackendRequestDataMaskingQueryParams struct {
	// Mode: string, required
	Mode terra.StringValue `hcl:"mode,attr" validate:"required"`
	// Value: string, required
	Value terra.StringValue `hcl:"value,attr" validate:"required"`
}

type BackendRequestDataMaskingQueryParamsAttributes

type BackendRequestDataMaskingQueryParamsAttributes struct {
	// contains filtered or unexported fields
}

func (BackendRequestDataMaskingQueryParamsAttributes) InternalRef

func (BackendRequestDataMaskingQueryParamsAttributes) InternalTokens

func (BackendRequestDataMaskingQueryParamsAttributes) InternalWithRef

func (BackendRequestDataMaskingQueryParamsAttributes) Mode

func (BackendRequestDataMaskingQueryParamsAttributes) Value

type BackendRequestDataMaskingQueryParamsState

type BackendRequestDataMaskingQueryParamsState struct {
	Mode  string `json:"mode"`
	Value string `json:"value"`
}

type BackendRequestDataMaskingState

type BackendRequestDataMaskingState struct {
	Headers     []BackendRequestDataMaskingHeadersState     `json:"headers"`
	QueryParams []BackendRequestDataMaskingQueryParamsState `json:"query_params"`
}

type BackendRequestState

type BackendRequestState struct {
	BodyBytes    float64                          `json:"body_bytes"`
	HeadersToLog []string                         `json:"headers_to_log"`
	DataMasking  []BackendRequestDataMaskingState `json:"data_masking"`
}

type BackendResponse

type BackendResponse struct {
	// BodyBytes: number, optional
	BodyBytes terra.NumberValue `hcl:"body_bytes,attr"`
	// HeadersToLog: set of string, optional
	HeadersToLog terra.SetValue[terra.StringValue] `hcl:"headers_to_log,attr"`
	// BackendResponseDataMasking: optional
	DataMasking *BackendResponseDataMasking `hcl:"data_masking,block"`
}

type BackendResponseAttributes

type BackendResponseAttributes struct {
	// contains filtered or unexported fields
}

func (BackendResponseAttributes) BodyBytes

func (BackendResponseAttributes) DataMasking

func (BackendResponseAttributes) HeadersToLog

func (BackendResponseAttributes) InternalRef

func (br BackendResponseAttributes) InternalRef() (terra.Reference, error)

func (BackendResponseAttributes) InternalTokens

func (br BackendResponseAttributes) InternalTokens() (hclwrite.Tokens, error)

func (BackendResponseAttributes) InternalWithRef

type BackendResponseDataMasking

type BackendResponseDataMasking struct {
	// BackendResponseDataMaskingHeaders: min=0
	Headers []BackendResponseDataMaskingHeaders `hcl:"headers,block" validate:"min=0"`
	// BackendResponseDataMaskingQueryParams: min=0
	QueryParams []BackendResponseDataMaskingQueryParams `hcl:"query_params,block" validate:"min=0"`
}

type BackendResponseDataMaskingAttributes

type BackendResponseDataMaskingAttributes struct {
	// contains filtered or unexported fields
}

func (BackendResponseDataMaskingAttributes) Headers

func (BackendResponseDataMaskingAttributes) InternalRef

func (BackendResponseDataMaskingAttributes) InternalTokens

func (BackendResponseDataMaskingAttributes) InternalWithRef

func (BackendResponseDataMaskingAttributes) QueryParams

type BackendResponseDataMaskingHeaders

type BackendResponseDataMaskingHeaders struct {
	// Mode: string, required
	Mode terra.StringValue `hcl:"mode,attr" validate:"required"`
	// Value: string, required
	Value terra.StringValue `hcl:"value,attr" validate:"required"`
}

type BackendResponseDataMaskingHeadersAttributes

type BackendResponseDataMaskingHeadersAttributes struct {
	// contains filtered or unexported fields
}

func (BackendResponseDataMaskingHeadersAttributes) InternalRef

func (BackendResponseDataMaskingHeadersAttributes) InternalTokens

func (BackendResponseDataMaskingHeadersAttributes) InternalWithRef

func (BackendResponseDataMaskingHeadersAttributes) Mode

func (BackendResponseDataMaskingHeadersAttributes) Value

type BackendResponseDataMaskingHeadersState

type BackendResponseDataMaskingHeadersState struct {
	Mode  string `json:"mode"`
	Value string `json:"value"`
}

type BackendResponseDataMaskingQueryParams

type BackendResponseDataMaskingQueryParams struct {
	// Mode: string, required
	Mode terra.StringValue `hcl:"mode,attr" validate:"required"`
	// Value: string, required
	Value terra.StringValue `hcl:"value,attr" validate:"required"`
}

type BackendResponseDataMaskingQueryParamsAttributes

type BackendResponseDataMaskingQueryParamsAttributes struct {
	// contains filtered or unexported fields
}

func (BackendResponseDataMaskingQueryParamsAttributes) InternalRef

func (BackendResponseDataMaskingQueryParamsAttributes) InternalTokens

func (BackendResponseDataMaskingQueryParamsAttributes) InternalWithRef

func (BackendResponseDataMaskingQueryParamsAttributes) Mode

func (BackendResponseDataMaskingQueryParamsAttributes) Value

type BackendResponseDataMaskingQueryParamsState

type BackendResponseDataMaskingQueryParamsState struct {
	Mode  string `json:"mode"`
	Value string `json:"value"`
}

type BackendResponseDataMaskingState

type BackendResponseDataMaskingState struct {
	Headers     []BackendResponseDataMaskingHeadersState     `json:"headers"`
	QueryParams []BackendResponseDataMaskingQueryParamsState `json:"query_params"`
}

type BackendResponseState

type BackendResponseState struct {
	BodyBytes    float64                           `json:"body_bytes"`
	HeadersToLog []string                          `json:"headers_to_log"`
	DataMasking  []BackendResponseDataMaskingState `json:"data_masking"`
}

type FrontendRequest

type FrontendRequest struct {
	// BodyBytes: number, optional
	BodyBytes terra.NumberValue `hcl:"body_bytes,attr"`
	// HeadersToLog: set of string, optional
	HeadersToLog terra.SetValue[terra.StringValue] `hcl:"headers_to_log,attr"`
	// FrontendRequestDataMasking: optional
	DataMasking *FrontendRequestDataMasking `hcl:"data_masking,block"`
}

type FrontendRequestAttributes

type FrontendRequestAttributes struct {
	// contains filtered or unexported fields
}

func (FrontendRequestAttributes) BodyBytes

func (FrontendRequestAttributes) DataMasking

func (FrontendRequestAttributes) HeadersToLog

func (FrontendRequestAttributes) InternalRef

func (fr FrontendRequestAttributes) InternalRef() (terra.Reference, error)

func (FrontendRequestAttributes) InternalTokens

func (fr FrontendRequestAttributes) InternalTokens() (hclwrite.Tokens, error)

func (FrontendRequestAttributes) InternalWithRef

type FrontendRequestDataMasking

type FrontendRequestDataMasking struct {
	// FrontendRequestDataMaskingHeaders: min=0
	Headers []FrontendRequestDataMaskingHeaders `hcl:"headers,block" validate:"min=0"`
	// FrontendRequestDataMaskingQueryParams: min=0
	QueryParams []FrontendRequestDataMaskingQueryParams `hcl:"query_params,block" validate:"min=0"`
}

type FrontendRequestDataMaskingAttributes

type FrontendRequestDataMaskingAttributes struct {
	// contains filtered or unexported fields
}

func (FrontendRequestDataMaskingAttributes) Headers

func (FrontendRequestDataMaskingAttributes) InternalRef

func (FrontendRequestDataMaskingAttributes) InternalTokens

func (FrontendRequestDataMaskingAttributes) InternalWithRef

func (FrontendRequestDataMaskingAttributes) QueryParams

type FrontendRequestDataMaskingHeaders

type FrontendRequestDataMaskingHeaders struct {
	// Mode: string, required
	Mode terra.StringValue `hcl:"mode,attr" validate:"required"`
	// Value: string, required
	Value terra.StringValue `hcl:"value,attr" validate:"required"`
}

type FrontendRequestDataMaskingHeadersAttributes

type FrontendRequestDataMaskingHeadersAttributes struct {
	// contains filtered or unexported fields
}

func (FrontendRequestDataMaskingHeadersAttributes) InternalRef

func (FrontendRequestDataMaskingHeadersAttributes) InternalTokens

func (FrontendRequestDataMaskingHeadersAttributes) InternalWithRef

func (FrontendRequestDataMaskingHeadersAttributes) Mode

func (FrontendRequestDataMaskingHeadersAttributes) Value

type FrontendRequestDataMaskingHeadersState

type FrontendRequestDataMaskingHeadersState struct {
	Mode  string `json:"mode"`
	Value string `json:"value"`
}

type FrontendRequestDataMaskingQueryParams

type FrontendRequestDataMaskingQueryParams struct {
	// Mode: string, required
	Mode terra.StringValue `hcl:"mode,attr" validate:"required"`
	// Value: string, required
	Value terra.StringValue `hcl:"value,attr" validate:"required"`
}

type FrontendRequestDataMaskingQueryParamsAttributes

type FrontendRequestDataMaskingQueryParamsAttributes struct {
	// contains filtered or unexported fields
}

func (FrontendRequestDataMaskingQueryParamsAttributes) InternalRef

func (FrontendRequestDataMaskingQueryParamsAttributes) InternalTokens

func (FrontendRequestDataMaskingQueryParamsAttributes) InternalWithRef

func (FrontendRequestDataMaskingQueryParamsAttributes) Mode

func (FrontendRequestDataMaskingQueryParamsAttributes) Value

type FrontendRequestDataMaskingQueryParamsState

type FrontendRequestDataMaskingQueryParamsState struct {
	Mode  string `json:"mode"`
	Value string `json:"value"`
}

type FrontendRequestDataMaskingState

type FrontendRequestDataMaskingState struct {
	Headers     []FrontendRequestDataMaskingHeadersState     `json:"headers"`
	QueryParams []FrontendRequestDataMaskingQueryParamsState `json:"query_params"`
}

type FrontendRequestState

type FrontendRequestState struct {
	BodyBytes    float64                           `json:"body_bytes"`
	HeadersToLog []string                          `json:"headers_to_log"`
	DataMasking  []FrontendRequestDataMaskingState `json:"data_masking"`
}

type FrontendResponse

type FrontendResponse struct {
	// BodyBytes: number, optional
	BodyBytes terra.NumberValue `hcl:"body_bytes,attr"`
	// HeadersToLog: set of string, optional
	HeadersToLog terra.SetValue[terra.StringValue] `hcl:"headers_to_log,attr"`
	// FrontendResponseDataMasking: optional
	DataMasking *FrontendResponseDataMasking `hcl:"data_masking,block"`
}

type FrontendResponseAttributes

type FrontendResponseAttributes struct {
	// contains filtered or unexported fields
}

func (FrontendResponseAttributes) BodyBytes

func (FrontendResponseAttributes) DataMasking

func (FrontendResponseAttributes) HeadersToLog

func (FrontendResponseAttributes) InternalRef

func (fr FrontendResponseAttributes) InternalRef() (terra.Reference, error)

func (FrontendResponseAttributes) InternalTokens

func (fr FrontendResponseAttributes) InternalTokens() (hclwrite.Tokens, error)

func (FrontendResponseAttributes) InternalWithRef

type FrontendResponseDataMasking

type FrontendResponseDataMasking struct {
	// FrontendResponseDataMaskingHeaders: min=0
	Headers []FrontendResponseDataMaskingHeaders `hcl:"headers,block" validate:"min=0"`
	// FrontendResponseDataMaskingQueryParams: min=0
	QueryParams []FrontendResponseDataMaskingQueryParams `hcl:"query_params,block" validate:"min=0"`
}

type FrontendResponseDataMaskingAttributes

type FrontendResponseDataMaskingAttributes struct {
	// contains filtered or unexported fields
}

func (FrontendResponseDataMaskingAttributes) Headers

func (FrontendResponseDataMaskingAttributes) InternalRef

func (FrontendResponseDataMaskingAttributes) InternalTokens

func (FrontendResponseDataMaskingAttributes) InternalWithRef

func (FrontendResponseDataMaskingAttributes) QueryParams

type FrontendResponseDataMaskingHeaders

type FrontendResponseDataMaskingHeaders struct {
	// Mode: string, required
	Mode terra.StringValue `hcl:"mode,attr" validate:"required"`
	// Value: string, required
	Value terra.StringValue `hcl:"value,attr" validate:"required"`
}

type FrontendResponseDataMaskingHeadersAttributes

type FrontendResponseDataMaskingHeadersAttributes struct {
	// contains filtered or unexported fields
}

func (FrontendResponseDataMaskingHeadersAttributes) InternalRef

func (FrontendResponseDataMaskingHeadersAttributes) InternalTokens

func (FrontendResponseDataMaskingHeadersAttributes) InternalWithRef

func (FrontendResponseDataMaskingHeadersAttributes) Mode

func (FrontendResponseDataMaskingHeadersAttributes) Value

type FrontendResponseDataMaskingHeadersState

type FrontendResponseDataMaskingHeadersState struct {
	Mode  string `json:"mode"`
	Value string `json:"value"`
}

type FrontendResponseDataMaskingQueryParams

type FrontendResponseDataMaskingQueryParams struct {
	// Mode: string, required
	Mode terra.StringValue `hcl:"mode,attr" validate:"required"`
	// Value: string, required
	Value terra.StringValue `hcl:"value,attr" validate:"required"`
}

type FrontendResponseDataMaskingQueryParamsAttributes

type FrontendResponseDataMaskingQueryParamsAttributes struct {
	// contains filtered or unexported fields
}

func (FrontendResponseDataMaskingQueryParamsAttributes) InternalRef

func (FrontendResponseDataMaskingQueryParamsAttributes) InternalTokens

func (FrontendResponseDataMaskingQueryParamsAttributes) InternalWithRef

func (FrontendResponseDataMaskingQueryParamsAttributes) Mode

func (FrontendResponseDataMaskingQueryParamsAttributes) Value

type FrontendResponseDataMaskingQueryParamsState

type FrontendResponseDataMaskingQueryParamsState struct {
	Mode  string `json:"mode"`
	Value string `json:"value"`
}

type FrontendResponseDataMaskingState

type FrontendResponseDataMaskingState struct {
	Headers     []FrontendResponseDataMaskingHeadersState     `json:"headers"`
	QueryParams []FrontendResponseDataMaskingQueryParamsState `json:"query_params"`
}

type FrontendResponseState

type FrontendResponseState struct {
	BodyBytes    float64                            `json:"body_bytes"`
	HeadersToLog []string                           `json:"headers_to_log"`
	DataMasking  []FrontendResponseDataMaskingState `json:"data_masking"`
}

type Resource

type Resource struct {
	Name string
	Args Args

	DependsOn terra.Dependencies
	Lifecycle *terra.Lifecycle
	// contains filtered or unexported fields
}

Resource represents the Terraform resource azurerm_api_management_api_diagnostic.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (aamad *Resource) Attributes() azurermApiManagementApiDiagnosticAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

func (aamad *Resource) Configuration() interface{}

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

func (aamad *Resource) DependOn() terra.Reference

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

func (aamad *Resource) Dependencies() terra.Dependencies

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

func (aamad *Resource) ImportState(state io.Reader) error

ImportState imports the given attribute values into Resource's state.

func (*Resource) LifecycleManagement

func (aamad *Resource) LifecycleManagement() *terra.Lifecycle

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (aamad *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (aamad *Resource) State() (*azurermApiManagementApiDiagnosticState, bool)

State returns the state and a bool indicating if Resource has state.

func (*Resource) StateMust

func (aamad *Resource) StateMust() *azurermApiManagementApiDiagnosticState

StateMust returns the state for Resource. Panics if the state is nil.

func (*Resource) Type

func (aamad *Resource) Type() string

Type returns the Terraform object type for Resource.

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Delete: string, optional
	Delete terra.StringValue `hcl:"delete,attr"`
	// Read: string, optional
	Read terra.StringValue `hcl:"read,attr"`
	// Update: string, optional
	Update terra.StringValue `hcl:"update,attr"`
}

type TimeoutsAttributes

type TimeoutsAttributes struct {
	// contains filtered or unexported fields
}

func (TimeoutsAttributes) Create

func (TimeoutsAttributes) Delete

func (TimeoutsAttributes) InternalRef

func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)

func (TimeoutsAttributes) InternalTokens

func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TimeoutsAttributes) InternalWithRef

func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes

func (TimeoutsAttributes) Read

func (TimeoutsAttributes) Update

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
	Delete string `json:"delete"`
	Read   string `json:"read"`
	Update string `json:"update"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL