1.204.0 • Published 11 months ago

@aws-cdk/aws-servicecatalogappregistry v1.204.0

Weekly downloads
3,344
License
Apache-2.0
Repository
github
Last release
11 months ago

AWS ServiceCatalogAppRegistry Construct Library


End-of-Support

AWS CDK v1 has reached End-of-Support on 2023-06-01. This package is no longer being updated, and users should migrate to AWS CDK v2.

For more information on how to migrate, see the Migrating to AWS CDK v2 guide.

doc: https://docs.aws.amazon.com/cdk/v2/guide/migrating-v2.html


AWS Service Catalog App Registry enables organizations to create and manage repositores of applications and associated resources.

Table Of Contents

The @aws-cdk/aws-servicecatalogappregistry package contains resources that enable users to automate governance and management of their AWS resources at scale.

import * as appreg from '@aws-cdk/aws-servicecatalogappregistry';

Application

An AppRegistry application enables you to define your applications and associated resources. The application name must be unique at the account level, but is mutable.

const application = new appreg.Application(this, 'MyFirstApplication', {
  applicationName: 'MyFirstApplicationName', 
  description: 'description for my application', // the description is optional
});

An application that has been created outside of the stack can be imported into your CDK app. Applications can be imported by their ARN via the Application.fromApplicationArn() API:

const importedApplication = appreg.Application.fromApplicationArn(
  this,
  'MyImportedApplication',
  'arn:aws:servicecatalog:us-east-1:012345678910:/applications/0aqmvxvgmry0ecc4mjhwypun6i',
);

Attribute Group

An AppRegistry attribute group acts as a container for user-defined attributes for an application. Metadata is attached in a machine-readble format to integrate with automated workflows and tools.

const attributeGroup = new appreg.AttributeGroup(this, 'MyFirstAttributeGroup', {
  attributeGroupName: 'MyFirstAttributeGroupName', 
  description: 'description for my attribute group', // the description is optional,
  attributes: {
    project: 'foo',
    team: ['member1', 'member2', 'member3'],
    public: false,
    stages: {
      alpha: 'complete',
      beta: 'incomplete',
      release: 'not started'
    }
  }
});

An attribute group that has been created outside of the stack can be imported into your CDK app. Attribute groups can be imported by their ARN via the AttributeGroup.fromAttributeGroupArn() API:

const importedAttributeGroup = appreg.AttributeGroup.fromAttributeGroupArn(
  this,
  'MyImportedAttrGroup',
  'arn:aws:servicecatalog:us-east-1:012345678910:/attribute-groups/0aqmvxvgmry0ecc4mjhwypun6i',
);

Associations

You can associate your appregistry application with attribute groups and resources. Resources are CloudFormation stacks that you can associate with an application to group relevant stacks together to enable metadata rich insights into your applications and resources. A Cloudformation stack can only be associated with one appregistry application. If a stack is associated with multiple applications in your app or is already associated with one, CDK will fail at deploy time.

Associating application with an attribute group

You can associate an attribute group with an application with the associateAttributeGroup() API:

declare const application: appreg.Application;
declare const attributeGroup: appreg.AttributeGroup;
application.associateAttributeGroup(attributeGroup);

Associating application with a Stack

You can associate a stack with an application with the associateStack() API:

const app = new App();
const myStack = new Stack(app, 'MyStack');

declare const application: appreg.Application;
application.associateStack(myStack);
1.204.0

11 months ago

1.203.0

11 months ago

1.201.0

12 months ago

1.199.0

1 year ago

1.200.0

1 year ago

1.198.1

1 year ago

1.202.0

12 months ago

1.195.0

1 year ago

1.194.0

1 year ago

1.198.0

1 year ago

1.193.0

1 year ago

1.197.0

1 year ago

1.192.0

1 year ago

1.196.0

1 year ago

1.187.0

1 year ago

1.191.0

1 year ago

1.186.0

1 year ago

1.186.1

1 year ago

1.190.0

1 year ago

1.185.0

1 year ago

1.189.0

1 year ago

1.188.0

1 year ago

1.183.0

1 year ago

1.182.0

1 year ago

1.179.0

2 years ago

1.181.0

1 year ago

1.181.1

1 year ago

1.178.0

2 years ago

1.180.0

2 years ago

1.184.0

1 year ago

1.184.1

1 year ago

1.177.0

2 years ago

1.176.0

2 years ago

1.175.0

2 years ago

1.172.0

2 years ago

1.171.0

2 years ago

1.170.0

2 years ago

1.174.0

2 years ago

1.170.1

2 years ago

1.169.0

2 years ago

1.173.0

2 years ago

1.160.0

2 years ago

1.164.0

2 years ago

1.168.0

2 years ago

1.163.0

2 years ago

1.167.0

2 years ago

1.163.2

2 years ago

1.163.1

2 years ago

1.162.0

2 years ago

1.166.1

2 years ago

1.159.0

2 years ago

1.161.0

2 years ago

1.165.0

2 years ago

1.158.0

2 years ago

1.155.0

2 years ago

1.157.0

2 years ago

1.154.0

2 years ago

1.156.0

2 years ago

1.156.1

2 years ago

1.149.0

2 years ago

1.153.0

2 years ago

1.153.1

2 years ago

1.151.0

2 years ago

1.148.0

2 years ago

1.150.0

2 years ago

1.152.0

2 years ago

1.147.0

2 years ago

1.146.0

2 years ago

1.143.0

2 years ago

1.145.0

2 years ago

1.141.0

2 years ago

1.138.2

2 years ago

1.138.1

2 years ago

1.136.0

2 years ago

1.138.0

2 years ago

1.142.0

2 years ago

1.144.0

2 years ago

1.140.0

2 years ago

1.139.0

2 years ago

1.135.0

2 years ago

1.137.0

2 years ago

1.132.0

2 years ago

1.134.0

2 years ago

1.131.0

2 years ago

1.133.0

2 years ago

1.130.0

3 years ago

1.129.0

3 years ago

1.128.0

3 years ago

1.126.0

3 years ago

1.127.0

3 years ago

1.125.0

3 years ago

1.124.0

3 years ago

1.123.0

3 years ago

1.122.0

3 years ago

1.121.0

3 years ago

1.120.0

3 years ago

1.119.0

3 years ago

1.118.0

3 years ago

1.117.0

3 years ago

1.116.0

3 years ago

1.115.0

3 years ago

1.114.0

3 years ago

1.113.0

3 years ago

1.112.0

3 years ago

1.111.0

3 years ago

1.110.1

3 years ago

1.110.0

3 years ago

1.109.0

3 years ago

1.108.0

3 years ago

1.108.1

3 years ago

1.107.0

3 years ago

1.106.1

3 years ago

1.106.0

3 years ago

1.101.0

3 years ago

1.104.0

3 years ago

1.105.0

3 years ago

1.102.0

3 years ago

1.103.0

3 years ago

1.100.0

3 years ago

1.99.0

3 years ago

1.98.0

3 years ago

1.97.0

3 years ago

1.96.0

3 years ago

1.95.2

3 years ago

1.95.1

3 years ago

1.95.0

3 years ago

1.94.1

3 years ago

1.94.0

3 years ago

1.93.0

3 years ago

1.92.0

3 years ago

1.91.0

3 years ago

1.90.1

3 years ago

1.90.0

3 years ago

1.89.0

3 years ago

1.88.0

3 years ago

1.87.1

3 years ago

1.87.0

3 years ago

1.86.0

3 years ago