Skip to content
v2.275.0

ActionProperty Struct ​

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';
const actionProperty: bedrockagentcore.CfnGatewayRule.ActionProperty = {
  configurationBundle: {
    staticOverride: {
      bundleArn: 'bundleArn',
      bundleVersion: 'bundleVersion',
    },
    weightedOverride: {
      trafficSplit: [{
        configurationBundle: {
          bundleArn: 'bundleArn',
          bundleVersion: 'bundleVersion',
        },
        name: 'name',
        weight: 123,

        // the properties below are optional
        description: 'description',
        metadata: {
          metadataKey: 'metadata',
        },
      }],
    },
  },
  routeToTarget: {
    staticRoute: {
      targetName: 'targetName',
    },
    weightedRoute: {
      trafficSplit: [{
        name: 'name',
        targetName: 'targetName',
        weight: 123,

        // the properties below are optional
        description: 'description',
        metadata: {
          metadataKey: 'metadata',
        },
      }],
    },
  },
};

Properties ​

configurationBundleoptionalIResolvable | CfnGatewayRule.ConfigurationBundleActionPropertyconfiguration_bundleoptionaltyping.Union[IResolvable, ConfigurationBundleActionProperty]configurationBundleoptionalIResolvableConfigurationBundleoptionalIResolvableConfigurationBundleoptionalinterface{}#
routeToTargetoptionalIResolvable | CfnGatewayRule.RouteToTargetActionPropertyroute_to_targetoptionaltyping.Union[IResolvable, RouteToTargetActionProperty]routeToTargetoptionalIResolvableRouteToTargetoptionalIResolvableRouteToTargetoptionalinterface{}#