CommonConstraintOptions

class aws_cdk.aws_servicecatalog.CommonConstraintOptions(*, description=None, message_language=None)

Bases: object

Properties for governance mechanisms and constraints.

Parameters:
  • description (Optional[str]) – The description of the constraint. Default: - No description provided

  • message_language (Optional[MessageLanguage]) – The language code. Configures the language for error messages from service catalog. Default: - English

ExampleMetadata:

infused

Example:

import aws_cdk.aws_sns as sns

# portfolio: servicecatalog.Portfolio
# product: servicecatalog.CloudFormationProduct


topic1 = sns.Topic(self, "Topic1")
portfolio.notify_on_stack_events(product, topic1)

topic2 = sns.Topic(self, "Topic2")
portfolio.notify_on_stack_events(product, topic2,
    description="description for topic2"
)

Attributes

description

The description of the constraint.

Default:
  • No description provided

message_language

The language code.

Configures the language for error messages from service catalog.

Default:
  • English