harness.platform.FeatureFlagTarget
Explore with Pulumi AI
Resource for managing Feature Flag Targets.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
const target = new harness.platform.FeatureFlagTarget("target", {
    orgId: "test",
    projectId: "test",
    identifier: "MY_FEATURE",
    environment: "MY_ENVIRONMENT",
    name: "MY_FEATURE",
    accountId: "MY_ACCOUNT_ID",
    attributes: {
        foo: "bar",
    },
});
import pulumi
import pulumi_harness as harness
target = harness.platform.FeatureFlagTarget("target",
    org_id="test",
    project_id="test",
    identifier="MY_FEATURE",
    environment="MY_ENVIRONMENT",
    name="MY_FEATURE",
    account_id="MY_ACCOUNT_ID",
    attributes={
        "foo": "bar",
    })
package main
import (
	"github.com/pulumi/pulumi-harness/sdk/go/harness/platform"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := platform.NewFeatureFlagTarget(ctx, "target", &platform.FeatureFlagTargetArgs{
			OrgId:       pulumi.String("test"),
			ProjectId:   pulumi.String("test"),
			Identifier:  pulumi.String("MY_FEATURE"),
			Environment: pulumi.String("MY_ENVIRONMENT"),
			Name:        pulumi.String("MY_FEATURE"),
			AccountId:   pulumi.String("MY_ACCOUNT_ID"),
			Attributes: pulumi.StringMap{
				"foo": pulumi.String("bar"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;
return await Deployment.RunAsync(() => 
{
    var target = new Harness.Platform.FeatureFlagTarget("target", new()
    {
        OrgId = "test",
        ProjectId = "test",
        Identifier = "MY_FEATURE",
        Environment = "MY_ENVIRONMENT",
        Name = "MY_FEATURE",
        AccountId = "MY_ACCOUNT_ID",
        Attributes = 
        {
            { "foo", "bar" },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.platform.FeatureFlagTarget;
import com.pulumi.harness.platform.FeatureFlagTargetArgs;
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 target = new FeatureFlagTarget("target", FeatureFlagTargetArgs.builder()
            .orgId("test")
            .projectId("test")
            .identifier("MY_FEATURE")
            .environment("MY_ENVIRONMENT")
            .name("MY_FEATURE")
            .accountId("MY_ACCOUNT_ID")
            .attributes(Map.of("foo", "bar"))
            .build());
    }
}
resources:
  target:
    type: harness:platform:FeatureFlagTarget
    properties:
      orgId: test
      projectId: test
      identifier: MY_FEATURE
      environment: MY_ENVIRONMENT
      name: MY_FEATURE
      accountId: MY_ACCOUNT_ID
      attributes:
        foo: bar
Create FeatureFlagTarget Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FeatureFlagTarget(name: string, args: FeatureFlagTargetArgs, opts?: CustomResourceOptions);@overload
def FeatureFlagTarget(resource_name: str,
                      args: FeatureFlagTargetArgs,
                      opts: Optional[ResourceOptions] = None)
@overload
def FeatureFlagTarget(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      account_id: Optional[str] = None,
                      environment: Optional[str] = None,
                      identifier: Optional[str] = None,
                      org_id: Optional[str] = None,
                      project_id: Optional[str] = None,
                      attributes: Optional[Mapping[str, str]] = None,
                      name: Optional[str] = None)func NewFeatureFlagTarget(ctx *Context, name string, args FeatureFlagTargetArgs, opts ...ResourceOption) (*FeatureFlagTarget, error)public FeatureFlagTarget(string name, FeatureFlagTargetArgs args, CustomResourceOptions? opts = null)
public FeatureFlagTarget(String name, FeatureFlagTargetArgs args)
public FeatureFlagTarget(String name, FeatureFlagTargetArgs args, CustomResourceOptions options)
type: harness:platform:FeatureFlagTarget
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 FeatureFlagTargetArgs
- 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 FeatureFlagTargetArgs
- 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 FeatureFlagTargetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FeatureFlagTargetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FeatureFlagTargetArgs
- 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 featureFlagTargetResource = new Harness.Platform.FeatureFlagTarget("featureFlagTargetResource", new()
{
    AccountId = "string",
    Environment = "string",
    Identifier = "string",
    OrgId = "string",
    ProjectId = "string",
    Attributes = 
    {
        { "string", "string" },
    },
    Name = "string",
});
example, err := platform.NewFeatureFlagTarget(ctx, "featureFlagTargetResource", &platform.FeatureFlagTargetArgs{
	AccountId:   pulumi.String("string"),
	Environment: pulumi.String("string"),
	Identifier:  pulumi.String("string"),
	OrgId:       pulumi.String("string"),
	ProjectId:   pulumi.String("string"),
	Attributes: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Name: pulumi.String("string"),
})
var featureFlagTargetResource = new FeatureFlagTarget("featureFlagTargetResource", FeatureFlagTargetArgs.builder()
    .accountId("string")
    .environment("string")
    .identifier("string")
    .orgId("string")
    .projectId("string")
    .attributes(Map.of("string", "string"))
    .name("string")
    .build());
feature_flag_target_resource = harness.platform.FeatureFlagTarget("featureFlagTargetResource",
    account_id="string",
    environment="string",
    identifier="string",
    org_id="string",
    project_id="string",
    attributes={
        "string": "string",
    },
    name="string")
const featureFlagTargetResource = new harness.platform.FeatureFlagTarget("featureFlagTargetResource", {
    accountId: "string",
    environment: "string",
    identifier: "string",
    orgId: "string",
    projectId: "string",
    attributes: {
        string: "string",
    },
    name: "string",
});
type: harness:platform:FeatureFlagTarget
properties:
    accountId: string
    attributes:
        string: string
    environment: string
    identifier: string
    name: string
    orgId: string
    projectId: string
FeatureFlagTarget 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 FeatureFlagTarget resource accepts the following input properties:
- AccountId string
- Account Identifier
- Environment string
- Environment Identifier
- Identifier string
- Identifier of the Feature Flag Target
- OrgId string
- Organization Identifier
- ProjectId string
- Project Identifier
- Attributes Dictionary<string, string>
- Attributes
- Name string
- Target Name
- AccountId string
- Account Identifier
- Environment string
- Environment Identifier
- Identifier string
- Identifier of the Feature Flag Target
- OrgId string
- Organization Identifier
- ProjectId string
- Project Identifier
- Attributes map[string]string
- Attributes
- Name string
- Target Name
- accountId String
- Account Identifier
- environment String
- Environment Identifier
- identifier String
- Identifier of the Feature Flag Target
- orgId String
- Organization Identifier
- projectId String
- Project Identifier
- attributes Map<String,String>
- Attributes
- name String
- Target Name
- accountId string
- Account Identifier
- environment string
- Environment Identifier
- identifier string
- Identifier of the Feature Flag Target
- orgId string
- Organization Identifier
- projectId string
- Project Identifier
- attributes {[key: string]: string}
- Attributes
- name string
- Target Name
- account_id str
- Account Identifier
- environment str
- Environment Identifier
- identifier str
- Identifier of the Feature Flag Target
- org_id str
- Organization Identifier
- project_id str
- Project Identifier
- attributes Mapping[str, str]
- Attributes
- name str
- Target Name
- accountId String
- Account Identifier
- environment String
- Environment Identifier
- identifier String
- Identifier of the Feature Flag Target
- orgId String
- Organization Identifier
- projectId String
- Project Identifier
- attributes Map<String>
- Attributes
- name String
- Target Name
Outputs
All input properties are implicitly available as output properties. Additionally, the FeatureFlagTarget resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing FeatureFlagTarget Resource
Get an existing FeatureFlagTarget 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?: FeatureFlagTargetState, opts?: CustomResourceOptions): FeatureFlagTarget@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_id: Optional[str] = None,
        attributes: Optional[Mapping[str, str]] = None,
        environment: Optional[str] = None,
        identifier: Optional[str] = None,
        name: Optional[str] = None,
        org_id: Optional[str] = None,
        project_id: Optional[str] = None) -> FeatureFlagTargetfunc GetFeatureFlagTarget(ctx *Context, name string, id IDInput, state *FeatureFlagTargetState, opts ...ResourceOption) (*FeatureFlagTarget, error)public static FeatureFlagTarget Get(string name, Input<string> id, FeatureFlagTargetState? state, CustomResourceOptions? opts = null)public static FeatureFlagTarget get(String name, Output<String> id, FeatureFlagTargetState state, CustomResourceOptions options)resources:  _:    type: harness:platform:FeatureFlagTarget    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.
- AccountId string
- Account Identifier
- Attributes Dictionary<string, string>
- Attributes
- Environment string
- Environment Identifier
- Identifier string
- Identifier of the Feature Flag Target
- Name string
- Target Name
- OrgId string
- Organization Identifier
- ProjectId string
- Project Identifier
- AccountId string
- Account Identifier
- Attributes map[string]string
- Attributes
- Environment string
- Environment Identifier
- Identifier string
- Identifier of the Feature Flag Target
- Name string
- Target Name
- OrgId string
- Organization Identifier
- ProjectId string
- Project Identifier
- accountId String
- Account Identifier
- attributes Map<String,String>
- Attributes
- environment String
- Environment Identifier
- identifier String
- Identifier of the Feature Flag Target
- name String
- Target Name
- orgId String
- Organization Identifier
- projectId String
- Project Identifier
- accountId string
- Account Identifier
- attributes {[key: string]: string}
- Attributes
- environment string
- Environment Identifier
- identifier string
- Identifier of the Feature Flag Target
- name string
- Target Name
- orgId string
- Organization Identifier
- projectId string
- Project Identifier
- account_id str
- Account Identifier
- attributes Mapping[str, str]
- Attributes
- environment str
- Environment Identifier
- identifier str
- Identifier of the Feature Flag Target
- name str
- Target Name
- org_id str
- Organization Identifier
- project_id str
- Project Identifier
- accountId String
- Account Identifier
- attributes Map<String>
- Attributes
- environment String
- Environment Identifier
- identifier String
- Identifier of the Feature Flag Target
- name String
- Target Name
- orgId String
- Organization Identifier
- projectId String
- Project Identifier
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the harnessTerraform Provider.
