@aws-cdk/aws-servicecatalog
Advanced tools
Comparing version 1.110.1 to 1.111.0
export * from './common'; | ||
export * from './cloudformation-template'; | ||
export * from './portfolio'; | ||
export * from './product'; | ||
export * from './servicecatalog.generated'; |
@@ -14,5 +14,7 @@ "use strict"; | ||
__exportStar(require("./common"), exports); | ||
__exportStar(require("./cloudformation-template"), exports); | ||
__exportStar(require("./portfolio"), exports); | ||
__exportStar(require("./product"), exports); | ||
// AWS::ServiceCatalog CloudFormation Resources: | ||
__exportStar(require("./servicecatalog.generated"), exports); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQSwyQ0FBeUI7QUFDekIsOENBQTRCO0FBRTVCLGdEQUFnRDtBQUNoRCw2REFBMkMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2NvbW1vbic7XG5leHBvcnQgKiBmcm9tICcuL3BvcnRmb2xpbyc7XG5cbi8vIEFXUzo6U2VydmljZUNhdGFsb2cgQ2xvdWRGb3JtYXRpb24gUmVzb3VyY2VzOlxuZXhwb3J0ICogZnJvbSAnLi9zZXJ2aWNlY2F0YWxvZy5nZW5lcmF0ZWQnO1xuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQSwyQ0FBeUI7QUFDekIsNERBQTBDO0FBQzFDLDhDQUE0QjtBQUM1Qiw0Q0FBMEI7QUFFMUIsZ0RBQWdEO0FBQ2hELDZEQUEyQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vY29tbW9uJztcbmV4cG9ydCAqIGZyb20gJy4vY2xvdWRmb3JtYXRpb24tdGVtcGxhdGUnO1xuZXhwb3J0ICogZnJvbSAnLi9wb3J0Zm9saW8nO1xuZXhwb3J0ICogZnJvbSAnLi9wcm9kdWN0JztcblxuLy8gQVdTOjpTZXJ2aWNlQ2F0YWxvZyBDbG91ZEZvcm1hdGlvbiBSZXNvdXJjZXM6XG5leHBvcnQgKiBmcm9tICcuL3NlcnZpY2VjYXRhbG9nLmdlbmVyYXRlZCc7XG4iXX0= |
@@ -138,3 +138,3 @@ "use strict"; | ||
_a = JSII_RTTI_SYMBOL_1; | ||
Portfolio[_a] = { fqn: "@aws-cdk/aws-servicecatalog.Portfolio", version: "1.110.1" }; | ||
Portfolio[_a] = { fqn: "@aws-cdk/aws-servicecatalog.Portfolio", version: "1.111.0" }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9ydGZvbGlvLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsicG9ydGZvbGlvLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQ0EscUNBQXFDO0FBRXJDLHlDQUE0QztBQUM1QyxxREFBc0Q7QUFDdEQseUVBQStHO0FBb0MvRyxNQUFlLGFBQWMsU0FBUSxHQUFHLENBQUMsUUFBUTtJQUFqRDs7UUFHbUIseUJBQW9CLEdBQWdCLElBQUksR0FBRyxFQUFFLENBQUM7SUE0Q2pFLENBQUM7Ozs7OztJQTFDUSxnQkFBZ0IsQ0FBQyxJQUFlO1FBQ3JDLElBQUksQ0FBQyxrQkFBa0IsQ0FBQyxJQUFJLENBQUMsT0FBTyxFQUFFLElBQUksQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUM7SUFDeEQsQ0FBQzs7Ozs7O0lBRU0sZ0JBQWdCLENBQUMsSUFBZTtRQUNyQyxJQUFJLENBQUMsa0JBQWtCLENB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c7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuZXhwb3J0IGludGVyZmFjZSBQb3J0Zm9saW9TaGFyZU9wdGlvbnMge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcmVhZG9ubHkgc2hhcmVUYWdPcHRpb25zPzogYm9vbGVhbjtcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcmVhZG9ubHkgYWNjZXB0TGFuZ3VhZ2U/OiBBY2NlcHRMYW5ndWFnZTtcbn1cblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG5leHBvcnQgaW50ZXJmYWNlIElQb3J0Zm9saW8gZXh0ZW5kcyBjZGsuSVJlc291cmNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcmVhZG9ubHkgcG9ydGZvbGlvQXJuOiBzdHJpbmc7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICByZWFkb25seSBwb3J0Zm9saW9JZDogc3RyaW5nO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICBnaXZlQWNjZXNzVG9Sb2xlKHJvbGU6IGlhbS5JUm9sZSk6IHZvaWQ7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIGdpdmVBY2Nlc3NUb1VzZXIodXNlcjogaWFtLklVc2VyKTogdm9pZDtcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgZ2l2ZUFjY2Vzc1RvR3JvdXAoZ3JvdXA6IGlhbS5JR3JvdXApOiB2b2lkO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgc2hhcmVXaXRoQWNjb3VudChhY2NvdW50SWQ6IHN0cmluZywgb3B0aW9ucz86IFBvcnRmb2xpb1NoYXJlT3B0aW9ucyk6IHZvaWQ7XG59XG5cbmFic3RyYWN0IGNsYXNzIFBvcnRmb2xpb0Jhc2UgZXh0ZW5kcyBjZGsuUmVzb3VyY2UgaW1wbGVtZW50cyBJUG9ydGZvbGlvIHtcbiAgcHVibGljIGFic3RyYWN0IHJlYWRvbmx5IHBvcnRmb2xpb0Fybjogc3RyaW5nO1xuICBwdWJsaWMgYWJzdHJhY3QgcmVhZG9ubHkgcG9ydGZvbGlvSWQ6IHN0cmluZztcbiAgcHJpdmF0ZSByZWFkb25seSBhc3NvY2lhdGVkUHJpbmNpcGFsczogU2V0PHN0cmluZz4gPSBuZXcgU2V0KCk7XG5cbiAgcHVibGljIGdpdmVBY2Nlc3NUb1JvbGUocm9sZTogaWFtLklSb2xlKTogdm9pZCB7XG4gICAgdGhpcy5hc3NvY2lhdGVQcmluY2lwYWwocm9sZS5yb2xlQXJuLCByb2xlLm5vZGUuYWRkcik7XG4gIH1cblxuICBwdWJsaWMgZ2l2ZUFjY2Vzc1RvVXNlcih1c2VyOiBpYW0uSVVzZXIpOiB2b2lkIHtcbiAgICB0aGlzLmFzc29jaWF0ZVByaW5j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ZG9ubHkgYWNjZXB0TGFuZ3VhZ2U/OiBBY2NlcHRMYW5ndWFnZTtcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcmVhZG9ubHkgZGVzY3JpcHRpb24/OiBzdHJpbmc7XG59XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuZXhwb3J0IGNsYXNzIFBvcnRmb2xpbyBleHRlbmRzIFBvcnRmb2xpb0Jhc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIHB1YmxpYyBzdGF0aWMgZnJvbVBvcnRmb2xpb0FybihzY29wZTogQ29uc3RydWN0LCBpZDogc3RyaW5nLCBwb3J0Zm9saW9Bcm46IHN0cmluZyk6IElQb3J0Zm9saW8ge1xuICAgIGNvbnN0IGFybiA9IGNkay5TdGFjay5vZihzY29wZSkucGFyc2VBcm4ocG9ydGZvbGlvQXJuKTtcbiAgICBjb25zdCBwb3J0Zm9saW9JZCA9IGFybi5yZXNvdXJjZU5hbWU7XG5cbiAgICBpZiAoIXBvcnRmb2xpb0lkKSB7XG4gICAgICB0aHJvdyBuZXcgRXJyb3IoJ01pc3NpbmcgcmVxdWlyZWQgUG9ydGZvbGlvIElEIGZyb20gUG9ydGZvbGlvIEFSTjogJyArIHBvcnRmb2xpb0Fybik7XG4gICAgfVxuXG4gICAgY2xhc3MgSW1wb3J0IGV4dGVuZHMgUG9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@ /** | ||
static validateLength(resourceName: string, inputName: string, minLength: number, maxLength: number, inputString?: string): void; | ||
/** | ||
* Validates string matches the allowed regex pattern. | ||
*/ | ||
static validateRegex(resourceName: string, inputName: string, regexp: RegExp, inputString?: string): void; | ||
/** | ||
* Validates string matches the valid URL regex pattern. | ||
*/ | ||
static validateUrl(resourceName: string, inputName: string, inputString?: string): void; | ||
/** | ||
* Validates string matches the valid email regex pattern. | ||
*/ | ||
static validateEmail(resourceName: string, inputName: string, inputString?: string): void; | ||
private static truncateString; | ||
} |
@@ -17,2 +17,22 @@ "use strict"; | ||
} | ||
/** | ||
* Validates string matches the allowed regex pattern. | ||
*/ | ||
static validateRegex(resourceName, inputName, regexp, inputString) { | ||
if (!cdk.Token.isUnresolved(inputString) && inputString !== undefined && !regexp.test(inputString)) { | ||
throw new Error(`Invalid ${inputName} for resource ${resourceName}, must match regex pattern ${regexp}, got: '${this.truncateString(inputString, 100)}'`); | ||
} | ||
} | ||
/** | ||
* Validates string matches the valid URL regex pattern. | ||
*/ | ||
static validateUrl(resourceName, inputName, inputString) { | ||
this.validateRegex(resourceName, inputName, /^https?:\/\/.*/, inputString); | ||
} | ||
/** | ||
* Validates string matches the valid email regex pattern. | ||
*/ | ||
static validateEmail(resourceName, inputName, inputString) { | ||
this.validateRegex(resourceName, inputName, /^[\w\d.%+\-]+@[a-z\d.\-]+\.[a-z]{2,4}$/i, inputString); | ||
} | ||
static truncateString(string, maxLength) { | ||
@@ -26,2 +46,2 @@ if (string.length > maxLength) { | ||
exports.InputValidator = InputValidator; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInZhbGlkYXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEscUNBQXFDO0FBRXJDOztHQUVHO0FBQ0gsTUFBYSxjQUFjO0lBQ3pCOztPQUVHO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coMCwgbWF4TGVuZ3RoKSArICdbdHJ1bmNhdGVkXSc7XG4gICAgfVxuICAgIHJldHVybiBzdHJpbmc7XG4gIH1cbn0iXX0= |
{ | ||
"name": "@aws-cdk/aws-servicecatalog", | ||
"version": "1.110.1", | ||
"version": "1.111.0", | ||
"description": "The CDK Construct Library for AWS::ServiceCatalog", | ||
@@ -77,11 +77,12 @@ "main": "lib/index.js", | ||
"@types/jest": "^26.0.23", | ||
"cdk-build-tools": "1.110.1", | ||
"cdk-integ-tools": "1.110.1", | ||
"cfn2ts": "1.110.1", | ||
"pkglint": "1.110.1", | ||
"@aws-cdk/assert-internal": "1.110.1" | ||
"cdk-build-tools": "1.111.0", | ||
"cdk-integ-tools": "1.111.0", | ||
"cfn2ts": "1.111.0", | ||
"pkglint": "1.111.0", | ||
"@aws-cdk/assert-internal": "1.111.0" | ||
}, | ||
"dependencies": { | ||
"@aws-cdk/aws-iam": "1.110.1", | ||
"@aws-cdk/core": "1.110.1", | ||
"@aws-cdk/aws-iam": "1.111.0", | ||
"@aws-cdk/aws-s3-assets": "1.111.0", | ||
"@aws-cdk/core": "1.111.0", | ||
"constructs": "^3.3.69" | ||
@@ -91,4 +92,5 @@ }, | ||
"peerDependencies": { | ||
"@aws-cdk/aws-iam": "1.110.1", | ||
"@aws-cdk/core": "1.110.1", | ||
"@aws-cdk/aws-iam": "1.111.0", | ||
"@aws-cdk/aws-s3-assets": "1.111.0", | ||
"@aws-cdk/core": "1.111.0", | ||
"constructs": "^3.3.69" | ||
@@ -101,2 +103,6 @@ }, | ||
"exclude": [ | ||
"resource-attribute:@aws-cdk/aws-servicecatalog.CloudFormationProduct.cloudFormationProductProductName", | ||
"resource-attribute:@aws-cdk/aws-servicecatalog.CloudFormationProduct.cloudFormationProductProvisioningArtifactIds", | ||
"resource-attribute:@aws-cdk/aws-servicecatalog.CloudFormationProduct.cloudFormationProductProvisioningArtifactNames", | ||
"props-physical-name:@aws-cdk/aws-servicecatalog.CloudFormationProductProps", | ||
"resource-attribute:@aws-cdk/aws-servicecatalog.Portfolio.portfolioName", | ||
@@ -103,0 +109,0 @@ "props-physical-name:@aws-cdk/aws-servicecatalog.PortfolioProps" |
@@ -32,2 +32,3 @@ # AWS Service Catalog Construct Library | ||
- [Sharing a portfolio with another AWS account](#sharing-a-portfolio-with-another-aws-account) | ||
- [Product](#product) | ||
@@ -101,1 +102,44 @@ The `@aws-cdk/aws-servicecatalog` package contains resources that enable users to automate governance and management of their AWS resources at scale. | ||
``` | ||
## Product | ||
Products are the resources you are allowing end users to provision and utilize. | ||
The CDK currently only supports adding products of type Cloudformation product. | ||
Using the CDK, a new Product can be created with the `CloudFormationProduct` construct. | ||
`CloudFormationTemplate.fromUrl` can be utilized to create a Product using a Cloudformation template directly from an URL: | ||
```ts | ||
const product = new servicecatalog.CloudFormationProduct(this, 'MyFirstProduct', { | ||
productName: "My Product", | ||
owner: "Product Owner", | ||
productVersions: [ | ||
{ | ||
productVersionName: "v1", | ||
cloudFormationTemplate: servicecatalog.CloudFormationTemplate.fromUrl( | ||
'https://raw.githubusercontent.com/awslabs/aws-cloudformation-templates/master/aws/services/ServiceCatalog/Product.yaml'), | ||
}, | ||
] | ||
}); | ||
``` | ||
A `CloudFormationProduct` can also be created using a Cloudformation template from an Asset. | ||
Assets are files that are uploaded to an S3 Bucket before deployment. | ||
`CloudFormationTemplate.fromAsset` can be utilized to create a Product by passing the path to a local template file on your disk: | ||
```ts | ||
const product = new servicecatalog.CloudFormationProduct(this, 'MyFirstProduct', { | ||
productName: "My Product", | ||
owner: "Product Owner", | ||
productVersions: [ | ||
{ | ||
productVersionName: "v1", | ||
cloudFormationTemplate: servicecatalog.CloudFormationTemplate.fromUrl( | ||
'https://raw.githubusercontent.com/awslabs/aws-cloudformation-templates/master/aws/services/ServiceCatalog/Product.yaml'), | ||
}, | ||
{ | ||
productVersionName: "v2", | ||
cloudFormationTemplate: servicecatalog.CloudFormationTemplate.fromAsset(path.join(__dirname, 'development-environment.template.json')), | ||
}, | ||
] | ||
}); | ||
``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
972645
25
5805
144
8
+ Added@aws-cdk/assets@1.111.0(transitive)
+ Added@aws-cdk/aws-events@1.111.0(transitive)
+ Added@aws-cdk/aws-iam@1.111.0(transitive)
+ Added@aws-cdk/aws-kms@1.111.0(transitive)
+ Added@aws-cdk/aws-s3@1.111.0(transitive)
+ Added@aws-cdk/aws-s3-assets@1.111.0(transitive)
+ Added@aws-cdk/cloud-assembly-schema@1.111.0(transitive)
+ Added@aws-cdk/core@1.111.0(transitive)
+ Added@aws-cdk/cx-api@1.111.0(transitive)
+ Added@aws-cdk/region-info@1.111.0(transitive)
- Removed@aws-cdk/aws-iam@1.110.1(transitive)
- Removed@aws-cdk/cloud-assembly-schema@1.110.1(transitive)
- Removed@aws-cdk/core@1.110.1(transitive)
- Removed@aws-cdk/cx-api@1.110.1(transitive)
- Removed@aws-cdk/region-info@1.110.1(transitive)
Updated@aws-cdk/aws-iam@1.111.0
Updated@aws-cdk/core@1.111.0