aws.servicecatalog.AppregistryAttributeGroup
Explore with Pulumi AI
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",
}))
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
})
}
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 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
Create AppregistryAttributeGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AppregistryAttributeGroup(name: string, args: AppregistryAttributeGroupArgs, opts?: CustomResourceOptions);
@overload
def AppregistryAttributeGroup(resource_name: str,
args: AppregistryAttributeGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AppregistryAttributeGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
attributes: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewAppregistryAttributeGroup(ctx *Context, name string, args AppregistryAttributeGroupArgs, opts ...ResourceOption) (*AppregistryAttributeGroup, error)
public AppregistryAttributeGroup(string name, AppregistryAttributeGroupArgs args, CustomResourceOptions? opts = null)
public AppregistryAttributeGroup(String name, AppregistryAttributeGroupArgs args)
public AppregistryAttributeGroup(String name, AppregistryAttributeGroupArgs args, CustomResourceOptions options)
type: aws:servicecatalog:AppregistryAttributeGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AppregistryAttributeGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AppregistryAttributeGroupArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AppregistryAttributeGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AppregistryAttributeGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AppregistryAttributeGroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var appregistryAttributeGroupResource = new Aws.ServiceCatalog.AppregistryAttributeGroup("appregistryAttributeGroupResource", new()
{
Attributes = "string",
Description = "string",
Name = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := servicecatalog.NewAppregistryAttributeGroup(ctx, "appregistryAttributeGroupResource", &servicecatalog.AppregistryAttributeGroupArgs{
Attributes: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var appregistryAttributeGroupResource = new AppregistryAttributeGroup("appregistryAttributeGroupResource", AppregistryAttributeGroupArgs.builder()
.attributes("string")
.description("string")
.name("string")
.tags(Map.of("string", "string"))
.build());
appregistry_attribute_group_resource = aws.servicecatalog.AppregistryAttributeGroup("appregistryAttributeGroupResource",
attributes="string",
description="string",
name="string",
tags={
"string": "string",
})
const appregistryAttributeGroupResource = new aws.servicecatalog.AppregistryAttributeGroup("appregistryAttributeGroupResource", {
attributes: "string",
description: "string",
name: "string",
tags: {
string: "string",
},
});
type: aws:servicecatalog:AppregistryAttributeGroup
properties:
attributes: string
description: string
name: string
tags:
string: string
AppregistryAttributeGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AppregistryAttributeGroup resource accepts the following input properties:
- Attributes string
A JSON string of nested key-value pairs that represents the attributes of the group.
The following arguments are optional:
- Description string
- Description of the Attribute Group.
- Name string
- Name of the Attribute Group.
- Dictionary<string, string>
- 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.
- Attributes string
A JSON string of nested key-value pairs that represents the attributes of the group.
The following arguments are optional:
- Description string
- Description of the Attribute Group.
- Name string
- Name of the Attribute Group.
- map[string]string
- 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.
- attributes String
A JSON string of nested key-value pairs that represents the attributes of the group.
The following arguments are optional:
- description String
- Description of the Attribute Group.
- name String
- Name of the Attribute Group.
- Map<String,String>
- 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.
- attributes string
A JSON string of nested key-value pairs that represents the attributes of the group.
The following arguments are optional:
- description string
- Description of the Attribute Group.
- name string
- Name of the Attribute Group.
- {[key: string]: string}
- 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.
- attributes str
A JSON string of nested key-value pairs that represents the attributes of the group.
The following arguments are optional:
- description str
- Description of the Attribute Group.
- name str
- Name of the Attribute Group.
- Mapping[str, str]
- 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.
- attributes String
A JSON string of nested key-value pairs that represents the attributes of the group.
The following arguments are optional:
- description String
- Description of the Attribute Group.
- name String
- Name of the Attribute Group.
- Map<String>
- 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the AppregistryAttributeGroup resource produces the following output properties:
Look up Existing AppregistryAttributeGroup Resource
Get an existing AppregistryAttributeGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AppregistryAttributeGroupState, opts?: CustomResourceOptions): AppregistryAttributeGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
attributes: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None) -> AppregistryAttributeGroup
func GetAppregistryAttributeGroup(ctx *Context, name string, id IDInput, state *AppregistryAttributeGroupState, opts ...ResourceOption) (*AppregistryAttributeGroup, error)
public static AppregistryAttributeGroup Get(string name, Input<string> id, AppregistryAttributeGroupState? state, CustomResourceOptions? opts = null)
public static AppregistryAttributeGroup get(String name, Output<String> id, AppregistryAttributeGroupState state, CustomResourceOptions options)
resources: _: type: aws:servicecatalog:AppregistryAttributeGroup get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arn string
- ARN of the Attribute Group.
- Attributes string
A JSON string of nested key-value pairs that represents the attributes of the group.
The following arguments are optional:
- Description string
- Description of the Attribute Group.
- Name string
- Name of the Attribute Group.
- Dictionary<string, string>
- 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. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- ARN of the Attribute Group.
- Attributes string
A JSON string of nested key-value pairs that represents the attributes of the group.
The following arguments are optional:
- Description string
- Description of the Attribute Group.
- Name string
- Name of the Attribute Group.
- map[string]string
- 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. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- ARN of the Attribute Group.
- attributes String
A JSON string of nested key-value pairs that represents the attributes of the group.
The following arguments are optional:
- description String
- Description of the Attribute Group.
- name String
- Name of the Attribute Group.
- Map<String,String>
- 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. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
- ARN of the Attribute Group.
- attributes string
A JSON string of nested key-value pairs that represents the attributes of the group.
The following arguments are optional:
- description string
- Description of the Attribute Group.
- name string
- Name of the Attribute Group.
- {[key: string]: string}
- 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. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
- ARN of the Attribute Group.
- attributes str
A JSON string of nested key-value pairs that represents the attributes of the group.
The following arguments are optional:
- description str
- Description of the Attribute Group.
- name str
- Name of the Attribute Group.
- Mapping[str, str]
- 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. - Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- ARN of the Attribute Group.
- attributes String
A JSON string of nested key-value pairs that represents the attributes of the group.
The following arguments are optional:
- description String
- Description of the Attribute Group.
- name String
- Name of the Attribute Group.
- Map<String>
- 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. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Import
Using pulumi import
, import Service Catalog AppRegistry Attribute Group using the id
. For example:
$ pulumi import aws:servicecatalog/appregistryAttributeGroup:AppregistryAttributeGroup example 1234567890abcfedhijk09876s
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.