# ActionProperty

Represents a routing rule action.

The only supported action is `invokeApi` .

- Source: Generated at build time
- Type last changed: v2.197.0 · 21 May 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apigatewayv2 as apigatewayv2 } from 'aws-cdk-lib';
const actionProperty: apigatewayv2.CfnRoutingRule.ActionProperty = {
  invokeApi: {
    apiId: 'apiId',
    stage: 'stage',

    // the properties below are optional
    stripBasePath: false,
  },
};
```

Python:

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

action_property = apigatewayv2.CfnRoutingRule.ActionProperty(
    invoke_api=apigatewayv2.CfnRoutingRule.ActionInvokeApiProperty(
        api_id="apiId",
        stage="stage",

        # the properties below are optional
        strip_base_path=False
    )
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.apigatewayv2.*;

ActionProperty actionProperty = ActionProperty.builder()
        .invokeApi(ActionInvokeApiProperty.builder()
                .apiId("apiId")
                .stage("stage")

                // the properties below are optional
                .stripBasePath(false)
                .build())
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Apigatewayv2;

var actionProperty = new ActionProperty {
    InvokeApi = new ActionInvokeApiProperty {
        ApiId = "apiId",
        Stage = "stage",

        // the properties below are optional
        StripBasePath = false
    }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

actionProperty := &ActionProperty{
	InvokeApi: &ActionInvokeApiProperty{
		ApiId: jsii.String("apiId"),
		Stage: jsii.String("stage"),

		// the properties below are optional
		StripBasePath: jsii.Boolean(false),
	},
}
```

## Properties

- `invokeApi`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnRoutingRule.ActionInvokeApiProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigatewayv2.CfnRoutingRule.ActionInvokeApiProperty.html) (required) — Represents an InvokeApi action.
