checkly.PrivateLocation
Explore with Pulumi AI
Example Usage
using Pulumi;
using Checkly = Pulumi.Checkly;
class MyStack : Stack
{
public MyStack()
{
// Simple Private Location example
var location = new Checkly.PrivateLocation("location", new Checkly.PrivateLocationArgs
{
SlugName = "new-private-location",
});
}
}
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.NewPrivateLocation(ctx, "location", &checkly.PrivateLocationArgs{
SlugName: pulumi.String("new-private-location"),
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_checkly as checkly
# Simple Private Location example
location = checkly.PrivateLocation("location", slug_name="new-private-location")
import * as pulumi from "@pulumi/pulumi";
import * as checkly from "@pulumi/checkly";
// Simple Private Location example
const location = new checkly.PrivateLocation("location", {
slugName: "new-private-location",
});
Coming soon!
Create PrivateLocation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PrivateLocation(name: string, args: PrivateLocationArgs, opts?: CustomResourceOptions);
@overload
def PrivateLocation(resource_name: str,
args: PrivateLocationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PrivateLocation(resource_name: str,
opts: Optional[ResourceOptions] = None,
slug_name: Optional[str] = None,
icon: Optional[str] = None,
name: Optional[str] = None)
func NewPrivateLocation(ctx *Context, name string, args PrivateLocationArgs, opts ...ResourceOption) (*PrivateLocation, error)
public PrivateLocation(string name, PrivateLocationArgs args, CustomResourceOptions? opts = null)
public PrivateLocation(String name, PrivateLocationArgs args)
public PrivateLocation(String name, PrivateLocationArgs args, CustomResourceOptions options)
type: checkly:PrivateLocation
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 PrivateLocationArgs
- 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 PrivateLocationArgs
- 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 PrivateLocationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PrivateLocationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PrivateLocationArgs
- 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 privateLocationResource = new Checkly.PrivateLocation("privateLocationResource", new()
{
SlugName = "string",
Icon = "string",
Name = "string",
});
example, err := checkly.NewPrivateLocation(ctx, "privateLocationResource", &checkly.PrivateLocationArgs{
SlugName: pulumi.String("string"),
Icon: pulumi.String("string"),
Name: pulumi.String("string"),
})
var privateLocationResource = new PrivateLocation("privateLocationResource", PrivateLocationArgs.builder()
.slugName("string")
.icon("string")
.name("string")
.build());
private_location_resource = checkly.PrivateLocation("privateLocationResource",
slug_name="string",
icon="string",
name="string")
const privateLocationResource = new checkly.PrivateLocation("privateLocationResource", {
slugName: "string",
icon: "string",
name: "string",
});
type: checkly:PrivateLocation
properties:
icon: string
name: string
slugName: string
PrivateLocation 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 PrivateLocation resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the PrivateLocation resource produces the following output properties:
Look up Existing PrivateLocation Resource
Get an existing PrivateLocation 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?: PrivateLocationState, opts?: CustomResourceOptions): PrivateLocation
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
icon: Optional[str] = None,
keys: Optional[Sequence[str]] = None,
name: Optional[str] = None,
slug_name: Optional[str] = None) -> PrivateLocation
func GetPrivateLocation(ctx *Context, name string, id IDInput, state *PrivateLocationState, opts ...ResourceOption) (*PrivateLocation, error)
public static PrivateLocation Get(string name, Input<string> id, PrivateLocationState? state, CustomResourceOptions? opts = null)
public static PrivateLocation get(String name, Output<String> id, PrivateLocationState 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.