1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. LogpushOwnershipChallenge
Cloudflare v5.39.1 published on Tuesday, Sep 24, 2024 by Pulumi

cloudflare.LogpushOwnershipChallenge

Explore with Pulumi AI

cloudflare logo
Cloudflare v5.39.1 published on Tuesday, Sep 24, 2024 by Pulumi

    Provides a resource which manages Cloudflare Logpush ownership challenges to use in a Logpush Job. On it’s own, doesn’t do much however this resource should be used in conjunction to create Logpush jobs.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const example = new cloudflare.LogpushOwnershipChallenge("example", {
        zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
        destinationConf: "s3://my-bucket-path?region=us-west-2",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example = cloudflare.LogpushOwnershipChallenge("example",
        zone_id="0da42c8d2132a9ddaf714f9e7c920711",
        destination_conf="s3://my-bucket-path?region=us-west-2")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-cloudflare/sdk/v5/go/cloudflare"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudflare.NewLogpushOwnershipChallenge(ctx, "example", &cloudflare.LogpushOwnershipChallengeArgs{
    			ZoneId:          pulumi.String("0da42c8d2132a9ddaf714f9e7c920711"),
    			DestinationConf: pulumi.String("s3://my-bucket-path?region=us-west-2"),
    		})
    		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 example = new Cloudflare.LogpushOwnershipChallenge("example", new()
        {
            ZoneId = "0da42c8d2132a9ddaf714f9e7c920711",
            DestinationConf = "s3://my-bucket-path?region=us-west-2",
        });
    
    });
    
    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 example = new LogpushOwnershipChallenge("example", LogpushOwnershipChallengeArgs.builder()
                .zoneId("0da42c8d2132a9ddaf714f9e7c920711")
                .destinationConf("s3://my-bucket-path?region=us-west-2")
                .build());
    
        }
    }
    
    resources:
      example:
        type: cloudflare:LogpushOwnershipChallenge
        properties:
          zoneId: 0da42c8d2132a9ddaf714f9e7c920711
          destinationConf: s3://my-bucket-path?region=us-west-2
    

    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

    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. See Logpush destination documentation. Modifying this attribute will force creation of a new resource.
    AccountId string
    The account identifier to target for the resource. Must provide only one of account_id, zone_id.
    ZoneId string
    The zone identifier to target for the resource. Must provide only one of account_id, 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. See Logpush destination documentation. Modifying this attribute will force creation of a new resource.
    AccountId string
    The account identifier to target for the resource. Must provide only one of account_id, zone_id.
    ZoneId string
    The zone identifier to target for the resource. Must provide only one of account_id, 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. See Logpush destination documentation. Modifying this attribute will force creation of a new resource.
    accountId String
    The account identifier to target for the resource. Must provide only one of account_id, zone_id.
    zoneId String
    The zone identifier to target for the resource. Must provide only one of account_id, 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. See Logpush destination documentation. Modifying this attribute will force creation of a new resource.
    accountId string
    The account identifier to target for the resource. Must provide only one of account_id, zone_id.
    zoneId string
    The zone identifier to target for the resource. Must provide only one of account_id, 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. See Logpush destination documentation. Modifying this attribute will force creation of a new resource.
    account_id str
    The account identifier to target for the resource. Must provide only one of account_id, zone_id.
    zone_id str
    The zone identifier to target for the resource. Must provide only one of account_id, 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. See Logpush destination documentation. Modifying this attribute will force creation of a new resource.
    accountId String
    The account identifier to target for the resource. Must provide only one of account_id, zone_id.
    zoneId String
    The zone identifier to target for the resource. Must provide only one of account_id, zone_id.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    OwnershipChallengeFilename string
    The filename of the ownership challenge which contains the contents required for Logpush Job creation.
    Id string
    The provider-assigned unique ID for this managed resource.
    OwnershipChallengeFilename string
    The filename of the ownership challenge which contains the contents required for Logpush Job creation.
    id String
    The provider-assigned unique ID for this managed resource.
    ownershipChallengeFilename String
    The filename of the ownership challenge which contains the contents required for Logpush Job creation.
    id string
    The provider-assigned unique ID for this managed resource.
    ownershipChallengeFilename string
    The filename of the ownership challenge which contains the contents required for Logpush Job creation.
    id str
    The provider-assigned unique ID for this managed resource.
    ownership_challenge_filename str
    The filename of the ownership challenge which contains the contents required for Logpush Job creation.
    id String
    The provider-assigned unique ID for this managed resource.
    ownershipChallengeFilename String
    The filename of the ownership challenge which contains the contents required for Logpush Job creation.

    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,
            ownership_challenge_filename: Optional[str] = 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)
    Resource lookup is not supported in YAML
    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 identifier to target for the resource. Must provide only one of account_id, 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. See Logpush destination documentation. Modifying this attribute will force creation of a new resource.
    OwnershipChallengeFilename string
    The filename of the ownership challenge which contains the contents required for Logpush Job creation.
    ZoneId string
    The zone identifier to target for the resource. Must provide only one of account_id, zone_id.
    AccountId string
    The account identifier to target for the resource. Must provide only one of account_id, 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. See Logpush destination documentation. Modifying this attribute will force creation of a new resource.
    OwnershipChallengeFilename string
    The filename of the ownership challenge which contains the contents required for Logpush Job creation.
    ZoneId string
    The zone identifier to target for the resource. Must provide only one of account_id, zone_id.
    accountId String
    The account identifier to target for the resource. Must provide only one of account_id, 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. See Logpush destination documentation. Modifying this attribute will force creation of a new resource.
    ownershipChallengeFilename String
    The filename of the ownership challenge which contains the contents required for Logpush Job creation.
    zoneId String
    The zone identifier to target for the resource. Must provide only one of account_id, zone_id.
    accountId string
    The account identifier to target for the resource. Must provide only one of account_id, 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. See Logpush destination documentation. Modifying this attribute will force creation of a new resource.
    ownershipChallengeFilename string
    The filename of the ownership challenge which contains the contents required for Logpush Job creation.
    zoneId string
    The zone identifier to target for the resource. Must provide only one of account_id, zone_id.
    account_id str
    The account identifier to target for the resource. Must provide only one of account_id, 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. See Logpush destination documentation. Modifying this attribute will force creation of a new resource.
    ownership_challenge_filename str
    The filename of the ownership challenge which contains the contents required for Logpush Job creation.
    zone_id str
    The zone identifier to target for the resource. Must provide only one of account_id, zone_id.
    accountId String
    The account identifier to target for the resource. Must provide only one of account_id, 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. See Logpush destination documentation. Modifying this attribute will force creation of a new resource.
    ownershipChallengeFilename String
    The filename of the ownership challenge which contains the contents required for Logpush Job creation.
    zoneId String
    The zone identifier to target for the resource. Must provide only one of account_id, zone_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 v5.39.1 published on Tuesday, Sep 24, 2024 by Pulumi