DATASOURCE::SLB::TLSPolicy

DATASOURCE::SLB::TLSPolicy类型用于查询TLS策略详情。

语法

{
  "Type": "DATASOURCE::SLB::TLSPolicy",
  "Properties": {
    "InstanceId": String,
    "RefreshOptions": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

InstanceId

String

TLS 策略实例 ID。

RefreshOptions

String

当资源栈更新时,数据源资源的刷新策略。

有效值:

  • Never(默认值):更新堆栈时,从不刷新数据源资源。

  • Always:更新堆栈时,始终刷新数据源资源。

返回值

Fn::GetAtt

  • Ciphers:支持的加密套件列表。

  • TLSPolicyName:TLS 策略名称。

  • InstanceId:TLS 策略实例 ID。

  • CreateTime:创建时间的时间戳。

  • TlsVersions:支持的 TLS 协议版本。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  InstanceId:
    Type: String
    Description:
      en: The ID of the TLS policy.
    Required: true
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::SLB::TLSPolicy
    Properties:
      InstanceId:
        Ref: InstanceId
Outputs:
  Ciphers:
    Description: The cipher suites supported by the TLS version.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Ciphers
  TLSPolicyName:
    Description: The name of the TLS policy.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - TLSPolicyName
  InstanceId:
    Description: The ID of the TLS policy.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - InstanceId
  CreateTime:
    Description: The timestamp generated when the TLS policy is created.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - CreateTime
  TlsVersions:
    Description: The version of the TLS protocol.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - TlsVersions
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "InstanceId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the TLS policy."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::SLB::TLSPolicy",
      "Properties": {
        "InstanceId": {
          "Ref": "InstanceId"
        }
      }
    }
  },
  "Outputs": {
    "Ciphers": {
      "Description": "The cipher suites supported by the TLS version.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Ciphers"
        ]
      }
    },
    "TLSPolicyName": {
      "Description": "The name of the TLS policy.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "TLSPolicyName"
        ]
      }
    },
    "InstanceId": {
      "Description": "The ID of the TLS policy.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "InstanceId"
        ]
      }
    },
    "CreateTime": {
      "Description": "The timestamp generated when the TLS policy is created.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CreateTime"
        ]
      }
    },
    "TlsVersions": {
      "Description": "The version of the TLS protocol.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "TlsVersions"
        ]
      }
    }
  }
}