feat(serializers): add role_session_name description (#70)

* feat(serializers): add role_session_name description

* feat(serializers): update spec
This commit is contained in:
Adrián Jesús Peña Rodríguez
2024-11-05 13:27:20 +01:00
committed by GitHub
parent e3ae44d033
commit 4bab3e262c
2 changed files with 41 additions and 11 deletions
+32 -10
View File
@@ -3010,8 +3010,14 @@ components:
role assumption; may be required by the role administrator.
role_session_name:
type: string
description: An identifier for the role session, useful for
tracking sessions in AWS logs.
description: |-
An identifier for the role session, useful for tracking sessions in AWS logs. The regex used to validate this parameter is a string of characters consisting of upper- and lower-case alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@-
Examples:
- MySession123
- User_Session-1
- Test.Session@2
pattern: ^[a-zA-Z0-9=,.@_-]+$
required:
- role_arn
- type: object
@@ -3610,8 +3616,14 @@ components:
assumption; may be required by the role administrator.
role_session_name:
type: string
description: An identifier for the role session, useful for tracking
sessions in AWS logs.
description: |-
An identifier for the role session, useful for tracking sessions in AWS logs. The regex used to validate this parameter is a string of characters consisting of upper- and lower-case alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@-
Examples:
- MySession123
- User_Session-1
- Test.Session@2
pattern: ^[a-zA-Z0-9=,.@_-]+$
required:
- role_arn
- type: object
@@ -3786,8 +3798,14 @@ components:
role assumption; may be required by the role administrator.
role_session_name:
type: string
description: An identifier for the role session, useful for
tracking sessions in AWS logs.
description: |-
An identifier for the role session, useful for tracking sessions in AWS logs. The regex used to validate this parameter is a string of characters consisting of upper- and lower-case alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@-
Examples:
- MySession123
- User_Session-1
- Test.Session@2
pattern: ^[a-zA-Z0-9=,.@_-]+$
required:
- role_arn
- type: object
@@ -3976,8 +3994,14 @@ components:
assumption; may be required by the role administrator.
role_session_name:
type: string
description: An identifier for the role session, useful for tracking
sessions in AWS logs.
description: |-
An identifier for the role session, useful for tracking sessions in AWS logs. The regex used to validate this parameter is a string of characters consisting of upper- and lower-case alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@-
Examples:
- MySession123
- User_Session-1
- Test.Session@2
pattern: ^[a-zA-Z0-9=,.@_-]+$
required:
- role_arn
- type: object
@@ -4615,7 +4639,6 @@ components:
properties:
email:
type: string
format: email
writeOnly: true
password:
type: string
@@ -4719,7 +4742,6 @@ components:
properties:
email:
type: string
format: email
writeOnly: true
minLength: 1
password:
+9 -1
View File
@@ -755,7 +755,15 @@ class AWSRoleAssumptionProviderSecret(serializers.Serializer):
},
"role_session_name": {
"type": "string",
"description": "An identifier for the role session, useful for tracking sessions in AWS logs.",
"description": "An identifier for the role session, useful for tracking sessions in AWS logs. "
"The regex used to validate this parameter is a string of characters consisting of "
"upper- and lower-case alphanumeric characters with no spaces. You can also include "
"underscores or any of the following characters: =,.@-\n\n"
"Examples:\n"
"- MySession123\n"
"- User_Session-1\n"
"- Test.Session@2",
"pattern": "^[a-zA-Z0-9=,.@_-]+$",
},
},
"required": ["role_arn"],