1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. LogpushOwnershipChallenge
Cloudflare v6.1.1 published on Monday, Apr 21, 2025 by Pulumi

cloudflare.LogpushOwnershipChallenge

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.1 published on Monday, Apr 21, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleLogpushOwnershipChallenge = new cloudflare.LogpushOwnershipChallenge("example_logpush_ownership_challenge", {
        destinationConf: "s3://mybucket/logs?region=us-west-2",
        zoneId: "zone_id",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_logpush_ownership_challenge = cloudflare.LogpushOwnershipChallenge("example_logpush_ownership_challenge",
        destination_conf="s3://mybucket/logs?region=us-west-2",
        zone_id="zone_id")
    
    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.NewLogpushOwnershipChallenge(ctx, "example_logpush_ownership_challenge", &cloudflare.LogpushOwnershipChallengeArgs{
    			DestinationConf: pulumi.String("s3://mybucket/logs?region=us-west-2"),
    			ZoneId:          pulumi.String("zone_id"),
    		})
    		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 exampleLogpushOwnershipChallenge = new Cloudflare.LogpushOwnershipChallenge("example_logpush_ownership_challenge", new()
        {
            DestinationConf = "s3://mybucket/logs?region=us-west-2",
            ZoneId = "zone_id",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.LogpushOwnershipChallenge;
    import com.pulumi.cloudflare.LogpushOwnershipChallengeArgs;
    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 exampleLogpushOwnershipChallenge = new LogpushOwnershipChallenge("exampleLogpushOwnershipChallenge", LogpushOwnershipChallengeArgs.builder()
                .destinationConf("s3://mybucket/logs?region=us-west-2")
                .zoneId("zone_id")
                .build());
    
        }
    }
    
    resources:
      exampleLogpushOwnershipChallenge:
        type: cloudflare:LogpushOwnershipChallenge
        name: example_logpush_ownership_challenge
        properties:
          destinationConf: s3://mybucket/logs?region=us-west-2
          zoneId: zone_id
    

    Create LogpushOwnershipChallenge Resource

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

    Constructor syntax

    new LogpushOwnershipChallenge(name: string, args: LogpushOwnershipChallengeArgs, opts?: CustomResourceOptions);
    @overload
    def LogpushOwnershipChallenge(resource_name: str,
                                  args: LogpushOwnershipChallengeArgs,
                                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def LogpushOwnershipChallenge(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  destination_conf: Optional[str] = None,
                                  account_id: Optional[str] = None,
                                  zone_id: Optional[str] = None)
    func NewLogpushOwnershipChallenge(ctx *Context, name string, args LogpushOwnershipChallengeArgs, opts ...ResourceOption) (*LogpushOwnershipChallenge, error)
    public LogpushOwnershipChallenge(string name, LogpushOwnershipChallengeArgs args, CustomResourceOptions? opts = null)
    public LogpushOwnershipChallenge(String name, LogpushOwnershipChallengeArgs args)
    public LogpushOwnershipChallenge(String name, LogpushOwnershipChallengeArgs args, CustomResourceOptions options)
    
    type: cloudflare:LogpushOwnershipChallenge
    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 LogpushOwnershipChallengeArgs
    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 LogpushOwnershipChallengeArgs
    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 LogpushOwnershipChallengeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LogpushOwnershipChallengeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LogpushOwnershipChallengeArgs
    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 logpushOwnershipChallengeResource = new Cloudflare.LogpushOwnershipChallenge("logpushOwnershipChallengeResource", new()
    {
        DestinationConf = "string",
        AccountId = "string",
        ZoneId = "string",
    });
    
    example, err := cloudflare.NewLogpushOwnershipChallenge(ctx, "logpushOwnershipChallengeResource", &cloudflare.LogpushOwnershipChallengeArgs{
    	DestinationConf: pulumi.String("string"),
    	AccountId:       pulumi.String("string"),
    	ZoneId:          pulumi.String("string"),
    })
    
    var logpushOwnershipChallengeResource = new LogpushOwnershipChallenge("logpushOwnershipChallengeResource", LogpushOwnershipChallengeArgs.builder()
        .destinationConf("string")
        .accountId("string")
        .zoneId("string")
        .build());
    
    logpush_ownership_challenge_resource = cloudflare.LogpushOwnershipChallenge("logpushOwnershipChallengeResource",
        destination_conf="string",
        account_id="string",
        zone_id="string")
    
    const logpushOwnershipChallengeResource = new cloudflare.LogpushOwnershipChallenge("logpushOwnershipChallengeResource", {
        destinationConf: "string",
        accountId: "string",
        zoneId: "string",
    });
    
    type: cloudflare:LogpushOwnershipChallenge
    properties:
        accountId: string
        destinationConf: string
        zoneId: string
    

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

    DestinationConf string
    Uniquely identifies a resource (such as an s3 bucket) where data will be pushed. Additional configuration parameters supported by the destination may be included.
    AccountId string
    The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
    ZoneId string
    The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
    DestinationConf string
    Uniquely identifies a resource (such as an s3 bucket) where data will be pushed. Additional configuration parameters supported by the destination may be included.
    AccountId string
    The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
    ZoneId string
    The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
    destinationConf String
    Uniquely identifies a resource (such as an s3 bucket) where data will be pushed. Additional configuration parameters supported by the destination may be included.
    accountId String
    The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
    zoneId String
    The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
    destinationConf string
    Uniquely identifies a resource (such as an s3 bucket) where data will be pushed. Additional configuration parameters supported by the destination may be included.
    accountId string
    The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
    zoneId string
    The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
    destination_conf str
    Uniquely identifies a resource (such as an s3 bucket) where data will be pushed. Additional configuration parameters supported by the destination may be included.
    account_id str
    The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
    zone_id str
    The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
    destinationConf String
    Uniquely identifies a resource (such as an s3 bucket) where data will be pushed. Additional configuration parameters supported by the destination may be included.
    accountId String
    The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
    zoneId String
    The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.

    Outputs

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

    Filename string
    Id string
    The provider-assigned unique ID for this managed resource.
    Message string
    Valid bool
    Filename string
    Id string
    The provider-assigned unique ID for this managed resource.
    Message string
    Valid bool
    filename String
    id String
    The provider-assigned unique ID for this managed resource.
    message String
    valid Boolean
    filename string
    id string
    The provider-assigned unique ID for this managed resource.
    message string
    valid boolean
    filename str
    id str
    The provider-assigned unique ID for this managed resource.
    message str
    valid bool
    filename String
    id String
    The provider-assigned unique ID for this managed resource.
    message String
    valid Boolean

    Look up Existing LogpushOwnershipChallenge Resource

    Get an existing LogpushOwnershipChallenge 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?: LogpushOwnershipChallengeState, opts?: CustomResourceOptions): LogpushOwnershipChallenge
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            destination_conf: Optional[str] = None,
            filename: Optional[str] = None,
            message: Optional[str] = None,
            valid: Optional[bool] = None,
            zone_id: Optional[str] = None) -> LogpushOwnershipChallenge
    func GetLogpushOwnershipChallenge(ctx *Context, name string, id IDInput, state *LogpushOwnershipChallengeState, opts ...ResourceOption) (*LogpushOwnershipChallenge, error)
    public static LogpushOwnershipChallenge Get(string name, Input<string> id, LogpushOwnershipChallengeState? state, CustomResourceOptions? opts = null)
    public static LogpushOwnershipChallenge get(String name, Output<String> id, LogpushOwnershipChallengeState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:LogpushOwnershipChallenge    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:
    AccountId string
    The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
    DestinationConf string
    Uniquely identifies a resource (such as an s3 bucket) where data will be pushed. Additional configuration parameters supported by the destination may be included.
    Filename string
    Message string
    Valid bool
    ZoneId string
    The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
    AccountId string
    The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
    DestinationConf string
    Uniquely identifies a resource (such as an s3 bucket) where data will be pushed. Additional configuration parameters supported by the destination may be included.
    Filename string
    Message string
    Valid bool
    ZoneId string
    The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
    accountId String
    The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
    destinationConf String
    Uniquely identifies a resource (such as an s3 bucket) where data will be pushed. Additional configuration parameters supported by the destination may be included.
    filename String
    message String
    valid Boolean
    zoneId String
    The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
    accountId string
    The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
    destinationConf string
    Uniquely identifies a resource (such as an s3 bucket) where data will be pushed. Additional configuration parameters supported by the destination may be included.
    filename string
    message string
    valid boolean
    zoneId string
    The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
    account_id str
    The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
    destination_conf str
    Uniquely identifies a resource (such as an s3 bucket) where data will be pushed. Additional configuration parameters supported by the destination may be included.
    filename str
    message str
    valid bool
    zone_id str
    The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
    accountId String
    The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
    destinationConf String
    Uniquely identifies a resource (such as an s3 bucket) where data will be pushed. Additional configuration parameters supported by the destination may be included.
    filename String
    message String
    valid Boolean
    zoneId String
    The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.

    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.1 published on Monday, Apr 21, 2025 by Pulumi