Cria uma configuração de acesso para o CloudSSO.
Sintaxe
{
"Type": "ALIYUN::CloudSSO::AccessConfiguration",
"Properties": {
"SessionDuration": Integer,
"AccessConfigurationName": String,
"DirectoryId": String,
"RelayState": String,
"Description": String
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatório |
Editável |
Descrição |
Restrição |
|
AccessConfigurationName |
String |
Sim |
Não |
Nome da configuração de acesso. |
O nome pode conter letras, dígitos e hifens (-). Tamanho máximo: 32 caracteres. |
|
DirectoryId |
String |
Sim |
Não |
ID do diretório. |
Nenhuma. |
|
Description |
String |
Não |
Sim |
Descrição da configuração de acesso. |
Tamanho máximo: 1.024 caracteres. |
|
RelayState |
String |
Não |
Sim |
Página inicial exibida quando um usuário do CloudSSO acessa uma conta no diretório de recursos por meio da configuração de acesso. |
A página deve pertencer ao Alibaba Cloud Management Console. Por padrão, esta propriedade fica vazia e a página inicial corresponde à home page do Alibaba Cloud Management Console. |
|
SessionDuration |
Integer |
Não |
Sim |
Duração da sessão de acesso de um usuário do CloudSSO a uma conta no diretório de recursos por meio da configuração de acesso. |
Unidade: segundos. Valores válidos: 900 a 43200. O valor 900 equivale a 15 minutos; 43200, a 12 horas. Valor padrão: 3600 (1 hora). |
Valores de retorno
Fn::GetAtt
AccessConfigurationId: ID da configuração de acesso.
Exemplos
Formato YAML
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
AccessConfigurationName:
AllowedPattern: ^[a-zA-Z0-9-]{1,32}$
Description:
en: 'The name of the access configuration.
The name can contain letters, digits, and hyphens (-).
The name can be up to 32 characters in length.'
Required: true
Type: String
Description:
AssociationProperty: TextArea
Description:
en: 'The description of the access configuration.
The description can be up to 1,024 characters in length.'
MaxLength: 1024
Required: false
Type: String
DirectoryId:
Description:
en: The ID of the directory.
Required: true
Type: String
RelayState:
Description:
en: 'The initial web page that is displayed after a CloudSSO user accesses an
account in your resource directory by using the access configuration.
The web page must be a page of the Alibaba Cloud Management Console. By default,
this parameter is empty, which indicates that the initial web page is the
homepage of the Alibaba Cloud Management Console.'
Required: false
Type: String
SessionDuration:
Description:
en: 'The duration of a session in which a CloudSSO user accesses an account
in your resource directory by using the access configuration.
Unit: seconds.
Valid values: 900 to 43200. The value 900 indicates 15 minutes. The value
43200 indicates 12 hours.
Default value: 3600. The value indicates 1 hour.'
MaxValue: 43200
MinValue: 900
Required: false
Type: Number
Resources:
AccessConfiguration:
Properties:
AccessConfigurationName:
Ref: AccessConfigurationName
Description:
Ref: Description
DirectoryId:
Ref: DirectoryId
RelayState:
Ref: RelayState
SessionDuration:
Ref: SessionDuration
Type: ALIYUN::CloudSSO::AccessConfiguration
Outputs:
AccessConfigurationId:
Description: The ID of the access configuration.
Value:
Fn::GetAtt:
- AccessConfiguration
- AccessConfigurationId
Formato JSON
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"SessionDuration": {
"Type": "Number",
"Description": {
"en": "The duration of a session in which a CloudSSO user accesses an account in your resource directory by using the access configuration.\nUnit: seconds.\nValid values: 900 to 43200. The value 900 indicates 15 minutes. The value 43200 indicates 12 hours.\nDefault value: 3600. The value indicates 1 hour."
},
"Required": false,
"MinValue": 900,
"MaxValue": 43200
},
"AccessConfigurationName": {
"Type": "String",
"Description": {
"en": "The name of the access configuration.\nThe name can contain letters, digits, and hyphens (-).\nThe name can be up to 32 characters in length."
},
"AllowedPattern": "^[a-zA-Z0-9-]{1,32}$",
"Required": true
},
"DirectoryId": {
"Type": "String",
"Description": {
"en": "The ID of the directory."
},
"Required": true
},
"RelayState": {
"Type": "String",
"Description": {
"en": "The initial web page that is displayed after a CloudSSO user accesses an account in your resource directory by using the access configuration.\nThe web page must be a page of the Alibaba Cloud Management Console. By default, this parameter is empty, which indicates that the initial web page is the homepage of the Alibaba Cloud Management Console."
},
"Required": false
},
"Description": {
"AssociationProperty": "TextArea",
"Type": "String",
"Description": {
"en": "The description of the access configuration.\nThe description can be up to 1,024 characters in length."
},
"Required": false,
"MaxLength": 1024
}
},
"Resources": {
"AccessConfiguration": {
"Type": "ALIYUN::CloudSSO::AccessConfiguration",
"Properties": {
"SessionDuration": {
"Ref": "SessionDuration"
},
"AccessConfigurationName": {
"Ref": "AccessConfigurationName"
},
"DirectoryId": {
"Ref": "DirectoryId"
},
"RelayState": {
"Ref": "RelayState"
},
"Description": {
"Ref": "Description"
}
}
}
},
"Outputs": {
"AccessConfigurationId": {
"Description": "The ID of the access configuration.",
"Value": {
"Fn::GetAtt": [
"AccessConfiguration",
"AccessConfigurationId"
]
}
}
}
}