Application

class aws_cdk.aws_servicecatalogappregistry.Application(scope, id, *, application_name, description=None)

Bases: Resource

(experimental) A Service Catalog AppRegistry Application.

Stability:

experimental

ExampleMetadata:

infused

Example:

application = appreg.Application(self, "MyFirstApplication",
    application_name="MyFirstApplicationName",
    description="description for my application"
)
Parameters:
  • scope (Construct) –

  • id (str) –

  • application_name (str) – (experimental) Enforces a particular physical application name.

  • description (Optional[str]) – (experimental) Description for application. Default: - No description provided

Stability:

experimental

Methods

apply_removal_policy(policy)

Apply the given removal policy to this resource.

The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you’ve removed it from the CDK application or because you’ve made a change that requires the resource to be replaced.

The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN).

Parameters:

policy (RemovalPolicy) –

Return type:

None

associate_attribute_group(attribute_group)

(experimental) Associate an attribute group with application If the attribute group is already associated, it will ignore duplicate request.

Parameters:

attribute_group (IAttributeGroup) –

Stability:

experimental

Return type:

None

associate_stack(stack)

(experimental) Associate a stack with the application If the resource is already associated, it will ignore duplicate request.

A stack can only be associated with one application.

Parameters:

stack (Stack) –

Stability:

experimental

Return type:

None

to_string()

Returns a string representation of this construct.

Return type:

str

Attributes

application_arn

(experimental) The ARN of the application.

Stability:

experimental

application_id

(experimental) The ID of the application.

Stability:

experimental

env

The environment this resource belongs to.

For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.

node

The construct tree node associated with this construct.

stack

The stack in which this resource is defined.

Static Methods

classmethod from_application_arn(scope, id, application_arn)

(experimental) Imports an Application construct that represents an external application.

Parameters:
  • scope (Construct) – The parent creating construct (usually this).

  • id (str) – The construct’s name.

  • application_arn (str) – the Amazon Resource Name of the existing AppRegistry Application.

Stability:

experimental

Return type:

IApplication

classmethod is_construct(x)

Return whether the given object is a Construct.

Parameters:

x (Any) –

Return type:

bool

classmethod is_resource(construct)

Check whether the given construct is a Resource.

Parameters:

construct (IConstruct) –

Return type:

bool