getTlsCipherPolicies

This data source provides the Slb Tls Cipher Policies of the current Alibaba Cloud user.

NOTE: Available in v1.135.0+.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.slb.SlbFunctions;
import com.pulumi.alicloud.slb.inputs.GetTlsCipherPoliciesArgs;
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) {
final var ids = SlbFunctions.getTlsCipherPolicies(GetTlsCipherPoliciesArgs.builder()
.ids(
"example_value-1",
"example_value-2")
.build());
ctx.export("slbTlsCipherPolicyId1", ids.applyValue(getTlsCipherPoliciesResult -> getTlsCipherPoliciesResult.policies()[0].id()));
final var nameRegex = SlbFunctions.getTlsCipherPolicies(GetTlsCipherPoliciesArgs.builder()
.nameRegex("^My-TlsCipherPolicy")
.build());
ctx.export("slbTlsCipherPolicyId2", nameRegex.applyValue(getTlsCipherPoliciesResult -> getTlsCipherPoliciesResult.policies()[0].id()));
}
}

Return

A collection of values returned by getTlsCipherPolicies.

Parameters

argument

A collection of arguments for invoking getTlsCipherPolicies.


suspend fun getTlsCipherPolicies(ids: List<String>? = null, includeListener: Boolean? = null, nameRegex: String? = null, outputFile: String? = null, status: String? = null, tlsCipherPolicyName: String? = null): GetTlsCipherPoliciesResult

Return

A collection of values returned by getTlsCipherPolicies.

See also

Parameters

ids

A list of Tls Cipher Policy IDs.

includeListener

The include listener.

nameRegex

A regex string to filter results by Tls Cipher Policy name.

outputFile
status

TLS policy instance state.

tlsCipherPolicyName

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 -.


Return

A collection of values returned by getTlsCipherPolicies.

See also

Parameters

argument

Builder for com.pulumi.alicloud.slb.kotlin.inputs.GetTlsCipherPoliciesPlainArgs.