Vendor aws-sdk-go (dep ensure) (#178)
This commit is contained in:
2509
vendor/github.com/aws/aws-sdk-go/service/resourcegroups/api.go
generated
vendored
Normal file
2509
vendor/github.com/aws/aws-sdk-go/service/resourcegroups/api.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
60
vendor/github.com/aws/aws-sdk-go/service/resourcegroups/doc.go
generated
vendored
Normal file
60
vendor/github.com/aws/aws-sdk-go/service/resourcegroups/doc.go
generated
vendored
Normal file
@@ -0,0 +1,60 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package resourcegroups provides the client and types for making API
|
||||
// requests to AWS Resource Groups.
|
||||
//
|
||||
// AWS Resource Groups lets you organize AWS resources such as Amazon EC2 instances,
|
||||
// Amazon Relational Database Service databases, and Amazon S3 buckets into
|
||||
// groups using criteria that you define as tags. A resource group is a collection
|
||||
// of resources that match the resource types specified in a query, and share
|
||||
// one or more tags or portions of tags. You can create a group of resources
|
||||
// based on their roles in your cloud infrastructure, lifecycle stages, regions,
|
||||
// application layers, or virtually any criteria. Resource groups enable you
|
||||
// to automate management tasks, such as those in AWS Systems Manager Automation
|
||||
// documents, on tag-related resources in AWS Systems Manager. Groups of tagged
|
||||
// resources also let you quickly view a custom console in AWS Systems Manager
|
||||
// that shows AWS Config compliance and other monitoring data about member resources.
|
||||
//
|
||||
// To create a resource group, build a resource query, and specify tags that
|
||||
// identify the criteria that members of the group have in common. Tags are
|
||||
// key-value pairs.
|
||||
//
|
||||
// For more information about Resource Groups, see the AWS Resource Groups User
|
||||
// Guide (https://docs.aws.amazon.com/ARG/latest/userguide/welcome.html).
|
||||
//
|
||||
// AWS Resource Groups uses a REST-compliant API that you can use to perform
|
||||
// the following types of operations.
|
||||
//
|
||||
// * Create, Read, Update, and Delete (CRUD) operations on resource groups
|
||||
// and resource query entities
|
||||
//
|
||||
// * Applying, editing, and removing tags from resource groups
|
||||
//
|
||||
// * Resolving resource group member ARNs so they can be returned as search
|
||||
// results
|
||||
//
|
||||
// * Getting data about resources that are members of a group
|
||||
//
|
||||
// * Searching AWS resources based on a resource query
|
||||
//
|
||||
// See https://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27 for more information on this service.
|
||||
//
|
||||
// See resourcegroups package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/resourcegroups/
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To contact AWS Resource Groups with the SDK use the New function to create
|
||||
// a new service client. With that client you can make API requests to the service.
|
||||
// These clients are safe to use concurrently.
|
||||
//
|
||||
// See the SDK's documentation for more information on how to use the SDK.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/
|
||||
//
|
||||
// See aws.Config documentation for more information on configuring SDK clients.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
|
||||
//
|
||||
// See the AWS Resource Groups client ResourceGroups for more
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/resourcegroups/#New
|
||||
package resourcegroups
|
||||
50
vendor/github.com/aws/aws-sdk-go/service/resourcegroups/errors.go
generated
vendored
Normal file
50
vendor/github.com/aws/aws-sdk-go/service/resourcegroups/errors.go
generated
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package resourcegroups
|
||||
|
||||
const (
|
||||
|
||||
// ErrCodeBadRequestException for service response error code
|
||||
// "BadRequestException".
|
||||
//
|
||||
// The request does not comply with validation rules that are defined for the
|
||||
// request parameters.
|
||||
ErrCodeBadRequestException = "BadRequestException"
|
||||
|
||||
// ErrCodeForbiddenException for service response error code
|
||||
// "ForbiddenException".
|
||||
//
|
||||
// The caller is not authorized to make the request.
|
||||
ErrCodeForbiddenException = "ForbiddenException"
|
||||
|
||||
// ErrCodeInternalServerErrorException for service response error code
|
||||
// "InternalServerErrorException".
|
||||
//
|
||||
// An internal error occurred while processing the request.
|
||||
ErrCodeInternalServerErrorException = "InternalServerErrorException"
|
||||
|
||||
// ErrCodeMethodNotAllowedException for service response error code
|
||||
// "MethodNotAllowedException".
|
||||
//
|
||||
// The request uses an HTTP method which is not allowed for the specified resource.
|
||||
ErrCodeMethodNotAllowedException = "MethodNotAllowedException"
|
||||
|
||||
// ErrCodeNotFoundException for service response error code
|
||||
// "NotFoundException".
|
||||
//
|
||||
// One or more resources specified in the request do not exist.
|
||||
ErrCodeNotFoundException = "NotFoundException"
|
||||
|
||||
// ErrCodeTooManyRequestsException for service response error code
|
||||
// "TooManyRequestsException".
|
||||
//
|
||||
// The caller has exceeded throttling limits.
|
||||
ErrCodeTooManyRequestsException = "TooManyRequestsException"
|
||||
|
||||
// ErrCodeUnauthorizedException for service response error code
|
||||
// "UnauthorizedException".
|
||||
//
|
||||
// The request has not been applied because it lacks valid authentication credentials
|
||||
// for the target resource.
|
||||
ErrCodeUnauthorizedException = "UnauthorizedException"
|
||||
)
|
||||
121
vendor/github.com/aws/aws-sdk-go/service/resourcegroups/resourcegroupsiface/interface.go
generated
vendored
Normal file
121
vendor/github.com/aws/aws-sdk-go/service/resourcegroups/resourcegroupsiface/interface.go
generated
vendored
Normal file
@@ -0,0 +1,121 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package resourcegroupsiface provides an interface to enable mocking the AWS Resource Groups service client
|
||||
// for testing your code.
|
||||
//
|
||||
// It is important to note that this interface will have breaking changes
|
||||
// when the service model is updated and adds new API operations, paginators,
|
||||
// and waiters.
|
||||
package resourcegroupsiface
|
||||
|
||||
import (
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/request"
|
||||
"github.com/aws/aws-sdk-go/service/resourcegroups"
|
||||
)
|
||||
|
||||
// ResourceGroupsAPI provides an interface to enable mocking the
|
||||
// resourcegroups.ResourceGroups service client's API operation,
|
||||
// paginators, and waiters. This make unit testing your code that calls out
|
||||
// to the SDK's service client's calls easier.
|
||||
//
|
||||
// The best way to use this interface is so the SDK's service client's calls
|
||||
// can be stubbed out for unit testing your code with the SDK without needing
|
||||
// to inject custom request handlers into the SDK's request pipeline.
|
||||
//
|
||||
// // myFunc uses an SDK service client to make a request to
|
||||
// // AWS Resource Groups.
|
||||
// func myFunc(svc resourcegroupsiface.ResourceGroupsAPI) bool {
|
||||
// // Make svc.CreateGroup request
|
||||
// }
|
||||
//
|
||||
// func main() {
|
||||
// sess := session.New()
|
||||
// svc := resourcegroups.New(sess)
|
||||
//
|
||||
// myFunc(svc)
|
||||
// }
|
||||
//
|
||||
// In your _test.go file:
|
||||
//
|
||||
// // Define a mock struct to be used in your unit tests of myFunc.
|
||||
// type mockResourceGroupsClient struct {
|
||||
// resourcegroupsiface.ResourceGroupsAPI
|
||||
// }
|
||||
// func (m *mockResourceGroupsClient) CreateGroup(input *resourcegroups.CreateGroupInput) (*resourcegroups.CreateGroupOutput, error) {
|
||||
// // mock response/functionality
|
||||
// }
|
||||
//
|
||||
// func TestMyFunc(t *testing.T) {
|
||||
// // Setup Test
|
||||
// mockSvc := &mockResourceGroupsClient{}
|
||||
//
|
||||
// myfunc(mockSvc)
|
||||
//
|
||||
// // Verify myFunc's functionality
|
||||
// }
|
||||
//
|
||||
// It is important to note that this interface will have breaking changes
|
||||
// when the service model is updated and adds new API operations, paginators,
|
||||
// and waiters. Its suggested to use the pattern above for testing, or using
|
||||
// tooling to generate mocks to satisfy the interfaces.
|
||||
type ResourceGroupsAPI interface {
|
||||
CreateGroup(*resourcegroups.CreateGroupInput) (*resourcegroups.CreateGroupOutput, error)
|
||||
CreateGroupWithContext(aws.Context, *resourcegroups.CreateGroupInput, ...request.Option) (*resourcegroups.CreateGroupOutput, error)
|
||||
CreateGroupRequest(*resourcegroups.CreateGroupInput) (*request.Request, *resourcegroups.CreateGroupOutput)
|
||||
|
||||
DeleteGroup(*resourcegroups.DeleteGroupInput) (*resourcegroups.DeleteGroupOutput, error)
|
||||
DeleteGroupWithContext(aws.Context, *resourcegroups.DeleteGroupInput, ...request.Option) (*resourcegroups.DeleteGroupOutput, error)
|
||||
DeleteGroupRequest(*resourcegroups.DeleteGroupInput) (*request.Request, *resourcegroups.DeleteGroupOutput)
|
||||
|
||||
GetGroup(*resourcegroups.GetGroupInput) (*resourcegroups.GetGroupOutput, error)
|
||||
GetGroupWithContext(aws.Context, *resourcegroups.GetGroupInput, ...request.Option) (*resourcegroups.GetGroupOutput, error)
|
||||
GetGroupRequest(*resourcegroups.GetGroupInput) (*request.Request, *resourcegroups.GetGroupOutput)
|
||||
|
||||
GetGroupQuery(*resourcegroups.GetGroupQueryInput) (*resourcegroups.GetGroupQueryOutput, error)
|
||||
GetGroupQueryWithContext(aws.Context, *resourcegroups.GetGroupQueryInput, ...request.Option) (*resourcegroups.GetGroupQueryOutput, error)
|
||||
GetGroupQueryRequest(*resourcegroups.GetGroupQueryInput) (*request.Request, *resourcegroups.GetGroupQueryOutput)
|
||||
|
||||
GetTags(*resourcegroups.GetTagsInput) (*resourcegroups.GetTagsOutput, error)
|
||||
GetTagsWithContext(aws.Context, *resourcegroups.GetTagsInput, ...request.Option) (*resourcegroups.GetTagsOutput, error)
|
||||
GetTagsRequest(*resourcegroups.GetTagsInput) (*request.Request, *resourcegroups.GetTagsOutput)
|
||||
|
||||
ListGroupResources(*resourcegroups.ListGroupResourcesInput) (*resourcegroups.ListGroupResourcesOutput, error)
|
||||
ListGroupResourcesWithContext(aws.Context, *resourcegroups.ListGroupResourcesInput, ...request.Option) (*resourcegroups.ListGroupResourcesOutput, error)
|
||||
ListGroupResourcesRequest(*resourcegroups.ListGroupResourcesInput) (*request.Request, *resourcegroups.ListGroupResourcesOutput)
|
||||
|
||||
ListGroupResourcesPages(*resourcegroups.ListGroupResourcesInput, func(*resourcegroups.ListGroupResourcesOutput, bool) bool) error
|
||||
ListGroupResourcesPagesWithContext(aws.Context, *resourcegroups.ListGroupResourcesInput, func(*resourcegroups.ListGroupResourcesOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListGroups(*resourcegroups.ListGroupsInput) (*resourcegroups.ListGroupsOutput, error)
|
||||
ListGroupsWithContext(aws.Context, *resourcegroups.ListGroupsInput, ...request.Option) (*resourcegroups.ListGroupsOutput, error)
|
||||
ListGroupsRequest(*resourcegroups.ListGroupsInput) (*request.Request, *resourcegroups.ListGroupsOutput)
|
||||
|
||||
ListGroupsPages(*resourcegroups.ListGroupsInput, func(*resourcegroups.ListGroupsOutput, bool) bool) error
|
||||
ListGroupsPagesWithContext(aws.Context, *resourcegroups.ListGroupsInput, func(*resourcegroups.ListGroupsOutput, bool) bool, ...request.Option) error
|
||||
|
||||
SearchResources(*resourcegroups.SearchResourcesInput) (*resourcegroups.SearchResourcesOutput, error)
|
||||
SearchResourcesWithContext(aws.Context, *resourcegroups.SearchResourcesInput, ...request.Option) (*resourcegroups.SearchResourcesOutput, error)
|
||||
SearchResourcesRequest(*resourcegroups.SearchResourcesInput) (*request.Request, *resourcegroups.SearchResourcesOutput)
|
||||
|
||||
SearchResourcesPages(*resourcegroups.SearchResourcesInput, func(*resourcegroups.SearchResourcesOutput, bool) bool) error
|
||||
SearchResourcesPagesWithContext(aws.Context, *resourcegroups.SearchResourcesInput, func(*resourcegroups.SearchResourcesOutput, bool) bool, ...request.Option) error
|
||||
|
||||
Tag(*resourcegroups.TagInput) (*resourcegroups.TagOutput, error)
|
||||
TagWithContext(aws.Context, *resourcegroups.TagInput, ...request.Option) (*resourcegroups.TagOutput, error)
|
||||
TagRequest(*resourcegroups.TagInput) (*request.Request, *resourcegroups.TagOutput)
|
||||
|
||||
Untag(*resourcegroups.UntagInput) (*resourcegroups.UntagOutput, error)
|
||||
UntagWithContext(aws.Context, *resourcegroups.UntagInput, ...request.Option) (*resourcegroups.UntagOutput, error)
|
||||
UntagRequest(*resourcegroups.UntagInput) (*request.Request, *resourcegroups.UntagOutput)
|
||||
|
||||
UpdateGroup(*resourcegroups.UpdateGroupInput) (*resourcegroups.UpdateGroupOutput, error)
|
||||
UpdateGroupWithContext(aws.Context, *resourcegroups.UpdateGroupInput, ...request.Option) (*resourcegroups.UpdateGroupOutput, error)
|
||||
UpdateGroupRequest(*resourcegroups.UpdateGroupInput) (*request.Request, *resourcegroups.UpdateGroupOutput)
|
||||
|
||||
UpdateGroupQuery(*resourcegroups.UpdateGroupQueryInput) (*resourcegroups.UpdateGroupQueryOutput, error)
|
||||
UpdateGroupQueryWithContext(aws.Context, *resourcegroups.UpdateGroupQueryInput, ...request.Option) (*resourcegroups.UpdateGroupQueryOutput, error)
|
||||
UpdateGroupQueryRequest(*resourcegroups.UpdateGroupQueryInput) (*request.Request, *resourcegroups.UpdateGroupQueryOutput)
|
||||
}
|
||||
|
||||
var _ ResourceGroupsAPI = (*resourcegroups.ResourceGroups)(nil)
|
||||
96
vendor/github.com/aws/aws-sdk-go/service/resourcegroups/service.go
generated
vendored
Normal file
96
vendor/github.com/aws/aws-sdk-go/service/resourcegroups/service.go
generated
vendored
Normal file
@@ -0,0 +1,96 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package resourcegroups
|
||||
|
||||
import (
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/client"
|
||||
"github.com/aws/aws-sdk-go/aws/client/metadata"
|
||||
"github.com/aws/aws-sdk-go/aws/request"
|
||||
"github.com/aws/aws-sdk-go/aws/signer/v4"
|
||||
"github.com/aws/aws-sdk-go/private/protocol/restjson"
|
||||
)
|
||||
|
||||
// ResourceGroups provides the API operation methods for making requests to
|
||||
// AWS Resource Groups. See this package's package overview docs
|
||||
// for details on the service.
|
||||
//
|
||||
// ResourceGroups methods are safe to use concurrently. It is not safe to
|
||||
// modify mutate any of the struct's properties though.
|
||||
type ResourceGroups struct {
|
||||
*client.Client
|
||||
}
|
||||
|
||||
// Used for custom client initialization logic
|
||||
var initClient func(*client.Client)
|
||||
|
||||
// Used for custom request initialization logic
|
||||
var initRequest func(*request.Request)
|
||||
|
||||
// Service information constants
|
||||
const (
|
||||
ServiceName = "resource-groups" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
)
|
||||
|
||||
// New creates a new instance of the ResourceGroups client with a session.
|
||||
// If additional configuration is needed for the client instance use the optional
|
||||
// aws.Config parameter to add your extra config.
|
||||
//
|
||||
// Example:
|
||||
// // Create a ResourceGroups client from just a session.
|
||||
// svc := resourcegroups.New(mySession)
|
||||
//
|
||||
// // Create a ResourceGroups client with additional configuration
|
||||
// svc := resourcegroups.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
|
||||
func New(p client.ConfigProvider, cfgs ...*aws.Config) *ResourceGroups {
|
||||
c := p.ClientConfig(EndpointsID, cfgs...)
|
||||
if c.SigningNameDerived || len(c.SigningName) == 0 {
|
||||
c.SigningName = "resource-groups"
|
||||
}
|
||||
return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
|
||||
}
|
||||
|
||||
// newClient creates, initializes and returns a new service client instance.
|
||||
func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *ResourceGroups {
|
||||
svc := &ResourceGroups{
|
||||
Client: client.New(
|
||||
cfg,
|
||||
metadata.ClientInfo{
|
||||
ServiceName: ServiceName,
|
||||
SigningName: signingName,
|
||||
SigningRegion: signingRegion,
|
||||
Endpoint: endpoint,
|
||||
APIVersion: "2017-11-27",
|
||||
},
|
||||
handlers,
|
||||
),
|
||||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
|
||||
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
|
||||
|
||||
// Run custom client initialization if present
|
||||
if initClient != nil {
|
||||
initClient(svc.Client)
|
||||
}
|
||||
|
||||
return svc
|
||||
}
|
||||
|
||||
// newRequest creates a new request for a ResourceGroups operation and runs any
|
||||
// custom request initialization.
|
||||
func (c *ResourceGroups) newRequest(op *request.Operation, params, data interface{}) *request.Request {
|
||||
req := c.NewRequest(op, params, data)
|
||||
|
||||
// Run custom request initialization if present
|
||||
if initRequest != nil {
|
||||
initRequest(req)
|
||||
}
|
||||
|
||||
return req
|
||||
}
|
||||
Reference in New Issue
Block a user