alicloud.slb.TlsCipherPolicy
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = new alicloud.slb.TlsCipherPolicy("example", {
tlsCipherPolicyName: "Test-example_value",
tlsVersions: ["TLSv1.2"],
ciphers: [
"AES256-SHA256",
"AES128-GCM-SHA256",
],
});
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.slb.TlsCipherPolicy("example",
tls_cipher_policy_name="Test-example_value",
tls_versions=["TLSv1.2"],
ciphers=[
"AES256-SHA256",
"AES128-GCM-SHA256",
])
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{
TlsCipherPolicyName: pulumi.String("Test-example_value"),
TlsVersions: pulumi.StringArray{
pulumi.String("TLSv1.2"),
},
Ciphers: pulumi.StringArray{
pulumi.String("AES256-SHA256"),
pulumi.String("AES128-GCM-SHA256"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = new AliCloud.Slb.TlsCipherPolicy("example", new()
{
TlsCipherPolicyName = "Test-example_value",
TlsVersions = new[]
{
"TLSv1.2",
},
Ciphers = new[]
{
"AES256-SHA256",
"AES128-GCM-SHA256",
},
});
});
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()
.tlsCipherPolicyName("Test-example_value")
.tlsVersions("TLSv1.2")
.ciphers(
"AES256-SHA256",
"AES128-GCM-SHA256")
.build());
}
}
resources:
example:
type: alicloud:slb:TlsCipherPolicy
properties:
tlsCipherPolicyName: Test-example_value
tlsVersions:
- TLSv1.2
ciphers:
- AES256-SHA256
- AES128-GCM-SHA256
Create TlsCipherPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TlsCipherPolicy(name: string, args: TlsCipherPolicyArgs, opts?: CustomResourceOptions);
@overload
def TlsCipherPolicy(resource_name: str,
args: TlsCipherPolicyArgs,
opts: Optional[ResourceOptions] = None)
@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)
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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var tlsCipherPolicyResource = new AliCloud.Slb.TlsCipherPolicy("tlsCipherPolicyResource", new()
{
Ciphers = new[]
{
"string",
},
TlsCipherPolicyName = "string",
TlsVersions = new[]
{
"string",
},
});
example, err := slb.NewTlsCipherPolicy(ctx, "tlsCipherPolicyResource", &slb.TlsCipherPolicyArgs{
Ciphers: pulumi.StringArray{
pulumi.String("string"),
},
TlsCipherPolicyName: pulumi.String("string"),
TlsVersions: pulumi.StringArray{
pulumi.String("string"),
},
})
var tlsCipherPolicyResource = new TlsCipherPolicy("tlsCipherPolicyResource", TlsCipherPolicyArgs.builder()
.ciphers("string")
.tlsCipherPolicyName("string")
.tlsVersions("string")
.build());
tls_cipher_policy_resource = alicloud.slb.TlsCipherPolicy("tlsCipherPolicyResource",
ciphers=["string"],
tls_cipher_policy_name="string",
tls_versions=["string"])
const tlsCipherPolicyResource = new alicloud.slb.TlsCipherPolicy("tlsCipherPolicyResource", {
ciphers: ["string"],
tlsCipherPolicyName: "string",
tlsVersions: ["string"],
});
type: alicloud:slb:TlsCipherPolicy
properties:
ciphers:
- string
tlsCipherPolicyName: string
tlsVersions:
- string
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>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.