ibm.AppConfigCollection
Explore with Pulumi AI
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:
- Collection
Id string - Collection Id.
- Guid string
- guid of the App Configuration service. Get it from the service instance credentials section of the dashboard.
- App
Config stringCollection Id - The unique identifier of the Collection.
- Description string
- Collection description.
- Name string
- Collection name.
- string
- Tags associated with the collection.
- Collection
Id string - Collection Id.
- Guid string
- guid of the App Configuration service. Get it from the service instance credentials section of the dashboard.
- App
Config stringCollection Id - The unique identifier of the Collection.
- Description string
- Collection description.
- Name string
- Collection name.
- string
- Tags associated with the collection.
- collection
Id String - Collection Id.
- guid String
- guid of the App Configuration service. Get it from the service instance credentials section of the dashboard.
- app
Config StringCollection Id - The unique identifier of the Collection.
- description String
- Collection description.
- name String
- Collection name.
- String
- Tags associated with the collection.
- collection
Id string - Collection Id.
- guid string
- guid of the App Configuration service. Get it from the service instance credentials section of the dashboard.
- app
Config stringCollection Id - The unique identifier of the Collection.
- description string
- Collection description.
- name string
- Collection name.
- 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_ strcollection_ id - The unique identifier of the Collection.
- description str
- Collection description.
- name str
- Collection name.
- str
- Tags associated with the collection.
- collection
Id String - Collection Id.
- guid String
- guid of the App Configuration service. Get it from the service instance credentials section of the dashboard.
- app
Config StringCollection Id - The unique identifier of the Collection.
- description String
- Collection description.
- name String
- Collection name.
- 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:
- Created
Time string - Creation time of the collection.
- Features
Count string - Number of features associated with the collection.
- Href string
- Collection URL.
- Id string
- The provider-assigned unique ID for this managed resource.
- Properties
Count string - Number of properties associated with the collection.
- Updated
Time string - Last updated time of the collection data.
- Created
Time string - Creation time of the collection.
- Features
Count string - Number of features associated with the collection.
- Href string
- Collection URL.
- Id string
- The provider-assigned unique ID for this managed resource.
- Properties
Count string - Number of properties associated with the collection.
- Updated
Time string - Last updated time of the collection data.
- created
Time String - Creation time of the collection.
- features
Count String - Number of features associated with the collection.
- href String
- Collection URL.
- id String
- The provider-assigned unique ID for this managed resource.
- properties
Count String - Number of properties associated with the collection.
- updated
Time String - Last updated time of the collection data.
- created
Time string - Creation time of the collection.
- features
Count string - Number of features associated with the collection.
- href string
- Collection URL.
- id string
- The provider-assigned unique ID for this managed resource.
- properties
Count string - Number of properties associated with the collection.
- updated
Time 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.
- created
Time String - Creation time of the collection.
- features
Count String - Number of features associated with the collection.
- href String
- Collection URL.
- id String
- The provider-assigned unique ID for this managed resource.
- properties
Count String - Number of properties associated with the collection.
- updated
Time 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.
- App
Config stringCollection Id - The unique identifier of the Collection.
- Collection
Id string - Collection Id.
- Created
Time string - Creation time of the collection.
- Description string
- Collection description.
- Features
Count 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.
- Properties
Count string - Number of properties associated with the collection.
- string
- Tags associated with the collection.
- Updated
Time string - Last updated time of the collection data.
- App
Config stringCollection Id - The unique identifier of the Collection.
- Collection
Id string - Collection Id.
- Created
Time string - Creation time of the collection.
- Description string
- Collection description.
- Features
Count 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.
- Properties
Count string - Number of properties associated with the collection.
- string
- Tags associated with the collection.
- Updated
Time string - Last updated time of the collection data.
- app
Config StringCollection Id - The unique identifier of the Collection.
- collection
Id String - Collection Id.
- created
Time String - Creation time of the collection.
- description String
- Collection description.
- features
Count 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.
- properties
Count String - Number of properties associated with the collection.
- String
- Tags associated with the collection.
- updated
Time String - Last updated time of the collection data.
- app
Config stringCollection Id - The unique identifier of the Collection.
- collection
Id string - Collection Id.
- created
Time string - Creation time of the collection.
- description string
- Collection description.
- features
Count 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.
- properties
Count string - Number of properties associated with the collection.
- string
- Tags associated with the collection.
- updated
Time string - Last updated time of the collection data.
- app_
config_ strcollection_ id - 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.
- str
- Tags associated with the collection.
- updated_
time str - Last updated time of the collection data.
- app
Config StringCollection Id - The unique identifier of the Collection.
- collection
Id String - Collection Id.
- created
Time String - Creation time of the collection.
- description String
- Collection description.
- features
Count 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.
- properties
Count String - Number of properties associated with the collection.
- String
- Tags associated with the collection.
- updated
Time 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.