Checkly v1.1.4 published on Thursday, Mar 9, 2023 by checkly
checkly.EnvironmentVariable
Explore with Pulumi AI
Example Usage
using Pulumi;
using Checkly = Pulumi.Checkly;
class MyStack : Stack
{
public MyStack()
{
// Simple Enviroment Variable example
var variable1 = new Checkly.EnvironmentVariable("variable1", new Checkly.EnvironmentVariableArgs
{
Key = "API_KEY",
Locked = true,
Value = "loZd9hOGHDUrGvmW",
});
var variable2 = new Checkly.EnvironmentVariable("variable2", new Checkly.EnvironmentVariableArgs
{
Key = "API_URL",
Value = "http://localhost:3000",
});
}
}
package main
import (
"github.com/checkly/pulumi-checkly/sdk/go/checkly"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := checkly.NewEnvironmentVariable(ctx, "variable1", &checkly.EnvironmentVariableArgs{
Key: pulumi.String("API_KEY"),
Locked: pulumi.Bool(true),
Value: pulumi.String("loZd9hOGHDUrGvmW"),
})
if err != nil {
return err
}
_, err = checkly.NewEnvironmentVariable(ctx, "variable2", &checkly.EnvironmentVariableArgs{
Key: pulumi.String("API_URL"),
Value: pulumi.String("http://localhost:3000"),
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_checkly as checkly
# Simple Enviroment Variable example
variable1 = checkly.EnvironmentVariable("variable1",
key="API_KEY",
locked=True,
value="loZd9hOGHDUrGvmW")
variable2 = checkly.EnvironmentVariable("variable2",
key="API_URL",
value="http://localhost:3000")
import * as pulumi from "@pulumi/pulumi";
import * as checkly from "@pulumi/checkly";
// Simple Enviroment Variable example
const variable1 = new checkly.EnvironmentVariable("variable_1", {
key: "API_KEY",
locked: true,
value: "loZd9hOGHDUrGvmW",
});
const variable2 = new checkly.EnvironmentVariable("variable_2", {
key: "API_URL",
value: "http://localhost:3000",
});
Coming soon!
Create EnvironmentVariable Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EnvironmentVariable(name: string, args: EnvironmentVariableArgs, opts?: CustomResourceOptions);
@overload
def EnvironmentVariable(resource_name: str,
args: EnvironmentVariableArgs,
opts: Optional[ResourceOptions] = None)
@overload
def EnvironmentVariable(resource_name: str,
opts: Optional[ResourceOptions] = None,
key: Optional[str] = None,
value: Optional[str] = None,
locked: Optional[bool] = None)
func NewEnvironmentVariable(ctx *Context, name string, args EnvironmentVariableArgs, opts ...ResourceOption) (*EnvironmentVariable, error)
public EnvironmentVariable(string name, EnvironmentVariableArgs args, CustomResourceOptions? opts = null)
public EnvironmentVariable(String name, EnvironmentVariableArgs args)
public EnvironmentVariable(String name, EnvironmentVariableArgs args, CustomResourceOptions options)
type: checkly:EnvironmentVariable
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 EnvironmentVariableArgs
- 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 EnvironmentVariableArgs
- 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 EnvironmentVariableArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EnvironmentVariableArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EnvironmentVariableArgs
- 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 environmentVariableResource = new Checkly.EnvironmentVariable("environmentVariableResource", new()
{
Key = "string",
Value = "string",
Locked = false,
});
example, err := checkly.NewEnvironmentVariable(ctx, "environmentVariableResource", &checkly.EnvironmentVariableArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
Locked: pulumi.Bool(false),
})
var environmentVariableResource = new EnvironmentVariable("environmentVariableResource", EnvironmentVariableArgs.builder()
.key("string")
.value("string")
.locked(false)
.build());
environment_variable_resource = checkly.EnvironmentVariable("environmentVariableResource",
key="string",
value="string",
locked=False)
const environmentVariableResource = new checkly.EnvironmentVariable("environmentVariableResource", {
key: "string",
value: "string",
locked: false,
});
type: checkly:EnvironmentVariable
properties:
key: string
locked: false
value: string
EnvironmentVariable 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 EnvironmentVariable resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the EnvironmentVariable resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing EnvironmentVariable Resource
Get an existing EnvironmentVariable 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?: EnvironmentVariableState, opts?: CustomResourceOptions): EnvironmentVariable
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
key: Optional[str] = None,
locked: Optional[bool] = None,
value: Optional[str] = None) -> EnvironmentVariable
func GetEnvironmentVariable(ctx *Context, name string, id IDInput, state *EnvironmentVariableState, opts ...ResourceOption) (*EnvironmentVariable, error)
public static EnvironmentVariable Get(string name, Input<string> id, EnvironmentVariableState? state, CustomResourceOptions? opts = null)
public static EnvironmentVariable get(String name, Output<String> id, EnvironmentVariableState 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.
Package Details
- Repository
- checkly checkly/pulumi-checkly
- License
- MIT
- Notes
- This Pulumi package is based on the
checkly
Terraform Provider.