CfnGatewayRuleProps

class aws_cdk.aws_bedrockagentcore.CfnGatewayRuleProps(*, actions, priority, conditions=None, description=None, gateway_identifier=None)

Bases: object

Properties for defining a CfnGatewayRule.

Parameters:
See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-gatewayrule.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_bedrockagentcore as bedrockagentcore

cfn_gateway_rule_props = bedrockagentcore.CfnGatewayRuleProps(
    actions=[bedrockagentcore.CfnGatewayRule.ActionProperty(
        configuration_bundle=bedrockagentcore.CfnGatewayRule.ConfigurationBundleActionProperty(
            static_override=bedrockagentcore.CfnGatewayRule.StaticOverrideProperty(
                bundle_arn="bundleArn",
                bundle_version="bundleVersion"
            ),
            weighted_override=bedrockagentcore.CfnGatewayRule.WeightedOverrideProperty(
                traffic_split=[bedrockagentcore.CfnGatewayRule.TrafficSplitEntryProperty(
                    configuration_bundle=bedrockagentcore.CfnGatewayRule.ConfigurationBundleReferenceProperty(
                        bundle_arn="bundleArn",
                        bundle_version="bundleVersion"
                    ),
                    name="name",
                    weight=123,

                    # the properties below are optional
                    description="description",
                    metadata={
                        "metadata_key": "metadata"
                    }
                )]
            )
        ),
        route_to_target=bedrockagentcore.CfnGatewayRule.RouteToTargetActionProperty(
            static_route=bedrockagentcore.CfnGatewayRule.StaticRouteProperty(
                target_name="targetName"
            ),
            weighted_route=bedrockagentcore.CfnGatewayRule.WeightedRouteProperty(
                traffic_split=[bedrockagentcore.CfnGatewayRule.TargetTrafficSplitEntryProperty(
                    name="name",
                    target_name="targetName",
                    weight=123,

                    # the properties below are optional
                    description="description",
                    metadata={
                        "metadata_key": "metadata"
                    }
                )]
            )
        )
    )],
    priority=123,

    # the properties below are optional
    conditions=[bedrockagentcore.CfnGatewayRule.ConditionProperty(
        match_paths=bedrockagentcore.CfnGatewayRule.MatchPathsProperty(
            any_of=["anyOf"]
        ),
        match_principals=bedrockagentcore.CfnGatewayRule.MatchPrincipalsProperty(
            any_of=[bedrockagentcore.CfnGatewayRule.MatchPrincipalEntryProperty(
                iam_principal=bedrockagentcore.CfnGatewayRule.IamPrincipalProperty(
                    arn="arn",

                    # the properties below are optional
                    operator="operator"
                )
            )]
        )
    )],
    description="description",
    gateway_identifier="gatewayIdentifier"
)

Attributes

actions

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-gatewayrule.html#cfn-bedrockagentcore-gatewayrule-actions

Type:

see

conditions

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-gatewayrule.html#cfn-bedrockagentcore-gatewayrule-conditions

Type:

see

description

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-gatewayrule.html#cfn-bedrockagentcore-gatewayrule-description

Type:

see

gateway_identifier

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-gatewayrule.html#cfn-bedrockagentcore-gatewayrule-gatewayidentifier

Type:

see

priority

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-gatewayrule.html#cfn-bedrockagentcore-gatewayrule-priority

Type:

see