LoadBalancerContextQuery

class aws_cdk.cloud_assembly_schema.LoadBalancerContextQuery(*, load_balancer_arn=None, load_balancer_tags=None, load_balancer_type, account, lookup_role_arn=None, region)

Bases: aws_cdk.cloud_assembly_schema.LoadBalancerFilter

Query input for looking up a load balancer.

Parameters
  • load_balancer_arn (Optional[str]) – Find by load balancer’s ARN. Default: - does not search by load balancer arn

  • load_balancer_tags (Optional[Sequence[Tag]]) – Match load balancer tags. Default: - does not match load balancers by tags

  • load_balancer_type (LoadBalancerType) – Filter load balancers by their type.

  • account (str) – Query account.

  • lookup_role_arn (Optional[str]) – The ARN of the role that should be used to look up the missing values. Default: - None

  • region (str) – Query region.

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.cloud_assembly_schema as cloud_assembly_schema

load_balancer_context_query = cloud_assembly_schema.LoadBalancerContextQuery(
    account="account",
    load_balancer_type=cloud_assembly_schema.LoadBalancerType.NETWORK,
    region="region",

    # the properties below are optional
    load_balancer_arn="loadBalancerArn",
    load_balancer_tags=[cloud_assembly_schema.Tag(
        key="key",
        value="value"
    )],
    lookup_role_arn="lookupRoleArn"
)

Attributes

account

Query account.

Return type

str

load_balancer_arn

Find by load balancer’s ARN.

Default
  • does not search by load balancer arn

Return type

Optional[str]

load_balancer_tags

Match load balancer tags.

Default
  • does not match load balancers by tags

Return type

Optional[List[Tag]]

load_balancer_type

Filter load balancers by their type.

Return type

LoadBalancerType

lookup_role_arn

The ARN of the role that should be used to look up the missing values.

Default
  • None

Return type

Optional[str]

region

Query region.

Return type

str