1. Packages
  2. Launch Darkly
  3. API Docs
  4. AccessToken
Launch Darkly v0.0.6 published on Sunday, Feb 19, 2023 by lbrlabs

launchdarkly.AccessToken

Explore with Pulumi AI

launchdarkly logo
Launch Darkly v0.0.6 published on Sunday, Feb 19, 2023 by lbrlabs

    Example Usage

    The resource must contain either a

    using System.Collections.Generic;
    using Pulumi;
    using Launchdarkly = Lbrlabs.PulumiPackage.Launchdarkly;
    
    return await Deployment.RunAsync(() => 
    {
        var readerToken = new Launchdarkly.AccessToken("readerToken", new()
        {
            Role = "reader",
        });
    
    });
    
    package main
    
    import (
    	"github.com/lbrlabs/pulumi-launchdarkly/sdk/go/launchdarkly"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := launchdarkly.NewAccessToken(ctx, "readerToken", &launchdarkly.AccessTokenArgs{
    			Role: pulumi.String("reader"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.launchdarkly.AccessToken;
    import com.pulumi.launchdarkly.AccessTokenArgs;
    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 readerToken = new AccessToken("readerToken", AccessTokenArgs.builder()        
                .role("reader")
                .build());
    
        }
    }
    
    import pulumi
    import lbrlabs_pulumi_launchdarkly as launchdarkly
    
    reader_token = launchdarkly.AccessToken("readerToken", role="reader")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as launchdarkly from "@lbrlabs/pulumi-launchdarkly";
    
    const readerToken = new launchdarkly.AccessToken("readerToken", {role: "reader"});
    
    resources:
      readerToken:
        type: launchdarkly:AccessToken
        properties:
          role: reader
    

    With a custom role

    using System.Collections.Generic;
    using Pulumi;
    using Launchdarkly = Lbrlabs.PulumiPackage.Launchdarkly;
    
    return await Deployment.RunAsync(() => 
    {
        var customRoleToken = new Launchdarkly.AccessToken("customRoleToken", new()
        {
            CustomRoles = new[]
            {
                "ops",
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/lbrlabs/pulumi-launchdarkly/sdk/go/launchdarkly"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := launchdarkly.NewAccessToken(ctx, "customRoleToken", &launchdarkly.AccessTokenArgs{
    			CustomRoles: pulumi.StringArray{
    				pulumi.String("ops"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.launchdarkly.AccessToken;
    import com.pulumi.launchdarkly.AccessTokenArgs;
    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 customRoleToken = new AccessToken("customRoleToken", AccessTokenArgs.builder()        
                .customRoles("ops")
                .build());
    
        }
    }
    
    import pulumi
    import lbrlabs_pulumi_launchdarkly as launchdarkly
    
    custom_role_token = launchdarkly.AccessToken("customRoleToken", custom_roles=["ops"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as launchdarkly from "@lbrlabs/pulumi-launchdarkly";
    
    const customRoleToken = new launchdarkly.AccessToken("customRoleToken", {customRoles: ["ops"]});
    
    resources:
      customRoleToken:
        type: launchdarkly:AccessToken
        properties:
          customRoles:
            - ops
    

    With an inline custom role (policy statements)

    using System.Collections.Generic;
    using Pulumi;
    using Launchdarkly = Lbrlabs.PulumiPackage.Launchdarkly;
    
    return await Deployment.RunAsync(() => 
    {
        var tokenWithPolicyStatements = new Launchdarkly.AccessToken("tokenWithPolicyStatements", new()
        {
            InlineRoles = new[]
            {
                new Launchdarkly.Inputs.AccessTokenInlineRoleArgs
                {
                    Actions = new[]
                    {
                        "*",
                    },
                    Effect = "deny",
                    Resources = new[]
                    {
                        "proj/*:env/production",
                    },
                },
            },
            ServiceToken = true,
        });
    
    });
    
    package main
    
    import (
    	"github.com/lbrlabs/pulumi-launchdarkly/sdk/go/launchdarkly"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := launchdarkly.NewAccessToken(ctx, "tokenWithPolicyStatements", &launchdarkly.AccessTokenArgs{
    			InlineRoles: launchdarkly.AccessTokenInlineRoleArray{
    				&launchdarkly.AccessTokenInlineRoleArgs{
    					Actions: pulumi.StringArray{
    						pulumi.String("*"),
    					},
    					Effect: pulumi.String("deny"),
    					Resources: pulumi.StringArray{
    						pulumi.String("proj/*:env/production"),
    					},
    				},
    			},
    			ServiceToken: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.launchdarkly.AccessToken;
    import com.pulumi.launchdarkly.AccessTokenArgs;
    import com.pulumi.launchdarkly.inputs.AccessTokenInlineRoleArgs;
    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 tokenWithPolicyStatements = new AccessToken("tokenWithPolicyStatements", AccessTokenArgs.builder()        
                .inlineRoles(AccessTokenInlineRoleArgs.builder()
                    .actions("*")
                    .effect("deny")
                    .resources("proj/*:env/production")
                    .build())
                .serviceToken(true)
                .build());
    
        }
    }
    
    import pulumi
    import lbrlabs_pulumi_launchdarkly as launchdarkly
    
    token_with_policy_statements = launchdarkly.AccessToken("tokenWithPolicyStatements",
        inline_roles=[launchdarkly.AccessTokenInlineRoleArgs(
            actions=["*"],
            effect="deny",
            resources=["proj/*:env/production"],
        )],
        service_token=True)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as launchdarkly from "@lbrlabs/pulumi-launchdarkly";
    
    const tokenWithPolicyStatements = new launchdarkly.AccessToken("tokenWithPolicyStatements", {
        inlineRoles: [{
            actions: ["*"],
            effect: "deny",
            resources: ["proj/*:env/production"],
        }],
        serviceToken: true,
    });
    
    resources:
      tokenWithPolicyStatements:
        type: launchdarkly:AccessToken
        properties:
          inlineRoles:
            - actions:
                - '*'
              effect: deny
              resources:
                - proj/*:env/production
          serviceToken: true
    

    Create AccessToken Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AccessToken(name: string, args?: AccessTokenArgs, opts?: CustomResourceOptions);
    @overload
    def AccessToken(resource_name: str,
                    args: Optional[AccessTokenArgs] = None,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def AccessToken(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    custom_roles: Optional[Sequence[str]] = None,
                    default_api_version: Optional[int] = None,
                    expire: Optional[int] = None,
                    inline_roles: Optional[Sequence[AccessTokenInlineRoleArgs]] = None,
                    name: Optional[str] = None,
                    policy_statements: Optional[Sequence[AccessTokenPolicyStatementArgs]] = None,
                    role: Optional[str] = None,
                    service_token: Optional[bool] = None)
    func NewAccessToken(ctx *Context, name string, args *AccessTokenArgs, opts ...ResourceOption) (*AccessToken, error)
    public AccessToken(string name, AccessTokenArgs? args = null, CustomResourceOptions? opts = null)
    public AccessToken(String name, AccessTokenArgs args)
    public AccessToken(String name, AccessTokenArgs args, CustomResourceOptions options)
    
    type: launchdarkly:AccessToken
    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 AccessTokenArgs
    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 AccessTokenArgs
    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 AccessTokenArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AccessTokenArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AccessTokenArgs
    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 accessTokenResource = new Launchdarkly.AccessToken("accessTokenResource", new()
    {
        CustomRoles = new[]
        {
            "string",
        },
        DefaultApiVersion = 0,
        InlineRoles = new[]
        {
            new Launchdarkly.Inputs.AccessTokenInlineRoleArgs
            {
                Effect = "string",
                Actions = new[]
                {
                    "string",
                },
                NotActions = new[]
                {
                    "string",
                },
                NotResources = new[]
                {
                    "string",
                },
                Resources = new[]
                {
                    "string",
                },
            },
        },
        Name = "string",
        Role = "string",
        ServiceToken = false,
    });
    
    example, err := launchdarkly.NewAccessToken(ctx, "accessTokenResource", &launchdarkly.AccessTokenArgs{
    	CustomRoles: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	DefaultApiVersion: pulumi.Int(0),
    	InlineRoles: launchdarkly.AccessTokenInlineRoleArray{
    		&launchdarkly.AccessTokenInlineRoleArgs{
    			Effect: pulumi.String("string"),
    			Actions: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			NotActions: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			NotResources: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Resources: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	Name:         pulumi.String("string"),
    	Role:         pulumi.String("string"),
    	ServiceToken: pulumi.Bool(false),
    })
    
    var accessTokenResource = new AccessToken("accessTokenResource", AccessTokenArgs.builder()
        .customRoles("string")
        .defaultApiVersion(0)
        .inlineRoles(AccessTokenInlineRoleArgs.builder()
            .effect("string")
            .actions("string")
            .notActions("string")
            .notResources("string")
            .resources("string")
            .build())
        .name("string")
        .role("string")
        .serviceToken(false)
        .build());
    
    access_token_resource = launchdarkly.AccessToken("accessTokenResource",
        custom_roles=["string"],
        default_api_version=0,
        inline_roles=[launchdarkly.AccessTokenInlineRoleArgs(
            effect="string",
            actions=["string"],
            not_actions=["string"],
            not_resources=["string"],
            resources=["string"],
        )],
        name="string",
        role="string",
        service_token=False)
    
    const accessTokenResource = new launchdarkly.AccessToken("accessTokenResource", {
        customRoles: ["string"],
        defaultApiVersion: 0,
        inlineRoles: [{
            effect: "string",
            actions: ["string"],
            notActions: ["string"],
            notResources: ["string"],
            resources: ["string"],
        }],
        name: "string",
        role: "string",
        serviceToken: false,
    });
    
    type: launchdarkly:AccessToken
    properties:
        customRoles:
            - string
        defaultApiVersion: 0
        inlineRoles:
            - actions:
                - string
              effect: string
              notActions:
                - string
              notResources:
                - string
              resources:
                - string
        name: string
        role: string
        serviceToken: false
    

    AccessToken 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 AccessToken resource accepts the following input properties:

    CustomRoles List<string>
    A list of custom role IDs to use as access limits for the access token
    DefaultApiVersion int
    The default API version for this token. Defaults to the latest API version. A change in this field will force the destruction of the existing token in state and the creation of a new one.
    Expire int
    An expiration time for the current token secret, expressed as a Unix epoch time. Replace the computed token secret with a new value. The expired secret will no longer be able to authorize usage of the LaunchDarkly API. This field argument is deprecated. Please update your config to remove expire to maintain compatibility with future versions.

    Deprecated: 'expire' is deprecated and will be removed in the next major release of the LaunchDarkly provider

    InlineRoles List<Lbrlabs.PulumiPackage.Launchdarkly.Inputs.AccessTokenInlineRole>
    An array of statements represented as config blocks with 3 attributes: effect, resources, actions. May be used in place of a built-in or custom role.
    Name string
    A human-friendly name for the access token.
    PolicyStatements List<Lbrlabs.PulumiPackage.Launchdarkly.Inputs.AccessTokenPolicyStatement>
    Define inline custom roles. An array of statements represented as config blocks with three attributes: effect, resources, actions. May be used in place of a built-in or custom role. May be specified more than once. This field argument is deprecated. Update your config to use inline_role to maintain compatibility with future versions.

    Deprecated: 'policy_statements' is deprecated in favor of 'inline_roles'. This field will be removed in the next major release of the LaunchDarkly provider

    Role string
    A built-in LaunchDarkly role. Can be reader, writer, or admin
    ServiceToken bool
    Whether the token will be a service token. A change in this field will force the destruction of the existing token and the creation of a new one.
    CustomRoles []string
    A list of custom role IDs to use as access limits for the access token
    DefaultApiVersion int
    The default API version for this token. Defaults to the latest API version. A change in this field will force the destruction of the existing token in state and the creation of a new one.
    Expire int
    An expiration time for the current token secret, expressed as a Unix epoch time. Replace the computed token secret with a new value. The expired secret will no longer be able to authorize usage of the LaunchDarkly API. This field argument is deprecated. Please update your config to remove expire to maintain compatibility with future versions.

    Deprecated: 'expire' is deprecated and will be removed in the next major release of the LaunchDarkly provider

    InlineRoles []AccessTokenInlineRoleArgs
    An array of statements represented as config blocks with 3 attributes: effect, resources, actions. May be used in place of a built-in or custom role.
    Name string
    A human-friendly name for the access token.
    PolicyStatements []AccessTokenPolicyStatementArgs
    Define inline custom roles. An array of statements represented as config blocks with three attributes: effect, resources, actions. May be used in place of a built-in or custom role. May be specified more than once. This field argument is deprecated. Update your config to use inline_role to maintain compatibility with future versions.

    Deprecated: 'policy_statements' is deprecated in favor of 'inline_roles'. This field will be removed in the next major release of the LaunchDarkly provider

    Role string
    A built-in LaunchDarkly role. Can be reader, writer, or admin
    ServiceToken bool
    Whether the token will be a service token. A change in this field will force the destruction of the existing token and the creation of a new one.
    customRoles List<String>
    A list of custom role IDs to use as access limits for the access token
    defaultApiVersion Integer
    The default API version for this token. Defaults to the latest API version. A change in this field will force the destruction of the existing token in state and the creation of a new one.
    expire Integer
    An expiration time for the current token secret, expressed as a Unix epoch time. Replace the computed token secret with a new value. The expired secret will no longer be able to authorize usage of the LaunchDarkly API. This field argument is deprecated. Please update your config to remove expire to maintain compatibility with future versions.

    Deprecated: 'expire' is deprecated and will be removed in the next major release of the LaunchDarkly provider

    inlineRoles List<AccessTokenInlineRole>
    An array of statements represented as config blocks with 3 attributes: effect, resources, actions. May be used in place of a built-in or custom role.
    name String
    A human-friendly name for the access token.
    policyStatements List<AccessTokenPolicyStatement>
    Define inline custom roles. An array of statements represented as config blocks with three attributes: effect, resources, actions. May be used in place of a built-in or custom role. May be specified more than once. This field argument is deprecated. Update your config to use inline_role to maintain compatibility with future versions.

    Deprecated: 'policy_statements' is deprecated in favor of 'inline_roles'. This field will be removed in the next major release of the LaunchDarkly provider

    role String
    A built-in LaunchDarkly role. Can be reader, writer, or admin
    serviceToken Boolean
    Whether the token will be a service token. A change in this field will force the destruction of the existing token and the creation of a new one.
    customRoles string[]
    A list of custom role IDs to use as access limits for the access token
    defaultApiVersion number
    The default API version for this token. Defaults to the latest API version. A change in this field will force the destruction of the existing token in state and the creation of a new one.
    expire number
    An expiration time for the current token secret, expressed as a Unix epoch time. Replace the computed token secret with a new value. The expired secret will no longer be able to authorize usage of the LaunchDarkly API. This field argument is deprecated. Please update your config to remove expire to maintain compatibility with future versions.

    Deprecated: 'expire' is deprecated and will be removed in the next major release of the LaunchDarkly provider

    inlineRoles AccessTokenInlineRole[]
    An array of statements represented as config blocks with 3 attributes: effect, resources, actions. May be used in place of a built-in or custom role.
    name string
    A human-friendly name for the access token.
    policyStatements AccessTokenPolicyStatement[]
    Define inline custom roles. An array of statements represented as config blocks with three attributes: effect, resources, actions. May be used in place of a built-in or custom role. May be specified more than once. This field argument is deprecated. Update your config to use inline_role to maintain compatibility with future versions.

    Deprecated: 'policy_statements' is deprecated in favor of 'inline_roles'. This field will be removed in the next major release of the LaunchDarkly provider

    role string
    A built-in LaunchDarkly role. Can be reader, writer, or admin
    serviceToken boolean
    Whether the token will be a service token. A change in this field will force the destruction of the existing token and the creation of a new one.
    custom_roles Sequence[str]
    A list of custom role IDs to use as access limits for the access token
    default_api_version int
    The default API version for this token. Defaults to the latest API version. A change in this field will force the destruction of the existing token in state and the creation of a new one.
    expire int
    An expiration time for the current token secret, expressed as a Unix epoch time. Replace the computed token secret with a new value. The expired secret will no longer be able to authorize usage of the LaunchDarkly API. This field argument is deprecated. Please update your config to remove expire to maintain compatibility with future versions.

    Deprecated: 'expire' is deprecated and will be removed in the next major release of the LaunchDarkly provider

    inline_roles Sequence[AccessTokenInlineRoleArgs]
    An array of statements represented as config blocks with 3 attributes: effect, resources, actions. May be used in place of a built-in or custom role.
    name str
    A human-friendly name for the access token.
    policy_statements Sequence[AccessTokenPolicyStatementArgs]
    Define inline custom roles. An array of statements represented as config blocks with three attributes: effect, resources, actions. May be used in place of a built-in or custom role. May be specified more than once. This field argument is deprecated. Update your config to use inline_role to maintain compatibility with future versions.

    Deprecated: 'policy_statements' is deprecated in favor of 'inline_roles'. This field will be removed in the next major release of the LaunchDarkly provider

    role str
    A built-in LaunchDarkly role. Can be reader, writer, or admin
    service_token bool
    Whether the token will be a service token. A change in this field will force the destruction of the existing token and the creation of a new one.
    customRoles List<String>
    A list of custom role IDs to use as access limits for the access token
    defaultApiVersion Number
    The default API version for this token. Defaults to the latest API version. A change in this field will force the destruction of the existing token in state and the creation of a new one.
    expire Number
    An expiration time for the current token secret, expressed as a Unix epoch time. Replace the computed token secret with a new value. The expired secret will no longer be able to authorize usage of the LaunchDarkly API. This field argument is deprecated. Please update your config to remove expire to maintain compatibility with future versions.

    Deprecated: 'expire' is deprecated and will be removed in the next major release of the LaunchDarkly provider

    inlineRoles List<Property Map>
    An array of statements represented as config blocks with 3 attributes: effect, resources, actions. May be used in place of a built-in or custom role.
    name String
    A human-friendly name for the access token.
    policyStatements List<Property Map>
    Define inline custom roles. An array of statements represented as config blocks with three attributes: effect, resources, actions. May be used in place of a built-in or custom role. May be specified more than once. This field argument is deprecated. Update your config to use inline_role to maintain compatibility with future versions.

    Deprecated: 'policy_statements' is deprecated in favor of 'inline_roles'. This field will be removed in the next major release of the LaunchDarkly provider

    role String
    A built-in LaunchDarkly role. Can be reader, writer, or admin
    serviceToken Boolean
    Whether the token will be a service token. A change in this field will force the destruction of the existing token and the creation of a new one.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Token string
    The access token used to authorize usage of the LaunchDarkly API.
    Id string
    The provider-assigned unique ID for this managed resource.
    Token string
    The access token used to authorize usage of the LaunchDarkly API.
    id String
    The provider-assigned unique ID for this managed resource.
    token String
    The access token used to authorize usage of the LaunchDarkly API.
    id string
    The provider-assigned unique ID for this managed resource.
    token string
    The access token used to authorize usage of the LaunchDarkly API.
    id str
    The provider-assigned unique ID for this managed resource.
    token str
    The access token used to authorize usage of the LaunchDarkly API.
    id String
    The provider-assigned unique ID for this managed resource.
    token String
    The access token used to authorize usage of the LaunchDarkly API.

    Look up Existing AccessToken Resource

    Get an existing AccessToken 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?: AccessTokenState, opts?: CustomResourceOptions): AccessToken
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            custom_roles: Optional[Sequence[str]] = None,
            default_api_version: Optional[int] = None,
            expire: Optional[int] = None,
            inline_roles: Optional[Sequence[AccessTokenInlineRoleArgs]] = None,
            name: Optional[str] = None,
            policy_statements: Optional[Sequence[AccessTokenPolicyStatementArgs]] = None,
            role: Optional[str] = None,
            service_token: Optional[bool] = None,
            token: Optional[str] = None) -> AccessToken
    func GetAccessToken(ctx *Context, name string, id IDInput, state *AccessTokenState, opts ...ResourceOption) (*AccessToken, error)
    public static AccessToken Get(string name, Input<string> id, AccessTokenState? state, CustomResourceOptions? opts = null)
    public static AccessToken get(String name, Output<String> id, AccessTokenState 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:
    CustomRoles List<string>
    A list of custom role IDs to use as access limits for the access token
    DefaultApiVersion int
    The default API version for this token. Defaults to the latest API version. A change in this field will force the destruction of the existing token in state and the creation of a new one.
    Expire int
    An expiration time for the current token secret, expressed as a Unix epoch time. Replace the computed token secret with a new value. The expired secret will no longer be able to authorize usage of the LaunchDarkly API. This field argument is deprecated. Please update your config to remove expire to maintain compatibility with future versions.

    Deprecated: 'expire' is deprecated and will be removed in the next major release of the LaunchDarkly provider

    InlineRoles List<Lbrlabs.PulumiPackage.Launchdarkly.Inputs.AccessTokenInlineRole>
    An array of statements represented as config blocks with 3 attributes: effect, resources, actions. May be used in place of a built-in or custom role.
    Name string
    A human-friendly name for the access token.
    PolicyStatements List<Lbrlabs.PulumiPackage.Launchdarkly.Inputs.AccessTokenPolicyStatement>
    Define inline custom roles. An array of statements represented as config blocks with three attributes: effect, resources, actions. May be used in place of a built-in or custom role. May be specified more than once. This field argument is deprecated. Update your config to use inline_role to maintain compatibility with future versions.

    Deprecated: 'policy_statements' is deprecated in favor of 'inline_roles'. This field will be removed in the next major release of the LaunchDarkly provider

    Role string
    A built-in LaunchDarkly role. Can be reader, writer, or admin
    ServiceToken bool
    Whether the token will be a service token. A change in this field will force the destruction of the existing token and the creation of a new one.
    Token string
    The access token used to authorize usage of the LaunchDarkly API.
    CustomRoles []string
    A list of custom role IDs to use as access limits for the access token
    DefaultApiVersion int
    The default API version for this token. Defaults to the latest API version. A change in this field will force the destruction of the existing token in state and the creation of a new one.
    Expire int
    An expiration time for the current token secret, expressed as a Unix epoch time. Replace the computed token secret with a new value. The expired secret will no longer be able to authorize usage of the LaunchDarkly API. This field argument is deprecated. Please update your config to remove expire to maintain compatibility with future versions.

    Deprecated: 'expire' is deprecated and will be removed in the next major release of the LaunchDarkly provider

    InlineRoles []AccessTokenInlineRoleArgs
    An array of statements represented as config blocks with 3 attributes: effect, resources, actions. May be used in place of a built-in or custom role.
    Name string
    A human-friendly name for the access token.
    PolicyStatements []AccessTokenPolicyStatementArgs
    Define inline custom roles. An array of statements represented as config blocks with three attributes: effect, resources, actions. May be used in place of a built-in or custom role. May be specified more than once. This field argument is deprecated. Update your config to use inline_role to maintain compatibility with future versions.

    Deprecated: 'policy_statements' is deprecated in favor of 'inline_roles'. This field will be removed in the next major release of the LaunchDarkly provider

    Role string
    A built-in LaunchDarkly role. Can be reader, writer, or admin
    ServiceToken bool
    Whether the token will be a service token. A change in this field will force the destruction of the existing token and the creation of a new one.
    Token string
    The access token used to authorize usage of the LaunchDarkly API.
    customRoles List<String>
    A list of custom role IDs to use as access limits for the access token
    defaultApiVersion Integer
    The default API version for this token. Defaults to the latest API version. A change in this field will force the destruction of the existing token in state and the creation of a new one.
    expire Integer
    An expiration time for the current token secret, expressed as a Unix epoch time. Replace the computed token secret with a new value. The expired secret will no longer be able to authorize usage of the LaunchDarkly API. This field argument is deprecated. Please update your config to remove expire to maintain compatibility with future versions.

    Deprecated: 'expire' is deprecated and will be removed in the next major release of the LaunchDarkly provider

    inlineRoles List<AccessTokenInlineRole>
    An array of statements represented as config blocks with 3 attributes: effect, resources, actions. May be used in place of a built-in or custom role.
    name String
    A human-friendly name for the access token.
    policyStatements List<AccessTokenPolicyStatement>
    Define inline custom roles. An array of statements represented as config blocks with three attributes: effect, resources, actions. May be used in place of a built-in or custom role. May be specified more than once. This field argument is deprecated. Update your config to use inline_role to maintain compatibility with future versions.

    Deprecated: 'policy_statements' is deprecated in favor of 'inline_roles'. This field will be removed in the next major release of the LaunchDarkly provider

    role String
    A built-in LaunchDarkly role. Can be reader, writer, or admin
    serviceToken Boolean
    Whether the token will be a service token. A change in this field will force the destruction of the existing token and the creation of a new one.
    token String
    The access token used to authorize usage of the LaunchDarkly API.
    customRoles string[]
    A list of custom role IDs to use as access limits for the access token
    defaultApiVersion number
    The default API version for this token. Defaults to the latest API version. A change in this field will force the destruction of the existing token in state and the creation of a new one.
    expire number
    An expiration time for the current token secret, expressed as a Unix epoch time. Replace the computed token secret with a new value. The expired secret will no longer be able to authorize usage of the LaunchDarkly API. This field argument is deprecated. Please update your config to remove expire to maintain compatibility with future versions.

    Deprecated: 'expire' is deprecated and will be removed in the next major release of the LaunchDarkly provider

    inlineRoles AccessTokenInlineRole[]
    An array of statements represented as config blocks with 3 attributes: effect, resources, actions. May be used in place of a built-in or custom role.
    name string
    A human-friendly name for the access token.
    policyStatements AccessTokenPolicyStatement[]
    Define inline custom roles. An array of statements represented as config blocks with three attributes: effect, resources, actions. May be used in place of a built-in or custom role. May be specified more than once. This field argument is deprecated. Update your config to use inline_role to maintain compatibility with future versions.

    Deprecated: 'policy_statements' is deprecated in favor of 'inline_roles'. This field will be removed in the next major release of the LaunchDarkly provider

    role string
    A built-in LaunchDarkly role. Can be reader, writer, or admin
    serviceToken boolean
    Whether the token will be a service token. A change in this field will force the destruction of the existing token and the creation of a new one.
    token string
    The access token used to authorize usage of the LaunchDarkly API.
    custom_roles Sequence[str]
    A list of custom role IDs to use as access limits for the access token
    default_api_version int
    The default API version for this token. Defaults to the latest API version. A change in this field will force the destruction of the existing token in state and the creation of a new one.
    expire int
    An expiration time for the current token secret, expressed as a Unix epoch time. Replace the computed token secret with a new value. The expired secret will no longer be able to authorize usage of the LaunchDarkly API. This field argument is deprecated. Please update your config to remove expire to maintain compatibility with future versions.

    Deprecated: 'expire' is deprecated and will be removed in the next major release of the LaunchDarkly provider

    inline_roles Sequence[AccessTokenInlineRoleArgs]
    An array of statements represented as config blocks with 3 attributes: effect, resources, actions. May be used in place of a built-in or custom role.
    name str
    A human-friendly name for the access token.
    policy_statements Sequence[AccessTokenPolicyStatementArgs]
    Define inline custom roles. An array of statements represented as config blocks with three attributes: effect, resources, actions. May be used in place of a built-in or custom role. May be specified more than once. This field argument is deprecated. Update your config to use inline_role to maintain compatibility with future versions.

    Deprecated: 'policy_statements' is deprecated in favor of 'inline_roles'. This field will be removed in the next major release of the LaunchDarkly provider

    role str
    A built-in LaunchDarkly role. Can be reader, writer, or admin
    service_token bool
    Whether the token will be a service token. A change in this field will force the destruction of the existing token and the creation of a new one.
    token str
    The access token used to authorize usage of the LaunchDarkly API.
    customRoles List<String>
    A list of custom role IDs to use as access limits for the access token
    defaultApiVersion Number
    The default API version for this token. Defaults to the latest API version. A change in this field will force the destruction of the existing token in state and the creation of a new one.
    expire Number
    An expiration time for the current token secret, expressed as a Unix epoch time. Replace the computed token secret with a new value. The expired secret will no longer be able to authorize usage of the LaunchDarkly API. This field argument is deprecated. Please update your config to remove expire to maintain compatibility with future versions.

    Deprecated: 'expire' is deprecated and will be removed in the next major release of the LaunchDarkly provider

    inlineRoles List<Property Map>
    An array of statements represented as config blocks with 3 attributes: effect, resources, actions. May be used in place of a built-in or custom role.
    name String
    A human-friendly name for the access token.
    policyStatements List<Property Map>
    Define inline custom roles. An array of statements represented as config blocks with three attributes: effect, resources, actions. May be used in place of a built-in or custom role. May be specified more than once. This field argument is deprecated. Update your config to use inline_role to maintain compatibility with future versions.

    Deprecated: 'policy_statements' is deprecated in favor of 'inline_roles'. This field will be removed in the next major release of the LaunchDarkly provider

    role String
    A built-in LaunchDarkly role. Can be reader, writer, or admin
    serviceToken Boolean
    Whether the token will be a service token. A change in this field will force the destruction of the existing token and the creation of a new one.
    token String
    The access token used to authorize usage of the LaunchDarkly API.

    Supporting Types

    AccessTokenInlineRole, AccessTokenInlineRoleArgs

    Effect string
    • Either allow or deny. This argument defines whether the statement allows or denies access to the named resources and actions.
    Actions List<string>
    The list of action specifiers defining the actions to which the statement applies.
    NotActions List<string>
    The list of action specifiers defining the actions to which the statement does not apply.
    NotResources List<string>
    • The list of resource specifiers defining the resources to which the statement does not apply.
    Resources List<string>
    • The list of resource specifiers defining the resources to which the statement applies.
    Effect string
    • Either allow or deny. This argument defines whether the statement allows or denies access to the named resources and actions.
    Actions []string
    The list of action specifiers defining the actions to which the statement applies.
    NotActions []string
    The list of action specifiers defining the actions to which the statement does not apply.
    NotResources []string
    • The list of resource specifiers defining the resources to which the statement does not apply.
    Resources []string
    • The list of resource specifiers defining the resources to which the statement applies.
    effect String
    • Either allow or deny. This argument defines whether the statement allows or denies access to the named resources and actions.
    actions List<String>
    The list of action specifiers defining the actions to which the statement applies.
    notActions List<String>
    The list of action specifiers defining the actions to which the statement does not apply.
    notResources List<String>
    • The list of resource specifiers defining the resources to which the statement does not apply.
    resources List<String>
    • The list of resource specifiers defining the resources to which the statement applies.
    effect string
    • Either allow or deny. This argument defines whether the statement allows or denies access to the named resources and actions.
    actions string[]
    The list of action specifiers defining the actions to which the statement applies.
    notActions string[]
    The list of action specifiers defining the actions to which the statement does not apply.
    notResources string[]
    • The list of resource specifiers defining the resources to which the statement does not apply.
    resources string[]
    • The list of resource specifiers defining the resources to which the statement applies.
    effect str
    • Either allow or deny. This argument defines whether the statement allows or denies access to the named resources and actions.
    actions Sequence[str]
    The list of action specifiers defining the actions to which the statement applies.
    not_actions Sequence[str]
    The list of action specifiers defining the actions to which the statement does not apply.
    not_resources Sequence[str]
    • The list of resource specifiers defining the resources to which the statement does not apply.
    resources Sequence[str]
    • The list of resource specifiers defining the resources to which the statement applies.
    effect String
    • Either allow or deny. This argument defines whether the statement allows or denies access to the named resources and actions.
    actions List<String>
    The list of action specifiers defining the actions to which the statement applies.
    notActions List<String>
    The list of action specifiers defining the actions to which the statement does not apply.
    notResources List<String>
    • The list of resource specifiers defining the resources to which the statement does not apply.
    resources List<String>
    • The list of resource specifiers defining the resources to which the statement applies.

    AccessTokenPolicyStatement, AccessTokenPolicyStatementArgs

    Effect string
    • Either allow or deny. This argument defines whether the statement allows or denies access to the named resources and actions.
    Actions List<string>
    The list of action specifiers defining the actions to which the statement applies.
    NotActions List<string>
    The list of action specifiers defining the actions to which the statement does not apply.
    NotResources List<string>
    • The list of resource specifiers defining the resources to which the statement does not apply.
    Resources List<string>
    • The list of resource specifiers defining the resources to which the statement applies.
    Effect string
    • Either allow or deny. This argument defines whether the statement allows or denies access to the named resources and actions.
    Actions []string
    The list of action specifiers defining the actions to which the statement applies.
    NotActions []string
    The list of action specifiers defining the actions to which the statement does not apply.
    NotResources []string
    • The list of resource specifiers defining the resources to which the statement does not apply.
    Resources []string
    • The list of resource specifiers defining the resources to which the statement applies.
    effect String
    • Either allow or deny. This argument defines whether the statement allows or denies access to the named resources and actions.
    actions List<String>
    The list of action specifiers defining the actions to which the statement applies.
    notActions List<String>
    The list of action specifiers defining the actions to which the statement does not apply.
    notResources List<String>
    • The list of resource specifiers defining the resources to which the statement does not apply.
    resources List<String>
    • The list of resource specifiers defining the resources to which the statement applies.
    effect string
    • Either allow or deny. This argument defines whether the statement allows or denies access to the named resources and actions.
    actions string[]
    The list of action specifiers defining the actions to which the statement applies.
    notActions string[]
    The list of action specifiers defining the actions to which the statement does not apply.
    notResources string[]
    • The list of resource specifiers defining the resources to which the statement does not apply.
    resources string[]
    • The list of resource specifiers defining the resources to which the statement applies.
    effect str
    • Either allow or deny. This argument defines whether the statement allows or denies access to the named resources and actions.
    actions Sequence[str]
    The list of action specifiers defining the actions to which the statement applies.
    not_actions Sequence[str]
    The list of action specifiers defining the actions to which the statement does not apply.
    not_resources Sequence[str]
    • The list of resource specifiers defining the resources to which the statement does not apply.
    resources Sequence[str]
    • The list of resource specifiers defining the resources to which the statement applies.
    effect String
    • Either allow or deny. This argument defines whether the statement allows or denies access to the named resources and actions.
    actions List<String>
    The list of action specifiers defining the actions to which the statement applies.
    notActions List<String>
    The list of action specifiers defining the actions to which the statement does not apply.
    notResources List<String>
    • The list of resource specifiers defining the resources to which the statement does not apply.
    resources List<String>
    • The list of resource specifiers defining the resources to which the statement applies.

    Package Details

    Repository
    launchdarkly lbrlabs/pulumi-launchdarkly
    License
    Notes
    This Pulumi package is based on the launchdarkly Terraform Provider.
    launchdarkly logo
    Launch Darkly v0.0.6 published on Sunday, Feb 19, 2023 by lbrlabs