Documentation ¶
Index ¶
- Constants
- func AWSSessionFromResourceData(d api.Getter, opts ...SchemaOption) *session.Session
- func ConfigFromResourceData(d api.Getter, opts ...SchemaOption) *sdk.Config
- func GetAWSRegionAndProfile(d api.Getter, opts ...SchemaOption) (string, string)
- func GetAssumeRoleConfig(d api.Getter, opts ...SchemaOption) (config *sdk.AssumeRoleConfig)
- func SchemaAssumeRole() *schema.Schema
- type DiffReadWrite
- type Resource
- type Schema
- type SchemaOption
Constants ¶
View Source
const ( KeyAssumeRole = "assume_role" KeyRegion = "region" KeyProfile = "profile" )
Variables ¶
This section is empty.
Functions ¶
func AWSSessionFromResourceData ¶
func AWSSessionFromResourceData(d api.Getter, opts ...SchemaOption) *session.Session
func ConfigFromResourceData ¶
func ConfigFromResourceData(d api.Getter, opts ...SchemaOption) *sdk.Config
func GetAWSRegionAndProfile ¶
func GetAWSRegionAndProfile(d api.Getter, opts ...SchemaOption) (string, string)
func GetAssumeRoleConfig ¶
func GetAssumeRoleConfig(d api.Getter, opts ...SchemaOption) (config *sdk.AssumeRoleConfig)
func SchemaAssumeRole ¶
Types ¶
type DiffReadWrite ¶
type DiffReadWrite struct {
D *schema.ResourceDiff
}
func (*DiffReadWrite) Get ¶
func (d *DiffReadWrite) Get(k string) interface{}
func (*DiffReadWrite) Id ¶
func (d *DiffReadWrite) Id() string
func (*DiffReadWrite) List ¶
func (d *DiffReadWrite) List(k string) []interface{}
func (*DiffReadWrite) Set ¶
func (d *DiffReadWrite) Set(k string, v interface{}) error
func (*DiffReadWrite) SetNewComputed ¶
func (d *DiffReadWrite) SetNewComputed(k string) error
type Resource ¶
type Resource struct {
*schema.ResourceData
}
type Schema ¶
func CreateSchema ¶
func CreateSchema(opts ...SchemaOption) *Schema
type SchemaOption ¶
type SchemaOption interface {
Apply(*Schema)
}
func SchemaOptionAWSAssumeRole ¶
func SchemaOptionAWSAssumeRole(k string) SchemaOption
func SchemaOptionAWSProfileKey ¶
func SchemaOptionAWSProfileKey(k string) SchemaOption
func SchemaOptionAWSRegionKey ¶
func SchemaOptionAWSRegionKey(k string) SchemaOption
func SchemaOptionFunc ¶
func SchemaOptionFunc(f func(*Schema)) SchemaOption
Click to show internal directories.
Click to hide internal directories.