@gammarers/aws-resource-naming
Advanced tools
Comparing version 0.8.3 to 0.9.0
57
API.md
# API Reference <a name="API Reference" id="api-reference"></a> | ||
## Structs <a name="Structs" id="Structs"></a> | ||
### ResourceAutoNaming <a name="ResourceAutoNaming" id="@gammarers/aws-resource-naming.ResourceAutoNaming"></a> | ||
#### Initializer <a name="Initializer" id="@gammarers/aws-resource-naming.ResourceAutoNaming.Initializer"></a> | ||
```typescript | ||
import { ResourceAutoNaming } from '@gammarers/aws-resource-naming' | ||
const resourceAutoNaming: ResourceAutoNaming = { ... } | ||
``` | ||
#### Properties <a name="Properties" id="Properties"></a> | ||
| **Name** | **Type** | **Description** | | ||
| --- | --- | --- | | ||
| <code><a href="#@gammarers/aws-resource-naming.ResourceAutoNaming.property.type">type</a></code> | <code><a href="#@gammarers/aws-resource-naming.ResourceNamingType">ResourceNamingType</a></code> | *No description.* | | ||
--- | ||
##### `type`<sup>Required</sup> <a name="type" id="@gammarers/aws-resource-naming.ResourceAutoNaming.property.type"></a> | ||
```typescript | ||
public readonly type: ResourceNamingType; | ||
``` | ||
- *Type:* <a href="#@gammarers/aws-resource-naming.ResourceNamingType">ResourceNamingType</a> | ||
--- | ||
### ResourceDefaultNaming <a name="ResourceDefaultNaming" id="@gammarers/aws-resource-naming.ResourceDefaultNaming"></a> | ||
#### Initializer <a name="Initializer" id="@gammarers/aws-resource-naming.ResourceDefaultNaming.Initializer"></a> | ||
```typescript | ||
import { ResourceDefaultNaming } from '@gammarers/aws-resource-naming' | ||
const resourceDefaultNaming: ResourceDefaultNaming = { ... } | ||
``` | ||
#### Properties <a name="Properties" id="Properties"></a> | ||
| **Name** | **Type** | **Description** | | ||
| --- | --- | --- | | ||
| <code><a href="#@gammarers/aws-resource-naming.ResourceDefaultNaming.property.type">type</a></code> | <code><a href="#@gammarers/aws-resource-naming.ResourceNamingType">ResourceNamingType</a></code> | *No description.* | | ||
--- | ||
##### `type`<sup>Required</sup> <a name="type" id="@gammarers/aws-resource-naming.ResourceDefaultNaming.property.type"></a> | ||
```typescript | ||
public readonly type: ResourceNamingType; | ||
``` | ||
- *Type:* <a href="#@gammarers/aws-resource-naming.ResourceNamingType">ResourceNamingType</a> | ||
--- | ||
## Enums <a name="Enums" id="Enums"></a> | ||
@@ -65,0 +8,0 @@ |
@@ -7,11 +7,7 @@ import * as crypto from 'crypto'; | ||
} | ||
export interface ResourceAutoNaming { | ||
export type ResourceAutoNaming = { | ||
readonly type: ResourceNamingType.AUTO; | ||
} | ||
export interface ResourceDefaultNaming { | ||
}; | ||
export type ResourceDefaultNaming = { | ||
readonly type: ResourceNamingType.DEFAULT; | ||
} | ||
export type ResourceNamingOptions = ResourceAutoNaming | ResourceDefaultNaming | { | ||
type: ResourceNamingType.CUSTOM; | ||
[key: string]: string; | ||
}; | ||
@@ -22,5 +18,8 @@ export declare namespace ResourceNaming { | ||
[p: string]: string; | ||
}, resourceNaming?: ResourceNamingOptions): { | ||
}, resourceNaming?: ResourceAutoNaming | ResourceDefaultNaming | { | ||
type: ResourceNamingType.CUSTOM; | ||
[key: string]: string; | ||
}): { | ||
[k: string]: string | undefined; | ||
}; | ||
} |
@@ -97,2 +97,2 @@ "use strict"; | ||
})(ResourceNaming || (exports.ResourceNaming = ResourceNaming = {})); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsaUNBQWlDO0FBRWpDLFVBQVU7QUFDViw2QkFBNkI7QUFDN0IsU0FBUztBQUVULHlCQUF5QjtBQUN6Qix3RUFBd0U7QUFDeEUsSUFBSTtBQUVKLElBQVksa0JBSVg7QUFKRCxXQUFZLGtCQUFrQjtJQUM1Qix5Q0FBbUIsQ0FBQTtJQUNuQixtQ0FBYSxDQUFBO0lBQ2IsdUNBQWlCLENBQUE7QUFDbkIsQ0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291cmNlTmFtaW5nLltuYW1lIGFzIGtleW9mIHtba2V5OiBzdHJpbmddOiBzdHJpbmd9XTtcbiAgICAgICAgICAgICAgLy8gcmV0dXJuIHJlc291cmNlTmFtaW5nLm5hbWVzW25hbWUgYXMga2V5b2Yge1trZXk6IHN0cmluZ106IHN0cmluZ31dO1xuICAgICAgICAgICAgICByZXR1cm4gcmVzb3VyY2VOYW1pbmdbbmFtZSBhcyBrZXlvZiB7IFtrZXk6IHN0cmluZ106IHN0cmluZyB9XTtcbiAgICAgICAgICAgIGNhc2UgUmVzb3VyY2VOYW1pbmdUeXBlLkFVVE86XG4gICAgICAgICAgICAgIHJldHVybiB2YWx1ZTtcbiAgICAgICAgICAgIGRlZmF1bHQ6XG4gICAgICAgICAgICBjYXNlIFJlc291cmNlTmFtaW5nVHlwZS5ERUZBVUxUOlxuICAgICAgICAgICAgICByZXR1cm4gdW5kZWZpbmVkO1xuICAgICAgICAgIH1cbiAgICAgICAgICAvLyAgICAgICAgICBpZiAoUmVzb3VyY2VOYW1pbmcuaXNOYW1pbmdUeXBlKHJlc291cmNlTmFtaW5nLm5hbWluZy50eXBlKSkge1xuICAgICAgICAgIC8vICAgICAgICAgICAgaWYgKHJlc291cmNlTmFtaW5nLm5hbWluZy50eXBlID09PSBSZXNvdXJjZU5hbWluZy5OYW1pbmdUeXBlLkRFRkFVTFQpIHtcbiAgICAgICAgICAvLyAgICAgICAgICAgICAgcmV0dXJuIHZhbHVlO1xuICAgICAgICAgIC8vICAgICAgICAgICAgfVxuICAgICAgICAgIC8vICAgICAgICAgICAgaWYgKHJlc291cmNlTmFtaW5nLm5hbWluZy50eXBlID09PSBSZXNvdXJjZU5hbWluZy5OYW1pbmdUeXBlLk5PKSB7XG4gICAgICAgICAgLy8gICAgICAgICAgICAgIHJldHVybiB1bmRlZmluZWQ7XG4gICAgICAgICAgLy8gICAgICAgICAgICB9XG4gICAgICAgICAgLy8gICAgICAgICAgICByZXR1cm4gcmVzb3VyY2VOYW1pbmc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bWluZz86IHtcbiAgICAvLyAgICAgIG5hbWluZzogUmVzb3VyY2VOYW1pbmcuQXV0b05hbWluZyB8IFJlc291cmNlTmFtaW5nLkRlZmF1bHROYW1pbmcgfCB7dHlwZTogUmVzb3VyY2VOYW1pbmcuTmFtaW5nVHlwZS5DVVNUT007IG5hbWVzOiB7W2tleTogc3RyaW5nXTogc3RyaW5nfX07XG4gICAgLy8gICAgfSkge1xuICAgIHJlc291cmNlTmFtaW5nPzogUmVzb3VyY2VBdXRvTmFtaW5nIHwgUmVzb3VyY2VEZWZhdWx0TmFtaW5nIHwge3R5cGU6IFJlc291cmNlTmFtaW5nVHlwZS5DVVNUT007IFtrZXk6IHN0cmluZ106IHN0cmluZ30pIHtcbiAgICByZXR1cm4gT2JqZWN0LmZyb21FbnRyaWVzKFxuICAgICAgT2JqZWN0LmVudHJpZXMoYXV0b05hbWluZykubWFwKChbbmFtZSwgdmFsdWVdKSA9PiB7XG4gICAgICAgIHJldHVybiBbbmFtZSwgKCgpID0+IHtcbiAgICAgICAgICBzd2l0Y2ggKHJlc291cmNlTmFtaW5nPy50eXBlKSB7XG4gICAgICAgICAgICBjYXNlIFJlc291cmNlTmFtaW5nVHlwZS5DVVNUT006XG4gICAgICAgICAgICAgIC8vIHJldHVybiByZXNvdXJjZU5hbWluZy5bbmFtZSBhcyBrZXlvZiB7W2tleTogc3RyaW5nXTogc3RyaW5nfV07XG4gICAgICAgICAgICAgIC8vIHJldHVybiByZXNvdXJjZU5hbWluZy5uYW1lc1tuYW1lIGFzIGtleW9mIHtba2V5OiBzdHJpbmddOiBzdHJpbmd9XTtcbiAgICAgICAgICAgICAgcmV0dXJuIHJlc291cmNlTmFtaW5nW25hbWUgYXMga2V5b2YgeyBba2V5OiBzdHJpbmddOiBzdHJpbmcgfV07XG4gICAgICAgICAgICBjYXNlIFJlc291cmNlTmFtaW5nVHlwZS5BVVRPOlxuICAgICAgICAgICAgICByZXR1cm4gdmFsdWU7XG4gICAgICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgICAgY2FzZSBSZXNvdXJjZU5hbWluZ1R5cGUuREVGQVVMVDpcbiAgICAgICAgICAgICAgcmV0dXJuIHVuZGVmaW5lZDtcbiAgICAgICAgICB9XG4gICAgICAgICAgLy8gICAgICAgICAgaWYgKFJlc291cmNlTmFtaW5nLmlzTmFtaW5nVHlwZShyZXNvdXJjZU5hbWluZy5uYW1pbmcudHlwZSkpIHtcbiAgICAgICAgICAvLyAgICAgICAgICAgIGlmIChyZXNvdXJjZU5hbWluZy5uYW1pbmcudHlwZSA9PT0gUmVzb3VyY2VOYW1pbmcuTmFtaW5nVHlwZS5ERUZBVUxUKSB7XG4gICAgICAgICAgLy8gICAgICAgICAgICAgIHJldHVybiB2YWx1ZTtcbiAgICAgICAgICAvLyAgICAgICAgICAgIH1cbiAgICAgICAgICAvLyAgICAgICAgICAgIGlmIChyZXNvdXJjZU5hbWluZy5uYW1pbmcudHlwZSA9PT0gUmVzb3VyY2VOYW1pbmcuTmFtaW5nVHlwZS5OTykge1xuICAgICAgICAgIC8vICAgICAgICAgICAgICByZXR1cm4gdW5kZWZpbmVkO1xuICAgICAgICAgIC8vICAgICAgICAgICAgfVxuICAgICAgICAgIC8vICAgICAgICAgICAgcmV0dXJuIHJlc291cmNlTmFtaW5nLm5hbWluZy5uYW1lc1tuYW1lIGFzIGtleW9mIHtba2V5OiBzdHJpbmddOiBzdHJpbmd9XTtcbiAgICAgICAgICAvLyAgICAgICAgICB9XG4gICAgICAgICAgLy8gcmV0dXJuIHJlc291cmNlTmFtaW5nLm5hbWluZ1tuYW1lIGFzIGtleW9mIHtbSyBpbiBUXTogc3RyaW5nfV07XG4gICAgICAgICAgLy8gcmV0dXJuIHJlc291cmNlTmFtaW5nLm5hbWluZy5uYW1lc1tuYW1lIGFzIGtleW9mIHtba2V5OiBzdHJpbmddOiBzdHJpbmd9XTtcblxuICAgICAgICAgIC8vIHJldHVybiB1bmRlZmluZWQ7XG4gICAgICAgIH0pKCldO1xuICAgICAgfSksXG4gICAgKTtcbiAgfVxufVxuIl19 |
@@ -69,3 +69,3 @@ { | ||
}, | ||
"version": "0.8.3", | ||
"version": "0.9.0", | ||
"jest": { | ||
@@ -72,0 +72,0 @@ "coverageProvider": "v8", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31881
119