# LoadBalancerContextQuery

Query input for looking up a load balancer.

Extends: LoadBalancerContextQuery
Extends: LoadBalancerFilter

- Source: [`node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/context-queries.d.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/node_modules/@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/context-queries.d.ts#L231)
- Type last changed: v2.160.0 · 24 Sep 2024

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { cloud_assembly_schema } from 'aws-cdk-lib';

declare const assumeRoleAdditionalOptions: any;
const loadBalancerContextQuery: cloud_assembly_schema.LoadBalancerContextQuery = {
  account: 'account',
  loadBalancerType: cloud_assembly_schema.LoadBalancerType.NETWORK,
  region: 'region',

  // the properties below are optional
  assumeRoleAdditionalOptions: {
    assumeRoleAdditionalOptionsKey: assumeRoleAdditionalOptions,
  },
  loadBalancerArn: 'loadBalancerArn',
  loadBalancerTags: [{
    key: 'key',
    value: 'value',
  }],
  lookupRoleArn: 'lookupRoleArn',
  lookupRoleExternalId: 'lookupRoleExternalId',
};
```

## Properties

- `account`: string (required) — Query account.

- `assumeRoleAdditionalOptions`: { [key: string]: any } = No additional options. — Additional options to pass to STS when assuming the lookup role.

  - `RoleArn` should not be used. Use the dedicated `lookupRoleArn` property instead.
  - `ExternalId` should not be used. Use the dedicated `lookupRoleExternalId` instead.

- `loadBalancerArn`: string = does not search by load balancer arn — Find by load balancer's ARN.

  **Default:** does not search by load balancer arn

- `loadBalancerTags`: [Tag](/cdk/api/v2/docs/aws-cdk-lib.cloud_assembly_schema.Tag.html)[] = does not match load balancers by tags — Match load balancer tags.

  **Default:** does not match load balancers by tags

- `loadBalancerType`: [LoadBalancerType](/cdk/api/v2/docs/aws-cdk-lib.cloud_assembly_schema.LoadBalancerType.html) (required) — Filter load balancers by their type.

- `lookupRoleArn`: string = None — The ARN of the role that should be used to look up the missing values.

- `lookupRoleExternalId`: string = No ExternalId will be supplied — The ExternalId that needs to be supplied while assuming this role.

- `region`: string (required) — Query region.
