1. Packages
  2. Ibm Provider
  3. API Docs
  4. AppConfigCollection
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.AppConfigCollection

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Provides a resource for collection. This allows collection to be created, updated and deleted. For more information, about App Configuration feature flag, see Collection.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const appConfigCollection = new ibm.AppConfigCollection("appConfigCollection", {
        collectionId: "collection_id",
        description: "description",
        guid: "guid",
        tags: "tags",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    app_config_collection = ibm.AppConfigCollection("appConfigCollection",
        collection_id="collection_id",
        description="description",
        guid="guid",
        tags="tags")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ibm.NewAppConfigCollection(ctx, "appConfigCollection", &ibm.AppConfigCollectionArgs{
    			CollectionId: pulumi.String("collection_id"),
    			Description:  pulumi.String("description"),
    			Guid:         pulumi.String("guid"),
    			Tags:         pulumi.String("tags"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var appConfigCollection = new Ibm.AppConfigCollection("appConfigCollection", new()
        {
            CollectionId = "collection_id",
            Description = "description",
            Guid = "guid",
            Tags = "tags",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.AppConfigCollection;
    import com.pulumi.ibm.AppConfigCollectionArgs;
    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 appConfigCollection = new AppConfigCollection("appConfigCollection", AppConfigCollectionArgs.builder()
                .collectionId("collection_id")
                .description("description")
                .guid("guid")
                .tags("tags")
                .build());
    
        }
    }
    
    resources:
      appConfigCollection:
        type: ibm:AppConfigCollection
        properties:
          collectionId: collection_id
          description: description
          guid: guid
          tags: tags
    

    Create AppConfigCollection Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AppConfigCollection(name: string, args: AppConfigCollectionArgs, opts?: CustomResourceOptions);
    @overload
    def AppConfigCollection(resource_name: str,
                            args: AppConfigCollectionArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def AppConfigCollection(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            collection_id: Optional[str] = None,
                            guid: Optional[str] = None,
                            app_config_collection_id: Optional[str] = None,
                            description: Optional[str] = None,
                            name: Optional[str] = None,
                            tags: Optional[str] = None)
    func NewAppConfigCollection(ctx *Context, name string, args AppConfigCollectionArgs, opts ...ResourceOption) (*AppConfigCollection, error)
    public AppConfigCollection(string name, AppConfigCollectionArgs args, CustomResourceOptions? opts = null)
    public AppConfigCollection(String name, AppConfigCollectionArgs args)
    public AppConfigCollection(String name, AppConfigCollectionArgs args, CustomResourceOptions options)
    
    type: ibm:AppConfigCollection
    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 AppConfigCollectionArgs
    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 AppConfigCollectionArgs
    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 AppConfigCollectionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AppConfigCollectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AppConfigCollectionArgs
    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 appConfigCollectionResource = new Ibm.AppConfigCollection("appConfigCollectionResource", new()
    {
        CollectionId = "string",
        Guid = "string",
        AppConfigCollectionId = "string",
        Description = "string",
        Name = "string",
        Tags = "string",
    });
    
    example, err := ibm.NewAppConfigCollection(ctx, "appConfigCollectionResource", &ibm.AppConfigCollectionArgs{
    	CollectionId:          pulumi.String("string"),
    	Guid:                  pulumi.String("string"),
    	AppConfigCollectionId: pulumi.String("string"),
    	Description:           pulumi.String("string"),
    	Name:                  pulumi.String("string"),
    	Tags:                  pulumi.String("string"),
    })
    
    var appConfigCollectionResource = new AppConfigCollection("appConfigCollectionResource", AppConfigCollectionArgs.builder()
        .collectionId("string")
        .guid("string")
        .appConfigCollectionId("string")
        .description("string")
        .name("string")
        .tags("string")
        .build());
    
    app_config_collection_resource = ibm.AppConfigCollection("appConfigCollectionResource",
        collection_id="string",
        guid="string",
        app_config_collection_id="string",
        description="string",
        name="string",
        tags="string")
    
    const appConfigCollectionResource = new ibm.AppConfigCollection("appConfigCollectionResource", {
        collectionId: "string",
        guid: "string",
        appConfigCollectionId: "string",
        description: "string",
        name: "string",
        tags: "string",
    });
    
    type: ibm:AppConfigCollection
    properties:
        appConfigCollectionId: string
        collectionId: string
        description: string
        guid: string
        name: string
        tags: string
    

    AppConfigCollection 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 AppConfigCollection resource accepts the following input properties:

    CollectionId string
    Collection Id.
    Guid string
    guid of the App Configuration service. Get it from the service instance credentials section of the dashboard.
    AppConfigCollectionId string
    The unique identifier of the Collection.
    Description string
    Collection description.
    Name string
    Collection name.
    Tags string
    Tags associated with the collection.
    CollectionId string
    Collection Id.
    Guid string
    guid of the App Configuration service. Get it from the service instance credentials section of the dashboard.
    AppConfigCollectionId string
    The unique identifier of the Collection.
    Description string
    Collection description.
    Name string
    Collection name.
    Tags string
    Tags associated with the collection.
    collectionId String
    Collection Id.
    guid String
    guid of the App Configuration service. Get it from the service instance credentials section of the dashboard.
    appConfigCollectionId String
    The unique identifier of the Collection.
    description String
    Collection description.
    name String
    Collection name.
    tags String
    Tags associated with the collection.
    collectionId string
    Collection Id.
    guid string
    guid of the App Configuration service. Get it from the service instance credentials section of the dashboard.
    appConfigCollectionId string
    The unique identifier of the Collection.
    description string
    Collection description.
    name string
    Collection name.
    tags string
    Tags associated with the collection.
    collection_id str
    Collection Id.
    guid str
    guid of the App Configuration service. Get it from the service instance credentials section of the dashboard.
    app_config_collection_id str
    The unique identifier of the Collection.
    description str
    Collection description.
    name str
    Collection name.
    tags str
    Tags associated with the collection.
    collectionId String
    Collection Id.
    guid String
    guid of the App Configuration service. Get it from the service instance credentials section of the dashboard.
    appConfigCollectionId String
    The unique identifier of the Collection.
    description String
    Collection description.
    name String
    Collection name.
    tags String
    Tags associated with the collection.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AppConfigCollection resource produces the following output properties:

    CreatedTime string
    Creation time of the collection.
    FeaturesCount string
    Number of features associated with the collection.
    Href string
    Collection URL.
    Id string
    The provider-assigned unique ID for this managed resource.
    PropertiesCount string
    Number of properties associated with the collection.
    UpdatedTime string
    Last updated time of the collection data.
    CreatedTime string
    Creation time of the collection.
    FeaturesCount string
    Number of features associated with the collection.
    Href string
    Collection URL.
    Id string
    The provider-assigned unique ID for this managed resource.
    PropertiesCount string
    Number of properties associated with the collection.
    UpdatedTime string
    Last updated time of the collection data.
    createdTime String
    Creation time of the collection.
    featuresCount String
    Number of features associated with the collection.
    href String
    Collection URL.
    id String
    The provider-assigned unique ID for this managed resource.
    propertiesCount String
    Number of properties associated with the collection.
    updatedTime String
    Last updated time of the collection data.
    createdTime string
    Creation time of the collection.
    featuresCount string
    Number of features associated with the collection.
    href string
    Collection URL.
    id string
    The provider-assigned unique ID for this managed resource.
    propertiesCount string
    Number of properties associated with the collection.
    updatedTime string
    Last updated time of the collection data.
    created_time str
    Creation time of the collection.
    features_count str
    Number of features associated with the collection.
    href str
    Collection URL.
    id str
    The provider-assigned unique ID for this managed resource.
    properties_count str
    Number of properties associated with the collection.
    updated_time str
    Last updated time of the collection data.
    createdTime String
    Creation time of the collection.
    featuresCount String
    Number of features associated with the collection.
    href String
    Collection URL.
    id String
    The provider-assigned unique ID for this managed resource.
    propertiesCount String
    Number of properties associated with the collection.
    updatedTime String
    Last updated time of the collection data.

    Look up Existing AppConfigCollection Resource

    Get an existing AppConfigCollection 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?: AppConfigCollectionState, opts?: CustomResourceOptions): AppConfigCollection
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            app_config_collection_id: Optional[str] = None,
            collection_id: Optional[str] = None,
            created_time: Optional[str] = None,
            description: Optional[str] = None,
            features_count: Optional[str] = None,
            guid: Optional[str] = None,
            href: Optional[str] = None,
            name: Optional[str] = None,
            properties_count: Optional[str] = None,
            tags: Optional[str] = None,
            updated_time: Optional[str] = None) -> AppConfigCollection
    func GetAppConfigCollection(ctx *Context, name string, id IDInput, state *AppConfigCollectionState, opts ...ResourceOption) (*AppConfigCollection, error)
    public static AppConfigCollection Get(string name, Input<string> id, AppConfigCollectionState? state, CustomResourceOptions? opts = null)
    public static AppConfigCollection get(String name, Output<String> id, AppConfigCollectionState state, CustomResourceOptions options)
    resources:  _:    type: ibm:AppConfigCollection    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.
    The following state arguments are supported:
    AppConfigCollectionId string
    The unique identifier of the Collection.
    CollectionId string
    Collection Id.
    CreatedTime string
    Creation time of the collection.
    Description string
    Collection description.
    FeaturesCount string
    Number of features associated with the collection.
    Guid string
    guid of the App Configuration service. Get it from the service instance credentials section of the dashboard.
    Href string
    Collection URL.
    Name string
    Collection name.
    PropertiesCount string
    Number of properties associated with the collection.
    Tags string
    Tags associated with the collection.
    UpdatedTime string
    Last updated time of the collection data.
    AppConfigCollectionId string
    The unique identifier of the Collection.
    CollectionId string
    Collection Id.
    CreatedTime string
    Creation time of the collection.
    Description string
    Collection description.
    FeaturesCount string
    Number of features associated with the collection.
    Guid string
    guid of the App Configuration service. Get it from the service instance credentials section of the dashboard.
    Href string
    Collection URL.
    Name string
    Collection name.
    PropertiesCount string
    Number of properties associated with the collection.
    Tags string
    Tags associated with the collection.
    UpdatedTime string
    Last updated time of the collection data.
    appConfigCollectionId String
    The unique identifier of the Collection.
    collectionId String
    Collection Id.
    createdTime String
    Creation time of the collection.
    description String
    Collection description.
    featuresCount String
    Number of features associated with the collection.
    guid String
    guid of the App Configuration service. Get it from the service instance credentials section of the dashboard.
    href String
    Collection URL.
    name String
    Collection name.
    propertiesCount String
    Number of properties associated with the collection.
    tags String
    Tags associated with the collection.
    updatedTime String
    Last updated time of the collection data.
    appConfigCollectionId string
    The unique identifier of the Collection.
    collectionId string
    Collection Id.
    createdTime string
    Creation time of the collection.
    description string
    Collection description.
    featuresCount string
    Number of features associated with the collection.
    guid string
    guid of the App Configuration service. Get it from the service instance credentials section of the dashboard.
    href string
    Collection URL.
    name string
    Collection name.
    propertiesCount string
    Number of properties associated with the collection.
    tags string
    Tags associated with the collection.
    updatedTime string
    Last updated time of the collection data.
    app_config_collection_id str
    The unique identifier of the Collection.
    collection_id str
    Collection Id.
    created_time str
    Creation time of the collection.
    description str
    Collection description.
    features_count str
    Number of features associated with the collection.
    guid str
    guid of the App Configuration service. Get it from the service instance credentials section of the dashboard.
    href str
    Collection URL.
    name str
    Collection name.
    properties_count str
    Number of properties associated with the collection.
    tags str
    Tags associated with the collection.
    updated_time str
    Last updated time of the collection data.
    appConfigCollectionId String
    The unique identifier of the Collection.
    collectionId String
    Collection Id.
    createdTime String
    Creation time of the collection.
    description String
    Collection description.
    featuresCount String
    Number of features associated with the collection.
    guid String
    guid of the App Configuration service. Get it from the service instance credentials section of the dashboard.
    href String
    Collection URL.
    name String
    Collection name.
    propertiesCount String
    Number of properties associated with the collection.
    tags String
    Tags associated with the collection.
    updatedTime String
    Last updated time of the collection data.

    Import

    The ibm_app_config_collection resource can be imported by using guid of the App Configuration instance and collectionId. Get guid from the service instance credentials section of the dashboard.

    Syntax

    $ pulumi import ibm:index/appConfigCollection:AppConfigCollection sample <guid/collectionId>
    

    Example

    $ pulumi import ibm:index/appConfigCollection:AppConfigCollection sample 272111153-c118-4116-8116-b811fbc31132/col
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud