ibm.AppConfigEnvironment
Explore with Pulumi AI
Create, update, or delete an environment by using IBM Cloud™ App Configuration. For more information, about App Configuration, see Getting started with App Configuration.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const appConfigEnvironment = new ibm.AppConfigEnvironment("appConfigEnvironment", {
colorCode: "color_code",
description: "description",
environmentId: "environment_id",
guid: "guid",
tags: "tags",
});
import pulumi
import pulumi_ibm as ibm
app_config_environment = ibm.AppConfigEnvironment("appConfigEnvironment",
color_code="color_code",
description="description",
environment_id="environment_id",
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.NewAppConfigEnvironment(ctx, "appConfigEnvironment", &ibm.AppConfigEnvironmentArgs{
ColorCode: pulumi.String("color_code"),
Description: pulumi.String("description"),
EnvironmentId: pulumi.String("environment_id"),
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 appConfigEnvironment = new Ibm.AppConfigEnvironment("appConfigEnvironment", new()
{
ColorCode = "color_code",
Description = "description",
EnvironmentId = "environment_id",
Guid = "guid",
Tags = "tags",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.AppConfigEnvironment;
import com.pulumi.ibm.AppConfigEnvironmentArgs;
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 appConfigEnvironment = new AppConfigEnvironment("appConfigEnvironment", AppConfigEnvironmentArgs.builder()
.colorCode("color_code")
.description("description")
.environmentId("environment_id")
.guid("guid")
.tags("tags")
.build());
}
}
resources:
appConfigEnvironment:
type: ibm:AppConfigEnvironment
properties:
colorCode: color_code
description: description
environmentId: environment_id
guid: guid
tags: tags
Create AppConfigEnvironment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AppConfigEnvironment(name: string, args: AppConfigEnvironmentArgs, opts?: CustomResourceOptions);
@overload
def AppConfigEnvironment(resource_name: str,
args: AppConfigEnvironmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AppConfigEnvironment(resource_name: str,
opts: Optional[ResourceOptions] = None,
environment_id: Optional[str] = None,
guid: Optional[str] = None,
app_config_environment_id: Optional[str] = None,
color_code: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[str] = None)
func NewAppConfigEnvironment(ctx *Context, name string, args AppConfigEnvironmentArgs, opts ...ResourceOption) (*AppConfigEnvironment, error)
public AppConfigEnvironment(string name, AppConfigEnvironmentArgs args, CustomResourceOptions? opts = null)
public AppConfigEnvironment(String name, AppConfigEnvironmentArgs args)
public AppConfigEnvironment(String name, AppConfigEnvironmentArgs args, CustomResourceOptions options)
type: ibm:AppConfigEnvironment
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 AppConfigEnvironmentArgs
- 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 AppConfigEnvironmentArgs
- 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 AppConfigEnvironmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AppConfigEnvironmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AppConfigEnvironmentArgs
- 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 appConfigEnvironmentResource = new Ibm.AppConfigEnvironment("appConfigEnvironmentResource", new()
{
EnvironmentId = "string",
Guid = "string",
AppConfigEnvironmentId = "string",
ColorCode = "string",
Description = "string",
Name = "string",
Tags = "string",
});
example, err := ibm.NewAppConfigEnvironment(ctx, "appConfigEnvironmentResource", &ibm.AppConfigEnvironmentArgs{
EnvironmentId: pulumi.String("string"),
Guid: pulumi.String("string"),
AppConfigEnvironmentId: pulumi.String("string"),
ColorCode: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
Tags: pulumi.String("string"),
})
var appConfigEnvironmentResource = new AppConfigEnvironment("appConfigEnvironmentResource", AppConfigEnvironmentArgs.builder()
.environmentId("string")
.guid("string")
.appConfigEnvironmentId("string")
.colorCode("string")
.description("string")
.name("string")
.tags("string")
.build());
app_config_environment_resource = ibm.AppConfigEnvironment("appConfigEnvironmentResource",
environment_id="string",
guid="string",
app_config_environment_id="string",
color_code="string",
description="string",
name="string",
tags="string")
const appConfigEnvironmentResource = new ibm.AppConfigEnvironment("appConfigEnvironmentResource", {
environmentId: "string",
guid: "string",
appConfigEnvironmentId: "string",
colorCode: "string",
description: "string",
name: "string",
tags: "string",
});
type: ibm:AppConfigEnvironment
properties:
appConfigEnvironmentId: string
colorCode: string
description: string
environmentId: string
guid: string
name: string
tags: string
AppConfigEnvironment 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 AppConfigEnvironment resource accepts the following input properties:
- Environment
Id string - The environment ID.
- Guid string
- The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
- App
Config stringEnvironment Id - (String) The unique identifier of an environment resource.
- Color
Code string - The color code to distinguish an environment in the Hexademical code format. For example,
#FF0000
forred
. - Description string
- The environment description.
- Name string
- The environment name.
- string
- The tags associated with an environment.
- Environment
Id string - The environment ID.
- Guid string
- The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
- App
Config stringEnvironment Id - (String) The unique identifier of an environment resource.
- Color
Code string - The color code to distinguish an environment in the Hexademical code format. For example,
#FF0000
forred
. - Description string
- The environment description.
- Name string
- The environment name.
- string
- The tags associated with an environment.
- environment
Id String - The environment ID.
- guid String
- The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
- app
Config StringEnvironment Id - (String) The unique identifier of an environment resource.
- color
Code String - The color code to distinguish an environment in the Hexademical code format. For example,
#FF0000
forred
. - description String
- The environment description.
- name String
- The environment name.
- String
- The tags associated with an environment.
- environment
Id string - The environment ID.
- guid string
- The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
- app
Config stringEnvironment Id - (String) The unique identifier of an environment resource.
- color
Code string - The color code to distinguish an environment in the Hexademical code format. For example,
#FF0000
forred
. - description string
- The environment description.
- name string
- The environment name.
- string
- The tags associated with an environment.
- environment_
id str - The environment ID.
- guid str
- The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
- app_
config_ strenvironment_ id - (String) The unique identifier of an environment resource.
- color_
code str - The color code to distinguish an environment in the Hexademical code format. For example,
#FF0000
forred
. - description str
- The environment description.
- name str
- The environment name.
- str
- The tags associated with an environment.
- environment
Id String - The environment ID.
- guid String
- The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
- app
Config StringEnvironment Id - (String) The unique identifier of an environment resource.
- color
Code String - The color code to distinguish an environment in the Hexademical code format. For example,
#FF0000
forred
. - description String
- The environment description.
- name String
- The environment name.
- String
- The tags associated with an environment.
Outputs
All input properties are implicitly available as output properties. Additionally, the AppConfigEnvironment resource produces the following output properties:
- Created
Time string - (Timestamp) the creation time of an environment.
- Href string
- (String) the environment URL.
- Id string
- The provider-assigned unique ID for this managed resource.
- Updated
Time string - (Timestamp) the last modified time of an environment data.
- Created
Time string - (Timestamp) the creation time of an environment.
- Href string
- (String) the environment URL.
- Id string
- The provider-assigned unique ID for this managed resource.
- Updated
Time string - (Timestamp) the last modified time of an environment data.
- created
Time String - (Timestamp) the creation time of an environment.
- href String
- (String) the environment URL.
- id String
- The provider-assigned unique ID for this managed resource.
- updated
Time String - (Timestamp) the last modified time of an environment data.
- created
Time string - (Timestamp) the creation time of an environment.
- href string
- (String) the environment URL.
- id string
- The provider-assigned unique ID for this managed resource.
- updated
Time string - (Timestamp) the last modified time of an environment data.
- created_
time str - (Timestamp) the creation time of an environment.
- href str
- (String) the environment URL.
- id str
- The provider-assigned unique ID for this managed resource.
- updated_
time str - (Timestamp) the last modified time of an environment data.
- created
Time String - (Timestamp) the creation time of an environment.
- href String
- (String) the environment URL.
- id String
- The provider-assigned unique ID for this managed resource.
- updated
Time String - (Timestamp) the last modified time of an environment data.
Look up Existing AppConfigEnvironment Resource
Get an existing AppConfigEnvironment 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?: AppConfigEnvironmentState, opts?: CustomResourceOptions): AppConfigEnvironment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
app_config_environment_id: Optional[str] = None,
color_code: Optional[str] = None,
created_time: Optional[str] = None,
description: Optional[str] = None,
environment_id: Optional[str] = None,
guid: Optional[str] = None,
href: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[str] = None,
updated_time: Optional[str] = None) -> AppConfigEnvironment
func GetAppConfigEnvironment(ctx *Context, name string, id IDInput, state *AppConfigEnvironmentState, opts ...ResourceOption) (*AppConfigEnvironment, error)
public static AppConfigEnvironment Get(string name, Input<string> id, AppConfigEnvironmentState? state, CustomResourceOptions? opts = null)
public static AppConfigEnvironment get(String name, Output<String> id, AppConfigEnvironmentState state, CustomResourceOptions options)
resources: _: type: ibm:AppConfigEnvironment 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 stringEnvironment Id - (String) The unique identifier of an environment resource.
- Color
Code string - The color code to distinguish an environment in the Hexademical code format. For example,
#FF0000
forred
. - Created
Time string - (Timestamp) the creation time of an environment.
- Description string
- The environment description.
- Environment
Id string - The environment ID.
- Guid string
- The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
- Href string
- (String) the environment URL.
- Name string
- The environment name.
- string
- The tags associated with an environment.
- Updated
Time string - (Timestamp) the last modified time of an environment data.
- App
Config stringEnvironment Id - (String) The unique identifier of an environment resource.
- Color
Code string - The color code to distinguish an environment in the Hexademical code format. For example,
#FF0000
forred
. - Created
Time string - (Timestamp) the creation time of an environment.
- Description string
- The environment description.
- Environment
Id string - The environment ID.
- Guid string
- The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
- Href string
- (String) the environment URL.
- Name string
- The environment name.
- string
- The tags associated with an environment.
- Updated
Time string - (Timestamp) the last modified time of an environment data.
- app
Config StringEnvironment Id - (String) The unique identifier of an environment resource.
- color
Code String - The color code to distinguish an environment in the Hexademical code format. For example,
#FF0000
forred
. - created
Time String - (Timestamp) the creation time of an environment.
- description String
- The environment description.
- environment
Id String - The environment ID.
- guid String
- The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
- href String
- (String) the environment URL.
- name String
- The environment name.
- String
- The tags associated with an environment.
- updated
Time String - (Timestamp) the last modified time of an environment data.
- app
Config stringEnvironment Id - (String) The unique identifier of an environment resource.
- color
Code string - The color code to distinguish an environment in the Hexademical code format. For example,
#FF0000
forred
. - created
Time string - (Timestamp) the creation time of an environment.
- description string
- The environment description.
- environment
Id string - The environment ID.
- guid string
- The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
- href string
- (String) the environment URL.
- name string
- The environment name.
- string
- The tags associated with an environment.
- updated
Time string - (Timestamp) the last modified time of an environment data.
- app_
config_ strenvironment_ id - (String) The unique identifier of an environment resource.
- color_
code str - The color code to distinguish an environment in the Hexademical code format. For example,
#FF0000
forred
. - created_
time str - (Timestamp) the creation time of an environment.
- description str
- The environment description.
- environment_
id str - The environment ID.
- guid str
- The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
- href str
- (String) the environment URL.
- name str
- The environment name.
- str
- The tags associated with an environment.
- updated_
time str - (Timestamp) the last modified time of an environment data.
- app
Config StringEnvironment Id - (String) The unique identifier of an environment resource.
- color
Code String - The color code to distinguish an environment in the Hexademical code format. For example,
#FF0000
forred
. - created
Time String - (Timestamp) the creation time of an environment.
- description String
- The environment description.
- environment
Id String - The environment ID.
- guid String
- The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
- href String
- (String) the environment URL.
- name String
- The environment name.
- String
- The tags associated with an environment.
- updated
Time String - (Timestamp) the last modified time of an environment data.
Import
The ibm_app_config_environment
resource can be imported by using guid
of the App Configuration instance and environmentId
. Get guid
from the service instance credentials section of the dashboard.
Syntax
$ pulumi import ibm:index/appConfigEnvironment:AppConfigEnvironment sample <guid/environmentId>
Example
$ pulumi import ibm:index/appConfigEnvironment:AppConfigEnvironment sample 272111153-c118-4116-8116-b811fbc31132/dev
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.