We announced the upcoming end-of-support for the AWS CLI v1. For dates, additional details, and information on how to migrate, please refer to the linked announcement. For more information see the AWS CLI version 2 installation instructions and migration guide.
[ aws . bedrock-agentcore-control ]
Retrieves detailed information about a specific gateway rule.
See also: AWS API Documentation
get-gateway-rule
--gateway-identifier <value>
--rule-id <value>
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]
[--debug]
[--endpoint-url <value>]
[--no-verify-ssl]
[--no-paginate]
[--output <value>]
[--query <value>]
[--profile <value>]
[--region <value>]
[--version <value>]
[--color <value>]
[--no-sign-request]
[--ca-bundle <value>]
[--cli-read-timeout <value>]
[--cli-connect-timeout <value>]
[--v2-debug]
--gateway-identifier (string)
The identifier of the gateway containing the rule.
--rule-id (string)
The unique identifier of the rule to retrieve.
--cli-input-json (string)
Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, the CLI values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally.
--generate-cli-skeleton (string)
Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command.
--debug (boolean)
Turn on debug logging.
--endpoint-url (string)
Override command’s default URL with the given URL.
--no-verify-ssl (boolean)
By default, the AWS CLI uses SSL when communicating with AWS services. For each SSL connection, the AWS CLI will verify SSL certificates. This option overrides the default behavior of verifying SSL certificates.
--no-paginate (boolean)
Disable automatic pagination. If automatic pagination is disabled, the AWS CLI will only make one call, for the first page of results.
--output (string)
The formatting style for command output.
--query (string)
A JMESPath query to use in filtering the response data.
--profile (string)
Use a specific profile from your credential file.
--region (string)
The region to use. Overrides config/env settings.
--version (string)
Display the version of this tool.
--color (string)
Turn on/off color output.
--no-sign-request (boolean)
Do not sign requests. Credentials will not be loaded if this argument is provided.
--ca-bundle (string)
The CA certificate bundle to use when verifying SSL certificates. Overrides config/env settings.
--cli-read-timeout (int)
The maximum socket read time in seconds. If the value is set to 0, the socket read will be blocking and not timeout. The default value is 60 seconds.
--cli-connect-timeout (int)
The maximum socket connect time in seconds. If the value is set to 0, the socket connect will be blocking and not timeout. The default value is 60 seconds.
--v2-debug (boolean)
Enable AWS CLI v2 migration assistance. Prints warnings if the command would face a breaking change after swapping AWS CLI v1 for AWS CLI v2 in the current environment. Prints one warning for each breaking change detected.
ruleId -> (string)
The unique identifier of the gateway rule.
gatewayArn -> (string)
The Amazon Resource Name (ARN) of the gateway that the rule belongs to.
priority -> (integer)
The priority of the rule. Rules are evaluated in order of priority, with lower numbers evaluated first.
conditions -> (list)
The conditions that must be met for the rule to apply.
(tagged union structure)
A condition that determines when a gateway rule applies. Conditions can match on principals or request paths.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:matchPrincipals,matchPaths.matchPrincipals -> (structure)
A condition that matches on the identity of the caller making the request.
anyOf -> (list)
A list of principal entries. The condition is met if any of the entries match the caller’s identity.
(tagged union structure)
Union for principal matching. Currently supports IAM principal ARN glob matching. Extensible for future principal types (e.g., OAuth client ID).
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:iamPrincipal.iamPrincipal -> (structure)
An IAM principal to match against, specified by ARN.
arn -> (string)
The Amazon Resource Name (ARN) of the IAM principal. Supports user, role, and assumed-role ARNs. Wildcards can be used with theStringLikeoperator.operator -> (string)
The match operator.StringEqualsrequires an exact match.StringLikesupports wildcard patterns using*and?.matchPaths -> (structure)
A condition that matches on the request path.
anyOf -> (list)
A list of path patterns. The condition is met if the request path matches any of the patterns.
(string)
actions -> (list)
The actions to take when the rule conditions are met.
(tagged union structure)
An action to take when a gateway rule’s conditions are met.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:configurationBundle,routeToTarget.configurationBundle -> (tagged union structure)
An action that applies a configuration bundle override to the request.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:staticOverride,weightedOverride.staticOverride -> (structure)
A static configuration bundle override that applies a single bundle version to all matching requests.
bundleArn -> (string)
The Amazon Resource Name (ARN) of the configuration bundle to apply.bundleVersion -> (string)
The version of the configuration bundle to apply.weightedOverride -> (structure)
A weighted configuration bundle override that splits traffic between multiple bundle versions based on configured weights.
trafficSplit -> (list)
The traffic split entries defining how traffic is distributed between configuration bundle versions.
(structure)
An entry in a traffic split configuration, defining a named variant with a weight and configuration bundle reference.
name -> (string)
The name of this traffic split variant.weight -> (integer)
The percentage of traffic to route to this variant. Weights across all entries must sum to 100.configurationBundle -> (structure)
The configuration bundle reference for this variant.
bundleArn -> (string)
The Amazon Resource Name (ARN) of the configuration bundle.bundleVersion -> (string)
The version of the configuration bundle.description -> (string)
The description of this traffic split variant.metadata -> (map)
Key-value metadata associated with this traffic split variant.
key -> (string)
value -> (string)
routeToTarget -> (tagged union structure)
An action that routes the request to a specific target.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:staticRoute,weightedRoute.staticRoute -> (structure)
A static route that sends all matching requests to a single target.
targetName -> (string)
The name of the target to route requests to.weightedRoute -> (structure)
A weighted route that splits traffic between multiple targets.
trafficSplit -> (list)
The traffic split entries defining how traffic is distributed between targets.
(structure)
An entry in a target traffic split configuration.
name -> (string)
The name of this traffic split variant.weight -> (integer)
The percentage of traffic to route to this variant.targetName -> (string)
The name of the target to route traffic to.description -> (string)
The description of this traffic split variant.metadata -> (map)
Key-value metadata associated with this traffic split variant.
key -> (string)
value -> (string)
description -> (string)
The description of the gateway rule.
createdAt -> (timestamp)
The timestamp when the rule was created.
status -> (string)
The current status of the rule.
system -> (structure)
System-managed metadata for rules created by automated processes.
managedBy -> (string)
The identifier of the system or process that manages this rule.
updatedAt -> (timestamp)
The timestamp when the rule was last updated.