Show / Hide Table of Contents

Class ZoneSettingsOverride

Provides a resource which customizes Cloudflare zone settings. Note that after destroying this resource Zone Settings will be reset to their initial values.

Example Usage

using Pulumi;
using Cloudflare = Pulumi.Cloudflare;

class MyStack : Stack
{
public MyStack()
{
    var test = new Cloudflare.ZoneSettingsOverride("test", new Cloudflare.ZoneSettingsOverrideArgs
    {
        ZoneId = @var.Cloudflare_zone_id,
        Settings = new Cloudflare.Inputs.ZoneSettingsOverrideSettingsArgs
        {
            Brotli = "on",
            ChallengeTtl = 2700,
            SecurityLevel = "high",
            OpportunisticEncryption = "on",
            AutomaticHttpsRewrites = "on",
            Mirage = "on",
            Waf = "on",
            Minify = new Cloudflare.Inputs.ZoneSettingsOverrideSettingsMinifyArgs
            {
                Css = "on",
                Js = "off",
                Html = "off",
            },
            Security_header = 
            {
                { "enabled", true },
            },
        },
    });
}

}
Inheritance
System.Object
Resource
CustomResource
ZoneSettingsOverride
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Cloudflare
Assembly: Pulumi.Cloudflare.dll
Syntax
public class ZoneSettingsOverride : CustomResource

Constructors

View Source

ZoneSettingsOverride(String, ZoneSettingsOverrideArgs, CustomResourceOptions)

Create a ZoneSettingsOverride resource with the given unique name, arguments, and options.

Declaration
public ZoneSettingsOverride(string name, ZoneSettingsOverrideArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

ZoneSettingsOverrideArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

InitialSettings

Settings present in the zone at the time the resource is created. This will be used to restore the original settings when this resource is destroyed. Shares the same schema as the settings attribute (Above).

Declaration
public Output<ZoneSettingsOverrideInitialSettings> InitialSettings { get; }
Property Value
Type Description
Output<ZoneSettingsOverrideInitialSettings>
View Source

InitialSettingsReadAt

Declaration
public Output<string> InitialSettingsReadAt { get; }
Property Value
Type Description
Output<System.String>
View Source

ReadonlySettings

Which of the current settings are not able to be set by the user. Which settings these are is determined by plan level and user permissions.

  • zone_status. A full zone implies that DNS is hosted with Cloudflare. A partial zone is typically a partner-hosted zone or a CNAME setup.
  • zone_type. Status of the zone. Valid values: active, pending, initializing, moved, deleted, deactivated.
Declaration
public Output<ImmutableArray<string>> ReadonlySettings { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

Settings

Settings overrides that will be applied to the zone. If a setting is not specified the existing setting will be used. For a full list of available settings see below.

Declaration
public Output<ZoneSettingsOverrideSettings> Settings { get; }
Property Value
Type Description
Output<ZoneSettingsOverrideSettings>
View Source

ZoneId

The DNS zone ID to which apply settings.

Declaration
public Output<string> ZoneId { get; }
Property Value
Type Description
Output<System.String>
View Source

ZoneStatus

Declaration
public Output<string> ZoneStatus { get; }
Property Value
Type Description
Output<System.String>
View Source

ZoneType

Declaration
public Output<string> ZoneType { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, ZoneSettingsOverrideState, CustomResourceOptions)

Get an existing ZoneSettingsOverride resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static ZoneSettingsOverride Get(string name, Input<string> id, ZoneSettingsOverrideState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

ZoneSettingsOverrideState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
ZoneSettingsOverride
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.