Skip to content
v2.278.0

Experimental

@aws-cdk/aws-servicecatalogappregistry-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

AttributeGroupProps Struct ​

Properties for a Service Catalog AppRegistry Attribute Group.

Example ​

ts
const attributeGroup = new appreg.AttributeGroup(this, 'MyFirstAttributeGroup', {
  attributeGroupName: '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'
    }
  }
});
python
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"
        }
    }
)
java
AttributeGroup attributeGroup = AttributeGroup.Builder.create(this, "MyFirstAttributeGroup")
        .attributeGroupName("MyFirstAttributeGroupName")
        .description("description for my attribute group") // the description is optional,
        .attributes(Map.of(
                "project", "foo",
                "team", List.of("member1", "member2", "member3"),
                "public", false,
                "stages", Map.of(
                        "alpha", "complete",
                        "beta", "incomplete",
                        "release", "not started")))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.ServiceCatalogAppRegistry.Alpha
var attributeGroup = new AttributeGroup(this, "MyFirstAttributeGroup", new AttributeGroupProps {
    AttributeGroupName = "MyFirstAttributeGroupName",
    Description = "description for my attribute group",  // the description is optional,
    Attributes = new Dictionary<string, object> {
        { "project", "foo" },
        { "team", new [] { "member1", "member2", "member3" } },
        { "public", false },
        { "stages", new Dictionary<string, string> {
            { "alpha", "complete" },
            { "beta", "incomplete" },
            { "release", "not started" }
        } }
    }
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdkservicecatalogappregistryalpha/v2
attributeGroup := appreg.NewAttributeGroup(this, jsii.String("MyFirstAttributeGroup"), &AttributeGroupProps{
	AttributeGroupName: jsii.String("MyFirstAttributeGroupName"),
	Description: jsii.String("description for my attribute group"),
	 // the description is optional,
	Attributes: map[string]interface{}{
		"project": jsii.String("foo"),
		"team": []interface{}{
			jsii.String("member1"),
			jsii.String("member2"),
			jsii.String("member3"),
		},
		"public": jsii.Boolean(false),
		"stages": map[string]*string{
			"alpha": jsii.String("complete"),
			"beta": jsii.String("incomplete"),
			"release": jsii.String("not started"),
		},
	},
})

Properties ​

attributeGroupNamestringattribute_group_namestrattributeGroupNameStringAttributeGroupNamestringAttributeGroupName*string required #
Enforces a particular physical attribute group name.
attributes{ [key: string]: any }attributestyping.Mapping[str, Any]attributesMap<String, Object>AttributesIDictionary<string, object>Attributes*map[string]interface{} required #
A JSON of nested key-value pairs that represent the attributes in the group.

Attributes maybe an empty JSON '{}', but must be explicitly stated.

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
Description for attribute group.

Default: No description provided