1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. HostnameTlsSetting
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

cloudflare.HostnameTlsSetting

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleHostnameTlsSetting = new cloudflare.HostnameTlsSetting("example_hostname_tls_setting", {
        zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
        settingId: "ciphers",
        hostname: "app.example.com",
        value: [
            "ECDHE-RSA-AES128-GCM-SHA256",
            "AES128-GCM-SHA256",
        ],
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_hostname_tls_setting = cloudflare.HostnameTlsSetting("example_hostname_tls_setting",
        zone_id="023e105f4ecef8ad9ca31a8372d0c353",
        setting_id="ciphers",
        hostname="app.example.com",
        value=[
            "ECDHE-RSA-AES128-GCM-SHA256",
            "AES128-GCM-SHA256",
        ])
    
    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.NewHostnameTlsSetting(ctx, "example_hostname_tls_setting", &cloudflare.HostnameTlsSettingArgs{
    			ZoneId:    pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
    			SettingId: pulumi.String("ciphers"),
    			Hostname:  pulumi.String("app.example.com"),
    			Value: pulumi.Any{
    				"ECDHE-RSA-AES128-GCM-SHA256",
    				"AES128-GCM-SHA256",
    			},
    		})
    		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 exampleHostnameTlsSetting = new Cloudflare.HostnameTlsSetting("example_hostname_tls_setting", new()
        {
            ZoneId = "023e105f4ecef8ad9ca31a8372d0c353",
            SettingId = "ciphers",
            Hostname = "app.example.com",
            Value = new[]
            {
                "ECDHE-RSA-AES128-GCM-SHA256",
                "AES128-GCM-SHA256",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.HostnameTlsSetting;
    import com.pulumi.cloudflare.HostnameTlsSettingArgs;
    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 exampleHostnameTlsSetting = new HostnameTlsSetting("exampleHostnameTlsSetting", HostnameTlsSettingArgs.builder()
                .zoneId("023e105f4ecef8ad9ca31a8372d0c353")
                .settingId("ciphers")
                .hostname("app.example.com")
                .value(            
                    "ECDHE-RSA-AES128-GCM-SHA256",
                    "AES128-GCM-SHA256")
                .build());
    
        }
    }
    
    resources:
      exampleHostnameTlsSetting:
        type: cloudflare:HostnameTlsSetting
        name: example_hostname_tls_setting
        properties:
          zoneId: 023e105f4ecef8ad9ca31a8372d0c353
          settingId: ciphers
          hostname: app.example.com
          value:
            - ECDHE-RSA-AES128-GCM-SHA256
            - AES128-GCM-SHA256
    

    Create HostnameTlsSetting Resource

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

    Constructor syntax

    new HostnameTlsSetting(name: string, args: HostnameTlsSettingArgs, opts?: CustomResourceOptions);
    @overload
    def HostnameTlsSetting(resource_name: str,
                           args: HostnameTlsSettingArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def HostnameTlsSetting(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           hostname: Optional[str] = None,
                           setting_id: Optional[str] = None,
                           value: Optional[Any] = None,
                           zone_id: Optional[str] = None)
    func NewHostnameTlsSetting(ctx *Context, name string, args HostnameTlsSettingArgs, opts ...ResourceOption) (*HostnameTlsSetting, error)
    public HostnameTlsSetting(string name, HostnameTlsSettingArgs args, CustomResourceOptions? opts = null)
    public HostnameTlsSetting(String name, HostnameTlsSettingArgs args)
    public HostnameTlsSetting(String name, HostnameTlsSettingArgs args, CustomResourceOptions options)
    
    type: cloudflare:HostnameTlsSetting
    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 HostnameTlsSettingArgs
    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 HostnameTlsSettingArgs
    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 HostnameTlsSettingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args HostnameTlsSettingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args HostnameTlsSettingArgs
    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 hostnameTlsSettingResource = new Cloudflare.HostnameTlsSetting("hostnameTlsSettingResource", new()
    {
        Hostname = "string",
        SettingId = "string",
        Value = "any",
        ZoneId = "string",
    });
    
    example, err := cloudflare.NewHostnameTlsSetting(ctx, "hostnameTlsSettingResource", &cloudflare.HostnameTlsSettingArgs{
    	Hostname:  pulumi.String("string"),
    	SettingId: pulumi.String("string"),
    	Value:     pulumi.Any("any"),
    	ZoneId:    pulumi.String("string"),
    })
    
    var hostnameTlsSettingResource = new HostnameTlsSetting("hostnameTlsSettingResource", HostnameTlsSettingArgs.builder()
        .hostname("string")
        .settingId("string")
        .value("any")
        .zoneId("string")
        .build());
    
    hostname_tls_setting_resource = cloudflare.HostnameTlsSetting("hostnameTlsSettingResource",
        hostname="string",
        setting_id="string",
        value="any",
        zone_id="string")
    
    const hostnameTlsSettingResource = new cloudflare.HostnameTlsSetting("hostnameTlsSettingResource", {
        hostname: "string",
        settingId: "string",
        value: "any",
        zoneId: "string",
    });
    
    type: cloudflare:HostnameTlsSetting
    properties:
        hostname: string
        settingId: string
        value: any
        zoneId: string
    

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

    Hostname string
    The hostname for which the tls settings are set.
    SettingId string
    The TLS Setting name. Available values: "ciphers", "mintlsversion", "http2".
    Value object
    The tls setting value.
    ZoneId string
    Identifier
    Hostname string
    The hostname for which the tls settings are set.
    SettingId string
    The TLS Setting name. Available values: "ciphers", "mintlsversion", "http2".
    Value interface{}
    The tls setting value.
    ZoneId string
    Identifier
    hostname String
    The hostname for which the tls settings are set.
    settingId String
    The TLS Setting name. Available values: "ciphers", "mintlsversion", "http2".
    value Object
    The tls setting value.
    zoneId String
    Identifier
    hostname string
    The hostname for which the tls settings are set.
    settingId string
    The TLS Setting name. Available values: "ciphers", "mintlsversion", "http2".
    value any
    The tls setting value.
    zoneId string
    Identifier
    hostname str
    The hostname for which the tls settings are set.
    setting_id str
    The TLS Setting name. Available values: "ciphers", "mintlsversion", "http2".
    value Any
    The tls setting value.
    zone_id str
    Identifier
    hostname String
    The hostname for which the tls settings are set.
    settingId String
    The TLS Setting name. Available values: "ciphers", "mintlsversion", "http2".
    value Any
    The tls setting value.
    zoneId String
    Identifier

    Outputs

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

    CreatedAt string
    This is the time the tls setting was originally created for this hostname.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Deployment status for the given tls setting.
    UpdatedAt string
    This is the time the tls setting was updated.
    CreatedAt string
    This is the time the tls setting was originally created for this hostname.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Deployment status for the given tls setting.
    UpdatedAt string
    This is the time the tls setting was updated.
    createdAt String
    This is the time the tls setting was originally created for this hostname.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Deployment status for the given tls setting.
    updatedAt String
    This is the time the tls setting was updated.
    createdAt string
    This is the time the tls setting was originally created for this hostname.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Deployment status for the given tls setting.
    updatedAt string
    This is the time the tls setting was updated.
    created_at str
    This is the time the tls setting was originally created for this hostname.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    Deployment status for the given tls setting.
    updated_at str
    This is the time the tls setting was updated.
    createdAt String
    This is the time the tls setting was originally created for this hostname.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Deployment status for the given tls setting.
    updatedAt String
    This is the time the tls setting was updated.

    Look up Existing HostnameTlsSetting Resource

    Get an existing HostnameTlsSetting 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?: HostnameTlsSettingState, opts?: CustomResourceOptions): HostnameTlsSetting
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[str] = None,
            hostname: Optional[str] = None,
            setting_id: Optional[str] = None,
            status: Optional[str] = None,
            updated_at: Optional[str] = None,
            value: Optional[Any] = None,
            zone_id: Optional[str] = None) -> HostnameTlsSetting
    func GetHostnameTlsSetting(ctx *Context, name string, id IDInput, state *HostnameTlsSettingState, opts ...ResourceOption) (*HostnameTlsSetting, error)
    public static HostnameTlsSetting Get(string name, Input<string> id, HostnameTlsSettingState? state, CustomResourceOptions? opts = null)
    public static HostnameTlsSetting get(String name, Output<String> id, HostnameTlsSettingState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:HostnameTlsSetting    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:
    CreatedAt string
    This is the time the tls setting was originally created for this hostname.
    Hostname string
    The hostname for which the tls settings are set.
    SettingId string
    The TLS Setting name. Available values: "ciphers", "mintlsversion", "http2".
    Status string
    Deployment status for the given tls setting.
    UpdatedAt string
    This is the time the tls setting was updated.
    Value object
    The tls setting value.
    ZoneId string
    Identifier
    CreatedAt string
    This is the time the tls setting was originally created for this hostname.
    Hostname string
    The hostname for which the tls settings are set.
    SettingId string
    The TLS Setting name. Available values: "ciphers", "mintlsversion", "http2".
    Status string
    Deployment status for the given tls setting.
    UpdatedAt string
    This is the time the tls setting was updated.
    Value interface{}
    The tls setting value.
    ZoneId string
    Identifier
    createdAt String
    This is the time the tls setting was originally created for this hostname.
    hostname String
    The hostname for which the tls settings are set.
    settingId String
    The TLS Setting name. Available values: "ciphers", "mintlsversion", "http2".
    status String
    Deployment status for the given tls setting.
    updatedAt String
    This is the time the tls setting was updated.
    value Object
    The tls setting value.
    zoneId String
    Identifier
    createdAt string
    This is the time the tls setting was originally created for this hostname.
    hostname string
    The hostname for which the tls settings are set.
    settingId string
    The TLS Setting name. Available values: "ciphers", "mintlsversion", "http2".
    status string
    Deployment status for the given tls setting.
    updatedAt string
    This is the time the tls setting was updated.
    value any
    The tls setting value.
    zoneId string
    Identifier
    created_at str
    This is the time the tls setting was originally created for this hostname.
    hostname str
    The hostname for which the tls settings are set.
    setting_id str
    The TLS Setting name. Available values: "ciphers", "mintlsversion", "http2".
    status str
    Deployment status for the given tls setting.
    updated_at str
    This is the time the tls setting was updated.
    value Any
    The tls setting value.
    zone_id str
    Identifier
    createdAt String
    This is the time the tls setting was originally created for this hostname.
    hostname String
    The hostname for which the tls settings are set.
    settingId String
    The TLS Setting name. Available values: "ciphers", "mintlsversion", "http2".
    status String
    Deployment status for the given tls setting.
    updatedAt String
    This is the time the tls setting was updated.
    value Any
    The tls setting value.
    zoneId String
    Identifier

    Import

    $ pulumi import cloudflare:index/hostnameTlsSetting:HostnameTlsSetting example '<zone_id>/<setting_id>'
    

    To learn more about importing existing cloud resources, see Importing resources.

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