ibm.AppConfigFeature
Explore with Pulumi AI
Create, update, or delete an environment by using IBM Cloud™ App Configuration feature flag. For more information, about App Configuration feature flag, see Feature flags.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
// Example 2
const appConfigFeature = new ibm.AppConfigFeature("appConfigFeature", {
collections: [{
collectionId: "collection_id",
}],
disabledValue: "disabled_value",
enabled: true,
enabledValue: "enabled_value",
environmentId: "environment_id",
featureId: "feature_id",
format: "format",
guid: "guid",
rolloutPercentage: "rollout_percentage",
tags: "tags",
type: "type",
});
import pulumi
import pulumi_ibm as ibm
# Example 2
app_config_feature = ibm.AppConfigFeature("appConfigFeature",
collections=[{
"collection_id": "collection_id",
}],
disabled_value="disabled_value",
enabled=True,
enabled_value="enabled_value",
environment_id="environment_id",
feature_id="feature_id",
format="format",
guid="guid",
rollout_percentage="rollout_percentage",
tags="tags",
type="type")
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 {
// Example 2
_, err := ibm.NewAppConfigFeature(ctx, "appConfigFeature", &ibm.AppConfigFeatureArgs{
Collections: ibm.AppConfigFeatureCollectionArray{
&ibm.AppConfigFeatureCollectionArgs{
CollectionId: pulumi.String("collection_id"),
},
},
DisabledValue: pulumi.String("disabled_value"),
Enabled: pulumi.Bool(true),
EnabledValue: pulumi.String("enabled_value"),
EnvironmentId: pulumi.String("environment_id"),
FeatureId: pulumi.String("feature_id"),
Format: pulumi.String("format"),
Guid: pulumi.String("guid"),
RolloutPercentage: pulumi.Float64("rollout_percentage"),
Tags: pulumi.String("tags"),
Type: pulumi.String("type"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
// Example 2
var appConfigFeature = new Ibm.AppConfigFeature("appConfigFeature", new()
{
Collections = new[]
{
new Ibm.Inputs.AppConfigFeatureCollectionArgs
{
CollectionId = "collection_id",
},
},
DisabledValue = "disabled_value",
Enabled = true,
EnabledValue = "enabled_value",
EnvironmentId = "environment_id",
FeatureId = "feature_id",
Format = "format",
Guid = "guid",
RolloutPercentage = "rollout_percentage",
Tags = "tags",
Type = "type",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.AppConfigFeature;
import com.pulumi.ibm.AppConfigFeatureArgs;
import com.pulumi.ibm.inputs.AppConfigFeatureCollectionArgs;
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) {
// Example 2
var appConfigFeature = new AppConfigFeature("appConfigFeature", AppConfigFeatureArgs.builder()
.collections(AppConfigFeatureCollectionArgs.builder()
.collectionId("collection_id")
.build())
.disabledValue("disabled_value")
.enabled(true)
.enabledValue("enabled_value")
.environmentId("environment_id")
.featureId("feature_id")
.format("format")
.guid("guid")
.rolloutPercentage("rollout_percentage")
.tags("tags")
.type("type")
.build());
}
}
resources:
# Example 2
appConfigFeature:
type: ibm:AppConfigFeature
properties:
collections:
- collectionId: collection_id
disabledValue: disabled_value
enabled: true
enabledValue: enabled_value
environmentId: environment_id
featureId: feature_id
format: format
guid: guid
rolloutPercentage: rollout_percentage
tags: tags
type: type
Create AppConfigFeature Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AppConfigFeature(name: string, args: AppConfigFeatureArgs, opts?: CustomResourceOptions);
@overload
def AppConfigFeature(resource_name: str,
args: AppConfigFeatureArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AppConfigFeature(resource_name: str,
opts: Optional[ResourceOptions] = None,
environment_id: Optional[str] = None,
guid: Optional[str] = None,
type: Optional[str] = None,
disabled_value: Optional[str] = None,
feature_id: Optional[str] = None,
enabled_value: Optional[str] = None,
enabled: Optional[bool] = None,
name: Optional[str] = None,
app_config_feature_id: Optional[str] = None,
collections: Optional[Sequence[AppConfigFeatureCollectionArgs]] = None,
format: Optional[str] = None,
rollout_percentage: Optional[float] = None,
segment_rules: Optional[Sequence[AppConfigFeatureSegmentRuleArgs]] = None,
tags: Optional[str] = None,
description: Optional[str] = None)
func NewAppConfigFeature(ctx *Context, name string, args AppConfigFeatureArgs, opts ...ResourceOption) (*AppConfigFeature, error)
public AppConfigFeature(string name, AppConfigFeatureArgs args, CustomResourceOptions? opts = null)
public AppConfigFeature(String name, AppConfigFeatureArgs args)
public AppConfigFeature(String name, AppConfigFeatureArgs args, CustomResourceOptions options)
type: ibm:AppConfigFeature
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 AppConfigFeatureArgs
- 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 AppConfigFeatureArgs
- 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 AppConfigFeatureArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AppConfigFeatureArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AppConfigFeatureArgs
- 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 appConfigFeatureResource = new Ibm.AppConfigFeature("appConfigFeatureResource", new()
{
EnvironmentId = "string",
Guid = "string",
Type = "string",
DisabledValue = "string",
FeatureId = "string",
EnabledValue = "string",
Enabled = false,
Name = "string",
AppConfigFeatureId = "string",
Collections = new[]
{
new Ibm.Inputs.AppConfigFeatureCollectionArgs
{
CollectionId = "string",
},
},
Format = "string",
RolloutPercentage = 0,
SegmentRules = new[]
{
new Ibm.Inputs.AppConfigFeatureSegmentRuleArgs
{
Order = 0,
Rules = new[]
{
new Ibm.Inputs.AppConfigFeatureSegmentRuleRuleArgs
{
Segments = new[]
{
"string",
},
},
},
Value = "string",
RolloutPercentage = 0,
},
},
Tags = "string",
Description = "string",
});
example, err := ibm.NewAppConfigFeature(ctx, "appConfigFeatureResource", &ibm.AppConfigFeatureArgs{
EnvironmentId: pulumi.String("string"),
Guid: pulumi.String("string"),
Type: pulumi.String("string"),
DisabledValue: pulumi.String("string"),
FeatureId: pulumi.String("string"),
EnabledValue: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Name: pulumi.String("string"),
AppConfigFeatureId: pulumi.String("string"),
Collections: ibm.AppConfigFeatureCollectionArray{
&ibm.AppConfigFeatureCollectionArgs{
CollectionId: pulumi.String("string"),
},
},
Format: pulumi.String("string"),
RolloutPercentage: pulumi.Float64(0),
SegmentRules: ibm.AppConfigFeatureSegmentRuleArray{
&ibm.AppConfigFeatureSegmentRuleArgs{
Order: pulumi.Float64(0),
Rules: ibm.AppConfigFeatureSegmentRuleRuleArray{
&ibm.AppConfigFeatureSegmentRuleRuleArgs{
Segments: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Value: pulumi.String("string"),
RolloutPercentage: pulumi.Float64(0),
},
},
Tags: pulumi.String("string"),
Description: pulumi.String("string"),
})
var appConfigFeatureResource = new AppConfigFeature("appConfigFeatureResource", AppConfigFeatureArgs.builder()
.environmentId("string")
.guid("string")
.type("string")
.disabledValue("string")
.featureId("string")
.enabledValue("string")
.enabled(false)
.name("string")
.appConfigFeatureId("string")
.collections(AppConfigFeatureCollectionArgs.builder()
.collectionId("string")
.build())
.format("string")
.rolloutPercentage(0)
.segmentRules(AppConfigFeatureSegmentRuleArgs.builder()
.order(0)
.rules(AppConfigFeatureSegmentRuleRuleArgs.builder()
.segments("string")
.build())
.value("string")
.rolloutPercentage(0)
.build())
.tags("string")
.description("string")
.build());
app_config_feature_resource = ibm.AppConfigFeature("appConfigFeatureResource",
environment_id="string",
guid="string",
type="string",
disabled_value="string",
feature_id="string",
enabled_value="string",
enabled=False,
name="string",
app_config_feature_id="string",
collections=[{
"collection_id": "string",
}],
format="string",
rollout_percentage=0,
segment_rules=[{
"order": 0,
"rules": [{
"segments": ["string"],
}],
"value": "string",
"rollout_percentage": 0,
}],
tags="string",
description="string")
const appConfigFeatureResource = new ibm.AppConfigFeature("appConfigFeatureResource", {
environmentId: "string",
guid: "string",
type: "string",
disabledValue: "string",
featureId: "string",
enabledValue: "string",
enabled: false,
name: "string",
appConfigFeatureId: "string",
collections: [{
collectionId: "string",
}],
format: "string",
rolloutPercentage: 0,
segmentRules: [{
order: 0,
rules: [{
segments: ["string"],
}],
value: "string",
rolloutPercentage: 0,
}],
tags: "string",
description: "string",
});
type: ibm:AppConfigFeature
properties:
appConfigFeatureId: string
collections:
- collectionId: string
description: string
disabledValue: string
enabled: false
enabledValue: string
environmentId: string
featureId: string
format: string
guid: string
name: string
rolloutPercentage: 0
segmentRules:
- order: 0
rolloutPercentage: 0
rules:
- segments:
- string
value: string
tags: string
type: string
AppConfigFeature 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 AppConfigFeature resource accepts the following input properties:
- Disabled
Value string - The value of the feature when it is disabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the
type
attribute. - Enabled
Value string - The value of the feature when it is enabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the
type
attribute. - Environment
Id string - The environment ID.
- Feature
Id string - The feature ID.
- Guid string
- The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
- Type string
- The feature type. Supported values are BOOLEAN, STRING, or NUMERIC.
- App
Config stringFeature Id - (String) The unique identifier of the Feature flag resource.
- Collections
List<App
Config Feature Collection> - The list of collection ID representing the collections that are associated with the specified feature flag.
- Description string
- The feature description.
- Enabled bool
- The value of the state of feature. (Note:- If enabled is set to false, collections is optional but for setting enabled to true collections is required to be set).
- Format string
- Format of the property (TEXT, JSON, YAML) and this is a required attribute when TYPE STRING is used, not required for BOOLEAN and NUMERIC types.
- Name string
- The feature name.
- Rollout
Percentage double - Rollout percentage of the feature.
- Segment
Rules List<AppConfig Feature Segment Rule> - Specify the targeting rules that is used to set different feature flag values for different segments.
- string
- Tags associated with the feature.
- Disabled
Value string - The value of the feature when it is disabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the
type
attribute. - Enabled
Value string - The value of the feature when it is enabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the
type
attribute. - Environment
Id string - The environment ID.
- Feature
Id string - The feature ID.
- Guid string
- The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
- Type string
- The feature type. Supported values are BOOLEAN, STRING, or NUMERIC.
- App
Config stringFeature Id - (String) The unique identifier of the Feature flag resource.
- Collections
[]App
Config Feature Collection Args - The list of collection ID representing the collections that are associated with the specified feature flag.
- Description string
- The feature description.
- Enabled bool
- The value of the state of feature. (Note:- If enabled is set to false, collections is optional but for setting enabled to true collections is required to be set).
- Format string
- Format of the property (TEXT, JSON, YAML) and this is a required attribute when TYPE STRING is used, not required for BOOLEAN and NUMERIC types.
- Name string
- The feature name.
- Rollout
Percentage float64 - Rollout percentage of the feature.
- Segment
Rules []AppConfig Feature Segment Rule Args - Specify the targeting rules that is used to set different feature flag values for different segments.
- string
- Tags associated with the feature.
- disabled
Value String - The value of the feature when it is disabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the
type
attribute. - enabled
Value String - The value of the feature when it is enabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the
type
attribute. - environment
Id String - The environment ID.
- feature
Id String - The feature ID.
- guid String
- The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
- type String
- The feature type. Supported values are BOOLEAN, STRING, or NUMERIC.
- app
Config StringFeature Id - (String) The unique identifier of the Feature flag resource.
- collections
List<App
Config Feature Collection> - The list of collection ID representing the collections that are associated with the specified feature flag.
- description String
- The feature description.
- enabled Boolean
- The value of the state of feature. (Note:- If enabled is set to false, collections is optional but for setting enabled to true collections is required to be set).
- format String
- Format of the property (TEXT, JSON, YAML) and this is a required attribute when TYPE STRING is used, not required for BOOLEAN and NUMERIC types.
- name String
- The feature name.
- rollout
Percentage Double - Rollout percentage of the feature.
- segment
Rules List<AppConfig Feature Segment Rule> - Specify the targeting rules that is used to set different feature flag values for different segments.
- String
- Tags associated with the feature.
- disabled
Value string - The value of the feature when it is disabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the
type
attribute. - enabled
Value string - The value of the feature when it is enabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the
type
attribute. - environment
Id string - The environment ID.
- feature
Id string - The feature ID.
- guid string
- The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
- type string
- The feature type. Supported values are BOOLEAN, STRING, or NUMERIC.
- app
Config stringFeature Id - (String) The unique identifier of the Feature flag resource.
- collections
App
Config Feature Collection[] - The list of collection ID representing the collections that are associated with the specified feature flag.
- description string
- The feature description.
- enabled boolean
- The value of the state of feature. (Note:- If enabled is set to false, collections is optional but for setting enabled to true collections is required to be set).
- format string
- Format of the property (TEXT, JSON, YAML) and this is a required attribute when TYPE STRING is used, not required for BOOLEAN and NUMERIC types.
- name string
- The feature name.
- rollout
Percentage number - Rollout percentage of the feature.
- segment
Rules AppConfig Feature Segment Rule[] - Specify the targeting rules that is used to set different feature flag values for different segments.
- string
- Tags associated with the feature.
- disabled_
value str - The value of the feature when it is disabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the
type
attribute. - enabled_
value str - The value of the feature when it is enabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the
type
attribute. - environment_
id str - The environment ID.
- feature_
id str - The feature ID.
- guid str
- The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
- type str
- The feature type. Supported values are BOOLEAN, STRING, or NUMERIC.
- app_
config_ strfeature_ id - (String) The unique identifier of the Feature flag resource.
- collections
Sequence[App
Config Feature Collection Args] - The list of collection ID representing the collections that are associated with the specified feature flag.
- description str
- The feature description.
- enabled bool
- The value of the state of feature. (Note:- If enabled is set to false, collections is optional but for setting enabled to true collections is required to be set).
- format str
- Format of the property (TEXT, JSON, YAML) and this is a required attribute when TYPE STRING is used, not required for BOOLEAN and NUMERIC types.
- name str
- The feature name.
- rollout_
percentage float - Rollout percentage of the feature.
- segment_
rules Sequence[AppConfig Feature Segment Rule Args] - Specify the targeting rules that is used to set different feature flag values for different segments.
- str
- Tags associated with the feature.
- disabled
Value String - The value of the feature when it is disabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the
type
attribute. - enabled
Value String - The value of the feature when it is enabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the
type
attribute. - environment
Id String - The environment ID.
- feature
Id String - The feature ID.
- guid String
- The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
- type String
- The feature type. Supported values are BOOLEAN, STRING, or NUMERIC.
- app
Config StringFeature Id - (String) The unique identifier of the Feature flag resource.
- collections List<Property Map>
- The list of collection ID representing the collections that are associated with the specified feature flag.
- description String
- The feature description.
- enabled Boolean
- The value of the state of feature. (Note:- If enabled is set to false, collections is optional but for setting enabled to true collections is required to be set).
- format String
- Format of the property (TEXT, JSON, YAML) and this is a required attribute when TYPE STRING is used, not required for BOOLEAN and NUMERIC types.
- name String
- The feature name.
- rollout
Percentage Number - Rollout percentage of the feature.
- segment
Rules List<Property Map> - Specify the targeting rules that is used to set different feature flag values for different segments.
- String
- Tags associated with the feature.
Outputs
All input properties are implicitly available as output properties. Additionally, the AppConfigFeature resource produces the following output properties:
- Created
Time string - (Timestamp) The creation time of the feature flag.
- Href string
- (String) The feature flag URL.
- Id string
- The provider-assigned unique ID for this managed resource.
- Segment
Exists bool - (String) Denotes if the targeting rules are specified for the feature flag.
- Updated
Time string - (Timestamp) The last modified time of the feature flag data.
- Created
Time string - (Timestamp) The creation time of the feature flag.
- Href string
- (String) The feature flag URL.
- Id string
- The provider-assigned unique ID for this managed resource.
- Segment
Exists bool - (String) Denotes if the targeting rules are specified for the feature flag.
- Updated
Time string - (Timestamp) The last modified time of the feature flag data.
- created
Time String - (Timestamp) The creation time of the feature flag.
- href String
- (String) The feature flag URL.
- id String
- The provider-assigned unique ID for this managed resource.
- segment
Exists Boolean - (String) Denotes if the targeting rules are specified for the feature flag.
- updated
Time String - (Timestamp) The last modified time of the feature flag data.
- created
Time string - (Timestamp) The creation time of the feature flag.
- href string
- (String) The feature flag URL.
- id string
- The provider-assigned unique ID for this managed resource.
- segment
Exists boolean - (String) Denotes if the targeting rules are specified for the feature flag.
- updated
Time string - (Timestamp) The last modified time of the feature flag data.
- created_
time str - (Timestamp) The creation time of the feature flag.
- href str
- (String) The feature flag URL.
- id str
- The provider-assigned unique ID for this managed resource.
- segment_
exists bool - (String) Denotes if the targeting rules are specified for the feature flag.
- updated_
time str - (Timestamp) The last modified time of the feature flag data.
- created
Time String - (Timestamp) The creation time of the feature flag.
- href String
- (String) The feature flag URL.
- id String
- The provider-assigned unique ID for this managed resource.
- segment
Exists Boolean - (String) Denotes if the targeting rules are specified for the feature flag.
- updated
Time String - (Timestamp) The last modified time of the feature flag data.
Look up Existing AppConfigFeature Resource
Get an existing AppConfigFeature 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?: AppConfigFeatureState, opts?: CustomResourceOptions): AppConfigFeature
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
app_config_feature_id: Optional[str] = None,
collections: Optional[Sequence[AppConfigFeatureCollectionArgs]] = None,
created_time: Optional[str] = None,
description: Optional[str] = None,
disabled_value: Optional[str] = None,
enabled: Optional[bool] = None,
enabled_value: Optional[str] = None,
environment_id: Optional[str] = None,
feature_id: Optional[str] = None,
format: Optional[str] = None,
guid: Optional[str] = None,
href: Optional[str] = None,
name: Optional[str] = None,
rollout_percentage: Optional[float] = None,
segment_exists: Optional[bool] = None,
segment_rules: Optional[Sequence[AppConfigFeatureSegmentRuleArgs]] = None,
tags: Optional[str] = None,
type: Optional[str] = None,
updated_time: Optional[str] = None) -> AppConfigFeature
func GetAppConfigFeature(ctx *Context, name string, id IDInput, state *AppConfigFeatureState, opts ...ResourceOption) (*AppConfigFeature, error)
public static AppConfigFeature Get(string name, Input<string> id, AppConfigFeatureState? state, CustomResourceOptions? opts = null)
public static AppConfigFeature get(String name, Output<String> id, AppConfigFeatureState state, CustomResourceOptions options)
resources: _: type: ibm:AppConfigFeature 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 stringFeature Id - (String) The unique identifier of the Feature flag resource.
- Collections
List<App
Config Feature Collection> - The list of collection ID representing the collections that are associated with the specified feature flag.
- Created
Time string - (Timestamp) The creation time of the feature flag.
- Description string
- The feature description.
- Disabled
Value string - The value of the feature when it is disabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the
type
attribute. - Enabled bool
- The value of the state of feature. (Note:- If enabled is set to false, collections is optional but for setting enabled to true collections is required to be set).
- Enabled
Value string - The value of the feature when it is enabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the
type
attribute. - Environment
Id string - The environment ID.
- Feature
Id string - The feature ID.
- Format string
- Format of the property (TEXT, JSON, YAML) and this is a required attribute when TYPE STRING is used, not required for BOOLEAN and NUMERIC types.
- Guid string
- The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
- Href string
- (String) The feature flag URL.
- Name string
- The feature name.
- Rollout
Percentage double - Rollout percentage of the feature.
- Segment
Exists bool - (String) Denotes if the targeting rules are specified for the feature flag.
- Segment
Rules List<AppConfig Feature Segment Rule> - Specify the targeting rules that is used to set different feature flag values for different segments.
- string
- Tags associated with the feature.
- Type string
- The feature type. Supported values are BOOLEAN, STRING, or NUMERIC.
- Updated
Time string - (Timestamp) The last modified time of the feature flag data.
- App
Config stringFeature Id - (String) The unique identifier of the Feature flag resource.
- Collections
[]App
Config Feature Collection Args - The list of collection ID representing the collections that are associated with the specified feature flag.
- Created
Time string - (Timestamp) The creation time of the feature flag.
- Description string
- The feature description.
- Disabled
Value string - The value of the feature when it is disabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the
type
attribute. - Enabled bool
- The value of the state of feature. (Note:- If enabled is set to false, collections is optional but for setting enabled to true collections is required to be set).
- Enabled
Value string - The value of the feature when it is enabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the
type
attribute. - Environment
Id string - The environment ID.
- Feature
Id string - The feature ID.
- Format string
- Format of the property (TEXT, JSON, YAML) and this is a required attribute when TYPE STRING is used, not required for BOOLEAN and NUMERIC types.
- Guid string
- The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
- Href string
- (String) The feature flag URL.
- Name string
- The feature name.
- Rollout
Percentage float64 - Rollout percentage of the feature.
- Segment
Exists bool - (String) Denotes if the targeting rules are specified for the feature flag.
- Segment
Rules []AppConfig Feature Segment Rule Args - Specify the targeting rules that is used to set different feature flag values for different segments.
- string
- Tags associated with the feature.
- Type string
- The feature type. Supported values are BOOLEAN, STRING, or NUMERIC.
- Updated
Time string - (Timestamp) The last modified time of the feature flag data.
- app
Config StringFeature Id - (String) The unique identifier of the Feature flag resource.
- collections
List<App
Config Feature Collection> - The list of collection ID representing the collections that are associated with the specified feature flag.
- created
Time String - (Timestamp) The creation time of the feature flag.
- description String
- The feature description.
- disabled
Value String - The value of the feature when it is disabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the
type
attribute. - enabled Boolean
- The value of the state of feature. (Note:- If enabled is set to false, collections is optional but for setting enabled to true collections is required to be set).
- enabled
Value String - The value of the feature when it is enabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the
type
attribute. - environment
Id String - The environment ID.
- feature
Id String - The feature ID.
- format String
- Format of the property (TEXT, JSON, YAML) and this is a required attribute when TYPE STRING is used, not required for BOOLEAN and NUMERIC types.
- guid String
- The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
- href String
- (String) The feature flag URL.
- name String
- The feature name.
- rollout
Percentage Double - Rollout percentage of the feature.
- segment
Exists Boolean - (String) Denotes if the targeting rules are specified for the feature flag.
- segment
Rules List<AppConfig Feature Segment Rule> - Specify the targeting rules that is used to set different feature flag values for different segments.
- String
- Tags associated with the feature.
- type String
- The feature type. Supported values are BOOLEAN, STRING, or NUMERIC.
- updated
Time String - (Timestamp) The last modified time of the feature flag data.
- app
Config stringFeature Id - (String) The unique identifier of the Feature flag resource.
- collections
App
Config Feature Collection[] - The list of collection ID representing the collections that are associated with the specified feature flag.
- created
Time string - (Timestamp) The creation time of the feature flag.
- description string
- The feature description.
- disabled
Value string - The value of the feature when it is disabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the
type
attribute. - enabled boolean
- The value of the state of feature. (Note:- If enabled is set to false, collections is optional but for setting enabled to true collections is required to be set).
- enabled
Value string - The value of the feature when it is enabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the
type
attribute. - environment
Id string - The environment ID.
- feature
Id string - The feature ID.
- format string
- Format of the property (TEXT, JSON, YAML) and this is a required attribute when TYPE STRING is used, not required for BOOLEAN and NUMERIC types.
- guid string
- The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
- href string
- (String) The feature flag URL.
- name string
- The feature name.
- rollout
Percentage number - Rollout percentage of the feature.
- segment
Exists boolean - (String) Denotes if the targeting rules are specified for the feature flag.
- segment
Rules AppConfig Feature Segment Rule[] - Specify the targeting rules that is used to set different feature flag values for different segments.
- string
- Tags associated with the feature.
- type string
- The feature type. Supported values are BOOLEAN, STRING, or NUMERIC.
- updated
Time string - (Timestamp) The last modified time of the feature flag data.
- app_
config_ strfeature_ id - (String) The unique identifier of the Feature flag resource.
- collections
Sequence[App
Config Feature Collection Args] - The list of collection ID representing the collections that are associated with the specified feature flag.
- created_
time str - (Timestamp) The creation time of the feature flag.
- description str
- The feature description.
- disabled_
value str - The value of the feature when it is disabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the
type
attribute. - enabled bool
- The value of the state of feature. (Note:- If enabled is set to false, collections is optional but for setting enabled to true collections is required to be set).
- enabled_
value str - The value of the feature when it is enabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the
type
attribute. - environment_
id str - The environment ID.
- feature_
id str - The feature ID.
- format str
- Format of the property (TEXT, JSON, YAML) and this is a required attribute when TYPE STRING is used, not required for BOOLEAN and NUMERIC types.
- guid str
- The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
- href str
- (String) The feature flag URL.
- name str
- The feature name.
- rollout_
percentage float - Rollout percentage of the feature.
- segment_
exists bool - (String) Denotes if the targeting rules are specified for the feature flag.
- segment_
rules Sequence[AppConfig Feature Segment Rule Args] - Specify the targeting rules that is used to set different feature flag values for different segments.
- str
- Tags associated with the feature.
- type str
- The feature type. Supported values are BOOLEAN, STRING, or NUMERIC.
- updated_
time str - (Timestamp) The last modified time of the feature flag data.
- app
Config StringFeature Id - (String) The unique identifier of the Feature flag resource.
- collections List<Property Map>
- The list of collection ID representing the collections that are associated with the specified feature flag.
- created
Time String - (Timestamp) The creation time of the feature flag.
- description String
- The feature description.
- disabled
Value String - The value of the feature when it is disabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the
type
attribute. - enabled Boolean
- The value of the state of feature. (Note:- If enabled is set to false, collections is optional but for setting enabled to true collections is required to be set).
- enabled
Value String - The value of the feature when it is enabled. The value can be BOOLEAN, STRING, or NUMERIC value as per the
type
attribute. - environment
Id String - The environment ID.
- feature
Id String - The feature ID.
- format String
- Format of the property (TEXT, JSON, YAML) and this is a required attribute when TYPE STRING is used, not required for BOOLEAN and NUMERIC types.
- guid String
- The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
- href String
- (String) The feature flag URL.
- name String
- The feature name.
- rollout
Percentage Number - Rollout percentage of the feature.
- segment
Exists Boolean - (String) Denotes if the targeting rules are specified for the feature flag.
- segment
Rules List<Property Map> - Specify the targeting rules that is used to set different feature flag values for different segments.
- String
- Tags associated with the feature.
- type String
- The feature type. Supported values are BOOLEAN, STRING, or NUMERIC.
- updated
Time String - (Timestamp) The last modified time of the feature flag data.
Supporting Types
AppConfigFeatureCollection, AppConfigFeatureCollectionArgs
- Collection
Id string - Collection ID.
- Collection
Id string - Collection ID.
- collection
Id String - Collection ID.
- collection
Id string - Collection ID.
- collection_
id str - Collection ID.
- collection
Id String - Collection ID.
AppConfigFeatureSegmentRule, AppConfigFeatureSegmentRuleArgs
- Order double
- The order of the rule, used during evaluation. The evaluation is performed in the order defined and the value associated with the first matching rule is used for evaluation.
- Rules
List<App
Config Feature Segment Rule Rule> - The rules array.
- Value string
- The value to be used for evaluation for this rule. The value can be Boolean, String or a Numeric value as per the
type
attribute. - Rollout
Percentage double - Rollout percentage for the segment rule.
- Order float64
- The order of the rule, used during evaluation. The evaluation is performed in the order defined and the value associated with the first matching rule is used for evaluation.
- Rules
[]App
Config Feature Segment Rule Rule - The rules array.
- Value string
- The value to be used for evaluation for this rule. The value can be Boolean, String or a Numeric value as per the
type
attribute. - Rollout
Percentage float64 - Rollout percentage for the segment rule.
- order Double
- The order of the rule, used during evaluation. The evaluation is performed in the order defined and the value associated with the first matching rule is used for evaluation.
- rules
List<App
Config Feature Segment Rule Rule> - The rules array.
- value String
- The value to be used for evaluation for this rule. The value can be Boolean, String or a Numeric value as per the
type
attribute. - rollout
Percentage Double - Rollout percentage for the segment rule.
- order number
- The order of the rule, used during evaluation. The evaluation is performed in the order defined and the value associated with the first matching rule is used for evaluation.
- rules
App
Config Feature Segment Rule Rule[] - The rules array.
- value string
- The value to be used for evaluation for this rule. The value can be Boolean, String or a Numeric value as per the
type
attribute. - rollout
Percentage number - Rollout percentage for the segment rule.
- order float
- The order of the rule, used during evaluation. The evaluation is performed in the order defined and the value associated with the first matching rule is used for evaluation.
- rules
Sequence[App
Config Feature Segment Rule Rule] - The rules array.
- value str
- The value to be used for evaluation for this rule. The value can be Boolean, String or a Numeric value as per the
type
attribute. - rollout_
percentage float - Rollout percentage for the segment rule.
- order Number
- The order of the rule, used during evaluation. The evaluation is performed in the order defined and the value associated with the first matching rule is used for evaluation.
- rules List<Property Map>
- The rules array.
- value String
- The value to be used for evaluation for this rule. The value can be Boolean, String or a Numeric value as per the
type
attribute. - rollout
Percentage Number - Rollout percentage for the segment rule.
AppConfigFeatureSegmentRuleRule, AppConfigFeatureSegmentRuleRuleArgs
- Segments List<string>
- The list of segment IDs that are used for targeting using the rule.
- Segments []string
- The list of segment IDs that are used for targeting using the rule.
- segments List<String>
- The list of segment IDs that are used for targeting using the rule.
- segments string[]
- The list of segment IDs that are used for targeting using the rule.
- segments Sequence[str]
- The list of segment IDs that are used for targeting using the rule.
- segments List<String>
- The list of segment IDs that are used for targeting using the rule.
Import
The ibm_app_config_feature
resource can be imported by using guid
of the App Configuration instance, environmentId
and featureId
. Get the guid
from the service instance credentials section of the dashboard.
Syntax
$ pulumi import ibm:index/appConfigFeature:AppConfigFeature sample <guid/environmentId/featureId>
Example
$ pulumi import ibm:index/appConfigFeature:AppConfigFeature sample 272111153-c118-4116-8116-b811fbc31132/dev/sample_feature
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.