@aws-lite/acm-types 0.0.0
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/index.d.ts +56 -0
- package/package.json +26 -0
- package/readme.md +46 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import {
|
|
2
|
+
/* ! Do not remove IMPORTS_START / IMPORTS_END ! */
|
|
3
|
+
// $IMPORTS_START
|
|
4
|
+
DeleteCertificateCommandOutput as DeleteCertificateResponse,
|
|
5
|
+
DescribeCertificateCommandOutput as DescribeCertificateResponse,
|
|
6
|
+
ListCertificatesCommandOutput as ListCertificatesResponse,
|
|
7
|
+
RequestCertificateCommandOutput as RequestCertificateResponse,
|
|
8
|
+
// $IMPORTS_END
|
|
9
|
+
} from "@aws-sdk/client-acm";
|
|
10
|
+
|
|
11
|
+
declare interface AwsLiteACM {
|
|
12
|
+
/* ! Do not remove METHODS_START / METHODS_END ! */
|
|
13
|
+
// $METHODS_START
|
|
14
|
+
/**
|
|
15
|
+
* @description
|
|
16
|
+
* - AWS docs: {@link https://docs.aws.amazon.com/acm/latest/APIReference/API_DeleteCertificate.html ACM: DeleteCertificate}
|
|
17
|
+
* - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/acm/readme.md#DeleteCertificate ACM: DeleteCertificate}
|
|
18
|
+
*/
|
|
19
|
+
DeleteCertificate: (input: { CertificateArn: string }) => Promise<DeleteCertificateResponse>
|
|
20
|
+
/**
|
|
21
|
+
* @description
|
|
22
|
+
* - AWS docs: {@link https://docs.aws.amazon.com/acm/latest/APIReference/API_DescribeCertificate.html ACM: DescribeCertificate}
|
|
23
|
+
* - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/acm/readme.md#DescribeCertificate ACM: DescribeCertificate}
|
|
24
|
+
*/
|
|
25
|
+
DescribeCertificate: (input: { CertificateArn: string }) => Promise<DescribeCertificateResponse>
|
|
26
|
+
/**
|
|
27
|
+
* @description
|
|
28
|
+
* - AWS docs: {@link https://docs.aws.amazon.com/acm/latest/APIReference/API_ListCertificates.html ACM: ListCertificates}
|
|
29
|
+
* - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/acm/readme.md#ListCertificates ACM: ListCertificates}
|
|
30
|
+
*/
|
|
31
|
+
ListCertificates: (input: { CertificateStatuses?: any[], Includes?: Record<string, any>, MaxItems?: number, NextToken?: string, SortBy?: string, SortOrder?: string, paginate?: boolean }) => Promise<ListCertificatesResponse>
|
|
32
|
+
/**
|
|
33
|
+
* @description
|
|
34
|
+
* - AWS docs: {@link https://docs.aws.amazon.com/acm/latest/APIReference/API_RequestCertificate.html ACM: RequestCertificate}
|
|
35
|
+
* - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/acm/readme.md#RequestCertificate ACM: RequestCertificate}
|
|
36
|
+
*/
|
|
37
|
+
RequestCertificate: (input: { DomainName: string, CertificateAuthorityArn?: string, DomainValidationOptions?: any[], IdempotencyToken?: string, KeyAlgorithm?: string, Options?: Record<string, any>, SubjectAlternativeNames?: any[], Tags?: any[], ValidationMethod?: string }) => Promise<RequestCertificateResponse>
|
|
38
|
+
// $METHODS_END
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
declare module "@aws-lite/client" {
|
|
42
|
+
interface AwsLiteClient {
|
|
43
|
+
ACM: AwsLiteACM;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export type {
|
|
48
|
+
AwsLiteACM,
|
|
49
|
+
/* ! Do not remove EXPORT_START / EXPORT_END ! */
|
|
50
|
+
// $EXPORT_START
|
|
51
|
+
DeleteCertificateResponse,
|
|
52
|
+
DescribeCertificateResponse,
|
|
53
|
+
ListCertificatesResponse,
|
|
54
|
+
RequestCertificateResponse,
|
|
55
|
+
// $EXPORT_END
|
|
56
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@aws-lite/acm-types",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"description": "Type definitions for the `@aws-lite/acm` plugin",
|
|
5
|
+
"homepage": "https://aws-lite.org/services/acm",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/architect/aws-lite.git",
|
|
9
|
+
"directory": "plugins/acm/types"
|
|
10
|
+
},
|
|
11
|
+
"bugs": "https://github.com/architect/aws-lite/issues",
|
|
12
|
+
"main": "",
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": ">=16"
|
|
15
|
+
},
|
|
16
|
+
"author": "@architect",
|
|
17
|
+
"license": "Apache-2.0",
|
|
18
|
+
"types": "index.d.ts",
|
|
19
|
+
"files": [
|
|
20
|
+
"index.d.ts"
|
|
21
|
+
],
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@aws-sdk/client-acm": "3"
|
|
24
|
+
},
|
|
25
|
+
"scripts": {}
|
|
26
|
+
}
|
package/readme.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
## Install
|
|
2
|
+
|
|
3
|
+
Add to `devDependencies` in `package.json`:
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
npm i -D @aws-lite/acm-types
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
<small>Be sure you also have `@aws-lite/acm` installed.</small>
|
|
10
|
+
|
|
11
|
+
## Usage and Config
|
|
12
|
+
|
|
13
|
+
### Javascript VSCode Intellisense
|
|
14
|
+
|
|
15
|
+
In a Javascript project, the ambient types will be automatically loaded.
|
|
16
|
+
|
|
17
|
+
### TypeScript `tsconfig`
|
|
18
|
+
|
|
19
|
+
#### Add this package to `compilerOptions.types`
|
|
20
|
+
|
|
21
|
+
Example:
|
|
22
|
+
|
|
23
|
+
```json
|
|
24
|
+
{
|
|
25
|
+
"extends": "@tsconfig/node-lts/tsconfig.json",
|
|
26
|
+
"compilerOptions": {
|
|
27
|
+
"types": [
|
|
28
|
+
"@aws-lite/acm-types"
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
#### Or use reference types
|
|
35
|
+
|
|
36
|
+
Either in individual files or in an `index.d.ts` file.
|
|
37
|
+
|
|
38
|
+
```ts
|
|
39
|
+
/// <reference types="@aws-lite/acm-types" />
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
ymmv
|
|
43
|
+
|
|
44
|
+
```ts
|
|
45
|
+
/// <reference path="./node_modules/@aws-lite/acm-types/index.d.ts" />
|
|
46
|
+
```
|