published on Thursday, Jul 16, 2026 by Pulumi
published on Thursday, Jul 16, 2026 by Pulumi
Accepted Permissions
Flagship ReadFlagship Write
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleFlagshipApp = new cloudflare.FlagshipApp("example_flagship_app", {
accountId: "account_id",
name: "x",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_flagship_app = cloudflare.FlagshipApp("example_flagship_app",
account_id="account_id",
name="x")
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.NewFlagshipApp(ctx, "example_flagship_app", &cloudflare.FlagshipAppArgs{
AccountId: pulumi.String("account_id"),
Name: pulumi.String("x"),
})
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 exampleFlagshipApp = new Cloudflare.FlagshipApp("example_flagship_app", new()
{
AccountId = "account_id",
Name = "x",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.FlagshipApp;
import com.pulumi.cloudflare.FlagshipAppArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 exampleFlagshipApp = new FlagshipApp("exampleFlagshipApp", FlagshipAppArgs.builder()
.accountId("account_id")
.name("x")
.build());
}
}
resources:
exampleFlagshipApp:
type: cloudflare:FlagshipApp
name: example_flagship_app
properties:
accountId: account_id
name: x
pulumi {
required_providers {
cloudflare = {
source = "pulumi/cloudflare"
}
}
}
resource "cloudflare_flagshipapp" "example_flagship_app" {
account_id = "account_id"
name = "x"
}
Create FlagshipApp Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FlagshipApp(name: string, args: FlagshipAppArgs, opts?: CustomResourceOptions);@overload
def FlagshipApp(resource_name: str,
args: FlagshipAppArgs,
opts: Optional[ResourceOptions] = None)
@overload
def FlagshipApp(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
name: Optional[str] = None)func NewFlagshipApp(ctx *Context, name string, args FlagshipAppArgs, opts ...ResourceOption) (*FlagshipApp, error)public FlagshipApp(string name, FlagshipAppArgs args, CustomResourceOptions? opts = null)
public FlagshipApp(String name, FlagshipAppArgs args)
public FlagshipApp(String name, FlagshipAppArgs args, CustomResourceOptions options)
type: cloudflare:FlagshipApp
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "cloudflare_flagship_app" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args FlagshipAppArgs
- 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 FlagshipAppArgs
- 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 FlagshipAppArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FlagshipAppArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FlagshipAppArgs
- 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 flagshipAppResource = new Cloudflare.FlagshipApp("flagshipAppResource", new()
{
AccountId = "string",
Name = "string",
});
example, err := cloudflare.NewFlagshipApp(ctx, "flagshipAppResource", &cloudflare.FlagshipAppArgs{
AccountId: pulumi.String("string"),
Name: pulumi.String("string"),
})
resource "cloudflare_flagship_app" "flagshipAppResource" {
lifecycle {
create_before_destroy = true
}
account_id = "string"
name = "string"
}
var flagshipAppResource = new FlagshipApp("flagshipAppResource", FlagshipAppArgs.builder()
.accountId("string")
.name("string")
.build());
flagship_app_resource = cloudflare.FlagshipApp("flagshipAppResource",
account_id="string",
name="string")
const flagshipAppResource = new cloudflare.FlagshipApp("flagshipAppResource", {
accountId: "string",
name: "string",
});
type: cloudflare:FlagshipApp
properties:
accountId: string
name: string
FlagshipApp 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 FlagshipApp resource accepts the following input properties:
- account_
id string - Cloudflare account ID.
- name string
- account_
id str - Cloudflare account ID.
- name str
Outputs
All input properties are implicitly available as output properties. Additionally, the FlagshipApp resource produces the following output properties:
- created_
at string - id string
- The provider-assigned unique ID for this managed resource.
- updated_
at string - updated_
by string - Email of the actor who last modified the app, or
edge-gatewayfor gateway-authenticated changes.
- created_
at str - id str
- The provider-assigned unique ID for this managed resource.
- updated_
at str - updated_
by str - Email of the actor who last modified the app, or
edge-gatewayfor gateway-authenticated changes.
Look up Existing FlagshipApp Resource
Get an existing FlagshipApp 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?: FlagshipAppState, opts?: CustomResourceOptions): FlagshipApp@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
created_at: Optional[str] = None,
name: Optional[str] = None,
updated_at: Optional[str] = None,
updated_by: Optional[str] = None) -> FlagshipAppfunc GetFlagshipApp(ctx *Context, name string, id IDInput, state *FlagshipAppState, opts ...ResourceOption) (*FlagshipApp, error)public static FlagshipApp Get(string name, Input<string> id, FlagshipAppState? state, CustomResourceOptions? opts = null)public static FlagshipApp get(String name, Output<String> id, FlagshipAppState state, CustomResourceOptions options)resources: _: type: cloudflare:FlagshipApp get: id: ${id}import {
to = cloudflare_flagship_app.example
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.
- account_
id string - Cloudflare account ID.
- created_
at string - name string
- updated_
at string - updated_
by string - Email of the actor who last modified the app, or
edge-gatewayfor gateway-authenticated changes.
- account_
id str - Cloudflare account ID.
- created_
at str - name str
- updated_
at str - updated_
by str - Email of the actor who last modified the app, or
edge-gatewayfor gateway-authenticated changes.
Import
$ pulumi import cloudflare:index/flagshipApp:FlagshipApp example '<account_id>/<app_id>'
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.
published on Thursday, Jul 16, 2026 by Pulumi