Skip to content

Commit

Permalink
Update credentials.go
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiyan-sheng authored Nov 3, 2021
1 parent 940ebc4 commit 27d8207
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions x-pack/libbeat/common/aws/credentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,36 +15,22 @@ import (
"github.com/aws/aws-sdk-go-v2/service/sts"
"github.com/pkg/errors"

<<<<<<< HEAD
"github.com/elastic/beats/v7/libbeat/common/cfgwarn"
=======
"github.com/elastic/beats/v7/libbeat/common/transport/httpcommon"
>>>>>>> f025c96219 (Change proxy_url from url.URL to string (#28725))
"github.com/elastic/beats/v7/libbeat/logp"
)

// ConfigAWS is a structure defined for AWS credentials
type ConfigAWS struct {
<<<<<<< HEAD
AccessKeyID string `config:"access_key_id"`
SecretAccessKey string `config:"secret_access_key"`
SessionToken string `config:"session_token"`
ProfileName string `config:"credential_profile_name"`
SharedCredentialFile string `config:"shared_credential_file"`
Endpoint string `config:"endpoint"`
RoleArn string `config:"role_arn"`
AWSPartition string `config:"aws_partition"` // Deprecated.
ProxyUrl *url.URL `config:"proxy_url"`
=======
AccessKeyID string `config:"access_key_id"`
SecretAccessKey string `config:"secret_access_key"`
SessionToken string `config:"session_token"`
ProfileName string `config:"credential_profile_name"`
SharedCredentialFile string `config:"shared_credential_file"`
Endpoint string `config:"endpoint"`
RoleArn string `config:"role_arn"`
AWSPartition string `config:"aws_partition"` // Deprecated.
ProxyUrl string `config:"proxy_url"`
>>>>>>> f025c96219 (Change proxy_url from url.URL to string (#28725))
}

// InitializeAWSConfig function creates the awssdk.Config object from the provided config
Expand Down

0 comments on commit 27d8207

Please sign in to comment.