grafana.k6.ProjectAllowedLoadZones
Manages allowed private load zones for a k6 project.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as grafana from "@pulumiverse/grafana";
const testProjectAllowedLoadZones = new grafana.k6.Project("test_project_allowed_load_zones", {name: "Terraform Project Test Allowed Load Zones"});
const testAllowedZones = new grafana.k6.ProjectAllowedLoadZones("test_allowed_zones", {
projectId: testProjectAllowedLoadZones.id,
allowedLoadZones: [
"my-load-zone-1",
"other-load-zone",
],
});
import pulumi
import pulumiverse_grafana as grafana
test_project_allowed_load_zones = grafana.k6.Project("test_project_allowed_load_zones", name="Terraform Project Test Allowed Load Zones")
test_allowed_zones = grafana.k6.ProjectAllowedLoadZones("test_allowed_zones",
project_id=test_project_allowed_load_zones.id,
allowed_load_zones=[
"my-load-zone-1",
"other-load-zone",
])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-grafana/sdk/v2/go/grafana/k6"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
testProjectAllowedLoadZones, err := k6.NewProject(ctx, "test_project_allowed_load_zones", &k6.ProjectArgs{
Name: pulumi.String("Terraform Project Test Allowed Load Zones"),
})
if err != nil {
return err
}
_, err = k6.NewProjectAllowedLoadZones(ctx, "test_allowed_zones", &k6.ProjectAllowedLoadZonesArgs{
ProjectId: testProjectAllowedLoadZones.ID(),
AllowedLoadZones: pulumi.StringArray{
pulumi.String("my-load-zone-1"),
pulumi.String("other-load-zone"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Grafana = Pulumiverse.Grafana;
return await Deployment.RunAsync(() =>
{
var testProjectAllowedLoadZones = new Grafana.K6.Project("test_project_allowed_load_zones", new()
{
Name = "Terraform Project Test Allowed Load Zones",
});
var testAllowedZones = new Grafana.K6.ProjectAllowedLoadZones("test_allowed_zones", new()
{
ProjectId = testProjectAllowedLoadZones.Id,
AllowedLoadZones = new[]
{
"my-load-zone-1",
"other-load-zone",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.grafana.k6.Project;
import com.pulumi.grafana.k6.ProjectArgs;
import com.pulumi.grafana.k6.ProjectAllowedLoadZones;
import com.pulumi.grafana.k6.ProjectAllowedLoadZonesArgs;
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 testProjectAllowedLoadZones = new Project("testProjectAllowedLoadZones", ProjectArgs.builder()
.name("Terraform Project Test Allowed Load Zones")
.build());
var testAllowedZones = new ProjectAllowedLoadZones("testAllowedZones", ProjectAllowedLoadZonesArgs.builder()
.projectId(testProjectAllowedLoadZones.id())
.allowedLoadZones(
"my-load-zone-1",
"other-load-zone")
.build());
}
}
resources:
testProjectAllowedLoadZones:
type: grafana:k6:Project
name: test_project_allowed_load_zones
properties:
name: Terraform Project Test Allowed Load Zones
testAllowedZones:
type: grafana:k6:ProjectAllowedLoadZones
name: test_allowed_zones
properties:
projectId: ${testProjectAllowedLoadZones.id}
allowedLoadZones:
- my-load-zone-1
- other-load-zone
Create ProjectAllowedLoadZones Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ProjectAllowedLoadZones(name: string, args: ProjectAllowedLoadZonesArgs, opts?: CustomResourceOptions);@overload
def ProjectAllowedLoadZones(resource_name: str,
args: ProjectAllowedLoadZonesArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ProjectAllowedLoadZones(resource_name: str,
opts: Optional[ResourceOptions] = None,
allowed_load_zones: Optional[Sequence[str]] = None,
project_id: Optional[str] = None)func NewProjectAllowedLoadZones(ctx *Context, name string, args ProjectAllowedLoadZonesArgs, opts ...ResourceOption) (*ProjectAllowedLoadZones, error)public ProjectAllowedLoadZones(string name, ProjectAllowedLoadZonesArgs args, CustomResourceOptions? opts = null)
public ProjectAllowedLoadZones(String name, ProjectAllowedLoadZonesArgs args)
public ProjectAllowedLoadZones(String name, ProjectAllowedLoadZonesArgs args, CustomResourceOptions options)
type: grafana:k6:ProjectAllowedLoadZones
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 ProjectAllowedLoadZonesArgs
- 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 ProjectAllowedLoadZonesArgs
- 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 ProjectAllowedLoadZonesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProjectAllowedLoadZonesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProjectAllowedLoadZonesArgs
- 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 projectAllowedLoadZonesResource = new Grafana.K6.ProjectAllowedLoadZones("projectAllowedLoadZonesResource", new()
{
AllowedLoadZones = new[]
{
"string",
},
ProjectId = "string",
});
example, err := k6.NewProjectAllowedLoadZones(ctx, "projectAllowedLoadZonesResource", &k6.ProjectAllowedLoadZonesArgs{
AllowedLoadZones: pulumi.StringArray{
pulumi.String("string"),
},
ProjectId: pulumi.String("string"),
})
var projectAllowedLoadZonesResource = new ProjectAllowedLoadZones("projectAllowedLoadZonesResource", ProjectAllowedLoadZonesArgs.builder()
.allowedLoadZones("string")
.projectId("string")
.build());
project_allowed_load_zones_resource = grafana.k6.ProjectAllowedLoadZones("projectAllowedLoadZonesResource",
allowed_load_zones=["string"],
project_id="string")
const projectAllowedLoadZonesResource = new grafana.k6.ProjectAllowedLoadZones("projectAllowedLoadZonesResource", {
allowedLoadZones: ["string"],
projectId: "string",
});
type: grafana:k6:ProjectAllowedLoadZones
properties:
allowedLoadZones:
- string
projectId: string
ProjectAllowedLoadZones 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 ProjectAllowedLoadZones resource accepts the following input properties:
- Allowed
Load List<string>Zones - List of allowed private k6 load zone IDs for this project.
- Project
Id string - The identifier of the project to manage private allowed load zones for.
- Allowed
Load []stringZones - List of allowed private k6 load zone IDs for this project.
- Project
Id string - The identifier of the project to manage private allowed load zones for.
- allowed
Load List<String>Zones - List of allowed private k6 load zone IDs for this project.
- project
Id String - The identifier of the project to manage private allowed load zones for.
- allowed
Load string[]Zones - List of allowed private k6 load zone IDs for this project.
- project
Id string - The identifier of the project to manage private allowed load zones for.
- allowed_
load_ Sequence[str]zones - List of allowed private k6 load zone IDs for this project.
- project_
id str - The identifier of the project to manage private allowed load zones for.
- allowed
Load List<String>Zones - List of allowed private k6 load zone IDs for this project.
- project
Id String - The identifier of the project to manage private allowed load zones for.
Outputs
All input properties are implicitly available as output properties. Additionally, the ProjectAllowedLoadZones 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 ProjectAllowedLoadZones Resource
Get an existing ProjectAllowedLoadZones 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?: ProjectAllowedLoadZonesState, opts?: CustomResourceOptions): ProjectAllowedLoadZones@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allowed_load_zones: Optional[Sequence[str]] = None,
project_id: Optional[str] = None) -> ProjectAllowedLoadZonesfunc GetProjectAllowedLoadZones(ctx *Context, name string, id IDInput, state *ProjectAllowedLoadZonesState, opts ...ResourceOption) (*ProjectAllowedLoadZones, error)public static ProjectAllowedLoadZones Get(string name, Input<string> id, ProjectAllowedLoadZonesState? state, CustomResourceOptions? opts = null)public static ProjectAllowedLoadZones get(String name, Output<String> id, ProjectAllowedLoadZonesState state, CustomResourceOptions options)resources: _: type: grafana:k6:ProjectAllowedLoadZones 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.
- Allowed
Load List<string>Zones - List of allowed private k6 load zone IDs for this project.
- Project
Id string - The identifier of the project to manage private allowed load zones for.
- Allowed
Load []stringZones - List of allowed private k6 load zone IDs for this project.
- Project
Id string - The identifier of the project to manage private allowed load zones for.
- allowed
Load List<String>Zones - List of allowed private k6 load zone IDs for this project.
- project
Id String - The identifier of the project to manage private allowed load zones for.
- allowed
Load string[]Zones - List of allowed private k6 load zone IDs for this project.
- project
Id string - The identifier of the project to manage private allowed load zones for.
- allowed_
load_ Sequence[str]zones - List of allowed private k6 load zone IDs for this project.
- project_
id str - The identifier of the project to manage private allowed load zones for.
- allowed
Load List<String>Zones - List of allowed private k6 load zone IDs for this project.
- project
Id String - The identifier of the project to manage private allowed load zones for.
Import
$ pulumi import grafana:k6/projectAllowedLoadZones:ProjectAllowedLoadZones name "{{ project_id }}"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- grafana pulumiverse/pulumi-grafana
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
grafanaTerraform Provider.
