Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi
alicloud.slb.getTlsCipherPolicies
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const ids = alicloud.slb.getTlsCipherPolicies({
ids: [
"example_value-1",
"example_value-2",
],
});
export const slbTlsCipherPolicyId1 = ids.then(ids => ids.policies?.[0]?.id);
const nameRegex = alicloud.slb.getTlsCipherPolicies({
nameRegex: "^My-TlsCipherPolicy",
});
export const slbTlsCipherPolicyId2 = nameRegex.then(nameRegex => nameRegex.policies?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
ids = alicloud.slb.get_tls_cipher_policies(ids=[
"example_value-1",
"example_value-2",
])
pulumi.export("slbTlsCipherPolicyId1", ids.policies[0].id)
name_regex = alicloud.slb.get_tls_cipher_policies(name_regex="^My-TlsCipherPolicy")
pulumi.export("slbTlsCipherPolicyId2", name_regex.policies[0].id)
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 {
ids, err := slb.GetTlsCipherPolicies(ctx, &slb.GetTlsCipherPoliciesArgs{
Ids: []string{
"example_value-1",
"example_value-2",
},
}, nil)
if err != nil {
return err
}
ctx.Export("slbTlsCipherPolicyId1", ids.Policies[0].Id)
nameRegex, err := slb.GetTlsCipherPolicies(ctx, &slb.GetTlsCipherPoliciesArgs{
NameRegex: pulumi.StringRef("^My-TlsCipherPolicy"),
}, nil)
if err != nil {
return err
}
ctx.Export("slbTlsCipherPolicyId2", nameRegex.Policies[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var ids = AliCloud.Slb.GetTlsCipherPolicies.Invoke(new()
{
Ids = new[]
{
"example_value-1",
"example_value-2",
},
});
var nameRegex = AliCloud.Slb.GetTlsCipherPolicies.Invoke(new()
{
NameRegex = "^My-TlsCipherPolicy",
});
return new Dictionary<string, object?>
{
["slbTlsCipherPolicyId1"] = ids.Apply(getTlsCipherPoliciesResult => getTlsCipherPoliciesResult.Policies[0]?.Id),
["slbTlsCipherPolicyId2"] = nameRegex.Apply(getTlsCipherPoliciesResult => getTlsCipherPoliciesResult.Policies[0]?.Id),
};
});
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()));
}
}
variables:
ids:
fn::invoke:
Function: alicloud:slb:getTlsCipherPolicies
Arguments:
ids:
- example_value-1
- example_value-2
nameRegex:
fn::invoke:
Function: alicloud:slb:getTlsCipherPolicies
Arguments:
nameRegex: ^My-TlsCipherPolicy
outputs:
slbTlsCipherPolicyId1: ${ids.policies[0].id}
slbTlsCipherPolicyId2: ${nameRegex.policies[0].id}
Using getTlsCipherPolicies
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getTlsCipherPolicies(args: GetTlsCipherPoliciesArgs, opts?: InvokeOptions): Promise<GetTlsCipherPoliciesResult>
function getTlsCipherPoliciesOutput(args: GetTlsCipherPoliciesOutputArgs, opts?: InvokeOptions): Output<GetTlsCipherPoliciesResult>
def get_tls_cipher_policies(ids: Optional[Sequence[str]] = None,
include_listener: Optional[bool] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
status: Optional[str] = None,
tls_cipher_policy_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTlsCipherPoliciesResult
def get_tls_cipher_policies_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
include_listener: Optional[pulumi.Input[bool]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
tls_cipher_policy_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTlsCipherPoliciesResult]
func GetTlsCipherPolicies(ctx *Context, args *GetTlsCipherPoliciesArgs, opts ...InvokeOption) (*GetTlsCipherPoliciesResult, error)
func GetTlsCipherPoliciesOutput(ctx *Context, args *GetTlsCipherPoliciesOutputArgs, opts ...InvokeOption) GetTlsCipherPoliciesResultOutput
> Note: This function is named GetTlsCipherPolicies
in the Go SDK.
public static class GetTlsCipherPolicies
{
public static Task<GetTlsCipherPoliciesResult> InvokeAsync(GetTlsCipherPoliciesArgs args, InvokeOptions? opts = null)
public static Output<GetTlsCipherPoliciesResult> Invoke(GetTlsCipherPoliciesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetTlsCipherPoliciesResult> getTlsCipherPolicies(GetTlsCipherPoliciesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:slb/getTlsCipherPolicies:getTlsCipherPolicies
arguments:
# arguments dictionary
The following arguments are supported:
- Ids List<string>
- A list of Tls Cipher Policy IDs.
- Include
Listener bool - The include listener.
- Name
Regex string - A regex string to filter results by Tls Cipher Policy name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Status string
- TLS policy instance state. Valid values:
configuring
,normal
. - 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-
.
- Ids []string
- A list of Tls Cipher Policy IDs.
- Include
Listener bool - The include listener.
- Name
Regex string - A regex string to filter results by Tls Cipher Policy name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Status string
- TLS policy instance state. Valid values:
configuring
,normal
. - 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-
.
- ids List<String>
- A list of Tls Cipher Policy IDs.
- include
Listener Boolean - The include listener.
- name
Regex String - A regex string to filter results by Tls Cipher Policy name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - status String
- TLS policy instance state. Valid values:
configuring
,normal
. - 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-
.
- ids string[]
- A list of Tls Cipher Policy IDs.
- include
Listener boolean - The include listener.
- name
Regex string - A regex string to filter results by Tls Cipher Policy name.
- output
File string - File name where to save data source results (after running
pulumi preview
). - status string
- TLS policy instance state. Valid values:
configuring
,normal
. - 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-
.
- ids Sequence[str]
- A list of Tls Cipher Policy IDs.
- include_
listener bool - The include listener.
- name_
regex str - A regex string to filter results by Tls Cipher Policy name.
- output_
file str - File name where to save data source results (after running
pulumi preview
). - status str
- TLS policy instance state. Valid values:
configuring
,normal
. - 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-
.
- ids List<String>
- A list of Tls Cipher Policy IDs.
- include
Listener Boolean - The include listener.
- name
Regex String - A regex string to filter results by Tls Cipher Policy name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - status String
- TLS policy instance state. Valid values:
configuring
,normal
. - 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-
.
getTlsCipherPolicies Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Names List<string>
- Policies
List<Pulumi.
Ali Cloud. Slb. Outputs. Get Tls Cipher Policies Policy> - Include
Listener bool - Name
Regex string - Output
File string - Status string
- Tls
Cipher stringPolicy Name
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- Policies
[]Get
Tls Cipher Policies Policy - Include
Listener bool - Name
Regex string - Output
File string - Status string
- Tls
Cipher stringPolicy Name
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- policies
List<Get
Tls Cipher Policies Policy> - include
Listener Boolean - name
Regex String - output
File String - status String
- tls
Cipher StringPolicy Name
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- policies
Get
Tls Cipher Policies Policy[] - include
Listener boolean - name
Regex string - output
File string - status string
- tls
Cipher stringPolicy Name
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- policies
Sequence[Get
Tls Cipher Policies Policy] - include_
listener bool - name_
regex str - output_
file str - status str
- tls_
cipher_ strpolicy_ name
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- policies List<Property Map>
- include
Listener Boolean - name
Regex String - output
File String - status String
- tls
Cipher StringPolicy Name
Supporting Types
GetTlsCipherPoliciesPolicy
- Ciphers List<string>
- The encryption algorithms supported. It depends on the value of
tls_versions
. - Create
Time string - The creation time timestamp.
- Id string
- The ID of the Tls Cipher Policy.
- Relate
Listeners List<Pulumi.Ali Cloud. Slb. Inputs. Get Tls Cipher Policies Policy Relate Listener> - Array of Relate Listeners.
- Status string
- TLS policy instance state.
- Tls
Cipher stringPolicy Id - The ID of TLS cipher policy.
- 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.
- Ciphers []string
- The encryption algorithms supported. It depends on the value of
tls_versions
. - Create
Time string - The creation time timestamp.
- Id string
- The ID of the Tls Cipher Policy.
- Relate
Listeners []GetTls Cipher Policies Policy Relate Listener - Array of Relate Listeners.
- Status string
- TLS policy instance state.
- Tls
Cipher stringPolicy Id - The ID of TLS cipher policy.
- 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.
- ciphers List<String>
- The encryption algorithms supported. It depends on the value of
tls_versions
. - create
Time String - The creation time timestamp.
- id String
- The ID of the Tls Cipher Policy.
- relate
Listeners List<GetTls Cipher Policies Policy Relate Listener> - Array of Relate Listeners.
- status String
- TLS policy instance state.
- tls
Cipher StringPolicy Id - The ID of TLS cipher policy.
- 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.
- ciphers string[]
- The encryption algorithms supported. It depends on the value of
tls_versions
. - create
Time string - The creation time timestamp.
- id string
- The ID of the Tls Cipher Policy.
- relate
Listeners GetTls Cipher Policies Policy Relate Listener[] - Array of Relate Listeners.
- status string
- TLS policy instance state.
- tls
Cipher stringPolicy Id - The ID of TLS cipher policy.
- 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.
- ciphers Sequence[str]
- The encryption algorithms supported. It depends on the value of
tls_versions
. - create_
time str - The creation time timestamp.
- id str
- The ID of the Tls Cipher Policy.
- relate_
listeners Sequence[GetTls Cipher Policies Policy Relate Listener] - Array of Relate Listeners.
- status str
- TLS policy instance state.
- tls_
cipher_ strpolicy_ id - The ID of TLS cipher policy.
- 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.
- ciphers List<String>
- The encryption algorithms supported. It depends on the value of
tls_versions
. - create
Time String - The creation time timestamp.
- id String
- The ID of the Tls Cipher Policy.
- relate
Listeners List<Property Map> - Array of Relate Listeners.
- status String
- TLS policy instance state.
- tls
Cipher StringPolicy Id - The ID of TLS cipher policy.
- 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.
GetTlsCipherPoliciesPolicyRelateListener
- Load
Balancer stringId - The ID of SLB instance.
- Port int
- Listening port. Valid value: 1 to 65535.
- Protocol string
- Snooping protocols. Valid values:
TCP
,UDP
,HTTP
, orHTTPS
.
- Load
Balancer stringId - The ID of SLB instance.
- Port int
- Listening port. Valid value: 1 to 65535.
- Protocol string
- Snooping protocols. Valid values:
TCP
,UDP
,HTTP
, orHTTPS
.
- load
Balancer StringId - The ID of SLB instance.
- port Integer
- Listening port. Valid value: 1 to 65535.
- protocol String
- Snooping protocols. Valid values:
TCP
,UDP
,HTTP
, orHTTPS
.
- load
Balancer stringId - The ID of SLB instance.
- port number
- Listening port. Valid value: 1 to 65535.
- protocol string
- Snooping protocols. Valid values:
TCP
,UDP
,HTTP
, orHTTPS
.
- load_
balancer_ strid - The ID of SLB instance.
- port int
- Listening port. Valid value: 1 to 65535.
- protocol str
- Snooping protocols. Valid values:
TCP
,UDP
,HTTP
, orHTTPS
.
- load
Balancer StringId - The ID of SLB instance.
- port Number
- Listening port. Valid value: 1 to 65535.
- protocol String
- Snooping protocols. Valid values:
TCP
,UDP
,HTTP
, orHTTPS
.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.