gcore.FaasNamespace
Explore with Pulumi AI
Represents FaaS namespace
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";
const ns = new gcore.FaasNamespace("ns", {
description: "test description",
envs: {
BIG_ENV: "EXAMPLE",
},
projectId: 1,
regionId: 1,
});
import pulumi
import pulumi_gcore as gcore
ns = gcore.FaasNamespace("ns",
description="test description",
envs={
"BIG_ENV": "EXAMPLE",
},
project_id=1,
region_id=1)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/gcore"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := gcore.NewFaasNamespace(ctx, "ns", &gcore.FaasNamespaceArgs{
Description: pulumi.String("test description"),
Envs: pulumi.StringMap{
"BIG_ENV": pulumi.String("EXAMPLE"),
},
ProjectId: pulumi.Float64(1),
RegionId: pulumi.Float64(1),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;
return await Deployment.RunAsync(() =>
{
var ns = new Gcore.FaasNamespace("ns", new()
{
Description = "test description",
Envs =
{
{ "BIG_ENV", "EXAMPLE" },
},
ProjectId = 1,
RegionId = 1,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.FaasNamespace;
import com.pulumi.gcore.FaasNamespaceArgs;
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 ns = new FaasNamespace("ns", FaasNamespaceArgs.builder()
.description("test description")
.envs(Map.of("BIG_ENV", "EXAMPLE"))
.projectId(1)
.regionId(1)
.build());
}
}
resources:
ns:
type: gcore:FaasNamespace
properties:
description: test description
envs:
BIG_ENV: EXAMPLE
projectId: 1
regionId: 1
Create FaasNamespace Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FaasNamespace(name: string, args?: FaasNamespaceArgs, opts?: CustomResourceOptions);
@overload
def FaasNamespace(resource_name: str,
args: Optional[FaasNamespaceArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def FaasNamespace(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
envs: Optional[Mapping[str, str]] = None,
faas_namespace_id: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[float] = None,
project_name: Optional[str] = None,
region_id: Optional[float] = None,
region_name: Optional[str] = None)
func NewFaasNamespace(ctx *Context, name string, args *FaasNamespaceArgs, opts ...ResourceOption) (*FaasNamespace, error)
public FaasNamespace(string name, FaasNamespaceArgs? args = null, CustomResourceOptions? opts = null)
public FaasNamespace(String name, FaasNamespaceArgs args)
public FaasNamespace(String name, FaasNamespaceArgs args, CustomResourceOptions options)
type: gcore:FaasNamespace
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 FaasNamespaceArgs
- 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 FaasNamespaceArgs
- 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 FaasNamespaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FaasNamespaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FaasNamespaceArgs
- 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 faasNamespaceResource = new Gcore.FaasNamespace("faasNamespaceResource", new()
{
Description = "string",
Envs =
{
{ "string", "string" },
},
FaasNamespaceId = "string",
Name = "string",
ProjectId = 0,
ProjectName = "string",
RegionId = 0,
RegionName = "string",
});
example, err := gcore.NewFaasNamespace(ctx, "faasNamespaceResource", &gcore.FaasNamespaceArgs{
Description: pulumi.String("string"),
Envs: pulumi.StringMap{
"string": pulumi.String("string"),
},
FaasNamespaceId: pulumi.String("string"),
Name: pulumi.String("string"),
ProjectId: pulumi.Float64(0),
ProjectName: pulumi.String("string"),
RegionId: pulumi.Float64(0),
RegionName: pulumi.String("string"),
})
var faasNamespaceResource = new FaasNamespace("faasNamespaceResource", FaasNamespaceArgs.builder()
.description("string")
.envs(Map.of("string", "string"))
.faasNamespaceId("string")
.name("string")
.projectId(0)
.projectName("string")
.regionId(0)
.regionName("string")
.build());
faas_namespace_resource = gcore.FaasNamespace("faasNamespaceResource",
description="string",
envs={
"string": "string",
},
faas_namespace_id="string",
name="string",
project_id=0,
project_name="string",
region_id=0,
region_name="string")
const faasNamespaceResource = new gcore.FaasNamespace("faasNamespaceResource", {
description: "string",
envs: {
string: "string",
},
faasNamespaceId: "string",
name: "string",
projectId: 0,
projectName: "string",
regionId: 0,
regionName: "string",
});
type: gcore:FaasNamespace
properties:
description: string
envs:
string: string
faasNamespaceId: string
name: string
projectId: 0
projectName: string
regionId: 0
regionName: string
FaasNamespace 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 FaasNamespace resource accepts the following input properties:
- Description string
- Envs Dictionary<string, string>
- Faas
Namespace stringId - The ID of this resource.
- Name string
- Project
Id double - Project
Name string - Region
Id double - Region
Name string
- Description string
- Envs map[string]string
- Faas
Namespace stringId - The ID of this resource.
- Name string
- Project
Id float64 - Project
Name string - Region
Id float64 - Region
Name string
- description String
- envs Map<String,String>
- faas
Namespace StringId - The ID of this resource.
- name String
- project
Id Double - project
Name String - region
Id Double - region
Name String
- description string
- envs {[key: string]: string}
- faas
Namespace stringId - The ID of this resource.
- name string
- project
Id number - project
Name string - region
Id number - region
Name string
- description str
- envs Mapping[str, str]
- faas_
namespace_ strid - The ID of this resource.
- name str
- project_
id float - project_
name str - region_
id float - region_
name str
- description String
- envs Map<String>
- faas
Namespace StringId - The ID of this resource.
- name String
- project
Id Number - project
Name String - region
Id Number - region
Name String
Outputs
All input properties are implicitly available as output properties. Additionally, the FaasNamespace resource produces the following output properties:
- created_
at str - id str
- The provider-assigned unique ID for this managed resource.
- status str
Look up Existing FaasNamespace Resource
Get an existing FaasNamespace 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?: FaasNamespaceState, opts?: CustomResourceOptions): FaasNamespace
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
description: Optional[str] = None,
envs: Optional[Mapping[str, str]] = None,
faas_namespace_id: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[float] = None,
project_name: Optional[str] = None,
region_id: Optional[float] = None,
region_name: Optional[str] = None,
status: Optional[str] = None) -> FaasNamespace
func GetFaasNamespace(ctx *Context, name string, id IDInput, state *FaasNamespaceState, opts ...ResourceOption) (*FaasNamespace, error)
public static FaasNamespace Get(string name, Input<string> id, FaasNamespaceState? state, CustomResourceOptions? opts = null)
public static FaasNamespace get(String name, Output<String> id, FaasNamespaceState state, CustomResourceOptions options)
resources: _: type: gcore:FaasNamespace 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.
- Created
At string - Description string
- Envs Dictionary<string, string>
- Faas
Namespace stringId - The ID of this resource.
- Name string
- Project
Id double - Project
Name string - Region
Id double - Region
Name string - Status string
- Created
At string - Description string
- Envs map[string]string
- Faas
Namespace stringId - The ID of this resource.
- Name string
- Project
Id float64 - Project
Name string - Region
Id float64 - Region
Name string - Status string
- created
At String - description String
- envs Map<String,String>
- faas
Namespace StringId - The ID of this resource.
- name String
- project
Id Double - project
Name String - region
Id Double - region
Name String - status String
- created
At string - description string
- envs {[key: string]: string}
- faas
Namespace stringId - The ID of this resource.
- name string
- project
Id number - project
Name string - region
Id number - region
Name string - status string
- created_
at str - description str
- envs Mapping[str, str]
- faas_
namespace_ strid - The ID of this resource.
- name str
- project_
id float - project_
name str - region_
id float - region_
name str - status str
- created
At String - description String
- envs Map<String>
- faas
Namespace StringId - The ID of this resource.
- name String
- project
Id Number - project
Name String - region
Id Number - region
Name String - status String
Import
import using <project_id>:<region_id>:<namespace_name> format
$ pulumi import gcore:index/faasNamespace:FaasNamespace test 1:6:ns
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- gcore g-core/terraform-provider-gcore
- License
- Notes
- This Pulumi package is based on the
gcore
Terraform Provider.