1. Packages
  2. Cloudflare
  3. API Docs
  4. HostnameTlsSettingCiphers
Cloudflare v5.34.0 published on Friday, Jul 12, 2024 by Pulumi

cloudflare.HostnameTlsSettingCiphers

Explore with Pulumi AI

cloudflare logo
Cloudflare v5.34.0 published on Friday, Jul 12, 2024 by Pulumi

    Provides a Cloudflare per-hostname TLS setting resource, specifically for ciphers suites. Used to set ciphers suites for hostnames under the specified zone.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const example = new cloudflare.HostnameTlsSettingCiphers("example", {
        zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
        hostname: "sub.example.com",
        values: ["ECDHE-RSA-AES128-GCM-SHA256"],
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example = cloudflare.HostnameTlsSettingCiphers("example",
        zone_id="0da42c8d2132a9ddaf714f9e7c920711",
        hostname="sub.example.com",
        values=["ECDHE-RSA-AES128-GCM-SHA256"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-cloudflare/sdk/v5/go/cloudflare"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudflare.NewHostnameTlsSettingCiphers(ctx, "example", &cloudflare.HostnameTlsSettingCiphersArgs{
    			ZoneId:   pulumi.String("0da42c8d2132a9ddaf714f9e7c920711"),
    			Hostname: pulumi.String("sub.example.com"),
    			Values: pulumi.StringArray{
    				pulumi.String("ECDHE-RSA-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 example = new Cloudflare.HostnameTlsSettingCiphers("example", new()
        {
            ZoneId = "0da42c8d2132a9ddaf714f9e7c920711",
            Hostname = "sub.example.com",
            Values = new[]
            {
                "ECDHE-RSA-AES128-GCM-SHA256",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.HostnameTlsSettingCiphers;
    import com.pulumi.cloudflare.HostnameTlsSettingCiphersArgs;
    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 example = new HostnameTlsSettingCiphers("example", HostnameTlsSettingCiphersArgs.builder()
                .zoneId("0da42c8d2132a9ddaf714f9e7c920711")
                .hostname("sub.example.com")
                .values("ECDHE-RSA-AES128-GCM-SHA256")
                .build());
    
        }
    }
    
    resources:
      example:
        type: cloudflare:HostnameTlsSettingCiphers
        properties:
          zoneId: 0da42c8d2132a9ddaf714f9e7c920711
          hostname: sub.example.com
          values:
            - ECDHE-RSA-AES128-GCM-SHA256
    

    Create HostnameTlsSettingCiphers Resource

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

    Constructor syntax

    new HostnameTlsSettingCiphers(name: string, args: HostnameTlsSettingCiphersArgs, opts?: CustomResourceOptions);
    @overload
    def HostnameTlsSettingCiphers(resource_name: str,
                                  args: HostnameTlsSettingCiphersArgs,
                                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def HostnameTlsSettingCiphers(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  hostname: Optional[str] = None,
                                  values: Optional[Sequence[str]] = None,
                                  zone_id: Optional[str] = None,
                                  ports: Optional[Sequence[int]] = None)
    func NewHostnameTlsSettingCiphers(ctx *Context, name string, args HostnameTlsSettingCiphersArgs, opts ...ResourceOption) (*HostnameTlsSettingCiphers, error)
    public HostnameTlsSettingCiphers(string name, HostnameTlsSettingCiphersArgs args, CustomResourceOptions? opts = null)
    public HostnameTlsSettingCiphers(String name, HostnameTlsSettingCiphersArgs args)
    public HostnameTlsSettingCiphers(String name, HostnameTlsSettingCiphersArgs args, CustomResourceOptions options)
    
    type: cloudflare:HostnameTlsSettingCiphers
    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 HostnameTlsSettingCiphersArgs
    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 HostnameTlsSettingCiphersArgs
    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 HostnameTlsSettingCiphersArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args HostnameTlsSettingCiphersArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args HostnameTlsSettingCiphersArgs
    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 hostnameTlsSettingCiphersResource = new Cloudflare.HostnameTlsSettingCiphers("hostnameTlsSettingCiphersResource", new()
    {
        Hostname = "string",
        Values = new[]
        {
            "string",
        },
        ZoneId = "string",
        Ports = new[]
        {
            0,
        },
    });
    
    example, err := cloudflare.NewHostnameTlsSettingCiphers(ctx, "hostnameTlsSettingCiphersResource", &cloudflare.HostnameTlsSettingCiphersArgs{
    	Hostname: pulumi.String("string"),
    	Values: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	ZoneId: pulumi.String("string"),
    	Ports: pulumi.IntArray{
    		pulumi.Int(0),
    	},
    })
    
    var hostnameTlsSettingCiphersResource = new HostnameTlsSettingCiphers("hostnameTlsSettingCiphersResource", HostnameTlsSettingCiphersArgs.builder()
        .hostname("string")
        .values("string")
        .zoneId("string")
        .ports(0)
        .build());
    
    hostname_tls_setting_ciphers_resource = cloudflare.HostnameTlsSettingCiphers("hostnameTlsSettingCiphersResource",
        hostname="string",
        values=["string"],
        zone_id="string",
        ports=[0])
    
    const hostnameTlsSettingCiphersResource = new cloudflare.HostnameTlsSettingCiphers("hostnameTlsSettingCiphersResource", {
        hostname: "string",
        values: ["string"],
        zoneId: "string",
        ports: [0],
    });
    
    type: cloudflare:HostnameTlsSettingCiphers
    properties:
        hostname: string
        ports:
            - 0
        values:
            - string
        zoneId: string
    

    HostnameTlsSettingCiphers Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The HostnameTlsSettingCiphers resource accepts the following input properties:

    Hostname string
    Hostname that belongs to this zone name. Modifying this attribute will force creation of a new resource.
    Values List<string>
    Ciphers suites value.
    ZoneId string
    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
    Ports List<int>
    Ports to use within the IP rule.
    Hostname string
    Hostname that belongs to this zone name. Modifying this attribute will force creation of a new resource.
    Values []string
    Ciphers suites value.
    ZoneId string
    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
    Ports []int
    Ports to use within the IP rule.
    hostname String
    Hostname that belongs to this zone name. Modifying this attribute will force creation of a new resource.
    values List<String>
    Ciphers suites value.
    zoneId String
    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
    ports List<Integer>
    Ports to use within the IP rule.
    hostname string
    Hostname that belongs to this zone name. Modifying this attribute will force creation of a new resource.
    values string[]
    Ciphers suites value.
    zoneId string
    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
    ports number[]
    Ports to use within the IP rule.
    hostname str
    Hostname that belongs to this zone name. Modifying this attribute will force creation of a new resource.
    values Sequence[str]
    Ciphers suites value.
    zone_id str
    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
    ports Sequence[int]
    Ports to use within the IP rule.
    hostname String
    Hostname that belongs to this zone name. Modifying this attribute will force creation of a new resource.
    values List<String>
    Ciphers suites value.
    zoneId String
    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
    ports List<Number>
    Ports to use within the IP rule.

    Outputs

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

    CreatedAt string
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    CreatedAt string
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    createdAt String
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    createdAt string
    id string
    The provider-assigned unique ID for this managed resource.
    updatedAt string
    created_at str
    id str
    The provider-assigned unique ID for this managed resource.
    updated_at str
    createdAt String
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String

    Look up Existing HostnameTlsSettingCiphers Resource

    Get an existing HostnameTlsSettingCiphers 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?: HostnameTlsSettingCiphersState, opts?: CustomResourceOptions): HostnameTlsSettingCiphers
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[str] = None,
            hostname: Optional[str] = None,
            ports: Optional[Sequence[int]] = None,
            updated_at: Optional[str] = None,
            values: Optional[Sequence[str]] = None,
            zone_id: Optional[str] = None) -> HostnameTlsSettingCiphers
    func GetHostnameTlsSettingCiphers(ctx *Context, name string, id IDInput, state *HostnameTlsSettingCiphersState, opts ...ResourceOption) (*HostnameTlsSettingCiphers, error)
    public static HostnameTlsSettingCiphers Get(string name, Input<string> id, HostnameTlsSettingCiphersState? state, CustomResourceOptions? opts = null)
    public static HostnameTlsSettingCiphers get(String name, Output<String> id, HostnameTlsSettingCiphersState 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:
    CreatedAt string
    Hostname string
    Hostname that belongs to this zone name. Modifying this attribute will force creation of a new resource.
    Ports List<int>
    Ports to use within the IP rule.
    UpdatedAt string
    Values List<string>
    Ciphers suites value.
    ZoneId string
    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
    CreatedAt string
    Hostname string
    Hostname that belongs to this zone name. Modifying this attribute will force creation of a new resource.
    Ports []int
    Ports to use within the IP rule.
    UpdatedAt string
    Values []string
    Ciphers suites value.
    ZoneId string
    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
    createdAt String
    hostname String
    Hostname that belongs to this zone name. Modifying this attribute will force creation of a new resource.
    ports List<Integer>
    Ports to use within the IP rule.
    updatedAt String
    values List<String>
    Ciphers suites value.
    zoneId String
    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
    createdAt string
    hostname string
    Hostname that belongs to this zone name. Modifying this attribute will force creation of a new resource.
    ports number[]
    Ports to use within the IP rule.
    updatedAt string
    values string[]
    Ciphers suites value.
    zoneId string
    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
    created_at str
    hostname str
    Hostname that belongs to this zone name. Modifying this attribute will force creation of a new resource.
    ports Sequence[int]
    Ports to use within the IP rule.
    updated_at str
    values Sequence[str]
    Ciphers suites value.
    zone_id str
    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
    createdAt String
    hostname String
    Hostname that belongs to this zone name. Modifying this attribute will force creation of a new resource.
    ports List<Number>
    Ports to use within the IP rule.
    updatedAt String
    values List<String>
    Ciphers suites value.
    zoneId String
    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.

    Import

    $ pulumi import cloudflare:index/hostnameTlsSettingCiphers:HostnameTlsSettingCiphers example <zone_id>/<hostname>
    

    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 v5.34.0 published on Friday, Jul 12, 2024 by Pulumi