lacework.AgentAccessToken
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as lacework from "@pulumi/lacework";
const k8s = new lacework.AgentAccessToken("k8s", {description: "k8s deployment for production env"});
import pulumi
import pulumi_lacework as lacework
k8s = lacework.AgentAccessToken("k8s", description="k8s deployment for production env")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/lacework/v2/lacework"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := lacework.NewAgentAccessToken(ctx, "k8s", &lacework.AgentAccessTokenArgs{
Description: pulumi.String("k8s deployment for production env"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Lacework = Pulumi.Lacework;
return await Deployment.RunAsync(() =>
{
var k8s = new Lacework.AgentAccessToken("k8s", new()
{
Description = "k8s deployment for production env",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.lacework.AgentAccessToken;
import com.pulumi.lacework.AgentAccessTokenArgs;
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 k8s = new AgentAccessToken("k8s", AgentAccessTokenArgs.builder()
.description("k8s deployment for production env")
.build());
}
}
resources:
k8s:
type: lacework:AgentAccessToken
properties:
description: k8s deployment for production env
Create AgentAccessToken Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AgentAccessToken(name: string, args?: AgentAccessTokenArgs, opts?: CustomResourceOptions);
@overload
def AgentAccessToken(resource_name: str,
args: Optional[AgentAccessTokenArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def AgentAccessToken(resource_name: str,
opts: Optional[ResourceOptions] = None,
agent_access_token_id: Optional[str] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
name: Optional[str] = None,
os: Optional[str] = None)
func NewAgentAccessToken(ctx *Context, name string, args *AgentAccessTokenArgs, opts ...ResourceOption) (*AgentAccessToken, error)
public AgentAccessToken(string name, AgentAccessTokenArgs? args = null, CustomResourceOptions? opts = null)
public AgentAccessToken(String name, AgentAccessTokenArgs args)
public AgentAccessToken(String name, AgentAccessTokenArgs args, CustomResourceOptions options)
type: lacework:AgentAccessToken
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 AgentAccessTokenArgs
- 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 AgentAccessTokenArgs
- 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 AgentAccessTokenArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AgentAccessTokenArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AgentAccessTokenArgs
- 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 agentAccessTokenResource = new Lacework.AgentAccessToken("agentAccessTokenResource", new()
{
AgentAccessTokenId = "string",
Description = "string",
Enabled = false,
Name = "string",
Os = "string",
});
example, err := lacework.NewAgentAccessToken(ctx, "agentAccessTokenResource", &lacework.AgentAccessTokenArgs{
AgentAccessTokenId: pulumi.String("string"),
Description: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Name: pulumi.String("string"),
Os: pulumi.String("string"),
})
var agentAccessTokenResource = new AgentAccessToken("agentAccessTokenResource", AgentAccessTokenArgs.builder()
.agentAccessTokenId("string")
.description("string")
.enabled(false)
.name("string")
.os("string")
.build());
agent_access_token_resource = lacework.AgentAccessToken("agentAccessTokenResource",
agent_access_token_id="string",
description="string",
enabled=False,
name="string",
os="string")
const agentAccessTokenResource = new lacework.AgentAccessToken("agentAccessTokenResource", {
agentAccessTokenId: "string",
description: "string",
enabled: false,
name: "string",
os: "string",
});
type: lacework:AgentAccessToken
properties:
agentAccessTokenId: string
description: string
enabled: false
name: string
os: string
AgentAccessToken Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AgentAccessToken resource accepts the following input properties:
- Agent
Access stringToken Id - Description string
- The agent access token description.
- Enabled bool
- The state of the integration. Defaults to
true
. - Name string
- The agent access token name.
- Os string
- Agent
Access stringToken Id - Description string
- The agent access token description.
- Enabled bool
- The state of the integration. Defaults to
true
. - Name string
- The agent access token name.
- Os string
- agent
Access StringToken Id - description String
- The agent access token description.
- enabled Boolean
- The state of the integration. Defaults to
true
. - name String
- The agent access token name.
- os String
- agent
Access stringToken Id - description string
- The agent access token description.
- enabled boolean
- The state of the integration. Defaults to
true
. - name string
- The agent access token name.
- os string
- agent_
access_ strtoken_ id - description str
- The agent access token description.
- enabled bool
- The state of the integration. Defaults to
true
. - name str
- The agent access token name.
- os str
- agent
Access StringToken Id - description String
- The agent access token description.
- enabled Boolean
- The state of the integration. Defaults to
true
. - name String
- The agent access token name.
- os String
Outputs
All input properties are implicitly available as output properties. Additionally, the AgentAccessToken resource produces the following output properties:
- Created
Time string - Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated stringTime - Token string
- The agent access token.
- Version string
- Created
Time string - Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated stringTime - Token string
- The agent access token.
- Version string
- created
Time String - id String
- The provider-assigned unique ID for this managed resource.
- last
Updated StringTime - token String
- The agent access token.
- version String
- created
Time string - id string
- The provider-assigned unique ID for this managed resource.
- last
Updated stringTime - token string
- The agent access token.
- version string
- created_
time str - id str
- The provider-assigned unique ID for this managed resource.
- last_
updated_ strtime - token str
- The agent access token.
- version str
- created
Time String - id String
- The provider-assigned unique ID for this managed resource.
- last
Updated StringTime - token String
- The agent access token.
- version String
Look up Existing AgentAccessToken Resource
Get an existing AgentAccessToken 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?: AgentAccessTokenState, opts?: CustomResourceOptions): AgentAccessToken
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
agent_access_token_id: Optional[str] = None,
created_time: Optional[str] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
last_updated_time: Optional[str] = None,
name: Optional[str] = None,
os: Optional[str] = None,
token: Optional[str] = None,
version: Optional[str] = None) -> AgentAccessToken
func GetAgentAccessToken(ctx *Context, name string, id IDInput, state *AgentAccessTokenState, opts ...ResourceOption) (*AgentAccessToken, error)
public static AgentAccessToken Get(string name, Input<string> id, AgentAccessTokenState? state, CustomResourceOptions? opts = null)
public static AgentAccessToken get(String name, Output<String> id, AgentAccessTokenState state, CustomResourceOptions options)
resources: _: type: lacework:AgentAccessToken get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Agent
Access stringToken Id - Created
Time string - Description string
- The agent access token description.
- Enabled bool
- The state of the integration. Defaults to
true
. - Last
Updated stringTime - Name string
- The agent access token name.
- Os string
- Token string
- The agent access token.
- Version string
- Agent
Access stringToken Id - Created
Time string - Description string
- The agent access token description.
- Enabled bool
- The state of the integration. Defaults to
true
. - Last
Updated stringTime - Name string
- The agent access token name.
- Os string
- Token string
- The agent access token.
- Version string
- agent
Access StringToken Id - created
Time String - description String
- The agent access token description.
- enabled Boolean
- The state of the integration. Defaults to
true
. - last
Updated StringTime - name String
- The agent access token name.
- os String
- token String
- The agent access token.
- version String
- agent
Access stringToken Id - created
Time string - description string
- The agent access token description.
- enabled boolean
- The state of the integration. Defaults to
true
. - last
Updated stringTime - name string
- The agent access token name.
- os string
- token string
- The agent access token.
- version string
- agent_
access_ strtoken_ id - created_
time str - description str
- The agent access token description.
- enabled bool
- The state of the integration. Defaults to
true
. - last_
updated_ strtime - name str
- The agent access token name.
- os str
- token str
- The agent access token.
- version str
- agent
Access StringToken Id - created
Time String - description String
- The agent access token description.
- enabled Boolean
- The state of the integration. Defaults to
true
. - last
Updated StringTime - name String
- The agent access token name.
- os String
- token String
- The agent access token.
- version String
Import
A Lacework agent access token can be imported using the token itself, e.g.
$ pulumi import lacework:index/agentAccessToken:AgentAccessToken k8s YourAgentToken
-> Note: To list all agent access tokens in your Lacework account, use the
Lacework CLI command lacework agent token list
. To install this tool follow
this documentation.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- lacework lacework/terraform-provider-lacework
- License
- Notes
- This Pulumi package is based on the
lacework
Terraform Provider.