VPCLattice / Client / delete_rule

delete_rule#

VPCLattice.Client.delete_rule(**kwargs)#

Deletes a listener rule. Each listener has a default rule for checking connection requests, but you can define additional rules. Each rule consists of a priority, one or more actions, and one or more conditions. You can delete additional listener rules, but you cannot delete the default rule.

For more information, see Listener rules in the Amazon VPC Lattice User Guide.

See also: AWS API Documentation

Request Syntax

response = client.delete_rule(
    listenerIdentifier='string',
    ruleIdentifier='string',
    serviceIdentifier='string'
)
Parameters:
  • listenerIdentifier (string) –

    [REQUIRED]

    The ID or Amazon Resource Name (ARN) of the listener.

  • ruleIdentifier (string) –

    [REQUIRED]

    The ID or Amazon Resource Name (ARN) of the rule.

  • serviceIdentifier (string) –

    [REQUIRED]

    The ID or Amazon Resource Name (ARN) of the service.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions