update AlicloudAccessConfig docs for SECURITY_TOKEN

SecurityToken=>SECURITY_TOKEN
This commit is contained in:
Adrien Delorme 2019-08-29 14:39:25 +02:00
parent 9f8e9893b3
commit 7d9798f5ee
3 changed files with 20 additions and 26 deletions

View File

@ -14,23 +14,20 @@ import (
// Config of alicloud
type AlicloudAccessConfig struct {
// This is the Alicloud access key. It must be
// provided, but it can also be sourced from the ALICLOUD_ACCESS_KEY
// environment variable.
// This is the Alicloud access key. It must be provided, but it can also be
// sourced from the ALICLOUD_ACCESS_KEY environment variable.
AlicloudAccessKey string `mapstructure:"access_key" required:"true"`
// This is the Alicloud secret key. It must be
// provided, but it can also be sourced from the ALICLOUD_SECRET_KEY
// environment variable.
// This is the Alicloud secret key. It must be provided, but it can also be
// sourced from the ALICLOUD_SECRET_KEY environment variable.
AlicloudSecretKey string `mapstructure:"secret_key" required:"true"`
// This is the Alicloud region. It must be provided, but
// it can also be sourced from the ALICLOUD_REGION environment variables.
// This is the Alicloud region. It must be provided, but it can also be
// sourced from the ALICLOUD_REGION environment variables.
AlicloudRegion string `mapstructure:"region" required:"true"`
// The region validation can be skipped
// if this value is true, the default value is false.
// The region validation can be skipped if this value is true, the default
// value is false.
AlicloudSkipValidation bool `mapstructure:"skip_region_validation" required:"false"`
// STS access token, can be set through template
// or by exporting as environment variable such as
// export SecurityToken=value.
// STS access token, can be set through template or by exporting as
// environment variable such as export SECURITY_TOKEN=value.
SecurityToken string `mapstructure:"security_token" required:"false"`
client *ClientWrapper

View File

@ -1,9 +1,8 @@
<!-- Code generated from the comments of the AlicloudAccessConfig struct in builder/alicloud/ecs/access_config.go; DO NOT EDIT MANUALLY -->
- `skip_region_validation` (bool) - The region validation can be skipped
if this value is true, the default value is false.
- `skip_region_validation` (bool) - The region validation can be skipped if this value is true, the default
value is false.
- `security_token` (string) - STS access token, can be set through template
or by exporting as environment variable such as
export SecurityToken=value.
- `security_token` (string) - STS access token, can be set through template or by exporting as
environment variable such as export SECURITY_TOKEN=value.

View File

@ -1,13 +1,11 @@
<!-- Code generated from the comments of the AlicloudAccessConfig struct in builder/alicloud/ecs/access_config.go; DO NOT EDIT MANUALLY -->
- `access_key` (string) - This is the Alicloud access key. It must be
provided, but it can also be sourced from the ALICLOUD_ACCESS_KEY
environment variable.
- `access_key` (string) - This is the Alicloud access key. It must be provided, but it can also be
sourced from the ALICLOUD_ACCESS_KEY environment variable.
- `secret_key` (string) - This is the Alicloud secret key. It must be
provided, but it can also be sourced from the ALICLOUD_SECRET_KEY
environment variable.
- `secret_key` (string) - This is the Alicloud secret key. It must be provided, but it can also be
sourced from the ALICLOUD_SECRET_KEY environment variable.
- `region` (string) - This is the Alicloud region. It must be provided, but
it can also be sourced from the ALICLOUD_REGION environment variables.
- `region` (string) - This is the Alicloud region. It must be provided, but it can also be
sourced from the ALICLOUD_REGION environment variables.