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.79.0
published on Monday, Sep 14, 2026 by Pulumi
aws-native logo aws-native logo

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

Viewing docs for AWS Cloud Control v1.79.0
published on Monday, Sep 14, 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<Union<Pulumi.AwsNative.BedrockAgentCore.Outputs.GatewayRuleCondition0Properties, Pulumi.AwsNative.BedrockAgentCore.Outputs.GatewayRuleCondition1Properties>>
    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<Either<GatewayRuleAction0Properties,GatewayRuleAction1Properties>>
    conditions List<Either<GatewayRuleCondition0Properties,GatewayRuleCondition1Properties>>
    createdAt String
    description String
    gatewayArn String
    priority Double
    ruleId String
    status GatewayRuleStatus
    system GatewayRuleSystemManagedBlock
    updatedAt String
    actions (GatewayRuleAction0Properties | GatewayRuleAction1Properties)[]
    conditions (GatewayRuleCondition0Properties | GatewayRuleCondition1Properties)[]
    createdAt string
    description string
    gatewayArn string
    priority number
    ruleId string
    status GatewayRuleStatus
    system GatewayRuleSystemManagedBlock
    updatedAt string
    actions List<Property Map | Property Map>
    conditions List<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

    GatewayRuleCondition0Properties

    GatewayRuleCondition1Properties

    GatewayRuleConfigurationBundleAction0Properties

    GatewayRuleConfigurationBundleAction1Properties

    GatewayRuleConfigurationBundleReference

    GatewayRuleIamPrincipal

    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

    GatewayRuleRouteToTargetAction0Properties

    GatewayRuleRouteToTargetAction1Properties

    GatewayRuleStaticOverride

    GatewayRuleStaticRoute

    TargetName string
    TargetName string
    targetName String
    targetName string
    targetName String

    GatewayRuleStatus

    GatewayRuleSystemManagedBlock

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

    GatewayRuleTargetTrafficSplitEntry

    Name string
    TargetName string
    Weight double
    Description string
    Metadata Dictionary<string, string>
    Name string
    TargetName string
    Weight float64
    Description string
    Metadata map[string]string
    name string
    target_name string
    weight number
    description string
    metadata map(string)
    name String
    targetName String
    weight Double
    description String
    metadata Map<String,String>
    name string
    targetName string
    weight number
    description string
    metadata {[key: string]: string}
    name str
    target_name str
    weight float
    description str
    metadata Mapping[str, str]
    name String
    targetName String
    weight Number
    description String
    metadata Map<String>

    GatewayRuleTrafficSplitEntry

    GatewayRuleWeightedOverride

    GatewayRuleWeightedRoute

    Package Details

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

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

    Viewing docs for AWS Cloud Control v1.79.0
    published on Monday, Sep 14, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial