get R2Custom Domain
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleR2CustomDomain = cloudflare.getR2CustomDomain({
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
bucketName: "example-bucket",
domain: "example-domain/custom-domain.com",
});
Content copied to clipboard
import pulumi
import pulumi_cloudflare as cloudflare
example_r2_custom_domain = cloudflare.get_r2_custom_domain(account_id="023e105f4ecef8ad9ca31a8372d0c353",
bucket_name="example-bucket",
domain="example-domain/custom-domain.com")
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleR2CustomDomain = Cloudflare.GetR2CustomDomain.Invoke(new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
BucketName = "example-bucket",
Domain = "example-domain/custom-domain.com",
});
});
Content copied to clipboard
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.LookupR2CustomDomain(ctx, &cloudflare.LookupR2CustomDomainArgs{
AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
BucketName: "example-bucket",
Domain: "example-domain/custom-domain.com",
}, nil)
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.CloudflareFunctions;
import com.pulumi.cloudflare.inputs.GetR2CustomDomainArgs;
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) {
final var exampleR2CustomDomain = CloudflareFunctions.getR2CustomDomain(GetR2CustomDomainArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.bucketName("example-bucket")
.domain("example-domain/custom-domain.com")
.build());
}
}
Content copied to clipboard
variables:
exampleR2CustomDomain:
fn::invoke:
function: cloudflare:getR2CustomDomain
arguments:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
bucketName: example-bucket
domain: example-domain/custom-domain.com
Content copied to clipboard
Return
A collection of values returned by getR2CustomDomain.
Parameters
argument
A collection of arguments for invoking getR2CustomDomain.
suspend fun getR2CustomDomain(accountId: String, bucketName: String, domain: String): GetR2CustomDomainResult
Return
A collection of values returned by getR2CustomDomain.
Parameters
account Id
Account ID.
bucket Name
Name of the bucket.
domain
Name of the custom domain.
See also
suspend fun getR2CustomDomain(argument: suspend GetR2CustomDomainPlainArgsBuilder.() -> Unit): GetR2CustomDomainResult
Return
A collection of values returned by getR2CustomDomain.
Parameters
argument
Builder for com.pulumi.cloudflare.kotlin.inputs.GetR2CustomDomainPlainArgs.