okta.Feature
Manages brand. This resource allows you to toggle an Okta Feature.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";
const example = okta.getFeatures({
label: "Android Device Trust",
});
const test = new okta.Feature("test", {featureId: example.then(example => example.features?.[0]?.id)});
import pulumi
import pulumi_okta as okta
example = okta.get_features(label="Android Device Trust")
test = okta.Feature("test", feature_id=example.features[0].id)
package main
import (
"github.com/pulumi/pulumi-okta/sdk/v6/go/okta"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := okta.GetFeatures(ctx, &okta.GetFeaturesArgs{
Label: pulumi.StringRef("Android Device Trust"),
}, nil)
if err != nil {
return err
}
_, err = okta.NewFeature(ctx, "test", &okta.FeatureArgs{
FeatureId: pulumi.String(example.Features[0].Id),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Okta = Pulumi.Okta;
return await Deployment.RunAsync(() =>
{
var example = Okta.GetFeatures.Invoke(new()
{
Label = "Android Device Trust",
});
var test = new Okta.Feature("test", new()
{
FeatureId = example.Apply(getFeaturesResult => getFeaturesResult.Features[0]?.Id),
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.okta.OktaFunctions;
import com.pulumi.okta.inputs.GetFeaturesArgs;
import com.pulumi.okta.Feature;
import com.pulumi.okta.FeatureArgs;
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) {
final var example = OktaFunctions.getFeatures(GetFeaturesArgs.builder()
.label("Android Device Trust")
.build());
var test = new Feature("test", FeatureArgs.builder()
.featureId(example.features()[0].id())
.build());
}
}
resources:
test:
type: okta:Feature
properties:
featureId: ${example.features[0].id}
variables:
example:
fn::invoke:
function: okta:getFeatures
arguments:
label: Android Device Trust
Create Feature Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Feature(name: string, args: FeatureArgs, opts?: CustomResourceOptions);@overload
def Feature(resource_name: str,
args: FeatureArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Feature(resource_name: str,
opts: Optional[ResourceOptions] = None,
feature_id: Optional[str] = None,
life_cycle: Optional[str] = None,
mode: Optional[bool] = None)func NewFeature(ctx *Context, name string, args FeatureArgs, opts ...ResourceOption) (*Feature, error)public Feature(string name, FeatureArgs args, CustomResourceOptions? opts = null)
public Feature(String name, FeatureArgs args)
public Feature(String name, FeatureArgs args, CustomResourceOptions options)
type: okta:Feature
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 FeatureArgs
- 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 FeatureArgs
- 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 FeatureArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FeatureArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FeatureArgs
- 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 featureResource = new Okta.Feature("featureResource", new()
{
FeatureId = "string",
LifeCycle = "string",
Mode = false,
});
example, err := okta.NewFeature(ctx, "featureResource", &okta.FeatureArgs{
FeatureId: pulumi.String("string"),
LifeCycle: pulumi.String("string"),
Mode: pulumi.Bool(false),
})
var featureResource = new Feature("featureResource", FeatureArgs.builder()
.featureId("string")
.lifeCycle("string")
.mode(false)
.build());
feature_resource = okta.Feature("featureResource",
feature_id="string",
life_cycle="string",
mode=False)
const featureResource = new okta.Feature("featureResource", {
featureId: "string",
lifeCycle: "string",
mode: false,
});
type: okta:Feature
properties:
featureId: string
lifeCycle: string
mode: false
Feature 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 Feature resource accepts the following input properties:
- Feature
Id string - Okta API for feature only reads and updates therefore the oktafeature resource needs to act as a quasi data source. Do this by setting featureid
- Life
Cycle string - Whether to
ENABLEorDISABLEthe feature - Mode bool
- Indicates if you want to force enable or disable a feature. Value is
truemeaning force
- Feature
Id string - Okta API for feature only reads and updates therefore the oktafeature resource needs to act as a quasi data source. Do this by setting featureid
- Life
Cycle string - Whether to
ENABLEorDISABLEthe feature - Mode bool
- Indicates if you want to force enable or disable a feature. Value is
truemeaning force
- feature
Id String - Okta API for feature only reads and updates therefore the oktafeature resource needs to act as a quasi data source. Do this by setting featureid
- life
Cycle String - Whether to
ENABLEorDISABLEthe feature - mode Boolean
- Indicates if you want to force enable or disable a feature. Value is
truemeaning force
- feature
Id string - Okta API for feature only reads and updates therefore the oktafeature resource needs to act as a quasi data source. Do this by setting featureid
- life
Cycle string - Whether to
ENABLEorDISABLEthe feature - mode boolean
- Indicates if you want to force enable or disable a feature. Value is
truemeaning force
- feature_
id str - Okta API for feature only reads and updates therefore the oktafeature resource needs to act as a quasi data source. Do this by setting featureid
- life_
cycle str - Whether to
ENABLEorDISABLEthe feature - mode bool
- Indicates if you want to force enable or disable a feature. Value is
truemeaning force
- feature
Id String - Okta API for feature only reads and updates therefore the oktafeature resource needs to act as a quasi data source. Do this by setting featureid
- life
Cycle String - Whether to
ENABLEorDISABLEthe feature - mode Boolean
- Indicates if you want to force enable or disable a feature. Value is
truemeaning force
Outputs
All input properties are implicitly available as output properties. Additionally, the Feature resource produces the following output properties:
- Description string
- Name of the feature.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the feature.
- Stage
Feature
Stage - Current release cycle stage of a feature.
- Status string
- The feature status.
- Type string
- Type of feature.
- Description string
- Name of the feature.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the feature.
- Stage
Feature
Stage - Current release cycle stage of a feature.
- Status string
- The feature status.
- Type string
- Type of feature.
- description String
- Name of the feature.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the feature.
- stage
Feature
Stage - Current release cycle stage of a feature.
- status String
- The feature status.
- type String
- Type of feature.
- description string
- Name of the feature.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Name of the feature.
- stage
Feature
Stage - Current release cycle stage of a feature.
- status string
- The feature status.
- type string
- Type of feature.
- description str
- Name of the feature.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Name of the feature.
- stage
Feature
Stage - Current release cycle stage of a feature.
- status str
- The feature status.
- type str
- Type of feature.
- description String
- Name of the feature.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the feature.
- stage Property Map
- Current release cycle stage of a feature.
- status String
- The feature status.
- type String
- Type of feature.
Look up Existing Feature Resource
Get an existing Feature 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?: FeatureState, opts?: CustomResourceOptions): Feature@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
feature_id: Optional[str] = None,
life_cycle: Optional[str] = None,
mode: Optional[bool] = None,
name: Optional[str] = None,
stage: Optional[FeatureStageArgs] = None,
status: Optional[str] = None,
type: Optional[str] = None) -> Featurefunc GetFeature(ctx *Context, name string, id IDInput, state *FeatureState, opts ...ResourceOption) (*Feature, error)public static Feature Get(string name, Input<string> id, FeatureState? state, CustomResourceOptions? opts = null)public static Feature get(String name, Output<String> id, FeatureState state, CustomResourceOptions options)resources: _: type: okta:Feature 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.
- Description string
- Name of the feature.
- Feature
Id string - Okta API for feature only reads and updates therefore the oktafeature resource needs to act as a quasi data source. Do this by setting featureid
- Life
Cycle string - Whether to
ENABLEorDISABLEthe feature - Mode bool
- Indicates if you want to force enable or disable a feature. Value is
truemeaning force - Name string
- Name of the feature.
- Stage
Feature
Stage - Current release cycle stage of a feature.
- Status string
- The feature status.
- Type string
- Type of feature.
- Description string
- Name of the feature.
- Feature
Id string - Okta API for feature only reads and updates therefore the oktafeature resource needs to act as a quasi data source. Do this by setting featureid
- Life
Cycle string - Whether to
ENABLEorDISABLEthe feature - Mode bool
- Indicates if you want to force enable or disable a feature. Value is
truemeaning force - Name string
- Name of the feature.
- Stage
Feature
Stage Args - Current release cycle stage of a feature.
- Status string
- The feature status.
- Type string
- Type of feature.
- description String
- Name of the feature.
- feature
Id String - Okta API for feature only reads and updates therefore the oktafeature resource needs to act as a quasi data source. Do this by setting featureid
- life
Cycle String - Whether to
ENABLEorDISABLEthe feature - mode Boolean
- Indicates if you want to force enable or disable a feature. Value is
truemeaning force - name String
- Name of the feature.
- stage
Feature
Stage - Current release cycle stage of a feature.
- status String
- The feature status.
- type String
- Type of feature.
- description string
- Name of the feature.
- feature
Id string - Okta API for feature only reads and updates therefore the oktafeature resource needs to act as a quasi data source. Do this by setting featureid
- life
Cycle string - Whether to
ENABLEorDISABLEthe feature - mode boolean
- Indicates if you want to force enable or disable a feature. Value is
truemeaning force - name string
- Name of the feature.
- stage
Feature
Stage - Current release cycle stage of a feature.
- status string
- The feature status.
- type string
- Type of feature.
- description str
- Name of the feature.
- feature_
id str - Okta API for feature only reads and updates therefore the oktafeature resource needs to act as a quasi data source. Do this by setting featureid
- life_
cycle str - Whether to
ENABLEorDISABLEthe feature - mode bool
- Indicates if you want to force enable or disable a feature. Value is
truemeaning force - name str
- Name of the feature.
- stage
Feature
Stage Args - Current release cycle stage of a feature.
- status str
- The feature status.
- type str
- Type of feature.
- description String
- Name of the feature.
- feature
Id String - Okta API for feature only reads and updates therefore the oktafeature resource needs to act as a quasi data source. Do this by setting featureid
- life
Cycle String - Whether to
ENABLEorDISABLEthe feature - mode Boolean
- Indicates if you want to force enable or disable a feature. Value is
truemeaning force - name String
- Name of the feature.
- stage Property Map
- Current release cycle stage of a feature.
- status String
- The feature status.
- type String
- Type of feature.
Supporting Types
FeatureStage, FeatureStageArgs
Import
$ pulumi import okta:index/feature:Feature example <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Okta pulumi/pulumi-okta
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oktaTerraform Provider.
