mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-26 17:49:02 -04:00
Added UpdateOperation to logical AWS STS path
This commit is contained in:
parent
15e5538ab1
commit
39b75c6ae9
1 changed files with 6 additions and 4 deletions
|
|
@ -17,14 +17,16 @@ func pathSTS(b *backend) *framework.Path {
|
|||
Description: "Name of the role",
|
||||
},
|
||||
"ttl": &framework.FieldSchema{
|
||||
Type: framework.TypeDurationSecond,
|
||||
Description: "Lifetime of the token in seconds",
|
||||
Default: 3600,
|
||||
Type: framework.TypeDurationSecond,
|
||||
Description: `Lifetime of the token in seconds.
|
||||
AWS mandates a minimum value of 900 seconds and a maximum of 1 hour.`,
|
||||
Default: 3600,
|
||||
},
|
||||
},
|
||||
|
||||
Callbacks: map[logical.Operation]framework.OperationFunc{
|
||||
logical.ReadOperation: b.pathSTSRead,
|
||||
logical.ReadOperation: b.pathSTSRead,
|
||||
logical.UpdateOperation: b.pathSTSRead,
|
||||
},
|
||||
|
||||
HelpSynopsis: pathSTSHelpSyn,
|
||||
|
|
|
|||
Loading…
Reference in a new issue