1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. Web3Hostname
Cloudflare v5.43.0 published on Wednesday, Nov 13, 2024 by Pulumi

cloudflare.Web3Hostname

Explore with Pulumi AI

cloudflare logo
Cloudflare v5.43.0 published on Wednesday, Nov 13, 2024 by Pulumi

    Manages Web3 hostnames for IPFS and Ethereum gateways.

    Create Web3Hostname Resource

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

    Constructor syntax

    new Web3Hostname(name: string, args: Web3HostnameArgs, opts?: CustomResourceOptions);
    @overload
    def Web3Hostname(resource_name: str,
                     args: Web3HostnameArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def Web3Hostname(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     name: Optional[str] = None,
                     target: Optional[str] = None,
                     zone_id: Optional[str] = None,
                     description: Optional[str] = None,
                     dnslink: Optional[str] = None)
    func NewWeb3Hostname(ctx *Context, name string, args Web3HostnameArgs, opts ...ResourceOption) (*Web3Hostname, error)
    public Web3Hostname(string name, Web3HostnameArgs args, CustomResourceOptions? opts = null)
    public Web3Hostname(String name, Web3HostnameArgs args)
    public Web3Hostname(String name, Web3HostnameArgs args, CustomResourceOptions options)
    
    type: cloudflare:Web3Hostname
    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 Web3HostnameArgs
    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 Web3HostnameArgs
    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 Web3HostnameArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args Web3HostnameArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args Web3HostnameArgs
    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 web3HostnameResource = new Cloudflare.Web3Hostname("web3HostnameResource", new()
    {
        Name = "string",
        Target = "string",
        ZoneId = "string",
        Description = "string",
        Dnslink = "string",
    });
    
    example, err := cloudflare.NewWeb3Hostname(ctx, "web3HostnameResource", &cloudflare.Web3HostnameArgs{
    	Name:        pulumi.String("string"),
    	Target:      pulumi.String("string"),
    	ZoneId:      pulumi.String("string"),
    	Description: pulumi.String("string"),
    	Dnslink:     pulumi.String("string"),
    })
    
    var web3HostnameResource = new Web3Hostname("web3HostnameResource", Web3HostnameArgs.builder()
        .name("string")
        .target("string")
        .zoneId("string")
        .description("string")
        .dnslink("string")
        .build());
    
    web3_hostname_resource = cloudflare.Web3Hostname("web3HostnameResource",
        name="string",
        target="string",
        zone_id="string",
        description="string",
        dnslink="string")
    
    const web3HostnameResource = new cloudflare.Web3Hostname("web3HostnameResource", {
        name: "string",
        target: "string",
        zoneId: "string",
        description: "string",
        dnslink: "string",
    });
    
    type: cloudflare:Web3Hostname
    properties:
        description: string
        dnslink: string
        name: string
        target: string
        zoneId: string
    

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

    Name string
    The hostname that will point to the target gateway via CNAME.
    Target string
    Target gateway of the hostname.
    ZoneId string
    The zone identifier to target for the resource.
    Description string
    An optional description of the hostname.
    Dnslink string
    DNSLink value used if the target is ipfs.
    Name string
    The hostname that will point to the target gateway via CNAME.
    Target string
    Target gateway of the hostname.
    ZoneId string
    The zone identifier to target for the resource.
    Description string
    An optional description of the hostname.
    Dnslink string
    DNSLink value used if the target is ipfs.
    name String
    The hostname that will point to the target gateway via CNAME.
    target String
    Target gateway of the hostname.
    zoneId String
    The zone identifier to target for the resource.
    description String
    An optional description of the hostname.
    dnslink String
    DNSLink value used if the target is ipfs.
    name string
    The hostname that will point to the target gateway via CNAME.
    target string
    Target gateway of the hostname.
    zoneId string
    The zone identifier to target for the resource.
    description string
    An optional description of the hostname.
    dnslink string
    DNSLink value used if the target is ipfs.
    name str
    The hostname that will point to the target gateway via CNAME.
    target str
    Target gateway of the hostname.
    zone_id str
    The zone identifier to target for the resource.
    description str
    An optional description of the hostname.
    dnslink str
    DNSLink value used if the target is ipfs.
    name String
    The hostname that will point to the target gateway via CNAME.
    target String
    Target gateway of the hostname.
    zoneId String
    The zone identifier to target for the resource.
    description String
    An optional description of the hostname.
    dnslink String
    DNSLink value used if the target is ipfs.

    Outputs

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

    CreatedOn string
    Creation time.
    Id string
    The provider-assigned unique ID for this managed resource.
    ModifiedOn string
    Last modification time.
    Status string
    Status of the hostname's activation.
    CreatedOn string
    Creation time.
    Id string
    The provider-assigned unique ID for this managed resource.
    ModifiedOn string
    Last modification time.
    Status string
    Status of the hostname's activation.
    createdOn String
    Creation time.
    id String
    The provider-assigned unique ID for this managed resource.
    modifiedOn String
    Last modification time.
    status String
    Status of the hostname's activation.
    createdOn string
    Creation time.
    id string
    The provider-assigned unique ID for this managed resource.
    modifiedOn string
    Last modification time.
    status string
    Status of the hostname's activation.
    created_on str
    Creation time.
    id str
    The provider-assigned unique ID for this managed resource.
    modified_on str
    Last modification time.
    status str
    Status of the hostname's activation.
    createdOn String
    Creation time.
    id String
    The provider-assigned unique ID for this managed resource.
    modifiedOn String
    Last modification time.
    status String
    Status of the hostname's activation.

    Look up Existing Web3Hostname Resource

    Get an existing Web3Hostname 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?: Web3HostnameState, opts?: CustomResourceOptions): Web3Hostname
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_on: Optional[str] = None,
            description: Optional[str] = None,
            dnslink: Optional[str] = None,
            modified_on: Optional[str] = None,
            name: Optional[str] = None,
            status: Optional[str] = None,
            target: Optional[str] = None,
            zone_id: Optional[str] = None) -> Web3Hostname
    func GetWeb3Hostname(ctx *Context, name string, id IDInput, state *Web3HostnameState, opts ...ResourceOption) (*Web3Hostname, error)
    public static Web3Hostname Get(string name, Input<string> id, Web3HostnameState? state, CustomResourceOptions? opts = null)
    public static Web3Hostname get(String name, Output<String> id, Web3HostnameState 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:
    CreatedOn string
    Creation time.
    Description string
    An optional description of the hostname.
    Dnslink string
    DNSLink value used if the target is ipfs.
    ModifiedOn string
    Last modification time.
    Name string
    The hostname that will point to the target gateway via CNAME.
    Status string
    Status of the hostname's activation.
    Target string
    Target gateway of the hostname.
    ZoneId string
    The zone identifier to target for the resource.
    CreatedOn string
    Creation time.
    Description string
    An optional description of the hostname.
    Dnslink string
    DNSLink value used if the target is ipfs.
    ModifiedOn string
    Last modification time.
    Name string
    The hostname that will point to the target gateway via CNAME.
    Status string
    Status of the hostname's activation.
    Target string
    Target gateway of the hostname.
    ZoneId string
    The zone identifier to target for the resource.
    createdOn String
    Creation time.
    description String
    An optional description of the hostname.
    dnslink String
    DNSLink value used if the target is ipfs.
    modifiedOn String
    Last modification time.
    name String
    The hostname that will point to the target gateway via CNAME.
    status String
    Status of the hostname's activation.
    target String
    Target gateway of the hostname.
    zoneId String
    The zone identifier to target for the resource.
    createdOn string
    Creation time.
    description string
    An optional description of the hostname.
    dnslink string
    DNSLink value used if the target is ipfs.
    modifiedOn string
    Last modification time.
    name string
    The hostname that will point to the target gateway via CNAME.
    status string
    Status of the hostname's activation.
    target string
    Target gateway of the hostname.
    zoneId string
    The zone identifier to target for the resource.
    created_on str
    Creation time.
    description str
    An optional description of the hostname.
    dnslink str
    DNSLink value used if the target is ipfs.
    modified_on str
    Last modification time.
    name str
    The hostname that will point to the target gateway via CNAME.
    status str
    Status of the hostname's activation.
    target str
    Target gateway of the hostname.
    zone_id str
    The zone identifier to target for the resource.
    createdOn String
    Creation time.
    description String
    An optional description of the hostname.
    dnslink String
    DNSLink value used if the target is ipfs.
    modifiedOn String
    Last modification time.
    name String
    The hostname that will point to the target gateway via CNAME.
    status String
    Status of the hostname's activation.
    target String
    Target gateway of the hostname.
    zoneId String
    The zone identifier to target for the resource.

    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.43.0 published on Wednesday, Nov 13, 2024 by Pulumi