cloudflare.HostnameTlsSetting
Explore with Pulumi AI
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 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
Outputs
All input properties are implicitly available as output properties. Additionally, the HostnameTlsSetting resource produces the following output properties:
- 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.
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.
- Created
At 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.
- Setting
Id string - The TLS Setting name. Available values: "ciphers", "mintlsversion", "http2".
- Status string
- Deployment status for the given tls setting.
- Updated
At string - This is the time the tls setting was updated.
- Value object
- The tls setting value.
- Zone
Id string - Identifier
- Created
At 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.
- Setting
Id string - The TLS Setting name. Available values: "ciphers", "mintlsversion", "http2".
- Status string
- Deployment status for the given tls setting.
- Updated
At string - This is the time the tls setting was updated.
- Value interface{}
- The tls setting value.
- Zone
Id string - Identifier
- created
At 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.
- setting
Id String - The TLS Setting name. Available values: "ciphers", "mintlsversion", "http2".
- status String
- Deployment status for the given tls setting.
- updated
At String - This is the time the tls setting was updated.
- value Object
- The tls setting value.
- zone
Id String - Identifier
- created
At 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.
- setting
Id string - The TLS Setting name. Available values: "ciphers", "mintlsversion", "http2".
- status string
- Deployment status for the given tls setting.
- updated
At string - This is the time the tls setting was updated.
- value any
- The tls setting value.
- zone
Id 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
- created
At 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.
- setting
Id String - The TLS Setting name. Available values: "ciphers", "mintlsversion", "http2".
- status String
- Deployment status for the given tls setting.
- updated
At String - This is the time the tls setting was updated.
- value Any
- The tls setting value.
- zone
Id 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.