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)
Metadata
Release files for aws-cdk.aws-servicecatalogappregistry 1.204.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aws-cdk.aws-servicecatalogappregistry-1.204.0.tar.gz | 69.1 kB | Without provenance | Details for aws-cdk.aws-servicecatalogappregistry-1.204.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aws_cdk.aws_servicecatalogappregistry-1.204.0-py3-none-any.whl | Python 3 | none | any | Details for aws_cdk.aws_servicecatalogappregistry-1.204.0-py3-none-any.whl |
Total release size: 137.0 kB
Release files / aws-cdk.aws-servicecatalogappregistry-1.204.0.tar.gz
| Download URL | aws-cdk.aws-servicecatalogappregistry-1.204.0.tar.gz |
|---|---|
| Size | 69.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0cbfd9b92eef066e593003d2cea25d2e565b8f6d09879cfa636f44210ab93ca7
|
|
BLAKE2b-256 checksum How to use checksums |
ca28a606e30535aaafb80adce2906b2e91b5aac4313984b6fdf5f424d112f12a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / aws_cdk.aws_servicecatalogappregistry-1.204.0-py3-none-any.whl
| Download URL | aws_cdk.aws_servicecatalogappregistry-1.204.0-py3-none-any.whl |
|---|---|
| Size | 67.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7a0db12064f7fe0dde50fc1fad91f1f0d9e2634ab6c8d4cbc7a939313343d3d9
|
|
BLAKE2b-256 checksum How to use checksums |
4be0c190f0d58f6c1196e183298612dd663edb70669f3b6871f69b28bc28ed25
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Security for aws-cdk.aws-servicecatalogappregistry 1.204.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.