Skip to content

azurermLogicAppIntegrationAccountAgreement

Manages a Logic App Integration Account Agreement.

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 azurermLogicAppIntegrationAccountTest =
  new azurerm.logicAppIntegrationAccount.LogicAppIntegrationAccount(
    this,
    "test",
    {
      location: azurermResourceGroupExample.location,
      name: "example-ia",
      resource_group_name: azurermResourceGroupExample.name,
      sku_name: "Standard",
    }
  );
const azurermLogicAppIntegrationAccountPartnerGuest =
  new azurerm.logicAppIntegrationAccountPartner.LogicAppIntegrationAccountPartner(
    this,
    "guest",
    {
      business_identity: [
        {
          qualifier: "AS2Identity",
          value: "FabrikamDC",
        },
      ],
      integration_account_name: azurermLogicAppIntegrationAccountTest.name,
      name: "example-guestpartner",
      resource_group_name: azurermResourceGroupExample.name,
    }
  );
const azurermLogicAppIntegrationAccountPartnerHost =
  new azurerm.logicAppIntegrationAccountPartner.LogicAppIntegrationAccountPartner(
    this,
    "host",
    {
      business_identity: [
        {
          qualifier: "AS2Identity",
          value: "FabrikamNY",
        },
      ],
      integration_account_name: azurermLogicAppIntegrationAccountTest.name,
      name: "example-hostpartner",
      resource_group_name: azurermResourceGroupExample.name,
    }
  );
const azurermLogicAppIntegrationAccountAgreementTest =
  new azurerm.logicAppIntegrationAccountAgreement.LogicAppIntegrationAccountAgreement(
    this,
    "test_4",
    {
      agreement_type: "AS2",
      content:
        '${file("testdata/integration_account_agreement_content_as2.json")}',
      guest_identity: [
        {
          qualifier: "AS2Identity",
          value: "FabrikamDC",
        },
      ],
      guest_partner_name: azurermLogicAppIntegrationAccountPartnerGuest.name,
      host_identity: [
        {
          qualifier: "AS2Identity",
          value: "FabrikamNY",
        },
      ],
      host_partner_name: azurermLogicAppIntegrationAccountPartnerHost.name,
      integration_account_name: azurermLogicAppIntegrationAccountTest.name,
      name: "example-agreement",
      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.*/
azurermLogicAppIntegrationAccountAgreementTest.overrideLogicalId("test");

Arguments Reference

The following arguments are supported:

  • name - (Required) The name which should be used for this Logic App Integration Account Agreement. Changing this forces a new resource to be created.

  • resourceGroupName - (Required) The name of the Resource Group where the Logic App Integration Account Agreement should exist. Changing this forces a new resource to be created.

  • integrationAccountName - (Required) The name of the Logic App Integration Account. Changing this forces a new resource to be created.

  • agreementType - (Required) The type of the Logic App Integration Account Agreement. Possible values are as2, x12 and edifact.

  • content - (Required) The content of the Logic App Integration Account Agreement.

  • guestIdentity - (Required) A guestIdentity block as documented below.

  • guestPartnerName - (Required) The name of the guest Logic App Integration Account Partner.

  • hostIdentity - (Required) A hostIdentity block as documented below.

  • hostPartnerName - (Required) The name of the host Logic App Integration Account Partner.

  • metadata - (Optional) The metadata of the Logic App Integration Account Agreement.


A guestIdentity block exports the following:

  • qualifier - (Required) The authenticating body that provides unique guest identities to organizations.

  • value - (Required) The value that identifies the documents that your logic apps receive.


A hostIdentity block exports the following:

  • qualifier - (Required) The authenticating body that provides unique host identities to organizations.

  • value - (Required) The value that identifies the documents that your logic apps receive.

Attributes Reference

In addition to the Arguments listed above - the following Attributes are exported:

  • id - The ID of the Logic App Integration Account Agreement.

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • create - (Defaults to 30 minutes) Used when creating the Logic App Integration Account Agreement.
  • read - (Defaults to 5 minutes) Used when retrieving the Logic App Integration Account Agreement.
  • update - (Defaults to 30 minutes) Used when updating the Logic App Integration Account Agreement.
  • delete - (Defaults to 30 minutes) Used when deleting the Logic App Integration Account Agreement.

Import

Logic App Integration Account Agreements can be imported using the resourceId, e.g.

terraform import azurerm_logic_app_integration_account_agreement.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Logic/integrationAccounts/account1/agreements/agreement1