CfnGatewayRuleProps
- class aws_cdk.aws_bedrockagentcore.CfnGatewayRuleProps(*, actions, priority, conditions=None, description=None, gateway_identifier=None)
Bases:
objectProperties for defining a
CfnGatewayRule.- Parameters:
actions (
Union[IResolvable,Sequence[Union[IResolvable,ActionProperty,Dict[str,Any]]]])priority (
Union[int,float])conditions (
Union[IResolvable,Sequence[Union[IResolvable,ConditionProperty,Dict[str,Any]]],None])description (
Optional[str])gateway_identifier (
Optional[str])
- See:
- 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
-
- Type:
see
- conditions
-
- Type:
see
- description
-
- Type:
see
- gateway_identifier
-
- Type:
see