/
main.tf
46 lines (41 loc) · 1.53 KB
/
main.tf
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
terraform {
required_providers {
azurerm = ">= 2.8.0"
}
}
resource "azurerm_api_management_authorization_server" "this" {
api_management_name = var.api_management_name
authorization_endpoint = var.authorization_endpoint
authorization_methods = var.authorization_methods
bearer_token_sending_methods = var.bearer_token_sending_methods
client_authentication_method = var.client_authentication_method
client_id = var.client_id
client_registration_endpoint = var.client_registration_endpoint
client_secret = var.client_secret
default_scope = var.default_scope
description = var.description
display_name = var.display_name
grant_types = var.grant_types
name = var.name
resource_group_name = var.resource_group_name
resource_owner_password = var.resource_owner_password
resource_owner_username = var.resource_owner_username
support_state = var.support_state
token_endpoint = var.token_endpoint
dynamic "timeouts" {
for_each = var.timeouts
content {
create = timeouts.value["create"]
delete = timeouts.value["delete"]
read = timeouts.value["read"]
update = timeouts.value["update"]
}
}
dynamic "token_body_parameter" {
for_each = var.token_body_parameter
content {
name = token_body_parameter.value["name"]
value = token_body_parameter.value["value"]
}
}
}