alicloud.slb.TlsCipherPolicy
Provides a SLB Tls Cipher Policy resource.
For information about SLB Tls Cipher Policy and how to use it, see What is Tls Cipher Policy.
NOTE: Available in v1.135.0+.
Example Usage
Basic Usage
using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = new AliCloud.Slb.TlsCipherPolicy("example", new()
{
Ciphers = new[]
{
"AES256-SHA256",
"AES128-GCM-SHA256",
},
TlsCipherPolicyName = "Test-example_value",
TlsVersions = new[]
{
"TLSv1.2",
},
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/slb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := slb.NewTlsCipherPolicy(ctx, "example", &slb.TlsCipherPolicyArgs{
Ciphers: pulumi.StringArray{
pulumi.String("AES256-SHA256"),
pulumi.String("AES128-GCM-SHA256"),
},
TlsCipherPolicyName: pulumi.String("Test-example_value"),
TlsVersions: pulumi.StringArray{
pulumi.String("TLSv1.2"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.slb.TlsCipherPolicy;
import com.pulumi.alicloud.slb.TlsCipherPolicyArgs;
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 TlsCipherPolicy("example", TlsCipherPolicyArgs.builder()
.ciphers(
"AES256-SHA256",
"AES128-GCM-SHA256")
.tlsCipherPolicyName("Test-example_value")
.tlsVersions("TLSv1.2")
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.slb.TlsCipherPolicy("example",
ciphers=[
"AES256-SHA256",
"AES128-GCM-SHA256",
],
tls_cipher_policy_name="Test-example_value",
tls_versions=["TLSv1.2"])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = new alicloud.slb.TlsCipherPolicy("example", {
ciphers: [
"AES256-SHA256",
"AES128-GCM-SHA256",
],
tlsCipherPolicyName: "Test-example_value",
tlsVersions: ["TLSv1.2"],
});
resources:
example:
type: alicloud:slb:TlsCipherPolicy
properties:
ciphers:
- AES256-SHA256
- AES128-GCM-SHA256
tlsCipherPolicyName: Test-example_value
tlsVersions:
- TLSv1.2
Create TlsCipherPolicy Resource
new TlsCipherPolicy(name: string, args: TlsCipherPolicyArgs, opts?: CustomResourceOptions);
@overload
def TlsCipherPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
ciphers: Optional[Sequence[str]] = None,
tls_cipher_policy_name: Optional[str] = None,
tls_versions: Optional[Sequence[str]] = None)
@overload
def TlsCipherPolicy(resource_name: str,
args: TlsCipherPolicyArgs,
opts: Optional[ResourceOptions] = None)
func NewTlsCipherPolicy(ctx *Context, name string, args TlsCipherPolicyArgs, opts ...ResourceOption) (*TlsCipherPolicy, error)
public TlsCipherPolicy(string name, TlsCipherPolicyArgs args, CustomResourceOptions? opts = null)
public TlsCipherPolicy(String name, TlsCipherPolicyArgs args)
public TlsCipherPolicy(String name, TlsCipherPolicyArgs args, CustomResourceOptions options)
type: alicloud:slb:TlsCipherPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TlsCipherPolicyArgs
- 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 TlsCipherPolicyArgs
- 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 TlsCipherPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TlsCipherPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TlsCipherPolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
TlsCipherPolicy 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 TlsCipherPolicy resource accepts the following input properties:
- Ciphers List<string>
The encryption algorithms supported. It depends on the value of
tls_versions
.- Tls
Cipher stringPolicy Name TLS policy name. Length is from 2 to 128, or in both the English and Chinese characters must be with an uppercase/lowercase letter or a Chinese character and the beginning, may contain numbers, in dot
.
, underscore_
or dash-
.- Tls
Versions List<string> The version of TLS protocol. You can find the corresponding value description in the document center What is Tls Cipher Policy.
- Ciphers []string
The encryption algorithms supported. It depends on the value of
tls_versions
.- Tls
Cipher stringPolicy Name TLS policy name. Length is from 2 to 128, or in both the English and Chinese characters must be with an uppercase/lowercase letter or a Chinese character and the beginning, may contain numbers, in dot
.
, underscore_
or dash-
.- Tls
Versions []string The version of TLS protocol. You can find the corresponding value description in the document center What is Tls Cipher Policy.
- ciphers List<String>
The encryption algorithms supported. It depends on the value of
tls_versions
.- tls
Cipher StringPolicy Name TLS policy name. Length is from 2 to 128, or in both the English and Chinese characters must be with an uppercase/lowercase letter or a Chinese character and the beginning, may contain numbers, in dot
.
, underscore_
or dash-
.- tls
Versions List<String> The version of TLS protocol. You can find the corresponding value description in the document center What is Tls Cipher Policy.
- ciphers string[]
The encryption algorithms supported. It depends on the value of
tls_versions
.- tls
Cipher stringPolicy Name TLS policy name. Length is from 2 to 128, or in both the English and Chinese characters must be with an uppercase/lowercase letter or a Chinese character and the beginning, may contain numbers, in dot
.
, underscore_
or dash-
.- tls
Versions string[] The version of TLS protocol. You can find the corresponding value description in the document center What is Tls Cipher Policy.
- ciphers Sequence[str]
The encryption algorithms supported. It depends on the value of
tls_versions
.- tls_
cipher_ strpolicy_ name TLS policy name. Length is from 2 to 128, or in both the English and Chinese characters must be with an uppercase/lowercase letter or a Chinese character and the beginning, may contain numbers, in dot
.
, underscore_
or dash-
.- tls_
versions Sequence[str] The version of TLS protocol. You can find the corresponding value description in the document center What is Tls Cipher Policy.
- ciphers List<String>
The encryption algorithms supported. It depends on the value of
tls_versions
.- tls
Cipher StringPolicy Name TLS policy name. Length is from 2 to 128, or in both the English and Chinese characters must be with an uppercase/lowercase letter or a Chinese character and the beginning, may contain numbers, in dot
.
, underscore_
or dash-
.- tls
Versions List<String> The version of TLS protocol. You can find the corresponding value description in the document center What is Tls Cipher Policy.
Outputs
All input properties are implicitly available as output properties. Additionally, the TlsCipherPolicy resource produces the following output properties:
Look up Existing TlsCipherPolicy Resource
Get an existing TlsCipherPolicy 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?: TlsCipherPolicyState, opts?: CustomResourceOptions): TlsCipherPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
ciphers: Optional[Sequence[str]] = None,
status: Optional[str] = None,
tls_cipher_policy_name: Optional[str] = None,
tls_versions: Optional[Sequence[str]] = None) -> TlsCipherPolicy
func GetTlsCipherPolicy(ctx *Context, name string, id IDInput, state *TlsCipherPolicyState, opts ...ResourceOption) (*TlsCipherPolicy, error)
public static TlsCipherPolicy Get(string name, Input<string> id, TlsCipherPolicyState? state, CustomResourceOptions? opts = null)
public static TlsCipherPolicy get(String name, Output<String> id, TlsCipherPolicyState 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.
- Ciphers List<string>
The encryption algorithms supported. It depends on the value of
tls_versions
.- Status string
TLS policy instance state.
- Tls
Cipher stringPolicy Name TLS policy name. Length is from 2 to 128, or in both the English and Chinese characters must be with an uppercase/lowercase letter or a Chinese character and the beginning, may contain numbers, in dot
.
, underscore_
or dash-
.- Tls
Versions List<string> The version of TLS protocol. You can find the corresponding value description in the document center What is Tls Cipher Policy.
- Ciphers []string
The encryption algorithms supported. It depends on the value of
tls_versions
.- Status string
TLS policy instance state.
- Tls
Cipher stringPolicy Name TLS policy name. Length is from 2 to 128, or in both the English and Chinese characters must be with an uppercase/lowercase letter or a Chinese character and the beginning, may contain numbers, in dot
.
, underscore_
or dash-
.- Tls
Versions []string The version of TLS protocol. You can find the corresponding value description in the document center What is Tls Cipher Policy.
- ciphers List<String>
The encryption algorithms supported. It depends on the value of
tls_versions
.- status String
TLS policy instance state.
- tls
Cipher StringPolicy Name TLS policy name. Length is from 2 to 128, or in both the English and Chinese characters must be with an uppercase/lowercase letter or a Chinese character and the beginning, may contain numbers, in dot
.
, underscore_
or dash-
.- tls
Versions List<String> The version of TLS protocol. You can find the corresponding value description in the document center What is Tls Cipher Policy.
- ciphers string[]
The encryption algorithms supported. It depends on the value of
tls_versions
.- status string
TLS policy instance state.
- tls
Cipher stringPolicy Name TLS policy name. Length is from 2 to 128, or in both the English and Chinese characters must be with an uppercase/lowercase letter or a Chinese character and the beginning, may contain numbers, in dot
.
, underscore_
or dash-
.- tls
Versions string[] The version of TLS protocol. You can find the corresponding value description in the document center What is Tls Cipher Policy.
- ciphers Sequence[str]
The encryption algorithms supported. It depends on the value of
tls_versions
.- status str
TLS policy instance state.
- tls_
cipher_ strpolicy_ name TLS policy name. Length is from 2 to 128, or in both the English and Chinese characters must be with an uppercase/lowercase letter or a Chinese character and the beginning, may contain numbers, in dot
.
, underscore_
or dash-
.- tls_
versions Sequence[str] The version of TLS protocol. You can find the corresponding value description in the document center What is Tls Cipher Policy.
- ciphers List<String>
The encryption algorithms supported. It depends on the value of
tls_versions
.- status String
TLS policy instance state.
- tls
Cipher StringPolicy Name TLS policy name. Length is from 2 to 128, or in both the English and Chinese characters must be with an uppercase/lowercase letter or a Chinese character and the beginning, may contain numbers, in dot
.
, underscore_
or dash-
.- tls
Versions List<String> The version of TLS protocol. You can find the corresponding value description in the document center What is Tls Cipher Policy.
Import
SLB Tls Cipher Policy can be imported using the id, e.g.
$ pulumi import alicloud:slb/tlsCipherPolicy:TlsCipherPolicy example <id>
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.