cloudflare.WorkersForPlatformsNamespace
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleWorkersForPlatformsDispatchNamespace = new cloudflare.WorkersForPlatformsDispatchNamespace("example_workers_for_platforms_dispatch_namespace", {
    accountId: "023e105f4ecef8ad9ca31a8372d0c353",
    name: "my-dispatch-namespace",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_workers_for_platforms_dispatch_namespace = cloudflare.WorkersForPlatformsDispatchNamespace("example_workers_for_platforms_dispatch_namespace",
    account_id="023e105f4ecef8ad9ca31a8372d0c353",
    name="my-dispatch-namespace")
package main
import (
	"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudflare.NewWorkersForPlatformsDispatchNamespace(ctx, "example_workers_for_platforms_dispatch_namespace", &cloudflare.WorkersForPlatformsDispatchNamespaceArgs{
			AccountId: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
			Name:      pulumi.String("my-dispatch-namespace"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() => 
{
    var exampleWorkersForPlatformsDispatchNamespace = new Cloudflare.WorkersForPlatformsDispatchNamespace("example_workers_for_platforms_dispatch_namespace", new()
    {
        AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
        Name = "my-dispatch-namespace",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.WorkersForPlatformsDispatchNamespace;
import com.pulumi.cloudflare.WorkersForPlatformsDispatchNamespaceArgs;
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 exampleWorkersForPlatformsDispatchNamespace = new WorkersForPlatformsDispatchNamespace("exampleWorkersForPlatformsDispatchNamespace", WorkersForPlatformsDispatchNamespaceArgs.builder()
            .accountId("023e105f4ecef8ad9ca31a8372d0c353")
            .name("my-dispatch-namespace")
            .build());
    }
}
resources:
  exampleWorkersForPlatformsDispatchNamespace:
    type: cloudflare:WorkersForPlatformsDispatchNamespace
    name: example_workers_for_platforms_dispatch_namespace
    properties:
      accountId: 023e105f4ecef8ad9ca31a8372d0c353
      name: my-dispatch-namespace
Create WorkersForPlatformsNamespace Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WorkersForPlatformsNamespace(name: string, args: WorkersForPlatformsNamespaceArgs, opts?: CustomResourceOptions);@overload
def WorkersForPlatformsNamespace(resource_name: str,
                                 args: WorkersForPlatformsNamespaceArgs,
                                 opts: Optional[ResourceOptions] = None)
@overload
def WorkersForPlatformsNamespace(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 account_id: Optional[str] = None,
                                 name: Optional[str] = None)func NewWorkersForPlatformsNamespace(ctx *Context, name string, args WorkersForPlatformsNamespaceArgs, opts ...ResourceOption) (*WorkersForPlatformsNamespace, error)public WorkersForPlatformsNamespace(string name, WorkersForPlatformsNamespaceArgs args, CustomResourceOptions? opts = null)
public WorkersForPlatformsNamespace(String name, WorkersForPlatformsNamespaceArgs args)
public WorkersForPlatformsNamespace(String name, WorkersForPlatformsNamespaceArgs args, CustomResourceOptions options)
type: cloudflare:WorkersForPlatformsNamespace
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 WorkersForPlatformsNamespaceArgs
- 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 WorkersForPlatformsNamespaceArgs
- 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 WorkersForPlatformsNamespaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WorkersForPlatformsNamespaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WorkersForPlatformsNamespaceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
WorkersForPlatformsNamespace 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 WorkersForPlatformsNamespace resource accepts the following input properties:
- account_id str
- Identifier.
- name str
- The name of the dispatch namespace.
Outputs
All input properties are implicitly available as output properties. Additionally, the WorkersForPlatformsNamespace resource produces the following output properties:
- CreatedBy string
- Identifier.
- CreatedOn string
- When the script was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- ModifiedBy string
- Identifier.
- ModifiedOn string
- When the script was last modified.
- NamespaceId string
- API Resource UUID tag.
- NamespaceName string
- Name of the Workers for Platforms dispatch namespace.
- ScriptCount int
- The current number of scripts in this Dispatch Namespace.
- TrustedWorkers bool
- Whether the Workers in the namespace are executed in a "trusted" manner. When a Worker is trusted, it has access to the shared caches for the zone in the Cache API, and has access to the request.cfobject on incoming Requests. When a Worker is untrusted, caches are not shared across the zone, andrequest.cfis undefined. By default, Workers in a namespace are "untrusted".
- CreatedBy string
- Identifier.
- CreatedOn string
- When the script was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- ModifiedBy string
- Identifier.
- ModifiedOn string
- When the script was last modified.
- NamespaceId string
- API Resource UUID tag.
- NamespaceName string
- Name of the Workers for Platforms dispatch namespace.
- ScriptCount int
- The current number of scripts in this Dispatch Namespace.
- TrustedWorkers bool
- Whether the Workers in the namespace are executed in a "trusted" manner. When a Worker is trusted, it has access to the shared caches for the zone in the Cache API, and has access to the request.cfobject on incoming Requests. When a Worker is untrusted, caches are not shared across the zone, andrequest.cfis undefined. By default, Workers in a namespace are "untrusted".
- createdBy String
- Identifier.
- createdOn String
- When the script was created.
- id String
- The provider-assigned unique ID for this managed resource.
- modifiedBy String
- Identifier.
- modifiedOn String
- When the script was last modified.
- namespaceId String
- API Resource UUID tag.
- namespaceName String
- Name of the Workers for Platforms dispatch namespace.
- scriptCount Integer
- The current number of scripts in this Dispatch Namespace.
- trustedWorkers Boolean
- Whether the Workers in the namespace are executed in a "trusted" manner. When a Worker is trusted, it has access to the shared caches for the zone in the Cache API, and has access to the request.cfobject on incoming Requests. When a Worker is untrusted, caches are not shared across the zone, andrequest.cfis undefined. By default, Workers in a namespace are "untrusted".
- createdBy string
- Identifier.
- createdOn string
- When the script was created.
- id string
- The provider-assigned unique ID for this managed resource.
- modifiedBy string
- Identifier.
- modifiedOn string
- When the script was last modified.
- namespaceId string
- API Resource UUID tag.
- namespaceName string
- Name of the Workers for Platforms dispatch namespace.
- scriptCount number
- The current number of scripts in this Dispatch Namespace.
- trustedWorkers boolean
- Whether the Workers in the namespace are executed in a "trusted" manner. When a Worker is trusted, it has access to the shared caches for the zone in the Cache API, and has access to the request.cfobject on incoming Requests. When a Worker is untrusted, caches are not shared across the zone, andrequest.cfis undefined. By default, Workers in a namespace are "untrusted".
- created_by str
- Identifier.
- created_on str
- When the script was created.
- id str
- The provider-assigned unique ID for this managed resource.
- modified_by str
- Identifier.
- modified_on str
- When the script was last modified.
- namespace_id str
- API Resource UUID tag.
- namespace_name str
- Name of the Workers for Platforms dispatch namespace.
- script_count int
- The current number of scripts in this Dispatch Namespace.
- trusted_workers bool
- Whether the Workers in the namespace are executed in a "trusted" manner. When a Worker is trusted, it has access to the shared caches for the zone in the Cache API, and has access to the request.cfobject on incoming Requests. When a Worker is untrusted, caches are not shared across the zone, andrequest.cfis undefined. By default, Workers in a namespace are "untrusted".
- createdBy String
- Identifier.
- createdOn String
- When the script was created.
- id String
- The provider-assigned unique ID for this managed resource.
- modifiedBy String
- Identifier.
- modifiedOn String
- When the script was last modified.
- namespaceId String
- API Resource UUID tag.
- namespaceName String
- Name of the Workers for Platforms dispatch namespace.
- scriptCount Number
- The current number of scripts in this Dispatch Namespace.
- trustedWorkers Boolean
- Whether the Workers in the namespace are executed in a "trusted" manner. When a Worker is trusted, it has access to the shared caches for the zone in the Cache API, and has access to the request.cfobject on incoming Requests. When a Worker is untrusted, caches are not shared across the zone, andrequest.cfis undefined. By default, Workers in a namespace are "untrusted".
Look up Existing WorkersForPlatformsNamespace Resource
Get an existing WorkersForPlatformsNamespace 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?: WorkersForPlatformsNamespaceState, opts?: CustomResourceOptions): WorkersForPlatformsNamespace@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_id: Optional[str] = None,
        created_by: Optional[str] = None,
        created_on: Optional[str] = None,
        modified_by: Optional[str] = None,
        modified_on: Optional[str] = None,
        name: Optional[str] = None,
        namespace_id: Optional[str] = None,
        namespace_name: Optional[str] = None,
        script_count: Optional[int] = None,
        trusted_workers: Optional[bool] = None) -> WorkersForPlatformsNamespacefunc GetWorkersForPlatformsNamespace(ctx *Context, name string, id IDInput, state *WorkersForPlatformsNamespaceState, opts ...ResourceOption) (*WorkersForPlatformsNamespace, error)public static WorkersForPlatformsNamespace Get(string name, Input<string> id, WorkersForPlatformsNamespaceState? state, CustomResourceOptions? opts = null)public static WorkersForPlatformsNamespace get(String name, Output<String> id, WorkersForPlatformsNamespaceState state, CustomResourceOptions options)resources:  _:    type: cloudflare:WorkersForPlatformsNamespace    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.
- AccountId string
- Identifier.
- CreatedBy string
- Identifier.
- CreatedOn string
- When the script was created.
- ModifiedBy string
- Identifier.
- ModifiedOn string
- When the script was last modified.
- Name string
- The name of the dispatch namespace.
- NamespaceId string
- API Resource UUID tag.
- NamespaceName string
- Name of the Workers for Platforms dispatch namespace.
- ScriptCount int
- The current number of scripts in this Dispatch Namespace.
- TrustedWorkers bool
- Whether the Workers in the namespace are executed in a "trusted" manner. When a Worker is trusted, it has access to the shared caches for the zone in the Cache API, and has access to the request.cfobject on incoming Requests. When a Worker is untrusted, caches are not shared across the zone, andrequest.cfis undefined. By default, Workers in a namespace are "untrusted".
- AccountId string
- Identifier.
- CreatedBy string
- Identifier.
- CreatedOn string
- When the script was created.
- ModifiedBy string
- Identifier.
- ModifiedOn string
- When the script was last modified.
- Name string
- The name of the dispatch namespace.
- NamespaceId string
- API Resource UUID tag.
- NamespaceName string
- Name of the Workers for Platforms dispatch namespace.
- ScriptCount int
- The current number of scripts in this Dispatch Namespace.
- TrustedWorkers bool
- Whether the Workers in the namespace are executed in a "trusted" manner. When a Worker is trusted, it has access to the shared caches for the zone in the Cache API, and has access to the request.cfobject on incoming Requests. When a Worker is untrusted, caches are not shared across the zone, andrequest.cfis undefined. By default, Workers in a namespace are "untrusted".
- accountId String
- Identifier.
- createdBy String
- Identifier.
- createdOn String
- When the script was created.
- modifiedBy String
- Identifier.
- modifiedOn String
- When the script was last modified.
- name String
- The name of the dispatch namespace.
- namespaceId String
- API Resource UUID tag.
- namespaceName String
- Name of the Workers for Platforms dispatch namespace.
- scriptCount Integer
- The current number of scripts in this Dispatch Namespace.
- trustedWorkers Boolean
- Whether the Workers in the namespace are executed in a "trusted" manner. When a Worker is trusted, it has access to the shared caches for the zone in the Cache API, and has access to the request.cfobject on incoming Requests. When a Worker is untrusted, caches are not shared across the zone, andrequest.cfis undefined. By default, Workers in a namespace are "untrusted".
- accountId string
- Identifier.
- createdBy string
- Identifier.
- createdOn string
- When the script was created.
- modifiedBy string
- Identifier.
- modifiedOn string
- When the script was last modified.
- name string
- The name of the dispatch namespace.
- namespaceId string
- API Resource UUID tag.
- namespaceName string
- Name of the Workers for Platforms dispatch namespace.
- scriptCount number
- The current number of scripts in this Dispatch Namespace.
- trustedWorkers boolean
- Whether the Workers in the namespace are executed in a "trusted" manner. When a Worker is trusted, it has access to the shared caches for the zone in the Cache API, and has access to the request.cfobject on incoming Requests. When a Worker is untrusted, caches are not shared across the zone, andrequest.cfis undefined. By default, Workers in a namespace are "untrusted".
- account_id str
- Identifier.
- created_by str
- Identifier.
- created_on str
- When the script was created.
- modified_by str
- Identifier.
- modified_on str
- When the script was last modified.
- name str
- The name of the dispatch namespace.
- namespace_id str
- API Resource UUID tag.
- namespace_name str
- Name of the Workers for Platforms dispatch namespace.
- script_count int
- The current number of scripts in this Dispatch Namespace.
- trusted_workers bool
- Whether the Workers in the namespace are executed in a "trusted" manner. When a Worker is trusted, it has access to the shared caches for the zone in the Cache API, and has access to the request.cfobject on incoming Requests. When a Worker is untrusted, caches are not shared across the zone, andrequest.cfis undefined. By default, Workers in a namespace are "untrusted".
- accountId String
- Identifier.
- createdBy String
- Identifier.
- createdOn String
- When the script was created.
- modifiedBy String
- Identifier.
- modifiedOn String
- When the script was last modified.
- name String
- The name of the dispatch namespace.
- namespaceId String
- API Resource UUID tag.
- namespaceName String
- Name of the Workers for Platforms dispatch namespace.
- scriptCount Number
- The current number of scripts in this Dispatch Namespace.
- trustedWorkers Boolean
- Whether the Workers in the namespace are executed in a "trusted" manner. When a Worker is trusted, it has access to the shared caches for the zone in the Cache API, and has access to the request.cfobject on incoming Requests. When a Worker is untrusted, caches are not shared across the zone, andrequest.cfis undefined. By default, Workers in a namespace are "untrusted".
Import
$ pulumi import cloudflare:index/workersForPlatformsNamespace:WorkersForPlatformsNamespace example '<account_id>/<dispatch_namespace>'
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the cloudflareTerraform Provider.
