LoadBalancerContextQuery

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

Bases: LoadBalancerFilter

Query input for looking up a load balancer.

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

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

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

  • account (str) – Query account.

  • region (str) – Query region.

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

ExampleMetadata:

fixture=_generated

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.

load_balancer_arn

Find by load balancer’s ARN.

Default:
  • does not search by load balancer arn

load_balancer_tags

Match load balancer tags.

Default:
  • does not match load balancers by tags

load_balancer_type

Filter load balancers by their type.

lookup_role_arn

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

Default:
  • None

region

Query region.