resourceType
Fetch a single resource type by its identifier.
Returns null with a NOT_FOUND error if the resource type does not exist
or is not accessible to your organization.
query {
resourceType(organizationId: "your-org-id", id: "aws-iam-role") {
id
name
connectionOrientation
icon
}
}
resourceType(
organizationId: ID!
id: ID!
): ResourceType
Arguments
resourceType.organizationId ● ID! non-null scalar {#organization-id}
Your organization's unique identifier.
resourceType.id ● ID! non-null scalar {#id}
The resource type identifier (e.g., aws-iam-role).
Type
ResourceType object
A resource type that defines what kind of infrastructure a resource represents.
Resource types are the schema layer for Massdriver's connection system. Every
dependency a bundle declares and every resource a bundle produces references a
resource type. This is what makes bundles composable -- a database bundle that
produces an aws-rds-instance resource can be connected to any application
bundle that declares an aws-rds-instance dependency.
Resource types include both public types provided by Massdriver (e.g.,
aws-iam-role, kubernetes-cluster) and private types defined by your
organization for custom infrastructure.