{{!
  Copyright (c) HashiCorp, Inc.
  SPDX-License-Identifier: BUSL-1.1
~}}

{{#if (eq this.model.backendType "database")}}
  <GenerateCredentialsDatabase
    @backendPath={{this.model.backendPath}}
    @roleName={{this.model.roleName}}
    @roleType={{this.model.dbCred.roleType}}
    @model={{this.model.dbCred}}
  />
{{else}}
  <GenerateCredentials
    @backendPath={{this.model.backendPath}}
    @backendType={{this.model.backendType}}
    @roleName={{this.model.roleName}}
    @awsRoleType={{this.model.awsRoleType}}
  />
{{/if}}