@awboost/cfn-resource-types 0.1.269 → 0.1.270
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-EC2-CarrierGateway.d.ts +2 -2
- package/lib/AWS-EC2-CarrierGateway.js +1 -1
- package/lib/AWS-GuardDuty-PublishingDestination.d.ts +77 -0
- package/lib/AWS-GuardDuty-PublishingDestination.js +12 -0
- package/lib/AWS-Lambda-Function.d.ts +14 -5
- package/lib/AWS-SageMaker-EndpointConfig.d.ts +1 -0
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { Resource as $Resource } from "@awboost/cfn-template-builder/template/re
|
|
|
2
2
|
import type { ResourceOptions as $ResourceOptions } from "@awboost/cfn-template-builder/template";
|
|
3
3
|
/**
|
|
4
4
|
* Resource type definition for `AWS::EC2::CarrierGateway`.
|
|
5
|
-
*
|
|
5
|
+
* Resource Type definition for Carrier Gateway which describes the Carrier Gateway resource
|
|
6
6
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-carriergateway.html}
|
|
7
7
|
*/
|
|
8
8
|
export type EC2CarrierGatewayProperties = {
|
|
@@ -53,7 +53,7 @@ export type Tag = {
|
|
|
53
53
|
};
|
|
54
54
|
/**
|
|
55
55
|
* Resource type definition for `AWS::EC2::CarrierGateway`.
|
|
56
|
-
*
|
|
56
|
+
* Resource Type definition for Carrier Gateway which describes the Carrier Gateway resource
|
|
57
57
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-carriergateway.html}
|
|
58
58
|
*/
|
|
59
59
|
export declare class EC2CarrierGateway extends $Resource<"AWS::EC2::CarrierGateway", EC2CarrierGatewayProperties, EC2CarrierGatewayAttributes> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Resource as $Resource } from "@awboost/cfn-template-builder/template/resource";
|
|
2
2
|
/**
|
|
3
3
|
* Resource type definition for `AWS::EC2::CarrierGateway`.
|
|
4
|
-
*
|
|
4
|
+
* Resource Type definition for Carrier Gateway which describes the Carrier Gateway resource
|
|
5
5
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-carriergateway.html}
|
|
6
6
|
*/
|
|
7
7
|
export class EC2CarrierGateway extends $Resource {
|
|
@@ -0,0 +1,77 @@
|
|
|
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
|
+
* Resource Type definition for AWS::GuardDuty::PublishingDestination
|
|
5
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-publishingdestination.html}
|
|
6
|
+
*/
|
|
7
|
+
export type GuardDutyPublishingDestinationProperties = {
|
|
8
|
+
DestinationProperties: CFNDestinationProperties;
|
|
9
|
+
/**
|
|
10
|
+
* The type of resource for the publishing destination. Currently only Amazon S3 buckets are supported.
|
|
11
|
+
*/
|
|
12
|
+
DestinationType: string;
|
|
13
|
+
/**
|
|
14
|
+
* The ID of the GuardDuty detector associated with the publishing destination.
|
|
15
|
+
* @minLength `1`
|
|
16
|
+
* @maxLength `300`
|
|
17
|
+
*/
|
|
18
|
+
DetectorId: string;
|
|
19
|
+
Tags?: TagItem[];
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Attribute type definition for `AWS::GuardDuty::PublishingDestination`.
|
|
23
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-publishingdestination.html#aws-resource-guardduty-publishingdestination-return-values}
|
|
24
|
+
*/
|
|
25
|
+
export type GuardDutyPublishingDestinationAttributes = {
|
|
26
|
+
/**
|
|
27
|
+
* The ID of the publishing destination.
|
|
28
|
+
*/
|
|
29
|
+
Id: string;
|
|
30
|
+
/**
|
|
31
|
+
* The time, in epoch millisecond format, at which GuardDuty was first unable to publish findings to the destination.
|
|
32
|
+
*/
|
|
33
|
+
PublishingFailureStartTimestamp: string;
|
|
34
|
+
/**
|
|
35
|
+
* The status of the publishing destination.
|
|
36
|
+
*/
|
|
37
|
+
Status: string;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Type definition for `AWS::GuardDuty::PublishingDestination.CFNDestinationProperties`.
|
|
41
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-publishingdestination-cfndestinationproperties.html}
|
|
42
|
+
*/
|
|
43
|
+
export type CFNDestinationProperties = {
|
|
44
|
+
/**
|
|
45
|
+
* The ARN of the resource to publish to.
|
|
46
|
+
*/
|
|
47
|
+
DestinationArn?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The ARN of the KMS key to use for encryption.
|
|
50
|
+
*/
|
|
51
|
+
KmsKeyArn?: string;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Type definition for `AWS::GuardDuty::PublishingDestination.TagItem`.
|
|
55
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-publishingdestination-tagitem.html}
|
|
56
|
+
*/
|
|
57
|
+
export type TagItem = {
|
|
58
|
+
/**
|
|
59
|
+
* @minLength `1`
|
|
60
|
+
* @maxLength `128`
|
|
61
|
+
*/
|
|
62
|
+
Key: string;
|
|
63
|
+
/**
|
|
64
|
+
* @minLength `0`
|
|
65
|
+
* @maxLength `256`
|
|
66
|
+
*/
|
|
67
|
+
Value: string;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Resource Type definition for AWS::GuardDuty::PublishingDestination
|
|
71
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-publishingdestination.html}
|
|
72
|
+
*/
|
|
73
|
+
export declare class GuardDutyPublishingDestination extends $Resource<"AWS::GuardDuty::PublishingDestination", GuardDutyPublishingDestinationProperties, GuardDutyPublishingDestinationAttributes> {
|
|
74
|
+
static readonly Type = "AWS::GuardDuty::PublishingDestination";
|
|
75
|
+
constructor(logicalId: string, properties: GuardDutyPublishingDestinationProperties, options?: $ResourceOptions);
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=AWS-GuardDuty-PublishingDestination.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Resource as $Resource } from "@awboost/cfn-template-builder/template/resource";
|
|
2
|
+
/**
|
|
3
|
+
* Resource Type definition for AWS::GuardDuty::PublishingDestination
|
|
4
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-publishingdestination.html}
|
|
5
|
+
*/
|
|
6
|
+
export class GuardDutyPublishingDestination extends $Resource {
|
|
7
|
+
static Type = "AWS::GuardDuty::PublishingDestination";
|
|
8
|
+
constructor(logicalId, properties, options) {
|
|
9
|
+
super(logicalId, GuardDutyPublishingDestination.Type, properties, options);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=AWS-GuardDuty-PublishingDestination.js.map
|
|
@@ -69,9 +69,15 @@ export type LambdaFunctionProperties = {
|
|
|
69
69
|
*/
|
|
70
70
|
ImageConfig?: ImageConfig;
|
|
71
71
|
/**
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
* The ARN of the KMSlong (KMS) customer managed key that's used to encrypt the following resources:
|
|
73
|
+
+ The function's [environment variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption).
|
|
74
|
+
+ The function's [Lambda SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html) snapshots.
|
|
75
|
+
+ When used with ``SourceKMSKeyArn``, the unzipped version of the .zip deployment package that's used for function invocations. For more information, see [Specifying a customer managed key for Lambda](https://docs.aws.amazon.com/lambda/latest/dg/encrypt-zip-package.html#enable-zip-custom-encryption).
|
|
76
|
+
+ The optimized version of the container image that's used for function invocations. Note that this is not the same key that's used to protect your container image in the Amazon Elastic Container Registry (Amazon ECR). For more information, see [Function lifecycle](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-lifecycle).
|
|
77
|
+
|
|
78
|
+
If you don't provide a customer managed key, Lambda uses an [owned key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk) or an [](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk).
|
|
79
|
+
* @pattern `^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$`
|
|
80
|
+
*/
|
|
75
81
|
KmsKeyArn?: string;
|
|
76
82
|
/**
|
|
77
83
|
* A list of [function layers](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) to add to the function's execution environment. Specify each layer by its ARN, including the version.
|
|
@@ -161,7 +167,8 @@ export type LambdaFunctionAttributes = {
|
|
|
161
167
|
/**
|
|
162
168
|
* Type definition for `AWS::Lambda::Function.Code`.
|
|
163
169
|
* The [deployment package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) for a Lambda function. To deploy a function defined as a container image, you specify the location of a container image in the Amazon ECR registry. For a .zip file deployment package, you can specify the location of an object in Amazon S3. For Node.js and Python functions, you can specify the function code inline in the template.
|
|
164
|
-
|
|
170
|
+
When you specify source code inline for a Node.js function, the ``index`` file that CFN creates uses the extension ``.js``. This means that LAM treats the file as a CommonJS module. ES modules aren't supported for inline functions.
|
|
171
|
+
Changes to a deployment package in Amazon S3 or a container image in ECR are not detected automatically during stack updates. To update the function code, change the object key or version in the template.
|
|
165
172
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html}
|
|
166
173
|
*/
|
|
167
174
|
export type Code = {
|
|
@@ -189,12 +196,14 @@ export type Code = {
|
|
|
189
196
|
*/
|
|
190
197
|
S3ObjectVersion?: string;
|
|
191
198
|
/**
|
|
199
|
+
* The ARN of the KMSlong (KMS) customer managed key that's used to encrypt your function's .zip deployment package. If you don't provide a customer managed key, Lambda uses an [owned key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk).
|
|
192
200
|
* @pattern `^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$`
|
|
193
201
|
*/
|
|
194
202
|
SourceKMSKeyArn?: string;
|
|
195
203
|
/**
|
|
196
204
|
* (Node.js and Python) The source code of your Lambda function. If you include your function source inline with this parameter, CFN places it in a file named ``index`` and zips it to create a [deployment package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html). This zip file cannot exceed 4MB. For the ``Handler`` property, the first part of the handler identifier must be ``index``. For example, ``index.handler``.
|
|
197
|
-
|
|
205
|
+
When you specify source code inline for a Node.js function, the ``index`` file that CFN creates uses the extension ``.js``. This means that LAM treats the file as a CommonJS module. ES modules aren't supported for inline functions.
|
|
206
|
+
For JSON, you must escape quotes and special characters such as newline (``\n``) with a backslash.
|
|
198
207
|
If you specify a function that interacts with an AWS CloudFormation custom resource, you don't have to write your own functions to send responses to the custom resource that invoked the function. AWS CloudFormation provides a response module ([cfn-response](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-lambda-function-code-cfnresponsemodule.html)) that simplifies sending responses. See [Using Lambda with CloudFormation](https://docs.aws.amazon.com/lambda/latest/dg/services-cloudformation.html) for details.
|
|
199
208
|
*/
|
|
200
209
|
ZipFile?: string;
|
|
@@ -172,6 +172,7 @@ export type ManagedInstanceScaling = {
|
|
|
172
172
|
export type ProductionVariant = {
|
|
173
173
|
ContainerStartupHealthCheckTimeoutInSeconds?: number;
|
|
174
174
|
EnableSSMAccess?: boolean;
|
|
175
|
+
InferenceAmiVersion?: string;
|
|
175
176
|
InitialInstanceCount?: number;
|
|
176
177
|
InitialVariantWeight?: number;
|
|
177
178
|
InstanceType?: string;
|