The CDK Construct Library for AWS::ServiceCatalogAppRegistry
Project description
AWS ServiceCatalogAppRegistry Construct Library
---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.
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 aws_cdk.aws_servicecatalogappregistry as appreg
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.
application = appreg.Application(self, "MyFirstApplication",
application_name="MyFirstApplicationName",
description="description for my application"
)
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:
imported_application = appreg.Application.from_application_arn(self, "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.
attribute_group = appreg.AttributeGroup(self, "MyFirstAttributeGroup",
attribute_group_name="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:
imported_attribute_group = appreg.AttributeGroup.from_attribute_group_arn(self, "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:
# application: appreg.Application
# attribute_group: appreg.AttributeGroup
application.associate_attribute_group(attribute_group)
Associating application with a Stack
You can associate a stack with an application with the associateStack()
API:
# application: appreg.Application
app = App()
my_stack = Stack(app, "MyStack")
application.associate_stack(my_stack)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file aws-cdk.aws-servicecatalogappregistry-1.204.0.tar.gz
.
File metadata
- Download URL: aws-cdk.aws-servicecatalogappregistry-1.204.0.tar.gz
- Upload date:
- Size: 69.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0cbfd9b92eef066e593003d2cea25d2e565b8f6d09879cfa636f44210ab93ca7 |
|
MD5 | 81fdedf1443364745236b778ff67215b |
|
BLAKE2b-256 | ca28a606e30535aaafb80adce2906b2e91b5aac4313984b6fdf5f424d112f12a |
File details
Details for the file aws_cdk.aws_servicecatalogappregistry-1.204.0-py3-none-any.whl
.
File metadata
- Download URL: aws_cdk.aws_servicecatalogappregistry-1.204.0-py3-none-any.whl
- Upload date:
- Size: 67.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a0db12064f7fe0dde50fc1fad91f1f0d9e2634ab6c8d4cbc7a939313343d3d9 |
|
MD5 | 67bd18b6b6be6914e40aa535cc656503 |
|
BLAKE2b-256 | 4be0c190f0d58f6c1196e183298612dd663edb70669f3b6871f69b28bc28ed25 |