Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

LogPushOwnershipChallenge

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

using Pulumi;
using Cloudflare = Pulumi.Cloudflare;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new Cloudflare.LogPushOwnershipChallenge("example", new Cloudflare.LogPushOwnershipChallengeArgs
        {
            DestinationConf = "s3://my-bucket-path?region=us-west-2",
            ZoneId = "d41d8cd98f00b204e9800998ecf8427e",
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-cloudflare/sdk/v2/go/cloudflare"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := cloudflare.NewLogPushOwnershipChallenge(ctx, "example", &cloudflare.LogPushOwnershipChallengeArgs{
            DestinationConf: pulumi.String("s3://my-bucket-path?region=us-west-2"),
            ZoneId:          pulumi.String("d41d8cd98f00b204e9800998ecf8427e"),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_cloudflare as cloudflare

example = cloudflare.LogPushOwnershipChallenge("example",
    destination_conf="s3://my-bucket-path?region=us-west-2",
    zone_id="d41d8cd98f00b204e9800998ecf8427e")
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";

const example = new cloudflare.LogPushOwnershipChallenge("example", {
    destinationConf: "s3://my-bucket-path?region=us-west-2",
    zoneId: "d41d8cd98f00b204e9800998ecf8427e",
});

Create a LogPushOwnershipChallenge Resource

new LogPushOwnershipChallenge(name: string, args: LogPushOwnershipChallengeArgs, opts?: CustomResourceOptions);
def LogPushOwnershipChallenge(resource_name: str, opts: Optional[ResourceOptions] = None, destination_conf: 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)
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.
opts ResourceOptions
A bag of options that control this 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.

LogPushOwnershipChallenge Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model 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.

ZoneId string

The zone ID where the logpush ownership challenge should be created.

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.

ZoneId string

The zone ID where the logpush ownership challenge should be created.

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.

zoneId string

The zone ID where the logpush ownership challenge should be created.

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.

zone_id str

The zone ID where the logpush ownership challenge should be created.

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 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.

Look up an 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, 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)
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.

The following state arguments are supported:

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.

OwnershipChallengeFilename string

The filename of the ownership challenge which contains the contents required for Logpush Job creation.

ZoneId string

The zone ID where the logpush ownership challenge should be created.

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.

OwnershipChallengeFilename string

The filename of the ownership challenge which contains the contents required for Logpush Job creation.

ZoneId string

The zone ID where the logpush ownership challenge should be created.

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.

ownershipChallengeFilename string

The filename of the ownership challenge which contains the contents required for Logpush Job creation.

zoneId string

The zone ID where the logpush ownership challenge should be created.

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.

ownership_challenge_filename str

The filename of the ownership challenge which contains the contents required for Logpush Job creation.

zone_id str

The zone ID where the logpush ownership challenge should be created.

Package Details

Repository
https://github.com/pulumi/pulumi-cloudflare
License
Apache-2.0
Notes
This Pulumi package is based on the cloudflare Terraform Provider.