Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::OOS::SecretParameter

Última atualização: Jun 27, 2026

Cria um parâmetro criptografado.

Sintaxe

{
  "Type": "ALIYUN::OOS::SecretParameter",
  "Properties": {
    "Description": String,
    "Constraints": Map,
    "ResourceGroupId": String,
    "SecretParameterName": String,
    "Value": String,
    "KeyId": String,
    "Tags": List
  }
}

Propriedades

Propriedade

Tipo

Obrigatório

Editável

Descrição

Restrição

Description

String

Não

Sim

Descrição do parâmetro.

A descrição pode ter até 200 caracteres.

Constraints

Map

Não

Não

Restrições do parâmetro.

Valores válidos:

  • AllowedValues: valores válidos para o parâmetro. Devem ser strings em formato de array.

  • AllowedPattern: padrão válido para o parâmetro. Deve ser uma expressão regular.

  • MinLength: comprimento mínimo do valor do parâmetro.

  • MaxLength: comprimento máximo do valor do parâmetro.

ResourceGroupId

String

Não

Sim

ID do grupo de recursos ao qual o parâmetro pertence.

Nenhuma.

SecretParameterName

String

Sim

Não

Nome do parâmetro.

O nome pode ter até 180 caracteres e conter letras, dígitos, hifens (-) e sublinhados (_). Não pode começar com ALIYUN, ACS, ALIBABA, ALICLOUD ou OOS.

Value

String

Sim

Sim

Valor do parâmetro.

O valor pode ter até 4.096 caracteres.

KeyId

String

Não

Não

ID da chave do Key Management Service (KMS) usada para criptografar o parâmetro.

Nenhuma.

Tags

List

Não

Sim

Tags do parâmetro.

É possível adicionar até 20 tags.

Para mais informações, consulte Propriedades de Tags.

Sintaxe de Tags

"Tags": [
  {
    "Value": String,
    "Key": String
  }
]

Propriedades de Tags

Propriedade

Tipo

Obrigatório

Editável

Descrição

Restrição

Value

String

Não

Não

Valor da tag.

O valor da tag pode ter até 128 caracteres e não pode conter http:// ou https://. Não pode começar com aliyun ou acs:.

Key

String

Sim

Não

Chave da tag.

A chave da tag deve ter entre 1 e 128 caracteres e não pode conter http:// ou https://. Não pode começar com aliyun ou acs:.

Valores de retorno

Fn::GetAtt

  • Description: descrição do parâmetro.

  • CreatedBy: usuário que criou o parâmetro.

  • ResourceGroupId: ID do grupo de recursos ao qual o parâmetro pertence.

  • SecretParameterName: nome do parâmetro.

  • UpdatedDate: hora da última atualização do parâmetro.

  • CreateTime: hora de criação do parâmetro.

  • KeyId: ID da chave do KMS usada para criptografar o parâmetro.

  • SecretParameterId: ID do parâmetro.

  • UpdatedBy: usuário que atualizou o parâmetro.

  • Type: tipo do parâmetro.

  • Constraint: restrições do parâmetro.

  • ParameterVersion: versão do parâmetro.

  • Tags: tags do parâmetro.

  • ShareType: tipo de compartilhamento do parâmetro.

Exemplos

  • Formato YAML

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters: {}
    Resources:
      ExtensionResource:
        Type: ALIYUN::OOS::SecretParameter
        Properties:
          Constraints: '{"AllowedValues":["secretparameter"],"AllowedPattern":"secretparameter","MinLength":0,"MaxLength":20}'
          SecretParameterName: MySecretParameter
          Value: SecretParameter
          KeyId: 80e9409f-78fa-42ab-84bd-83f40c******
    Outputs:
      Description:
        Description: The description of the encryption parameter.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - Description
      CreatedBy:
        Description: The user who created the encryption parameter.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - CreatedBy
      ResourceGroupId:
        Description: The ID of resource group.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - ResourceGroupId
      SecretParameterName:
        Description: The name of the encryption parameter.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - SecretParameterName
      UpdatedDate:
        Description: The time when the encryption parameter was updated.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - UpdatedDate
      CreateTime:
        Description: The time when the encryption parameter was created.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - CreateTime
      KeyId:
        Description: The Customer Master Key (CMK) of Key Management Service (KMS) that is used to encrypt the parameter.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - KeyId
      SecretParameterId:
        Description: The ID of the encryption parameter.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - SecretParameterId
      UpdatedBy:
        Description: The user who updated the encryption parameter.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - UpdatedBy
      Type:
        Description: The data type of the encryption parameter.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - Type
      Constraints:
        Description: The constraints of the encryption parameter.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - Constraints
      ParameterVersion:
        Description: The version number of the encryption parameter.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - ParameterVersion
      Tags:
        Description: Tags of encryption parameter.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - Tags
      ShareType:
        Description: The share type of the encryption parameter.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - ShareType
  • Formato JSON

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
      },
      "Resources": {
        "ExtensionResource": {
          "Type": "ALIYUN::OOS::SecretParameter",
          "Properties": {
            "Constraints": "{\"AllowedValues\":[\"secretparameter\"],\"AllowedPattern\":\"secretparameter\",\"MinLength\":0,\"MaxLength\":20}",
            "SecretParameterName": "MySecretParameter",
            "Value": "SecretParameter",
            "KeyId": "80e9409f-78fa-42ab-84bd-83f40c******"
          }
        }
      },
      "Outputs": {
        "Description": {
          "Description": "The description of the encryption parameter.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "Description"
            ]
          }
        },
        "CreatedBy": {
          "Description": "The user who created the encryption parameter.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "CreatedBy"
            ]
          }
        },
        "ResourceGroupId": {
          "Description": "The ID of resource group.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "ResourceGroupId"
            ]
          }
        },
        "SecretParameterName": {
          "Description": "The name of the encryption parameter.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "SecretParameterName"
            ]
          }
        },
        "UpdatedDate": {
          "Description": "The time when the encryption parameter was updated.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "UpdatedDate"
            ]
          }
        },
        "CreateTime": {
          "Description": "The time when the encryption parameter was created.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "CreateTime"
            ]
          }
        },
        "KeyId": {
          "Description": "The Customer Master Key (CMK) of Key Management Service (KMS) that is used to encrypt the parameter.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "KeyId"
            ]
          }
        },
        "SecretParameterId": {
          "Description": "The ID of the encryption parameter.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "SecretParameterId"
            ]
          }
        },
        "UpdatedBy": {
          "Description": "The user who updated the encryption parameter.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "UpdatedBy"
            ]
          }
        },
        "Type": {
          "Description": "The data type of the encryption parameter.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "Type"
            ]
          }
        },
        "Constraints": {
          "Description": "The constraints of the encryption parameter.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "Constraints"
            ]
          }
        },
        "ParameterVersion": {
          "Description": "The version number of the encryption parameter.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "ParameterVersion"
            ]
          }
        },
        "Tags": {
          "Description": "Tags of encryption parameter.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "Tags"
            ]
          }
        },
        "ShareType": {
          "Description": "The share type of the encryption parameter.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "ShareType"
            ]
          }
        }
      }
    }