@awboost/cfn-resource-types 0.1.182 → 0.1.184
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/AWS-ApiGateway-Account.d.ts +0 -3
- package/lib/AWS-ApiGateway-ApiKey.d.ts +0 -27
- package/lib/AWS-ApiGateway-Authorizer.d.ts +0 -30
- package/lib/AWS-ApiGateway-BasePathMapping.d.ts +0 -12
- package/lib/AWS-ApiGateway-ClientCertificate.d.ts +0 -6
- package/lib/AWS-ApiGateway-Deployment.d.ts +1 -61
- package/lib/AWS-ApiGateway-DocumentationPart.d.ts +3 -23
- package/lib/AWS-ApiGateway-DocumentationVersion.d.ts +0 -5
- package/lib/AWS-ApiGateway-GatewayResponse.d.ts +0 -15
- package/lib/AWS-ApiGateway-Method.d.ts +1 -103
- package/lib/AWS-ApiGateway-Model.d.ts +0 -12
- package/lib/AWS-ApiGateway-RequestValidator.d.ts +0 -12
- package/lib/AWS-ApiGateway-Resource.d.ts +0 -9
- package/lib/AWS-ApiGateway-RestApi.d.ts +0 -33
- package/lib/AWS-ApiGateway-Stage.d.ts +3 -69
- package/lib/AWS-ApiGateway-UsagePlan.d.ts +4 -32
- package/lib/AWS-ApiGateway-UsagePlanKey.d.ts +0 -3
- package/lib/AWS-AppSync-Api.d.ts +4 -7
- package/lib/AWS-DataSync-Task.d.ts +4 -0
- package/lib/AWS-RDS-DBCluster.d.ts +1 -0
- package/lib/AWS-RDS-DBShardGroup.d.ts +84 -0
- package/lib/AWS-RDS-DBShardGroup.js +12 -0
- package/lib/AWS-Wisdom-AIAgent.d.ts +182 -0
- package/lib/AWS-Wisdom-AIAgent.js +12 -0
- package/package.json +1 -1
|
@@ -5,9 +5,6 @@ import type { ResourceOptions as $ResourceOptions } from "@awboost/cfn-template-
|
|
|
5
5
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-account.html}
|
|
6
6
|
*/
|
|
7
7
|
export type ApiGatewayAccountProperties = {
|
|
8
|
-
/**
|
|
9
|
-
* The ARN of an Amazon CloudWatch role for the current Account.
|
|
10
|
-
*/
|
|
11
8
|
CloudWatchRoleArn?: string;
|
|
12
9
|
};
|
|
13
10
|
/**
|
|
@@ -5,38 +5,17 @@ import type { ResourceOptions as $ResourceOptions } from "@awboost/cfn-template-
|
|
|
5
5
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-apikey.html}
|
|
6
6
|
*/
|
|
7
7
|
export type ApiGatewayApiKeyProperties = {
|
|
8
|
-
/**
|
|
9
|
-
* An MKT customer identifier, when integrating with the AWS SaaS Marketplace.
|
|
10
|
-
*/
|
|
11
8
|
CustomerId?: string;
|
|
12
|
-
/**
|
|
13
|
-
* The description of the ApiKey.
|
|
14
|
-
*/
|
|
15
9
|
Description?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Specifies whether the ApiKey can be used by callers.
|
|
18
|
-
*/
|
|
19
10
|
Enabled?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Specifies whether (``true``) or not (``false``) the key identifier is distinct from the created API key value. This parameter is deprecated and should not be used.
|
|
22
|
-
*/
|
|
23
11
|
GenerateDistinctId?: boolean;
|
|
24
12
|
/**
|
|
25
13
|
* A name for the API key. If you don't specify a name, CFN generates a unique physical ID and uses that ID for the API key name. For more information, see [Name Type](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-name.html).
|
|
26
14
|
If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
|
|
27
15
|
*/
|
|
28
16
|
Name?: string;
|
|
29
|
-
/**
|
|
30
|
-
* DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.
|
|
31
|
-
*/
|
|
32
17
|
StageKeys?: StageKey[];
|
|
33
|
-
/**
|
|
34
|
-
* The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with ``aws:``. The tag value can be up to 256 characters.
|
|
35
|
-
*/
|
|
36
18
|
Tags?: Tag[];
|
|
37
|
-
/**
|
|
38
|
-
* Specifies a value of the API key.
|
|
39
|
-
*/
|
|
40
19
|
Value?: string;
|
|
41
20
|
};
|
|
42
21
|
/**
|
|
@@ -52,13 +31,7 @@ export type ApiGatewayApiKeyAttributes = {
|
|
|
52
31
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-apikey-stagekey.html}
|
|
53
32
|
*/
|
|
54
33
|
export type StageKey = {
|
|
55
|
-
/**
|
|
56
|
-
* The string identifier of the associated RestApi.
|
|
57
|
-
*/
|
|
58
34
|
RestApiId?: string;
|
|
59
|
-
/**
|
|
60
|
-
* The stage name associated with the stage key.
|
|
61
|
-
*/
|
|
62
35
|
StageName?: string;
|
|
63
36
|
};
|
|
64
37
|
/**
|
|
@@ -5,45 +5,15 @@ import type { ResourceOptions as $ResourceOptions } from "@awboost/cfn-template-
|
|
|
5
5
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-authorizer.html}
|
|
6
6
|
*/
|
|
7
7
|
export type ApiGatewayAuthorizerProperties = {
|
|
8
|
-
/**
|
|
9
|
-
* Optional customer-defined field, used in OpenAPI imports and exports without functional impact.
|
|
10
|
-
*/
|
|
11
8
|
AuthType?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Specifies the required credentials as an IAM role for API Gateway to invoke the authorizer. To specify an IAM role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To use resource-based permissions on the Lambda function, specify null.
|
|
14
|
-
*/
|
|
15
9
|
AuthorizerCredentials?: string;
|
|
16
|
-
/**
|
|
17
|
-
* The TTL in seconds of cached authorizer results. If it equals 0, authorization caching is disabled. If it is greater than 0, API Gateway will cache authorizer responses. If this field is not set, the default value is 300. The maximum value is 3600, or 1 hour.
|
|
18
|
-
*/
|
|
19
10
|
AuthorizerResultTtlInSeconds?: number;
|
|
20
|
-
/**
|
|
21
|
-
* Specifies the authorizer's Uniform Resource Identifier (URI). For ``TOKEN`` or ``REQUEST`` authorizers, this must be a well-formed Lambda function URI, for example, ``arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:{account_id}:function:{lambda_function_name}/invocations``. In general, the URI has this form ``arn:aws:apigateway:{region}:lambda:path/{service_api}``, where ``{region}`` is the same as the region hosting the Lambda function, ``path`` indicates that the remaining substring in the URI should be treated as the path to the resource, including the initial ``/``. For Lambda functions, this is usually of the form ``/2015-03-31/functions/[FunctionARN]/invocations``.
|
|
22
|
-
*/
|
|
23
11
|
AuthorizerUri?: string;
|
|
24
|
-
/**
|
|
25
|
-
* The identity source for which authorization is requested. For a ``TOKEN`` or ``COGNITO_USER_POOLS`` authorizer, this is required and specifies the request header mapping expression for the custom header holding the authorization token submitted by the client. For example, if the token header name is ``Auth``, the header mapping expression is ``method.request.header.Auth``. For the ``REQUEST`` authorizer, this is required when authorization caching is enabled. The value is a comma-separated string of one or more mapping expressions of the specified request parameters. For example, if an ``Auth`` header, a ``Name`` query string parameter are defined as identity sources, this value is ``method.request.header.Auth, method.request.querystring.Name``. These parameters will be used to derive the authorization caching key and to perform runtime validation of the ``REQUEST`` authorizer by verifying all of the identity-related request parameters are present, not null and non-empty. Only when this is true does the authorizer invoke the authorizer Lambda function, otherwise, it returns a 401 Unauthorized response without calling the Lambda function. The valid value is a string of comma-separated mapping expressions of the specified request parameters. When the authorization caching is not enabled, this property is optional.
|
|
26
|
-
*/
|
|
27
12
|
IdentitySource?: string;
|
|
28
|
-
/**
|
|
29
|
-
* A validation expression for the incoming identity token. For ``TOKEN`` authorizers, this value is a regular expression. For ``COGNITO_USER_POOLS`` authorizers, API Gateway will match the ``aud`` field of the incoming token from the client against the specified regular expression. It will invoke the authorizer's Lambda function when there is a match. Otherwise, it will return a 401 Unauthorized response without calling the Lambda function. The validation expression does not apply to the ``REQUEST`` authorizer.
|
|
30
|
-
*/
|
|
31
13
|
IdentityValidationExpression?: string;
|
|
32
|
-
/**
|
|
33
|
-
* The name of the authorizer.
|
|
34
|
-
*/
|
|
35
14
|
Name: string;
|
|
36
|
-
/**
|
|
37
|
-
* A list of the Amazon Cognito user pool ARNs for the ``COGNITO_USER_POOLS`` authorizer. Each element is of this format: ``arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id}``. For a ``TOKEN`` or ``REQUEST`` authorizer, this is not defined.
|
|
38
|
-
*/
|
|
39
15
|
ProviderARNs?: string[];
|
|
40
|
-
/**
|
|
41
|
-
* The string identifier of the associated RestApi.
|
|
42
|
-
*/
|
|
43
16
|
RestApiId: string;
|
|
44
|
-
/**
|
|
45
|
-
* The authorizer type. Valid values are ``TOKEN`` for a Lambda function using a single authorization token submitted in a custom header, ``REQUEST`` for a Lambda function using incoming request parameters, and ``COGNITO_USER_POOLS`` for using an Amazon Cognito user pool.
|
|
46
|
-
*/
|
|
47
17
|
Type: string;
|
|
48
18
|
};
|
|
49
19
|
/**
|
|
@@ -5,21 +5,9 @@ import type { ResourceOptions as $ResourceOptions } from "@awboost/cfn-template-
|
|
|
5
5
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-basepathmapping.html}
|
|
6
6
|
*/
|
|
7
7
|
export type ApiGatewayBasePathMappingProperties = {
|
|
8
|
-
/**
|
|
9
|
-
* The base path name that callers of the API must provide as part of the URL after the domain name.
|
|
10
|
-
*/
|
|
11
8
|
BasePath?: string;
|
|
12
|
-
/**
|
|
13
|
-
* The domain name of the BasePathMapping resource to be described.
|
|
14
|
-
*/
|
|
15
9
|
DomainName: string;
|
|
16
|
-
/**
|
|
17
|
-
* The string identifier of the associated RestApi.
|
|
18
|
-
*/
|
|
19
10
|
RestApiId?: string;
|
|
20
|
-
/**
|
|
21
|
-
* The name of the associated stage.
|
|
22
|
-
*/
|
|
23
11
|
Stage?: string;
|
|
24
12
|
};
|
|
25
13
|
/**
|
|
@@ -5,13 +5,7 @@ import type { ResourceOptions as $ResourceOptions } from "@awboost/cfn-template-
|
|
|
5
5
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-clientcertificate.html}
|
|
6
6
|
*/
|
|
7
7
|
export type ApiGatewayClientCertificateProperties = {
|
|
8
|
-
/**
|
|
9
|
-
* The description of the client certificate.
|
|
10
|
-
*/
|
|
11
8
|
Description?: string;
|
|
12
|
-
/**
|
|
13
|
-
* The collection of tags. Each tag element is associated with a given resource.
|
|
14
|
-
*/
|
|
15
9
|
Tags?: Tag[];
|
|
16
10
|
};
|
|
17
11
|
/**
|
|
@@ -6,24 +6,15 @@ import type { ResourceOptions as $ResourceOptions } from "@awboost/cfn-template-
|
|
|
6
6
|
*/
|
|
7
7
|
export type ApiGatewayDeploymentProperties = {
|
|
8
8
|
/**
|
|
9
|
-
* The
|
|
9
|
+
* The ``DeploymentCanarySettings`` property type specifies settings for the canary deployment.
|
|
10
10
|
*/
|
|
11
11
|
DeploymentCanarySettings?: DeploymentCanarySettings;
|
|
12
|
-
/**
|
|
13
|
-
* The description for the Deployment resource to create.
|
|
14
|
-
*/
|
|
15
12
|
Description?: string;
|
|
16
|
-
/**
|
|
17
|
-
* The string identifier of the associated RestApi.
|
|
18
|
-
*/
|
|
19
13
|
RestApiId: string;
|
|
20
14
|
/**
|
|
21
15
|
* The description of the Stage resource for the Deployment resource to create. To specify a stage description, you must also provide a stage name.
|
|
22
16
|
*/
|
|
23
17
|
StageDescription?: StageDescription;
|
|
24
|
-
/**
|
|
25
|
-
* The name of the Stage resource for the Deployment resource to create.
|
|
26
|
-
*/
|
|
27
18
|
StageName?: string;
|
|
28
19
|
};
|
|
29
20
|
/**
|
|
@@ -40,13 +31,7 @@ export type ApiGatewayDeploymentAttributes = {
|
|
|
40
31
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-accesslogsetting.html}
|
|
41
32
|
*/
|
|
42
33
|
export type AccessLogSetting = {
|
|
43
|
-
/**
|
|
44
|
-
* The Amazon Resource Name (ARN) of the CloudWatch Logs log group or Kinesis Data Firehose delivery stream to receive access logs. If you specify a Kinesis Data Firehose delivery stream, the stream name must begin with ``amazon-apigateway-``.
|
|
45
|
-
*/
|
|
46
34
|
DestinationArn?: string;
|
|
47
|
-
/**
|
|
48
|
-
* A single line format of the access logs of data, as specified by selected $context variables. The format must include at least ``$context.requestId``.
|
|
49
|
-
*/
|
|
50
35
|
Format?: string;
|
|
51
36
|
};
|
|
52
37
|
/**
|
|
@@ -56,17 +41,8 @@ export type AccessLogSetting = {
|
|
|
56
41
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-canarysetting.html}
|
|
57
42
|
*/
|
|
58
43
|
export type CanarySetting = {
|
|
59
|
-
/**
|
|
60
|
-
* The percent (0-100) of traffic diverted to a canary deployment.
|
|
61
|
-
*/
|
|
62
44
|
PercentTraffic?: number;
|
|
63
|
-
/**
|
|
64
|
-
* Stage variables overridden for a canary release deployment, including new stage variables introduced in the canary. These stage variables are represented as a string-to-string map between stage variable names and their values.
|
|
65
|
-
*/
|
|
66
45
|
StageVariableOverrides?: Record<string, string>;
|
|
67
|
-
/**
|
|
68
|
-
* A Boolean flag to indicate whether the canary deployment uses the stage cache or not.
|
|
69
|
-
*/
|
|
70
46
|
UseStageCache?: boolean;
|
|
71
47
|
};
|
|
72
48
|
/**
|
|
@@ -75,17 +51,8 @@ export type CanarySetting = {
|
|
|
75
51
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-deploymentcanarysettings.html}
|
|
76
52
|
*/
|
|
77
53
|
export type DeploymentCanarySettings = {
|
|
78
|
-
/**
|
|
79
|
-
* The percentage (0.0-100.0) of traffic routed to the canary deployment.
|
|
80
|
-
*/
|
|
81
54
|
PercentTraffic?: number;
|
|
82
|
-
/**
|
|
83
|
-
* A stage variable overrides used for the canary release deployment. They can override existing stage variables or add new stage variables for the canary release deployment. These stage variables are represented as a string-to-string map between stage variable names and their values.
|
|
84
|
-
*/
|
|
85
55
|
StageVariableOverrides?: Record<string, string>;
|
|
86
|
-
/**
|
|
87
|
-
* A Boolean flag to indicate whether the canary release deployment uses the stage cache or not.
|
|
88
|
-
*/
|
|
89
56
|
UseStageCache?: boolean;
|
|
90
57
|
};
|
|
91
58
|
/**
|
|
@@ -95,45 +62,21 @@ export type DeploymentCanarySettings = {
|
|
|
95
62
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-methodsetting.html}
|
|
96
63
|
*/
|
|
97
64
|
export type MethodSetting = {
|
|
98
|
-
/**
|
|
99
|
-
* Specifies whether the cached responses are encrypted.
|
|
100
|
-
*/
|
|
101
65
|
CacheDataEncrypted?: boolean;
|
|
102
|
-
/**
|
|
103
|
-
* Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached.
|
|
104
|
-
*/
|
|
105
66
|
CacheTtlInSeconds?: number;
|
|
106
|
-
/**
|
|
107
|
-
* Specifies whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached.
|
|
108
|
-
*/
|
|
109
67
|
CachingEnabled?: boolean;
|
|
110
|
-
/**
|
|
111
|
-
* Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to Amazon CloudWatch Logs. This can be useful to troubleshoot APIs, but can result in logging sensitive data. We recommend that you don't enable this option for production APIs.
|
|
112
|
-
*/
|
|
113
68
|
DataTraceEnabled?: boolean;
|
|
114
69
|
/**
|
|
115
70
|
* The HTTP method.
|
|
116
71
|
*/
|
|
117
72
|
HttpMethod?: string;
|
|
118
|
-
/**
|
|
119
|
-
* Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch Logs. Valid values are ``OFF``, ``ERROR``, and ``INFO``. Choose ``ERROR`` to write only error-level entries to CloudWatch Logs, or choose ``INFO`` to include all ``ERROR`` events as well as extra informational events.
|
|
120
|
-
*/
|
|
121
73
|
LoggingLevel?: string;
|
|
122
|
-
/**
|
|
123
|
-
* Specifies whether Amazon CloudWatch metrics are enabled for this method.
|
|
124
|
-
*/
|
|
125
74
|
MetricsEnabled?: boolean;
|
|
126
75
|
/**
|
|
127
76
|
* The resource path for this method. Forward slashes (``/``) are encoded as ``~1`` and the initial slash must include a forward slash. For example, the path value ``/resource/subresource`` must be encoded as ``/~1resource~1subresource``. To specify the root path, use only a slash (``/``).
|
|
128
77
|
*/
|
|
129
78
|
ResourcePath?: string;
|
|
130
|
-
/**
|
|
131
|
-
* Specifies the throttling burst limit.
|
|
132
|
-
*/
|
|
133
79
|
ThrottlingBurstLimit?: number;
|
|
134
|
-
/**
|
|
135
|
-
* Specifies the throttling rate limit.
|
|
136
|
-
*/
|
|
137
80
|
ThrottlingRateLimit?: number;
|
|
138
81
|
};
|
|
139
82
|
/**
|
|
@@ -146,9 +89,6 @@ export type StageDescription = {
|
|
|
146
89
|
* Specifies settings for logging access in this stage.
|
|
147
90
|
*/
|
|
148
91
|
AccessLogSetting?: AccessLogSetting;
|
|
149
|
-
/**
|
|
150
|
-
* Specifies whether a cache cluster is enabled for the stage.
|
|
151
|
-
*/
|
|
152
92
|
CacheClusterEnabled?: boolean;
|
|
153
93
|
/**
|
|
154
94
|
* The size of the stage's cache cluster. For more information, see [cacheClusterSize](https://docs.aws.amazon.com/apigateway/latest/api/API_CreateStage.html#apigw-CreateStage-request-cacheClusterSize) in the *API Gateway API Reference*.
|
|
@@ -6,16 +6,11 @@ import type { ResourceOptions as $ResourceOptions } from "@awboost/cfn-template-
|
|
|
6
6
|
*/
|
|
7
7
|
export type ApiGatewayDocumentationPartProperties = {
|
|
8
8
|
/**
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
* The ``Location`` property specifies the location of the Amazon API Gateway API entity that the documentation applies to. ``Location`` is a property of the [AWS::ApiGateway::DocumentationPart](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-documentationpart.html) resource.
|
|
10
|
+
For more information about each property, including constraints and valid values, see [DocumentationPart](https://docs.aws.amazon.com/apigateway/latest/api/API_DocumentationPartLocation.html) in the *Amazon API Gateway REST API Reference*.
|
|
11
|
+
*/
|
|
11
12
|
Location: Location;
|
|
12
|
-
/**
|
|
13
|
-
* The new documentation content map of the targeted API entity. Enclosed key-value pairs are API-specific, but only OpenAPI-compliant key-value pairs can be exported and, hence, published.
|
|
14
|
-
*/
|
|
15
13
|
Properties: string;
|
|
16
|
-
/**
|
|
17
|
-
* The string identifier of the associated RestApi.
|
|
18
|
-
*/
|
|
19
14
|
RestApiId: string;
|
|
20
15
|
};
|
|
21
16
|
/**
|
|
@@ -32,25 +27,10 @@ export type ApiGatewayDocumentationPartAttributes = {
|
|
|
32
27
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-documentationpart-location.html}
|
|
33
28
|
*/
|
|
34
29
|
export type Location = {
|
|
35
|
-
/**
|
|
36
|
-
* The HTTP verb of a method. It is a valid field for the API entity types of ``METHOD``, ``PATH_PARAMETER``, ``QUERY_PARAMETER``, ``REQUEST_HEADER``, ``REQUEST_BODY``, ``RESPONSE``, ``RESPONSE_HEADER``, and ``RESPONSE_BODY``. The default value is ``*`` for any method. When an applicable child entity inherits the content of an entity of the same type with more general specifications of the other ``location`` attributes, the child entity's ``method`` attribute must match that of the parent entity exactly.
|
|
37
|
-
*/
|
|
38
30
|
Method?: string;
|
|
39
|
-
/**
|
|
40
|
-
* The name of the targeted API entity. It is a valid and required field for the API entity types of ``AUTHORIZER``, ``MODEL``, ``PATH_PARAMETER``, ``QUERY_PARAMETER``, ``REQUEST_HEADER``, ``REQUEST_BODY`` and ``RESPONSE_HEADER``. It is an invalid field for any other entity type.
|
|
41
|
-
*/
|
|
42
31
|
Name?: string;
|
|
43
|
-
/**
|
|
44
|
-
* The URL path of the target. It is a valid field for the API entity types of ``RESOURCE``, ``METHOD``, ``PATH_PARAMETER``, ``QUERY_PARAMETER``, ``REQUEST_HEADER``, ``REQUEST_BODY``, ``RESPONSE``, ``RESPONSE_HEADER``, and ``RESPONSE_BODY``. The default value is ``/`` for the root resource. When an applicable child entity inherits the content of another entity of the same type with more general specifications of the other ``location`` attributes, the child entity's ``path`` attribute must match that of the parent entity as a prefix.
|
|
45
|
-
*/
|
|
46
32
|
Path?: string;
|
|
47
|
-
/**
|
|
48
|
-
* The HTTP status code of a response. It is a valid field for the API entity types of ``RESPONSE``, ``RESPONSE_HEADER``, and ``RESPONSE_BODY``. The default value is ``*`` for any status code. When an applicable child entity inherits the content of an entity of the same type with more general specifications of the other ``location`` attributes, the child entity's ``statusCode`` attribute must match that of the parent entity exactly.
|
|
49
|
-
*/
|
|
50
33
|
StatusCode?: string;
|
|
51
|
-
/**
|
|
52
|
-
* The type of API entity to which the documentation content applies. Valid values are ``API``, ``AUTHORIZER``, ``MODEL``, ``RESOURCE``, ``METHOD``, ``PATH_PARAMETER``, ``QUERY_PARAMETER``, ``REQUEST_HEADER``, ``REQUEST_BODY``, ``RESPONSE``, ``RESPONSE_HEADER``, and ``RESPONSE_BODY``. Content inheritance does not apply to any entity of the ``API``, ``AUTHORIZER``, ``METHOD``, ``MODEL``, ``REQUEST_BODY``, or ``RESOURCE`` type.
|
|
53
|
-
*/
|
|
54
34
|
Type?: "API" | "AUTHORIZER" | "MODEL" | "RESOURCE" | "METHOD" | "PATH_PARAMETER" | "QUERY_PARAMETER" | "REQUEST_HEADER" | "REQUEST_BODY" | "RESPONSE" | "RESPONSE_HEADER" | "RESPONSE_BODY";
|
|
55
35
|
};
|
|
56
36
|
/**
|
|
@@ -5,17 +5,12 @@ import type { ResourceOptions as $ResourceOptions } from "@awboost/cfn-template-
|
|
|
5
5
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-documentationversion.html}
|
|
6
6
|
*/
|
|
7
7
|
export type ApiGatewayDocumentationVersionProperties = {
|
|
8
|
-
/**
|
|
9
|
-
* A description about the new documentation snapshot.
|
|
10
|
-
*/
|
|
11
8
|
Description?: string;
|
|
12
9
|
/**
|
|
13
|
-
* The version identifier of the to-be-updated documentation version.
|
|
14
10
|
* @minLength `1`
|
|
15
11
|
*/
|
|
16
12
|
DocumentationVersion: string;
|
|
17
13
|
/**
|
|
18
|
-
* The string identifier of the associated RestApi.
|
|
19
14
|
* @minLength `1`
|
|
20
15
|
*/
|
|
21
16
|
RestApiId: string;
|
|
@@ -5,25 +5,10 @@ import type { ResourceOptions as $ResourceOptions } from "@awboost/cfn-template-
|
|
|
5
5
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-gatewayresponse.html}
|
|
6
6
|
*/
|
|
7
7
|
export type ApiGatewayGatewayResponseProperties = {
|
|
8
|
-
/**
|
|
9
|
-
* Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.
|
|
10
|
-
*/
|
|
11
8
|
ResponseParameters?: Record<string, string>;
|
|
12
|
-
/**
|
|
13
|
-
* Response templates of the GatewayResponse as a string-to-string map of key-value pairs.
|
|
14
|
-
*/
|
|
15
9
|
ResponseTemplates?: Record<string, string>;
|
|
16
|
-
/**
|
|
17
|
-
* The response type of the associated GatewayResponse.
|
|
18
|
-
*/
|
|
19
10
|
ResponseType: string;
|
|
20
|
-
/**
|
|
21
|
-
* The string identifier of the associated RestApi.
|
|
22
|
-
*/
|
|
23
11
|
RestApiId: string;
|
|
24
|
-
/**
|
|
25
|
-
* The HTTP status code for this GatewayResponse.
|
|
26
|
-
*/
|
|
27
12
|
StatusCode?: string;
|
|
28
13
|
};
|
|
29
14
|
/**
|
|
@@ -5,58 +5,25 @@ import type { ResourceOptions as $ResourceOptions } from "@awboost/cfn-template-
|
|
|
5
5
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-method.html}
|
|
6
6
|
*/
|
|
7
7
|
export type ApiGatewayMethodProperties = {
|
|
8
|
-
/**
|
|
9
|
-
* A boolean flag specifying whether a valid ApiKey is required to invoke this method.
|
|
10
|
-
*/
|
|
11
8
|
ApiKeyRequired?: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* A list of authorization scopes configured on the method. The scopes are used with a ``COGNITO_USER_POOLS`` authorizer to authorize the method invocation. The authorization works by matching the method scopes against the scopes parsed from the access token in the incoming request. The method invocation is authorized if any method scopes matches a claimed scope in the access token. Otherwise, the invocation is not authorized. When the method scope is configured, the client must provide an access token instead of an identity token for authorization purposes.
|
|
14
|
-
*/
|
|
15
9
|
AuthorizationScopes?: string[];
|
|
16
10
|
/**
|
|
17
11
|
* The method's authorization type. This parameter is required. For valid values, see [Method](https://docs.aws.amazon.com/apigateway/latest/api/API_Method.html) in the *API Gateway API Reference*.
|
|
18
12
|
If you specify the ``AuthorizerId`` property, specify ``CUSTOM`` or ``COGNITO_USER_POOLS`` for this property.
|
|
19
13
|
*/
|
|
20
14
|
AuthorizationType?: string;
|
|
21
|
-
/**
|
|
22
|
-
* The identifier of an authorizer to use on this method. The method's authorization type must be ``CUSTOM`` or ``COGNITO_USER_POOLS``.
|
|
23
|
-
*/
|
|
24
15
|
AuthorizerId?: string;
|
|
25
|
-
/**
|
|
26
|
-
* The method's HTTP verb.
|
|
27
|
-
*/
|
|
28
16
|
HttpMethod: string;
|
|
29
17
|
/**
|
|
30
|
-
*
|
|
18
|
+
* ``Integration`` is a property of the [AWS::ApiGateway::Method](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-method.html) resource that specifies information about the target backend that a method calls.
|
|
31
19
|
*/
|
|
32
20
|
Integration?: Integration;
|
|
33
|
-
/**
|
|
34
|
-
* Gets a method response associated with a given HTTP status code.
|
|
35
|
-
*/
|
|
36
21
|
MethodResponses?: MethodResponse[];
|
|
37
|
-
/**
|
|
38
|
-
* A human-friendly operation identifier for the method. For example, you can assign the ``operationName`` of ``ListPets`` for the ``GET /pets`` method in the ``PetStore`` example.
|
|
39
|
-
*/
|
|
40
22
|
OperationName?: string;
|
|
41
|
-
/**
|
|
42
|
-
* A key-value map specifying data schemas, represented by Model resources, (as the mapped value) of the request payloads of given content types (as the mapping key).
|
|
43
|
-
*/
|
|
44
23
|
RequestModels?: Record<string, string>;
|
|
45
|
-
/**
|
|
46
|
-
* A key-value map defining required or optional method request parameters that can be accepted by API Gateway. A key is a method request parameter name matching the pattern of ``method.request.{location}.{name}``, where ``location`` is ``querystring``, ``path``, or ``header`` and ``name`` is a valid and unique parameter name. The value associated with the key is a Boolean flag indicating whether the parameter is required (``true``) or optional (``false``). The method request parameter names defined here are available in Integration to be mapped to integration request parameters or templates.
|
|
47
|
-
*/
|
|
48
24
|
RequestParameters?: Record<string, boolean | string>;
|
|
49
|
-
/**
|
|
50
|
-
* The identifier of a RequestValidator for request validation.
|
|
51
|
-
*/
|
|
52
25
|
RequestValidatorId?: string;
|
|
53
|
-
/**
|
|
54
|
-
* The Resource identifier for the MethodResponse resource.
|
|
55
|
-
*/
|
|
56
26
|
ResourceId: string;
|
|
57
|
-
/**
|
|
58
|
-
* The string identifier of the associated RestApi.
|
|
59
|
-
*/
|
|
60
27
|
RestApiId: string;
|
|
61
28
|
};
|
|
62
29
|
/**
|
|
@@ -65,65 +32,22 @@ export type ApiGatewayMethodProperties = {
|
|
|
65
32
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-method-integration.html}
|
|
66
33
|
*/
|
|
67
34
|
export type Integration = {
|
|
68
|
-
/**
|
|
69
|
-
* A list of request parameters whose values API Gateway caches. To be valid values for ``cacheKeyParameters``, these parameters must also be specified for Method ``requestParameters``.
|
|
70
|
-
*/
|
|
71
35
|
CacheKeyParameters?: string[];
|
|
72
|
-
/**
|
|
73
|
-
* Specifies a group of related cached parameters. By default, API Gateway uses the resource ID as the ``cacheNamespace``. You can specify the same ``cacheNamespace`` across resources to return the same cached data for requests to different resources.
|
|
74
|
-
*/
|
|
75
36
|
CacheNamespace?: string;
|
|
76
|
-
/**
|
|
77
|
-
* The ID of the VpcLink used for the integration when ``connectionType=VPC_LINK`` and undefined, otherwise.
|
|
78
|
-
*/
|
|
79
37
|
ConnectionId?: string;
|
|
80
|
-
/**
|
|
81
|
-
* The type of the network connection to the integration endpoint. The valid value is ``INTERNET`` for connections through the public routable internet or ``VPC_LINK`` for private connections between API Gateway and a network load balancer in a VPC. The default value is ``INTERNET``.
|
|
82
|
-
*/
|
|
83
38
|
ConnectionType?: "INTERNET" | "VPC_LINK";
|
|
84
|
-
/**
|
|
85
|
-
* Specifies how to handle request payload content type conversions. Supported values are ``CONVERT_TO_BINARY`` and ``CONVERT_TO_TEXT``, with the following behaviors:
|
|
86
|
-
If this property is not defined, the request payload will be passed through from the method request to integration request without modification, provided that the ``passthroughBehavior`` is configured to support payload pass-through.
|
|
87
|
-
*/
|
|
88
39
|
ContentHandling?: "CONVERT_TO_BINARY" | "CONVERT_TO_TEXT";
|
|
89
|
-
/**
|
|
90
|
-
* Specifies the credentials required for the integration, if any. For AWS integrations, three options are available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To require that the caller's identity be passed through from the request, specify the string ``arn:aws:iam::\*:user/\*``. To use resource-based permissions on supported AWS services, specify null.
|
|
91
|
-
*/
|
|
92
40
|
Credentials?: string;
|
|
93
|
-
/**
|
|
94
|
-
* Specifies the integration's HTTP method type. For the Type property, if you specify ``MOCK``, this property is optional. For Lambda integrations, you must set the integration method to ``POST``. For all other types, you must specify this property.
|
|
95
|
-
*/
|
|
96
41
|
IntegrationHttpMethod?: string;
|
|
97
|
-
/**
|
|
98
|
-
* Specifies the integration's responses.
|
|
99
|
-
*/
|
|
100
42
|
IntegrationResponses?: IntegrationResponse[];
|
|
101
|
-
/**
|
|
102
|
-
* Specifies how the method request body of an unmapped content type will be passed through the integration request to the back end without transformation. A content type is unmapped if no mapping template is defined in the integration or the content type does not match any of the mapped content types, as specified in ``requestTemplates``. The valid value is one of the following: ``WHEN_NO_MATCH``: passes the method request body through the integration request to the back end without transformation when the method request content type does not match any content type associated with the mapping templates defined in the integration request. ``WHEN_NO_TEMPLATES``: passes the method request body through the integration request to the back end without transformation when no mapping template is defined in the integration request. If a template is defined when this option is selected, the method request of an unmapped content-type will be rejected with an HTTP 415 Unsupported Media Type response. ``NEVER``: rejects the method request with an HTTP 415 Unsupported Media Type response when either the method request content type does not match any content type associated with the mapping templates defined in the integration request or no mapping template is defined in the integration request.
|
|
103
|
-
*/
|
|
104
43
|
PassthroughBehavior?: "WHEN_NO_MATCH" | "WHEN_NO_TEMPLATES" | "NEVER";
|
|
105
|
-
/**
|
|
106
|
-
* A key-value map specifying request parameters that are passed from the method request to the back end. The key is an integration request parameter name and the associated value is a method request parameter value or static value that must be enclosed within single quotes and pre-encoded as required by the back end. The method request parameter value must match the pattern of ``method.request.{location}.{name}``, where ``location`` is ``querystring``, ``path``, or ``header`` and ``name`` must be a valid and unique method request parameter name.
|
|
107
|
-
*/
|
|
108
44
|
RequestParameters?: Record<string, string>;
|
|
109
|
-
/**
|
|
110
|
-
* Represents a map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client. The content type value is the key in this map, and the template (as a String) is the value.
|
|
111
|
-
*/
|
|
112
45
|
RequestTemplates?: Record<string, string>;
|
|
113
46
|
/**
|
|
114
|
-
* Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds or 29 seconds.
|
|
115
47
|
* @min `50`
|
|
116
48
|
*/
|
|
117
49
|
TimeoutInMillis?: number;
|
|
118
|
-
/**
|
|
119
|
-
* Specifies an API method integration type. The valid value is one of the following:
|
|
120
|
-
For the HTTP and HTTP proxy integrations, each integration can specify a protocol (``http/https``), port and path. Standard 80 and 443 ports are supported as well as custom ports above 1024. An HTTP or HTTP proxy integration with a ``connectionType`` of ``VPC_LINK`` is referred to as a private integration and uses a VpcLink to connect API Gateway to a network load balancer of a VPC.
|
|
121
|
-
*/
|
|
122
50
|
Type: "AWS" | "AWS_PROXY" | "HTTP" | "HTTP_PROXY" | "MOCK";
|
|
123
|
-
/**
|
|
124
|
-
* Specifies Uniform Resource Identifier (URI) of the integration endpoint.
|
|
125
|
-
For ``HTTP`` or ``HTTP_PROXY`` integrations, the URI must be a fully formed, encoded HTTP(S) URL according to the RFC-3986 specification for standard integrations. If ``connectionType`` is ``VPC_LINK`` specify the Network Load Balancer DNS name. For ``AWS`` or ``AWS_PROXY`` integrations, the URI is of the form ``arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api}``. Here, {Region} is the API Gateway region (e.g., us-east-1); {service} is the name of the integrated AWS service (e.g., s3); and {subdomain} is a designated subdomain supported by certain AWS service for fast host-name lookup. action can be used for an AWS service action-based API, using an Action={name}&{p1}={v1}&p2={v2}... query string. The ensuing {service_api} refers to a supported action {name} plus any required input parameters. Alternatively, path can be used for an AWS service path-based API. The ensuing service_api refers to the path to an AWS service resource, including the region of the integrated AWS service, if applicable. For example, for integration with the S3 API of GetObject, the uri can be either ``arn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key}`` or ``arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key}``
|
|
126
|
-
*/
|
|
127
51
|
Uri?: string;
|
|
128
52
|
};
|
|
129
53
|
/**
|
|
@@ -132,45 +56,19 @@ export type Integration = {
|
|
|
132
56
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-method-integrationresponse.html}
|
|
133
57
|
*/
|
|
134
58
|
export type IntegrationResponse = {
|
|
135
|
-
/**
|
|
136
|
-
* Specifies how to handle response payload content type conversions. Supported values are ``CONVERT_TO_BINARY`` and ``CONVERT_TO_TEXT``, with the following behaviors:
|
|
137
|
-
If this property is not defined, the response payload will be passed through from the integration response to the method response without modification.
|
|
138
|
-
*/
|
|
139
59
|
ContentHandling?: "CONVERT_TO_BINARY" | "CONVERT_TO_TEXT";
|
|
140
|
-
/**
|
|
141
|
-
* A key-value map specifying response parameters that are passed to the method response from the back end. The key is a method response header parameter name and the mapped value is an integration response header value, a static value enclosed within a pair of single quotes, or a JSON expression from the integration response body. The mapping key must match the pattern of ``method.response.header.{name}``, where ``name`` is a valid and unique header name. The mapped non-static value must match the pattern of ``integration.response.header.{name}`` or ``integration.response.body.{JSON-expression}``, where ``name`` is a valid and unique response header name and ``JSON-expression`` is a valid JSON expression without the ``$`` prefix.
|
|
142
|
-
*/
|
|
143
60
|
ResponseParameters?: Record<string, string>;
|
|
144
|
-
/**
|
|
145
|
-
* Specifies the templates used to transform the integration response body. Response templates are represented as a key/value map, with a content-type as the key and a template as the value.
|
|
146
|
-
*/
|
|
147
61
|
ResponseTemplates?: Record<string, string>;
|
|
148
|
-
/**
|
|
149
|
-
* Specifies the regular expression (regex) pattern used to choose an integration response based on the response from the back end. For example, if the success response returns nothing and the error response returns some string, you could use the ``.+`` regex to match error response. However, make sure that the error response does not contain any newline (``\n``) character in such cases. If the back end is an LAMlong function, the LAMlong function error header is matched. For all other HTTP and AWS back ends, the HTTP status code is matched.
|
|
150
|
-
*/
|
|
151
62
|
SelectionPattern?: string;
|
|
152
|
-
/**
|
|
153
|
-
* Specifies the status code that is used to map the integration response to an existing MethodResponse.
|
|
154
|
-
*/
|
|
155
63
|
StatusCode: string;
|
|
156
64
|
};
|
|
157
65
|
/**
|
|
158
66
|
* Type definition for `AWS::ApiGateway::Method.MethodResponse`.
|
|
159
|
-
* Represents a method response of a given HTTP status code returned to the client. The method response is passed from the back end through the associated integration response that can be transformed using a mapping template.
|
|
160
67
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-method-methodresponse.html}
|
|
161
68
|
*/
|
|
162
69
|
export type MethodResponse = {
|
|
163
|
-
/**
|
|
164
|
-
* Specifies the Model resources used for the response's content-type. Response models are represented as a key/value map, with a content-type as the key and a Model name as the value.
|
|
165
|
-
*/
|
|
166
70
|
ResponseModels?: Record<string, string>;
|
|
167
|
-
/**
|
|
168
|
-
* A key-value map specifying required or optional response parameters that API Gateway can send back to the caller. A key defines a method response header and the value specifies whether the associated method response header is required or not. The expression of the key must match the pattern ``method.response.header.{name}``, where ``name`` is a valid and unique header name. API Gateway passes certain integration response data to the method response headers specified here according to the mapping you prescribe in the API's IntegrationResponse. The integration response data that can be mapped include an integration response header expressed in ``integration.response.header.{name}``, a static value enclosed within a pair of single quotes (e.g., ``'application/json'``), or a JSON expression from the back-end response payload in the form of ``integration.response.body.{JSON-expression}``, where ``JSON-expression`` is a valid JSON expression without the ``$`` prefix.)
|
|
169
|
-
*/
|
|
170
71
|
ResponseParameters?: Record<string, boolean | string>;
|
|
171
|
-
/**
|
|
172
|
-
* The method response's status code.
|
|
173
|
-
*/
|
|
174
72
|
StatusCode: string;
|
|
175
73
|
};
|
|
176
74
|
/**
|
|
@@ -5,26 +5,14 @@ import type { ResourceOptions as $ResourceOptions } from "@awboost/cfn-template-
|
|
|
5
5
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-model.html}
|
|
6
6
|
*/
|
|
7
7
|
export type ApiGatewayModelProperties = {
|
|
8
|
-
/**
|
|
9
|
-
* The content-type for the model.
|
|
10
|
-
*/
|
|
11
8
|
ContentType?: string;
|
|
12
|
-
/**
|
|
13
|
-
* The description of the model.
|
|
14
|
-
*/
|
|
15
9
|
Description?: string;
|
|
16
10
|
/**
|
|
17
11
|
* A name for the model. If you don't specify a name, CFN generates a unique physical ID and uses that ID for the model name. For more information, see [Name Type](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-name.html).
|
|
18
12
|
If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
|
|
19
13
|
*/
|
|
20
14
|
Name?: string;
|
|
21
|
-
/**
|
|
22
|
-
* The string identifier of the associated RestApi.
|
|
23
|
-
*/
|
|
24
15
|
RestApiId: string;
|
|
25
|
-
/**
|
|
26
|
-
* The schema for the model. For ``application/json`` models, this should be JSON schema draft 4 model. Do not include "\/*" characters in the description of any properties because such "\/*" characters may be interpreted as the closing marker for comments in some languages, such as Java or JavaScript, causing the installation of your API's SDK generated by API Gateway to fail.
|
|
27
|
-
*/
|
|
28
16
|
Schema?: Record<string, any> | string;
|
|
29
17
|
};
|
|
30
18
|
/**
|
|
@@ -5,21 +5,9 @@ import type { ResourceOptions as $ResourceOptions } from "@awboost/cfn-template-
|
|
|
5
5
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-requestvalidator.html}
|
|
6
6
|
*/
|
|
7
7
|
export type ApiGatewayRequestValidatorProperties = {
|
|
8
|
-
/**
|
|
9
|
-
* The name of this RequestValidator
|
|
10
|
-
*/
|
|
11
8
|
Name?: string;
|
|
12
|
-
/**
|
|
13
|
-
* The string identifier of the associated RestApi.
|
|
14
|
-
*/
|
|
15
9
|
RestApiId: string;
|
|
16
|
-
/**
|
|
17
|
-
* A Boolean flag to indicate whether to validate a request body according to the configured Model schema.
|
|
18
|
-
*/
|
|
19
10
|
ValidateRequestBody?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* A Boolean flag to indicate whether to validate request parameters (``true``) or not (``false``).
|
|
22
|
-
*/
|
|
23
11
|
ValidateRequestParameters?: boolean;
|
|
24
12
|
};
|
|
25
13
|
/**
|
|
@@ -5,17 +5,8 @@ import type { ResourceOptions as $ResourceOptions } from "@awboost/cfn-template-
|
|
|
5
5
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-resource.html}
|
|
6
6
|
*/
|
|
7
7
|
export type ApiGatewayResourceProperties = {
|
|
8
|
-
/**
|
|
9
|
-
* The parent resource's identifier.
|
|
10
|
-
*/
|
|
11
8
|
ParentId: string;
|
|
12
|
-
/**
|
|
13
|
-
* The last path segment for this resource.
|
|
14
|
-
*/
|
|
15
9
|
PathPart: string;
|
|
16
|
-
/**
|
|
17
|
-
* The string identifier of the associated RestApi.
|
|
18
|
-
*/
|
|
19
10
|
RestApiId: string;
|
|
20
11
|
};
|
|
21
12
|
/**
|
|
@@ -6,13 +6,7 @@ import type { ResourceOptions as $ResourceOptions } from "@awboost/cfn-template-
|
|
|
6
6
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-restapi.html}
|
|
7
7
|
*/
|
|
8
8
|
export type ApiGatewayRestApiProperties = {
|
|
9
|
-
/**
|
|
10
|
-
* The source of the API key for metering requests according to a usage plan. Valid values are: ``HEADER`` to read the API key from the ``X-API-Key`` header of a request. ``AUTHORIZER`` to read the API key from the ``UsageIdentifierKey`` from a custom authorizer.
|
|
11
|
-
*/
|
|
12
9
|
ApiKeySourceType?: string;
|
|
13
|
-
/**
|
|
14
|
-
* The list of binary media types supported by the RestApi. By default, the RestApi supports only UTF-8-encoded text payloads.
|
|
15
|
-
*/
|
|
16
10
|
BinaryMediaTypes?: string[];
|
|
17
11
|
/**
|
|
18
12
|
* An OpenAPI specification that defines a set of RESTful APIs in JSON format. For YAML templates, you can also provide the specification in YAML format.
|
|
@@ -22,29 +16,14 @@ export type ApiGatewayRestApiProperties = {
|
|
|
22
16
|
* The Amazon Simple Storage Service (Amazon S3) location that points to an OpenAPI file, which defines a set of RESTful APIs in JSON or YAML format.
|
|
23
17
|
*/
|
|
24
18
|
BodyS3Location?: S3Location;
|
|
25
|
-
/**
|
|
26
|
-
* The ID of the RestApi that you want to clone from.
|
|
27
|
-
*/
|
|
28
19
|
CloneFrom?: string;
|
|
29
|
-
/**
|
|
30
|
-
* The description of the RestApi.
|
|
31
|
-
*/
|
|
32
20
|
Description?: string;
|
|
33
|
-
/**
|
|
34
|
-
* Specifies whether clients can invoke your API by using the default ``execute-api`` endpoint. By default, clients can invoke your API with the default ``https://{api_id}.execute-api.{region}.amazonaws.com`` endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint
|
|
35
|
-
*/
|
|
36
21
|
DisableExecuteApiEndpoint?: boolean;
|
|
37
22
|
/**
|
|
38
23
|
* A list of the endpoint types of the API. Use this property when creating an API. When importing an existing API, specify the endpoint configuration types using the ``Parameters`` property.
|
|
39
24
|
*/
|
|
40
25
|
EndpointConfiguration?: EndpointConfiguration;
|
|
41
|
-
/**
|
|
42
|
-
* A query parameter to indicate whether to rollback the API update (``true``) or not (``false``) when a warning is encountered. The default value is ``false``.
|
|
43
|
-
*/
|
|
44
26
|
FailOnWarnings?: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* A nullable integer that is used to enable compression (with non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a null value) on an API. When compression is enabled, compression or decompression is not applied on the payload if the payload size is smaller than this value. Setting it to zero allows compression for any payload size.
|
|
47
|
-
*/
|
|
48
27
|
MinimumCompressionSize?: number;
|
|
49
28
|
/**
|
|
50
29
|
* This property applies only when you use OpenAPI to define your REST API. The ``Mode`` determines how API Gateway handles resource updates.
|
|
@@ -59,17 +38,11 @@ export type ApiGatewayRestApiProperties = {
|
|
|
59
38
|
* The name of the RestApi. A name is required if the REST API is not based on an OpenAPI specification.
|
|
60
39
|
*/
|
|
61
40
|
Name?: string;
|
|
62
|
-
/**
|
|
63
|
-
* Custom header parameters as part of the request. For example, to exclude DocumentationParts from an imported API, set ``ignore=documentation`` as a ``parameters`` value, as in the AWS CLI command of ``aws apigateway import-rest-api --parameters ignore=documentation --body 'file:///path/to/imported-api-body.json'``.
|
|
64
|
-
*/
|
|
65
41
|
Parameters?: Record<string, string> | string;
|
|
66
42
|
/**
|
|
67
43
|
* A policy document that contains the permissions for the ``RestApi`` resource. To set the ARN for the policy, use the ``!Join`` intrinsic function with ``""`` as delimiter and values of ``"execute-api:/"`` and ``"*"``.
|
|
68
44
|
*/
|
|
69
45
|
Policy?: Record<string, any> | string;
|
|
70
|
-
/**
|
|
71
|
-
* The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with ``aws:``. The tag value can be up to 256 characters.
|
|
72
|
-
*/
|
|
73
46
|
Tags?: Tag[];
|
|
74
47
|
};
|
|
75
48
|
/**
|
|
@@ -87,13 +60,7 @@ export type ApiGatewayRestApiAttributes = {
|
|
|
87
60
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-restapi-endpointconfiguration.html}
|
|
88
61
|
*/
|
|
89
62
|
export type EndpointConfiguration = {
|
|
90
|
-
/**
|
|
91
|
-
* A list of endpoint types of an API (RestApi) or its custom domain name (DomainName). For an edge-optimized API and its custom domain name, the endpoint type is ``"EDGE"``. For a regional API and its custom domain name, the endpoint type is ``REGIONAL``. For a private API, the endpoint type is ``PRIVATE``.
|
|
92
|
-
*/
|
|
93
63
|
Types?: string[];
|
|
94
|
-
/**
|
|
95
|
-
* A list of VpcEndpointIds of an API (RestApi) against which to create Route53 ALIASes. It is only supported for ``PRIVATE`` endpoint type.
|
|
96
|
-
*/
|
|
97
64
|
VpcEndpointIds?: string[];
|
|
98
65
|
};
|
|
99
66
|
/**
|
|
@@ -6,56 +6,21 @@ import type { ResourceOptions as $ResourceOptions } from "@awboost/cfn-template-
|
|
|
6
6
|
*/
|
|
7
7
|
export type ApiGatewayStageProperties = {
|
|
8
8
|
/**
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
* The ``AccessLogSetting`` property type specifies settings for logging access in this stage.
|
|
10
|
+
``AccessLogSetting`` is a property of the [AWS::ApiGateway::Stage](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-stage.html) resource.
|
|
11
|
+
*/
|
|
11
12
|
AccessLogSetting?: AccessLogSetting;
|
|
12
|
-
/**
|
|
13
|
-
* Specifies whether a cache cluster is enabled for the stage.
|
|
14
|
-
*/
|
|
15
13
|
CacheClusterEnabled?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* The stage's cache capacity in GB. For more information about choosing a cache size, see [Enabling API caching to enhance responsiveness](https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-caching.html).
|
|
18
|
-
*/
|
|
19
14
|
CacheClusterSize?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Settings for the canary deployment in this stage.
|
|
22
|
-
*/
|
|
23
15
|
CanarySetting?: CanarySetting;
|
|
24
|
-
/**
|
|
25
|
-
* The identifier of a client certificate for an API stage.
|
|
26
|
-
*/
|
|
27
16
|
ClientCertificateId?: string;
|
|
28
|
-
/**
|
|
29
|
-
* The identifier of the Deployment that the stage points to.
|
|
30
|
-
*/
|
|
31
17
|
DeploymentId?: string;
|
|
32
|
-
/**
|
|
33
|
-
* The stage's description.
|
|
34
|
-
*/
|
|
35
18
|
Description?: string;
|
|
36
|
-
/**
|
|
37
|
-
* The version of the associated API documentation.
|
|
38
|
-
*/
|
|
39
19
|
DocumentationVersion?: string;
|
|
40
|
-
/**
|
|
41
|
-
* A map that defines the method settings for a Stage resource. Keys (designated as ``/{method_setting_key`` below) are method paths defined as ``{resource_path}/{http_method}`` for an individual method override, or ``/\/*\*`` for overriding all methods in the stage.
|
|
42
|
-
*/
|
|
43
20
|
MethodSettings?: MethodSetting[];
|
|
44
|
-
/**
|
|
45
|
-
* The string identifier of the associated RestApi.
|
|
46
|
-
*/
|
|
47
21
|
RestApiId: string;
|
|
48
|
-
/**
|
|
49
|
-
* The name of the stage is the first path segment in the Uniform Resource Identifier (URI) of a call to API Gateway. Stage names can only contain alphanumeric characters, hyphens, and underscores. Maximum length is 128 characters.
|
|
50
|
-
*/
|
|
51
22
|
StageName?: string;
|
|
52
|
-
/**
|
|
53
|
-
* The collection of tags. Each tag element is associated with a given resource.
|
|
54
|
-
*/
|
|
55
23
|
Tags?: Tag[];
|
|
56
|
-
/**
|
|
57
|
-
* Specifies whether active tracing with X-ray is enabled for the Stage.
|
|
58
|
-
*/
|
|
59
24
|
TracingEnabled?: boolean;
|
|
60
25
|
/**
|
|
61
26
|
* A map (string-to-string map) that defines the stage variables, where the variable name is the key and the variable value is the value. Variable names are limited to alphanumeric characters. Values must match the following regular expression: ``[A-Za-z0-9-._~:/?#&=,]+``.
|
|
@@ -80,27 +45,16 @@ export type AccessLogSetting = {
|
|
|
80
45
|
};
|
|
81
46
|
/**
|
|
82
47
|
* Type definition for `AWS::ApiGateway::Stage.CanarySetting`.
|
|
83
|
-
* Configuration settings of a canary deployment.
|
|
84
48
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-stage-canarysetting.html}
|
|
85
49
|
*/
|
|
86
50
|
export type CanarySetting = {
|
|
87
|
-
/**
|
|
88
|
-
* The ID of the canary deployment.
|
|
89
|
-
*/
|
|
90
51
|
DeploymentId?: string;
|
|
91
52
|
/**
|
|
92
|
-
* The percent (0-100) of traffic diverted to a canary deployment.
|
|
93
53
|
* @min `0`
|
|
94
54
|
* @max `100`
|
|
95
55
|
*/
|
|
96
56
|
PercentTraffic?: number;
|
|
97
|
-
/**
|
|
98
|
-
* Stage variables overridden for a canary release deployment, including new stage variables introduced in the canary. These stage variables are represented as a string-to-string map between stage variable names and their values.
|
|
99
|
-
*/
|
|
100
57
|
StageVariableOverrides?: Record<string, string>;
|
|
101
|
-
/**
|
|
102
|
-
* A Boolean flag to indicate whether the canary deployment uses the stage cache or not.
|
|
103
|
-
*/
|
|
104
58
|
UseStageCache?: boolean;
|
|
105
59
|
};
|
|
106
60
|
/**
|
|
@@ -110,45 +64,25 @@ export type CanarySetting = {
|
|
|
110
64
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-stage-methodsetting.html}
|
|
111
65
|
*/
|
|
112
66
|
export type MethodSetting = {
|
|
113
|
-
/**
|
|
114
|
-
* Specifies whether the cached responses are encrypted.
|
|
115
|
-
*/
|
|
116
67
|
CacheDataEncrypted?: boolean;
|
|
117
|
-
/**
|
|
118
|
-
* Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached.
|
|
119
|
-
*/
|
|
120
68
|
CacheTtlInSeconds?: number;
|
|
121
|
-
/**
|
|
122
|
-
* Specifies whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached.
|
|
123
|
-
*/
|
|
124
69
|
CachingEnabled?: boolean;
|
|
125
|
-
/**
|
|
126
|
-
* Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to Amazon CloudWatch Logs. This can be useful to troubleshoot APIs, but can result in logging sensitive data. We recommend that you don't enable this option for production APIs.
|
|
127
|
-
*/
|
|
128
70
|
DataTraceEnabled?: boolean;
|
|
129
71
|
/**
|
|
130
72
|
* The HTTP method. To apply settings to multiple resources and methods, specify an asterisk (``*``) for the ``HttpMethod`` and ``/*`` for the ``ResourcePath``. This parameter is required when you specify a ``MethodSetting``.
|
|
131
73
|
*/
|
|
132
74
|
HttpMethod?: string;
|
|
133
|
-
/**
|
|
134
|
-
* Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch Logs. Valid values are ``OFF``, ``ERROR``, and ``INFO``. Choose ``ERROR`` to write only error-level entries to CloudWatch Logs, or choose ``INFO`` to include all ``ERROR`` events as well as extra informational events.
|
|
135
|
-
*/
|
|
136
75
|
LoggingLevel?: string;
|
|
137
|
-
/**
|
|
138
|
-
* Specifies whether Amazon CloudWatch metrics are enabled for this method.
|
|
139
|
-
*/
|
|
140
76
|
MetricsEnabled?: boolean;
|
|
141
77
|
/**
|
|
142
78
|
* The resource path for this method. Forward slashes (``/``) are encoded as ``~1`` and the initial slash must include a forward slash. For example, the path value ``/resource/subresource`` must be encoded as ``/~1resource~1subresource``. To specify the root path, use only a slash (``/``). To apply settings to multiple resources and methods, specify an asterisk (``*``) for the ``HttpMethod`` and ``/*`` for the ``ResourcePath``. This parameter is required when you specify a ``MethodSetting``.
|
|
143
79
|
*/
|
|
144
80
|
ResourcePath?: string;
|
|
145
81
|
/**
|
|
146
|
-
* Specifies the throttling burst limit.
|
|
147
82
|
* @min `0`
|
|
148
83
|
*/
|
|
149
84
|
ThrottlingBurstLimit?: number;
|
|
150
85
|
/**
|
|
151
|
-
* Specifies the throttling rate limit.
|
|
152
86
|
* @min `0`
|
|
153
87
|
*/
|
|
154
88
|
ThrottlingRateLimit?: number;
|
|
@@ -6,29 +6,18 @@ import type { ResourceOptions as $ResourceOptions } from "@awboost/cfn-template-
|
|
|
6
6
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-usageplan.html}
|
|
7
7
|
*/
|
|
8
8
|
export type ApiGatewayUsagePlanProperties = {
|
|
9
|
-
/**
|
|
10
|
-
* The associated API stages of a usage plan.
|
|
11
|
-
*/
|
|
12
9
|
ApiStages?: ApiStage[];
|
|
13
|
-
/**
|
|
14
|
-
* The description of a usage plan.
|
|
15
|
-
*/
|
|
16
10
|
Description?: string;
|
|
17
11
|
/**
|
|
18
|
-
|
|
19
|
-
|
|
12
|
+
* ``QuotaSettings`` is a property of the [AWS::ApiGateway::UsagePlan](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-usageplan.html) resource that specifies a target for the maximum number of requests users can make to your REST APIs.
|
|
13
|
+
In some cases clients can exceed the targets that you set. Don’t rely on usage plans to control costs. Consider using [](https://docs.aws.amazon.com/cost-management/latest/userguide/budgets-managing-costs.html) to monitor costs and [](https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html) to manage API requests.
|
|
14
|
+
*/
|
|
20
15
|
Quota?: QuotaSettings;
|
|
21
|
-
/**
|
|
22
|
-
* The collection of tags. Each tag element is associated with a given resource.
|
|
23
|
-
*/
|
|
24
16
|
Tags?: Tag[];
|
|
25
17
|
/**
|
|
26
|
-
*
|
|
18
|
+
* ``ThrottleSettings`` is a property of the [AWS::ApiGateway::UsagePlan](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-usageplan.html) resource that specifies the overall request rate (average requests per second) and burst capacity when users call your REST APIs.
|
|
27
19
|
*/
|
|
28
20
|
Throttle?: ThrottleSettings;
|
|
29
|
-
/**
|
|
30
|
-
* The name of a usage plan.
|
|
31
|
-
*/
|
|
32
21
|
UsagePlanName?: string;
|
|
33
22
|
};
|
|
34
23
|
/**
|
|
@@ -40,21 +29,11 @@ export type ApiGatewayUsagePlanAttributes = {
|
|
|
40
29
|
};
|
|
41
30
|
/**
|
|
42
31
|
* Type definition for `AWS::ApiGateway::UsagePlan.ApiStage`.
|
|
43
|
-
* API stage name of the associated API stage in a usage plan.
|
|
44
32
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-usageplan-apistage.html}
|
|
45
33
|
*/
|
|
46
34
|
export type ApiStage = {
|
|
47
|
-
/**
|
|
48
|
-
* API Id of the associated API stage in a usage plan.
|
|
49
|
-
*/
|
|
50
35
|
ApiId?: string;
|
|
51
|
-
/**
|
|
52
|
-
* API stage name of the associated API stage in a usage plan.
|
|
53
|
-
*/
|
|
54
36
|
Stage?: string;
|
|
55
|
-
/**
|
|
56
|
-
* Map containing method level throttling information for API stage in a usage plan.
|
|
57
|
-
*/
|
|
58
37
|
Throttle?: Record<string, ThrottleSettings>;
|
|
59
38
|
};
|
|
60
39
|
/**
|
|
@@ -65,18 +44,13 @@ export type ApiStage = {
|
|
|
65
44
|
*/
|
|
66
45
|
export type QuotaSettings = {
|
|
67
46
|
/**
|
|
68
|
-
* The target maximum number of requests that can be made in a given time period.
|
|
69
47
|
* @min `0`
|
|
70
48
|
*/
|
|
71
49
|
Limit?: number;
|
|
72
50
|
/**
|
|
73
|
-
* The number of requests subtracted from the given limit in the initial time period.
|
|
74
51
|
* @min `0`
|
|
75
52
|
*/
|
|
76
53
|
Offset?: number;
|
|
77
|
-
/**
|
|
78
|
-
* The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".
|
|
79
|
-
*/
|
|
80
54
|
Period?: string;
|
|
81
55
|
};
|
|
82
56
|
/**
|
|
@@ -104,12 +78,10 @@ export type Tag = {
|
|
|
104
78
|
*/
|
|
105
79
|
export type ThrottleSettings = {
|
|
106
80
|
/**
|
|
107
|
-
* The API target request burst rate limit. This allows more requests through for a period of time than the target rate limit.
|
|
108
81
|
* @min `0`
|
|
109
82
|
*/
|
|
110
83
|
BurstLimit?: number;
|
|
111
84
|
/**
|
|
112
|
-
* The API target request rate limit.
|
|
113
85
|
* @min `0`
|
|
114
86
|
*/
|
|
115
87
|
RateLimit?: number;
|
|
@@ -9,9 +9,6 @@ export type ApiGatewayUsagePlanKeyProperties = {
|
|
|
9
9
|
* The Id of the UsagePlanKey resource.
|
|
10
10
|
*/
|
|
11
11
|
KeyId: string;
|
|
12
|
-
/**
|
|
13
|
-
* The type of a UsagePlanKey resource for a plan customer.
|
|
14
|
-
*/
|
|
15
12
|
KeyType: "API_KEY";
|
|
16
13
|
/**
|
|
17
14
|
* The Id of the UsagePlan resource representing the usage plan containing the UsagePlanKey resource representing a plan customer.
|
package/lib/AWS-AppSync-Api.d.ts
CHANGED
|
@@ -45,7 +45,10 @@ export type AppSyncApiAttributes = {
|
|
|
45
45
|
/**
|
|
46
46
|
* A map of DNS names for the AppSync API.
|
|
47
47
|
*/
|
|
48
|
-
Dns:
|
|
48
|
+
Dns: {
|
|
49
|
+
Http: string;
|
|
50
|
+
Realtime: string;
|
|
51
|
+
};
|
|
49
52
|
};
|
|
50
53
|
/**
|
|
51
54
|
* Type definition for `AWS::AppSync::Api.AuthenticationType`.
|
|
@@ -97,12 +100,6 @@ export type CognitoConfig = {
|
|
|
97
100
|
AwsRegion: string;
|
|
98
101
|
UserPoolId: string;
|
|
99
102
|
};
|
|
100
|
-
/**
|
|
101
|
-
* Type definition for `AWS::AppSync::Api.DnsMap`.
|
|
102
|
-
* A map of DNS names for the AppSync API.
|
|
103
|
-
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-api-dnsmap.html}
|
|
104
|
-
*/
|
|
105
|
-
export type DnsMap = Record<string, string>;
|
|
106
103
|
/**
|
|
107
104
|
* Type definition for `AWS::AppSync::Api.EventConfig`.
|
|
108
105
|
* The configuration for an Event Api
|
|
@@ -57,6 +57,10 @@ export type DataSyncTaskProperties = {
|
|
|
57
57
|
* @maxLength `50`
|
|
58
58
|
*/
|
|
59
59
|
Tags?: Tag[];
|
|
60
|
+
/**
|
|
61
|
+
* Specifies the task mode for the task.
|
|
62
|
+
*/
|
|
63
|
+
TaskMode?: "BASIC" | "ENHANCED";
|
|
60
64
|
/**
|
|
61
65
|
* Specifies how you want to configure a task report, which provides detailed information about for your Datasync transfer.
|
|
62
66
|
*/
|
|
@@ -61,6 +61,7 @@ export type RDSDBClusterProperties = {
|
|
|
61
61
|
* @min `1`
|
|
62
62
|
*/
|
|
63
63
|
BackupRetentionPeriod?: number;
|
|
64
|
+
ClusterScalabilityType?: string;
|
|
64
65
|
/**
|
|
65
66
|
* A value that indicates whether to copy all tags from the DB cluster to snapshots of the DB cluster. The default is not to copy them.
|
|
66
67
|
Valid for: Aurora DB clusters and Multi-AZ DB clusters
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { Resource as $Resource } from "@awboost/cfn-template-builder/template/resource";
|
|
2
|
+
import type { ResourceOptions as $ResourceOptions } from "@awboost/cfn-template-builder/template";
|
|
3
|
+
/**
|
|
4
|
+
* The AWS::RDS::DBShardGroup resource creates an Amazon Aurora Limitless DB Shard Group.
|
|
5
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbshardgroup.html}
|
|
6
|
+
*/
|
|
7
|
+
export type RDSDBShardGroupProperties = {
|
|
8
|
+
/**
|
|
9
|
+
* Specifies whether to create standby instances for the DB shard group.
|
|
10
|
+
* @min `0`
|
|
11
|
+
*/
|
|
12
|
+
ComputeRedundancy?: number;
|
|
13
|
+
/**
|
|
14
|
+
* The name of the primary DB cluster for the DB shard group.
|
|
15
|
+
* @minLength `1`
|
|
16
|
+
* @maxLength `63`
|
|
17
|
+
*/
|
|
18
|
+
DBClusterIdentifier: string;
|
|
19
|
+
/**
|
|
20
|
+
* The name of the DB shard group.
|
|
21
|
+
* @minLength `1`
|
|
22
|
+
* @maxLength `63`
|
|
23
|
+
*/
|
|
24
|
+
DBShardGroupIdentifier?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The maximum capacity of the DB shard group in Aurora capacity units (ACUs).
|
|
27
|
+
*/
|
|
28
|
+
MaxACU: number;
|
|
29
|
+
/**
|
|
30
|
+
* The minimum capacity of the DB shard group in Aurora capacity units (ACUs).
|
|
31
|
+
*/
|
|
32
|
+
MinACU?: number;
|
|
33
|
+
/**
|
|
34
|
+
* Indicates whether the DB shard group is publicly accessible.
|
|
35
|
+
*/
|
|
36
|
+
PubliclyAccessible?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* An array of key-value pairs to apply to this resource.
|
|
39
|
+
* @maxLength `50`
|
|
40
|
+
*/
|
|
41
|
+
Tags?: Tag[];
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Attribute type definition for `AWS::RDS::DBShardGroup`.
|
|
45
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbshardgroup.html#aws-resource-rds-dbshardgroup-return-values}
|
|
46
|
+
*/
|
|
47
|
+
export type RDSDBShardGroupAttributes = {
|
|
48
|
+
/**
|
|
49
|
+
* The Amazon Web Services Region-unique, immutable identifier for the DB shard group.
|
|
50
|
+
*/
|
|
51
|
+
DBShardGroupResourceId: string;
|
|
52
|
+
/**
|
|
53
|
+
* The connection endpoint for the DB shard group.
|
|
54
|
+
*/
|
|
55
|
+
Endpoint: string;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Type definition for `AWS::RDS::DBShardGroup.Tag`.
|
|
59
|
+
* A key-value pair to associate with a resource.
|
|
60
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbshardgroup-tag.html}
|
|
61
|
+
*/
|
|
62
|
+
export type Tag = {
|
|
63
|
+
/**
|
|
64
|
+
* The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
|
|
65
|
+
* @minLength `1`
|
|
66
|
+
* @maxLength `128`
|
|
67
|
+
*/
|
|
68
|
+
Key: string;
|
|
69
|
+
/**
|
|
70
|
+
* The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
|
|
71
|
+
* @minLength `0`
|
|
72
|
+
* @maxLength `256`
|
|
73
|
+
*/
|
|
74
|
+
Value?: string;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* The AWS::RDS::DBShardGroup resource creates an Amazon Aurora Limitless DB Shard Group.
|
|
78
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbshardgroup.html}
|
|
79
|
+
*/
|
|
80
|
+
export declare class RDSDBShardGroup extends $Resource<"AWS::RDS::DBShardGroup", RDSDBShardGroupProperties, RDSDBShardGroupAttributes> {
|
|
81
|
+
static readonly Type = "AWS::RDS::DBShardGroup";
|
|
82
|
+
constructor(logicalId: string, properties: RDSDBShardGroupProperties, options?: $ResourceOptions);
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=AWS-RDS-DBShardGroup.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Resource as $Resource } from "@awboost/cfn-template-builder/template/resource";
|
|
2
|
+
/**
|
|
3
|
+
* The AWS::RDS::DBShardGroup resource creates an Amazon Aurora Limitless DB Shard Group.
|
|
4
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbshardgroup.html}
|
|
5
|
+
*/
|
|
6
|
+
export class RDSDBShardGroup extends $Resource {
|
|
7
|
+
static Type = "AWS::RDS::DBShardGroup";
|
|
8
|
+
constructor(logicalId, properties, options) {
|
|
9
|
+
super(logicalId, RDSDBShardGroup.Type, properties, options);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=AWS-RDS-DBShardGroup.js.map
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { Resource as $Resource } from "@awboost/cfn-template-builder/template/resource";
|
|
2
|
+
import type { ResourceOptions as $ResourceOptions } from "@awboost/cfn-template-builder/template";
|
|
3
|
+
/**
|
|
4
|
+
* Definition of AWS::Wisdom::AIAgent Resource Type
|
|
5
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiagent.html}
|
|
6
|
+
*/
|
|
7
|
+
export type WisdomAIAgentProperties = {
|
|
8
|
+
/**
|
|
9
|
+
* @pattern `^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$|^arn:[a-z-]*?:wisdom:[a-z0-9-]*?:[0-9]{12}:[a-z-]*?/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}(?:/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}){0,2}$`
|
|
10
|
+
*/
|
|
11
|
+
AssistantId: string;
|
|
12
|
+
Configuration: AIAgentConfiguration;
|
|
13
|
+
/**
|
|
14
|
+
* @minLength `1`
|
|
15
|
+
* @maxLength `255`
|
|
16
|
+
* @pattern `^[a-zA-Z0-9\s_.,-]+`
|
|
17
|
+
*/
|
|
18
|
+
Description?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @minLength `1`
|
|
21
|
+
* @maxLength `255`
|
|
22
|
+
* @pattern `^[a-zA-Z0-9\s_.,-]+`
|
|
23
|
+
*/
|
|
24
|
+
Name?: string;
|
|
25
|
+
Tags?: Tags;
|
|
26
|
+
Type: AIAgentType;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Attribute type definition for `AWS::Wisdom::AIAgent`.
|
|
30
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiagent.html#aws-resource-wisdom-aiagent-return-values}
|
|
31
|
+
*/
|
|
32
|
+
export type WisdomAIAgentAttributes = {
|
|
33
|
+
/**
|
|
34
|
+
* @pattern `^arn:[a-z-]*?:wisdom:[a-z0-9-]*?:[0-9]{12}:[a-z-]*?/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}(?:/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}){0,2}$`
|
|
35
|
+
*/
|
|
36
|
+
AIAgentArn: string;
|
|
37
|
+
/**
|
|
38
|
+
* @pattern `^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}(:[A-Z0-9_$]+){0,1}$|^arn:[a-z-]*?:wisdom:[a-z0-9-]*?:[0-9]{12}:[a-z-]*?/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}(?:/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}){0,2}(:[A-Z0-9_$]+){0,1}$`
|
|
39
|
+
*/
|
|
40
|
+
AIAgentId: string;
|
|
41
|
+
/**
|
|
42
|
+
* @pattern `^arn:[a-z-]*?:wisdom:[a-z0-9-]*?:[0-9]{12}:[a-z-]*?/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}(?:/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}){0,2}$`
|
|
43
|
+
*/
|
|
44
|
+
AssistantArn: string;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Type definition for `AWS::Wisdom::AIAgent.AIAgentAssociationConfigurationType`.
|
|
48
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-aiagentassociationconfigurationtype.html}
|
|
49
|
+
*/
|
|
50
|
+
export type AIAgentAssociationConfigurationType = "KNOWLEDGE_BASE";
|
|
51
|
+
/**
|
|
52
|
+
* Type definition for `AWS::Wisdom::AIAgent.AIAgentConfiguration`.
|
|
53
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-aiagentconfiguration.html}
|
|
54
|
+
*/
|
|
55
|
+
export type AIAgentConfiguration = {
|
|
56
|
+
ManualSearchAIAgentConfiguration: ManualSearchAIAgentConfiguration;
|
|
57
|
+
} | {
|
|
58
|
+
AnswerRecommendationAIAgentConfiguration: AnswerRecommendationAIAgentConfiguration;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Type definition for `AWS::Wisdom::AIAgent.AIAgentType`.
|
|
62
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-aiagenttype.html}
|
|
63
|
+
*/
|
|
64
|
+
export type AIAgentType = "MANUAL_SEARCH" | "ANSWER_RECOMMENDATION";
|
|
65
|
+
/**
|
|
66
|
+
* Type definition for `AWS::Wisdom::AIAgent.AnswerRecommendationAIAgentConfiguration`.
|
|
67
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-answerrecommendationaiagentconfiguration.html}
|
|
68
|
+
*/
|
|
69
|
+
export type AnswerRecommendationAIAgentConfiguration = {
|
|
70
|
+
/**
|
|
71
|
+
* @pattern `^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}(:[A-Z0-9_$]+){0,1}$`
|
|
72
|
+
*/
|
|
73
|
+
AnswerGenerationAIPromptId?: string;
|
|
74
|
+
AssociationConfigurations?: AssociationConfiguration[];
|
|
75
|
+
/**
|
|
76
|
+
* @pattern `^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}(:[A-Z0-9_$]+){0,1}$`
|
|
77
|
+
*/
|
|
78
|
+
IntentLabelingGenerationAIPromptId?: string;
|
|
79
|
+
/**
|
|
80
|
+
* @pattern `^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}(:[A-Z0-9_$]+){0,1}$`
|
|
81
|
+
*/
|
|
82
|
+
QueryReformulationAIPromptId?: string;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* Type definition for `AWS::Wisdom::AIAgent.AssociationConfiguration`.
|
|
86
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-associationconfiguration.html}
|
|
87
|
+
*/
|
|
88
|
+
export type AssociationConfiguration = {
|
|
89
|
+
AssociationConfigurationData?: AssociationConfigurationData;
|
|
90
|
+
/**
|
|
91
|
+
* @pattern `^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$`
|
|
92
|
+
*/
|
|
93
|
+
AssociationId?: string;
|
|
94
|
+
AssociationType?: AIAgentAssociationConfigurationType;
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* Type definition for `AWS::Wisdom::AIAgent.AssociationConfigurationData`.
|
|
98
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-associationconfigurationdata.html}
|
|
99
|
+
*/
|
|
100
|
+
export type AssociationConfigurationData = {
|
|
101
|
+
KnowledgeBaseAssociationConfigurationData: KnowledgeBaseAssociationConfigurationData;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Type definition for `AWS::Wisdom::AIAgent.KnowledgeBaseAssociationConfigurationData`.
|
|
105
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-knowledgebaseassociationconfigurationdata.html}
|
|
106
|
+
*/
|
|
107
|
+
export type KnowledgeBaseAssociationConfigurationData = {
|
|
108
|
+
ContentTagFilter?: TagFilter;
|
|
109
|
+
/**
|
|
110
|
+
* @min `1`
|
|
111
|
+
* @max `100`
|
|
112
|
+
*/
|
|
113
|
+
MaxResults?: number;
|
|
114
|
+
OverrideKnowledgeBaseSearchType?: KnowledgeBaseSearchType;
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* Type definition for `AWS::Wisdom::AIAgent.KnowledgeBaseSearchType`.
|
|
118
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-knowledgebasesearchtype.html}
|
|
119
|
+
*/
|
|
120
|
+
export type KnowledgeBaseSearchType = "HYBRID" | "SEMANTIC";
|
|
121
|
+
/**
|
|
122
|
+
* Type definition for `AWS::Wisdom::AIAgent.ManualSearchAIAgentConfiguration`.
|
|
123
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-manualsearchaiagentconfiguration.html}
|
|
124
|
+
*/
|
|
125
|
+
export type ManualSearchAIAgentConfiguration = {
|
|
126
|
+
/**
|
|
127
|
+
* @pattern `^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}(:[A-Z0-9_$]+){0,1}$`
|
|
128
|
+
*/
|
|
129
|
+
AnswerGenerationAIPromptId?: string;
|
|
130
|
+
AssociationConfigurations?: AssociationConfiguration[];
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* Type definition for `AWS::Wisdom::AIAgent.OrCondition`.
|
|
134
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-orcondition.html}
|
|
135
|
+
*/
|
|
136
|
+
export type OrCondition = {
|
|
137
|
+
AndConditions: TagCondition[];
|
|
138
|
+
} | {
|
|
139
|
+
TagCondition: TagCondition;
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* Type definition for `AWS::Wisdom::AIAgent.TagCondition`.
|
|
143
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-tagcondition.html}
|
|
144
|
+
*/
|
|
145
|
+
export type TagCondition = {
|
|
146
|
+
/**
|
|
147
|
+
* @minLength `1`
|
|
148
|
+
* @maxLength `128`
|
|
149
|
+
* @pattern `^(?!aws:)[a-zA-Z+-=._:/]+$`
|
|
150
|
+
*/
|
|
151
|
+
Key: string;
|
|
152
|
+
/**
|
|
153
|
+
* @minLength `1`
|
|
154
|
+
* @maxLength `256`
|
|
155
|
+
*/
|
|
156
|
+
Value?: string;
|
|
157
|
+
};
|
|
158
|
+
/**
|
|
159
|
+
* Type definition for `AWS::Wisdom::AIAgent.TagFilter`.
|
|
160
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-tagfilter.html}
|
|
161
|
+
*/
|
|
162
|
+
export type TagFilter = {
|
|
163
|
+
TagCondition: TagCondition;
|
|
164
|
+
} | {
|
|
165
|
+
AndConditions: TagCondition[];
|
|
166
|
+
} | {
|
|
167
|
+
OrConditions: OrCondition[];
|
|
168
|
+
};
|
|
169
|
+
/**
|
|
170
|
+
* Type definition for `AWS::Wisdom::AIAgent.Tags`.
|
|
171
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-tags.html}
|
|
172
|
+
*/
|
|
173
|
+
export type Tags = Record<string, string>;
|
|
174
|
+
/**
|
|
175
|
+
* Definition of AWS::Wisdom::AIAgent Resource Type
|
|
176
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiagent.html}
|
|
177
|
+
*/
|
|
178
|
+
export declare class WisdomAIAgent extends $Resource<"AWS::Wisdom::AIAgent", WisdomAIAgentProperties, WisdomAIAgentAttributes> {
|
|
179
|
+
static readonly Type = "AWS::Wisdom::AIAgent";
|
|
180
|
+
constructor(logicalId: string, properties: WisdomAIAgentProperties, options?: $ResourceOptions);
|
|
181
|
+
}
|
|
182
|
+
//# sourceMappingURL=AWS-Wisdom-AIAgent.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Resource as $Resource } from "@awboost/cfn-template-builder/template/resource";
|
|
2
|
+
/**
|
|
3
|
+
* Definition of AWS::Wisdom::AIAgent Resource Type
|
|
4
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiagent.html}
|
|
5
|
+
*/
|
|
6
|
+
export class WisdomAIAgent extends $Resource {
|
|
7
|
+
static Type = "AWS::Wisdom::AIAgent";
|
|
8
|
+
constructor(logicalId, properties, options) {
|
|
9
|
+
super(logicalId, WisdomAIAgent.Type, properties, options);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=AWS-Wisdom-AIAgent.js.map
|