1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. AuthenticatedOriginPullsSettings
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

cloudflare.AuthenticatedOriginPullsSettings

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleAuthenticatedOriginPullsSettings = new cloudflare.AuthenticatedOriginPullsSettings("example_authenticated_origin_pulls_settings", {
        zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
        enabled: true,
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_authenticated_origin_pulls_settings = cloudflare.AuthenticatedOriginPullsSettings("example_authenticated_origin_pulls_settings",
        zone_id="023e105f4ecef8ad9ca31a8372d0c353",
        enabled=True)
    
    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.NewAuthenticatedOriginPullsSettings(ctx, "example_authenticated_origin_pulls_settings", &cloudflare.AuthenticatedOriginPullsSettingsArgs{
    			ZoneId:  pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
    			Enabled: pulumi.Bool(true),
    		})
    		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 exampleAuthenticatedOriginPullsSettings = new Cloudflare.AuthenticatedOriginPullsSettings("example_authenticated_origin_pulls_settings", new()
        {
            ZoneId = "023e105f4ecef8ad9ca31a8372d0c353",
            Enabled = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.AuthenticatedOriginPullsSettings;
    import com.pulumi.cloudflare.AuthenticatedOriginPullsSettingsArgs;
    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 exampleAuthenticatedOriginPullsSettings = new AuthenticatedOriginPullsSettings("exampleAuthenticatedOriginPullsSettings", AuthenticatedOriginPullsSettingsArgs.builder()
                .zoneId("023e105f4ecef8ad9ca31a8372d0c353")
                .enabled(true)
                .build());
    
        }
    }
    
    resources:
      exampleAuthenticatedOriginPullsSettings:
        type: cloudflare:AuthenticatedOriginPullsSettings
        name: example_authenticated_origin_pulls_settings
        properties:
          zoneId: 023e105f4ecef8ad9ca31a8372d0c353
          enabled: true
    

    Create AuthenticatedOriginPullsSettings Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AuthenticatedOriginPullsSettings(name: string, args: AuthenticatedOriginPullsSettingsArgs, opts?: CustomResourceOptions);
    @overload
    def AuthenticatedOriginPullsSettings(resource_name: str,
                                         args: AuthenticatedOriginPullsSettingsArgs,
                                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def AuthenticatedOriginPullsSettings(resource_name: str,
                                         opts: Optional[ResourceOptions] = None,
                                         enabled: Optional[bool] = None,
                                         zone_id: Optional[str] = None)
    func NewAuthenticatedOriginPullsSettings(ctx *Context, name string, args AuthenticatedOriginPullsSettingsArgs, opts ...ResourceOption) (*AuthenticatedOriginPullsSettings, error)
    public AuthenticatedOriginPullsSettings(string name, AuthenticatedOriginPullsSettingsArgs args, CustomResourceOptions? opts = null)
    public AuthenticatedOriginPullsSettings(String name, AuthenticatedOriginPullsSettingsArgs args)
    public AuthenticatedOriginPullsSettings(String name, AuthenticatedOriginPullsSettingsArgs args, CustomResourceOptions options)
    
    type: cloudflare:AuthenticatedOriginPullsSettings
    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 AuthenticatedOriginPullsSettingsArgs
    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 AuthenticatedOriginPullsSettingsArgs
    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 AuthenticatedOriginPullsSettingsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AuthenticatedOriginPullsSettingsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AuthenticatedOriginPullsSettingsArgs
    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 authenticatedOriginPullsSettingsResource = new Cloudflare.AuthenticatedOriginPullsSettings("authenticatedOriginPullsSettingsResource", new()
    {
        Enabled = false,
        ZoneId = "string",
    });
    
    example, err := cloudflare.NewAuthenticatedOriginPullsSettings(ctx, "authenticatedOriginPullsSettingsResource", &cloudflare.AuthenticatedOriginPullsSettingsArgs{
    	Enabled: pulumi.Bool(false),
    	ZoneId:  pulumi.String("string"),
    })
    
    var authenticatedOriginPullsSettingsResource = new AuthenticatedOriginPullsSettings("authenticatedOriginPullsSettingsResource", AuthenticatedOriginPullsSettingsArgs.builder()
        .enabled(false)
        .zoneId("string")
        .build());
    
    authenticated_origin_pulls_settings_resource = cloudflare.AuthenticatedOriginPullsSettings("authenticatedOriginPullsSettingsResource",
        enabled=False,
        zone_id="string")
    
    const authenticatedOriginPullsSettingsResource = new cloudflare.AuthenticatedOriginPullsSettings("authenticatedOriginPullsSettingsResource", {
        enabled: false,
        zoneId: "string",
    });
    
    type: cloudflare:AuthenticatedOriginPullsSettings
    properties:
        enabled: false
        zoneId: string
    

    AuthenticatedOriginPullsSettings 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 AuthenticatedOriginPullsSettings resource accepts the following input properties:

    Enabled bool
    Indicates whether zone-level authenticated origin pulls is enabled.
    ZoneId string
    Identifier
    Enabled bool
    Indicates whether zone-level authenticated origin pulls is enabled.
    ZoneId string
    Identifier
    enabled Boolean
    Indicates whether zone-level authenticated origin pulls is enabled.
    zoneId String
    Identifier
    enabled boolean
    Indicates whether zone-level authenticated origin pulls is enabled.
    zoneId string
    Identifier
    enabled bool
    Indicates whether zone-level authenticated origin pulls is enabled.
    zone_id str
    Identifier
    enabled Boolean
    Indicates whether zone-level authenticated origin pulls is enabled.
    zoneId String
    Identifier

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AuthenticatedOriginPullsSettings resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing AuthenticatedOriginPullsSettings Resource

    Get an existing AuthenticatedOriginPullsSettings 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?: AuthenticatedOriginPullsSettingsState, opts?: CustomResourceOptions): AuthenticatedOriginPullsSettings
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            enabled: Optional[bool] = None,
            zone_id: Optional[str] = None) -> AuthenticatedOriginPullsSettings
    func GetAuthenticatedOriginPullsSettings(ctx *Context, name string, id IDInput, state *AuthenticatedOriginPullsSettingsState, opts ...ResourceOption) (*AuthenticatedOriginPullsSettings, error)
    public static AuthenticatedOriginPullsSettings Get(string name, Input<string> id, AuthenticatedOriginPullsSettingsState? state, CustomResourceOptions? opts = null)
    public static AuthenticatedOriginPullsSettings get(String name, Output<String> id, AuthenticatedOriginPullsSettingsState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:AuthenticatedOriginPullsSettings    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.
    The following state arguments are supported:
    Enabled bool
    Indicates whether zone-level authenticated origin pulls is enabled.
    ZoneId string
    Identifier
    Enabled bool
    Indicates whether zone-level authenticated origin pulls is enabled.
    ZoneId string
    Identifier
    enabled Boolean
    Indicates whether zone-level authenticated origin pulls is enabled.
    zoneId String
    Identifier
    enabled boolean
    Indicates whether zone-level authenticated origin pulls is enabled.
    zoneId string
    Identifier
    enabled bool
    Indicates whether zone-level authenticated origin pulls is enabled.
    zone_id str
    Identifier
    enabled Boolean
    Indicates whether zone-level authenticated origin pulls is enabled.
    zoneId String
    Identifier

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi