1. Packages
  2. Harness
  3. API Docs
  4. platform
  5. FeatureFlagApiKey
Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs

harness.platform.FeatureFlagApiKey

Explore with Pulumi AI

harness logo
Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs

    Resource for creating an environment SDK key for Feature Flags.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Lbrlabs.PulumiPackage.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        var testserverapikey = new Harness.Platform.FeatureFlagApiKey("testserverapikey", new()
        {
            Identifier = "testserver",
            Description = "this is a server SDK key",
            OrgId = "test",
            ProjectId = "testff",
            EnvId = "testenv",
            ExpiredAt = 1713729225,
            Type = "Server",
        });
    
        return new Dictionary<string, object?>
        {
            ["serversdkkey"] = testserverapikey.ApiKey,
        };
    });
    
    package main
    
    import (
    	"github.com/lbrlabs/pulumi-harness/sdk/go/harness/platform"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		testserverapikey, err := platform.NewFeatureFlagApiKey(ctx, "testserverapikey", &platform.FeatureFlagApiKeyArgs{
    			Identifier:  pulumi.String("testserver"),
    			Description: pulumi.String("this is a server SDK key"),
    			OrgId:       pulumi.String("test"),
    			ProjectId:   pulumi.String("testff"),
    			EnvId:       pulumi.String("testenv"),
    			ExpiredAt:   pulumi.Int(1713729225),
    			Type:        pulumi.String("Server"),
    		})
    		if err != nil {
    			return err
    		}
    		ctx.Export("serversdkkey", testserverapikey.ApiKey)
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harness.platform.FeatureFlagApiKey;
    import com.pulumi.harness.platform.FeatureFlagApiKeyArgs;
    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 testserverapikey = new FeatureFlagApiKey("testserverapikey", FeatureFlagApiKeyArgs.builder()        
                .identifier("testserver")
                .description("this is a server SDK key")
                .orgId("test")
                .projectId("testff")
                .envId("testenv")
                .expiredAt(1713729225)
                .type("Server")
                .build());
    
            ctx.export("serversdkkey", testserverapikey.apiKey());
        }
    }
    
    import pulumi
    import lbrlabs_pulumi_harness as harness
    
    testserverapikey = harness.platform.FeatureFlagApiKey("testserverapikey",
        identifier="testserver",
        description="this is a server SDK key",
        org_id="test",
        project_id="testff",
        env_id="testenv",
        expired_at=1713729225,
        type="Server")
    pulumi.export("serversdkkey", testserverapikey.api_key)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@lbrlabs/pulumi-harness";
    
    const testserverapikey = new harness.platform.FeatureFlagApiKey("testserverapikey", {
        identifier: "testserver",
        description: "this is a server SDK key",
        orgId: "test",
        projectId: "testff",
        envId: "testenv",
        expiredAt: 1713729225,
        type: "Server",
    });
    export const serversdkkey = testserverapikey.apiKey;
    
    resources:
      testserverapikey:
        type: harness:platform:FeatureFlagApiKey
        properties:
          identifier: testserver
          description: this is a server SDK key
          orgId: test
          projectId: testff
          envId: testenv
          expiredAt: 1.713729225e+09
          type: Server
    outputs:
      serversdkkey: ${testserverapikey.apiKey}
    

    Create FeatureFlagApiKey Resource

    new FeatureFlagApiKey(name: string, args: FeatureFlagApiKeyArgs, opts?: CustomResourceOptions);
    @overload
    def FeatureFlagApiKey(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          description: Optional[str] = None,
                          env_id: Optional[str] = None,
                          expired_at: Optional[int] = None,
                          identifier: Optional[str] = None,
                          name: Optional[str] = None,
                          org_id: Optional[str] = None,
                          project_id: Optional[str] = None,
                          type: Optional[str] = None)
    @overload
    def FeatureFlagApiKey(resource_name: str,
                          args: FeatureFlagApiKeyArgs,
                          opts: Optional[ResourceOptions] = None)
    func NewFeatureFlagApiKey(ctx *Context, name string, args FeatureFlagApiKeyArgs, opts ...ResourceOption) (*FeatureFlagApiKey, error)
    public FeatureFlagApiKey(string name, FeatureFlagApiKeyArgs args, CustomResourceOptions? opts = null)
    public FeatureFlagApiKey(String name, FeatureFlagApiKeyArgs args)
    public FeatureFlagApiKey(String name, FeatureFlagApiKeyArgs args, CustomResourceOptions options)
    
    type: harness:platform:FeatureFlagApiKey
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args FeatureFlagApiKeyArgs
    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 FeatureFlagApiKeyArgs
    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 FeatureFlagApiKeyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FeatureFlagApiKeyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FeatureFlagApiKeyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    FeatureFlagApiKey Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The FeatureFlagApiKey resource accepts the following input properties:

    EnvId string

    Environment Identifier

    Identifier string

    Identifier of the SDK API Key

    OrgId string

    Organization Identifier

    ProjectId string

    Project Identifier

    Type string

    Type of SDK. Valid values are Server or Client.

    Description string

    Description of the SDK API Key

    ExpiredAt int

    Expiration datetime of the SDK API Key

    Name string

    Name of the SDK API Key

    EnvId string

    Environment Identifier

    Identifier string

    Identifier of the SDK API Key

    OrgId string

    Organization Identifier

    ProjectId string

    Project Identifier

    Type string

    Type of SDK. Valid values are Server or Client.

    Description string

    Description of the SDK API Key

    ExpiredAt int

    Expiration datetime of the SDK API Key

    Name string

    Name of the SDK API Key

    envId String

    Environment Identifier

    identifier String

    Identifier of the SDK API Key

    orgId String

    Organization Identifier

    projectId String

    Project Identifier

    type String

    Type of SDK. Valid values are Server or Client.

    description String

    Description of the SDK API Key

    expiredAt Integer

    Expiration datetime of the SDK API Key

    name String

    Name of the SDK API Key

    envId string

    Environment Identifier

    identifier string

    Identifier of the SDK API Key

    orgId string

    Organization Identifier

    projectId string

    Project Identifier

    type string

    Type of SDK. Valid values are Server or Client.

    description string

    Description of the SDK API Key

    expiredAt number

    Expiration datetime of the SDK API Key

    name string

    Name of the SDK API Key

    env_id str

    Environment Identifier

    identifier str

    Identifier of the SDK API Key

    org_id str

    Organization Identifier

    project_id str

    Project Identifier

    type str

    Type of SDK. Valid values are Server or Client.

    description str

    Description of the SDK API Key

    expired_at int

    Expiration datetime of the SDK API Key

    name str

    Name of the SDK API Key

    envId String

    Environment Identifier

    identifier String

    Identifier of the SDK API Key

    orgId String

    Organization Identifier

    projectId String

    Project Identifier

    type String

    Type of SDK. Valid values are Server or Client.

    description String

    Description of the SDK API Key

    expiredAt Number

    Expiration datetime of the SDK API Key

    name String

    Name of the SDK API Key

    Outputs

    All input properties are implicitly available as output properties. Additionally, the FeatureFlagApiKey resource produces the following output properties:

    ApiKey string

    The value of the SDK API Key

    Id string

    The provider-assigned unique ID for this managed resource.

    ApiKey string

    The value of the SDK API Key

    Id string

    The provider-assigned unique ID for this managed resource.

    apiKey String

    The value of the SDK API Key

    id String

    The provider-assigned unique ID for this managed resource.

    apiKey string

    The value of the SDK API Key

    id string

    The provider-assigned unique ID for this managed resource.

    api_key str

    The value of the SDK API Key

    id str

    The provider-assigned unique ID for this managed resource.

    apiKey String

    The value of the SDK API Key

    id String

    The provider-assigned unique ID for this managed resource.

    Look up Existing FeatureFlagApiKey Resource

    Get an existing FeatureFlagApiKey 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?: FeatureFlagApiKeyState, opts?: CustomResourceOptions): FeatureFlagApiKey
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            api_key: Optional[str] = None,
            description: Optional[str] = None,
            env_id: Optional[str] = None,
            expired_at: Optional[int] = None,
            identifier: Optional[str] = None,
            name: Optional[str] = None,
            org_id: Optional[str] = None,
            project_id: Optional[str] = None,
            type: Optional[str] = None) -> FeatureFlagApiKey
    func GetFeatureFlagApiKey(ctx *Context, name string, id IDInput, state *FeatureFlagApiKeyState, opts ...ResourceOption) (*FeatureFlagApiKey, error)
    public static FeatureFlagApiKey Get(string name, Input<string> id, FeatureFlagApiKeyState? state, CustomResourceOptions? opts = null)
    public static FeatureFlagApiKey get(String name, Output<String> id, FeatureFlagApiKeyState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    ApiKey string

    The value of the SDK API Key

    Description string

    Description of the SDK API Key

    EnvId string

    Environment Identifier

    ExpiredAt int

    Expiration datetime of the SDK API Key

    Identifier string

    Identifier of the SDK API Key

    Name string

    Name of the SDK API Key

    OrgId string

    Organization Identifier

    ProjectId string

    Project Identifier

    Type string

    Type of SDK. Valid values are Server or Client.

    ApiKey string

    The value of the SDK API Key

    Description string

    Description of the SDK API Key

    EnvId string

    Environment Identifier

    ExpiredAt int

    Expiration datetime of the SDK API Key

    Identifier string

    Identifier of the SDK API Key

    Name string

    Name of the SDK API Key

    OrgId string

    Organization Identifier

    ProjectId string

    Project Identifier

    Type string

    Type of SDK. Valid values are Server or Client.

    apiKey String

    The value of the SDK API Key

    description String

    Description of the SDK API Key

    envId String

    Environment Identifier

    expiredAt Integer

    Expiration datetime of the SDK API Key

    identifier String

    Identifier of the SDK API Key

    name String

    Name of the SDK API Key

    orgId String

    Organization Identifier

    projectId String

    Project Identifier

    type String

    Type of SDK. Valid values are Server or Client.

    apiKey string

    The value of the SDK API Key

    description string

    Description of the SDK API Key

    envId string

    Environment Identifier

    expiredAt number

    Expiration datetime of the SDK API Key

    identifier string

    Identifier of the SDK API Key

    name string

    Name of the SDK API Key

    orgId string

    Organization Identifier

    projectId string

    Project Identifier

    type string

    Type of SDK. Valid values are Server or Client.

    api_key str

    The value of the SDK API Key

    description str

    Description of the SDK API Key

    env_id str

    Environment Identifier

    expired_at int

    Expiration datetime of the SDK API Key

    identifier str

    Identifier of the SDK API Key

    name str

    Name of the SDK API Key

    org_id str

    Organization Identifier

    project_id str

    Project Identifier

    type str

    Type of SDK. Valid values are Server or Client.

    apiKey String

    The value of the SDK API Key

    description String

    Description of the SDK API Key

    envId String

    Environment Identifier

    expiredAt Number

    Expiration datetime of the SDK API Key

    identifier String

    Identifier of the SDK API Key

    name String

    Name of the SDK API Key

    orgId String

    Organization Identifier

    projectId String

    Project Identifier

    type String

    Type of SDK. Valid values are Server or Client.

    Package Details

    Repository
    harness lbrlabs/pulumi-harness
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the harness Terraform Provider.

    harness logo
    Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs