azurermApiManagementIdentityProviderFacebook
Manages an API Management Facebook Identity Provider.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
const azurermResourceGroupExample = new azurerm.resourceGroup.ResourceGroup(
this,
"example",
{
location: "West Europe",
name: "example-resources",
}
);
const azurermApiManagementExample = new azurerm.apiManagement.ApiManagement(
this,
"example_1",
{
location: azurermResourceGroupExample.location,
name: "example-apim",
publisher_email: "company@terraform.io",
publisher_name: "My Company",
resource_group_name: azurermResourceGroupExample.name,
sku_name: "Developer_1",
}
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermApiManagementExample.overrideLogicalId("example");
const azurermApiManagementIdentityProviderFacebookExample =
new azurerm.apiManagementIdentityProviderFacebook.ApiManagementIdentityProviderFacebook(
this,
"example_2",
{
api_management_name: azurermApiManagementExample.name,
app_id: "00000000000000000000000000000000",
app_secret: "00000000000000000000000000000000",
resource_group_name: azurermResourceGroupExample.name,
}
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermApiManagementIdentityProviderFacebookExample.overrideLogicalId(
"example"
);
Argument Reference
The following arguments are supported:
-
apiManagementName
- (Required) The Name of the API Management Service where this Facebook Identity Provider should be created. Changing this forces a new resource to be created. -
resourceGroupName
- (Required) The Name of the Resource Group where the API Management Service exists. Changing this forces a new resource to be created. -
appId
- (Required) App ID for Facebook. -
appSecret
- (Required) App Secret for Facebook.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
id
- The ID of the API Management Facebook Identity Provider.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the API Management Facebook Identity Provider.update
- (Defaults to 30 minutes) Used when updating the API Management Facebook Identity Provider.read
- (Defaults to 5 minutes) Used when retrieving the API Management Facebook Identity Provider.delete
- (Defaults to 30 minutes) Used when deleting the API Management Facebook Identity Provider.
Import
API Management Facebook Identity Provider can be imported using the resourceId
, e.g.