launchdarkly.AccessToken
Explore with Pulumi AI
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:
- Custom
Roles List<string> - A list of custom role IDs to use as access limits for the access token
- Default
Api intVersion - 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. - Inline
Roles List<Lbrlabs.Pulumi Package. Launchdarkly. Inputs. Access Token Inline Role> - 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.
- Policy
Statements List<Lbrlabs.Pulumi Package. Launchdarkly. Inputs. Access Token Policy Statement> - 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. - Role string
- A built-in LaunchDarkly role. Can be
reader
,writer
, oradmin
- 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.
- Custom
Roles []string - A list of custom role IDs to use as access limits for the access token
- Default
Api intVersion - 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. - Inline
Roles []AccessToken Inline Role Args - 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.
- Policy
Statements []AccessToken Policy Statement Args - 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. - Role string
- A built-in LaunchDarkly role. Can be
reader
,writer
, oradmin
- 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.
- custom
Roles List<String> - A list of custom role IDs to use as access limits for the access token
- default
Api IntegerVersion - 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. - inline
Roles List<AccessToken Inline Role> - 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.
- policy
Statements List<AccessToken Policy Statement> - 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. - role String
- A built-in LaunchDarkly role. Can be
reader
,writer
, oradmin
- service
Token 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 string[] - A list of custom role IDs to use as access limits for the access token
- default
Api numberVersion - 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. - inline
Roles AccessToken Inline Role[] - 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.
- policy
Statements AccessToken Policy Statement[] - 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. - role string
- A built-in LaunchDarkly role. Can be
reader
,writer
, oradmin
- service
Token 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_ intversion - 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. - inline_
roles Sequence[AccessToken Inline Role Args] - 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[AccessToken Policy Statement Args] - 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. - role str
- A built-in LaunchDarkly role. Can be
reader
,writer
, oradmin
- 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.
- custom
Roles List<String> - A list of custom role IDs to use as access limits for the access token
- default
Api NumberVersion - 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. - inline
Roles 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.
- policy
Statements 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. - role String
- A built-in LaunchDarkly role. Can be
reader
,writer
, oradmin
- service
Token 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:
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.
- Custom
Roles List<string> - A list of custom role IDs to use as access limits for the access token
- Default
Api intVersion - 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. - Inline
Roles List<Lbrlabs.Pulumi Package. Launchdarkly. Inputs. Access Token Inline Role> - 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.
- Policy
Statements List<Lbrlabs.Pulumi Package. Launchdarkly. Inputs. Access Token Policy Statement> - 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. - Role string
- A built-in LaunchDarkly role. Can be
reader
,writer
, oradmin
- 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 string
- The access token used to authorize usage of the LaunchDarkly API.
- Custom
Roles []string - A list of custom role IDs to use as access limits for the access token
- Default
Api intVersion - 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. - Inline
Roles []AccessToken Inline Role Args - 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.
- Policy
Statements []AccessToken Policy Statement Args - 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. - Role string
- A built-in LaunchDarkly role. Can be
reader
,writer
, oradmin
- 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 string
- The access token used to authorize usage of the LaunchDarkly API.
- custom
Roles List<String> - A list of custom role IDs to use as access limits for the access token
- default
Api IntegerVersion - 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. - inline
Roles List<AccessToken Inline Role> - 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.
- policy
Statements List<AccessToken Policy Statement> - 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. - role String
- A built-in LaunchDarkly role. Can be
reader
,writer
, oradmin
- service
Token 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 string[] - A list of custom role IDs to use as access limits for the access token
- default
Api numberVersion - 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. - inline
Roles AccessToken Inline Role[] - 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.
- policy
Statements AccessToken Policy Statement[] - 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. - role string
- A built-in LaunchDarkly role. Can be
reader
,writer
, oradmin
- service
Token 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_ intversion - 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. - inline_
roles Sequence[AccessToken Inline Role Args] - 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[AccessToken Policy Statement Args] - 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. - role str
- A built-in LaunchDarkly role. Can be
reader
,writer
, oradmin
- 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.
- custom
Roles List<String> - A list of custom role IDs to use as access limits for the access token
- default
Api NumberVersion - 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. - inline
Roles 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.
- policy
Statements 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. - role String
- A built-in LaunchDarkly role. Can be
reader
,writer
, oradmin
- service
Token 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
ordeny
. This argument defines whether the statement allows or denies access to the named resources and actions.
- Either
- Actions List<string>
- The list of action specifiers defining the actions to which the statement applies.
- Not
Actions List<string> - The list of action specifiers defining the actions to which the statement does not apply.
- Not
Resources 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
ordeny
. This argument defines whether the statement allows or denies access to the named resources and actions.
- Either
- Actions []string
- The list of action specifiers defining the actions to which the statement applies.
- Not
Actions []string - The list of action specifiers defining the actions to which the statement does not apply.
- Not
Resources []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
ordeny
. This argument defines whether the statement allows or denies access to the named resources and actions.
- Either
- actions List<String>
- The list of action specifiers defining the actions to which the statement applies.
- not
Actions List<String> - The list of action specifiers defining the actions to which the statement does not apply.
- not
Resources 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
ordeny
. This argument defines whether the statement allows or denies access to the named resources and actions.
- Either
- actions string[]
- The list of action specifiers defining the actions to which the statement applies.
- not
Actions string[] - The list of action specifiers defining the actions to which the statement does not apply.
- not
Resources 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
ordeny
. This argument defines whether the statement allows or denies access to the named resources and actions.
- Either
- 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
ordeny
. This argument defines whether the statement allows or denies access to the named resources and actions.
- Either
- actions List<String>
- The list of action specifiers defining the actions to which the statement applies.
- not
Actions List<String> - The list of action specifiers defining the actions to which the statement does not apply.
- not
Resources 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
ordeny
. This argument defines whether the statement allows or denies access to the named resources and actions.
- Either
- Actions List<string>
- The list of action specifiers defining the actions to which the statement applies.
- Not
Actions List<string> - The list of action specifiers defining the actions to which the statement does not apply.
- Not
Resources 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
ordeny
. This argument defines whether the statement allows or denies access to the named resources and actions.
- Either
- Actions []string
- The list of action specifiers defining the actions to which the statement applies.
- Not
Actions []string - The list of action specifiers defining the actions to which the statement does not apply.
- Not
Resources []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
ordeny
. This argument defines whether the statement allows or denies access to the named resources and actions.
- Either
- actions List<String>
- The list of action specifiers defining the actions to which the statement applies.
- not
Actions List<String> - The list of action specifiers defining the actions to which the statement does not apply.
- not
Resources 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
ordeny
. This argument defines whether the statement allows or denies access to the named resources and actions.
- Either
- actions string[]
- The list of action specifiers defining the actions to which the statement applies.
- not
Actions string[] - The list of action specifiers defining the actions to which the statement does not apply.
- not
Resources 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
ordeny
. This argument defines whether the statement allows or denies access to the named resources and actions.
- Either
- 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
ordeny
. This argument defines whether the statement allows or denies access to the named resources and actions.
- Either
- actions List<String>
- The list of action specifiers defining the actions to which the statement applies.
- not
Actions List<String> - The list of action specifiers defining the actions to which the statement does not apply.
- not
Resources 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.