public class CreateSecurityPolicyRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 类和说明 |
|---|---|
static class |
CreateSecurityPolicyRequest.CreateSecurityPolicyRequestTag |
| 限定符和类型 | 字段和说明 |
|---|---|
List<String> |
ciphers
The supported cipher suites, which are determined by the TLS protocol version.
|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
Boolean |
dryRun
Specifies whether only to precheck the request.
|
String |
regionId
The ID of the region where the NLB instance is deployed.
|
String |
resourceGroupId
The ID of the resource group.
|
String |
securityPolicyName
The name of the security policy.
|
List<CreateSecurityPolicyRequest.CreateSecurityPolicyRequestTag> |
tag
标签列表。
|
List<String> |
tlsVersions
The supported versions of the Transport Layer Security (TLS) protocol.
|
| 构造器和说明 |
|---|
CreateSecurityPolicyRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static CreateSecurityPolicyRequest |
build(Map<String,?> map) |
List<String> |
getCiphers() |
String |
getClientToken() |
Boolean |
getDryRun() |
String |
getRegionId() |
String |
getResourceGroupId() |
String |
getSecurityPolicyName() |
List<CreateSecurityPolicyRequest.CreateSecurityPolicyRequestTag> |
getTag() |
List<String> |
getTlsVersions() |
CreateSecurityPolicyRequest |
setCiphers(List<String> ciphers) |
CreateSecurityPolicyRequest |
setClientToken(String clientToken) |
CreateSecurityPolicyRequest |
setDryRun(Boolean dryRun) |
CreateSecurityPolicyRequest |
setRegionId(String regionId) |
CreateSecurityPolicyRequest |
setResourceGroupId(String resourceGroupId) |
CreateSecurityPolicyRequest |
setSecurityPolicyName(String securityPolicyName) |
CreateSecurityPolicyRequest |
setTag(List<CreateSecurityPolicyRequest.CreateSecurityPolicyRequestTag> tag) |
CreateSecurityPolicyRequest |
setTlsVersions(List<String> tlsVersions) |
@NameInMap(value="Ciphers") public List<String> ciphers
The supported cipher suites, which are determined by the TLS protocol version. You can specify at most 32 cipher suites.
TLS 1.0 and TLS 1.1 support the following cipher suites:
* **ECDHE-ECDSA-AES128-SHA**
* **ECDHE-ECDSA-AES256-SHA**
* **ECDHE-RSA-AES128-SHA**
* **ECDHE-RSA-AES256-SHA**
* **AES128-SHA**
* **AES256-SHA**
* **DES-CBC3-SHA**
TLS 1.2 supports the following cipher suites:
* **ECDHE-ECDSA-AES128-SHA**
* **ECDHE-ECDSA-AES256-SHA**
* **ECDHE-RSA-AES128-SHA**
* **ECDHE-RSA-AES256-SHA**
* **AES128-SHA**
* **AES256-SHA**
* **DES-CBC3-SHA**
* **ECDHE-ECDSA-AES128-GCM-SHA256**
* **ECDHE-ECDSA-AES256-GCM-SHA384**
* **ECDHE-ECDSA-AES128-SHA256**
* **ECDHE-ECDSA-AES256-SHA384**
* **ECDHE-RSA-AES128-GCM-SHA256**
* **ECDHE-RSA-AES256-GCM-SHA384**
* **ECDHE-RSA-AES128-SHA256**
* **ECDHE-RSA-AES256-SHA384**
* **AES128-GCM-SHA256**
* **AES256-GCM-SHA384**
* **AES128-SHA256**
* **AES256-SHA256**
TLS 1.3 supports the following cipher suites:
* **TLS_AES\_128\_GCM_SHA256**
* **TLS_AES\_256\_GCM_SHA384**
* **TLS_CHACHA20\_POLY1305\_SHA256**
* **TLS_AES\_128\_CCM_SHA256**
* **TLS_AES\_128\_CCM\_8\_SHA256**
@NameInMap(value="ClientToken") public String clientToken
The client token that is used to ensure the idempotence of the request.
You can use the client to generate the value, but you must ensure that it is unique among all requests. ClientToken can contain only ASCII characters.
> If you do not set this parameter, **ClientToken** is set to the value of **RequestId**. The value of **RequestId** for each API request may be different.
@NameInMap(value="DryRun") public Boolean dryRun
Specifies whether only to precheck the request. Valid values:
* **true**: checks the request but does not create the security policy. The system prechecks the required parameters, request syntax, and limits. If the request fails the precheck, an error message is returned. If the request passes the precheck, the `DryRunOperation` error code is returned.
* **false** (default): sends the request. If the request passes the precheck, an HTTP 2xx status code is returned and the operation is performed.
@NameInMap(value="RegionId") public String regionId
The ID of the region where the NLB instance is deployed.
You can call the [DescribeRegions](~~443657~~) operation to query the most recent region list.
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the resource group.
@NameInMap(value="SecurityPolicyName") public String securityPolicyName
The name of the security policy.
The name must be 1 to 200 characters in length, and can contain letters, digits, periods (.), underscores (\_), and hyphens (-).
@NameInMap(value="Tag") public List<CreateSecurityPolicyRequest.CreateSecurityPolicyRequestTag> tag
标签列表。
public static CreateSecurityPolicyRequest build(Map<String,?> map) throws Exception
Exceptionpublic CreateSecurityPolicyRequest setCiphers(List<String> ciphers)
public CreateSecurityPolicyRequest setClientToken(String clientToken)
public String getClientToken()
public CreateSecurityPolicyRequest setDryRun(Boolean dryRun)
public Boolean getDryRun()
public CreateSecurityPolicyRequest setRegionId(String regionId)
public String getRegionId()
public CreateSecurityPolicyRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public CreateSecurityPolicyRequest setSecurityPolicyName(String securityPolicyName)
public String getSecurityPolicyName()
public CreateSecurityPolicyRequest setTag(List<CreateSecurityPolicyRequest.CreateSecurityPolicyRequestTag> tag)
public List<CreateSecurityPolicyRequest.CreateSecurityPolicyRequestTag> getTag()
public CreateSecurityPolicyRequest setTlsVersions(List<String> tlsVersions)
Copyright © 2023. All rights reserved.