AppregistryAttributeGroupArgs

data class AppregistryAttributeGroupArgs(val attributes: Output<String>? = null, val description: Output<String>? = null, val name: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<AppregistryAttributeGroupArgs>

Resource for managing an AWS Service Catalog AppRegistry Attribute Group.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.servicecatalog.AppregistryAttributeGroup("example", {
name: "example",
description: "example description",
attributes: JSON.stringify({
app: "exampleapp",
group: "examplegroup",
}),
});
import pulumi
import json
import pulumi_aws as aws
example = aws.servicecatalog.AppregistryAttributeGroup("example",
name="example",
description="example description",
attributes=json.dumps({
"app": "exampleapp",
"group": "examplegroup",
}))
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.ServiceCatalog.AppregistryAttributeGroup("example", new()
{
Name = "example",
Description = "example description",
Attributes = JsonSerializer.Serialize(new Dictionary<string, object?>
{
["app"] = "exampleapp",
["group"] = "examplegroup",
}),
});
});
package main
import (
"encoding/json"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/servicecatalog"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
tmpJSON0, err := json.Marshal(map[string]interface{}{
"app": "exampleapp",
"group": "examplegroup",
})
if err != nil {
return err
}
json0 := string(tmpJSON0)
_, err = servicecatalog.NewAppregistryAttributeGroup(ctx, "example", &servicecatalog.AppregistryAttributeGroupArgs{
Name: pulumi.String("example"),
Description: pulumi.String("example description"),
Attributes: pulumi.String(json0),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.servicecatalog.AppregistryAttributeGroup;
import com.pulumi.aws.servicecatalog.AppregistryAttributeGroupArgs;
import static com.pulumi.codegen.internal.Serialization.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new AppregistryAttributeGroup("example", AppregistryAttributeGroupArgs.builder()
.name("example")
.description("example description")
.attributes(serializeJson(
jsonObject(
jsonProperty("app", "exampleapp"),
jsonProperty("group", "examplegroup")
)))
.build());
}
}
resources:
example:
type: aws:servicecatalog:AppregistryAttributeGroup
properties:
name: example
description: example description
attributes:
fn::toJSON:
app: exampleapp
group: examplegroup

Import

Using pulumi import, import Service Catalog AppRegistry Attribute Group using the id. For example:

$ pulumi import aws:servicecatalog/appregistryAttributeGroup:AppregistryAttributeGroup example 1234567890abcfedhijk09876s

Constructors

Link copied to clipboard
constructor(attributes: Output<String>? = null, description: Output<String>? = null, name: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val attributes: Output<String>? = null

A JSON string of nested key-value pairs that represents the attributes of the group. The following arguments are optional:

Link copied to clipboard
val description: Output<String>? = null

Description of the Attribute Group.

Link copied to clipboard
val name: Output<String>? = null

Name of the Attribute Group.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A map of tags assigned to the Attribute Group. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Functions

Link copied to clipboard
open override fun toJava(): AppregistryAttributeGroupArgs