Skip to content

Commit

Permalink
docs: add comments for assume role request
Browse files Browse the repository at this point in the history
  • Loading branch information
ZackarySantana committed Sep 24, 2024
1 parent 5f76080 commit 057007d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions apimodels/agent_models.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,13 @@ type Token struct {

// AssumeRoleRequest is the details of what role to assume.
type AssumeRoleRequest struct {
RoleARN string `json:"role_arn"`
Policy *string `json:"policy"`
DurationSeconds *int32 `json:"duration_seconds"`
// RoleARN is the Amazon Resource Name (ARN) of the role to assume.
RoleARN string `json:"role_arn"`
// Policy is an optional field that can be used to restrict the permissions.
Policy *string `json:"policy"`
// DurationSeconds is an optional field of the duration of the role session.
// It defaults to 15 minutes.
DurationSeconds *int32 `json:"duration_seconds"`
}

// Validate checks that the request has valid values.
Expand Down

0 comments on commit 057007d

Please sign in to comment.