Skip to content
This repository was archived by the owner on Mar 17, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions datasource.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ type DataSource struct {

// JSONData is a representation of the datasource `jsonData` property
type JSONData struct {
AssumeRoleArn string `json:"assumeRoleArn,omitempty"`
AuthType string `json:"authType,omitempty"`
DefaultRegion string `json:"defaultRegion,omitempty"`
AssumeRoleArn string `json:"assumeRoleArn,omitempty"`
AuthType string `json:"authType,omitempty"`
CustomMetricsNamespaces string `json:"customMetricsNamespaces,omitempty"`
DefaultRegion string `json:"defaultRegion,omitempty"`
}

// SecureJSONData is a representation of the datasource `secureJsonData` property
Expand Down
7 changes: 4 additions & 3 deletions datasource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ func TestNewDataSource(t *testing.T) {
Access: "access",
IsDefault: true,
JSONData: JSONData{
AssumeRoleArn: "arn:aws:iam::123:role/some-role",
AuthType: "keys",
DefaultRegion: "us-east-1",
AssumeRoleArn: "arn:aws:iam::123:role/some-role",
AuthType: "keys",
CustomMetricsNamespaces: "SomeNamespace",
DefaultRegion: "us-east-1",
},
SecureJSONData: SecureJSONData{
AccessKey: "123",
Expand Down