cloudflare.ZoneSetting
Explore with Pulumi AI
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
exampleZoneSetting:
type: cloudflare:ZoneSetting
name: example_zone_setting
properties:
zoneId: 023e105f4ecef8ad9ca31a8372d0c353
settingId: always_online
id: 0rtt
value: on
Create ZoneSetting Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ZoneSetting(name: string, args: ZoneSettingArgs, opts?: CustomResourceOptions);
@overload
def ZoneSetting(resource_name: str,
args: ZoneSettingArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ZoneSetting(resource_name: str,
opts: Optional[ResourceOptions] = None,
setting_id: Optional[str] = None,
value: Optional[Any] = None,
zone_id: Optional[str] = None)
func NewZoneSetting(ctx *Context, name string, args ZoneSettingArgs, opts ...ResourceOption) (*ZoneSetting, error)
public ZoneSetting(string name, ZoneSettingArgs args, CustomResourceOptions? opts = null)
public ZoneSetting(String name, ZoneSettingArgs args)
public ZoneSetting(String name, ZoneSettingArgs args, CustomResourceOptions options)
type: cloudflare:ZoneSetting
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 ZoneSettingArgs
- 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 ZoneSettingArgs
- 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 ZoneSettingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ZoneSettingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ZoneSettingArgs
- 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 zoneSettingResource = new Cloudflare.ZoneSetting("zoneSettingResource", new()
{
SettingId = "string",
Value = "any",
ZoneId = "string",
});
example, err := cloudflare.NewZoneSetting(ctx, "zoneSettingResource", &cloudflare.ZoneSettingArgs{
SettingId: pulumi.String("string"),
Value: pulumi.Any("any"),
ZoneId: pulumi.String("string"),
})
var zoneSettingResource = new ZoneSetting("zoneSettingResource", ZoneSettingArgs.builder()
.settingId("string")
.value("any")
.zoneId("string")
.build());
zone_setting_resource = cloudflare.ZoneSetting("zoneSettingResource",
setting_id="string",
value="any",
zone_id="string")
const zoneSettingResource = new cloudflare.ZoneSetting("zoneSettingResource", {
settingId: "string",
value: "any",
zoneId: "string",
});
type: cloudflare:ZoneSetting
properties:
settingId: string
value: any
zoneId: string
ZoneSetting 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 ZoneSetting resource accepts the following input properties:
- setting_
id str - Setting name
- value Any
- Current value of the zone setting.
- zone_
id str - Identifier
Outputs
All input properties are implicitly available as output properties. Additionally, the ZoneSetting resource produces the following output properties:
- Editable bool
- Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).
- Id string
- The provider-assigned unique ID for this managed resource.
- Modified
On string - last time this setting was modified.
- Time
Remaining double - Value of the zone setting. Notes: The interval (in seconds) from when development mode expires (positive integer) or last expired (negative integer) for the domain. If development mode has never been enabled, this value is false.
- Editable bool
- Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).
- Id string
- The provider-assigned unique ID for this managed resource.
- Modified
On string - last time this setting was modified.
- Time
Remaining float64 - Value of the zone setting. Notes: The interval (in seconds) from when development mode expires (positive integer) or last expired (negative integer) for the domain. If development mode has never been enabled, this value is false.
- editable Boolean
- Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).
- id String
- The provider-assigned unique ID for this managed resource.
- modified
On String - last time this setting was modified.
- time
Remaining Double - Value of the zone setting. Notes: The interval (in seconds) from when development mode expires (positive integer) or last expired (negative integer) for the domain. If development mode has never been enabled, this value is false.
- editable boolean
- Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).
- id string
- The provider-assigned unique ID for this managed resource.
- modified
On string - last time this setting was modified.
- time
Remaining number - Value of the zone setting. Notes: The interval (in seconds) from when development mode expires (positive integer) or last expired (negative integer) for the domain. If development mode has never been enabled, this value is false.
- editable bool
- Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).
- id str
- The provider-assigned unique ID for this managed resource.
- modified_
on str - last time this setting was modified.
- time_
remaining float - Value of the zone setting. Notes: The interval (in seconds) from when development mode expires (positive integer) or last expired (negative integer) for the domain. If development mode has never been enabled, this value is false.
- editable Boolean
- Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).
- id String
- The provider-assigned unique ID for this managed resource.
- modified
On String - last time this setting was modified.
- time
Remaining Number - Value of the zone setting. Notes: The interval (in seconds) from when development mode expires (positive integer) or last expired (negative integer) for the domain. If development mode has never been enabled, this value is false.
Look up Existing ZoneSetting Resource
Get an existing ZoneSetting 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?: ZoneSettingState, opts?: CustomResourceOptions): ZoneSetting
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
editable: Optional[bool] = None,
modified_on: Optional[str] = None,
setting_id: Optional[str] = None,
time_remaining: Optional[float] = None,
value: Optional[Any] = None,
zone_id: Optional[str] = None) -> ZoneSetting
func GetZoneSetting(ctx *Context, name string, id IDInput, state *ZoneSettingState, opts ...ResourceOption) (*ZoneSetting, error)
public static ZoneSetting Get(string name, Input<string> id, ZoneSettingState? state, CustomResourceOptions? opts = null)
public static ZoneSetting get(String name, Output<String> id, ZoneSettingState state, CustomResourceOptions options)
resources: _: type: cloudflare:ZoneSetting 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.
- Editable bool
- Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).
- Modified
On string - last time this setting was modified.
- Setting
Id string - Setting name
- Time
Remaining double - Value of the zone setting. Notes: The interval (in seconds) from when development mode expires (positive integer) or last expired (negative integer) for the domain. If development mode has never been enabled, this value is false.
- Value object
- Current value of the zone setting.
- Zone
Id string - Identifier
- Editable bool
- Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).
- Modified
On string - last time this setting was modified.
- Setting
Id string - Setting name
- Time
Remaining float64 - Value of the zone setting. Notes: The interval (in seconds) from when development mode expires (positive integer) or last expired (negative integer) for the domain. If development mode has never been enabled, this value is false.
- Value interface{}
- Current value of the zone setting.
- Zone
Id string - Identifier
- editable Boolean
- Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).
- modified
On String - last time this setting was modified.
- setting
Id String - Setting name
- time
Remaining Double - Value of the zone setting. Notes: The interval (in seconds) from when development mode expires (positive integer) or last expired (negative integer) for the domain. If development mode has never been enabled, this value is false.
- value Object
- Current value of the zone setting.
- zone
Id String - Identifier
- editable boolean
- Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).
- modified
On string - last time this setting was modified.
- setting
Id string - Setting name
- time
Remaining number - Value of the zone setting. Notes: The interval (in seconds) from when development mode expires (positive integer) or last expired (negative integer) for the domain. If development mode has never been enabled, this value is false.
- value any
- Current value of the zone setting.
- zone
Id string - Identifier
- editable bool
- Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).
- modified_
on str - last time this setting was modified.
- setting_
id str - Setting name
- time_
remaining float - Value of the zone setting. Notes: The interval (in seconds) from when development mode expires (positive integer) or last expired (negative integer) for the domain. If development mode has never been enabled, this value is false.
- value Any
- Current value of the zone setting.
- zone_
id str - Identifier
- editable Boolean
- Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).
- modified
On String - last time this setting was modified.
- setting
Id String - Setting name
- time
Remaining Number - Value of the zone setting. Notes: The interval (in seconds) from when development mode expires (positive integer) or last expired (negative integer) for the domain. If development mode has never been enabled, this value is false.
- value Any
- Current value of the zone setting.
- zone
Id String - Identifier
Import
$ pulumi import cloudflare:index/zoneSetting:ZoneSetting example '<zone_id>/<setting_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
cloudflare
Terraform Provider.