1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. bedrockagentcore
  6. getGatewayRule

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi
aws-native logo aws-native logo AWS Cloud Control

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi

    Resource Type definition for AWS::BedrockAgentCore::GatewayRule

    Using getGatewayRule

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getGatewayRule(args: GetGatewayRuleArgs, opts?: InvokeOptions): Promise<GetGatewayRuleResult>
    function getGatewayRuleOutput(args: GetGatewayRuleOutputArgs, opts?: InvokeOutputOptions): Output<GetGatewayRuleResult>
    def get_gateway_rule(gateway_identifier: Optional[str] = None,
                         rule_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetGatewayRuleResult
    def get_gateway_rule_output(gateway_identifier: pulumi.Input[Optional[str]] = None,
                         rule_id: pulumi.Input[Optional[str]] = None,
                         opts: Optional[InvokeOutputOptions] = None) -> Output[GetGatewayRuleResult]
    func LookupGatewayRule(ctx *Context, args *LookupGatewayRuleArgs, opts ...InvokeOption) (*LookupGatewayRuleResult, error)
    func LookupGatewayRuleOutput(ctx *Context, args *LookupGatewayRuleOutputArgs, opts ...InvokeOption) LookupGatewayRuleResultOutput

    > Note: This function is named LookupGatewayRule in the Go SDK.

    public static class GetGatewayRule 
    {
        public static Task<GetGatewayRuleResult> InvokeAsync(GetGatewayRuleArgs args, InvokeOptions? opts = null)
        public static Output<GetGatewayRuleResult> Invoke(GetGatewayRuleInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetGatewayRuleResult> Invoke(GetGatewayRuleInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetGatewayRuleResult> getGatewayRule(GetGatewayRuleArgs args, InvokeOptions options)
    public static Output<GetGatewayRuleResult> getGatewayRule(GetGatewayRuleArgs args, InvokeOptions options)
    public static Output<GetGatewayRuleResult> getGatewayRule(GetGatewayRuleArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws-native:bedrockagentcore:getGatewayRule
      arguments:
        # arguments dictionary
    data "aws-native_bedrockagentcore_get_gateway_rule" "name" {
        # arguments
    }

    The following arguments are supported:

    getGatewayRule Result

    The following output properties are available:

    Actions List<Union<Pulumi.AwsNative.BedrockAgentCore.Outputs.GatewayRuleAction0Properties, Pulumi.AwsNative.BedrockAgentCore.Outputs.GatewayRuleAction1Properties>>
    Conditions List<object>
    CreatedAt string
    Description string
    GatewayArn string
    Priority double
    RuleId string
    Status Pulumi.AwsNative.BedrockAgentCore.GatewayRuleStatus
    System Pulumi.AwsNative.BedrockAgentCore.Outputs.GatewayRuleSystemManagedBlock
    UpdatedAt string
    actions list(object | object)
    conditions list(object | object | object)
    created_at string
    description string
    gateway_arn string
    priority number
    rule_id string
    status "CREATING" | "ACTIVE" | "UPDATING" | "DELETING"
    system object
    updated_at string
    actions List<Either<GatewayRuleAction0Properties,GatewayRuleAction1Properties>>
    conditions List<Object>
    createdAt String
    description String
    gatewayArn String
    priority Double
    ruleId String
    status GatewayRuleStatus
    system GatewayRuleSystemManagedBlock
    updatedAt String
    actions (GatewayRuleAction0Properties | GatewayRuleAction1Properties)[]
    conditions (GatewayRuleCondition0Properties | GatewayRuleCondition1Properties | GatewayRuleCondition2Properties)[]
    createdAt string
    description string
    gatewayArn string
    priority number
    ruleId string
    status GatewayRuleStatus
    system GatewayRuleSystemManagedBlock
    updatedAt string
    actions Sequence[Union[GatewayRuleAction0Properties, GatewayRuleAction1Properties]]
    conditions Sequence[Union[GatewayRuleCondition0Properties, GatewayRuleCondition1Properties, GatewayRuleCondition2Properties]]
    created_at str
    description str
    gateway_arn str
    priority float
    rule_id str
    status GatewayRuleStatus
    system GatewayRuleSystemManagedBlock
    updated_at str
    actions List<Property Map | Property Map>
    conditions List<Property Map | Property Map | Property Map>
    createdAt String
    description String
    gatewayArn String
    priority Number
    ruleId String
    status "CREATING" | "ACTIVE" | "UPDATING" | "DELETING"
    system Property Map
    updatedAt String

    Supporting Types

    GatewayRuleAction0Properties

    GatewayRuleAction1Properties

    GatewayRuleCircuitBreakerConfiguration

    Mode object
    Mode interface{}
    mode any
    mode Object
    mode any
    mode Any
    mode Any

    GatewayRuleCondition0Properties

    GatewayRuleCondition1Properties

    GatewayRuleCondition2Properties

    GatewayRuleConfigurationBundleAction0Properties

    GatewayRuleConfigurationBundleAction1Properties

    GatewayRuleConfigurationBundleReference

    GatewayRuleFallback

    GatewayRuleFallbackError

    NameValue
    ConnectionErrorCONNECTION_ERROR
    FirstByteTimeoutFIRST_BYTE_TIMEOUT
    UnroutableUNROUTABLE
    NameValue
    GatewayRuleFallbackErrorConnectionErrorCONNECTION_ERROR
    GatewayRuleFallbackErrorFirstByteTimeoutFIRST_BYTE_TIMEOUT
    GatewayRuleFallbackErrorUnroutableUNROUTABLE
    Value
    CONNECTION_ERROR
    FIRST_BYTE_TIMEOUT
    UNROUTABLE
    NameValue
    ConnectionErrorCONNECTION_ERROR
    FirstByteTimeoutFIRST_BYTE_TIMEOUT
    UnroutableUNROUTABLE
    NameValue
    ConnectionErrorCONNECTION_ERROR
    FirstByteTimeoutFIRST_BYTE_TIMEOUT
    UnroutableUNROUTABLE
    NameValue
    CONNECTION_ERRORCONNECTION_ERROR
    FIRST_BYTE_TIMEOUTFIRST_BYTE_TIMEOUT
    UNROUTABLEUNROUTABLE
    Value
    CONNECTION_ERROR
    FIRST_BYTE_TIMEOUT
    UNROUTABLE

    GatewayRuleFallbackTarget

    GatewayRuleFallbackTriggers

    GatewayRuleIamPrincipal

    GatewayRuleMatchModelEntry

    Value string
    Operator object
    Value string
    Operator interface{}
    value string
    operator any
    value String
    operator Object
    value string
    operator any
    value String
    operator Any

    GatewayRuleMatchModels

    GatewayRuleMatchPaths

    AnyOf List<string>
    AnyOf []string
    any_of list(string)
    anyOf List<String>
    anyOf string[]
    any_of Sequence[str]
    anyOf List<String>

    GatewayRuleMatchPrincipalEntryProperties

    GatewayRuleMatchPrincipals

    GatewayRulePrincipalMatchOperator

    NameValue
    StringEqualsStringEquals
    StringLikeStringLike
    NameValue
    GatewayRulePrincipalMatchOperatorStringEqualsStringEquals
    GatewayRulePrincipalMatchOperatorStringLikeStringLike
    Value
    StringEquals
    StringLike
    NameValue
    StringEqualsStringEquals
    StringLikeStringLike
    NameValue
    StringEqualsStringEquals
    StringLikeStringLike
    NameValue
    STRING_EQUALSStringEquals
    STRING_LIKEStringLike
    Value
    StringEquals
    StringLike

    GatewayRuleRouteToTargetAction0Properties

    GatewayRuleRouteToTargetAction1Properties

    GatewayRuleStaticOverride

    GatewayRuleStaticRoute

    GatewayRuleStatus

    NameValue
    CreatingCREATING
    ActiveACTIVE
    UpdatingUPDATING
    DeletingDELETING
    NameValue
    GatewayRuleStatusCreatingCREATING
    GatewayRuleStatusActiveACTIVE
    GatewayRuleStatusUpdatingUPDATING
    GatewayRuleStatusDeletingDELETING
    Value
    CREATING
    ACTIVE
    UPDATING
    DELETING
    NameValue
    CreatingCREATING
    ActiveACTIVE
    UpdatingUPDATING
    DeletingDELETING
    NameValue
    CreatingCREATING
    ActiveACTIVE
    UpdatingUPDATING
    DeletingDELETING
    NameValue
    CREATINGCREATING
    ACTIVEACTIVE
    UPDATINGUPDATING
    DELETINGDELETING
    Value
    CREATING
    ACTIVE
    UPDATING
    DELETING

    GatewayRuleSystemManagedBlock

    ManagedBy string
    ManagedBy string
    managed_by string
    managedBy String
    managedBy string
    managedBy String

    GatewayRuleTargetTrafficSplitEntry

    Name string
    TargetName string
    Weight float64
    Description string
    Fallback GatewayRuleFallback
    Metadata map[string]string
    Model string
    name string
    target_name string
    weight number
    description string
    fallback object
    metadata map(string)
    model string
    name String
    targetName String
    weight Double
    description String
    fallback GatewayRuleFallback
    metadata Map<String,String>
    model String
    name string
    targetName string
    weight number
    description string
    fallback GatewayRuleFallback
    metadata {[key: string]: string}
    model string
    name String
    targetName String
    weight Number
    description String
    fallback Property Map
    metadata Map<String>
    model String

    GatewayRuleTrafficSplitEntry

    GatewayRuleWeightedOverride

    GatewayRuleWeightedRoute

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo AWS Cloud Control

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.86.0
    published on Wednesday, Nov 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial