Documentation
¶
Index ¶
- Constants
- func BucketRegionalDomainName(bucket string, region string) (string, error)
- func Provider() *schema.Provider
- func RetryOnAwsCodes(codes []string, f func() (interface{}, error)) (interface{}, error)
- type AWSClient
- type Config
- type IAMPolicyDoc
- type IAMPolicyStatement
- type IAMPolicyStatementCondition
- type IAMPolicyStatementConditionSet
- type IAMPolicyStatementPrincipal
- type IAMPolicyStatementPrincipalSet
Constants ¶
View Source
const (
ErrorCodeNotFound string = "NotFound"
)
Variables ¶
This section is empty.
Functions ¶
func RetryOnAwsCodes ¶
RetryOnAwsCodes retries AWS error codes for one minute Note: This function will be moved out of the aws package in the future.
Types ¶
type AWSClient ¶
type AWSClient struct {
// contains filtered or unexported fields
}
func (*AWSClient) PartitionHostname ¶
PartitionHostname returns a hostname with the provider domain suffix for the partition e.g. PREFIX.amazonaws.com The prefix should not contain a trailing period.
func (*AWSClient) RegionalHostname ¶
RegionalHostname returns a hostname with the provider domain suffix for the region and partition e.g. PREFIX.us-west-2.amazonaws.com The prefix should not contain a trailing period.
type Config ¶
type Config struct { AccessKey string SecretKey string CredsFilename string Profile string Token string Region string MaxRetries int AssumeRoleARN string AssumeRoleDurationSeconds int AssumeRoleExternalID string AssumeRolePolicy string AssumeRolePolicyARNs []string AssumeRoleSessionName string AssumeRoleTransitiveTagKeys []string AllowedAccountIds []string ForbiddenAccountIds []string Endpoints map[string]string Insecure bool SkipCredsValidation bool SkipRequestingAccountId bool SkipMetadataApiCheck bool S3ForcePathStyle bool // contains filtered or unexported fields }
type IAMPolicyDoc ¶
type IAMPolicyDoc struct { Version string `json:",omitempty"` Id string `json:",omitempty"` Statements []*IAMPolicyStatement `json:"Statement"` }
func (*IAMPolicyDoc) Merge ¶
func (s *IAMPolicyDoc) Merge(newDoc *IAMPolicyDoc)
type IAMPolicyStatement ¶
type IAMPolicyStatement struct { Sid string Effect string `json:",omitempty"` Actions interface{} `json:"Action,omitempty"` NotActions interface{} `json:"NotAction,omitempty"` Resources interface{} `json:"Resource,omitempty"` NotResources interface{} `json:"NotResource,omitempty"` Principals IAMPolicyStatementPrincipalSet `json:"Principal,omitempty"` NotPrincipals IAMPolicyStatementPrincipalSet `json:"NotPrincipal,omitempty"` Conditions IAMPolicyStatementConditionSet `json:"Condition,omitempty"` }
type IAMPolicyStatementConditionSet ¶
type IAMPolicyStatementConditionSet []IAMPolicyStatementCondition
func (IAMPolicyStatementConditionSet) MarshalJSON ¶
func (cs IAMPolicyStatementConditionSet) MarshalJSON() ([]byte, error)
func (*IAMPolicyStatementConditionSet) UnmarshalJSON ¶
func (cs *IAMPolicyStatementConditionSet) UnmarshalJSON(b []byte) error
type IAMPolicyStatementPrincipal ¶
type IAMPolicyStatementPrincipal struct { Type string Identifiers interface{} }
type IAMPolicyStatementPrincipalSet ¶
type IAMPolicyStatementPrincipalSet []IAMPolicyStatementPrincipal
func (IAMPolicyStatementPrincipalSet) MarshalJSON ¶
func (ps IAMPolicyStatementPrincipalSet) MarshalJSON() ([]byte, error)
func (*IAMPolicyStatementPrincipalSet) UnmarshalJSON ¶
func (ps *IAMPolicyStatementPrincipalSet) UnmarshalJSON(b []byte) error
Source Files
¶
- awserr.go
- config.go
- data_source_aws_iam_account_alias.go
- data_source_aws_iam_group.go
- data_source_aws_iam_policy.go
- data_source_aws_iam_policy_document.go
- data_source_aws_iam_role.go
- data_source_aws_iam_user.go
- data_source_aws_s3_bucket.go
- data_source_aws_s3_bucket_object.go
- data_source_aws_s3_bucket_objects.go
- diff_suppress_funcs.go
- errors.go
- iam_policy_model.go
- provider.go
- resource_aws_iam_access_key.go
- resource_aws_iam_account_alias.go
- resource_aws_iam_account_password_policy.go
- resource_aws_iam_group.go
- resource_aws_iam_group_membership.go
- resource_aws_iam_group_policy.go
- resource_aws_iam_group_policy_attachment.go
- resource_aws_iam_policy.go
- resource_aws_iam_policy_attachment.go
- resource_aws_iam_role.go
- resource_aws_iam_role_policy.go
- resource_aws_iam_role_policy_attachment.go
- resource_aws_iam_user.go
- resource_aws_iam_user_group_membership.go
- resource_aws_iam_user_login_profile.go
- resource_aws_iam_user_policy.go
- resource_aws_iam_user_policy_attachment.go
- resource_aws_s3_bucket.go
- resource_aws_s3_bucket_object.go
- resource_aws_s3_bucket_policy.go
- resource_aws_s3_bucket_public_access_block.go
- structure.go
- utils.go
- validators.go
Click to show internal directories.
Click to hide internal directories.