File tree Expand file tree Collapse file tree
packages/cdkConstructs/src/constructs Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,7 +48,21 @@ export class RestApiGateway extends Construct {
4848 public readonly api : RestApi
4949 public readonly role : IRole
5050
51- /** Builds API Gateway infrastructure and validates CSOC forwarding configuration. */
51+ /**
52+ * Builds API Gateway infrastructure and validates CSOC forwarding configuration.
53+ * @example
54+ * ```ts
55+ * const api = new RestApiGateway(this, "MyApi", {
56+ * stackName: "my-service",
57+ * logRetentionInDays: 30,
58+ * mutualTlsTrustStoreKey: "truststore.pem",
59+ * forwardCsocLogs: true,
60+ * csocApiGatewayDestination: "arn:aws:logs:eu-west-2:123456789012:destination:csoc",
61+ * executionPolicies: [myLambdaInvokePolicy]
62+ * })
63+ * api.api.root.addResource("patients")
64+ * ```
65+ */
5266 public constructor ( scope : Construct , id : string , props : RestApiGatewayProps ) {
5367 super ( scope , id )
5468
You can’t perform that action at this time.
0 commit comments