Skip to content
This repository was archived by the owner on Mar 17, 2021. It is now read-only.

Commit b18120d

Browse files
spiriusapparentlymart
authored andcommitted
Add assumeRoleArn into data structure
1 parent 8003b0c commit b18120d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

datasource.go

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ type DataSource struct {
3232

3333
// JSONData is a representation of the datasource `jsonData` property
3434
type JSONData struct {
35+
AssumeRoleArn string `json:"assumeRoleArn,omitempty"`
3536
AuthType string `json:"authType,omitempty"`
3637
DefaultRegion string `json:"defaultRegion,omitempty"`
3738
}

datasource_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ func TestNewDataSource(t *testing.T) {
4646
Access: "access",
4747
IsDefault: true,
4848
JSONData: JSONData{
49+
AssumeRoleArn: "arn:aws:iam::123:role/some-role",
4950
AuthType: "keys",
5051
DefaultRegion: "us-east-1",
5152
},

0 commit comments

Comments
 (0)