cdk-lambda-subminute 2.0.293 → 2.0.294

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.
Files changed (31) hide show
  1. package/.jsii +3 -3
  2. package/lib/cdk-lambda-subminute.js +3 -3
  3. package/node_modules/aws-sdk/CHANGELOG.md +15 -1
  4. package/node_modules/aws-sdk/README.md +1 -1
  5. package/node_modules/aws-sdk/apis/cloudformation-2010-05-15.min.json +48 -47
  6. package/node_modules/aws-sdk/apis/cloudtrail-2013-11-01.min.json +11 -8
  7. package/node_modules/aws-sdk/apis/comprehend-2017-11-27.min.json +55 -0
  8. package/node_modules/aws-sdk/apis/connect-2017-08-08.min.json +4 -0
  9. package/node_modules/aws-sdk/apis/ec2-2016-11-15.min.json +140 -82
  10. package/node_modules/aws-sdk/apis/eks-2017-11-01.min.json +242 -39
  11. package/node_modules/aws-sdk/apis/logs-2014-03-28.min.json +372 -26
  12. package/node_modules/aws-sdk/apis/logs-2014-03-28.paginators.json +18 -0
  13. package/node_modules/aws-sdk/apis/omics-2022-11-28.min.json +1 -3
  14. package/node_modules/aws-sdk/apis/sqs-2012-11-05.min.json +13 -13
  15. package/node_modules/aws-sdk/clients/cloudformation.d.ts +15 -10
  16. package/node_modules/aws-sdk/clients/cloudtrail.d.ts +50 -22
  17. package/node_modules/aws-sdk/clients/cloudwatchlogs.d.ts +422 -2
  18. package/node_modules/aws-sdk/clients/comprehend.d.ts +73 -19
  19. package/node_modules/aws-sdk/clients/connect.d.ts +5 -1
  20. package/node_modules/aws-sdk/clients/ec2.d.ts +65 -0
  21. package/node_modules/aws-sdk/clients/eks.d.ts +221 -9
  22. package/node_modules/aws-sdk/clients/lambda.d.ts +1 -1
  23. package/node_modules/aws-sdk/clients/omics.d.ts +5 -4
  24. package/node_modules/aws-sdk/clients/sqs.d.ts +1 -2
  25. package/node_modules/aws-sdk/dist/aws-sdk-core-react-native.js +1 -1
  26. package/node_modules/aws-sdk/dist/aws-sdk-react-native.js +11 -11
  27. package/node_modules/aws-sdk/dist/aws-sdk.js +664 -179
  28. package/node_modules/aws-sdk/dist/aws-sdk.min.js +91 -91
  29. package/node_modules/aws-sdk/lib/core.js +1 -1
  30. package/node_modules/aws-sdk/package.json +1 -1
  31. package/package.json +3 -4
@@ -52,19 +52,19 @@ declare class Comprehend extends Service {
52
52
  */
53
53
  batchDetectSyntax(callback?: (err: AWSError, data: Comprehend.Types.BatchDetectSyntaxResponse) => void): Request<Comprehend.Types.BatchDetectSyntaxResponse, AWSError>;
54
54
  /**
55
- * Inspects a batch of documents and returns a sentiment analysis for each entity identified in the documents. For more information about targeted sentiment, see Targeted sentiment.
55
+ * Inspects a batch of documents and returns a sentiment analysis for each entity identified in the documents. For more information about targeted sentiment, see Targeted sentiment in the Amazon Comprehend Developer Guide.
56
56
  */
57
57
  batchDetectTargetedSentiment(params: Comprehend.Types.BatchDetectTargetedSentimentRequest, callback?: (err: AWSError, data: Comprehend.Types.BatchDetectTargetedSentimentResponse) => void): Request<Comprehend.Types.BatchDetectTargetedSentimentResponse, AWSError>;
58
58
  /**
59
- * Inspects a batch of documents and returns a sentiment analysis for each entity identified in the documents. For more information about targeted sentiment, see Targeted sentiment.
59
+ * Inspects a batch of documents and returns a sentiment analysis for each entity identified in the documents. For more information about targeted sentiment, see Targeted sentiment in the Amazon Comprehend Developer Guide.
60
60
  */
61
61
  batchDetectTargetedSentiment(callback?: (err: AWSError, data: Comprehend.Types.BatchDetectTargetedSentimentResponse) => void): Request<Comprehend.Types.BatchDetectTargetedSentimentResponse, AWSError>;
62
62
  /**
63
- * Creates a new document classification request to analyze a single document in real-time, using a previously created and trained custom model and an endpoint. You can input plain text or you can upload a single-page input document (text, PDF, Word, or image). If the system detects errors while processing a page in the input document, the API response includes an entry in Errors that describes the errors. If the system detects a document-level error in your input document, the API returns an InvalidRequestException error response. For details about this exception, see Errors in semi-structured documents in the Comprehend Developer Guide.
63
+ * Creates a classification request to analyze a single document in real-time. ClassifyDocument supports the following model types: Custom classifier - a custom model that you have created and trained. For input, you can provide plain text, a single-page document (PDF, Word, or image), or Textract API output. For more information, see Custom classification in the Amazon Comprehend Developer Guide. Prompt classifier - Amazon Comprehend provides a model for classifying prompts. For input, you provide English plain text input. For prompt classification, the response includes only the Classes field. For more information about prompt classifiers, see Prompt classifiers in the Amazon Comprehend Developer Guide. If the system detects errors while processing a page in the input document, the API response includes an entry in Errors that describes the errors. If the system detects a document-level error in your input document, the API returns an InvalidRequestException error response. For details about this exception, see Errors in semi-structured documents in the Comprehend Developer Guide.
64
64
  */
65
65
  classifyDocument(params: Comprehend.Types.ClassifyDocumentRequest, callback?: (err: AWSError, data: Comprehend.Types.ClassifyDocumentResponse) => void): Request<Comprehend.Types.ClassifyDocumentResponse, AWSError>;
66
66
  /**
67
- * Creates a new document classification request to analyze a single document in real-time, using a previously created and trained custom model and an endpoint. You can input plain text or you can upload a single-page input document (text, PDF, Word, or image). If the system detects errors while processing a page in the input document, the API response includes an entry in Errors that describes the errors. If the system detects a document-level error in your input document, the API returns an InvalidRequestException error response. For details about this exception, see Errors in semi-structured documents in the Comprehend Developer Guide.
67
+ * Creates a classification request to analyze a single document in real-time. ClassifyDocument supports the following model types: Custom classifier - a custom model that you have created and trained. For input, you can provide plain text, a single-page document (PDF, Word, or image), or Textract API output. For more information, see Custom classification in the Amazon Comprehend Developer Guide. Prompt classifier - Amazon Comprehend provides a model for classifying prompts. For input, you provide English plain text input. For prompt classification, the response includes only the Classes field. For more information about prompt classifiers, see Prompt classifiers in the Amazon Comprehend Developer Guide. If the system detects errors while processing a page in the input document, the API response includes an entry in Errors that describes the errors. If the system detects a document-level error in your input document, the API returns an InvalidRequestException error response. For details about this exception, see Errors in semi-structured documents in the Comprehend Developer Guide.
68
68
  */
69
69
  classifyDocument(callback?: (err: AWSError, data: Comprehend.Types.ClassifyDocumentResponse) => void): Request<Comprehend.Types.ClassifyDocumentResponse, AWSError>;
70
70
  /**
@@ -332,13 +332,21 @@ declare class Comprehend extends Service {
332
332
  */
333
333
  detectSyntax(callback?: (err: AWSError, data: Comprehend.Types.DetectSyntaxResponse) => void): Request<Comprehend.Types.DetectSyntaxResponse, AWSError>;
334
334
  /**
335
- * Inspects the input text and returns a sentiment analysis for each entity identified in the text. For more information about targeted sentiment, see Targeted sentiment.
335
+ * Inspects the input text and returns a sentiment analysis for each entity identified in the text. For more information about targeted sentiment, see Targeted sentiment in the Amazon Comprehend Developer Guide.
336
336
  */
337
337
  detectTargetedSentiment(params: Comprehend.Types.DetectTargetedSentimentRequest, callback?: (err: AWSError, data: Comprehend.Types.DetectTargetedSentimentResponse) => void): Request<Comprehend.Types.DetectTargetedSentimentResponse, AWSError>;
338
338
  /**
339
- * Inspects the input text and returns a sentiment analysis for each entity identified in the text. For more information about targeted sentiment, see Targeted sentiment.
339
+ * Inspects the input text and returns a sentiment analysis for each entity identified in the text. For more information about targeted sentiment, see Targeted sentiment in the Amazon Comprehend Developer Guide.
340
340
  */
341
341
  detectTargetedSentiment(callback?: (err: AWSError, data: Comprehend.Types.DetectTargetedSentimentResponse) => void): Request<Comprehend.Types.DetectTargetedSentimentResponse, AWSError>;
342
+ /**
343
+ * Performs toxicity analysis on the list of text strings that you provide as input. The analysis uses the order of strings in the list to determine context when predicting toxicity. The API response contains a results list that matches the size of the input list. For more information about toxicity detection, see Toxicity detection in the Amazon Comprehend Developer Guide
344
+ */
345
+ detectToxicContent(params: Comprehend.Types.DetectToxicContentRequest, callback?: (err: AWSError, data: Comprehend.Types.DetectToxicContentResponse) => void): Request<Comprehend.Types.DetectToxicContentResponse, AWSError>;
346
+ /**
347
+ * Performs toxicity analysis on the list of text strings that you provide as input. The analysis uses the order of strings in the list to determine context when predicting toxicity. The API response contains a results list that matches the size of the input list. For more information about toxicity detection, see Toxicity detection in the Amazon Comprehend Developer Guide
348
+ */
349
+ detectToxicContent(callback?: (err: AWSError, data: Comprehend.Types.DetectToxicContentResponse) => void): Request<Comprehend.Types.DetectToxicContentResponse, AWSError>;
342
350
  /**
343
351
  * Creates a new custom model that replicates a source custom model that you import. The source model can be in your Amazon Web Services account or another one. If the source model is in another Amazon Web Services account, then it must have a resource-based policy that authorizes you to import it. The source model must be in the same Amazon Web Services Region that you're using when you import. You can't import a model that's in a different Region.
344
352
  */
@@ -1045,11 +1053,11 @@ declare namespace Comprehend {
1045
1053
  */
1046
1054
  Text?: CustomerInputString;
1047
1055
  /**
1048
- * The Amazon Resource Number (ARN) of the endpoint. For information about endpoints, see Managing endpoints.
1056
+ * The Amazon Resource Number (ARN) of the endpoint. For prompt classification, Amazon Comprehend provides the endpoint ARN: zzz. For custom classification, you create an endpoint for your custom model. For more information, see Using Amazon Comprehend endpoints.
1049
1057
  */
1050
1058
  EndpointArn: DocumentClassifierEndpointArn;
1051
1059
  /**
1052
- * Use the Bytes parameter to input a text, PDF, Word or image file. You can also use the Bytes parameter to input an Amazon Textract DetectDocumentText or AnalyzeDocument output file. Provide the input document as a sequence of base64-encoded bytes. If your code uses an Amazon Web Services SDK to classify documents, the SDK may encode the document file bytes for you. The maximum length of this field depends on the input document type. For details, see Inputs for real-time custom analysis in the Comprehend Developer Guide. If you use the Bytes parameter, do not use the Text parameter.
1060
+ * Use the Bytes parameter to input a text, PDF, Word or image file. When you classify a document using a custom model, you can also use the Bytes parameter to input an Amazon Textract DetectDocumentText or AnalyzeDocument output file. To classify a document using the prompt classifier, use the Text parameter for input. Provide the input document as a sequence of base64-encoded bytes. If your code uses an Amazon Web Services SDK to classify documents, the SDK may encode the document file bytes for you. The maximum length of this field depends on the input document type. For details, see Inputs for real-time custom analysis in the Comprehend Developer Guide. If you use the Bytes parameter, do not use the Text parameter.
1053
1061
  */
1054
1062
  Bytes?: SemiStructuredDocumentBlob;
1055
1063
  /**
@@ -1059,7 +1067,7 @@ declare namespace Comprehend {
1059
1067
  }
1060
1068
  export interface ClassifyDocumentResponse {
1061
1069
  /**
1062
- * The classes used by the document being analyzed. These are used for multi-class trained models. Individual classes are mutually exclusive and each document is expected to have only a single class assigned to it. For example, an animal can be a dog or a cat, but not both at the same time.
1070
+ * The classes used by the document being analyzed. These are used for multi-class trained models. Individual classes are mutually exclusive and each document is expected to have only a single class assigned to it. For example, an animal can be a dog or a cat, but not both at the same time. For prompt classification, the response includes a single class (UNDESIRED_PROMPT), along with a confidence score. A higher confidence score indicates that the input prompt is undesired in nature.
1063
1071
  */
1064
1072
  Classes?: ListOfClasses;
1065
1073
  /**
@@ -1165,7 +1173,7 @@ declare namespace Comprehend {
1165
1173
  */
1166
1174
  InputDataConfig: DocumentClassifierInputDataConfig;
1167
1175
  /**
1168
- * Specifies the location for the output files from a custom classifier job. This parameter is required for a request that creates a native classifier model.
1176
+ * Specifies the location for the output files from a custom classifier job. This parameter is required for a request that creates a native document model.
1169
1177
  */
1170
1178
  OutputDataConfig?: DocumentClassifierOutputDataConfig;
1171
1179
  /**
@@ -1301,7 +1309,7 @@ declare namespace Comprehend {
1301
1309
  */
1302
1310
  FlywheelName: ComprehendArnName;
1303
1311
  /**
1304
- * To associate an existing model with the flywheel, specify the Amazon Resource Number (ARN) of the model version.
1312
+ * To associate an existing model with the flywheel, specify the Amazon Resource Number (ARN) of the model version. Do not set TaskConfig or ModelType if you specify an ActiveModelArn.
1305
1313
  */
1306
1314
  ActiveModelArn?: ComprehendModelArn;
1307
1315
  /**
@@ -1309,11 +1317,11 @@ declare namespace Comprehend {
1309
1317
  */
1310
1318
  DataAccessRoleArn: IamRoleArn;
1311
1319
  /**
1312
- * Configuration about the custom classifier associated with the flywheel.
1320
+ * Configuration about the model associated with the flywheel. You need to set TaskConfig if you are creating a flywheel for a new model.
1313
1321
  */
1314
1322
  TaskConfig?: TaskConfig;
1315
1323
  /**
1316
- * The model type.
1324
+ * The model type. You need to set ModelType if you are creating a flywheel for a new model.
1317
1325
  */
1318
1326
  ModelType?: ModelType;
1319
1327
  /**
@@ -1901,6 +1909,22 @@ declare namespace Comprehend {
1901
1909
  */
1902
1910
  Entities?: ListOfTargetedSentimentEntities;
1903
1911
  }
1912
+ export interface DetectToxicContentRequest {
1913
+ /**
1914
+ * A list of up to 10 text strings. The maximum size for the list is 10 KB.
1915
+ */
1916
+ TextSegments: ListOfTextSegments;
1917
+ /**
1918
+ * The language of the input text. Currently, English is the only supported language.
1919
+ */
1920
+ LanguageCode: LanguageCode;
1921
+ }
1922
+ export interface DetectToxicContentResponse {
1923
+ /**
1924
+ * Results of the content moderation analysis. Each entry in the results list contains a list of toxic content types identified in the text, along with a confidence score for each content type. The results list also includes a toxicity score for each entry in the results list.
1925
+ */
1926
+ ResultList?: ListOfToxicLabels;
1927
+ }
1904
1928
  export interface DocumentClass {
1905
1929
  /**
1906
1930
  * The name of the class.
@@ -2045,7 +2069,7 @@ declare namespace Comprehend {
2045
2069
  */
2046
2070
  S3Uri?: S3Uri;
2047
2071
  /**
2048
- * This specifies the Amazon S3 location where the test annotations for an entity recognizer are located. The URI must be in the same Amazon Web Services Region as the API endpoint that you are calling.
2072
+ * This specifies the Amazon S3 location that contains the test annotations for the document classifier. The URI must be in the same Amazon Web Services Region as the API endpoint that you are calling.
2049
2073
  */
2050
2074
  TestS3Uri?: S3Uri;
2051
2075
  /**
@@ -2057,11 +2081,11 @@ declare namespace Comprehend {
2057
2081
  */
2058
2082
  AugmentedManifests?: DocumentClassifierAugmentedManifestsList;
2059
2083
  /**
2060
- * The type of input documents for training the model. Provide plain-text documents to create a plain-text model, and provide semi-structured documents to create a native model.
2084
+ * The type of input documents for training the model. Provide plain-text documents to create a plain-text model, and provide semi-structured documents to create a native document model.
2061
2085
  */
2062
2086
  DocumentType?: DocumentClassifierDocumentTypeFormat;
2063
2087
  /**
2064
- * The S3 location of the training documents. This parameter is required in a request to create a native classifier model.
2088
+ * The S3 location of the training documents. This parameter is required in a request to create a native document model.
2065
2089
  */
2066
2090
  Documents?: DocumentClassifierDocuments;
2067
2091
  DocumentReaderConfig?: DocumentReaderConfig;
@@ -2957,7 +2981,7 @@ declare namespace Comprehend {
2957
2981
  */
2958
2982
  DataAccessRoleArn?: IamRoleArn;
2959
2983
  /**
2960
- * Configuration about the custom classifier associated with the flywheel.
2984
+ * Configuration about the model associated with a flywheel.
2961
2985
  */
2962
2986
  TaskConfig?: TaskConfig;
2963
2987
  /**
@@ -3531,6 +3555,9 @@ declare namespace Comprehend {
3531
3555
  export type ListOfRelationships = RelationshipsListItem[];
3532
3556
  export type ListOfSyntaxTokens = SyntaxToken[];
3533
3557
  export type ListOfTargetedSentimentEntities = TargetedSentimentEntity[];
3558
+ export type ListOfTextSegments = TextSegment[];
3559
+ export type ListOfToxicContent = ToxicContent[];
3560
+ export type ListOfToxicLabels = ToxicLabels[];
3534
3561
  export type ListOfWarnings = WarningsListItem[];
3535
3562
  export interface ListPiiEntitiesDetectionJobsRequest {
3536
3563
  /**
@@ -3663,7 +3690,7 @@ declare namespace Comprehend {
3663
3690
  */
3664
3691
  S3Uri: S3Uri;
3665
3692
  /**
3666
- * ID for the Amazon Web Services Key Management Service (KMS) key that Amazon Comprehend uses to encrypt the output results from an analysis job. The KmsKeyId can be one of the following formats: KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" KMS Key Alias: "alias/ExampleAlias" ARN of a KMS Key Alias: "arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias"
3693
+ * ID for the Amazon Web Services Key Management Service (KMS) key that Amazon Comprehend uses to encrypt the output results from an analysis job. Specify the Key Id of a symmetric key, because you cannot use an asymmetric key for uploading data to S3. The KmsKeyId can be one of the following formats: KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" KMS Key Alias: "alias/ExampleAlias" ARN of a KMS Key Alias: "arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias"
3667
3694
  */
3668
3695
  KmsKeyId?: KmsKeyId;
3669
3696
  }
@@ -4726,7 +4753,7 @@ declare namespace Comprehend {
4726
4753
  */
4727
4754
  LanguageCode: LanguageCode;
4728
4755
  /**
4729
- * Configuration required for a classification model.
4756
+ * Configuration required for a document classification model.
4730
4757
  */
4731
4758
  DocumentClassificationConfig?: DocumentClassificationConfig;
4732
4759
  /**
@@ -4734,6 +4761,12 @@ declare namespace Comprehend {
4734
4761
  */
4735
4762
  EntityRecognitionConfig?: EntityRecognitionConfig;
4736
4763
  }
4764
+ export interface TextSegment {
4765
+ /**
4766
+ * The text content.
4767
+ */
4768
+ Text: CustomerInputString;
4769
+ }
4737
4770
  export type Timestamp = Date;
4738
4771
  export interface TopicsDetectionJobFilter {
4739
4772
  /**
@@ -4808,6 +4841,27 @@ declare namespace Comprehend {
4808
4841
  VpcConfig?: VpcConfig;
4809
4842
  }
4810
4843
  export type TopicsDetectionJobPropertiesList = TopicsDetectionJobProperties[];
4844
+ export interface ToxicContent {
4845
+ /**
4846
+ * The name of the toxic content type.
4847
+ */
4848
+ Name?: ToxicContentType;
4849
+ /**
4850
+ * Model confidence in the detected content type. Value range is zero to one, where one is highest confidence.
4851
+ */
4852
+ Score?: Float;
4853
+ }
4854
+ export type ToxicContentType = "GRAPHIC"|"HARASSMENT_OR_ABUSE"|"HATE_SPEECH"|"INSULT"|"PROFANITY"|"SEXUAL"|"VIOLENCE_OR_THREAT"|string;
4855
+ export interface ToxicLabels {
4856
+ /**
4857
+ * Array of toxic content types identified in the string.
4858
+ */
4859
+ Labels?: ListOfToxicContent;
4860
+ /**
4861
+ * Overall toxicity score for the string.
4862
+ */
4863
+ Toxicity?: Float;
4864
+ }
4811
4865
  export interface UntagResourceRequest {
4812
4866
  /**
4813
4867
  * The Amazon Resource Name (ARN) of the given Amazon Comprehend resource from which you want to remove the tags.
@@ -5759,7 +5759,7 @@ declare namespace Connect {
5759
5759
  SourceType?: SourceType;
5760
5760
  }
5761
5761
  export type IntegrationAssociationSummaryList = IntegrationAssociationSummary[];
5762
- export type IntegrationType = "EVENT"|"VOICE_ID"|"PINPOINT_APP"|"WISDOM_ASSISTANT"|"WISDOM_KNOWLEDGE_BASE"|"CASES_DOMAIN"|"APPLICATION"|string;
5762
+ export type IntegrationType = "EVENT"|"VOICE_ID"|"PINPOINT_APP"|"WISDOM_ASSISTANT"|"WISDOM_KNOWLEDGE_BASE"|"CASES_DOMAIN"|"APPLICATION"|"FILE_SCANNER"|string;
5763
5763
  export interface IntervalDetails {
5764
5764
  /**
5765
5765
  * The timezone applied to requested metrics.
@@ -6215,6 +6215,10 @@ declare namespace Connect {
6215
6215
  * The maximum number of results to return per page.
6216
6216
  */
6217
6217
  MaxResults?: MaxResult100;
6218
+ /**
6219
+ * The Amazon Resource Name (ARN) of the integration.
6220
+ */
6221
+ IntegrationArn?: ARN;
6218
6222
  }
6219
6223
  export interface ListIntegrationAssociationsResponse {
6220
6224
  /**
@@ -3044,6 +3044,14 @@ declare class EC2 extends Service {
3044
3044
  * Disables access to the EC2 serial console of all instances for your account. By default, access to the EC2 serial console is disabled for your account. For more information, see Manage account access to the EC2 serial console in the Amazon EC2 User Guide.
3045
3045
  */
3046
3046
  disableSerialConsoleAccess(callback?: (err: AWSError, data: EC2.Types.DisableSerialConsoleAccessResult) => void): Request<EC2.Types.DisableSerialConsoleAccessResult, AWSError>;
3047
+ /**
3048
+ * Disables the block public access for snapshots setting at the account level for the specified Amazon Web Services Region. After you disable block public access for snapshots in a Region, users can publicly share snapshots in that Region. If block public access is enabled in block-all-sharing mode, and you disable block public access, all snapshots that were previously publicly shared are no longer treated as private and they become publicly accessible again. For more information, see Block public access for snapshots in the Amazon Elastic Compute Cloud User Guide .
3049
+ */
3050
+ disableSnapshotBlockPublicAccess(params: EC2.Types.DisableSnapshotBlockPublicAccessRequest, callback?: (err: AWSError, data: EC2.Types.DisableSnapshotBlockPublicAccessResult) => void): Request<EC2.Types.DisableSnapshotBlockPublicAccessResult, AWSError>;
3051
+ /**
3052
+ * Disables the block public access for snapshots setting at the account level for the specified Amazon Web Services Region. After you disable block public access for snapshots in a Region, users can publicly share snapshots in that Region. If block public access is enabled in block-all-sharing mode, and you disable block public access, all snapshots that were previously publicly shared are no longer treated as private and they become publicly accessible again. For more information, see Block public access for snapshots in the Amazon Elastic Compute Cloud User Guide .
3053
+ */
3054
+ disableSnapshotBlockPublicAccess(callback?: (err: AWSError, data: EC2.Types.DisableSnapshotBlockPublicAccessResult) => void): Request<EC2.Types.DisableSnapshotBlockPublicAccessResult, AWSError>;
3047
3055
  /**
3048
3056
  * Disables the specified resource attachment from propagating routes to the specified propagation route table.
3049
3057
  */
@@ -3276,6 +3284,14 @@ declare class EC2 extends Service {
3276
3284
  * Enables access to the EC2 serial console of all instances for your account. By default, access to the EC2 serial console is disabled for your account. For more information, see Manage account access to the EC2 serial console in the Amazon EC2 User Guide.
3277
3285
  */
3278
3286
  enableSerialConsoleAccess(callback?: (err: AWSError, data: EC2.Types.EnableSerialConsoleAccessResult) => void): Request<EC2.Types.EnableSerialConsoleAccessResult, AWSError>;
3287
+ /**
3288
+ * Enables or modifies the block public access for snapshots setting at the account level for the specified Amazon Web Services Region. After you enable block public access for snapshots in a Region, users can no longer request public sharing for snapshots in that Region. Snapshots that are already publicly shared are either treated as private or they remain publicly shared, depending on the State that you specify. If block public access is enabled in block-all-sharing mode, and you change the mode to block-new-sharing, all snapshots that were previously publicly shared are no longer treated as private and they become publicly accessible again. For more information, see Block public access for snapshots in the Amazon Elastic Compute Cloud User Guide.
3289
+ */
3290
+ enableSnapshotBlockPublicAccess(params: EC2.Types.EnableSnapshotBlockPublicAccessRequest, callback?: (err: AWSError, data: EC2.Types.EnableSnapshotBlockPublicAccessResult) => void): Request<EC2.Types.EnableSnapshotBlockPublicAccessResult, AWSError>;
3291
+ /**
3292
+ * Enables or modifies the block public access for snapshots setting at the account level for the specified Amazon Web Services Region. After you enable block public access for snapshots in a Region, users can no longer request public sharing for snapshots in that Region. Snapshots that are already publicly shared are either treated as private or they remain publicly shared, depending on the State that you specify. If block public access is enabled in block-all-sharing mode, and you change the mode to block-new-sharing, all snapshots that were previously publicly shared are no longer treated as private and they become publicly accessible again. For more information, see Block public access for snapshots in the Amazon Elastic Compute Cloud User Guide.
3293
+ */
3294
+ enableSnapshotBlockPublicAccess(callback?: (err: AWSError, data: EC2.Types.EnableSnapshotBlockPublicAccessResult) => void): Request<EC2.Types.EnableSnapshotBlockPublicAccessResult, AWSError>;
3279
3295
  /**
3280
3296
  * Enables the specified attachment to propagate routes to the specified propagation route table.
3281
3297
  */
@@ -3596,6 +3612,14 @@ declare class EC2 extends Service {
3596
3612
  * Retrieves the access status of your account to the EC2 serial console of all instances. By default, access to the EC2 serial console is disabled for your account. For more information, see Manage account access to the EC2 serial console in the Amazon EC2 User Guide.
3597
3613
  */
3598
3614
  getSerialConsoleAccessStatus(callback?: (err: AWSError, data: EC2.Types.GetSerialConsoleAccessStatusResult) => void): Request<EC2.Types.GetSerialConsoleAccessStatusResult, AWSError>;
3615
+ /**
3616
+ * Gets the current state of block public access for snapshots setting for the account and Region. For more information, see Block public access for snapshots in the Amazon Elastic Compute Cloud User Guide.
3617
+ */
3618
+ getSnapshotBlockPublicAccessState(params: EC2.Types.GetSnapshotBlockPublicAccessStateRequest, callback?: (err: AWSError, data: EC2.Types.GetSnapshotBlockPublicAccessStateResult) => void): Request<EC2.Types.GetSnapshotBlockPublicAccessStateResult, AWSError>;
3619
+ /**
3620
+ * Gets the current state of block public access for snapshots setting for the account and Region. For more information, see Block public access for snapshots in the Amazon Elastic Compute Cloud User Guide.
3621
+ */
3622
+ getSnapshotBlockPublicAccessState(callback?: (err: AWSError, data: EC2.Types.GetSnapshotBlockPublicAccessStateResult) => void): Request<EC2.Types.GetSnapshotBlockPublicAccessStateResult, AWSError>;
3599
3623
  /**
3600
3624
  * Calculates the Spot placement score for a Region or Availability Zone based on the specified target capacity and compute requirements. You can specify your compute requirements either by using InstanceRequirementsWithMetadata and letting Amazon EC2 choose the optimal instance types to fulfill your Spot request, or you can specify the instance types by using InstanceTypes. For more information, see Spot placement score in the Amazon EC2 User Guide.
3601
3625
  */
@@ -18321,6 +18345,18 @@ declare namespace EC2 {
18321
18345
  */
18322
18346
  SerialConsoleAccessEnabled?: Boolean;
18323
18347
  }
18348
+ export interface DisableSnapshotBlockPublicAccessRequest {
18349
+ /**
18350
+ * Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
18351
+ */
18352
+ DryRun?: Boolean;
18353
+ }
18354
+ export interface DisableSnapshotBlockPublicAccessResult {
18355
+ /**
18356
+ * Returns unblocked if the request succeeds.
18357
+ */
18358
+ State?: SnapshotBlockPublicAccessState;
18359
+ }
18324
18360
  export interface DisableTransitGatewayRouteTablePropagationRequest {
18325
18361
  /**
18326
18362
  * The ID of the propagation route table.
@@ -19426,6 +19462,22 @@ declare namespace EC2 {
19426
19462
  */
19427
19463
  SerialConsoleAccessEnabled?: Boolean;
19428
19464
  }
19465
+ export interface EnableSnapshotBlockPublicAccessRequest {
19466
+ /**
19467
+ * The mode in which to enable block public access for snapshots for the Region. Specify one of the following values: block-all-sharing - Prevents all public sharing of snapshots in the Region. Users in the account will no longer be able to request new public sharing. Additionally, snapshots that are already publicly shared are treated as private and they are no longer publicly available. If you enable block public access for snapshots in block-all-sharing mode, it does not change the permissions for snapshots that are already publicly shared. Instead, it prevents these snapshots from be publicly visible and publicly accessible. Therefore, the attributes for these snapshots still indicate that they are publicly shared, even though they are not publicly available. block-new-sharing - Prevents only new public sharing of snapshots in the Region. Users in the account will no longer be able to request new public sharing. However, snapshots that are already publicly shared, remain publicly available.
19468
+ */
19469
+ State: SnapshotBlockPublicAccessState;
19470
+ /**
19471
+ * Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
19472
+ */
19473
+ DryRun?: Boolean;
19474
+ }
19475
+ export interface EnableSnapshotBlockPublicAccessResult {
19476
+ /**
19477
+ * The state of block public access for snapshots for the account and Region. Returns either block-all-sharing or block-new-sharing if the request succeeds.
19478
+ */
19479
+ State?: SnapshotBlockPublicAccessState;
19480
+ }
19429
19481
  export interface EnableTransitGatewayRouteTablePropagationRequest {
19430
19482
  /**
19431
19483
  * The ID of the propagation route table.
@@ -21616,6 +21668,18 @@ declare namespace EC2 {
21616
21668
  */
21617
21669
  SerialConsoleAccessEnabled?: Boolean;
21618
21670
  }
21671
+ export interface GetSnapshotBlockPublicAccessStateRequest {
21672
+ /**
21673
+ * Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
21674
+ */
21675
+ DryRun?: Boolean;
21676
+ }
21677
+ export interface GetSnapshotBlockPublicAccessStateResult {
21678
+ /**
21679
+ * The current state of block public access for snapshots. Possible values include: block-all-sharing - All public sharing of snapshots is blocked. Users in the account can't request new public sharing. Additionally, snapshots that were already publicly shared are treated as private and are not publicly available. block-new-sharing - Only new public sharing of snapshots is blocked. Users in the account can't request new public sharing. However, snapshots that were already publicly shared, remain publicly available. unblocked - Public sharing is not blocked. Users can publicly share snapshots.
21680
+ */
21681
+ State?: SnapshotBlockPublicAccessState;
21682
+ }
21619
21683
  export interface GetSpotPlacementScoresRequest {
21620
21684
  /**
21621
21685
  * The instance types. We recommend that you specify at least three instance types. If you specify one or two instance types, or specify variations of a single instance type (for example, an m3.xlarge with and without instance storage), the returned placement score will always be low. If you specify InstanceTypes, you can't specify InstanceRequirementsWithMetadata.
@@ -34350,6 +34414,7 @@ declare namespace EC2 {
34350
34414
  SseType?: SSEType;
34351
34415
  }
34352
34416
  export type SnapshotAttributeName = "productCodes"|"createVolumePermission"|string;
34417
+ export type SnapshotBlockPublicAccessState = "block-all-sharing"|"block-new-sharing"|"unblocked"|string;
34353
34418
  export interface SnapshotDetail {
34354
34419
  /**
34355
34420
  * A description for the snapshot.