AttributeGroup

class aws_cdk.aws_servicecatalogappregistry.AttributeGroup(scope, id, *, attribute_group_name, attributes, description=None)

Bases: Resource

(experimental) A Service Catalog AppRegistry Attribute Group.

Stability:

experimental

ExampleMetadata:

infused

Example:

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"
        }
    }
)
Parameters:
  • scope (Construct) –

  • id (str) –

  • attribute_group_name (str) – (experimental) Enforces a particular physical attribute group name.

  • attributes (Mapping[str, Any]) – (experimental) A JSON of nested key-value pairs that represent the attributes in the group. Attributes maybe an empty JSON ‘{}’, but must be explicitly stated.

  • description (Optional[str]) – (experimental) Description for attribute group. 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

to_string()

Returns a string representation of this construct.

Return type:

str

Attributes

attribute_group_arn

(experimental) The ARN of the attribute group.

Stability:

experimental

attribute_group_id

(experimental) The ID of the attribute group.

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_attribute_group_arn(scope, id, attribute_group_arn)

(experimental) Imports an attribute group construct that represents an external attribute group.

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

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

  • attribute_group_arn (str) – the Amazon Resource Name of the existing AppRegistry attribute group.

Stability:

experimental

Return type:

IAttributeGroup

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