repo_name
stringlengths
1
52
repo_creator
stringclasses
6 values
programming_language
stringclasses
4 values
code
stringlengths
0
9.68M
num_lines
int64
1
234k
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package applicationautoscaling_test import ( "fmt" "strings" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/applicationautoscaling" ) var _ time.Duration var _ strings.Reader var _ aws.Config func parseTime(layout, value string) *time.Time { t, err := time.Parse(layout, value) if err != nil { panic(err) } return &t } // To delete a scaling policy // // This example deletes a scaling policy for the Amazon ECS service called web-app, // which is running in the default cluster. func ExampleApplicationAutoScaling_DeleteScalingPolicy_shared00() { svc := applicationautoscaling.New(session.New()) input := &applicationautoscaling.DeleteScalingPolicyInput{ PolicyName: aws.String("web-app-cpu-lt-25"), ResourceId: aws.String("service/default/web-app"), ScalableDimension: aws.String("ecs:service:DesiredCount"), ServiceNamespace: aws.String("ecs"), } result, err := svc.DeleteScalingPolicy(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case applicationautoscaling.ErrCodeValidationException: fmt.Println(applicationautoscaling.ErrCodeValidationException, aerr.Error()) case applicationautoscaling.ErrCodeObjectNotFoundException: fmt.Println(applicationautoscaling.ErrCodeObjectNotFoundException, aerr.Error()) case applicationautoscaling.ErrCodeConcurrentUpdateException: fmt.Println(applicationautoscaling.ErrCodeConcurrentUpdateException, aerr.Error()) case applicationautoscaling.ErrCodeInternalServiceException: fmt.Println(applicationautoscaling.ErrCodeInternalServiceException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To deregister a scalable target // // This example deregisters a scalable target for an Amazon ECS service called web-app // that is running in the default cluster. func ExampleApplicationAutoScaling_DeregisterScalableTarget_shared00() { svc := applicationautoscaling.New(session.New()) input := &applicationautoscaling.DeregisterScalableTargetInput{ ResourceId: aws.String("service/default/web-app"), ScalableDimension: aws.String("ecs:service:DesiredCount"), ServiceNamespace: aws.String("ecs"), } result, err := svc.DeregisterScalableTarget(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case applicationautoscaling.ErrCodeValidationException: fmt.Println(applicationautoscaling.ErrCodeValidationException, aerr.Error()) case applicationautoscaling.ErrCodeObjectNotFoundException: fmt.Println(applicationautoscaling.ErrCodeObjectNotFoundException, aerr.Error()) case applicationautoscaling.ErrCodeConcurrentUpdateException: fmt.Println(applicationautoscaling.ErrCodeConcurrentUpdateException, aerr.Error()) case applicationautoscaling.ErrCodeInternalServiceException: fmt.Println(applicationautoscaling.ErrCodeInternalServiceException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To describe scalable targets // // This example describes the scalable targets for the ECS service namespace. func ExampleApplicationAutoScaling_DescribeScalableTargets_shared00() { svc := applicationautoscaling.New(session.New()) input := &applicationautoscaling.DescribeScalableTargetsInput{ ServiceNamespace: aws.String("ecs"), } result, err := svc.DescribeScalableTargets(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case applicationautoscaling.ErrCodeValidationException: fmt.Println(applicationautoscaling.ErrCodeValidationException, aerr.Error()) case applicationautoscaling.ErrCodeInvalidNextTokenException: fmt.Println(applicationautoscaling.ErrCodeInvalidNextTokenException, aerr.Error()) case applicationautoscaling.ErrCodeConcurrentUpdateException: fmt.Println(applicationautoscaling.ErrCodeConcurrentUpdateException, aerr.Error()) case applicationautoscaling.ErrCodeInternalServiceException: fmt.Println(applicationautoscaling.ErrCodeInternalServiceException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To describe scaling activities for a scalable target // // This example describes the scaling activities for an Amazon ECS service called web-app // that is running in the default cluster. func ExampleApplicationAutoScaling_DescribeScalingActivities_shared00() { svc := applicationautoscaling.New(session.New()) input := &applicationautoscaling.DescribeScalingActivitiesInput{ ResourceId: aws.String("service/default/web-app"), ScalableDimension: aws.String("ecs:service:DesiredCount"), ServiceNamespace: aws.String("ecs"), } result, err := svc.DescribeScalingActivities(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case applicationautoscaling.ErrCodeValidationException: fmt.Println(applicationautoscaling.ErrCodeValidationException, aerr.Error()) case applicationautoscaling.ErrCodeInvalidNextTokenException: fmt.Println(applicationautoscaling.ErrCodeInvalidNextTokenException, aerr.Error()) case applicationautoscaling.ErrCodeConcurrentUpdateException: fmt.Println(applicationautoscaling.ErrCodeConcurrentUpdateException, aerr.Error()) case applicationautoscaling.ErrCodeInternalServiceException: fmt.Println(applicationautoscaling.ErrCodeInternalServiceException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To describe scaling policies // // This example describes the scaling policies for the ECS service namespace. func ExampleApplicationAutoScaling_DescribeScalingPolicies_shared00() { svc := applicationautoscaling.New(session.New()) input := &applicationautoscaling.DescribeScalingPoliciesInput{ ServiceNamespace: aws.String("ecs"), } result, err := svc.DescribeScalingPolicies(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case applicationautoscaling.ErrCodeValidationException: fmt.Println(applicationautoscaling.ErrCodeValidationException, aerr.Error()) case applicationautoscaling.ErrCodeFailedResourceAccessException: fmt.Println(applicationautoscaling.ErrCodeFailedResourceAccessException, aerr.Error()) case applicationautoscaling.ErrCodeInvalidNextTokenException: fmt.Println(applicationautoscaling.ErrCodeInvalidNextTokenException, aerr.Error()) case applicationautoscaling.ErrCodeConcurrentUpdateException: fmt.Println(applicationautoscaling.ErrCodeConcurrentUpdateException, aerr.Error()) case applicationautoscaling.ErrCodeInternalServiceException: fmt.Println(applicationautoscaling.ErrCodeInternalServiceException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To apply a target tracking scaling policy with a predefined metric specification // // The following example applies a target tracking scaling policy with a predefined // metric specification to an Amazon ECS service called web-app in the default cluster. // The policy keeps the average CPU utilization of the service at 75 percent, with scale-out // and scale-in cooldown periods of 60 seconds. func ExampleApplicationAutoScaling_PutScalingPolicy_shared00() { svc := applicationautoscaling.New(session.New()) input := &applicationautoscaling.PutScalingPolicyInput{ PolicyName: aws.String("cpu75-target-tracking-scaling-policy"), PolicyType: aws.String("TargetTrackingScaling"), ResourceId: aws.String("service/default/web-app"), ScalableDimension: aws.String("ecs:service:DesiredCount"), ServiceNamespace: aws.String("ecs"), TargetTrackingScalingPolicyConfiguration: &applicationautoscaling.TargetTrackingScalingPolicyConfiguration{ PredefinedMetricSpecification: &applicationautoscaling.PredefinedMetricSpecification{ PredefinedMetricType: aws.String("ECSServiceAverageCPUUtilization"), }, ScaleInCooldown: aws.Int64(60), ScaleOutCooldown: aws.Int64(60), TargetValue: aws.Float64(75.000000), }, } result, err := svc.PutScalingPolicy(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case applicationautoscaling.ErrCodeValidationException: fmt.Println(applicationautoscaling.ErrCodeValidationException, aerr.Error()) case applicationautoscaling.ErrCodeLimitExceededException: fmt.Println(applicationautoscaling.ErrCodeLimitExceededException, aerr.Error()) case applicationautoscaling.ErrCodeObjectNotFoundException: fmt.Println(applicationautoscaling.ErrCodeObjectNotFoundException, aerr.Error()) case applicationautoscaling.ErrCodeConcurrentUpdateException: fmt.Println(applicationautoscaling.ErrCodeConcurrentUpdateException, aerr.Error()) case applicationautoscaling.ErrCodeFailedResourceAccessException: fmt.Println(applicationautoscaling.ErrCodeFailedResourceAccessException, aerr.Error()) case applicationautoscaling.ErrCodeInternalServiceException: fmt.Println(applicationautoscaling.ErrCodeInternalServiceException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To register an ECS service as a scalable target // // This example registers a scalable target from an Amazon ECS service called web-app // that is running on the default cluster, with a minimum desired count of 1 task and // a maximum desired count of 10 tasks. func ExampleApplicationAutoScaling_RegisterScalableTarget_shared00() { svc := applicationautoscaling.New(session.New()) input := &applicationautoscaling.RegisterScalableTargetInput{ MaxCapacity: aws.Int64(10), MinCapacity: aws.Int64(1), ResourceId: aws.String("service/default/web-app"), ScalableDimension: aws.String("ecs:service:DesiredCount"), ServiceNamespace: aws.String("ecs"), } result, err := svc.RegisterScalableTarget(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case applicationautoscaling.ErrCodeValidationException: fmt.Println(applicationautoscaling.ErrCodeValidationException, aerr.Error()) case applicationautoscaling.ErrCodeLimitExceededException: fmt.Println(applicationautoscaling.ErrCodeLimitExceededException, aerr.Error()) case applicationautoscaling.ErrCodeConcurrentUpdateException: fmt.Println(applicationautoscaling.ErrCodeConcurrentUpdateException, aerr.Error()) case applicationautoscaling.ErrCodeInternalServiceException: fmt.Println(applicationautoscaling.ErrCodeInternalServiceException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) }
309
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // +build go1.15,integration package applicationautoscaling_test import ( "context" "testing" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/awstesting/integration" "github.com/aws/aws-sdk-go/service/applicationautoscaling" ) var _ aws.Config var _ awserr.Error var _ request.Request func TestInteg_00_DescribeScalableTargets(t *testing.T) { ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) defer cancelFn() sess := integration.SessionWithDefaultRegion("us-west-2") svc := applicationautoscaling.New(sess) params := &applicationautoscaling.DescribeScalableTargetsInput{ ServiceNamespace: aws.String("ec2"), } _, err := svc.DescribeScalableTargetsWithContext(ctx, params, func(r *request.Request) { r.Handlers.Validate.RemoveByName("core.ValidateParametersHandler") }) if err != nil { t.Errorf("expect no error, got %v", err) } }
39
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package applicationautoscaling 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" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) // ApplicationAutoScaling provides the API operation methods for making requests to // Application Auto Scaling. See this package's package overview docs // for details on the service. // // ApplicationAutoScaling methods are safe to use concurrently. It is not safe to // modify mutate any of the struct's properties though. type ApplicationAutoScaling 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 = "autoscaling" // Name of service. EndpointsID = "application-autoscaling" // ID to lookup a service endpoint with. ServiceID = "Application Auto Scaling" // ServiceID is a unique identifier of a specific service. ) // New creates a new instance of the ApplicationAutoScaling 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: // mySession := session.Must(session.NewSession()) // // // Create a ApplicationAutoScaling client from just a session. // svc := applicationautoscaling.New(mySession) // // // Create a ApplicationAutoScaling client with additional configuration // svc := applicationautoscaling.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *ApplicationAutoScaling { c := p.ClientConfig(EndpointsID, cfgs...) if c.SigningNameDerived || len(c.SigningName) == 0 { c.SigningName = "application-autoscaling" } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *ApplicationAutoScaling { svc := &ApplicationAutoScaling{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, ServiceID: ServiceID, SigningName: signingName, SigningRegion: signingRegion, PartitionID: partitionID, Endpoint: endpoint, APIVersion: "2016-02-06", JSONVersion: "1.1", TargetPrefix: "AnyScaleFrontendService", }, handlers, ), } // Handlers svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) svc.Handlers.UnmarshalError.PushBackNamed( protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), ) // Run custom client initialization if present if initClient != nil { initClient(svc.Client) } return svc } // newRequest creates a new request for a ApplicationAutoScaling operation and runs any // custom request initialization. func (c *ApplicationAutoScaling) 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 }
107
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package applicationautoscalingiface provides an interface to enable mocking the Application Auto Scaling 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 applicationautoscalingiface import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/service/applicationautoscaling" ) // ApplicationAutoScalingAPI provides an interface to enable mocking the // applicationautoscaling.ApplicationAutoScaling 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 // // Application Auto Scaling. // func myFunc(svc applicationautoscalingiface.ApplicationAutoScalingAPI) bool { // // Make svc.DeleteScalingPolicy request // } // // func main() { // sess := session.New() // svc := applicationautoscaling.New(sess) // // myFunc(svc) // } // // In your _test.go file: // // // Define a mock struct to be used in your unit tests of myFunc. // type mockApplicationAutoScalingClient struct { // applicationautoscalingiface.ApplicationAutoScalingAPI // } // func (m *mockApplicationAutoScalingClient) DeleteScalingPolicy(input *applicationautoscaling.DeleteScalingPolicyInput) (*applicationautoscaling.DeleteScalingPolicyOutput, error) { // // mock response/functionality // } // // func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockApplicationAutoScalingClient{} // // 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 ApplicationAutoScalingAPI interface { DeleteScalingPolicy(*applicationautoscaling.DeleteScalingPolicyInput) (*applicationautoscaling.DeleteScalingPolicyOutput, error) DeleteScalingPolicyWithContext(aws.Context, *applicationautoscaling.DeleteScalingPolicyInput, ...request.Option) (*applicationautoscaling.DeleteScalingPolicyOutput, error) DeleteScalingPolicyRequest(*applicationautoscaling.DeleteScalingPolicyInput) (*request.Request, *applicationautoscaling.DeleteScalingPolicyOutput) DeleteScheduledAction(*applicationautoscaling.DeleteScheduledActionInput) (*applicationautoscaling.DeleteScheduledActionOutput, error) DeleteScheduledActionWithContext(aws.Context, *applicationautoscaling.DeleteScheduledActionInput, ...request.Option) (*applicationautoscaling.DeleteScheduledActionOutput, error) DeleteScheduledActionRequest(*applicationautoscaling.DeleteScheduledActionInput) (*request.Request, *applicationautoscaling.DeleteScheduledActionOutput) DeregisterScalableTarget(*applicationautoscaling.DeregisterScalableTargetInput) (*applicationautoscaling.DeregisterScalableTargetOutput, error) DeregisterScalableTargetWithContext(aws.Context, *applicationautoscaling.DeregisterScalableTargetInput, ...request.Option) (*applicationautoscaling.DeregisterScalableTargetOutput, error) DeregisterScalableTargetRequest(*applicationautoscaling.DeregisterScalableTargetInput) (*request.Request, *applicationautoscaling.DeregisterScalableTargetOutput) DescribeScalableTargets(*applicationautoscaling.DescribeScalableTargetsInput) (*applicationautoscaling.DescribeScalableTargetsOutput, error) DescribeScalableTargetsWithContext(aws.Context, *applicationautoscaling.DescribeScalableTargetsInput, ...request.Option) (*applicationautoscaling.DescribeScalableTargetsOutput, error) DescribeScalableTargetsRequest(*applicationautoscaling.DescribeScalableTargetsInput) (*request.Request, *applicationautoscaling.DescribeScalableTargetsOutput) DescribeScalableTargetsPages(*applicationautoscaling.DescribeScalableTargetsInput, func(*applicationautoscaling.DescribeScalableTargetsOutput, bool) bool) error DescribeScalableTargetsPagesWithContext(aws.Context, *applicationautoscaling.DescribeScalableTargetsInput, func(*applicationautoscaling.DescribeScalableTargetsOutput, bool) bool, ...request.Option) error DescribeScalingActivities(*applicationautoscaling.DescribeScalingActivitiesInput) (*applicationautoscaling.DescribeScalingActivitiesOutput, error) DescribeScalingActivitiesWithContext(aws.Context, *applicationautoscaling.DescribeScalingActivitiesInput, ...request.Option) (*applicationautoscaling.DescribeScalingActivitiesOutput, error) DescribeScalingActivitiesRequest(*applicationautoscaling.DescribeScalingActivitiesInput) (*request.Request, *applicationautoscaling.DescribeScalingActivitiesOutput) DescribeScalingActivitiesPages(*applicationautoscaling.DescribeScalingActivitiesInput, func(*applicationautoscaling.DescribeScalingActivitiesOutput, bool) bool) error DescribeScalingActivitiesPagesWithContext(aws.Context, *applicationautoscaling.DescribeScalingActivitiesInput, func(*applicationautoscaling.DescribeScalingActivitiesOutput, bool) bool, ...request.Option) error DescribeScalingPolicies(*applicationautoscaling.DescribeScalingPoliciesInput) (*applicationautoscaling.DescribeScalingPoliciesOutput, error) DescribeScalingPoliciesWithContext(aws.Context, *applicationautoscaling.DescribeScalingPoliciesInput, ...request.Option) (*applicationautoscaling.DescribeScalingPoliciesOutput, error) DescribeScalingPoliciesRequest(*applicationautoscaling.DescribeScalingPoliciesInput) (*request.Request, *applicationautoscaling.DescribeScalingPoliciesOutput) DescribeScalingPoliciesPages(*applicationautoscaling.DescribeScalingPoliciesInput, func(*applicationautoscaling.DescribeScalingPoliciesOutput, bool) bool) error DescribeScalingPoliciesPagesWithContext(aws.Context, *applicationautoscaling.DescribeScalingPoliciesInput, func(*applicationautoscaling.DescribeScalingPoliciesOutput, bool) bool, ...request.Option) error DescribeScheduledActions(*applicationautoscaling.DescribeScheduledActionsInput) (*applicationautoscaling.DescribeScheduledActionsOutput, error) DescribeScheduledActionsWithContext(aws.Context, *applicationautoscaling.DescribeScheduledActionsInput, ...request.Option) (*applicationautoscaling.DescribeScheduledActionsOutput, error) DescribeScheduledActionsRequest(*applicationautoscaling.DescribeScheduledActionsInput) (*request.Request, *applicationautoscaling.DescribeScheduledActionsOutput) DescribeScheduledActionsPages(*applicationautoscaling.DescribeScheduledActionsInput, func(*applicationautoscaling.DescribeScheduledActionsOutput, bool) bool) error DescribeScheduledActionsPagesWithContext(aws.Context, *applicationautoscaling.DescribeScheduledActionsInput, func(*applicationautoscaling.DescribeScheduledActionsOutput, bool) bool, ...request.Option) error PutScalingPolicy(*applicationautoscaling.PutScalingPolicyInput) (*applicationautoscaling.PutScalingPolicyOutput, error) PutScalingPolicyWithContext(aws.Context, *applicationautoscaling.PutScalingPolicyInput, ...request.Option) (*applicationautoscaling.PutScalingPolicyOutput, error) PutScalingPolicyRequest(*applicationautoscaling.PutScalingPolicyInput) (*request.Request, *applicationautoscaling.PutScalingPolicyOutput) PutScheduledAction(*applicationautoscaling.PutScheduledActionInput) (*applicationautoscaling.PutScheduledActionOutput, error) PutScheduledActionWithContext(aws.Context, *applicationautoscaling.PutScheduledActionInput, ...request.Option) (*applicationautoscaling.PutScheduledActionOutput, error) PutScheduledActionRequest(*applicationautoscaling.PutScheduledActionInput) (*request.Request, *applicationautoscaling.PutScheduledActionOutput) RegisterScalableTarget(*applicationautoscaling.RegisterScalableTargetInput) (*applicationautoscaling.RegisterScalableTargetOutput, error) RegisterScalableTargetWithContext(aws.Context, *applicationautoscaling.RegisterScalableTargetInput, ...request.Option) (*applicationautoscaling.RegisterScalableTargetOutput, error) RegisterScalableTargetRequest(*applicationautoscaling.RegisterScalableTargetInput) (*request.Request, *applicationautoscaling.RegisterScalableTargetOutput) } var _ ApplicationAutoScalingAPI = (*applicationautoscaling.ApplicationAutoScaling)(nil)
117
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package applicationcostprofiler import ( "fmt" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/private/protocol" ) const opDeleteReportDefinition = "DeleteReportDefinition" // DeleteReportDefinitionRequest generates a "aws/request.Request" representing the // client's request for the DeleteReportDefinition operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteReportDefinition for more information on using the DeleteReportDefinition // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteReportDefinitionRequest method. // req, resp := client.DeleteReportDefinitionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/DeleteReportDefinition func (c *ApplicationCostProfiler) DeleteReportDefinitionRequest(input *DeleteReportDefinitionInput) (req *request.Request, output *DeleteReportDefinitionOutput) { op := &request.Operation{ Name: opDeleteReportDefinition, HTTPMethod: "DELETE", HTTPPath: "/reportDefinition/{reportId}", } if input == nil { input = &DeleteReportDefinitionInput{} } output = &DeleteReportDefinitionOutput{} req = c.newRequest(op, input, output) return } // DeleteReportDefinition API operation for AWS Application Cost Profiler. // // Deletes the specified report definition in AWS Application Cost Profiler. // This stops the report from being generated. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Application Cost Profiler's // API operation DeleteReportDefinition for usage and error information. // // Returned Error Types: // * InternalServerException // An internal server error occurred. Retry your request. // // * ThrottlingException // The calls to AWS Application Cost Profiler API are throttled. The request // was denied. // // * ValidationException // The input fails to satisfy the constraints for the API. // // * AccessDeniedException // You do not have permission to perform this action. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/DeleteReportDefinition func (c *ApplicationCostProfiler) DeleteReportDefinition(input *DeleteReportDefinitionInput) (*DeleteReportDefinitionOutput, error) { req, out := c.DeleteReportDefinitionRequest(input) return out, req.Send() } // DeleteReportDefinitionWithContext is the same as DeleteReportDefinition with the addition of // the ability to pass a context and additional request options. // // See DeleteReportDefinition for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ApplicationCostProfiler) DeleteReportDefinitionWithContext(ctx aws.Context, input *DeleteReportDefinitionInput, opts ...request.Option) (*DeleteReportDefinitionOutput, error) { req, out := c.DeleteReportDefinitionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetReportDefinition = "GetReportDefinition" // GetReportDefinitionRequest generates a "aws/request.Request" representing the // client's request for the GetReportDefinition operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetReportDefinition for more information on using the GetReportDefinition // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetReportDefinitionRequest method. // req, resp := client.GetReportDefinitionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/GetReportDefinition func (c *ApplicationCostProfiler) GetReportDefinitionRequest(input *GetReportDefinitionInput) (req *request.Request, output *GetReportDefinitionOutput) { op := &request.Operation{ Name: opGetReportDefinition, HTTPMethod: "GET", HTTPPath: "/reportDefinition/{reportId}", } if input == nil { input = &GetReportDefinitionInput{} } output = &GetReportDefinitionOutput{} req = c.newRequest(op, input, output) return } // GetReportDefinition API operation for AWS Application Cost Profiler. // // Retrieves the definition of a report already configured in AWS Application // Cost Profiler. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Application Cost Profiler's // API operation GetReportDefinition for usage and error information. // // Returned Error Types: // * InternalServerException // An internal server error occurred. Retry your request. // // * ThrottlingException // The calls to AWS Application Cost Profiler API are throttled. The request // was denied. // // * ValidationException // The input fails to satisfy the constraints for the API. // // * AccessDeniedException // You do not have permission to perform this action. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/GetReportDefinition func (c *ApplicationCostProfiler) GetReportDefinition(input *GetReportDefinitionInput) (*GetReportDefinitionOutput, error) { req, out := c.GetReportDefinitionRequest(input) return out, req.Send() } // GetReportDefinitionWithContext is the same as GetReportDefinition with the addition of // the ability to pass a context and additional request options. // // See GetReportDefinition for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ApplicationCostProfiler) GetReportDefinitionWithContext(ctx aws.Context, input *GetReportDefinitionInput, opts ...request.Option) (*GetReportDefinitionOutput, error) { req, out := c.GetReportDefinitionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opImportApplicationUsage = "ImportApplicationUsage" // ImportApplicationUsageRequest generates a "aws/request.Request" representing the // client's request for the ImportApplicationUsage operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ImportApplicationUsage for more information on using the ImportApplicationUsage // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ImportApplicationUsageRequest method. // req, resp := client.ImportApplicationUsageRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/ImportApplicationUsage func (c *ApplicationCostProfiler) ImportApplicationUsageRequest(input *ImportApplicationUsageInput) (req *request.Request, output *ImportApplicationUsageOutput) { op := &request.Operation{ Name: opImportApplicationUsage, HTTPMethod: "POST", HTTPPath: "/importApplicationUsage", } if input == nil { input = &ImportApplicationUsageInput{} } output = &ImportApplicationUsageOutput{} req = c.newRequest(op, input, output) return } // ImportApplicationUsage API operation for AWS Application Cost Profiler. // // Ingests application usage data from Amazon Simple Storage Service (Amazon // S3). // // The data must already exist in the S3 location. As part of the action, AWS // Application Cost Profiler copies the object from your S3 bucket to an S3 // bucket owned by Amazon for processing asynchronously. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Application Cost Profiler's // API operation ImportApplicationUsage for usage and error information. // // Returned Error Types: // * InternalServerException // An internal server error occurred. Retry your request. // // * ThrottlingException // The calls to AWS Application Cost Profiler API are throttled. The request // was denied. // // * ValidationException // The input fails to satisfy the constraints for the API. // // * AccessDeniedException // You do not have permission to perform this action. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/ImportApplicationUsage func (c *ApplicationCostProfiler) ImportApplicationUsage(input *ImportApplicationUsageInput) (*ImportApplicationUsageOutput, error) { req, out := c.ImportApplicationUsageRequest(input) return out, req.Send() } // ImportApplicationUsageWithContext is the same as ImportApplicationUsage with the addition of // the ability to pass a context and additional request options. // // See ImportApplicationUsage for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ApplicationCostProfiler) ImportApplicationUsageWithContext(ctx aws.Context, input *ImportApplicationUsageInput, opts ...request.Option) (*ImportApplicationUsageOutput, error) { req, out := c.ImportApplicationUsageRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opListReportDefinitions = "ListReportDefinitions" // ListReportDefinitionsRequest generates a "aws/request.Request" representing the // client's request for the ListReportDefinitions operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListReportDefinitions for more information on using the ListReportDefinitions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListReportDefinitionsRequest method. // req, resp := client.ListReportDefinitionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/ListReportDefinitions func (c *ApplicationCostProfiler) ListReportDefinitionsRequest(input *ListReportDefinitionsInput) (req *request.Request, output *ListReportDefinitionsOutput) { op := &request.Operation{ Name: opListReportDefinitions, HTTPMethod: "GET", HTTPPath: "/reportDefinition", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, LimitToken: "maxResults", TruncationToken: "", }, } if input == nil { input = &ListReportDefinitionsInput{} } output = &ListReportDefinitionsOutput{} req = c.newRequest(op, input, output) return } // ListReportDefinitions API operation for AWS Application Cost Profiler. // // Retrieves a list of all reports and their configurations for your AWS account. // // The maximum number of reports is one. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Application Cost Profiler's // API operation ListReportDefinitions for usage and error information. // // Returned Error Types: // * InternalServerException // An internal server error occurred. Retry your request. // // * ThrottlingException // The calls to AWS Application Cost Profiler API are throttled. The request // was denied. // // * ValidationException // The input fails to satisfy the constraints for the API. // // * AccessDeniedException // You do not have permission to perform this action. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/ListReportDefinitions func (c *ApplicationCostProfiler) ListReportDefinitions(input *ListReportDefinitionsInput) (*ListReportDefinitionsOutput, error) { req, out := c.ListReportDefinitionsRequest(input) return out, req.Send() } // ListReportDefinitionsWithContext is the same as ListReportDefinitions with the addition of // the ability to pass a context and additional request options. // // See ListReportDefinitions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ApplicationCostProfiler) ListReportDefinitionsWithContext(ctx aws.Context, input *ListReportDefinitionsInput, opts ...request.Option) (*ListReportDefinitionsOutput, error) { req, out := c.ListReportDefinitionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListReportDefinitionsPages iterates over the pages of a ListReportDefinitions operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListReportDefinitions method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListReportDefinitions operation. // pageNum := 0 // err := client.ListReportDefinitionsPages(params, // func(page *applicationcostprofiler.ListReportDefinitionsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *ApplicationCostProfiler) ListReportDefinitionsPages(input *ListReportDefinitionsInput, fn func(*ListReportDefinitionsOutput, bool) bool) error { return c.ListReportDefinitionsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListReportDefinitionsPagesWithContext same as ListReportDefinitionsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ApplicationCostProfiler) ListReportDefinitionsPagesWithContext(ctx aws.Context, input *ListReportDefinitionsInput, fn func(*ListReportDefinitionsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListReportDefinitionsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListReportDefinitionsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListReportDefinitionsOutput), !p.HasNextPage()) { break } } return p.Err() } const opPutReportDefinition = "PutReportDefinition" // PutReportDefinitionRequest generates a "aws/request.Request" representing the // client's request for the PutReportDefinition operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See PutReportDefinition for more information on using the PutReportDefinition // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the PutReportDefinitionRequest method. // req, resp := client.PutReportDefinitionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/PutReportDefinition func (c *ApplicationCostProfiler) PutReportDefinitionRequest(input *PutReportDefinitionInput) (req *request.Request, output *PutReportDefinitionOutput) { op := &request.Operation{ Name: opPutReportDefinition, HTTPMethod: "POST", HTTPPath: "/reportDefinition", } if input == nil { input = &PutReportDefinitionInput{} } output = &PutReportDefinitionOutput{} req = c.newRequest(op, input, output) return } // PutReportDefinition API operation for AWS Application Cost Profiler. // // Creates the report definition for a report in Application Cost Profiler. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Application Cost Profiler's // API operation PutReportDefinition for usage and error information. // // Returned Error Types: // * InternalServerException // An internal server error occurred. Retry your request. // // * ThrottlingException // The calls to AWS Application Cost Profiler API are throttled. The request // was denied. // // * ValidationException // The input fails to satisfy the constraints for the API. // // * AccessDeniedException // You do not have permission to perform this action. // // * ServiceQuotaExceededException // Your request exceeds one or more of the service quotas. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/PutReportDefinition func (c *ApplicationCostProfiler) PutReportDefinition(input *PutReportDefinitionInput) (*PutReportDefinitionOutput, error) { req, out := c.PutReportDefinitionRequest(input) return out, req.Send() } // PutReportDefinitionWithContext is the same as PutReportDefinition with the addition of // the ability to pass a context and additional request options. // // See PutReportDefinition for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ApplicationCostProfiler) PutReportDefinitionWithContext(ctx aws.Context, input *PutReportDefinitionInput, opts ...request.Option) (*PutReportDefinitionOutput, error) { req, out := c.PutReportDefinitionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateReportDefinition = "UpdateReportDefinition" // UpdateReportDefinitionRequest generates a "aws/request.Request" representing the // client's request for the UpdateReportDefinition operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateReportDefinition for more information on using the UpdateReportDefinition // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateReportDefinitionRequest method. // req, resp := client.UpdateReportDefinitionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/UpdateReportDefinition func (c *ApplicationCostProfiler) UpdateReportDefinitionRequest(input *UpdateReportDefinitionInput) (req *request.Request, output *UpdateReportDefinitionOutput) { op := &request.Operation{ Name: opUpdateReportDefinition, HTTPMethod: "PUT", HTTPPath: "/reportDefinition/{reportId}", } if input == nil { input = &UpdateReportDefinitionInput{} } output = &UpdateReportDefinitionOutput{} req = c.newRequest(op, input, output) return } // UpdateReportDefinition API operation for AWS Application Cost Profiler. // // Updates existing report in AWS Application Cost Profiler. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Application Cost Profiler's // API operation UpdateReportDefinition for usage and error information. // // Returned Error Types: // * InternalServerException // An internal server error occurred. Retry your request. // // * ThrottlingException // The calls to AWS Application Cost Profiler API are throttled. The request // was denied. // // * ValidationException // The input fails to satisfy the constraints for the API. // // * AccessDeniedException // You do not have permission to perform this action. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10/UpdateReportDefinition func (c *ApplicationCostProfiler) UpdateReportDefinition(input *UpdateReportDefinitionInput) (*UpdateReportDefinitionOutput, error) { req, out := c.UpdateReportDefinitionRequest(input) return out, req.Send() } // UpdateReportDefinitionWithContext is the same as UpdateReportDefinition with the addition of // the ability to pass a context and additional request options. // // See UpdateReportDefinition for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ApplicationCostProfiler) UpdateReportDefinitionWithContext(ctx aws.Context, input *UpdateReportDefinitionInput, opts ...request.Option) (*UpdateReportDefinitionOutput, error) { req, out := c.UpdateReportDefinitionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // You do not have permission to perform this action. type AccessDeniedException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s AccessDeniedException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AccessDeniedException) GoString() string { return s.String() } func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { return &AccessDeniedException{ RespMetadata: v, } } // Code returns the exception type name. func (s *AccessDeniedException) Code() string { return "AccessDeniedException" } // Message returns the exception's message. func (s *AccessDeniedException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *AccessDeniedException) OrigErr() error { return nil } func (s *AccessDeniedException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *AccessDeniedException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *AccessDeniedException) RequestID() string { return s.RespMetadata.RequestID } type DeleteReportDefinitionInput struct { _ struct{} `type:"structure"` // Required. ID of the report to delete. // // ReportId is a required field ReportId *string `location:"uri" locationName:"reportId" min:"1" type:"string" required:"true"` } // String returns the string representation func (s DeleteReportDefinitionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteReportDefinitionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteReportDefinitionInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteReportDefinitionInput"} if s.ReportId == nil { invalidParams.Add(request.NewErrParamRequired("ReportId")) } if s.ReportId != nil && len(*s.ReportId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ReportId", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetReportId sets the ReportId field's value. func (s *DeleteReportDefinitionInput) SetReportId(v string) *DeleteReportDefinitionInput { s.ReportId = &v return s } type DeleteReportDefinitionOutput struct { _ struct{} `type:"structure"` // ID of the report that was deleted. ReportId *string `locationName:"reportId" min:"1" type:"string"` } // String returns the string representation func (s DeleteReportDefinitionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteReportDefinitionOutput) GoString() string { return s.String() } // SetReportId sets the ReportId field's value. func (s *DeleteReportDefinitionOutput) SetReportId(v string) *DeleteReportDefinitionOutput { s.ReportId = &v return s } type GetReportDefinitionInput struct { _ struct{} `type:"structure"` // ID of the report to retrieve. // // ReportId is a required field ReportId *string `location:"uri" locationName:"reportId" min:"1" type:"string" required:"true"` } // String returns the string representation func (s GetReportDefinitionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetReportDefinitionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetReportDefinitionInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetReportDefinitionInput"} if s.ReportId == nil { invalidParams.Add(request.NewErrParamRequired("ReportId")) } if s.ReportId != nil && len(*s.ReportId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ReportId", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetReportId sets the ReportId field's value. func (s *GetReportDefinitionInput) SetReportId(v string) *GetReportDefinitionInput { s.ReportId = &v return s } type GetReportDefinitionOutput struct { _ struct{} `type:"structure"` // Timestamp (milliseconds) when this report definition was created. // // CreatedAt is a required field CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"` // Amazon Simple Storage Service (Amazon S3) location where the report is uploaded. // // DestinationS3Location is a required field DestinationS3Location *S3Location `locationName:"destinationS3Location" type:"structure" required:"true"` // Format of the generated report. // // Format is a required field Format *string `locationName:"format" type:"string" required:"true" enum:"Format"` // Timestamp (milliseconds) when this report definition was last updated. // // LastUpdated is a required field LastUpdated *time.Time `locationName:"lastUpdated" type:"timestamp" required:"true"` // Description of the report. // // ReportDescription is a required field ReportDescription *string `locationName:"reportDescription" min:"1" type:"string" required:"true"` // Cadence used to generate the report. // // ReportFrequency is a required field ReportFrequency *string `locationName:"reportFrequency" type:"string" required:"true" enum:"ReportFrequency"` // ID of the report retrieved. // // ReportId is a required field ReportId *string `locationName:"reportId" min:"1" type:"string" required:"true"` } // String returns the string representation func (s GetReportDefinitionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetReportDefinitionOutput) GoString() string { return s.String() } // SetCreatedAt sets the CreatedAt field's value. func (s *GetReportDefinitionOutput) SetCreatedAt(v time.Time) *GetReportDefinitionOutput { s.CreatedAt = &v return s } // SetDestinationS3Location sets the DestinationS3Location field's value. func (s *GetReportDefinitionOutput) SetDestinationS3Location(v *S3Location) *GetReportDefinitionOutput { s.DestinationS3Location = v return s } // SetFormat sets the Format field's value. func (s *GetReportDefinitionOutput) SetFormat(v string) *GetReportDefinitionOutput { s.Format = &v return s } // SetLastUpdated sets the LastUpdated field's value. func (s *GetReportDefinitionOutput) SetLastUpdated(v time.Time) *GetReportDefinitionOutput { s.LastUpdated = &v return s } // SetReportDescription sets the ReportDescription field's value. func (s *GetReportDefinitionOutput) SetReportDescription(v string) *GetReportDefinitionOutput { s.ReportDescription = &v return s } // SetReportFrequency sets the ReportFrequency field's value. func (s *GetReportDefinitionOutput) SetReportFrequency(v string) *GetReportDefinitionOutput { s.ReportFrequency = &v return s } // SetReportId sets the ReportId field's value. func (s *GetReportDefinitionOutput) SetReportId(v string) *GetReportDefinitionOutput { s.ReportId = &v return s } type ImportApplicationUsageInput struct { _ struct{} `type:"structure"` // Amazon S3 location to import application usage data from. // // SourceS3Location is a required field SourceS3Location *SourceS3Location `locationName:"sourceS3Location" type:"structure" required:"true"` } // String returns the string representation func (s ImportApplicationUsageInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ImportApplicationUsageInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ImportApplicationUsageInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ImportApplicationUsageInput"} if s.SourceS3Location == nil { invalidParams.Add(request.NewErrParamRequired("SourceS3Location")) } if s.SourceS3Location != nil { if err := s.SourceS3Location.Validate(); err != nil { invalidParams.AddNested("SourceS3Location", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetSourceS3Location sets the SourceS3Location field's value. func (s *ImportApplicationUsageInput) SetSourceS3Location(v *SourceS3Location) *ImportApplicationUsageInput { s.SourceS3Location = v return s } type ImportApplicationUsageOutput struct { _ struct{} `type:"structure"` // ID of the import request. // // ImportId is a required field ImportId *string `locationName:"importId" min:"1" type:"string" required:"true"` } // String returns the string representation func (s ImportApplicationUsageOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ImportApplicationUsageOutput) GoString() string { return s.String() } // SetImportId sets the ImportId field's value. func (s *ImportApplicationUsageOutput) SetImportId(v string) *ImportApplicationUsageOutput { s.ImportId = &v return s } // An internal server error occurred. Retry your request. type InternalServerException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s InternalServerException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s InternalServerException) GoString() string { return s.String() } func newErrorInternalServerException(v protocol.ResponseMetadata) error { return &InternalServerException{ RespMetadata: v, } } // Code returns the exception type name. func (s *InternalServerException) Code() string { return "InternalServerException" } // Message returns the exception's message. func (s *InternalServerException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *InternalServerException) OrigErr() error { return nil } func (s *InternalServerException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *InternalServerException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *InternalServerException) RequestID() string { return s.RespMetadata.RequestID } type ListReportDefinitionsInput struct { _ struct{} `type:"structure"` // The maximum number of results to return. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // The token value from a previous call to access the next page of results. NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation func (s ListReportDefinitionsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListReportDefinitionsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListReportDefinitionsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListReportDefinitionsInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxResults sets the MaxResults field's value. func (s *ListReportDefinitionsInput) SetMaxResults(v int64) *ListReportDefinitionsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListReportDefinitionsInput) SetNextToken(v string) *ListReportDefinitionsInput { s.NextToken = &v return s } type ListReportDefinitionsOutput struct { _ struct{} `type:"structure"` // The value of the next token, if it exists. Null if there are no more results. NextToken *string `locationName:"nextToken" min:"1" type:"string"` // The retrieved reports. ReportDefinitions []*ReportDefinition `locationName:"reportDefinitions" type:"list"` } // String returns the string representation func (s ListReportDefinitionsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListReportDefinitionsOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *ListReportDefinitionsOutput) SetNextToken(v string) *ListReportDefinitionsOutput { s.NextToken = &v return s } // SetReportDefinitions sets the ReportDefinitions field's value. func (s *ListReportDefinitionsOutput) SetReportDefinitions(v []*ReportDefinition) *ListReportDefinitionsOutput { s.ReportDefinitions = v return s } type PutReportDefinitionInput struct { _ struct{} `type:"structure"` // Required. Amazon Simple Storage Service (Amazon S3) location where Application // Cost Profiler uploads the report. // // DestinationS3Location is a required field DestinationS3Location *S3Location `locationName:"destinationS3Location" type:"structure" required:"true"` // Required. The format to use for the generated report. // // Format is a required field Format *string `locationName:"format" type:"string" required:"true" enum:"Format"` // Required. Description of the report. // // ReportDescription is a required field ReportDescription *string `locationName:"reportDescription" min:"1" type:"string" required:"true"` // Required. The cadence to generate the report. // // ReportFrequency is a required field ReportFrequency *string `locationName:"reportFrequency" type:"string" required:"true" enum:"ReportFrequency"` // Required. ID of the report. You can choose any valid string matching the // pattern for the ID. // // ReportId is a required field ReportId *string `locationName:"reportId" min:"1" type:"string" required:"true"` } // String returns the string representation func (s PutReportDefinitionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s PutReportDefinitionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *PutReportDefinitionInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "PutReportDefinitionInput"} if s.DestinationS3Location == nil { invalidParams.Add(request.NewErrParamRequired("DestinationS3Location")) } if s.Format == nil { invalidParams.Add(request.NewErrParamRequired("Format")) } if s.ReportDescription == nil { invalidParams.Add(request.NewErrParamRequired("ReportDescription")) } if s.ReportDescription != nil && len(*s.ReportDescription) < 1 { invalidParams.Add(request.NewErrParamMinLen("ReportDescription", 1)) } if s.ReportFrequency == nil { invalidParams.Add(request.NewErrParamRequired("ReportFrequency")) } if s.ReportId == nil { invalidParams.Add(request.NewErrParamRequired("ReportId")) } if s.ReportId != nil && len(*s.ReportId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ReportId", 1)) } if s.DestinationS3Location != nil { if err := s.DestinationS3Location.Validate(); err != nil { invalidParams.AddNested("DestinationS3Location", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDestinationS3Location sets the DestinationS3Location field's value. func (s *PutReportDefinitionInput) SetDestinationS3Location(v *S3Location) *PutReportDefinitionInput { s.DestinationS3Location = v return s } // SetFormat sets the Format field's value. func (s *PutReportDefinitionInput) SetFormat(v string) *PutReportDefinitionInput { s.Format = &v return s } // SetReportDescription sets the ReportDescription field's value. func (s *PutReportDefinitionInput) SetReportDescription(v string) *PutReportDefinitionInput { s.ReportDescription = &v return s } // SetReportFrequency sets the ReportFrequency field's value. func (s *PutReportDefinitionInput) SetReportFrequency(v string) *PutReportDefinitionInput { s.ReportFrequency = &v return s } // SetReportId sets the ReportId field's value. func (s *PutReportDefinitionInput) SetReportId(v string) *PutReportDefinitionInput { s.ReportId = &v return s } type PutReportDefinitionOutput struct { _ struct{} `type:"structure"` // ID of the report. ReportId *string `locationName:"reportId" min:"1" type:"string"` } // String returns the string representation func (s PutReportDefinitionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s PutReportDefinitionOutput) GoString() string { return s.String() } // SetReportId sets the ReportId field's value. func (s *PutReportDefinitionOutput) SetReportId(v string) *PutReportDefinitionOutput { s.ReportId = &v return s } // The configuration of a report in AWS Application Cost Profiler. type ReportDefinition struct { _ struct{} `type:"structure"` // Timestamp (milliseconds) when this report definition was created. CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` // The location in Amazon Simple Storage Service (Amazon S3) the reports should // be saved to. DestinationS3Location *S3Location `locationName:"destinationS3Location" type:"structure"` // The format used for the generated reports. Format *string `locationName:"format" type:"string" enum:"Format"` // Timestamp (milliseconds) when this report definition was last updated. LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"` // Description of the report ReportDescription *string `locationName:"reportDescription" min:"1" type:"string"` // The cadence at which the report is generated. ReportFrequency *string `locationName:"reportFrequency" type:"string" enum:"ReportFrequency"` // The ID of the report. ReportId *string `locationName:"reportId" min:"1" type:"string"` } // String returns the string representation func (s ReportDefinition) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ReportDefinition) GoString() string { return s.String() } // SetCreatedAt sets the CreatedAt field's value. func (s *ReportDefinition) SetCreatedAt(v time.Time) *ReportDefinition { s.CreatedAt = &v return s } // SetDestinationS3Location sets the DestinationS3Location field's value. func (s *ReportDefinition) SetDestinationS3Location(v *S3Location) *ReportDefinition { s.DestinationS3Location = v return s } // SetFormat sets the Format field's value. func (s *ReportDefinition) SetFormat(v string) *ReportDefinition { s.Format = &v return s } // SetLastUpdatedAt sets the LastUpdatedAt field's value. func (s *ReportDefinition) SetLastUpdatedAt(v time.Time) *ReportDefinition { s.LastUpdatedAt = &v return s } // SetReportDescription sets the ReportDescription field's value. func (s *ReportDefinition) SetReportDescription(v string) *ReportDefinition { s.ReportDescription = &v return s } // SetReportFrequency sets the ReportFrequency field's value. func (s *ReportDefinition) SetReportFrequency(v string) *ReportDefinition { s.ReportFrequency = &v return s } // SetReportId sets the ReportId field's value. func (s *ReportDefinition) SetReportId(v string) *ReportDefinition { s.ReportId = &v return s } // Represents the Amazon Simple Storage Service (Amazon S3) location where AWS // Application Cost Profiler reports are generated and then written to. type S3Location struct { _ struct{} `type:"structure"` // Name of the S3 bucket. // // Bucket is a required field Bucket *string `locationName:"bucket" min:"3" type:"string" required:"true"` // Prefix for the location to write to. // // Prefix is a required field Prefix *string `locationName:"prefix" min:"1" type:"string" required:"true"` } // String returns the string representation func (s S3Location) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s S3Location) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *S3Location) Validate() error { invalidParams := request.ErrInvalidParams{Context: "S3Location"} if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } if s.Bucket != nil && len(*s.Bucket) < 3 { invalidParams.Add(request.NewErrParamMinLen("Bucket", 3)) } if s.Prefix == nil { invalidParams.Add(request.NewErrParamRequired("Prefix")) } if s.Prefix != nil && len(*s.Prefix) < 1 { invalidParams.Add(request.NewErrParamMinLen("Prefix", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetBucket sets the Bucket field's value. func (s *S3Location) SetBucket(v string) *S3Location { s.Bucket = &v return s } // SetPrefix sets the Prefix field's value. func (s *S3Location) SetPrefix(v string) *S3Location { s.Prefix = &v return s } // Your request exceeds one or more of the service quotas. type ServiceQuotaExceededException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s ServiceQuotaExceededException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ServiceQuotaExceededException) GoString() string { return s.String() } func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error { return &ServiceQuotaExceededException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ServiceQuotaExceededException) Code() string { return "ServiceQuotaExceededException" } // Message returns the exception's message. func (s *ServiceQuotaExceededException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ServiceQuotaExceededException) OrigErr() error { return nil } func (s *ServiceQuotaExceededException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ServiceQuotaExceededException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ServiceQuotaExceededException) RequestID() string { return s.RespMetadata.RequestID } // Represents the Amazon Simple Storage Service (Amazon S3) location where usage // data is read from. type SourceS3Location struct { _ struct{} `type:"structure"` // Name of the bucket. // // Bucket is a required field Bucket *string `locationName:"bucket" min:"3" type:"string" required:"true"` // Key of the object. // // Key is a required field Key *string `locationName:"key" min:"1" type:"string" required:"true"` // Region of the bucket. Only required for Regions that are disabled by default. // For more infomration about Regions that are disabled by default, see Enabling // a Region (https://docs.aws.amazon.com/general/latest/gr/rande-manage.html#rande-manage-enable) // in the AWS General Reference guide. Region *string `locationName:"region" type:"string" enum:"S3BucketRegion"` } // String returns the string representation func (s SourceS3Location) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s SourceS3Location) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *SourceS3Location) Validate() error { invalidParams := request.ErrInvalidParams{Context: "SourceS3Location"} if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } if s.Bucket != nil && len(*s.Bucket) < 3 { invalidParams.Add(request.NewErrParamMinLen("Bucket", 3)) } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } if s.Key != nil && len(*s.Key) < 1 { invalidParams.Add(request.NewErrParamMinLen("Key", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetBucket sets the Bucket field's value. func (s *SourceS3Location) SetBucket(v string) *SourceS3Location { s.Bucket = &v return s } // SetKey sets the Key field's value. func (s *SourceS3Location) SetKey(v string) *SourceS3Location { s.Key = &v return s } // SetRegion sets the Region field's value. func (s *SourceS3Location) SetRegion(v string) *SourceS3Location { s.Region = &v return s } // The calls to AWS Application Cost Profiler API are throttled. The request // was denied. type ThrottlingException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s ThrottlingException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ThrottlingException) GoString() string { return s.String() } func newErrorThrottlingException(v protocol.ResponseMetadata) error { return &ThrottlingException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ThrottlingException) Code() string { return "ThrottlingException" } // Message returns the exception's message. func (s *ThrottlingException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ThrottlingException) OrigErr() error { return nil } func (s *ThrottlingException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ThrottlingException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ThrottlingException) RequestID() string { return s.RespMetadata.RequestID } type UpdateReportDefinitionInput struct { _ struct{} `type:"structure"` // Required. Amazon Simple Storage Service (Amazon S3) location where Application // Cost Profiler uploads the report. // // DestinationS3Location is a required field DestinationS3Location *S3Location `locationName:"destinationS3Location" type:"structure" required:"true"` // Required. The format to use for the generated report. // // Format is a required field Format *string `locationName:"format" type:"string" required:"true" enum:"Format"` // Required. Description of the report. // // ReportDescription is a required field ReportDescription *string `locationName:"reportDescription" min:"1" type:"string" required:"true"` // Required. The cadence to generate the report. // // ReportFrequency is a required field ReportFrequency *string `locationName:"reportFrequency" type:"string" required:"true" enum:"ReportFrequency"` // Required. ID of the report to update. // // ReportId is a required field ReportId *string `location:"uri" locationName:"reportId" min:"1" type:"string" required:"true"` } // String returns the string representation func (s UpdateReportDefinitionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateReportDefinitionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateReportDefinitionInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateReportDefinitionInput"} if s.DestinationS3Location == nil { invalidParams.Add(request.NewErrParamRequired("DestinationS3Location")) } if s.Format == nil { invalidParams.Add(request.NewErrParamRequired("Format")) } if s.ReportDescription == nil { invalidParams.Add(request.NewErrParamRequired("ReportDescription")) } if s.ReportDescription != nil && len(*s.ReportDescription) < 1 { invalidParams.Add(request.NewErrParamMinLen("ReportDescription", 1)) } if s.ReportFrequency == nil { invalidParams.Add(request.NewErrParamRequired("ReportFrequency")) } if s.ReportId == nil { invalidParams.Add(request.NewErrParamRequired("ReportId")) } if s.ReportId != nil && len(*s.ReportId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ReportId", 1)) } if s.DestinationS3Location != nil { if err := s.DestinationS3Location.Validate(); err != nil { invalidParams.AddNested("DestinationS3Location", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDestinationS3Location sets the DestinationS3Location field's value. func (s *UpdateReportDefinitionInput) SetDestinationS3Location(v *S3Location) *UpdateReportDefinitionInput { s.DestinationS3Location = v return s } // SetFormat sets the Format field's value. func (s *UpdateReportDefinitionInput) SetFormat(v string) *UpdateReportDefinitionInput { s.Format = &v return s } // SetReportDescription sets the ReportDescription field's value. func (s *UpdateReportDefinitionInput) SetReportDescription(v string) *UpdateReportDefinitionInput { s.ReportDescription = &v return s } // SetReportFrequency sets the ReportFrequency field's value. func (s *UpdateReportDefinitionInput) SetReportFrequency(v string) *UpdateReportDefinitionInput { s.ReportFrequency = &v return s } // SetReportId sets the ReportId field's value. func (s *UpdateReportDefinitionInput) SetReportId(v string) *UpdateReportDefinitionInput { s.ReportId = &v return s } type UpdateReportDefinitionOutput struct { _ struct{} `type:"structure"` // ID of the report. ReportId *string `locationName:"reportId" min:"1" type:"string"` } // String returns the string representation func (s UpdateReportDefinitionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateReportDefinitionOutput) GoString() string { return s.String() } // SetReportId sets the ReportId field's value. func (s *UpdateReportDefinitionOutput) SetReportId(v string) *UpdateReportDefinitionOutput { s.ReportId = &v return s } // The input fails to satisfy the constraints for the API. type ValidationException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s ValidationException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ValidationException) GoString() string { return s.String() } func newErrorValidationException(v protocol.ResponseMetadata) error { return &ValidationException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ValidationException) Code() string { return "ValidationException" } // Message returns the exception's message. func (s *ValidationException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ValidationException) OrigErr() error { return nil } func (s *ValidationException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ValidationException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ValidationException) RequestID() string { return s.RespMetadata.RequestID } const ( // FormatCsv is a Format enum value FormatCsv = "CSV" // FormatParquet is a Format enum value FormatParquet = "PARQUET" ) // Format_Values returns all elements of the Format enum func Format_Values() []string { return []string{ FormatCsv, FormatParquet, } } const ( // ReportFrequencyMonthly is a ReportFrequency enum value ReportFrequencyMonthly = "MONTHLY" // ReportFrequencyDaily is a ReportFrequency enum value ReportFrequencyDaily = "DAILY" // ReportFrequencyAll is a ReportFrequency enum value ReportFrequencyAll = "ALL" ) // ReportFrequency_Values returns all elements of the ReportFrequency enum func ReportFrequency_Values() []string { return []string{ ReportFrequencyMonthly, ReportFrequencyDaily, ReportFrequencyAll, } } const ( // S3BucketRegionApEast1 is a S3BucketRegion enum value S3BucketRegionApEast1 = "ap-east-1" // S3BucketRegionMeSouth1 is a S3BucketRegion enum value S3BucketRegionMeSouth1 = "me-south-1" // S3BucketRegionEuSouth1 is a S3BucketRegion enum value S3BucketRegionEuSouth1 = "eu-south-1" // S3BucketRegionAfSouth1 is a S3BucketRegion enum value S3BucketRegionAfSouth1 = "af-south-1" ) // S3BucketRegion_Values returns all elements of the S3BucketRegion enum func S3BucketRegion_Values() []string { return []string{ S3BucketRegionApEast1, S3BucketRegionMeSouth1, S3BucketRegionEuSouth1, S3BucketRegionAfSouth1, } }
1,773
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package applicationcostprofiler provides the client and types for making API // requests to AWS Application Cost Profiler. // // This reference provides descriptions of the AWS Application Cost Profiler // API. // // The AWS Application Cost Profiler API provides programmatic access to view, // create, update, and delete application cost report definitions, as well as // to import your usage data into the Application Cost Profiler service. // // For more information about using this service, see the AWS Application Cost // Profiler User Guide (https://docs.aws.amazon.com/application-cost-profiler/latest/userguide/introduction.html). // // See https://docs.aws.amazon.com/goto/WebAPI/AWSApplicationCostProfiler-2020-09-10 for more information on this service. // // See applicationcostprofiler package documentation for more information. // https://docs.aws.amazon.com/sdk-for-go/api/service/applicationcostprofiler/ // // Using the Client // // To contact AWS Application Cost Profiler 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 Application Cost Profiler client ApplicationCostProfiler for more // information on creating client for this service. // https://docs.aws.amazon.com/sdk-for-go/api/service/applicationcostprofiler/#New package applicationcostprofiler
37
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package applicationcostprofiler import ( "github.com/aws/aws-sdk-go/private/protocol" ) const ( // ErrCodeAccessDeniedException for service response error code // "AccessDeniedException". // // You do not have permission to perform this action. ErrCodeAccessDeniedException = "AccessDeniedException" // ErrCodeInternalServerException for service response error code // "InternalServerException". // // An internal server error occurred. Retry your request. ErrCodeInternalServerException = "InternalServerException" // ErrCodeServiceQuotaExceededException for service response error code // "ServiceQuotaExceededException". // // Your request exceeds one or more of the service quotas. ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException" // ErrCodeThrottlingException for service response error code // "ThrottlingException". // // The calls to AWS Application Cost Profiler API are throttled. The request // was denied. ErrCodeThrottlingException = "ThrottlingException" // ErrCodeValidationException for service response error code // "ValidationException". // // The input fails to satisfy the constraints for the API. ErrCodeValidationException = "ValidationException" ) var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "AccessDeniedException": newErrorAccessDeniedException, "InternalServerException": newErrorInternalServerException, "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, "ThrottlingException": newErrorThrottlingException, "ValidationException": newErrorValidationException, }
50
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package applicationcostprofiler 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" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) // ApplicationCostProfiler provides the API operation methods for making requests to // AWS Application Cost Profiler. See this package's package overview docs // for details on the service. // // ApplicationCostProfiler methods are safe to use concurrently. It is not safe to // modify mutate any of the struct's properties though. type ApplicationCostProfiler 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 = "ApplicationCostProfiler" // Name of service. EndpointsID = "application-cost-profiler" // ID to lookup a service endpoint with. ServiceID = "ApplicationCostProfiler" // ServiceID is a unique identifier of a specific service. ) // New creates a new instance of the ApplicationCostProfiler 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: // mySession := session.Must(session.NewSession()) // // // Create a ApplicationCostProfiler client from just a session. // svc := applicationcostprofiler.New(mySession) // // // Create a ApplicationCostProfiler client with additional configuration // svc := applicationcostprofiler.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *ApplicationCostProfiler { c := p.ClientConfig(EndpointsID, cfgs...) if c.SigningNameDerived || len(c.SigningName) == 0 { c.SigningName = "application-cost-profiler" } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *ApplicationCostProfiler { svc := &ApplicationCostProfiler{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, ServiceID: ServiceID, SigningName: signingName, SigningRegion: signingRegion, PartitionID: partitionID, Endpoint: endpoint, APIVersion: "2020-09-10", }, 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( protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), ) // Run custom client initialization if present if initClient != nil { initClient(svc.Client) } return svc } // newRequest creates a new request for a ApplicationCostProfiler operation and runs any // custom request initialization. func (c *ApplicationCostProfiler) 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 }
105
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package applicationcostprofileriface provides an interface to enable mocking the AWS Application Cost Profiler 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 applicationcostprofileriface import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/service/applicationcostprofiler" ) // ApplicationCostProfilerAPI provides an interface to enable mocking the // applicationcostprofiler.ApplicationCostProfiler 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 Application Cost Profiler. // func myFunc(svc applicationcostprofileriface.ApplicationCostProfilerAPI) bool { // // Make svc.DeleteReportDefinition request // } // // func main() { // sess := session.New() // svc := applicationcostprofiler.New(sess) // // myFunc(svc) // } // // In your _test.go file: // // // Define a mock struct to be used in your unit tests of myFunc. // type mockApplicationCostProfilerClient struct { // applicationcostprofileriface.ApplicationCostProfilerAPI // } // func (m *mockApplicationCostProfilerClient) DeleteReportDefinition(input *applicationcostprofiler.DeleteReportDefinitionInput) (*applicationcostprofiler.DeleteReportDefinitionOutput, error) { // // mock response/functionality // } // // func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockApplicationCostProfilerClient{} // // 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 ApplicationCostProfilerAPI interface { DeleteReportDefinition(*applicationcostprofiler.DeleteReportDefinitionInput) (*applicationcostprofiler.DeleteReportDefinitionOutput, error) DeleteReportDefinitionWithContext(aws.Context, *applicationcostprofiler.DeleteReportDefinitionInput, ...request.Option) (*applicationcostprofiler.DeleteReportDefinitionOutput, error) DeleteReportDefinitionRequest(*applicationcostprofiler.DeleteReportDefinitionInput) (*request.Request, *applicationcostprofiler.DeleteReportDefinitionOutput) GetReportDefinition(*applicationcostprofiler.GetReportDefinitionInput) (*applicationcostprofiler.GetReportDefinitionOutput, error) GetReportDefinitionWithContext(aws.Context, *applicationcostprofiler.GetReportDefinitionInput, ...request.Option) (*applicationcostprofiler.GetReportDefinitionOutput, error) GetReportDefinitionRequest(*applicationcostprofiler.GetReportDefinitionInput) (*request.Request, *applicationcostprofiler.GetReportDefinitionOutput) ImportApplicationUsage(*applicationcostprofiler.ImportApplicationUsageInput) (*applicationcostprofiler.ImportApplicationUsageOutput, error) ImportApplicationUsageWithContext(aws.Context, *applicationcostprofiler.ImportApplicationUsageInput, ...request.Option) (*applicationcostprofiler.ImportApplicationUsageOutput, error) ImportApplicationUsageRequest(*applicationcostprofiler.ImportApplicationUsageInput) (*request.Request, *applicationcostprofiler.ImportApplicationUsageOutput) ListReportDefinitions(*applicationcostprofiler.ListReportDefinitionsInput) (*applicationcostprofiler.ListReportDefinitionsOutput, error) ListReportDefinitionsWithContext(aws.Context, *applicationcostprofiler.ListReportDefinitionsInput, ...request.Option) (*applicationcostprofiler.ListReportDefinitionsOutput, error) ListReportDefinitionsRequest(*applicationcostprofiler.ListReportDefinitionsInput) (*request.Request, *applicationcostprofiler.ListReportDefinitionsOutput) ListReportDefinitionsPages(*applicationcostprofiler.ListReportDefinitionsInput, func(*applicationcostprofiler.ListReportDefinitionsOutput, bool) bool) error ListReportDefinitionsPagesWithContext(aws.Context, *applicationcostprofiler.ListReportDefinitionsInput, func(*applicationcostprofiler.ListReportDefinitionsOutput, bool) bool, ...request.Option) error PutReportDefinition(*applicationcostprofiler.PutReportDefinitionInput) (*applicationcostprofiler.PutReportDefinitionOutput, error) PutReportDefinitionWithContext(aws.Context, *applicationcostprofiler.PutReportDefinitionInput, ...request.Option) (*applicationcostprofiler.PutReportDefinitionOutput, error) PutReportDefinitionRequest(*applicationcostprofiler.PutReportDefinitionInput) (*request.Request, *applicationcostprofiler.PutReportDefinitionOutput) UpdateReportDefinition(*applicationcostprofiler.UpdateReportDefinitionInput) (*applicationcostprofiler.UpdateReportDefinitionOutput, error) UpdateReportDefinitionWithContext(aws.Context, *applicationcostprofiler.UpdateReportDefinitionInput, ...request.Option) (*applicationcostprofiler.UpdateReportDefinitionOutput, error) UpdateReportDefinitionRequest(*applicationcostprofiler.UpdateReportDefinitionInput) (*request.Request, *applicationcostprofiler.UpdateReportDefinitionOutput) } var _ ApplicationCostProfilerAPI = (*applicationcostprofiler.ApplicationCostProfiler)(nil)
92
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package applicationdiscoveryservice import ( "fmt" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) const opAssociateConfigurationItemsToApplication = "AssociateConfigurationItemsToApplication" // AssociateConfigurationItemsToApplicationRequest generates a "aws/request.Request" representing the // client's request for the AssociateConfigurationItemsToApplication operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See AssociateConfigurationItemsToApplication for more information on using the AssociateConfigurationItemsToApplication // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the AssociateConfigurationItemsToApplicationRequest method. // req, resp := client.AssociateConfigurationItemsToApplicationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/AssociateConfigurationItemsToApplication func (c *ApplicationDiscoveryService) AssociateConfigurationItemsToApplicationRequest(input *AssociateConfigurationItemsToApplicationInput) (req *request.Request, output *AssociateConfigurationItemsToApplicationOutput) { op := &request.Operation{ Name: opAssociateConfigurationItemsToApplication, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &AssociateConfigurationItemsToApplicationInput{} } output = &AssociateConfigurationItemsToApplicationOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // AssociateConfigurationItemsToApplication API operation for AWS Application Discovery Service. // // Associates one or more configuration items with an application. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Application Discovery Service's // API operation AssociateConfigurationItemsToApplication for usage and error information. // // Returned Error Types: // * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // // * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // // * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // // * ServerInternalErrorException // The server experienced an internal error. Try again. // // * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/AssociateConfigurationItemsToApplication func (c *ApplicationDiscoveryService) AssociateConfigurationItemsToApplication(input *AssociateConfigurationItemsToApplicationInput) (*AssociateConfigurationItemsToApplicationOutput, error) { req, out := c.AssociateConfigurationItemsToApplicationRequest(input) return out, req.Send() } // AssociateConfigurationItemsToApplicationWithContext is the same as AssociateConfigurationItemsToApplication with the addition of // the ability to pass a context and additional request options. // // See AssociateConfigurationItemsToApplication for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ApplicationDiscoveryService) AssociateConfigurationItemsToApplicationWithContext(ctx aws.Context, input *AssociateConfigurationItemsToApplicationInput, opts ...request.Option) (*AssociateConfigurationItemsToApplicationOutput, error) { req, out := c.AssociateConfigurationItemsToApplicationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opBatchDeleteImportData = "BatchDeleteImportData" // BatchDeleteImportDataRequest generates a "aws/request.Request" representing the // client's request for the BatchDeleteImportData operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See BatchDeleteImportData for more information on using the BatchDeleteImportData // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the BatchDeleteImportDataRequest method. // req, resp := client.BatchDeleteImportDataRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/BatchDeleteImportData func (c *ApplicationDiscoveryService) BatchDeleteImportDataRequest(input *BatchDeleteImportDataInput) (req *request.Request, output *BatchDeleteImportDataOutput) { op := &request.Operation{ Name: opBatchDeleteImportData, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &BatchDeleteImportDataInput{} } output = &BatchDeleteImportDataOutput{} req = c.newRequest(op, input, output) return } // BatchDeleteImportData API operation for AWS Application Discovery Service. // // Deletes one or more import tasks, each identified by their import ID. Each // import task has a number of records that can identify servers or applications. // // AWS Application Discovery Service has built-in matching logic that will identify // when discovered servers match existing entries that you've previously discovered, // the information for the already-existing discovered server is updated. When // you delete an import task that contains records that were used to match, // the information in those matched records that comes from the deleted records // will also be deleted. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Application Discovery Service's // API operation BatchDeleteImportData for usage and error information. // // Returned Error Types: // * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // // * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // // * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // // * ServerInternalErrorException // The server experienced an internal error. Try again. // // * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/BatchDeleteImportData func (c *ApplicationDiscoveryService) BatchDeleteImportData(input *BatchDeleteImportDataInput) (*BatchDeleteImportDataOutput, error) { req, out := c.BatchDeleteImportDataRequest(input) return out, req.Send() } // BatchDeleteImportDataWithContext is the same as BatchDeleteImportData with the addition of // the ability to pass a context and additional request options. // // See BatchDeleteImportData for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ApplicationDiscoveryService) BatchDeleteImportDataWithContext(ctx aws.Context, input *BatchDeleteImportDataInput, opts ...request.Option) (*BatchDeleteImportDataOutput, error) { req, out := c.BatchDeleteImportDataRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateApplication = "CreateApplication" // CreateApplicationRequest generates a "aws/request.Request" representing the // client's request for the CreateApplication operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateApplication for more information on using the CreateApplication // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateApplicationRequest method. // req, resp := client.CreateApplicationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateApplication func (c *ApplicationDiscoveryService) CreateApplicationRequest(input *CreateApplicationInput) (req *request.Request, output *CreateApplicationOutput) { op := &request.Operation{ Name: opCreateApplication, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateApplicationInput{} } output = &CreateApplicationOutput{} req = c.newRequest(op, input, output) return } // CreateApplication API operation for AWS Application Discovery Service. // // Creates an application with the given name and description. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Application Discovery Service's // API operation CreateApplication for usage and error information. // // Returned Error Types: // * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // // * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // // * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // // * ServerInternalErrorException // The server experienced an internal error. Try again. // // * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateApplication func (c *ApplicationDiscoveryService) CreateApplication(input *CreateApplicationInput) (*CreateApplicationOutput, error) { req, out := c.CreateApplicationRequest(input) return out, req.Send() } // CreateApplicationWithContext is the same as CreateApplication with the addition of // the ability to pass a context and additional request options. // // See CreateApplication for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ApplicationDiscoveryService) CreateApplicationWithContext(ctx aws.Context, input *CreateApplicationInput, opts ...request.Option) (*CreateApplicationOutput, error) { req, out := c.CreateApplicationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateTags = "CreateTags" // CreateTagsRequest generates a "aws/request.Request" representing the // client's request for the CreateTags operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateTags for more information on using the CreateTags // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateTagsRequest method. // req, resp := client.CreateTagsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateTags func (c *ApplicationDiscoveryService) CreateTagsRequest(input *CreateTagsInput) (req *request.Request, output *CreateTagsOutput) { op := &request.Operation{ Name: opCreateTags, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateTagsInput{} } output = &CreateTagsOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // CreateTags API operation for AWS Application Discovery Service. // // Creates one or more tags for configuration items. Tags are metadata that // help you categorize IT assets. This API accepts a list of multiple configuration // items. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Application Discovery Service's // API operation CreateTags for usage and error information. // // Returned Error Types: // * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // // * ResourceNotFoundException // The specified configuration ID was not located. Verify the configuration // ID and try again. // // * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // // * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // // * ServerInternalErrorException // The server experienced an internal error. Try again. // // * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateTags func (c *ApplicationDiscoveryService) CreateTags(input *CreateTagsInput) (*CreateTagsOutput, error) { req, out := c.CreateTagsRequest(input) return out, req.Send() } // CreateTagsWithContext is the same as CreateTags with the addition of // the ability to pass a context and additional request options. // // See CreateTags for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ApplicationDiscoveryService) CreateTagsWithContext(ctx aws.Context, input *CreateTagsInput, opts ...request.Option) (*CreateTagsOutput, error) { req, out := c.CreateTagsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteApplications = "DeleteApplications" // DeleteApplicationsRequest generates a "aws/request.Request" representing the // client's request for the DeleteApplications operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteApplications for more information on using the DeleteApplications // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteApplicationsRequest method. // req, resp := client.DeleteApplicationsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteApplications func (c *ApplicationDiscoveryService) DeleteApplicationsRequest(input *DeleteApplicationsInput) (req *request.Request, output *DeleteApplicationsOutput) { op := &request.Operation{ Name: opDeleteApplications, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteApplicationsInput{} } output = &DeleteApplicationsOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteApplications API operation for AWS Application Discovery Service. // // Deletes a list of applications and their associations with configuration // items. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Application Discovery Service's // API operation DeleteApplications for usage and error information. // // Returned Error Types: // * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // // * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // // * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // // * ServerInternalErrorException // The server experienced an internal error. Try again. // // * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteApplications func (c *ApplicationDiscoveryService) DeleteApplications(input *DeleteApplicationsInput) (*DeleteApplicationsOutput, error) { req, out := c.DeleteApplicationsRequest(input) return out, req.Send() } // DeleteApplicationsWithContext is the same as DeleteApplications with the addition of // the ability to pass a context and additional request options. // // See DeleteApplications for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ApplicationDiscoveryService) DeleteApplicationsWithContext(ctx aws.Context, input *DeleteApplicationsInput, opts ...request.Option) (*DeleteApplicationsOutput, error) { req, out := c.DeleteApplicationsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteTags = "DeleteTags" // DeleteTagsRequest generates a "aws/request.Request" representing the // client's request for the DeleteTags operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteTags for more information on using the DeleteTags // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteTagsRequest method. // req, resp := client.DeleteTagsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteTags func (c *ApplicationDiscoveryService) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, output *DeleteTagsOutput) { op := &request.Operation{ Name: opDeleteTags, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteTagsInput{} } output = &DeleteTagsOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteTags API operation for AWS Application Discovery Service. // // Deletes the association between configuration items and one or more tags. // This API accepts a list of multiple configuration items. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Application Discovery Service's // API operation DeleteTags for usage and error information. // // Returned Error Types: // * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // // * ResourceNotFoundException // The specified configuration ID was not located. Verify the configuration // ID and try again. // // * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // // * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // // * ServerInternalErrorException // The server experienced an internal error. Try again. // // * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteTags func (c *ApplicationDiscoveryService) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) { req, out := c.DeleteTagsRequest(input) return out, req.Send() } // DeleteTagsWithContext is the same as DeleteTags with the addition of // the ability to pass a context and additional request options. // // See DeleteTags for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ApplicationDiscoveryService) DeleteTagsWithContext(ctx aws.Context, input *DeleteTagsInput, opts ...request.Option) (*DeleteTagsOutput, error) { req, out := c.DeleteTagsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeAgents = "DescribeAgents" // DescribeAgentsRequest generates a "aws/request.Request" representing the // client's request for the DescribeAgents operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeAgents for more information on using the DescribeAgents // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeAgentsRequest method. // req, resp := client.DescribeAgentsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeAgents func (c *ApplicationDiscoveryService) DescribeAgentsRequest(input *DescribeAgentsInput) (req *request.Request, output *DescribeAgentsOutput) { op := &request.Operation{ Name: opDescribeAgents, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeAgentsInput{} } output = &DescribeAgentsOutput{} req = c.newRequest(op, input, output) return } // DescribeAgents API operation for AWS Application Discovery Service. // // Lists agents or connectors as specified by ID or other filters. All agents/connectors // associated with your user account can be listed if you call DescribeAgents // as is without passing any parameters. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Application Discovery Service's // API operation DescribeAgents for usage and error information. // // Returned Error Types: // * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // // * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // // * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // // * ServerInternalErrorException // The server experienced an internal error. Try again. // // * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeAgents func (c *ApplicationDiscoveryService) DescribeAgents(input *DescribeAgentsInput) (*DescribeAgentsOutput, error) { req, out := c.DescribeAgentsRequest(input) return out, req.Send() } // DescribeAgentsWithContext is the same as DescribeAgents with the addition of // the ability to pass a context and additional request options. // // See DescribeAgents for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ApplicationDiscoveryService) DescribeAgentsWithContext(ctx aws.Context, input *DescribeAgentsInput, opts ...request.Option) (*DescribeAgentsOutput, error) { req, out := c.DescribeAgentsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeConfigurations = "DescribeConfigurations" // DescribeConfigurationsRequest generates a "aws/request.Request" representing the // client's request for the DescribeConfigurations operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeConfigurations for more information on using the DescribeConfigurations // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeConfigurationsRequest method. // req, resp := client.DescribeConfigurationsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeConfigurations func (c *ApplicationDiscoveryService) DescribeConfigurationsRequest(input *DescribeConfigurationsInput) (req *request.Request, output *DescribeConfigurationsOutput) { op := &request.Operation{ Name: opDescribeConfigurations, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeConfigurationsInput{} } output = &DescribeConfigurationsOutput{} req = c.newRequest(op, input, output) return } // DescribeConfigurations API operation for AWS Application Discovery Service. // // Retrieves attributes for a list of configuration item IDs. // // All of the supplied IDs must be for the same asset type from one of the following: // // * server // // * application // // * process // // * connection // // Output fields are specific to the asset type specified. For example, the // output for a server configuration item includes a list of attributes about // the server, such as host name, operating system, number of network cards, // etc. // // For a complete list of outputs for each asset type, see Using the DescribeConfigurations // Action (https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-api-queries.html#DescribeConfigurations) // in the AWS Application Discovery Service User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Application Discovery Service's // API operation DescribeConfigurations for usage and error information. // // Returned Error Types: // * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // // * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // // * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // // * ServerInternalErrorException // The server experienced an internal error. Try again. // // * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeConfigurations func (c *ApplicationDiscoveryService) DescribeConfigurations(input *DescribeConfigurationsInput) (*DescribeConfigurationsOutput, error) { req, out := c.DescribeConfigurationsRequest(input) return out, req.Send() } // DescribeConfigurationsWithContext is the same as DescribeConfigurations with the addition of // the ability to pass a context and additional request options. // // See DescribeConfigurations for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ApplicationDiscoveryService) DescribeConfigurationsWithContext(ctx aws.Context, input *DescribeConfigurationsInput, opts ...request.Option) (*DescribeConfigurationsOutput, error) { req, out := c.DescribeConfigurationsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeContinuousExports = "DescribeContinuousExports" // DescribeContinuousExportsRequest generates a "aws/request.Request" representing the // client's request for the DescribeContinuousExports operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeContinuousExports for more information on using the DescribeContinuousExports // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeContinuousExportsRequest method. // req, resp := client.DescribeContinuousExportsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeContinuousExports func (c *ApplicationDiscoveryService) DescribeContinuousExportsRequest(input *DescribeContinuousExportsInput) (req *request.Request, output *DescribeContinuousExportsOutput) { op := &request.Operation{ Name: opDescribeContinuousExports, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, LimitToken: "maxResults", TruncationToken: "", }, } if input == nil { input = &DescribeContinuousExportsInput{} } output = &DescribeContinuousExportsOutput{} req = c.newRequest(op, input, output) return } // DescribeContinuousExports API operation for AWS Application Discovery Service. // // Lists exports as specified by ID. All continuous exports associated with // your user account can be listed if you call DescribeContinuousExports as // is without passing any parameters. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Application Discovery Service's // API operation DescribeContinuousExports for usage and error information. // // Returned Error Types: // * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // // * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // // * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // // * ServerInternalErrorException // The server experienced an internal error. Try again. // // * OperationNotPermittedException // This operation is not permitted. // // * ResourceNotFoundException // The specified configuration ID was not located. Verify the configuration // ID and try again. // // * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeContinuousExports func (c *ApplicationDiscoveryService) DescribeContinuousExports(input *DescribeContinuousExportsInput) (*DescribeContinuousExportsOutput, error) { req, out := c.DescribeContinuousExportsRequest(input) return out, req.Send() } // DescribeContinuousExportsWithContext is the same as DescribeContinuousExports with the addition of // the ability to pass a context and additional request options. // // See DescribeContinuousExports for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ApplicationDiscoveryService) DescribeContinuousExportsWithContext(ctx aws.Context, input *DescribeContinuousExportsInput, opts ...request.Option) (*DescribeContinuousExportsOutput, error) { req, out := c.DescribeContinuousExportsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // DescribeContinuousExportsPages iterates over the pages of a DescribeContinuousExports operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See DescribeContinuousExports method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a DescribeContinuousExports operation. // pageNum := 0 // err := client.DescribeContinuousExportsPages(params, // func(page *applicationdiscoveryservice.DescribeContinuousExportsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *ApplicationDiscoveryService) DescribeContinuousExportsPages(input *DescribeContinuousExportsInput, fn func(*DescribeContinuousExportsOutput, bool) bool) error { return c.DescribeContinuousExportsPagesWithContext(aws.BackgroundContext(), input, fn) } // DescribeContinuousExportsPagesWithContext same as DescribeContinuousExportsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ApplicationDiscoveryService) DescribeContinuousExportsPagesWithContext(ctx aws.Context, input *DescribeContinuousExportsInput, fn func(*DescribeContinuousExportsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *DescribeContinuousExportsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.DescribeContinuousExportsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*DescribeContinuousExportsOutput), !p.HasNextPage()) { break } } return p.Err() } const opDescribeExportConfigurations = "DescribeExportConfigurations" // DescribeExportConfigurationsRequest generates a "aws/request.Request" representing the // client's request for the DescribeExportConfigurations operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeExportConfigurations for more information on using the DescribeExportConfigurations // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeExportConfigurationsRequest method. // req, resp := client.DescribeExportConfigurationsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportConfigurations // // Deprecated: DescribeExportConfigurations has been deprecated func (c *ApplicationDiscoveryService) DescribeExportConfigurationsRequest(input *DescribeExportConfigurationsInput) (req *request.Request, output *DescribeExportConfigurationsOutput) { if c.Client.Config.Logger != nil { c.Client.Config.Logger.Log("This operation, DescribeExportConfigurations, has been deprecated") } op := &request.Operation{ Name: opDescribeExportConfigurations, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeExportConfigurationsInput{} } output = &DescribeExportConfigurationsOutput{} req = c.newRequest(op, input, output) return } // DescribeExportConfigurations API operation for AWS Application Discovery Service. // // DescribeExportConfigurations is deprecated. Use DescribeImportTasks (https://docs.aws.amazon.com/application-discovery/latest/APIReference/API_DescribeExportTasks.html), // instead. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Application Discovery Service's // API operation DescribeExportConfigurations for usage and error information. // // Returned Error Types: // * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // // * ResourceNotFoundException // The specified configuration ID was not located. Verify the configuration // ID and try again. // // * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // // * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // // * ServerInternalErrorException // The server experienced an internal error. Try again. // // * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportConfigurations // // Deprecated: DescribeExportConfigurations has been deprecated func (c *ApplicationDiscoveryService) DescribeExportConfigurations(input *DescribeExportConfigurationsInput) (*DescribeExportConfigurationsOutput, error) { req, out := c.DescribeExportConfigurationsRequest(input) return out, req.Send() } // DescribeExportConfigurationsWithContext is the same as DescribeExportConfigurations with the addition of // the ability to pass a context and additional request options. // // See DescribeExportConfigurations for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. // // Deprecated: DescribeExportConfigurationsWithContext has been deprecated func (c *ApplicationDiscoveryService) DescribeExportConfigurationsWithContext(ctx aws.Context, input *DescribeExportConfigurationsInput, opts ...request.Option) (*DescribeExportConfigurationsOutput, error) { req, out := c.DescribeExportConfigurationsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeExportTasks = "DescribeExportTasks" // DescribeExportTasksRequest generates a "aws/request.Request" representing the // client's request for the DescribeExportTasks operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeExportTasks for more information on using the DescribeExportTasks // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeExportTasksRequest method. // req, resp := client.DescribeExportTasksRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportTasks func (c *ApplicationDiscoveryService) DescribeExportTasksRequest(input *DescribeExportTasksInput) (req *request.Request, output *DescribeExportTasksOutput) { op := &request.Operation{ Name: opDescribeExportTasks, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeExportTasksInput{} } output = &DescribeExportTasksOutput{} req = c.newRequest(op, input, output) return } // DescribeExportTasks API operation for AWS Application Discovery Service. // // Retrieve status of one or more export tasks. You can retrieve the status // of up to 100 export tasks. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Application Discovery Service's // API operation DescribeExportTasks for usage and error information. // // Returned Error Types: // * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // // * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // // * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // // * ServerInternalErrorException // The server experienced an internal error. Try again. // // * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportTasks func (c *ApplicationDiscoveryService) DescribeExportTasks(input *DescribeExportTasksInput) (*DescribeExportTasksOutput, error) { req, out := c.DescribeExportTasksRequest(input) return out, req.Send() } // DescribeExportTasksWithContext is the same as DescribeExportTasks with the addition of // the ability to pass a context and additional request options. // // See DescribeExportTasks for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ApplicationDiscoveryService) DescribeExportTasksWithContext(ctx aws.Context, input *DescribeExportTasksInput, opts ...request.Option) (*DescribeExportTasksOutput, error) { req, out := c.DescribeExportTasksRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeImportTasks = "DescribeImportTasks" // DescribeImportTasksRequest generates a "aws/request.Request" representing the // client's request for the DescribeImportTasks operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeImportTasks for more information on using the DescribeImportTasks // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeImportTasksRequest method. // req, resp := client.DescribeImportTasksRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeImportTasks func (c *ApplicationDiscoveryService) DescribeImportTasksRequest(input *DescribeImportTasksInput) (req *request.Request, output *DescribeImportTasksOutput) { op := &request.Operation{ Name: opDescribeImportTasks, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, LimitToken: "maxResults", TruncationToken: "", }, } if input == nil { input = &DescribeImportTasksInput{} } output = &DescribeImportTasksOutput{} req = c.newRequest(op, input, output) return } // DescribeImportTasks API operation for AWS Application Discovery Service. // // Returns an array of import tasks for your account, including status information, // times, IDs, the Amazon S3 Object URL for the import file, and more. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Application Discovery Service's // API operation DescribeImportTasks for usage and error information. // // Returned Error Types: // * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // // * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // // * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // // * ServerInternalErrorException // The server experienced an internal error. Try again. // // * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeImportTasks func (c *ApplicationDiscoveryService) DescribeImportTasks(input *DescribeImportTasksInput) (*DescribeImportTasksOutput, error) { req, out := c.DescribeImportTasksRequest(input) return out, req.Send() } // DescribeImportTasksWithContext is the same as DescribeImportTasks with the addition of // the ability to pass a context and additional request options. // // See DescribeImportTasks for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ApplicationDiscoveryService) DescribeImportTasksWithContext(ctx aws.Context, input *DescribeImportTasksInput, opts ...request.Option) (*DescribeImportTasksOutput, error) { req, out := c.DescribeImportTasksRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // DescribeImportTasksPages iterates over the pages of a DescribeImportTasks operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See DescribeImportTasks method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a DescribeImportTasks operation. // pageNum := 0 // err := client.DescribeImportTasksPages(params, // func(page *applicationdiscoveryservice.DescribeImportTasksOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *ApplicationDiscoveryService) DescribeImportTasksPages(input *DescribeImportTasksInput, fn func(*DescribeImportTasksOutput, bool) bool) error { return c.DescribeImportTasksPagesWithContext(aws.BackgroundContext(), input, fn) } // DescribeImportTasksPagesWithContext same as DescribeImportTasksPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ApplicationDiscoveryService) DescribeImportTasksPagesWithContext(ctx aws.Context, input *DescribeImportTasksInput, fn func(*DescribeImportTasksOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *DescribeImportTasksInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.DescribeImportTasksRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*DescribeImportTasksOutput), !p.HasNextPage()) { break } } return p.Err() } const opDescribeTags = "DescribeTags" // DescribeTagsRequest generates a "aws/request.Request" representing the // client's request for the DescribeTags operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeTags for more information on using the DescribeTags // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeTagsRequest method. // req, resp := client.DescribeTagsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeTags func (c *ApplicationDiscoveryService) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput) { op := &request.Operation{ Name: opDescribeTags, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeTagsInput{} } output = &DescribeTagsOutput{} req = c.newRequest(op, input, output) return } // DescribeTags API operation for AWS Application Discovery Service. // // Retrieves a list of configuration items that have tags as specified by the // key-value pairs, name and value, passed to the optional parameter filters. // // There are three valid tag filter names: // // * tagKey // // * tagValue // // * configurationId // // Also, all configuration items associated with your user account that have // tags can be listed if you call DescribeTags as is without passing any parameters. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Application Discovery Service's // API operation DescribeTags for usage and error information. // // Returned Error Types: // * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // // * ResourceNotFoundException // The specified configuration ID was not located. Verify the configuration // ID and try again. // // * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // // * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // // * ServerInternalErrorException // The server experienced an internal error. Try again. // // * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeTags func (c *ApplicationDiscoveryService) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) { req, out := c.DescribeTagsRequest(input) return out, req.Send() } // DescribeTagsWithContext is the same as DescribeTags with the addition of // the ability to pass a context and additional request options. // // See DescribeTags for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ApplicationDiscoveryService) DescribeTagsWithContext(ctx aws.Context, input *DescribeTagsInput, opts ...request.Option) (*DescribeTagsOutput, error) { req, out := c.DescribeTagsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDisassociateConfigurationItemsFromApplication = "DisassociateConfigurationItemsFromApplication" // DisassociateConfigurationItemsFromApplicationRequest generates a "aws/request.Request" representing the // client's request for the DisassociateConfigurationItemsFromApplication operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DisassociateConfigurationItemsFromApplication for more information on using the DisassociateConfigurationItemsFromApplication // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DisassociateConfigurationItemsFromApplicationRequest method. // req, resp := client.DisassociateConfigurationItemsFromApplicationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DisassociateConfigurationItemsFromApplication func (c *ApplicationDiscoveryService) DisassociateConfigurationItemsFromApplicationRequest(input *DisassociateConfigurationItemsFromApplicationInput) (req *request.Request, output *DisassociateConfigurationItemsFromApplicationOutput) { op := &request.Operation{ Name: opDisassociateConfigurationItemsFromApplication, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DisassociateConfigurationItemsFromApplicationInput{} } output = &DisassociateConfigurationItemsFromApplicationOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DisassociateConfigurationItemsFromApplication API operation for AWS Application Discovery Service. // // Disassociates one or more configuration items from an application. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Application Discovery Service's // API operation DisassociateConfigurationItemsFromApplication for usage and error information. // // Returned Error Types: // * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // // * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // // * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // // * ServerInternalErrorException // The server experienced an internal error. Try again. // // * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DisassociateConfigurationItemsFromApplication func (c *ApplicationDiscoveryService) DisassociateConfigurationItemsFromApplication(input *DisassociateConfigurationItemsFromApplicationInput) (*DisassociateConfigurationItemsFromApplicationOutput, error) { req, out := c.DisassociateConfigurationItemsFromApplicationRequest(input) return out, req.Send() } // DisassociateConfigurationItemsFromApplicationWithContext is the same as DisassociateConfigurationItemsFromApplication with the addition of // the ability to pass a context and additional request options. // // See DisassociateConfigurationItemsFromApplication for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ApplicationDiscoveryService) DisassociateConfigurationItemsFromApplicationWithContext(ctx aws.Context, input *DisassociateConfigurationItemsFromApplicationInput, opts ...request.Option) (*DisassociateConfigurationItemsFromApplicationOutput, error) { req, out := c.DisassociateConfigurationItemsFromApplicationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opExportConfigurations = "ExportConfigurations" // ExportConfigurationsRequest generates a "aws/request.Request" representing the // client's request for the ExportConfigurations operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ExportConfigurations for more information on using the ExportConfigurations // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ExportConfigurationsRequest method. // req, resp := client.ExportConfigurationsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ExportConfigurations // // Deprecated: ExportConfigurations has been deprecated func (c *ApplicationDiscoveryService) ExportConfigurationsRequest(input *ExportConfigurationsInput) (req *request.Request, output *ExportConfigurationsOutput) { if c.Client.Config.Logger != nil { c.Client.Config.Logger.Log("This operation, ExportConfigurations, has been deprecated") } op := &request.Operation{ Name: opExportConfigurations, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &ExportConfigurationsInput{} } output = &ExportConfigurationsOutput{} req = c.newRequest(op, input, output) return } // ExportConfigurations API operation for AWS Application Discovery Service. // // Deprecated. Use StartExportTask instead. // // Exports all discovered configuration data to an Amazon S3 bucket or an application // that enables you to view and evaluate the data. Data includes tags and tag // associations, processes, connections, servers, and system performance. This // API returns an export ID that you can query using the DescribeExportConfigurations // API. The system imposes a limit of two configuration exports in six hours. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Application Discovery Service's // API operation ExportConfigurations for usage and error information. // // Returned Error Types: // * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // // * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // // * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // // * ServerInternalErrorException // The server experienced an internal error. Try again. // // * OperationNotPermittedException // This operation is not permitted. // // * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ExportConfigurations // // Deprecated: ExportConfigurations has been deprecated func (c *ApplicationDiscoveryService) ExportConfigurations(input *ExportConfigurationsInput) (*ExportConfigurationsOutput, error) { req, out := c.ExportConfigurationsRequest(input) return out, req.Send() } // ExportConfigurationsWithContext is the same as ExportConfigurations with the addition of // the ability to pass a context and additional request options. // // See ExportConfigurations for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. // // Deprecated: ExportConfigurationsWithContext has been deprecated func (c *ApplicationDiscoveryService) ExportConfigurationsWithContext(ctx aws.Context, input *ExportConfigurationsInput, opts ...request.Option) (*ExportConfigurationsOutput, error) { req, out := c.ExportConfigurationsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetDiscoverySummary = "GetDiscoverySummary" // GetDiscoverySummaryRequest generates a "aws/request.Request" representing the // client's request for the GetDiscoverySummary operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetDiscoverySummary for more information on using the GetDiscoverySummary // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetDiscoverySummaryRequest method. // req, resp := client.GetDiscoverySummaryRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/GetDiscoverySummary func (c *ApplicationDiscoveryService) GetDiscoverySummaryRequest(input *GetDiscoverySummaryInput) (req *request.Request, output *GetDiscoverySummaryOutput) { op := &request.Operation{ Name: opGetDiscoverySummary, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &GetDiscoverySummaryInput{} } output = &GetDiscoverySummaryOutput{} req = c.newRequest(op, input, output) return } // GetDiscoverySummary API operation for AWS Application Discovery Service. // // Retrieves a short summary of discovered assets. // // This API operation takes no request parameters and is called as is at the // command prompt as shown in the example. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Application Discovery Service's // API operation GetDiscoverySummary for usage and error information. // // Returned Error Types: // * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // // * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // // * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // // * ServerInternalErrorException // The server experienced an internal error. Try again. // // * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/GetDiscoverySummary func (c *ApplicationDiscoveryService) GetDiscoverySummary(input *GetDiscoverySummaryInput) (*GetDiscoverySummaryOutput, error) { req, out := c.GetDiscoverySummaryRequest(input) return out, req.Send() } // GetDiscoverySummaryWithContext is the same as GetDiscoverySummary with the addition of // the ability to pass a context and additional request options. // // See GetDiscoverySummary for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ApplicationDiscoveryService) GetDiscoverySummaryWithContext(ctx aws.Context, input *GetDiscoverySummaryInput, opts ...request.Option) (*GetDiscoverySummaryOutput, error) { req, out := c.GetDiscoverySummaryRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opListConfigurations = "ListConfigurations" // ListConfigurationsRequest generates a "aws/request.Request" representing the // client's request for the ListConfigurations operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListConfigurations for more information on using the ListConfigurations // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListConfigurationsRequest method. // req, resp := client.ListConfigurationsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListConfigurations func (c *ApplicationDiscoveryService) ListConfigurationsRequest(input *ListConfigurationsInput) (req *request.Request, output *ListConfigurationsOutput) { op := &request.Operation{ Name: opListConfigurations, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &ListConfigurationsInput{} } output = &ListConfigurationsOutput{} req = c.newRequest(op, input, output) return } // ListConfigurations API operation for AWS Application Discovery Service. // // Retrieves a list of configuration items as specified by the value passed // to the required parameter configurationType. Optional filtering may be applied // to refine search results. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Application Discovery Service's // API operation ListConfigurations for usage and error information. // // Returned Error Types: // * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // // * ResourceNotFoundException // The specified configuration ID was not located. Verify the configuration // ID and try again. // // * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // // * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // // * ServerInternalErrorException // The server experienced an internal error. Try again. // // * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListConfigurations func (c *ApplicationDiscoveryService) ListConfigurations(input *ListConfigurationsInput) (*ListConfigurationsOutput, error) { req, out := c.ListConfigurationsRequest(input) return out, req.Send() } // ListConfigurationsWithContext is the same as ListConfigurations with the addition of // the ability to pass a context and additional request options. // // See ListConfigurations for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ApplicationDiscoveryService) ListConfigurationsWithContext(ctx aws.Context, input *ListConfigurationsInput, opts ...request.Option) (*ListConfigurationsOutput, error) { req, out := c.ListConfigurationsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opListServerNeighbors = "ListServerNeighbors" // ListServerNeighborsRequest generates a "aws/request.Request" representing the // client's request for the ListServerNeighbors operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListServerNeighbors for more information on using the ListServerNeighbors // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListServerNeighborsRequest method. // req, resp := client.ListServerNeighborsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListServerNeighbors func (c *ApplicationDiscoveryService) ListServerNeighborsRequest(input *ListServerNeighborsInput) (req *request.Request, output *ListServerNeighborsOutput) { op := &request.Operation{ Name: opListServerNeighbors, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &ListServerNeighborsInput{} } output = &ListServerNeighborsOutput{} req = c.newRequest(op, input, output) return } // ListServerNeighbors API operation for AWS Application Discovery Service. // // Retrieves a list of servers that are one network hop away from a specified // server. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Application Discovery Service's // API operation ListServerNeighbors for usage and error information. // // Returned Error Types: // * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // // * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // // * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // // * ServerInternalErrorException // The server experienced an internal error. Try again. // // * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListServerNeighbors func (c *ApplicationDiscoveryService) ListServerNeighbors(input *ListServerNeighborsInput) (*ListServerNeighborsOutput, error) { req, out := c.ListServerNeighborsRequest(input) return out, req.Send() } // ListServerNeighborsWithContext is the same as ListServerNeighbors with the addition of // the ability to pass a context and additional request options. // // See ListServerNeighbors for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ApplicationDiscoveryService) ListServerNeighborsWithContext(ctx aws.Context, input *ListServerNeighborsInput, opts ...request.Option) (*ListServerNeighborsOutput, error) { req, out := c.ListServerNeighborsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opStartContinuousExport = "StartContinuousExport" // StartContinuousExportRequest generates a "aws/request.Request" representing the // client's request for the StartContinuousExport operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See StartContinuousExport for more information on using the StartContinuousExport // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the StartContinuousExportRequest method. // req, resp := client.StartContinuousExportRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartContinuousExport func (c *ApplicationDiscoveryService) StartContinuousExportRequest(input *StartContinuousExportInput) (req *request.Request, output *StartContinuousExportOutput) { op := &request.Operation{ Name: opStartContinuousExport, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &StartContinuousExportInput{} } output = &StartContinuousExportOutput{} req = c.newRequest(op, input, output) return } // StartContinuousExport API operation for AWS Application Discovery Service. // // Start the continuous flow of agent's discovered data into Amazon Athena. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Application Discovery Service's // API operation StartContinuousExport for usage and error information. // // Returned Error Types: // * ConflictErrorException // // * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // // * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // // * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // // * ServerInternalErrorException // The server experienced an internal error. Try again. // // * OperationNotPermittedException // This operation is not permitted. // // * ResourceInUseException // This issue occurs when the same clientRequestToken is used with the StartImportTask // action, but with different parameters. For example, you use the same request // token but have two different import URLs, you can encounter this issue. If // the import tasks are meant to be different, use a different clientRequestToken, // and try again. // // * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartContinuousExport func (c *ApplicationDiscoveryService) StartContinuousExport(input *StartContinuousExportInput) (*StartContinuousExportOutput, error) { req, out := c.StartContinuousExportRequest(input) return out, req.Send() } // StartContinuousExportWithContext is the same as StartContinuousExport with the addition of // the ability to pass a context and additional request options. // // See StartContinuousExport for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ApplicationDiscoveryService) StartContinuousExportWithContext(ctx aws.Context, input *StartContinuousExportInput, opts ...request.Option) (*StartContinuousExportOutput, error) { req, out := c.StartContinuousExportRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opStartDataCollectionByAgentIds = "StartDataCollectionByAgentIds" // StartDataCollectionByAgentIdsRequest generates a "aws/request.Request" representing the // client's request for the StartDataCollectionByAgentIds operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See StartDataCollectionByAgentIds for more information on using the StartDataCollectionByAgentIds // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the StartDataCollectionByAgentIdsRequest method. // req, resp := client.StartDataCollectionByAgentIdsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartDataCollectionByAgentIds func (c *ApplicationDiscoveryService) StartDataCollectionByAgentIdsRequest(input *StartDataCollectionByAgentIdsInput) (req *request.Request, output *StartDataCollectionByAgentIdsOutput) { op := &request.Operation{ Name: opStartDataCollectionByAgentIds, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &StartDataCollectionByAgentIdsInput{} } output = &StartDataCollectionByAgentIdsOutput{} req = c.newRequest(op, input, output) return } // StartDataCollectionByAgentIds API operation for AWS Application Discovery Service. // // Instructs the specified agents or connectors to start collecting data. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Application Discovery Service's // API operation StartDataCollectionByAgentIds for usage and error information. // // Returned Error Types: // * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // // * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // // * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // // * ServerInternalErrorException // The server experienced an internal error. Try again. // // * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartDataCollectionByAgentIds func (c *ApplicationDiscoveryService) StartDataCollectionByAgentIds(input *StartDataCollectionByAgentIdsInput) (*StartDataCollectionByAgentIdsOutput, error) { req, out := c.StartDataCollectionByAgentIdsRequest(input) return out, req.Send() } // StartDataCollectionByAgentIdsWithContext is the same as StartDataCollectionByAgentIds with the addition of // the ability to pass a context and additional request options. // // See StartDataCollectionByAgentIds for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ApplicationDiscoveryService) StartDataCollectionByAgentIdsWithContext(ctx aws.Context, input *StartDataCollectionByAgentIdsInput, opts ...request.Option) (*StartDataCollectionByAgentIdsOutput, error) { req, out := c.StartDataCollectionByAgentIdsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opStartExportTask = "StartExportTask" // StartExportTaskRequest generates a "aws/request.Request" representing the // client's request for the StartExportTask operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See StartExportTask for more information on using the StartExportTask // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the StartExportTaskRequest method. // req, resp := client.StartExportTaskRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartExportTask func (c *ApplicationDiscoveryService) StartExportTaskRequest(input *StartExportTaskInput) (req *request.Request, output *StartExportTaskOutput) { op := &request.Operation{ Name: opStartExportTask, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &StartExportTaskInput{} } output = &StartExportTaskOutput{} req = c.newRequest(op, input, output) return } // StartExportTask API operation for AWS Application Discovery Service. // // Begins the export of discovered data to an S3 bucket. // // If you specify agentIds in a filter, the task exports up to 72 hours of detailed // data collected by the identified Application Discovery Agent, including network, // process, and performance details. A time range for exported agent data may // be set by using startTime and endTime. Export of detailed agent data is limited // to five concurrently running exports. // // If you do not include an agentIds filter, summary data is exported that includes // both AWS Agentless Discovery Connector data and summary data from AWS Discovery // Agents. Export of summary data is limited to two exports per day. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Application Discovery Service's // API operation StartExportTask for usage and error information. // // Returned Error Types: // * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // // * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // // * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // // * ServerInternalErrorException // The server experienced an internal error. Try again. // // * OperationNotPermittedException // This operation is not permitted. // // * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartExportTask func (c *ApplicationDiscoveryService) StartExportTask(input *StartExportTaskInput) (*StartExportTaskOutput, error) { req, out := c.StartExportTaskRequest(input) return out, req.Send() } // StartExportTaskWithContext is the same as StartExportTask with the addition of // the ability to pass a context and additional request options. // // See StartExportTask for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ApplicationDiscoveryService) StartExportTaskWithContext(ctx aws.Context, input *StartExportTaskInput, opts ...request.Option) (*StartExportTaskOutput, error) { req, out := c.StartExportTaskRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opStartImportTask = "StartImportTask" // StartImportTaskRequest generates a "aws/request.Request" representing the // client's request for the StartImportTask operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See StartImportTask for more information on using the StartImportTask // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the StartImportTaskRequest method. // req, resp := client.StartImportTaskRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartImportTask func (c *ApplicationDiscoveryService) StartImportTaskRequest(input *StartImportTaskInput) (req *request.Request, output *StartImportTaskOutput) { op := &request.Operation{ Name: opStartImportTask, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &StartImportTaskInput{} } output = &StartImportTaskOutput{} req = c.newRequest(op, input, output) return } // StartImportTask API operation for AWS Application Discovery Service. // // Starts an import task, which allows you to import details of your on-premises // environment directly into AWS Migration Hub without having to use the Application // Discovery Service (ADS) tools such as the Discovery Connector or Discovery // Agent. This gives you the option to perform migration assessment and planning // directly from your imported data, including the ability to group your devices // as applications and track their migration status. // // To start an import request, do this: // // Download the specially formatted comma separated value (CSV) import template, // which you can find here: https://s3-us-west-2.amazonaws.com/templates-7cffcf56-bd96-4b1c-b45b-a5b42f282e46/import_template.csv // (https://s3-us-west-2.amazonaws.com/templates-7cffcf56-bd96-4b1c-b45b-a5b42f282e46/import_template.csv). // // Fill out the template with your server and application data. // // Upload your import file to an Amazon S3 bucket, and make a note of it's Object // URL. Your import file must be in the CSV format. // // Use the console or the StartImportTask command with the AWS CLI or one of // the AWS SDKs to import the records from your file. // // For more information, including step-by-step procedures, see Migration Hub // Import (https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-import.html) // in the AWS Application Discovery Service User Guide. // // There are limits to the number of import tasks you can create (and delete) // in an AWS account. For more information, see AWS Application Discovery Service // Limits (https://docs.aws.amazon.com/application-discovery/latest/userguide/ads_service_limits.html) // in the AWS Application Discovery Service User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Application Discovery Service's // API operation StartImportTask for usage and error information. // // Returned Error Types: // * ResourceInUseException // This issue occurs when the same clientRequestToken is used with the StartImportTask // action, but with different parameters. For example, you use the same request // token but have two different import URLs, you can encounter this issue. If // the import tasks are meant to be different, use a different clientRequestToken, // and try again. // // * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // // * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // // * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // // * ServerInternalErrorException // The server experienced an internal error. Try again. // // * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartImportTask func (c *ApplicationDiscoveryService) StartImportTask(input *StartImportTaskInput) (*StartImportTaskOutput, error) { req, out := c.StartImportTaskRequest(input) return out, req.Send() } // StartImportTaskWithContext is the same as StartImportTask with the addition of // the ability to pass a context and additional request options. // // See StartImportTask for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ApplicationDiscoveryService) StartImportTaskWithContext(ctx aws.Context, input *StartImportTaskInput, opts ...request.Option) (*StartImportTaskOutput, error) { req, out := c.StartImportTaskRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opStopContinuousExport = "StopContinuousExport" // StopContinuousExportRequest generates a "aws/request.Request" representing the // client's request for the StopContinuousExport operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See StopContinuousExport for more information on using the StopContinuousExport // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the StopContinuousExportRequest method. // req, resp := client.StopContinuousExportRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopContinuousExport func (c *ApplicationDiscoveryService) StopContinuousExportRequest(input *StopContinuousExportInput) (req *request.Request, output *StopContinuousExportOutput) { op := &request.Operation{ Name: opStopContinuousExport, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &StopContinuousExportInput{} } output = &StopContinuousExportOutput{} req = c.newRequest(op, input, output) return } // StopContinuousExport API operation for AWS Application Discovery Service. // // Stop the continuous flow of agent's discovered data into Amazon Athena. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Application Discovery Service's // API operation StopContinuousExport for usage and error information. // // Returned Error Types: // * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // // * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // // * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // // * ServerInternalErrorException // The server experienced an internal error. Try again. // // * OperationNotPermittedException // This operation is not permitted. // // * ResourceNotFoundException // The specified configuration ID was not located. Verify the configuration // ID and try again. // // * ResourceInUseException // This issue occurs when the same clientRequestToken is used with the StartImportTask // action, but with different parameters. For example, you use the same request // token but have two different import URLs, you can encounter this issue. If // the import tasks are meant to be different, use a different clientRequestToken, // and try again. // // * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopContinuousExport func (c *ApplicationDiscoveryService) StopContinuousExport(input *StopContinuousExportInput) (*StopContinuousExportOutput, error) { req, out := c.StopContinuousExportRequest(input) return out, req.Send() } // StopContinuousExportWithContext is the same as StopContinuousExport with the addition of // the ability to pass a context and additional request options. // // See StopContinuousExport for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ApplicationDiscoveryService) StopContinuousExportWithContext(ctx aws.Context, input *StopContinuousExportInput, opts ...request.Option) (*StopContinuousExportOutput, error) { req, out := c.StopContinuousExportRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opStopDataCollectionByAgentIds = "StopDataCollectionByAgentIds" // StopDataCollectionByAgentIdsRequest generates a "aws/request.Request" representing the // client's request for the StopDataCollectionByAgentIds operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See StopDataCollectionByAgentIds for more information on using the StopDataCollectionByAgentIds // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the StopDataCollectionByAgentIdsRequest method. // req, resp := client.StopDataCollectionByAgentIdsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopDataCollectionByAgentIds func (c *ApplicationDiscoveryService) StopDataCollectionByAgentIdsRequest(input *StopDataCollectionByAgentIdsInput) (req *request.Request, output *StopDataCollectionByAgentIdsOutput) { op := &request.Operation{ Name: opStopDataCollectionByAgentIds, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &StopDataCollectionByAgentIdsInput{} } output = &StopDataCollectionByAgentIdsOutput{} req = c.newRequest(op, input, output) return } // StopDataCollectionByAgentIds API operation for AWS Application Discovery Service. // // Instructs the specified agents or connectors to stop collecting data. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Application Discovery Service's // API operation StopDataCollectionByAgentIds for usage and error information. // // Returned Error Types: // * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // // * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // // * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // // * ServerInternalErrorException // The server experienced an internal error. Try again. // // * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopDataCollectionByAgentIds func (c *ApplicationDiscoveryService) StopDataCollectionByAgentIds(input *StopDataCollectionByAgentIdsInput) (*StopDataCollectionByAgentIdsOutput, error) { req, out := c.StopDataCollectionByAgentIdsRequest(input) return out, req.Send() } // StopDataCollectionByAgentIdsWithContext is the same as StopDataCollectionByAgentIds with the addition of // the ability to pass a context and additional request options. // // See StopDataCollectionByAgentIds for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ApplicationDiscoveryService) StopDataCollectionByAgentIdsWithContext(ctx aws.Context, input *StopDataCollectionByAgentIdsInput, opts ...request.Option) (*StopDataCollectionByAgentIdsOutput, error) { req, out := c.StopDataCollectionByAgentIdsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateApplication = "UpdateApplication" // UpdateApplicationRequest generates a "aws/request.Request" representing the // client's request for the UpdateApplication operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateApplication for more information on using the UpdateApplication // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateApplicationRequest method. // req, resp := client.UpdateApplicationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/UpdateApplication func (c *ApplicationDiscoveryService) UpdateApplicationRequest(input *UpdateApplicationInput) (req *request.Request, output *UpdateApplicationOutput) { op := &request.Operation{ Name: opUpdateApplication, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &UpdateApplicationInput{} } output = &UpdateApplicationOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // UpdateApplication API operation for AWS Application Discovery Service. // // Updates metadata about an application. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Application Discovery Service's // API operation UpdateApplication for usage and error information. // // Returned Error Types: // * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // // * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // // * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // // * ServerInternalErrorException // The server experienced an internal error. Try again. // // * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/UpdateApplication func (c *ApplicationDiscoveryService) UpdateApplication(input *UpdateApplicationInput) (*UpdateApplicationOutput, error) { req, out := c.UpdateApplicationRequest(input) return out, req.Send() } // UpdateApplicationWithContext is the same as UpdateApplication with the addition of // the ability to pass a context and additional request options. // // See UpdateApplication for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ApplicationDiscoveryService) UpdateApplicationWithContext(ctx aws.Context, input *UpdateApplicationInput, opts ...request.Option) (*UpdateApplicationOutput, error) { req, out := c.UpdateApplicationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // Information about agents or connectors that were instructed to start collecting // data. Information includes the agent/connector ID, a description of the operation, // and whether the agent/connector configuration was updated. type AgentConfigurationStatus struct { _ struct{} `type:"structure"` // The agent/connector ID. AgentId *string `locationName:"agentId" type:"string"` // A description of the operation performed. Description *string `locationName:"description" type:"string"` // Information about the status of the StartDataCollection and StopDataCollection // operations. The system has recorded the data collection operation. The agent/connector // receives this command the next time it polls for a new command. OperationSucceeded *bool `locationName:"operationSucceeded" type:"boolean"` } // String returns the string representation func (s AgentConfigurationStatus) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AgentConfigurationStatus) GoString() string { return s.String() } // SetAgentId sets the AgentId field's value. func (s *AgentConfigurationStatus) SetAgentId(v string) *AgentConfigurationStatus { s.AgentId = &v return s } // SetDescription sets the Description field's value. func (s *AgentConfigurationStatus) SetDescription(v string) *AgentConfigurationStatus { s.Description = &v return s } // SetOperationSucceeded sets the OperationSucceeded field's value. func (s *AgentConfigurationStatus) SetOperationSucceeded(v bool) *AgentConfigurationStatus { s.OperationSucceeded = &v return s } // Information about agents or connectors associated with the user’s AWS account. // Information includes agent or connector IDs, IP addresses, media access control // (MAC) addresses, agent or connector health, hostname where the agent or connector // resides, and agent version for each agent. type AgentInfo struct { _ struct{} `type:"structure"` // The agent or connector ID. AgentId *string `locationName:"agentId" type:"string"` // Network details about the host where the agent or connector resides. AgentNetworkInfoList []*AgentNetworkInfo `locationName:"agentNetworkInfoList" type:"list"` // Type of agent. AgentType *string `locationName:"agentType" type:"string"` // Status of the collection process for an agent or connector. CollectionStatus *string `locationName:"collectionStatus" type:"string"` // The ID of the connector. ConnectorId *string `locationName:"connectorId" type:"string"` // The health of the agent or connector. Health *string `locationName:"health" type:"string" enum:"AgentStatus"` // The name of the host where the agent or connector resides. The host can be // a server or virtual machine. HostName *string `locationName:"hostName" type:"string"` // Time since agent or connector health was reported. LastHealthPingTime *string `locationName:"lastHealthPingTime" type:"string"` // Agent's first registration timestamp in UTC. RegisteredTime *string `locationName:"registeredTime" type:"string"` // The agent or connector version. Version *string `locationName:"version" type:"string"` } // String returns the string representation func (s AgentInfo) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AgentInfo) GoString() string { return s.String() } // SetAgentId sets the AgentId field's value. func (s *AgentInfo) SetAgentId(v string) *AgentInfo { s.AgentId = &v return s } // SetAgentNetworkInfoList sets the AgentNetworkInfoList field's value. func (s *AgentInfo) SetAgentNetworkInfoList(v []*AgentNetworkInfo) *AgentInfo { s.AgentNetworkInfoList = v return s } // SetAgentType sets the AgentType field's value. func (s *AgentInfo) SetAgentType(v string) *AgentInfo { s.AgentType = &v return s } // SetCollectionStatus sets the CollectionStatus field's value. func (s *AgentInfo) SetCollectionStatus(v string) *AgentInfo { s.CollectionStatus = &v return s } // SetConnectorId sets the ConnectorId field's value. func (s *AgentInfo) SetConnectorId(v string) *AgentInfo { s.ConnectorId = &v return s } // SetHealth sets the Health field's value. func (s *AgentInfo) SetHealth(v string) *AgentInfo { s.Health = &v return s } // SetHostName sets the HostName field's value. func (s *AgentInfo) SetHostName(v string) *AgentInfo { s.HostName = &v return s } // SetLastHealthPingTime sets the LastHealthPingTime field's value. func (s *AgentInfo) SetLastHealthPingTime(v string) *AgentInfo { s.LastHealthPingTime = &v return s } // SetRegisteredTime sets the RegisteredTime field's value. func (s *AgentInfo) SetRegisteredTime(v string) *AgentInfo { s.RegisteredTime = &v return s } // SetVersion sets the Version field's value. func (s *AgentInfo) SetVersion(v string) *AgentInfo { s.Version = &v return s } // Network details about the host where the agent/connector resides. type AgentNetworkInfo struct { _ struct{} `type:"structure"` // The IP address for the host where the agent/connector resides. IpAddress *string `locationName:"ipAddress" type:"string"` // The MAC address for the host where the agent/connector resides. MacAddress *string `locationName:"macAddress" type:"string"` } // String returns the string representation func (s AgentNetworkInfo) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AgentNetworkInfo) GoString() string { return s.String() } // SetIpAddress sets the IpAddress field's value. func (s *AgentNetworkInfo) SetIpAddress(v string) *AgentNetworkInfo { s.IpAddress = &v return s } // SetMacAddress sets the MacAddress field's value. func (s *AgentNetworkInfo) SetMacAddress(v string) *AgentNetworkInfo { s.MacAddress = &v return s } type AssociateConfigurationItemsToApplicationInput struct { _ struct{} `type:"structure"` // The configuration ID of an application with which items are to be associated. // // ApplicationConfigurationId is a required field ApplicationConfigurationId *string `locationName:"applicationConfigurationId" type:"string" required:"true"` // The ID of each configuration item to be associated with an application. // // ConfigurationIds is a required field ConfigurationIds []*string `locationName:"configurationIds" type:"list" required:"true"` } // String returns the string representation func (s AssociateConfigurationItemsToApplicationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AssociateConfigurationItemsToApplicationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *AssociateConfigurationItemsToApplicationInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "AssociateConfigurationItemsToApplicationInput"} if s.ApplicationConfigurationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationConfigurationId")) } if s.ConfigurationIds == nil { invalidParams.Add(request.NewErrParamRequired("ConfigurationIds")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApplicationConfigurationId sets the ApplicationConfigurationId field's value. func (s *AssociateConfigurationItemsToApplicationInput) SetApplicationConfigurationId(v string) *AssociateConfigurationItemsToApplicationInput { s.ApplicationConfigurationId = &v return s } // SetConfigurationIds sets the ConfigurationIds field's value. func (s *AssociateConfigurationItemsToApplicationInput) SetConfigurationIds(v []*string) *AssociateConfigurationItemsToApplicationInput { s.ConfigurationIds = v return s } type AssociateConfigurationItemsToApplicationOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s AssociateConfigurationItemsToApplicationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AssociateConfigurationItemsToApplicationOutput) GoString() string { return s.String() } // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. type AuthorizationErrorException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s AuthorizationErrorException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AuthorizationErrorException) GoString() string { return s.String() } func newErrorAuthorizationErrorException(v protocol.ResponseMetadata) error { return &AuthorizationErrorException{ RespMetadata: v, } } // Code returns the exception type name. func (s *AuthorizationErrorException) Code() string { return "AuthorizationErrorException" } // Message returns the exception's message. func (s *AuthorizationErrorException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *AuthorizationErrorException) OrigErr() error { return nil } func (s *AuthorizationErrorException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *AuthorizationErrorException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *AuthorizationErrorException) RequestID() string { return s.RespMetadata.RequestID } // Error messages returned for each import task that you deleted as a response // for this command. type BatchDeleteImportDataError struct { _ struct{} `type:"structure"` // The type of error that occurred for a specific import task. ErrorCode *string `locationName:"errorCode" type:"string" enum:"BatchDeleteImportDataErrorCode"` // The description of the error that occurred for a specific import task. ErrorDescription *string `locationName:"errorDescription" type:"string"` // The unique import ID associated with the error that occurred. ImportTaskId *string `locationName:"importTaskId" type:"string"` } // String returns the string representation func (s BatchDeleteImportDataError) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s BatchDeleteImportDataError) GoString() string { return s.String() } // SetErrorCode sets the ErrorCode field's value. func (s *BatchDeleteImportDataError) SetErrorCode(v string) *BatchDeleteImportDataError { s.ErrorCode = &v return s } // SetErrorDescription sets the ErrorDescription field's value. func (s *BatchDeleteImportDataError) SetErrorDescription(v string) *BatchDeleteImportDataError { s.ErrorDescription = &v return s } // SetImportTaskId sets the ImportTaskId field's value. func (s *BatchDeleteImportDataError) SetImportTaskId(v string) *BatchDeleteImportDataError { s.ImportTaskId = &v return s } type BatchDeleteImportDataInput struct { _ struct{} `type:"structure"` // The IDs for the import tasks that you want to delete. // // ImportTaskIds is a required field ImportTaskIds []*string `locationName:"importTaskIds" min:"1" type:"list" required:"true"` } // String returns the string representation func (s BatchDeleteImportDataInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s BatchDeleteImportDataInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *BatchDeleteImportDataInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "BatchDeleteImportDataInput"} if s.ImportTaskIds == nil { invalidParams.Add(request.NewErrParamRequired("ImportTaskIds")) } if s.ImportTaskIds != nil && len(s.ImportTaskIds) < 1 { invalidParams.Add(request.NewErrParamMinLen("ImportTaskIds", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetImportTaskIds sets the ImportTaskIds field's value. func (s *BatchDeleteImportDataInput) SetImportTaskIds(v []*string) *BatchDeleteImportDataInput { s.ImportTaskIds = v return s } type BatchDeleteImportDataOutput struct { _ struct{} `type:"structure"` // Error messages returned for each import task that you deleted as a response // for this command. Errors []*BatchDeleteImportDataError `locationName:"errors" type:"list"` } // String returns the string representation func (s BatchDeleteImportDataOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s BatchDeleteImportDataOutput) GoString() string { return s.String() } // SetErrors sets the Errors field's value. func (s *BatchDeleteImportDataOutput) SetErrors(v []*BatchDeleteImportDataError) *BatchDeleteImportDataOutput { s.Errors = v return s } // Tags for a configuration item. Tags are metadata that help you categorize // IT assets. type ConfigurationTag struct { _ struct{} `type:"structure"` // The configuration ID for the item to tag. You can specify a list of keys // and values. ConfigurationId *string `locationName:"configurationId" type:"string"` // A type of IT asset to tag. ConfigurationType *string `locationName:"configurationType" type:"string" enum:"ConfigurationItemType"` // A type of tag on which to filter. For example, serverType. Key *string `locationName:"key" type:"string"` // The time the configuration tag was created in Coordinated Universal Time // (UTC). TimeOfCreation *time.Time `locationName:"timeOfCreation" type:"timestamp"` // A value on which to filter. For example key = serverType and value = web // server. Value *string `locationName:"value" type:"string"` } // String returns the string representation func (s ConfigurationTag) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ConfigurationTag) GoString() string { return s.String() } // SetConfigurationId sets the ConfigurationId field's value. func (s *ConfigurationTag) SetConfigurationId(v string) *ConfigurationTag { s.ConfigurationId = &v return s } // SetConfigurationType sets the ConfigurationType field's value. func (s *ConfigurationTag) SetConfigurationType(v string) *ConfigurationTag { s.ConfigurationType = &v return s } // SetKey sets the Key field's value. func (s *ConfigurationTag) SetKey(v string) *ConfigurationTag { s.Key = &v return s } // SetTimeOfCreation sets the TimeOfCreation field's value. func (s *ConfigurationTag) SetTimeOfCreation(v time.Time) *ConfigurationTag { s.TimeOfCreation = &v return s } // SetValue sets the Value field's value. func (s *ConfigurationTag) SetValue(v string) *ConfigurationTag { s.Value = &v return s } type ConflictErrorException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s ConflictErrorException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ConflictErrorException) GoString() string { return s.String() } func newErrorConflictErrorException(v protocol.ResponseMetadata) error { return &ConflictErrorException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ConflictErrorException) Code() string { return "ConflictErrorException" } // Message returns the exception's message. func (s *ConflictErrorException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ConflictErrorException) OrigErr() error { return nil } func (s *ConflictErrorException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ConflictErrorException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ConflictErrorException) RequestID() string { return s.RespMetadata.RequestID } // A list of continuous export descriptions. type ContinuousExportDescription struct { _ struct{} `type:"structure"` // The type of data collector used to gather this data (currently only offered // for AGENT). DataSource *string `locationName:"dataSource" type:"string" enum:"DataSource"` // The unique ID assigned to this export. ExportId *string `locationName:"exportId" type:"string"` // The name of the s3 bucket where the export data parquet files are stored. S3Bucket *string `locationName:"s3Bucket" type:"string"` // An object which describes how the data is stored. // // * databaseName - the name of the Glue database used to store the schema. SchemaStorageConfig map[string]*string `locationName:"schemaStorageConfig" type:"map"` // The timestamp representing when the continuous export was started. StartTime *time.Time `locationName:"startTime" type:"timestamp"` // Describes the status of the export. Can be one of the following values: // // * START_IN_PROGRESS - setting up resources to start continuous export. // // * START_FAILED - an error occurred setting up continuous export. To recover, // call start-continuous-export again. // // * ACTIVE - data is being exported to the customer bucket. // // * ERROR - an error occurred during export. To fix the issue, call stop-continuous-export // and start-continuous-export. // // * STOP_IN_PROGRESS - stopping the export. // // * STOP_FAILED - an error occurred stopping the export. To recover, call // stop-continuous-export again. // // * INACTIVE - the continuous export has been stopped. Data is no longer // being exported to the customer bucket. Status *string `locationName:"status" type:"string" enum:"ContinuousExportStatus"` // Contains information about any errors that have occurred. This data type // can have the following values: // // * ACCESS_DENIED - You don’t have permission to start Data Exploration // in Amazon Athena. Contact your AWS administrator for help. For more information, // see Setting Up AWS Application Discovery Service (http://docs.aws.amazon.com/application-discovery/latest/userguide/setting-up.html) // in the Application Discovery Service User Guide. // // * DELIVERY_STREAM_LIMIT_FAILURE - You reached the limit for Amazon Kinesis // Data Firehose delivery streams. Reduce the number of streams or request // a limit increase and try again. For more information, see Kinesis Data // Streams Limits (http://docs.aws.amazon.com/streams/latest/dev/service-sizes-and-limits.html) // in the Amazon Kinesis Data Streams Developer Guide. // // * FIREHOSE_ROLE_MISSING - The Data Exploration feature is in an error // state because your IAM User is missing the AWSApplicationDiscoveryServiceFirehose // role. Turn on Data Exploration in Amazon Athena and try again. For more // information, see Step 3: Provide Application Discovery Service Access // to Non-Administrator Users by Attaching Policies (http://docs.aws.amazon.com/application-discovery/latest/userguide/setting-up.html#setting-up-user-policy) // in the Application Discovery Service User Guide. // // * FIREHOSE_STREAM_DOES_NOT_EXIST - The Data Exploration feature is in // an error state because your IAM User is missing one or more of the Kinesis // data delivery streams. // // * INTERNAL_FAILURE - The Data Exploration feature is in an error state // because of an internal failure. Try again later. If this problem persists, // contact AWS Support. // // * S3_BUCKET_LIMIT_FAILURE - You reached the limit for Amazon S3 buckets. // Reduce the number of Amazon S3 buckets or request a limit increase and // try again. For more information, see Bucket Restrictions and Limitations // (http://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html) // in the Amazon Simple Storage Service Developer Guide. // // * S3_NOT_SIGNED_UP - Your account is not signed up for the Amazon S3 service. // You must sign up before you can use Amazon S3. You can sign up at the // following URL: https://aws.amazon.com/s3 (https://aws.amazon.com/s3). StatusDetail *string `locationName:"statusDetail" min:"1" type:"string"` // The timestamp that represents when this continuous export was stopped. StopTime *time.Time `locationName:"stopTime" type:"timestamp"` } // String returns the string representation func (s ContinuousExportDescription) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ContinuousExportDescription) GoString() string { return s.String() } // SetDataSource sets the DataSource field's value. func (s *ContinuousExportDescription) SetDataSource(v string) *ContinuousExportDescription { s.DataSource = &v return s } // SetExportId sets the ExportId field's value. func (s *ContinuousExportDescription) SetExportId(v string) *ContinuousExportDescription { s.ExportId = &v return s } // SetS3Bucket sets the S3Bucket field's value. func (s *ContinuousExportDescription) SetS3Bucket(v string) *ContinuousExportDescription { s.S3Bucket = &v return s } // SetSchemaStorageConfig sets the SchemaStorageConfig field's value. func (s *ContinuousExportDescription) SetSchemaStorageConfig(v map[string]*string) *ContinuousExportDescription { s.SchemaStorageConfig = v return s } // SetStartTime sets the StartTime field's value. func (s *ContinuousExportDescription) SetStartTime(v time.Time) *ContinuousExportDescription { s.StartTime = &v return s } // SetStatus sets the Status field's value. func (s *ContinuousExportDescription) SetStatus(v string) *ContinuousExportDescription { s.Status = &v return s } // SetStatusDetail sets the StatusDetail field's value. func (s *ContinuousExportDescription) SetStatusDetail(v string) *ContinuousExportDescription { s.StatusDetail = &v return s } // SetStopTime sets the StopTime field's value. func (s *ContinuousExportDescription) SetStopTime(v time.Time) *ContinuousExportDescription { s.StopTime = &v return s } type CreateApplicationInput struct { _ struct{} `type:"structure"` // Description of the application to be created. Description *string `locationName:"description" type:"string"` // Name of the application to be created. // // Name is a required field Name *string `locationName:"name" type:"string" required:"true"` } // String returns the string representation func (s CreateApplicationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateApplicationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateApplicationInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateApplicationInput"} if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDescription sets the Description field's value. func (s *CreateApplicationInput) SetDescription(v string) *CreateApplicationInput { s.Description = &v return s } // SetName sets the Name field's value. func (s *CreateApplicationInput) SetName(v string) *CreateApplicationInput { s.Name = &v return s } type CreateApplicationOutput struct { _ struct{} `type:"structure"` // Configuration ID of an application to be created. ConfigurationId *string `locationName:"configurationId" type:"string"` } // String returns the string representation func (s CreateApplicationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateApplicationOutput) GoString() string { return s.String() } // SetConfigurationId sets the ConfigurationId field's value. func (s *CreateApplicationOutput) SetConfigurationId(v string) *CreateApplicationOutput { s.ConfigurationId = &v return s } type CreateTagsInput struct { _ struct{} `type:"structure"` // A list of configuration items that you want to tag. // // ConfigurationIds is a required field ConfigurationIds []*string `locationName:"configurationIds" type:"list" required:"true"` // Tags that you want to associate with one or more configuration items. Specify // the tags that you want to create in a key-value format. For example: // // {"key": "serverType", "value": "webServer"} // // Tags is a required field Tags []*Tag `locationName:"tags" type:"list" required:"true"` } // String returns the string representation func (s CreateTagsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateTagsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateTagsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateTagsInput"} if s.ConfigurationIds == nil { invalidParams.Add(request.NewErrParamRequired("ConfigurationIds")) } if s.Tags == nil { invalidParams.Add(request.NewErrParamRequired("Tags")) } if s.Tags != nil { for i, v := range s.Tags { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetConfigurationIds sets the ConfigurationIds field's value. func (s *CreateTagsInput) SetConfigurationIds(v []*string) *CreateTagsInput { s.ConfigurationIds = v return s } // SetTags sets the Tags field's value. func (s *CreateTagsInput) SetTags(v []*Tag) *CreateTagsInput { s.Tags = v return s } type CreateTagsOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s CreateTagsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateTagsOutput) GoString() string { return s.String() } // Inventory data for installed discovery agents. type CustomerAgentInfo struct { _ struct{} `type:"structure"` // Number of active discovery agents. // // ActiveAgents is a required field ActiveAgents *int64 `locationName:"activeAgents" type:"integer" required:"true"` // Number of blacklisted discovery agents. // // BlackListedAgents is a required field BlackListedAgents *int64 `locationName:"blackListedAgents" type:"integer" required:"true"` // Number of healthy discovery agents // // HealthyAgents is a required field HealthyAgents *int64 `locationName:"healthyAgents" type:"integer" required:"true"` // Number of discovery agents with status SHUTDOWN. // // ShutdownAgents is a required field ShutdownAgents *int64 `locationName:"shutdownAgents" type:"integer" required:"true"` // Total number of discovery agents. // // TotalAgents is a required field TotalAgents *int64 `locationName:"totalAgents" type:"integer" required:"true"` // Number of unhealthy discovery agents. // // UnhealthyAgents is a required field UnhealthyAgents *int64 `locationName:"unhealthyAgents" type:"integer" required:"true"` // Number of unknown discovery agents. // // UnknownAgents is a required field UnknownAgents *int64 `locationName:"unknownAgents" type:"integer" required:"true"` } // String returns the string representation func (s CustomerAgentInfo) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CustomerAgentInfo) GoString() string { return s.String() } // SetActiveAgents sets the ActiveAgents field's value. func (s *CustomerAgentInfo) SetActiveAgents(v int64) *CustomerAgentInfo { s.ActiveAgents = &v return s } // SetBlackListedAgents sets the BlackListedAgents field's value. func (s *CustomerAgentInfo) SetBlackListedAgents(v int64) *CustomerAgentInfo { s.BlackListedAgents = &v return s } // SetHealthyAgents sets the HealthyAgents field's value. func (s *CustomerAgentInfo) SetHealthyAgents(v int64) *CustomerAgentInfo { s.HealthyAgents = &v return s } // SetShutdownAgents sets the ShutdownAgents field's value. func (s *CustomerAgentInfo) SetShutdownAgents(v int64) *CustomerAgentInfo { s.ShutdownAgents = &v return s } // SetTotalAgents sets the TotalAgents field's value. func (s *CustomerAgentInfo) SetTotalAgents(v int64) *CustomerAgentInfo { s.TotalAgents = &v return s } // SetUnhealthyAgents sets the UnhealthyAgents field's value. func (s *CustomerAgentInfo) SetUnhealthyAgents(v int64) *CustomerAgentInfo { s.UnhealthyAgents = &v return s } // SetUnknownAgents sets the UnknownAgents field's value. func (s *CustomerAgentInfo) SetUnknownAgents(v int64) *CustomerAgentInfo { s.UnknownAgents = &v return s } // Inventory data for installed discovery connectors. type CustomerConnectorInfo struct { _ struct{} `type:"structure"` // Number of active discovery connectors. // // ActiveConnectors is a required field ActiveConnectors *int64 `locationName:"activeConnectors" type:"integer" required:"true"` // Number of blacklisted discovery connectors. // // BlackListedConnectors is a required field BlackListedConnectors *int64 `locationName:"blackListedConnectors" type:"integer" required:"true"` // Number of healthy discovery connectors. // // HealthyConnectors is a required field HealthyConnectors *int64 `locationName:"healthyConnectors" type:"integer" required:"true"` // Number of discovery connectors with status SHUTDOWN, // // ShutdownConnectors is a required field ShutdownConnectors *int64 `locationName:"shutdownConnectors" type:"integer" required:"true"` // Total number of discovery connectors. // // TotalConnectors is a required field TotalConnectors *int64 `locationName:"totalConnectors" type:"integer" required:"true"` // Number of unhealthy discovery connectors. // // UnhealthyConnectors is a required field UnhealthyConnectors *int64 `locationName:"unhealthyConnectors" type:"integer" required:"true"` // Number of unknown discovery connectors. // // UnknownConnectors is a required field UnknownConnectors *int64 `locationName:"unknownConnectors" type:"integer" required:"true"` } // String returns the string representation func (s CustomerConnectorInfo) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CustomerConnectorInfo) GoString() string { return s.String() } // SetActiveConnectors sets the ActiveConnectors field's value. func (s *CustomerConnectorInfo) SetActiveConnectors(v int64) *CustomerConnectorInfo { s.ActiveConnectors = &v return s } // SetBlackListedConnectors sets the BlackListedConnectors field's value. func (s *CustomerConnectorInfo) SetBlackListedConnectors(v int64) *CustomerConnectorInfo { s.BlackListedConnectors = &v return s } // SetHealthyConnectors sets the HealthyConnectors field's value. func (s *CustomerConnectorInfo) SetHealthyConnectors(v int64) *CustomerConnectorInfo { s.HealthyConnectors = &v return s } // SetShutdownConnectors sets the ShutdownConnectors field's value. func (s *CustomerConnectorInfo) SetShutdownConnectors(v int64) *CustomerConnectorInfo { s.ShutdownConnectors = &v return s } // SetTotalConnectors sets the TotalConnectors field's value. func (s *CustomerConnectorInfo) SetTotalConnectors(v int64) *CustomerConnectorInfo { s.TotalConnectors = &v return s } // SetUnhealthyConnectors sets the UnhealthyConnectors field's value. func (s *CustomerConnectorInfo) SetUnhealthyConnectors(v int64) *CustomerConnectorInfo { s.UnhealthyConnectors = &v return s } // SetUnknownConnectors sets the UnknownConnectors field's value. func (s *CustomerConnectorInfo) SetUnknownConnectors(v int64) *CustomerConnectorInfo { s.UnknownConnectors = &v return s } type DeleteApplicationsInput struct { _ struct{} `type:"structure"` // Configuration ID of an application to be deleted. // // ConfigurationIds is a required field ConfigurationIds []*string `locationName:"configurationIds" type:"list" required:"true"` } // String returns the string representation func (s DeleteApplicationsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteApplicationsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteApplicationsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteApplicationsInput"} if s.ConfigurationIds == nil { invalidParams.Add(request.NewErrParamRequired("ConfigurationIds")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetConfigurationIds sets the ConfigurationIds field's value. func (s *DeleteApplicationsInput) SetConfigurationIds(v []*string) *DeleteApplicationsInput { s.ConfigurationIds = v return s } type DeleteApplicationsOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteApplicationsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteApplicationsOutput) GoString() string { return s.String() } type DeleteTagsInput struct { _ struct{} `type:"structure"` // A list of configuration items with tags that you want to delete. // // ConfigurationIds is a required field ConfigurationIds []*string `locationName:"configurationIds" type:"list" required:"true"` // Tags that you want to delete from one or more configuration items. Specify // the tags that you want to delete in a key-value format. For example: // // {"key": "serverType", "value": "webServer"} Tags []*Tag `locationName:"tags" type:"list"` } // String returns the string representation func (s DeleteTagsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteTagsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteTagsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteTagsInput"} if s.ConfigurationIds == nil { invalidParams.Add(request.NewErrParamRequired("ConfigurationIds")) } if s.Tags != nil { for i, v := range s.Tags { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetConfigurationIds sets the ConfigurationIds field's value. func (s *DeleteTagsInput) SetConfigurationIds(v []*string) *DeleteTagsInput { s.ConfigurationIds = v return s } // SetTags sets the Tags field's value. func (s *DeleteTagsInput) SetTags(v []*Tag) *DeleteTagsInput { s.Tags = v return s } type DeleteTagsOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteTagsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteTagsOutput) GoString() string { return s.String() } type DescribeAgentsInput struct { _ struct{} `type:"structure"` // The agent or the Connector IDs for which you want information. If you specify // no IDs, the system returns information about all agents/Connectors associated // with your AWS user account. AgentIds []*string `locationName:"agentIds" type:"list"` // You can filter the request using various logical operators and a key-value // format. For example: // // {"key": "collectionStatus", "value": "STARTED"} Filters []*Filter `locationName:"filters" type:"list"` // The total number of agents/Connectors to return in a single page of output. // The maximum value is 100. MaxResults *int64 `locationName:"maxResults" type:"integer"` // Token to retrieve the next set of results. For example, if you previously // specified 100 IDs for DescribeAgentsRequest$agentIds but set DescribeAgentsRequest$maxResults // to 10, you received a set of 10 results along with a token. Use that token // in this query to get the next set of 10. NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation func (s DescribeAgentsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeAgentsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeAgentsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeAgentsInput"} if s.Filters != nil { for i, v := range s.Filters { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAgentIds sets the AgentIds field's value. func (s *DescribeAgentsInput) SetAgentIds(v []*string) *DescribeAgentsInput { s.AgentIds = v return s } // SetFilters sets the Filters field's value. func (s *DescribeAgentsInput) SetFilters(v []*Filter) *DescribeAgentsInput { s.Filters = v return s } // SetMaxResults sets the MaxResults field's value. func (s *DescribeAgentsInput) SetMaxResults(v int64) *DescribeAgentsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeAgentsInput) SetNextToken(v string) *DescribeAgentsInput { s.NextToken = &v return s } type DescribeAgentsOutput struct { _ struct{} `type:"structure"` // Lists agents or the Connector by ID or lists all agents/Connectors associated // with your user account if you did not specify an agent/Connector ID. The // output includes agent/Connector IDs, IP addresses, media access control (MAC) // addresses, agent/Connector health, host name where the agent/Connector resides, // and the version number of each agent/Connector. AgentsInfo []*AgentInfo `locationName:"agentsInfo" type:"list"` // Token to retrieve the next set of results. For example, if you specified // 100 IDs for DescribeAgentsRequest$agentIds but set DescribeAgentsRequest$maxResults // to 10, you received a set of 10 results along with this token. Use this token // in the next query to retrieve the next set of 10. NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation func (s DescribeAgentsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeAgentsOutput) GoString() string { return s.String() } // SetAgentsInfo sets the AgentsInfo field's value. func (s *DescribeAgentsOutput) SetAgentsInfo(v []*AgentInfo) *DescribeAgentsOutput { s.AgentsInfo = v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeAgentsOutput) SetNextToken(v string) *DescribeAgentsOutput { s.NextToken = &v return s } type DescribeConfigurationsInput struct { _ struct{} `type:"structure"` // One or more configuration IDs. // // ConfigurationIds is a required field ConfigurationIds []*string `locationName:"configurationIds" type:"list" required:"true"` } // String returns the string representation func (s DescribeConfigurationsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeConfigurationsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeConfigurationsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeConfigurationsInput"} if s.ConfigurationIds == nil { invalidParams.Add(request.NewErrParamRequired("ConfigurationIds")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetConfigurationIds sets the ConfigurationIds field's value. func (s *DescribeConfigurationsInput) SetConfigurationIds(v []*string) *DescribeConfigurationsInput { s.ConfigurationIds = v return s } type DescribeConfigurationsOutput struct { _ struct{} `type:"structure"` // A key in the response map. The value is an array of data. Configurations []map[string]*string `locationName:"configurations" type:"list"` } // String returns the string representation func (s DescribeConfigurationsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeConfigurationsOutput) GoString() string { return s.String() } // SetConfigurations sets the Configurations field's value. func (s *DescribeConfigurationsOutput) SetConfigurations(v []map[string]*string) *DescribeConfigurationsOutput { s.Configurations = v return s } type DescribeContinuousExportsInput struct { _ struct{} `type:"structure"` // The unique IDs assigned to the exports. ExportIds []*string `locationName:"exportIds" type:"list"` // A number between 1 and 100 specifying the maximum number of continuous export // descriptions returned. MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` // The token from the previous call to DescribeExportTasks. NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation func (s DescribeContinuousExportsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeContinuousExportsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeContinuousExportsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeContinuousExportsInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetExportIds sets the ExportIds field's value. func (s *DescribeContinuousExportsInput) SetExportIds(v []*string) *DescribeContinuousExportsInput { s.ExportIds = v return s } // SetMaxResults sets the MaxResults field's value. func (s *DescribeContinuousExportsInput) SetMaxResults(v int64) *DescribeContinuousExportsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeContinuousExportsInput) SetNextToken(v string) *DescribeContinuousExportsInput { s.NextToken = &v return s } type DescribeContinuousExportsOutput struct { _ struct{} `type:"structure"` // A list of continuous export descriptions. Descriptions []*ContinuousExportDescription `locationName:"descriptions" type:"list"` // The token from the previous call to DescribeExportTasks. NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation func (s DescribeContinuousExportsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeContinuousExportsOutput) GoString() string { return s.String() } // SetDescriptions sets the Descriptions field's value. func (s *DescribeContinuousExportsOutput) SetDescriptions(v []*ContinuousExportDescription) *DescribeContinuousExportsOutput { s.Descriptions = v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeContinuousExportsOutput) SetNextToken(v string) *DescribeContinuousExportsOutput { s.NextToken = &v return s } type DescribeExportConfigurationsInput struct { _ struct{} `type:"structure"` // A list of continuous export IDs to search for. ExportIds []*string `locationName:"exportIds" type:"list"` // A number between 1 and 100 specifying the maximum number of continuous export // descriptions returned. MaxResults *int64 `locationName:"maxResults" type:"integer"` // The token from the previous call to describe-export-tasks. NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation func (s DescribeExportConfigurationsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeExportConfigurationsInput) GoString() string { return s.String() } // SetExportIds sets the ExportIds field's value. func (s *DescribeExportConfigurationsInput) SetExportIds(v []*string) *DescribeExportConfigurationsInput { s.ExportIds = v return s } // SetMaxResults sets the MaxResults field's value. func (s *DescribeExportConfigurationsInput) SetMaxResults(v int64) *DescribeExportConfigurationsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeExportConfigurationsInput) SetNextToken(v string) *DescribeExportConfigurationsInput { s.NextToken = &v return s } type DescribeExportConfigurationsOutput struct { _ struct{} `type:"structure"` ExportsInfo []*ExportInfo `locationName:"exportsInfo" type:"list"` // The token from the previous call to describe-export-tasks. NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation func (s DescribeExportConfigurationsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeExportConfigurationsOutput) GoString() string { return s.String() } // SetExportsInfo sets the ExportsInfo field's value. func (s *DescribeExportConfigurationsOutput) SetExportsInfo(v []*ExportInfo) *DescribeExportConfigurationsOutput { s.ExportsInfo = v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeExportConfigurationsOutput) SetNextToken(v string) *DescribeExportConfigurationsOutput { s.NextToken = &v return s } type DescribeExportTasksInput struct { _ struct{} `type:"structure"` // One or more unique identifiers used to query the status of an export request. ExportIds []*string `locationName:"exportIds" type:"list"` // One or more filters. // // * AgentId - ID of the agent whose collected data will be exported Filters []*ExportFilter `locationName:"filters" type:"list"` // The maximum number of volume results returned by DescribeExportTasks in paginated // output. When this parameter is used, DescribeExportTasks only returns maxResults // results in a single page along with a nextToken response element. MaxResults *int64 `locationName:"maxResults" type:"integer"` // The nextToken value returned from a previous paginated DescribeExportTasks // request where maxResults was used and the results exceeded the value of that // parameter. Pagination continues from the end of the previous results that // returned the nextToken value. This value is null when there are no more results // to return. NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation func (s DescribeExportTasksInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeExportTasksInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeExportTasksInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeExportTasksInput"} if s.Filters != nil { for i, v := range s.Filters { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetExportIds sets the ExportIds field's value. func (s *DescribeExportTasksInput) SetExportIds(v []*string) *DescribeExportTasksInput { s.ExportIds = v return s } // SetFilters sets the Filters field's value. func (s *DescribeExportTasksInput) SetFilters(v []*ExportFilter) *DescribeExportTasksInput { s.Filters = v return s } // SetMaxResults sets the MaxResults field's value. func (s *DescribeExportTasksInput) SetMaxResults(v int64) *DescribeExportTasksInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeExportTasksInput) SetNextToken(v string) *DescribeExportTasksInput { s.NextToken = &v return s } type DescribeExportTasksOutput struct { _ struct{} `type:"structure"` // Contains one or more sets of export request details. When the status of a // request is SUCCEEDED, the response includes a URL for an Amazon S3 bucket // where you can view the data in a CSV file. ExportsInfo []*ExportInfo `locationName:"exportsInfo" type:"list"` // The nextToken value to include in a future DescribeExportTasks request. When // the results of a DescribeExportTasks request exceed maxResults, this value // can be used to retrieve the next page of results. This value is null when // there are no more results to return. NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation func (s DescribeExportTasksOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeExportTasksOutput) GoString() string { return s.String() } // SetExportsInfo sets the ExportsInfo field's value. func (s *DescribeExportTasksOutput) SetExportsInfo(v []*ExportInfo) *DescribeExportTasksOutput { s.ExportsInfo = v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeExportTasksOutput) SetNextToken(v string) *DescribeExportTasksOutput { s.NextToken = &v return s } type DescribeImportTasksInput struct { _ struct{} `type:"structure"` // An array of name-value pairs that you provide to filter the results for the // DescribeImportTask request to a specific subset of results. Currently, wildcard // values aren't supported for filters. Filters []*ImportTaskFilter `locationName:"filters" type:"list"` // The maximum number of results that you want this request to return, up to // 100. MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` // The token to request a specific page of results. NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation func (s DescribeImportTasksInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeImportTasksInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeImportTasksInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeImportTasksInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if s.Filters != nil { for i, v := range s.Filters { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetFilters sets the Filters field's value. func (s *DescribeImportTasksInput) SetFilters(v []*ImportTaskFilter) *DescribeImportTasksInput { s.Filters = v return s } // SetMaxResults sets the MaxResults field's value. func (s *DescribeImportTasksInput) SetMaxResults(v int64) *DescribeImportTasksInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeImportTasksInput) SetNextToken(v string) *DescribeImportTasksInput { s.NextToken = &v return s } type DescribeImportTasksOutput struct { _ struct{} `type:"structure"` // The token to request the next page of results. NextToken *string `locationName:"nextToken" type:"string"` // A returned array of import tasks that match any applied filters, up to the // specified number of maximum results. Tasks []*ImportTask `locationName:"tasks" type:"list"` } // String returns the string representation func (s DescribeImportTasksOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeImportTasksOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *DescribeImportTasksOutput) SetNextToken(v string) *DescribeImportTasksOutput { s.NextToken = &v return s } // SetTasks sets the Tasks field's value. func (s *DescribeImportTasksOutput) SetTasks(v []*ImportTask) *DescribeImportTasksOutput { s.Tasks = v return s } type DescribeTagsInput struct { _ struct{} `type:"structure"` // You can filter the list using a key-value format. You can separate these // items by using logical operators. Allowed filters include tagKey, tagValue, // and configurationId. Filters []*TagFilter `locationName:"filters" type:"list"` // The total number of items to return in a single page of output. The maximum // value is 100. MaxResults *int64 `locationName:"maxResults" type:"integer"` // A token to start the list. Use this token to get the next set of results. NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation func (s DescribeTagsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeTagsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeTagsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeTagsInput"} if s.Filters != nil { for i, v := range s.Filters { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetFilters sets the Filters field's value. func (s *DescribeTagsInput) SetFilters(v []*TagFilter) *DescribeTagsInput { s.Filters = v return s } // SetMaxResults sets the MaxResults field's value. func (s *DescribeTagsInput) SetMaxResults(v int64) *DescribeTagsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeTagsInput) SetNextToken(v string) *DescribeTagsInput { s.NextToken = &v return s } type DescribeTagsOutput struct { _ struct{} `type:"structure"` // The call returns a token. Use this token to get the next set of results. NextToken *string `locationName:"nextToken" type:"string"` // Depending on the input, this is a list of configuration items tagged with // a specific tag, or a list of tags for a specific configuration item. Tags []*ConfigurationTag `locationName:"tags" type:"list"` } // String returns the string representation func (s DescribeTagsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeTagsOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *DescribeTagsOutput) SetNextToken(v string) *DescribeTagsOutput { s.NextToken = &v return s } // SetTags sets the Tags field's value. func (s *DescribeTagsOutput) SetTags(v []*ConfigurationTag) *DescribeTagsOutput { s.Tags = v return s } type DisassociateConfigurationItemsFromApplicationInput struct { _ struct{} `type:"structure"` // Configuration ID of an application from which each item is disassociated. // // ApplicationConfigurationId is a required field ApplicationConfigurationId *string `locationName:"applicationConfigurationId" type:"string" required:"true"` // Configuration ID of each item to be disassociated from an application. // // ConfigurationIds is a required field ConfigurationIds []*string `locationName:"configurationIds" type:"list" required:"true"` } // String returns the string representation func (s DisassociateConfigurationItemsFromApplicationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DisassociateConfigurationItemsFromApplicationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DisassociateConfigurationItemsFromApplicationInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DisassociateConfigurationItemsFromApplicationInput"} if s.ApplicationConfigurationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationConfigurationId")) } if s.ConfigurationIds == nil { invalidParams.Add(request.NewErrParamRequired("ConfigurationIds")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApplicationConfigurationId sets the ApplicationConfigurationId field's value. func (s *DisassociateConfigurationItemsFromApplicationInput) SetApplicationConfigurationId(v string) *DisassociateConfigurationItemsFromApplicationInput { s.ApplicationConfigurationId = &v return s } // SetConfigurationIds sets the ConfigurationIds field's value. func (s *DisassociateConfigurationItemsFromApplicationInput) SetConfigurationIds(v []*string) *DisassociateConfigurationItemsFromApplicationInput { s.ConfigurationIds = v return s } type DisassociateConfigurationItemsFromApplicationOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DisassociateConfigurationItemsFromApplicationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DisassociateConfigurationItemsFromApplicationOutput) GoString() string { return s.String() } type ExportConfigurationsInput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s ExportConfigurationsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ExportConfigurationsInput) GoString() string { return s.String() } type ExportConfigurationsOutput struct { _ struct{} `type:"structure"` // A unique identifier that you can use to query the export status. ExportId *string `locationName:"exportId" type:"string"` } // String returns the string representation func (s ExportConfigurationsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ExportConfigurationsOutput) GoString() string { return s.String() } // SetExportId sets the ExportId field's value. func (s *ExportConfigurationsOutput) SetExportId(v string) *ExportConfigurationsOutput { s.ExportId = &v return s } // Used to select which agent's data is to be exported. A single agent ID may // be selected for export using the StartExportTask (http://docs.aws.amazon.com/application-discovery/latest/APIReference/API_StartExportTask.html) // action. type ExportFilter struct { _ struct{} `type:"structure"` // Supported condition: EQUALS // // Condition is a required field Condition *string `locationName:"condition" type:"string" required:"true"` // A single ExportFilter name. Supported filters: agentId. // // Name is a required field Name *string `locationName:"name" type:"string" required:"true"` // A single agentId for a Discovery Agent. An agentId can be found using the // DescribeAgents (http://docs.aws.amazon.com/application-discovery/latest/APIReference/API_DescribeExportTasks.html) // action. Typically an ADS agentId is in the form o-0123456789abcdef0. // // Values is a required field Values []*string `locationName:"values" type:"list" required:"true"` } // String returns the string representation func (s ExportFilter) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ExportFilter) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ExportFilter) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ExportFilter"} if s.Condition == nil { invalidParams.Add(request.NewErrParamRequired("Condition")) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Values == nil { invalidParams.Add(request.NewErrParamRequired("Values")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCondition sets the Condition field's value. func (s *ExportFilter) SetCondition(v string) *ExportFilter { s.Condition = &v return s } // SetName sets the Name field's value. func (s *ExportFilter) SetName(v string) *ExportFilter { s.Name = &v return s } // SetValues sets the Values field's value. func (s *ExportFilter) SetValues(v []*string) *ExportFilter { s.Values = v return s } // Information regarding the export status of discovered data. The value is // an array of objects. type ExportInfo struct { _ struct{} `type:"structure"` // A URL for an Amazon S3 bucket where you can review the exported data. The // URL is displayed only if the export succeeded. ConfigurationsDownloadUrl *string `locationName:"configurationsDownloadUrl" type:"string"` // A unique identifier used to query an export. // // ExportId is a required field ExportId *string `locationName:"exportId" type:"string" required:"true"` // The time that the data export was initiated. // // ExportRequestTime is a required field ExportRequestTime *time.Time `locationName:"exportRequestTime" type:"timestamp" required:"true"` // The status of the data export job. // // ExportStatus is a required field ExportStatus *string `locationName:"exportStatus" type:"string" required:"true" enum:"ExportStatus"` // If true, the export of agent information exceeded the size limit for a single // export and the exported data is incomplete for the requested time range. // To address this, select a smaller time range for the export by using startDate // and endDate. IsTruncated *bool `locationName:"isTruncated" type:"boolean"` // The endTime used in the StartExportTask request. If no endTime was requested, // this result does not appear in ExportInfo. RequestedEndTime *time.Time `locationName:"requestedEndTime" type:"timestamp"` // The value of startTime parameter in the StartExportTask request. If no startTime // was requested, this result does not appear in ExportInfo. RequestedStartTime *time.Time `locationName:"requestedStartTime" type:"timestamp"` // A status message provided for API callers. // // StatusMessage is a required field StatusMessage *string `locationName:"statusMessage" type:"string" required:"true"` } // String returns the string representation func (s ExportInfo) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ExportInfo) GoString() string { return s.String() } // SetConfigurationsDownloadUrl sets the ConfigurationsDownloadUrl field's value. func (s *ExportInfo) SetConfigurationsDownloadUrl(v string) *ExportInfo { s.ConfigurationsDownloadUrl = &v return s } // SetExportId sets the ExportId field's value. func (s *ExportInfo) SetExportId(v string) *ExportInfo { s.ExportId = &v return s } // SetExportRequestTime sets the ExportRequestTime field's value. func (s *ExportInfo) SetExportRequestTime(v time.Time) *ExportInfo { s.ExportRequestTime = &v return s } // SetExportStatus sets the ExportStatus field's value. func (s *ExportInfo) SetExportStatus(v string) *ExportInfo { s.ExportStatus = &v return s } // SetIsTruncated sets the IsTruncated field's value. func (s *ExportInfo) SetIsTruncated(v bool) *ExportInfo { s.IsTruncated = &v return s } // SetRequestedEndTime sets the RequestedEndTime field's value. func (s *ExportInfo) SetRequestedEndTime(v time.Time) *ExportInfo { s.RequestedEndTime = &v return s } // SetRequestedStartTime sets the RequestedStartTime field's value. func (s *ExportInfo) SetRequestedStartTime(v time.Time) *ExportInfo { s.RequestedStartTime = &v return s } // SetStatusMessage sets the StatusMessage field's value. func (s *ExportInfo) SetStatusMessage(v string) *ExportInfo { s.StatusMessage = &v return s } // A filter that can use conditional operators. // // For more information about filters, see Querying Discovered Configuration // Items (https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-api-queries.html) // in the AWS Application Discovery Service User Guide. type Filter struct { _ struct{} `type:"structure"` // A conditional operator. The following operators are valid: EQUALS, NOT_EQUALS, // CONTAINS, NOT_CONTAINS. If you specify multiple filters, the system utilizes // all filters as though concatenated by AND. If you specify multiple values // for a particular filter, the system differentiates the values using OR. Calling // either DescribeConfigurations or ListConfigurations returns attributes of // matching configuration items. // // Condition is a required field Condition *string `locationName:"condition" type:"string" required:"true"` // The name of the filter. // // Name is a required field Name *string `locationName:"name" type:"string" required:"true"` // A string value on which to filter. For example, if you choose the destinationServer.osVersion // filter name, you could specify Ubuntu for the value. // // Values is a required field Values []*string `locationName:"values" type:"list" required:"true"` } // String returns the string representation func (s Filter) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Filter) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *Filter) Validate() error { invalidParams := request.ErrInvalidParams{Context: "Filter"} if s.Condition == nil { invalidParams.Add(request.NewErrParamRequired("Condition")) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Values == nil { invalidParams.Add(request.NewErrParamRequired("Values")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCondition sets the Condition field's value. func (s *Filter) SetCondition(v string) *Filter { s.Condition = &v return s } // SetName sets the Name field's value. func (s *Filter) SetName(v string) *Filter { s.Name = &v return s } // SetValues sets the Values field's value. func (s *Filter) SetValues(v []*string) *Filter { s.Values = v return s } type GetDiscoverySummaryInput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s GetDiscoverySummaryInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetDiscoverySummaryInput) GoString() string { return s.String() } type GetDiscoverySummaryOutput struct { _ struct{} `type:"structure"` // Details about discovered agents, including agent status and health. AgentSummary *CustomerAgentInfo `locationName:"agentSummary" type:"structure"` // The number of applications discovered. Applications *int64 `locationName:"applications" type:"long"` // Details about discovered connectors, including connector status and health. ConnectorSummary *CustomerConnectorInfo `locationName:"connectorSummary" type:"structure"` // The number of servers discovered. Servers *int64 `locationName:"servers" type:"long"` // The number of servers mapped to applications. ServersMappedToApplications *int64 `locationName:"serversMappedToApplications" type:"long"` // The number of servers mapped to tags. ServersMappedtoTags *int64 `locationName:"serversMappedtoTags" type:"long"` } // String returns the string representation func (s GetDiscoverySummaryOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetDiscoverySummaryOutput) GoString() string { return s.String() } // SetAgentSummary sets the AgentSummary field's value. func (s *GetDiscoverySummaryOutput) SetAgentSummary(v *CustomerAgentInfo) *GetDiscoverySummaryOutput { s.AgentSummary = v return s } // SetApplications sets the Applications field's value. func (s *GetDiscoverySummaryOutput) SetApplications(v int64) *GetDiscoverySummaryOutput { s.Applications = &v return s } // SetConnectorSummary sets the ConnectorSummary field's value. func (s *GetDiscoverySummaryOutput) SetConnectorSummary(v *CustomerConnectorInfo) *GetDiscoverySummaryOutput { s.ConnectorSummary = v return s } // SetServers sets the Servers field's value. func (s *GetDiscoverySummaryOutput) SetServers(v int64) *GetDiscoverySummaryOutput { s.Servers = &v return s } // SetServersMappedToApplications sets the ServersMappedToApplications field's value. func (s *GetDiscoverySummaryOutput) SetServersMappedToApplications(v int64) *GetDiscoverySummaryOutput { s.ServersMappedToApplications = &v return s } // SetServersMappedtoTags sets the ServersMappedtoTags field's value. func (s *GetDiscoverySummaryOutput) SetServersMappedtoTags(v int64) *GetDiscoverySummaryOutput { s.ServersMappedtoTags = &v return s } // The home region is not set. Set the home region to continue. type HomeRegionNotSetException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s HomeRegionNotSetException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s HomeRegionNotSetException) GoString() string { return s.String() } func newErrorHomeRegionNotSetException(v protocol.ResponseMetadata) error { return &HomeRegionNotSetException{ RespMetadata: v, } } // Code returns the exception type name. func (s *HomeRegionNotSetException) Code() string { return "HomeRegionNotSetException" } // Message returns the exception's message. func (s *HomeRegionNotSetException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *HomeRegionNotSetException) OrigErr() error { return nil } func (s *HomeRegionNotSetException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *HomeRegionNotSetException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *HomeRegionNotSetException) RequestID() string { return s.RespMetadata.RequestID } // An array of information related to the import task request that includes // status information, times, IDs, the Amazon S3 Object URL for the import file, // and more. type ImportTask struct { _ struct{} `type:"structure"` // The total number of application records in the import file that failed to // be imported. ApplicationImportFailure *int64 `locationName:"applicationImportFailure" type:"integer"` // The total number of application records in the import file that were successfully // imported. ApplicationImportSuccess *int64 `locationName:"applicationImportSuccess" type:"integer"` // A unique token used to prevent the same import request from occurring more // than once. If you didn't provide a token, a token was automatically generated // when the import task request was sent. ClientRequestToken *string `locationName:"clientRequestToken" min:"1" type:"string"` // A link to a compressed archive folder (in the ZIP format) that contains an // error log and a file of failed records. You can use these two files to quickly // identify records that failed, why they failed, and correct those records. // Afterward, you can upload the corrected file to your Amazon S3 bucket and // create another import task request. // // This field also includes authorization information so you can confirm the // authenticity of the compressed archive before you download it. // // If some records failed to be imported we recommend that you correct the records // in the failed entries file and then imports that failed entries file. This // prevents you from having to correct and update the larger original file and // attempt importing it again. ErrorsAndFailedEntriesZip *string `locationName:"errorsAndFailedEntriesZip" type:"string"` // The time that the import task request finished, presented in the Unix time // stamp format. ImportCompletionTime *time.Time `locationName:"importCompletionTime" type:"timestamp"` // The time that the import task request was deleted, presented in the Unix // time stamp format. ImportDeletedTime *time.Time `locationName:"importDeletedTime" type:"timestamp"` // The time that the import task request was made, presented in the Unix time // stamp format. ImportRequestTime *time.Time `locationName:"importRequestTime" type:"timestamp"` // The unique ID for a specific import task. These IDs aren't globally unique, // but they are unique within an AWS account. ImportTaskId *string `locationName:"importTaskId" type:"string"` // The URL for your import file that you've uploaded to Amazon S3. ImportUrl *string `locationName:"importUrl" min:"1" type:"string"` // A descriptive name for an import task. You can use this name to filter future // requests related to this import task, such as identifying applications and // servers that were included in this import task. We recommend that you use // a meaningful name for each import task. Name *string `locationName:"name" min:"1" type:"string"` // The total number of server records in the import file that failed to be imported. ServerImportFailure *int64 `locationName:"serverImportFailure" type:"integer"` // The total number of server records in the import file that were successfully // imported. ServerImportSuccess *int64 `locationName:"serverImportSuccess" type:"integer"` // The status of the import task. An import can have the status of IMPORT_COMPLETE // and still have some records fail to import from the overall request. More // information can be found in the downloadable archive defined in the errorsAndFailedEntriesZip // field, or in the Migration Hub management console. Status *string `locationName:"status" type:"string" enum:"ImportStatus"` } // String returns the string representation func (s ImportTask) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ImportTask) GoString() string { return s.String() } // SetApplicationImportFailure sets the ApplicationImportFailure field's value. func (s *ImportTask) SetApplicationImportFailure(v int64) *ImportTask { s.ApplicationImportFailure = &v return s } // SetApplicationImportSuccess sets the ApplicationImportSuccess field's value. func (s *ImportTask) SetApplicationImportSuccess(v int64) *ImportTask { s.ApplicationImportSuccess = &v return s } // SetClientRequestToken sets the ClientRequestToken field's value. func (s *ImportTask) SetClientRequestToken(v string) *ImportTask { s.ClientRequestToken = &v return s } // SetErrorsAndFailedEntriesZip sets the ErrorsAndFailedEntriesZip field's value. func (s *ImportTask) SetErrorsAndFailedEntriesZip(v string) *ImportTask { s.ErrorsAndFailedEntriesZip = &v return s } // SetImportCompletionTime sets the ImportCompletionTime field's value. func (s *ImportTask) SetImportCompletionTime(v time.Time) *ImportTask { s.ImportCompletionTime = &v return s } // SetImportDeletedTime sets the ImportDeletedTime field's value. func (s *ImportTask) SetImportDeletedTime(v time.Time) *ImportTask { s.ImportDeletedTime = &v return s } // SetImportRequestTime sets the ImportRequestTime field's value. func (s *ImportTask) SetImportRequestTime(v time.Time) *ImportTask { s.ImportRequestTime = &v return s } // SetImportTaskId sets the ImportTaskId field's value. func (s *ImportTask) SetImportTaskId(v string) *ImportTask { s.ImportTaskId = &v return s } // SetImportUrl sets the ImportUrl field's value. func (s *ImportTask) SetImportUrl(v string) *ImportTask { s.ImportUrl = &v return s } // SetName sets the Name field's value. func (s *ImportTask) SetName(v string) *ImportTask { s.Name = &v return s } // SetServerImportFailure sets the ServerImportFailure field's value. func (s *ImportTask) SetServerImportFailure(v int64) *ImportTask { s.ServerImportFailure = &v return s } // SetServerImportSuccess sets the ServerImportSuccess field's value. func (s *ImportTask) SetServerImportSuccess(v int64) *ImportTask { s.ServerImportSuccess = &v return s } // SetStatus sets the Status field's value. func (s *ImportTask) SetStatus(v string) *ImportTask { s.Status = &v return s } // A name-values pair of elements you can use to filter the results when querying // your import tasks. Currently, wildcards are not supported for filters. // // When filtering by import status, all other filter values are ignored. type ImportTaskFilter struct { _ struct{} `type:"structure"` // The name, status, or import task ID for a specific import task. Name *string `locationName:"name" type:"string" enum:"ImportTaskFilterName"` // An array of strings that you can provide to match against a specific name, // status, or import task ID to filter the results for your import task queries. Values []*string `locationName:"values" min:"1" type:"list"` } // String returns the string representation func (s ImportTaskFilter) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ImportTaskFilter) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ImportTaskFilter) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ImportTaskFilter"} if s.Values != nil && len(s.Values) < 1 { invalidParams.Add(request.NewErrParamMinLen("Values", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetName sets the Name field's value. func (s *ImportTaskFilter) SetName(v string) *ImportTaskFilter { s.Name = &v return s } // SetValues sets the Values field's value. func (s *ImportTaskFilter) SetValues(v []*string) *ImportTaskFilter { s.Values = v return s } // One or more parameters are not valid. Verify the parameters and try again. type InvalidParameterException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s InvalidParameterException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s InvalidParameterException) GoString() string { return s.String() } func newErrorInvalidParameterException(v protocol.ResponseMetadata) error { return &InvalidParameterException{ RespMetadata: v, } } // Code returns the exception type name. func (s *InvalidParameterException) Code() string { return "InvalidParameterException" } // Message returns the exception's message. func (s *InvalidParameterException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *InvalidParameterException) OrigErr() error { return nil } func (s *InvalidParameterException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *InvalidParameterException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *InvalidParameterException) RequestID() string { return s.RespMetadata.RequestID } // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. type InvalidParameterValueException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s InvalidParameterValueException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s InvalidParameterValueException) GoString() string { return s.String() } func newErrorInvalidParameterValueException(v protocol.ResponseMetadata) error { return &InvalidParameterValueException{ RespMetadata: v, } } // Code returns the exception type name. func (s *InvalidParameterValueException) Code() string { return "InvalidParameterValueException" } // Message returns the exception's message. func (s *InvalidParameterValueException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *InvalidParameterValueException) OrigErr() error { return nil } func (s *InvalidParameterValueException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *InvalidParameterValueException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *InvalidParameterValueException) RequestID() string { return s.RespMetadata.RequestID } type ListConfigurationsInput struct { _ struct{} `type:"structure"` // A valid configuration identified by Application Discovery Service. // // ConfigurationType is a required field ConfigurationType *string `locationName:"configurationType" type:"string" required:"true" enum:"ConfigurationItemType"` // You can filter the request using various logical operators and a key-value // format. For example: // // {"key": "serverType", "value": "webServer"} // // For a complete list of filter options and guidance about using them with // this action, see Using the ListConfigurations Action (https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-api-queries.html#ListConfigurations) // in the AWS Application Discovery Service User Guide. Filters []*Filter `locationName:"filters" type:"list"` // The total number of items to return. The maximum value is 100. MaxResults *int64 `locationName:"maxResults" type:"integer"` // Token to retrieve the next set of results. For example, if a previous call // to ListConfigurations returned 100 items, but you set ListConfigurationsRequest$maxResults // to 10, you received a set of 10 results along with a token. Use that token // in this query to get the next set of 10. NextToken *string `locationName:"nextToken" type:"string"` // Certain filter criteria return output that can be sorted in ascending or // descending order. For a list of output characteristics for each filter, see // Using the ListConfigurations Action (https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-api-queries.html#ListConfigurations) // in the AWS Application Discovery Service User Guide. OrderBy []*OrderByElement `locationName:"orderBy" type:"list"` } // String returns the string representation func (s ListConfigurationsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListConfigurationsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListConfigurationsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListConfigurationsInput"} if s.ConfigurationType == nil { invalidParams.Add(request.NewErrParamRequired("ConfigurationType")) } if s.Filters != nil { for i, v := range s.Filters { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) } } } if s.OrderBy != nil { for i, v := range s.OrderBy { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OrderBy", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetConfigurationType sets the ConfigurationType field's value. func (s *ListConfigurationsInput) SetConfigurationType(v string) *ListConfigurationsInput { s.ConfigurationType = &v return s } // SetFilters sets the Filters field's value. func (s *ListConfigurationsInput) SetFilters(v []*Filter) *ListConfigurationsInput { s.Filters = v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListConfigurationsInput) SetMaxResults(v int64) *ListConfigurationsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListConfigurationsInput) SetNextToken(v string) *ListConfigurationsInput { s.NextToken = &v return s } // SetOrderBy sets the OrderBy field's value. func (s *ListConfigurationsInput) SetOrderBy(v []*OrderByElement) *ListConfigurationsInput { s.OrderBy = v return s } type ListConfigurationsOutput struct { _ struct{} `type:"structure"` // Returns configuration details, including the configuration ID, attribute // names, and attribute values. Configurations []map[string]*string `locationName:"configurations" type:"list"` // Token to retrieve the next set of results. For example, if your call to ListConfigurations // returned 100 items, but you set ListConfigurationsRequest$maxResults to 10, // you received a set of 10 results along with this token. Use this token in // the next query to retrieve the next set of 10. NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation func (s ListConfigurationsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListConfigurationsOutput) GoString() string { return s.String() } // SetConfigurations sets the Configurations field's value. func (s *ListConfigurationsOutput) SetConfigurations(v []map[string]*string) *ListConfigurationsOutput { s.Configurations = v return s } // SetNextToken sets the NextToken field's value. func (s *ListConfigurationsOutput) SetNextToken(v string) *ListConfigurationsOutput { s.NextToken = &v return s } type ListServerNeighborsInput struct { _ struct{} `type:"structure"` // Configuration ID of the server for which neighbors are being listed. // // ConfigurationId is a required field ConfigurationId *string `locationName:"configurationId" type:"string" required:"true"` // Maximum number of results to return in a single page of output. MaxResults *int64 `locationName:"maxResults" type:"integer"` // List of configuration IDs to test for one-hop-away. NeighborConfigurationIds []*string `locationName:"neighborConfigurationIds" type:"list"` // Token to retrieve the next set of results. For example, if you previously // specified 100 IDs for ListServerNeighborsRequest$neighborConfigurationIds // but set ListServerNeighborsRequest$maxResults to 10, you received a set of // 10 results along with a token. Use that token in this query to get the next // set of 10. NextToken *string `locationName:"nextToken" type:"string"` // Flag to indicate if port and protocol information is needed as part of the // response. PortInformationNeeded *bool `locationName:"portInformationNeeded" type:"boolean"` } // String returns the string representation func (s ListServerNeighborsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListServerNeighborsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListServerNeighborsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListServerNeighborsInput"} if s.ConfigurationId == nil { invalidParams.Add(request.NewErrParamRequired("ConfigurationId")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetConfigurationId sets the ConfigurationId field's value. func (s *ListServerNeighborsInput) SetConfigurationId(v string) *ListServerNeighborsInput { s.ConfigurationId = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListServerNeighborsInput) SetMaxResults(v int64) *ListServerNeighborsInput { s.MaxResults = &v return s } // SetNeighborConfigurationIds sets the NeighborConfigurationIds field's value. func (s *ListServerNeighborsInput) SetNeighborConfigurationIds(v []*string) *ListServerNeighborsInput { s.NeighborConfigurationIds = v return s } // SetNextToken sets the NextToken field's value. func (s *ListServerNeighborsInput) SetNextToken(v string) *ListServerNeighborsInput { s.NextToken = &v return s } // SetPortInformationNeeded sets the PortInformationNeeded field's value. func (s *ListServerNeighborsInput) SetPortInformationNeeded(v bool) *ListServerNeighborsInput { s.PortInformationNeeded = &v return s } type ListServerNeighborsOutput struct { _ struct{} `type:"structure"` // Count of distinct servers that are one hop away from the given server. KnownDependencyCount *int64 `locationName:"knownDependencyCount" type:"long"` // List of distinct servers that are one hop away from the given server. // // Neighbors is a required field Neighbors []*NeighborConnectionDetail `locationName:"neighbors" type:"list" required:"true"` // Token to retrieve the next set of results. For example, if you specified // 100 IDs for ListServerNeighborsRequest$neighborConfigurationIds but set ListServerNeighborsRequest$maxResults // to 10, you received a set of 10 results along with this token. Use this token // in the next query to retrieve the next set of 10. NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation func (s ListServerNeighborsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListServerNeighborsOutput) GoString() string { return s.String() } // SetKnownDependencyCount sets the KnownDependencyCount field's value. func (s *ListServerNeighborsOutput) SetKnownDependencyCount(v int64) *ListServerNeighborsOutput { s.KnownDependencyCount = &v return s } // SetNeighbors sets the Neighbors field's value. func (s *ListServerNeighborsOutput) SetNeighbors(v []*NeighborConnectionDetail) *ListServerNeighborsOutput { s.Neighbors = v return s } // SetNextToken sets the NextToken field's value. func (s *ListServerNeighborsOutput) SetNextToken(v string) *ListServerNeighborsOutput { s.NextToken = &v return s } // Details about neighboring servers. type NeighborConnectionDetail struct { _ struct{} `type:"structure"` // The number of open network connections with the neighboring server. // // ConnectionsCount is a required field ConnectionsCount *int64 `locationName:"connectionsCount" type:"long" required:"true"` // The destination network port for the connection. DestinationPort *int64 `locationName:"destinationPort" type:"integer"` // The ID of the server that accepted the network connection. // // DestinationServerId is a required field DestinationServerId *string `locationName:"destinationServerId" type:"string" required:"true"` // The ID of the server that opened the network connection. // // SourceServerId is a required field SourceServerId *string `locationName:"sourceServerId" type:"string" required:"true"` // The network protocol used for the connection. TransportProtocol *string `locationName:"transportProtocol" type:"string"` } // String returns the string representation func (s NeighborConnectionDetail) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s NeighborConnectionDetail) GoString() string { return s.String() } // SetConnectionsCount sets the ConnectionsCount field's value. func (s *NeighborConnectionDetail) SetConnectionsCount(v int64) *NeighborConnectionDetail { s.ConnectionsCount = &v return s } // SetDestinationPort sets the DestinationPort field's value. func (s *NeighborConnectionDetail) SetDestinationPort(v int64) *NeighborConnectionDetail { s.DestinationPort = &v return s } // SetDestinationServerId sets the DestinationServerId field's value. func (s *NeighborConnectionDetail) SetDestinationServerId(v string) *NeighborConnectionDetail { s.DestinationServerId = &v return s } // SetSourceServerId sets the SourceServerId field's value. func (s *NeighborConnectionDetail) SetSourceServerId(v string) *NeighborConnectionDetail { s.SourceServerId = &v return s } // SetTransportProtocol sets the TransportProtocol field's value. func (s *NeighborConnectionDetail) SetTransportProtocol(v string) *NeighborConnectionDetail { s.TransportProtocol = &v return s } // This operation is not permitted. type OperationNotPermittedException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s OperationNotPermittedException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s OperationNotPermittedException) GoString() string { return s.String() } func newErrorOperationNotPermittedException(v protocol.ResponseMetadata) error { return &OperationNotPermittedException{ RespMetadata: v, } } // Code returns the exception type name. func (s *OperationNotPermittedException) Code() string { return "OperationNotPermittedException" } // Message returns the exception's message. func (s *OperationNotPermittedException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *OperationNotPermittedException) OrigErr() error { return nil } func (s *OperationNotPermittedException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *OperationNotPermittedException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *OperationNotPermittedException) RequestID() string { return s.RespMetadata.RequestID } // A field and direction for ordered output. type OrderByElement struct { _ struct{} `type:"structure"` // The field on which to order. // // FieldName is a required field FieldName *string `locationName:"fieldName" type:"string" required:"true"` // Ordering direction. SortOrder *string `locationName:"sortOrder" type:"string" enum:"OrderString"` } // String returns the string representation func (s OrderByElement) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s OrderByElement) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *OrderByElement) Validate() error { invalidParams := request.ErrInvalidParams{Context: "OrderByElement"} if s.FieldName == nil { invalidParams.Add(request.NewErrParamRequired("FieldName")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetFieldName sets the FieldName field's value. func (s *OrderByElement) SetFieldName(v string) *OrderByElement { s.FieldName = &v return s } // SetSortOrder sets the SortOrder field's value. func (s *OrderByElement) SetSortOrder(v string) *OrderByElement { s.SortOrder = &v return s } // This issue occurs when the same clientRequestToken is used with the StartImportTask // action, but with different parameters. For example, you use the same request // token but have two different import URLs, you can encounter this issue. If // the import tasks are meant to be different, use a different clientRequestToken, // and try again. type ResourceInUseException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s ResourceInUseException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ResourceInUseException) GoString() string { return s.String() } func newErrorResourceInUseException(v protocol.ResponseMetadata) error { return &ResourceInUseException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ResourceInUseException) Code() string { return "ResourceInUseException" } // Message returns the exception's message. func (s *ResourceInUseException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ResourceInUseException) OrigErr() error { return nil } func (s *ResourceInUseException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ResourceInUseException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ResourceInUseException) RequestID() string { return s.RespMetadata.RequestID } // The specified configuration ID was not located. Verify the configuration // ID and try again. type ResourceNotFoundException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s ResourceNotFoundException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ResourceNotFoundException) GoString() string { return s.String() } func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { return &ResourceNotFoundException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ResourceNotFoundException) Code() string { return "ResourceNotFoundException" } // Message returns the exception's message. func (s *ResourceNotFoundException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ResourceNotFoundException) OrigErr() error { return nil } func (s *ResourceNotFoundException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ResourceNotFoundException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ResourceNotFoundException) RequestID() string { return s.RespMetadata.RequestID } // The server experienced an internal error. Try again. type ServerInternalErrorException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s ServerInternalErrorException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ServerInternalErrorException) GoString() string { return s.String() } func newErrorServerInternalErrorException(v protocol.ResponseMetadata) error { return &ServerInternalErrorException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ServerInternalErrorException) Code() string { return "ServerInternalErrorException" } // Message returns the exception's message. func (s *ServerInternalErrorException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ServerInternalErrorException) OrigErr() error { return nil } func (s *ServerInternalErrorException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ServerInternalErrorException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ServerInternalErrorException) RequestID() string { return s.RespMetadata.RequestID } type StartContinuousExportInput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s StartContinuousExportInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StartContinuousExportInput) GoString() string { return s.String() } type StartContinuousExportOutput struct { _ struct{} `type:"structure"` // The type of data collector used to gather this data (currently only offered // for AGENT). DataSource *string `locationName:"dataSource" type:"string" enum:"DataSource"` // The unique ID assigned to this export. ExportId *string `locationName:"exportId" type:"string"` // The name of the s3 bucket where the export data parquet files are stored. S3Bucket *string `locationName:"s3Bucket" type:"string"` // A dictionary which describes how the data is stored. // // * databaseName - the name of the Glue database used to store the schema. SchemaStorageConfig map[string]*string `locationName:"schemaStorageConfig" type:"map"` // The timestamp representing when the continuous export was started. StartTime *time.Time `locationName:"startTime" type:"timestamp"` } // String returns the string representation func (s StartContinuousExportOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StartContinuousExportOutput) GoString() string { return s.String() } // SetDataSource sets the DataSource field's value. func (s *StartContinuousExportOutput) SetDataSource(v string) *StartContinuousExportOutput { s.DataSource = &v return s } // SetExportId sets the ExportId field's value. func (s *StartContinuousExportOutput) SetExportId(v string) *StartContinuousExportOutput { s.ExportId = &v return s } // SetS3Bucket sets the S3Bucket field's value. func (s *StartContinuousExportOutput) SetS3Bucket(v string) *StartContinuousExportOutput { s.S3Bucket = &v return s } // SetSchemaStorageConfig sets the SchemaStorageConfig field's value. func (s *StartContinuousExportOutput) SetSchemaStorageConfig(v map[string]*string) *StartContinuousExportOutput { s.SchemaStorageConfig = v return s } // SetStartTime sets the StartTime field's value. func (s *StartContinuousExportOutput) SetStartTime(v time.Time) *StartContinuousExportOutput { s.StartTime = &v return s } type StartDataCollectionByAgentIdsInput struct { _ struct{} `type:"structure"` // The IDs of the agents or connectors from which to start collecting data. // If you send a request to an agent/connector ID that you do not have permission // to contact, according to your AWS account, the service does not throw an // exception. Instead, it returns the error in the Description field. If you // send a request to multiple agents/connectors and you do not have permission // to contact some of those agents/connectors, the system does not throw an // exception. Instead, the system shows Failed in the Description field. // // AgentIds is a required field AgentIds []*string `locationName:"agentIds" type:"list" required:"true"` } // String returns the string representation func (s StartDataCollectionByAgentIdsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StartDataCollectionByAgentIdsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *StartDataCollectionByAgentIdsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "StartDataCollectionByAgentIdsInput"} if s.AgentIds == nil { invalidParams.Add(request.NewErrParamRequired("AgentIds")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAgentIds sets the AgentIds field's value. func (s *StartDataCollectionByAgentIdsInput) SetAgentIds(v []*string) *StartDataCollectionByAgentIdsInput { s.AgentIds = v return s } type StartDataCollectionByAgentIdsOutput struct { _ struct{} `type:"structure"` // Information about agents or the connector that were instructed to start collecting // data. Information includes the agent/connector ID, a description of the operation // performed, and whether the agent/connector configuration was updated. AgentsConfigurationStatus []*AgentConfigurationStatus `locationName:"agentsConfigurationStatus" type:"list"` } // String returns the string representation func (s StartDataCollectionByAgentIdsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StartDataCollectionByAgentIdsOutput) GoString() string { return s.String() } // SetAgentsConfigurationStatus sets the AgentsConfigurationStatus field's value. func (s *StartDataCollectionByAgentIdsOutput) SetAgentsConfigurationStatus(v []*AgentConfigurationStatus) *StartDataCollectionByAgentIdsOutput { s.AgentsConfigurationStatus = v return s } type StartExportTaskInput struct { _ struct{} `type:"structure"` // The end timestamp for exported data from the single Application Discovery // Agent selected in the filters. If no value is specified, exported data includes // the most recent data collected by the agent. EndTime *time.Time `locationName:"endTime" type:"timestamp"` // The file format for the returned export data. Default value is CSV. Note: // The GRAPHML option has been deprecated. ExportDataFormat []*string `locationName:"exportDataFormat" type:"list"` // If a filter is present, it selects the single agentId of the Application // Discovery Agent for which data is exported. The agentId can be found in the // results of the DescribeAgents API or CLI. If no filter is present, startTime // and endTime are ignored and exported data includes both Agentless Discovery // Connector data and summary data from Application Discovery agents. Filters []*ExportFilter `locationName:"filters" type:"list"` // The start timestamp for exported data from the single Application Discovery // Agent selected in the filters. If no value is specified, data is exported // starting from the first data collected by the agent. StartTime *time.Time `locationName:"startTime" type:"timestamp"` } // String returns the string representation func (s StartExportTaskInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StartExportTaskInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *StartExportTaskInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "StartExportTaskInput"} if s.Filters != nil { for i, v := range s.Filters { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetEndTime sets the EndTime field's value. func (s *StartExportTaskInput) SetEndTime(v time.Time) *StartExportTaskInput { s.EndTime = &v return s } // SetExportDataFormat sets the ExportDataFormat field's value. func (s *StartExportTaskInput) SetExportDataFormat(v []*string) *StartExportTaskInput { s.ExportDataFormat = v return s } // SetFilters sets the Filters field's value. func (s *StartExportTaskInput) SetFilters(v []*ExportFilter) *StartExportTaskInput { s.Filters = v return s } // SetStartTime sets the StartTime field's value. func (s *StartExportTaskInput) SetStartTime(v time.Time) *StartExportTaskInput { s.StartTime = &v return s } type StartExportTaskOutput struct { _ struct{} `type:"structure"` // A unique identifier used to query the status of an export request. ExportId *string `locationName:"exportId" type:"string"` } // String returns the string representation func (s StartExportTaskOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StartExportTaskOutput) GoString() string { return s.String() } // SetExportId sets the ExportId field's value. func (s *StartExportTaskOutput) SetExportId(v string) *StartExportTaskOutput { s.ExportId = &v return s } type StartImportTaskInput struct { _ struct{} `type:"structure"` // Optional. A unique token that you can provide to prevent the same import // request from occurring more than once. If you don't provide a token, a token // is automatically generated. // // Sending more than one StartImportTask request with the same client request // token will return information about the original import task with that client // request token. ClientRequestToken *string `locationName:"clientRequestToken" min:"1" type:"string" idempotencyToken:"true"` // The URL for your import file that you've uploaded to Amazon S3. // // If you're using the AWS CLI, this URL is structured as follows: s3://BucketName/ImportFileName.CSV // // ImportUrl is a required field ImportUrl *string `locationName:"importUrl" min:"1" type:"string" required:"true"` // A descriptive name for this request. You can use this name to filter future // requests related to this import task, such as identifying applications and // servers that were included in this import task. We recommend that you use // a meaningful name for each import task. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` } // String returns the string representation func (s StartImportTaskInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StartImportTaskInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *StartImportTaskInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "StartImportTaskInput"} if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) } if s.ImportUrl == nil { invalidParams.Add(request.NewErrParamRequired("ImportUrl")) } if s.ImportUrl != nil && len(*s.ImportUrl) < 1 { invalidParams.Add(request.NewErrParamMinLen("ImportUrl", 1)) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetClientRequestToken sets the ClientRequestToken field's value. func (s *StartImportTaskInput) SetClientRequestToken(v string) *StartImportTaskInput { s.ClientRequestToken = &v return s } // SetImportUrl sets the ImportUrl field's value. func (s *StartImportTaskInput) SetImportUrl(v string) *StartImportTaskInput { s.ImportUrl = &v return s } // SetName sets the Name field's value. func (s *StartImportTaskInput) SetName(v string) *StartImportTaskInput { s.Name = &v return s } type StartImportTaskOutput struct { _ struct{} `type:"structure"` // An array of information related to the import task request including status // information, times, IDs, the Amazon S3 Object URL for the import file, and // more. Task *ImportTask `locationName:"task" type:"structure"` } // String returns the string representation func (s StartImportTaskOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StartImportTaskOutput) GoString() string { return s.String() } // SetTask sets the Task field's value. func (s *StartImportTaskOutput) SetTask(v *ImportTask) *StartImportTaskOutput { s.Task = v return s } type StopContinuousExportInput struct { _ struct{} `type:"structure"` // The unique ID assigned to this export. // // ExportId is a required field ExportId *string `locationName:"exportId" type:"string" required:"true"` } // String returns the string representation func (s StopContinuousExportInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StopContinuousExportInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *StopContinuousExportInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "StopContinuousExportInput"} if s.ExportId == nil { invalidParams.Add(request.NewErrParamRequired("ExportId")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetExportId sets the ExportId field's value. func (s *StopContinuousExportInput) SetExportId(v string) *StopContinuousExportInput { s.ExportId = &v return s } type StopContinuousExportOutput struct { _ struct{} `type:"structure"` // Timestamp that represents when this continuous export started collecting // data. StartTime *time.Time `locationName:"startTime" type:"timestamp"` // Timestamp that represents when this continuous export was stopped. StopTime *time.Time `locationName:"stopTime" type:"timestamp"` } // String returns the string representation func (s StopContinuousExportOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StopContinuousExportOutput) GoString() string { return s.String() } // SetStartTime sets the StartTime field's value. func (s *StopContinuousExportOutput) SetStartTime(v time.Time) *StopContinuousExportOutput { s.StartTime = &v return s } // SetStopTime sets the StopTime field's value. func (s *StopContinuousExportOutput) SetStopTime(v time.Time) *StopContinuousExportOutput { s.StopTime = &v return s } type StopDataCollectionByAgentIdsInput struct { _ struct{} `type:"structure"` // The IDs of the agents or connectors from which to stop collecting data. // // AgentIds is a required field AgentIds []*string `locationName:"agentIds" type:"list" required:"true"` } // String returns the string representation func (s StopDataCollectionByAgentIdsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StopDataCollectionByAgentIdsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *StopDataCollectionByAgentIdsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "StopDataCollectionByAgentIdsInput"} if s.AgentIds == nil { invalidParams.Add(request.NewErrParamRequired("AgentIds")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAgentIds sets the AgentIds field's value. func (s *StopDataCollectionByAgentIdsInput) SetAgentIds(v []*string) *StopDataCollectionByAgentIdsInput { s.AgentIds = v return s } type StopDataCollectionByAgentIdsOutput struct { _ struct{} `type:"structure"` // Information about the agents or connector that were instructed to stop collecting // data. Information includes the agent/connector ID, a description of the operation // performed, and whether the agent/connector configuration was updated. AgentsConfigurationStatus []*AgentConfigurationStatus `locationName:"agentsConfigurationStatus" type:"list"` } // String returns the string representation func (s StopDataCollectionByAgentIdsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StopDataCollectionByAgentIdsOutput) GoString() string { return s.String() } // SetAgentsConfigurationStatus sets the AgentsConfigurationStatus field's value. func (s *StopDataCollectionByAgentIdsOutput) SetAgentsConfigurationStatus(v []*AgentConfigurationStatus) *StopDataCollectionByAgentIdsOutput { s.AgentsConfigurationStatus = v return s } // Metadata that help you categorize IT assets. type Tag struct { _ struct{} `type:"structure"` // The type of tag on which to filter. // // Key is a required field Key *string `locationName:"key" type:"string" required:"true"` // A value for a tag key on which to filter. // // Value is a required field Value *string `locationName:"value" type:"string" required:"true"` } // String returns the string representation func (s Tag) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Tag) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *Tag) Validate() error { invalidParams := request.ErrInvalidParams{Context: "Tag"} if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } if s.Value == nil { invalidParams.Add(request.NewErrParamRequired("Value")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetKey sets the Key field's value. func (s *Tag) SetKey(v string) *Tag { s.Key = &v return s } // SetValue sets the Value field's value. func (s *Tag) SetValue(v string) *Tag { s.Value = &v return s } // The tag filter. Valid names are: tagKey, tagValue, configurationId. type TagFilter struct { _ struct{} `type:"structure"` // A name of the tag filter. // // Name is a required field Name *string `locationName:"name" type:"string" required:"true"` // Values for the tag filter. // // Values is a required field Values []*string `locationName:"values" type:"list" required:"true"` } // String returns the string representation func (s TagFilter) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TagFilter) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *TagFilter) Validate() error { invalidParams := request.ErrInvalidParams{Context: "TagFilter"} if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Values == nil { invalidParams.Add(request.NewErrParamRequired("Values")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetName sets the Name field's value. func (s *TagFilter) SetName(v string) *TagFilter { s.Name = &v return s } // SetValues sets the Values field's value. func (s *TagFilter) SetValues(v []*string) *TagFilter { s.Values = v return s } type UpdateApplicationInput struct { _ struct{} `type:"structure"` // Configuration ID of the application to be updated. // // ConfigurationId is a required field ConfigurationId *string `locationName:"configurationId" type:"string" required:"true"` // New description of the application to be updated. Description *string `locationName:"description" type:"string"` // New name of the application to be updated. Name *string `locationName:"name" type:"string"` } // String returns the string representation func (s UpdateApplicationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateApplicationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateApplicationInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateApplicationInput"} if s.ConfigurationId == nil { invalidParams.Add(request.NewErrParamRequired("ConfigurationId")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetConfigurationId sets the ConfigurationId field's value. func (s *UpdateApplicationInput) SetConfigurationId(v string) *UpdateApplicationInput { s.ConfigurationId = &v return s } // SetDescription sets the Description field's value. func (s *UpdateApplicationInput) SetDescription(v string) *UpdateApplicationInput { s.Description = &v return s } // SetName sets the Name field's value. func (s *UpdateApplicationInput) SetName(v string) *UpdateApplicationInput { s.Name = &v return s } type UpdateApplicationOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s UpdateApplicationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateApplicationOutput) GoString() string { return s.String() } const ( // AgentStatusHealthy is a AgentStatus enum value AgentStatusHealthy = "HEALTHY" // AgentStatusUnhealthy is a AgentStatus enum value AgentStatusUnhealthy = "UNHEALTHY" // AgentStatusRunning is a AgentStatus enum value AgentStatusRunning = "RUNNING" // AgentStatusUnknown is a AgentStatus enum value AgentStatusUnknown = "UNKNOWN" // AgentStatusBlacklisted is a AgentStatus enum value AgentStatusBlacklisted = "BLACKLISTED" // AgentStatusShutdown is a AgentStatus enum value AgentStatusShutdown = "SHUTDOWN" ) // AgentStatus_Values returns all elements of the AgentStatus enum func AgentStatus_Values() []string { return []string{ AgentStatusHealthy, AgentStatusUnhealthy, AgentStatusRunning, AgentStatusUnknown, AgentStatusBlacklisted, AgentStatusShutdown, } } const ( // BatchDeleteImportDataErrorCodeNotFound is a BatchDeleteImportDataErrorCode enum value BatchDeleteImportDataErrorCodeNotFound = "NOT_FOUND" // BatchDeleteImportDataErrorCodeInternalServerError is a BatchDeleteImportDataErrorCode enum value BatchDeleteImportDataErrorCodeInternalServerError = "INTERNAL_SERVER_ERROR" // BatchDeleteImportDataErrorCodeOverLimit is a BatchDeleteImportDataErrorCode enum value BatchDeleteImportDataErrorCodeOverLimit = "OVER_LIMIT" ) // BatchDeleteImportDataErrorCode_Values returns all elements of the BatchDeleteImportDataErrorCode enum func BatchDeleteImportDataErrorCode_Values() []string { return []string{ BatchDeleteImportDataErrorCodeNotFound, BatchDeleteImportDataErrorCodeInternalServerError, BatchDeleteImportDataErrorCodeOverLimit, } } const ( // ConfigurationItemTypeServer is a ConfigurationItemType enum value ConfigurationItemTypeServer = "SERVER" // ConfigurationItemTypeProcess is a ConfigurationItemType enum value ConfigurationItemTypeProcess = "PROCESS" // ConfigurationItemTypeConnection is a ConfigurationItemType enum value ConfigurationItemTypeConnection = "CONNECTION" // ConfigurationItemTypeApplication is a ConfigurationItemType enum value ConfigurationItemTypeApplication = "APPLICATION" ) // ConfigurationItemType_Values returns all elements of the ConfigurationItemType enum func ConfigurationItemType_Values() []string { return []string{ ConfigurationItemTypeServer, ConfigurationItemTypeProcess, ConfigurationItemTypeConnection, ConfigurationItemTypeApplication, } } const ( // ContinuousExportStatusStartInProgress is a ContinuousExportStatus enum value ContinuousExportStatusStartInProgress = "START_IN_PROGRESS" // ContinuousExportStatusStartFailed is a ContinuousExportStatus enum value ContinuousExportStatusStartFailed = "START_FAILED" // ContinuousExportStatusActive is a ContinuousExportStatus enum value ContinuousExportStatusActive = "ACTIVE" // ContinuousExportStatusError is a ContinuousExportStatus enum value ContinuousExportStatusError = "ERROR" // ContinuousExportStatusStopInProgress is a ContinuousExportStatus enum value ContinuousExportStatusStopInProgress = "STOP_IN_PROGRESS" // ContinuousExportStatusStopFailed is a ContinuousExportStatus enum value ContinuousExportStatusStopFailed = "STOP_FAILED" // ContinuousExportStatusInactive is a ContinuousExportStatus enum value ContinuousExportStatusInactive = "INACTIVE" ) // ContinuousExportStatus_Values returns all elements of the ContinuousExportStatus enum func ContinuousExportStatus_Values() []string { return []string{ ContinuousExportStatusStartInProgress, ContinuousExportStatusStartFailed, ContinuousExportStatusActive, ContinuousExportStatusError, ContinuousExportStatusStopInProgress, ContinuousExportStatusStopFailed, ContinuousExportStatusInactive, } } const ( // DataSourceAgent is a DataSource enum value DataSourceAgent = "AGENT" ) // DataSource_Values returns all elements of the DataSource enum func DataSource_Values() []string { return []string{ DataSourceAgent, } } const ( // ExportDataFormatCsv is a ExportDataFormat enum value ExportDataFormatCsv = "CSV" // ExportDataFormatGraphml is a ExportDataFormat enum value ExportDataFormatGraphml = "GRAPHML" ) // ExportDataFormat_Values returns all elements of the ExportDataFormat enum func ExportDataFormat_Values() []string { return []string{ ExportDataFormatCsv, ExportDataFormatGraphml, } } const ( // ExportStatusFailed is a ExportStatus enum value ExportStatusFailed = "FAILED" // ExportStatusSucceeded is a ExportStatus enum value ExportStatusSucceeded = "SUCCEEDED" // ExportStatusInProgress is a ExportStatus enum value ExportStatusInProgress = "IN_PROGRESS" ) // ExportStatus_Values returns all elements of the ExportStatus enum func ExportStatus_Values() []string { return []string{ ExportStatusFailed, ExportStatusSucceeded, ExportStatusInProgress, } } const ( // ImportStatusImportInProgress is a ImportStatus enum value ImportStatusImportInProgress = "IMPORT_IN_PROGRESS" // ImportStatusImportComplete is a ImportStatus enum value ImportStatusImportComplete = "IMPORT_COMPLETE" // ImportStatusImportCompleteWithErrors is a ImportStatus enum value ImportStatusImportCompleteWithErrors = "IMPORT_COMPLETE_WITH_ERRORS" // ImportStatusImportFailed is a ImportStatus enum value ImportStatusImportFailed = "IMPORT_FAILED" // ImportStatusImportFailedServerLimitExceeded is a ImportStatus enum value ImportStatusImportFailedServerLimitExceeded = "IMPORT_FAILED_SERVER_LIMIT_EXCEEDED" // ImportStatusImportFailedRecordLimitExceeded is a ImportStatus enum value ImportStatusImportFailedRecordLimitExceeded = "IMPORT_FAILED_RECORD_LIMIT_EXCEEDED" // ImportStatusDeleteInProgress is a ImportStatus enum value ImportStatusDeleteInProgress = "DELETE_IN_PROGRESS" // ImportStatusDeleteComplete is a ImportStatus enum value ImportStatusDeleteComplete = "DELETE_COMPLETE" // ImportStatusDeleteFailed is a ImportStatus enum value ImportStatusDeleteFailed = "DELETE_FAILED" // ImportStatusDeleteFailedLimitExceeded is a ImportStatus enum value ImportStatusDeleteFailedLimitExceeded = "DELETE_FAILED_LIMIT_EXCEEDED" // ImportStatusInternalError is a ImportStatus enum value ImportStatusInternalError = "INTERNAL_ERROR" ) // ImportStatus_Values returns all elements of the ImportStatus enum func ImportStatus_Values() []string { return []string{ ImportStatusImportInProgress, ImportStatusImportComplete, ImportStatusImportCompleteWithErrors, ImportStatusImportFailed, ImportStatusImportFailedServerLimitExceeded, ImportStatusImportFailedRecordLimitExceeded, ImportStatusDeleteInProgress, ImportStatusDeleteComplete, ImportStatusDeleteFailed, ImportStatusDeleteFailedLimitExceeded, ImportStatusInternalError, } } const ( // ImportTaskFilterNameImportTaskId is a ImportTaskFilterName enum value ImportTaskFilterNameImportTaskId = "IMPORT_TASK_ID" // ImportTaskFilterNameStatus is a ImportTaskFilterName enum value ImportTaskFilterNameStatus = "STATUS" // ImportTaskFilterNameName is a ImportTaskFilterName enum value ImportTaskFilterNameName = "NAME" ) // ImportTaskFilterName_Values returns all elements of the ImportTaskFilterName enum func ImportTaskFilterName_Values() []string { return []string{ ImportTaskFilterNameImportTaskId, ImportTaskFilterNameStatus, ImportTaskFilterNameName, } } const ( // OrderStringAsc is a OrderString enum value OrderStringAsc = "ASC" // OrderStringDesc is a OrderString enum value OrderStringDesc = "DESC" ) // OrderString_Values returns all elements of the OrderString enum func OrderString_Values() []string { return []string{ OrderStringAsc, OrderStringDesc, } }
6,776
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package applicationdiscoveryservice provides the client and types for making API // requests to AWS Application Discovery Service. // // AWS Application Discovery Service helps you plan application migration projects. // It automatically identifies servers, virtual machines (VMs), and network // dependencies in your on-premises data centers. For more information, see // the AWS Application Discovery Service FAQ (http://aws.amazon.com/application-discovery/faqs/). // Application Discovery Service offers three ways of performing discovery and // collecting data about your on-premises servers: // // * Agentless discovery is recommended for environments that use VMware // vCenter Server. This mode doesn't require you to install an agent on each // host. It does not work in non-VMware environments. Agentless discovery // gathers server information regardless of the operating systems, which // minimizes the time required for initial on-premises infrastructure assessment. // Agentless discovery doesn't collect information about network dependencies, // only agent-based discovery collects that information. // // * Agent-based discovery collects a richer set of data than agentless discovery // by using the AWS Application Discovery Agent, which you install on one // or more hosts in your data center. The agent captures infrastructure and // application information, including an inventory of running processes, // system performance information, resource utilization, and network dependencies. // The information collected by agents is secured at rest and in transit // to the Application Discovery Service database in the cloud. // // * AWS Partner Network (APN) solutions integrate with Application Discovery // Service, enabling you to import details of your on-premises environment // directly into Migration Hub without using the discovery connector or discovery // agent. Third-party application discovery tools can query AWS Application // Discovery Service, and they can write to the Application Discovery Service // database using the public API. In this way, you can import data into Migration // Hub and view it, so that you can associate applications with servers and // track migrations. // // Recommendations // // We recommend that you use agent-based discovery for non-VMware environments, // and whenever you want to collect information about network dependencies. // You can run agent-based and agentless discovery simultaneously. Use agentless // discovery to complete the initial infrastructure assessment quickly, and // then install agents on select hosts to collect additional information. // // Working With This Guide // // This API reference provides descriptions, syntax, and usage examples for // each of the actions and data types for Application Discovery Service. The // topic for each action shows the API request parameters and the response. // Alternatively, you can use one of the AWS SDKs to access an API that is tailored // to the programming language or platform that you're using. For more information, // see AWS SDKs (http://aws.amazon.com/tools/#SDKs). // // * Remember that you must set your Migration Hub home region before you // call any of these APIs. // // * You must make API calls for write actions (create, notify, associate, // disassociate, import, or put) while in your home region, or a HomeRegionNotSetException // error is returned. // // * API calls for read actions (list, describe, stop, and delete) are permitted // outside of your home region. // // * Although it is unlikely, the Migration Hub home region could change. // If you call APIs outside the home region, an InvalidInputException is // returned. // // * You must call GetHomeRegion to obtain the latest Migration Hub home // region. // // This guide is intended for use with the AWS Application Discovery Service // User Guide (http://docs.aws.amazon.com/application-discovery/latest/userguide/). // // All data is handled according to the AWS Privacy Policy (http://aws.amazon.com/privacy/). // You can operate Application Discovery Service offline to inspect collected // data before it is shared with the service. // // See https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01 for more information on this service. // // See applicationdiscoveryservice package documentation for more information. // https://docs.aws.amazon.com/sdk-for-go/api/service/applicationdiscoveryservice/ // // Using the Client // // To contact AWS Application Discovery Service 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 Application Discovery Service client ApplicationDiscoveryService for more // information on creating client for this service. // https://docs.aws.amazon.com/sdk-for-go/api/service/applicationdiscoveryservice/#New package applicationdiscoveryservice
100
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package applicationdiscoveryservice import ( "github.com/aws/aws-sdk-go/private/protocol" ) const ( // ErrCodeAuthorizationErrorException for service response error code // "AuthorizationErrorException". // // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. ErrCodeAuthorizationErrorException = "AuthorizationErrorException" // ErrCodeConflictErrorException for service response error code // "ConflictErrorException". ErrCodeConflictErrorException = "ConflictErrorException" // ErrCodeHomeRegionNotSetException for service response error code // "HomeRegionNotSetException". // // The home region is not set. Set the home region to continue. ErrCodeHomeRegionNotSetException = "HomeRegionNotSetException" // ErrCodeInvalidParameterException for service response error code // "InvalidParameterException". // // One or more parameters are not valid. Verify the parameters and try again. ErrCodeInvalidParameterException = "InvalidParameterException" // ErrCodeInvalidParameterValueException for service response error code // "InvalidParameterValueException". // // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. ErrCodeInvalidParameterValueException = "InvalidParameterValueException" // ErrCodeOperationNotPermittedException for service response error code // "OperationNotPermittedException". // // This operation is not permitted. ErrCodeOperationNotPermittedException = "OperationNotPermittedException" // ErrCodeResourceInUseException for service response error code // "ResourceInUseException". // // This issue occurs when the same clientRequestToken is used with the StartImportTask // action, but with different parameters. For example, you use the same request // token but have two different import URLs, you can encounter this issue. If // the import tasks are meant to be different, use a different clientRequestToken, // and try again. ErrCodeResourceInUseException = "ResourceInUseException" // ErrCodeResourceNotFoundException for service response error code // "ResourceNotFoundException". // // The specified configuration ID was not located. Verify the configuration // ID and try again. ErrCodeResourceNotFoundException = "ResourceNotFoundException" // ErrCodeServerInternalErrorException for service response error code // "ServerInternalErrorException". // // The server experienced an internal error. Try again. ErrCodeServerInternalErrorException = "ServerInternalErrorException" ) var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "AuthorizationErrorException": newErrorAuthorizationErrorException, "ConflictErrorException": newErrorConflictErrorException, "HomeRegionNotSetException": newErrorHomeRegionNotSetException, "InvalidParameterException": newErrorInvalidParameterException, "InvalidParameterValueException": newErrorInvalidParameterValueException, "OperationNotPermittedException": newErrorOperationNotPermittedException, "ResourceInUseException": newErrorResourceInUseException, "ResourceNotFoundException": newErrorResourceNotFoundException, "ServerInternalErrorException": newErrorServerInternalErrorException, }
82
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // +build go1.15,integration package applicationdiscoveryservice_test import ( "context" "testing" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/awstesting/integration" "github.com/aws/aws-sdk-go/service/applicationdiscoveryservice" ) var _ aws.Config var _ awserr.Error var _ request.Request func TestInteg_00_DescribeAgents(t *testing.T) { ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) defer cancelFn() sess := integration.SessionWithDefaultRegion("us-west-2") svc := applicationdiscoveryservice.New(sess) params := &applicationdiscoveryservice.DescribeAgentsInput{} _, err := svc.DescribeAgentsWithContext(ctx, params, func(r *request.Request) { r.Handlers.Validate.RemoveByName("core.ValidateParametersHandler") }) if err != nil { t.Errorf("expect no error, got %v", err) } }
37
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package applicationdiscoveryservice 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" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) // ApplicationDiscoveryService provides the API operation methods for making requests to // AWS Application Discovery Service. See this package's package overview docs // for details on the service. // // ApplicationDiscoveryService methods are safe to use concurrently. It is not safe to // modify mutate any of the struct's properties though. type ApplicationDiscoveryService 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 = "discovery" // Name of service. EndpointsID = ServiceName // ID to lookup a service endpoint with. ServiceID = "Application Discovery Service" // ServiceID is a unique identifier of a specific service. ) // New creates a new instance of the ApplicationDiscoveryService 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: // mySession := session.Must(session.NewSession()) // // // Create a ApplicationDiscoveryService client from just a session. // svc := applicationdiscoveryservice.New(mySession) // // // Create a ApplicationDiscoveryService client with additional configuration // svc := applicationdiscoveryservice.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *ApplicationDiscoveryService { c := p.ClientConfig(EndpointsID, cfgs...) return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *ApplicationDiscoveryService { svc := &ApplicationDiscoveryService{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, ServiceID: ServiceID, SigningName: signingName, SigningRegion: signingRegion, PartitionID: partitionID, Endpoint: endpoint, APIVersion: "2015-11-01", JSONVersion: "1.1", TargetPrefix: "AWSPoseidonService_V2015_11_01", }, handlers, ), } // Handlers svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) svc.Handlers.UnmarshalError.PushBackNamed( protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), ) // Run custom client initialization if present if initClient != nil { initClient(svc.Client) } return svc } // newRequest creates a new request for a ApplicationDiscoveryService operation and runs any // custom request initialization. func (c *ApplicationDiscoveryService) 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 }
104
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package applicationdiscoveryserviceiface provides an interface to enable mocking the AWS Application Discovery Service 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 applicationdiscoveryserviceiface import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/service/applicationdiscoveryservice" ) // ApplicationDiscoveryServiceAPI provides an interface to enable mocking the // applicationdiscoveryservice.ApplicationDiscoveryService 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 Application Discovery Service. // func myFunc(svc applicationdiscoveryserviceiface.ApplicationDiscoveryServiceAPI) bool { // // Make svc.AssociateConfigurationItemsToApplication request // } // // func main() { // sess := session.New() // svc := applicationdiscoveryservice.New(sess) // // myFunc(svc) // } // // In your _test.go file: // // // Define a mock struct to be used in your unit tests of myFunc. // type mockApplicationDiscoveryServiceClient struct { // applicationdiscoveryserviceiface.ApplicationDiscoveryServiceAPI // } // func (m *mockApplicationDiscoveryServiceClient) AssociateConfigurationItemsToApplication(input *applicationdiscoveryservice.AssociateConfigurationItemsToApplicationInput) (*applicationdiscoveryservice.AssociateConfigurationItemsToApplicationOutput, error) { // // mock response/functionality // } // // func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockApplicationDiscoveryServiceClient{} // // 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 ApplicationDiscoveryServiceAPI interface { AssociateConfigurationItemsToApplication(*applicationdiscoveryservice.AssociateConfigurationItemsToApplicationInput) (*applicationdiscoveryservice.AssociateConfigurationItemsToApplicationOutput, error) AssociateConfigurationItemsToApplicationWithContext(aws.Context, *applicationdiscoveryservice.AssociateConfigurationItemsToApplicationInput, ...request.Option) (*applicationdiscoveryservice.AssociateConfigurationItemsToApplicationOutput, error) AssociateConfigurationItemsToApplicationRequest(*applicationdiscoveryservice.AssociateConfigurationItemsToApplicationInput) (*request.Request, *applicationdiscoveryservice.AssociateConfigurationItemsToApplicationOutput) BatchDeleteImportData(*applicationdiscoveryservice.BatchDeleteImportDataInput) (*applicationdiscoveryservice.BatchDeleteImportDataOutput, error) BatchDeleteImportDataWithContext(aws.Context, *applicationdiscoveryservice.BatchDeleteImportDataInput, ...request.Option) (*applicationdiscoveryservice.BatchDeleteImportDataOutput, error) BatchDeleteImportDataRequest(*applicationdiscoveryservice.BatchDeleteImportDataInput) (*request.Request, *applicationdiscoveryservice.BatchDeleteImportDataOutput) CreateApplication(*applicationdiscoveryservice.CreateApplicationInput) (*applicationdiscoveryservice.CreateApplicationOutput, error) CreateApplicationWithContext(aws.Context, *applicationdiscoveryservice.CreateApplicationInput, ...request.Option) (*applicationdiscoveryservice.CreateApplicationOutput, error) CreateApplicationRequest(*applicationdiscoveryservice.CreateApplicationInput) (*request.Request, *applicationdiscoveryservice.CreateApplicationOutput) CreateTags(*applicationdiscoveryservice.CreateTagsInput) (*applicationdiscoveryservice.CreateTagsOutput, error) CreateTagsWithContext(aws.Context, *applicationdiscoveryservice.CreateTagsInput, ...request.Option) (*applicationdiscoveryservice.CreateTagsOutput, error) CreateTagsRequest(*applicationdiscoveryservice.CreateTagsInput) (*request.Request, *applicationdiscoveryservice.CreateTagsOutput) DeleteApplications(*applicationdiscoveryservice.DeleteApplicationsInput) (*applicationdiscoveryservice.DeleteApplicationsOutput, error) DeleteApplicationsWithContext(aws.Context, *applicationdiscoveryservice.DeleteApplicationsInput, ...request.Option) (*applicationdiscoveryservice.DeleteApplicationsOutput, error) DeleteApplicationsRequest(*applicationdiscoveryservice.DeleteApplicationsInput) (*request.Request, *applicationdiscoveryservice.DeleteApplicationsOutput) DeleteTags(*applicationdiscoveryservice.DeleteTagsInput) (*applicationdiscoveryservice.DeleteTagsOutput, error) DeleteTagsWithContext(aws.Context, *applicationdiscoveryservice.DeleteTagsInput, ...request.Option) (*applicationdiscoveryservice.DeleteTagsOutput, error) DeleteTagsRequest(*applicationdiscoveryservice.DeleteTagsInput) (*request.Request, *applicationdiscoveryservice.DeleteTagsOutput) DescribeAgents(*applicationdiscoveryservice.DescribeAgentsInput) (*applicationdiscoveryservice.DescribeAgentsOutput, error) DescribeAgentsWithContext(aws.Context, *applicationdiscoveryservice.DescribeAgentsInput, ...request.Option) (*applicationdiscoveryservice.DescribeAgentsOutput, error) DescribeAgentsRequest(*applicationdiscoveryservice.DescribeAgentsInput) (*request.Request, *applicationdiscoveryservice.DescribeAgentsOutput) DescribeConfigurations(*applicationdiscoveryservice.DescribeConfigurationsInput) (*applicationdiscoveryservice.DescribeConfigurationsOutput, error) DescribeConfigurationsWithContext(aws.Context, *applicationdiscoveryservice.DescribeConfigurationsInput, ...request.Option) (*applicationdiscoveryservice.DescribeConfigurationsOutput, error) DescribeConfigurationsRequest(*applicationdiscoveryservice.DescribeConfigurationsInput) (*request.Request, *applicationdiscoveryservice.DescribeConfigurationsOutput) DescribeContinuousExports(*applicationdiscoveryservice.DescribeContinuousExportsInput) (*applicationdiscoveryservice.DescribeContinuousExportsOutput, error) DescribeContinuousExportsWithContext(aws.Context, *applicationdiscoveryservice.DescribeContinuousExportsInput, ...request.Option) (*applicationdiscoveryservice.DescribeContinuousExportsOutput, error) DescribeContinuousExportsRequest(*applicationdiscoveryservice.DescribeContinuousExportsInput) (*request.Request, *applicationdiscoveryservice.DescribeContinuousExportsOutput) DescribeContinuousExportsPages(*applicationdiscoveryservice.DescribeContinuousExportsInput, func(*applicationdiscoveryservice.DescribeContinuousExportsOutput, bool) bool) error DescribeContinuousExportsPagesWithContext(aws.Context, *applicationdiscoveryservice.DescribeContinuousExportsInput, func(*applicationdiscoveryservice.DescribeContinuousExportsOutput, bool) bool, ...request.Option) error DescribeExportConfigurations(*applicationdiscoveryservice.DescribeExportConfigurationsInput) (*applicationdiscoveryservice.DescribeExportConfigurationsOutput, error) DescribeExportConfigurationsWithContext(aws.Context, *applicationdiscoveryservice.DescribeExportConfigurationsInput, ...request.Option) (*applicationdiscoveryservice.DescribeExportConfigurationsOutput, error) DescribeExportConfigurationsRequest(*applicationdiscoveryservice.DescribeExportConfigurationsInput) (*request.Request, *applicationdiscoveryservice.DescribeExportConfigurationsOutput) DescribeExportTasks(*applicationdiscoveryservice.DescribeExportTasksInput) (*applicationdiscoveryservice.DescribeExportTasksOutput, error) DescribeExportTasksWithContext(aws.Context, *applicationdiscoveryservice.DescribeExportTasksInput, ...request.Option) (*applicationdiscoveryservice.DescribeExportTasksOutput, error) DescribeExportTasksRequest(*applicationdiscoveryservice.DescribeExportTasksInput) (*request.Request, *applicationdiscoveryservice.DescribeExportTasksOutput) DescribeImportTasks(*applicationdiscoveryservice.DescribeImportTasksInput) (*applicationdiscoveryservice.DescribeImportTasksOutput, error) DescribeImportTasksWithContext(aws.Context, *applicationdiscoveryservice.DescribeImportTasksInput, ...request.Option) (*applicationdiscoveryservice.DescribeImportTasksOutput, error) DescribeImportTasksRequest(*applicationdiscoveryservice.DescribeImportTasksInput) (*request.Request, *applicationdiscoveryservice.DescribeImportTasksOutput) DescribeImportTasksPages(*applicationdiscoveryservice.DescribeImportTasksInput, func(*applicationdiscoveryservice.DescribeImportTasksOutput, bool) bool) error DescribeImportTasksPagesWithContext(aws.Context, *applicationdiscoveryservice.DescribeImportTasksInput, func(*applicationdiscoveryservice.DescribeImportTasksOutput, bool) bool, ...request.Option) error DescribeTags(*applicationdiscoveryservice.DescribeTagsInput) (*applicationdiscoveryservice.DescribeTagsOutput, error) DescribeTagsWithContext(aws.Context, *applicationdiscoveryservice.DescribeTagsInput, ...request.Option) (*applicationdiscoveryservice.DescribeTagsOutput, error) DescribeTagsRequest(*applicationdiscoveryservice.DescribeTagsInput) (*request.Request, *applicationdiscoveryservice.DescribeTagsOutput) DisassociateConfigurationItemsFromApplication(*applicationdiscoveryservice.DisassociateConfigurationItemsFromApplicationInput) (*applicationdiscoveryservice.DisassociateConfigurationItemsFromApplicationOutput, error) DisassociateConfigurationItemsFromApplicationWithContext(aws.Context, *applicationdiscoveryservice.DisassociateConfigurationItemsFromApplicationInput, ...request.Option) (*applicationdiscoveryservice.DisassociateConfigurationItemsFromApplicationOutput, error) DisassociateConfigurationItemsFromApplicationRequest(*applicationdiscoveryservice.DisassociateConfigurationItemsFromApplicationInput) (*request.Request, *applicationdiscoveryservice.DisassociateConfigurationItemsFromApplicationOutput) ExportConfigurations(*applicationdiscoveryservice.ExportConfigurationsInput) (*applicationdiscoveryservice.ExportConfigurationsOutput, error) ExportConfigurationsWithContext(aws.Context, *applicationdiscoveryservice.ExportConfigurationsInput, ...request.Option) (*applicationdiscoveryservice.ExportConfigurationsOutput, error) ExportConfigurationsRequest(*applicationdiscoveryservice.ExportConfigurationsInput) (*request.Request, *applicationdiscoveryservice.ExportConfigurationsOutput) GetDiscoverySummary(*applicationdiscoveryservice.GetDiscoverySummaryInput) (*applicationdiscoveryservice.GetDiscoverySummaryOutput, error) GetDiscoverySummaryWithContext(aws.Context, *applicationdiscoveryservice.GetDiscoverySummaryInput, ...request.Option) (*applicationdiscoveryservice.GetDiscoverySummaryOutput, error) GetDiscoverySummaryRequest(*applicationdiscoveryservice.GetDiscoverySummaryInput) (*request.Request, *applicationdiscoveryservice.GetDiscoverySummaryOutput) ListConfigurations(*applicationdiscoveryservice.ListConfigurationsInput) (*applicationdiscoveryservice.ListConfigurationsOutput, error) ListConfigurationsWithContext(aws.Context, *applicationdiscoveryservice.ListConfigurationsInput, ...request.Option) (*applicationdiscoveryservice.ListConfigurationsOutput, error) ListConfigurationsRequest(*applicationdiscoveryservice.ListConfigurationsInput) (*request.Request, *applicationdiscoveryservice.ListConfigurationsOutput) ListServerNeighbors(*applicationdiscoveryservice.ListServerNeighborsInput) (*applicationdiscoveryservice.ListServerNeighborsOutput, error) ListServerNeighborsWithContext(aws.Context, *applicationdiscoveryservice.ListServerNeighborsInput, ...request.Option) (*applicationdiscoveryservice.ListServerNeighborsOutput, error) ListServerNeighborsRequest(*applicationdiscoveryservice.ListServerNeighborsInput) (*request.Request, *applicationdiscoveryservice.ListServerNeighborsOutput) StartContinuousExport(*applicationdiscoveryservice.StartContinuousExportInput) (*applicationdiscoveryservice.StartContinuousExportOutput, error) StartContinuousExportWithContext(aws.Context, *applicationdiscoveryservice.StartContinuousExportInput, ...request.Option) (*applicationdiscoveryservice.StartContinuousExportOutput, error) StartContinuousExportRequest(*applicationdiscoveryservice.StartContinuousExportInput) (*request.Request, *applicationdiscoveryservice.StartContinuousExportOutput) StartDataCollectionByAgentIds(*applicationdiscoveryservice.StartDataCollectionByAgentIdsInput) (*applicationdiscoveryservice.StartDataCollectionByAgentIdsOutput, error) StartDataCollectionByAgentIdsWithContext(aws.Context, *applicationdiscoveryservice.StartDataCollectionByAgentIdsInput, ...request.Option) (*applicationdiscoveryservice.StartDataCollectionByAgentIdsOutput, error) StartDataCollectionByAgentIdsRequest(*applicationdiscoveryservice.StartDataCollectionByAgentIdsInput) (*request.Request, *applicationdiscoveryservice.StartDataCollectionByAgentIdsOutput) StartExportTask(*applicationdiscoveryservice.StartExportTaskInput) (*applicationdiscoveryservice.StartExportTaskOutput, error) StartExportTaskWithContext(aws.Context, *applicationdiscoveryservice.StartExportTaskInput, ...request.Option) (*applicationdiscoveryservice.StartExportTaskOutput, error) StartExportTaskRequest(*applicationdiscoveryservice.StartExportTaskInput) (*request.Request, *applicationdiscoveryservice.StartExportTaskOutput) StartImportTask(*applicationdiscoveryservice.StartImportTaskInput) (*applicationdiscoveryservice.StartImportTaskOutput, error) StartImportTaskWithContext(aws.Context, *applicationdiscoveryservice.StartImportTaskInput, ...request.Option) (*applicationdiscoveryservice.StartImportTaskOutput, error) StartImportTaskRequest(*applicationdiscoveryservice.StartImportTaskInput) (*request.Request, *applicationdiscoveryservice.StartImportTaskOutput) StopContinuousExport(*applicationdiscoveryservice.StopContinuousExportInput) (*applicationdiscoveryservice.StopContinuousExportOutput, error) StopContinuousExportWithContext(aws.Context, *applicationdiscoveryservice.StopContinuousExportInput, ...request.Option) (*applicationdiscoveryservice.StopContinuousExportOutput, error) StopContinuousExportRequest(*applicationdiscoveryservice.StopContinuousExportInput) (*request.Request, *applicationdiscoveryservice.StopContinuousExportOutput) StopDataCollectionByAgentIds(*applicationdiscoveryservice.StopDataCollectionByAgentIdsInput) (*applicationdiscoveryservice.StopDataCollectionByAgentIdsOutput, error) StopDataCollectionByAgentIdsWithContext(aws.Context, *applicationdiscoveryservice.StopDataCollectionByAgentIdsInput, ...request.Option) (*applicationdiscoveryservice.StopDataCollectionByAgentIdsOutput, error) StopDataCollectionByAgentIdsRequest(*applicationdiscoveryservice.StopDataCollectionByAgentIdsInput) (*request.Request, *applicationdiscoveryservice.StopDataCollectionByAgentIdsOutput) UpdateApplication(*applicationdiscoveryservice.UpdateApplicationInput) (*applicationdiscoveryservice.UpdateApplicationOutput, error) UpdateApplicationWithContext(aws.Context, *applicationdiscoveryservice.UpdateApplicationInput, ...request.Option) (*applicationdiscoveryservice.UpdateApplicationOutput, error) UpdateApplicationRequest(*applicationdiscoveryservice.UpdateApplicationInput) (*request.Request, *applicationdiscoveryservice.UpdateApplicationOutput) } var _ ApplicationDiscoveryServiceAPI = (*applicationdiscoveryservice.ApplicationDiscoveryService)(nil)
171
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package applicationinsights provides the client and types for making API // requests to Amazon CloudWatch Application Insights. // // Amazon CloudWatch Application Insights is a service that helps you detect // common problems with your applications. It enables you to pinpoint the source // of issues in your applications (built with technologies such as Microsoft // IIS, .NET, and Microsoft SQL Server), by providing key insights into detected // problems. // // After you onboard your application, CloudWatch Application Insights identifies, // recommends, and sets up metrics and logs. It continuously analyzes and correlates // your metrics and logs for unusual behavior to surface actionable problems // with your application. For example, if your application is slow and unresponsive // and leading to HTTP 500 errors in your Application Load Balancer (ALB), Application // Insights informs you that a memory pressure problem with your SQL Server // database is occurring. It bases this analysis on impactful metrics and log // errors. // // See https://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25 for more information on this service. // // See applicationinsights package documentation for more information. // https://docs.aws.amazon.com/sdk-for-go/api/service/applicationinsights/ // // Using the Client // // To contact Amazon CloudWatch Application Insights 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 Amazon CloudWatch Application Insights client ApplicationInsights for more // information on creating client for this service. // https://docs.aws.amazon.com/sdk-for-go/api/service/applicationinsights/#New package applicationinsights
42
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package applicationinsights import ( "github.com/aws/aws-sdk-go/private/protocol" ) const ( // ErrCodeAccessDeniedException for service response error code // "AccessDeniedException". // // User does not have permissions to perform this action. ErrCodeAccessDeniedException = "AccessDeniedException" // ErrCodeBadRequestException for service response error code // "BadRequestException". // // The request is not understood by the server. ErrCodeBadRequestException = "BadRequestException" // ErrCodeInternalServerException for service response error code // "InternalServerException". // // The server encountered an internal error and is unable to complete the request. ErrCodeInternalServerException = "InternalServerException" // ErrCodeResourceInUseException for service response error code // "ResourceInUseException". // // The resource is already created or in use. ErrCodeResourceInUseException = "ResourceInUseException" // ErrCodeResourceNotFoundException for service response error code // "ResourceNotFoundException". // // The resource does not exist in the customer account. ErrCodeResourceNotFoundException = "ResourceNotFoundException" // ErrCodeTagsAlreadyExistException for service response error code // "TagsAlreadyExistException". // // Tags are already registered for the specified application ARN. ErrCodeTagsAlreadyExistException = "TagsAlreadyExistException" // ErrCodeTooManyTagsException for service response error code // "TooManyTagsException". // // The number of the provided tags is beyond the limit, or the number of total // tags you are trying to attach to the specified resource exceeds the limit. ErrCodeTooManyTagsException = "TooManyTagsException" // ErrCodeValidationException for service response error code // "ValidationException". // // The parameter is not valid. ErrCodeValidationException = "ValidationException" ) var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "AccessDeniedException": newErrorAccessDeniedException, "BadRequestException": newErrorBadRequestException, "InternalServerException": newErrorInternalServerException, "ResourceInUseException": newErrorResourceInUseException, "ResourceNotFoundException": newErrorResourceNotFoundException, "TagsAlreadyExistException": newErrorTagsAlreadyExistException, "TooManyTagsException": newErrorTooManyTagsException, "ValidationException": newErrorValidationException, }
71
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package applicationinsights 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" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) // ApplicationInsights provides the API operation methods for making requests to // Amazon CloudWatch Application Insights. See this package's package overview docs // for details on the service. // // ApplicationInsights methods are safe to use concurrently. It is not safe to // modify mutate any of the struct's properties though. type ApplicationInsights 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 = "Application Insights" // Name of service. EndpointsID = "applicationinsights" // ID to lookup a service endpoint with. ServiceID = "Application Insights" // ServiceID is a unique identifier of a specific service. ) // New creates a new instance of the ApplicationInsights 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: // mySession := session.Must(session.NewSession()) // // // Create a ApplicationInsights client from just a session. // svc := applicationinsights.New(mySession) // // // Create a ApplicationInsights client with additional configuration // svc := applicationinsights.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *ApplicationInsights { c := p.ClientConfig(EndpointsID, cfgs...) if c.SigningNameDerived || len(c.SigningName) == 0 { c.SigningName = "applicationinsights" } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *ApplicationInsights { svc := &ApplicationInsights{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, ServiceID: ServiceID, SigningName: signingName, SigningRegion: signingRegion, PartitionID: partitionID, Endpoint: endpoint, APIVersion: "2018-11-25", JSONVersion: "1.1", TargetPrefix: "EC2WindowsBarleyService", }, handlers, ), } // Handlers svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) svc.Handlers.UnmarshalError.PushBackNamed( protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), ) // Run custom client initialization if present if initClient != nil { initClient(svc.Client) } return svc } // newRequest creates a new request for a ApplicationInsights operation and runs any // custom request initialization. func (c *ApplicationInsights) 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 }
107
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package applicationinsightsiface provides an interface to enable mocking the Amazon CloudWatch Application Insights 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 applicationinsightsiface import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/service/applicationinsights" ) // ApplicationInsightsAPI provides an interface to enable mocking the // applicationinsights.ApplicationInsights 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 // // Amazon CloudWatch Application Insights. // func myFunc(svc applicationinsightsiface.ApplicationInsightsAPI) bool { // // Make svc.CreateApplication request // } // // func main() { // sess := session.New() // svc := applicationinsights.New(sess) // // myFunc(svc) // } // // In your _test.go file: // // // Define a mock struct to be used in your unit tests of myFunc. // type mockApplicationInsightsClient struct { // applicationinsightsiface.ApplicationInsightsAPI // } // func (m *mockApplicationInsightsClient) CreateApplication(input *applicationinsights.CreateApplicationInput) (*applicationinsights.CreateApplicationOutput, error) { // // mock response/functionality // } // // func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockApplicationInsightsClient{} // // 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 ApplicationInsightsAPI interface { CreateApplication(*applicationinsights.CreateApplicationInput) (*applicationinsights.CreateApplicationOutput, error) CreateApplicationWithContext(aws.Context, *applicationinsights.CreateApplicationInput, ...request.Option) (*applicationinsights.CreateApplicationOutput, error) CreateApplicationRequest(*applicationinsights.CreateApplicationInput) (*request.Request, *applicationinsights.CreateApplicationOutput) CreateComponent(*applicationinsights.CreateComponentInput) (*applicationinsights.CreateComponentOutput, error) CreateComponentWithContext(aws.Context, *applicationinsights.CreateComponentInput, ...request.Option) (*applicationinsights.CreateComponentOutput, error) CreateComponentRequest(*applicationinsights.CreateComponentInput) (*request.Request, *applicationinsights.CreateComponentOutput) CreateLogPattern(*applicationinsights.CreateLogPatternInput) (*applicationinsights.CreateLogPatternOutput, error) CreateLogPatternWithContext(aws.Context, *applicationinsights.CreateLogPatternInput, ...request.Option) (*applicationinsights.CreateLogPatternOutput, error) CreateLogPatternRequest(*applicationinsights.CreateLogPatternInput) (*request.Request, *applicationinsights.CreateLogPatternOutput) DeleteApplication(*applicationinsights.DeleteApplicationInput) (*applicationinsights.DeleteApplicationOutput, error) DeleteApplicationWithContext(aws.Context, *applicationinsights.DeleteApplicationInput, ...request.Option) (*applicationinsights.DeleteApplicationOutput, error) DeleteApplicationRequest(*applicationinsights.DeleteApplicationInput) (*request.Request, *applicationinsights.DeleteApplicationOutput) DeleteComponent(*applicationinsights.DeleteComponentInput) (*applicationinsights.DeleteComponentOutput, error) DeleteComponentWithContext(aws.Context, *applicationinsights.DeleteComponentInput, ...request.Option) (*applicationinsights.DeleteComponentOutput, error) DeleteComponentRequest(*applicationinsights.DeleteComponentInput) (*request.Request, *applicationinsights.DeleteComponentOutput) DeleteLogPattern(*applicationinsights.DeleteLogPatternInput) (*applicationinsights.DeleteLogPatternOutput, error) DeleteLogPatternWithContext(aws.Context, *applicationinsights.DeleteLogPatternInput, ...request.Option) (*applicationinsights.DeleteLogPatternOutput, error) DeleteLogPatternRequest(*applicationinsights.DeleteLogPatternInput) (*request.Request, *applicationinsights.DeleteLogPatternOutput) DescribeApplication(*applicationinsights.DescribeApplicationInput) (*applicationinsights.DescribeApplicationOutput, error) DescribeApplicationWithContext(aws.Context, *applicationinsights.DescribeApplicationInput, ...request.Option) (*applicationinsights.DescribeApplicationOutput, error) DescribeApplicationRequest(*applicationinsights.DescribeApplicationInput) (*request.Request, *applicationinsights.DescribeApplicationOutput) DescribeComponent(*applicationinsights.DescribeComponentInput) (*applicationinsights.DescribeComponentOutput, error) DescribeComponentWithContext(aws.Context, *applicationinsights.DescribeComponentInput, ...request.Option) (*applicationinsights.DescribeComponentOutput, error) DescribeComponentRequest(*applicationinsights.DescribeComponentInput) (*request.Request, *applicationinsights.DescribeComponentOutput) DescribeComponentConfiguration(*applicationinsights.DescribeComponentConfigurationInput) (*applicationinsights.DescribeComponentConfigurationOutput, error) DescribeComponentConfigurationWithContext(aws.Context, *applicationinsights.DescribeComponentConfigurationInput, ...request.Option) (*applicationinsights.DescribeComponentConfigurationOutput, error) DescribeComponentConfigurationRequest(*applicationinsights.DescribeComponentConfigurationInput) (*request.Request, *applicationinsights.DescribeComponentConfigurationOutput) DescribeComponentConfigurationRecommendation(*applicationinsights.DescribeComponentConfigurationRecommendationInput) (*applicationinsights.DescribeComponentConfigurationRecommendationOutput, error) DescribeComponentConfigurationRecommendationWithContext(aws.Context, *applicationinsights.DescribeComponentConfigurationRecommendationInput, ...request.Option) (*applicationinsights.DescribeComponentConfigurationRecommendationOutput, error) DescribeComponentConfigurationRecommendationRequest(*applicationinsights.DescribeComponentConfigurationRecommendationInput) (*request.Request, *applicationinsights.DescribeComponentConfigurationRecommendationOutput) DescribeLogPattern(*applicationinsights.DescribeLogPatternInput) (*applicationinsights.DescribeLogPatternOutput, error) DescribeLogPatternWithContext(aws.Context, *applicationinsights.DescribeLogPatternInput, ...request.Option) (*applicationinsights.DescribeLogPatternOutput, error) DescribeLogPatternRequest(*applicationinsights.DescribeLogPatternInput) (*request.Request, *applicationinsights.DescribeLogPatternOutput) DescribeObservation(*applicationinsights.DescribeObservationInput) (*applicationinsights.DescribeObservationOutput, error) DescribeObservationWithContext(aws.Context, *applicationinsights.DescribeObservationInput, ...request.Option) (*applicationinsights.DescribeObservationOutput, error) DescribeObservationRequest(*applicationinsights.DescribeObservationInput) (*request.Request, *applicationinsights.DescribeObservationOutput) DescribeProblem(*applicationinsights.DescribeProblemInput) (*applicationinsights.DescribeProblemOutput, error) DescribeProblemWithContext(aws.Context, *applicationinsights.DescribeProblemInput, ...request.Option) (*applicationinsights.DescribeProblemOutput, error) DescribeProblemRequest(*applicationinsights.DescribeProblemInput) (*request.Request, *applicationinsights.DescribeProblemOutput) DescribeProblemObservations(*applicationinsights.DescribeProblemObservationsInput) (*applicationinsights.DescribeProblemObservationsOutput, error) DescribeProblemObservationsWithContext(aws.Context, *applicationinsights.DescribeProblemObservationsInput, ...request.Option) (*applicationinsights.DescribeProblemObservationsOutput, error) DescribeProblemObservationsRequest(*applicationinsights.DescribeProblemObservationsInput) (*request.Request, *applicationinsights.DescribeProblemObservationsOutput) ListApplications(*applicationinsights.ListApplicationsInput) (*applicationinsights.ListApplicationsOutput, error) ListApplicationsWithContext(aws.Context, *applicationinsights.ListApplicationsInput, ...request.Option) (*applicationinsights.ListApplicationsOutput, error) ListApplicationsRequest(*applicationinsights.ListApplicationsInput) (*request.Request, *applicationinsights.ListApplicationsOutput) ListApplicationsPages(*applicationinsights.ListApplicationsInput, func(*applicationinsights.ListApplicationsOutput, bool) bool) error ListApplicationsPagesWithContext(aws.Context, *applicationinsights.ListApplicationsInput, func(*applicationinsights.ListApplicationsOutput, bool) bool, ...request.Option) error ListComponents(*applicationinsights.ListComponentsInput) (*applicationinsights.ListComponentsOutput, error) ListComponentsWithContext(aws.Context, *applicationinsights.ListComponentsInput, ...request.Option) (*applicationinsights.ListComponentsOutput, error) ListComponentsRequest(*applicationinsights.ListComponentsInput) (*request.Request, *applicationinsights.ListComponentsOutput) ListComponentsPages(*applicationinsights.ListComponentsInput, func(*applicationinsights.ListComponentsOutput, bool) bool) error ListComponentsPagesWithContext(aws.Context, *applicationinsights.ListComponentsInput, func(*applicationinsights.ListComponentsOutput, bool) bool, ...request.Option) error ListConfigurationHistory(*applicationinsights.ListConfigurationHistoryInput) (*applicationinsights.ListConfigurationHistoryOutput, error) ListConfigurationHistoryWithContext(aws.Context, *applicationinsights.ListConfigurationHistoryInput, ...request.Option) (*applicationinsights.ListConfigurationHistoryOutput, error) ListConfigurationHistoryRequest(*applicationinsights.ListConfigurationHistoryInput) (*request.Request, *applicationinsights.ListConfigurationHistoryOutput) ListConfigurationHistoryPages(*applicationinsights.ListConfigurationHistoryInput, func(*applicationinsights.ListConfigurationHistoryOutput, bool) bool) error ListConfigurationHistoryPagesWithContext(aws.Context, *applicationinsights.ListConfigurationHistoryInput, func(*applicationinsights.ListConfigurationHistoryOutput, bool) bool, ...request.Option) error ListLogPatternSets(*applicationinsights.ListLogPatternSetsInput) (*applicationinsights.ListLogPatternSetsOutput, error) ListLogPatternSetsWithContext(aws.Context, *applicationinsights.ListLogPatternSetsInput, ...request.Option) (*applicationinsights.ListLogPatternSetsOutput, error) ListLogPatternSetsRequest(*applicationinsights.ListLogPatternSetsInput) (*request.Request, *applicationinsights.ListLogPatternSetsOutput) ListLogPatternSetsPages(*applicationinsights.ListLogPatternSetsInput, func(*applicationinsights.ListLogPatternSetsOutput, bool) bool) error ListLogPatternSetsPagesWithContext(aws.Context, *applicationinsights.ListLogPatternSetsInput, func(*applicationinsights.ListLogPatternSetsOutput, bool) bool, ...request.Option) error ListLogPatterns(*applicationinsights.ListLogPatternsInput) (*applicationinsights.ListLogPatternsOutput, error) ListLogPatternsWithContext(aws.Context, *applicationinsights.ListLogPatternsInput, ...request.Option) (*applicationinsights.ListLogPatternsOutput, error) ListLogPatternsRequest(*applicationinsights.ListLogPatternsInput) (*request.Request, *applicationinsights.ListLogPatternsOutput) ListLogPatternsPages(*applicationinsights.ListLogPatternsInput, func(*applicationinsights.ListLogPatternsOutput, bool) bool) error ListLogPatternsPagesWithContext(aws.Context, *applicationinsights.ListLogPatternsInput, func(*applicationinsights.ListLogPatternsOutput, bool) bool, ...request.Option) error ListProblems(*applicationinsights.ListProblemsInput) (*applicationinsights.ListProblemsOutput, error) ListProblemsWithContext(aws.Context, *applicationinsights.ListProblemsInput, ...request.Option) (*applicationinsights.ListProblemsOutput, error) ListProblemsRequest(*applicationinsights.ListProblemsInput) (*request.Request, *applicationinsights.ListProblemsOutput) ListProblemsPages(*applicationinsights.ListProblemsInput, func(*applicationinsights.ListProblemsOutput, bool) bool) error ListProblemsPagesWithContext(aws.Context, *applicationinsights.ListProblemsInput, func(*applicationinsights.ListProblemsOutput, bool) bool, ...request.Option) error ListTagsForResource(*applicationinsights.ListTagsForResourceInput) (*applicationinsights.ListTagsForResourceOutput, error) ListTagsForResourceWithContext(aws.Context, *applicationinsights.ListTagsForResourceInput, ...request.Option) (*applicationinsights.ListTagsForResourceOutput, error) ListTagsForResourceRequest(*applicationinsights.ListTagsForResourceInput) (*request.Request, *applicationinsights.ListTagsForResourceOutput) TagResource(*applicationinsights.TagResourceInput) (*applicationinsights.TagResourceOutput, error) TagResourceWithContext(aws.Context, *applicationinsights.TagResourceInput, ...request.Option) (*applicationinsights.TagResourceOutput, error) TagResourceRequest(*applicationinsights.TagResourceInput) (*request.Request, *applicationinsights.TagResourceOutput) UntagResource(*applicationinsights.UntagResourceInput) (*applicationinsights.UntagResourceOutput, error) UntagResourceWithContext(aws.Context, *applicationinsights.UntagResourceInput, ...request.Option) (*applicationinsights.UntagResourceOutput, error) UntagResourceRequest(*applicationinsights.UntagResourceInput) (*request.Request, *applicationinsights.UntagResourceOutput) UpdateApplication(*applicationinsights.UpdateApplicationInput) (*applicationinsights.UpdateApplicationOutput, error) UpdateApplicationWithContext(aws.Context, *applicationinsights.UpdateApplicationInput, ...request.Option) (*applicationinsights.UpdateApplicationOutput, error) UpdateApplicationRequest(*applicationinsights.UpdateApplicationInput) (*request.Request, *applicationinsights.UpdateApplicationOutput) UpdateComponent(*applicationinsights.UpdateComponentInput) (*applicationinsights.UpdateComponentOutput, error) UpdateComponentWithContext(aws.Context, *applicationinsights.UpdateComponentInput, ...request.Option) (*applicationinsights.UpdateComponentOutput, error) UpdateComponentRequest(*applicationinsights.UpdateComponentInput) (*request.Request, *applicationinsights.UpdateComponentOutput) UpdateComponentConfiguration(*applicationinsights.UpdateComponentConfigurationInput) (*applicationinsights.UpdateComponentConfigurationOutput, error) UpdateComponentConfigurationWithContext(aws.Context, *applicationinsights.UpdateComponentConfigurationInput, ...request.Option) (*applicationinsights.UpdateComponentConfigurationOutput, error) UpdateComponentConfigurationRequest(*applicationinsights.UpdateComponentConfigurationInput) (*request.Request, *applicationinsights.UpdateComponentConfigurationOutput) UpdateLogPattern(*applicationinsights.UpdateLogPatternInput) (*applicationinsights.UpdateLogPatternOutput, error) UpdateLogPatternWithContext(aws.Context, *applicationinsights.UpdateLogPatternInput, ...request.Option) (*applicationinsights.UpdateLogPatternOutput, error) UpdateLogPatternRequest(*applicationinsights.UpdateLogPatternInput) (*request.Request, *applicationinsights.UpdateLogPatternOutput) } var _ ApplicationInsightsAPI = (*applicationinsights.ApplicationInsights)(nil)
191
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package appmesh provides the client and types for making API // requests to AWS App Mesh. // // App Mesh is a service mesh based on the Envoy proxy that makes it easy to // monitor and control microservices. App Mesh standardizes how your microservices // communicate, giving you end-to-end visibility and helping to ensure high // availability for your applications. // // App Mesh gives you consistent visibility and network traffic controls for // every microservice in an application. You can use App Mesh with Amazon Web // Services Fargate, Amazon ECS, Amazon EKS, Kubernetes on Amazon Web Services, // and Amazon EC2. // // App Mesh supports microservice applications that use service discovery naming // for their components. For more information about service discovery on Amazon // ECS, see Service Discovery (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html) // in the Amazon Elastic Container Service Developer Guide. Kubernetes kube-dns // and coredns are supported. For more information, see DNS for Services and // Pods (https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/) // in the Kubernetes documentation. // // See https://docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25 for more information on this service. // // See appmesh package documentation for more information. // https://docs.aws.amazon.com/sdk-for-go/api/service/appmesh/ // // Using the Client // // To contact AWS App Mesh 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 App Mesh client AppMesh for more // information on creating client for this service. // https://docs.aws.amazon.com/sdk-for-go/api/service/appmesh/#New package appmesh
45
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package appmesh import ( "github.com/aws/aws-sdk-go/private/protocol" ) const ( // ErrCodeBadRequestException for service response error code // "BadRequestException". // // The request syntax was malformed. Check your request syntax and try again. ErrCodeBadRequestException = "BadRequestException" // ErrCodeConflictException for service response error code // "ConflictException". // // The request contains a client token that was used for a previous update resource // call with different specifications. Try the request again with a new client // token. ErrCodeConflictException = "ConflictException" // ErrCodeForbiddenException for service response error code // "ForbiddenException". // // You don't have permissions to perform this action. ErrCodeForbiddenException = "ForbiddenException" // ErrCodeInternalServerErrorException for service response error code // "InternalServerErrorException". // // The request processing has failed because of an unknown error, exception, // or failure. ErrCodeInternalServerErrorException = "InternalServerErrorException" // ErrCodeLimitExceededException for service response error code // "LimitExceededException". // // You have exceeded a service limit for your account. For more information, // see Service Limits (https://docs.aws.amazon.com/app-mesh/latest/userguide/service-quotas.html) // in the AWS App Mesh User Guide. ErrCodeLimitExceededException = "LimitExceededException" // ErrCodeNotFoundException for service response error code // "NotFoundException". // // The specified resource doesn't exist. Check your request syntax and try again. ErrCodeNotFoundException = "NotFoundException" // ErrCodeResourceInUseException for service response error code // "ResourceInUseException". // // You can't delete the specified resource because it's in use or required by // another resource. ErrCodeResourceInUseException = "ResourceInUseException" // ErrCodeServiceUnavailableException for service response error code // "ServiceUnavailableException". // // The request has failed due to a temporary failure of the service. ErrCodeServiceUnavailableException = "ServiceUnavailableException" // ErrCodeTooManyRequestsException for service response error code // "TooManyRequestsException". // // The maximum request rate permitted by the App Mesh APIs has been exceeded // for your account. For best results, use an increasing or variable sleep interval // between requests. ErrCodeTooManyRequestsException = "TooManyRequestsException" // ErrCodeTooManyTagsException for service response error code // "TooManyTagsException". // // The request exceeds the maximum allowed number of tags allowed per resource. // The current limit is 50 user tags per resource. You must reduce the number // of tags in the request. None of the tags in this request were applied. ErrCodeTooManyTagsException = "TooManyTagsException" ) var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "BadRequestException": newErrorBadRequestException, "ConflictException": newErrorConflictException, "ForbiddenException": newErrorForbiddenException, "InternalServerErrorException": newErrorInternalServerErrorException, "LimitExceededException": newErrorLimitExceededException, "NotFoundException": newErrorNotFoundException, "ResourceInUseException": newErrorResourceInUseException, "ServiceUnavailableException": newErrorServiceUnavailableException, "TooManyRequestsException": newErrorTooManyRequestsException, "TooManyTagsException": newErrorTooManyTagsException, }
94
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package appmesh 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" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) // AppMesh provides the API operation methods for making requests to // AWS App Mesh. See this package's package overview docs // for details on the service. // // AppMesh methods are safe to use concurrently. It is not safe to // modify mutate any of the struct's properties though. type AppMesh 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 = "App Mesh" // Name of service. EndpointsID = "appmesh" // ID to lookup a service endpoint with. ServiceID = "App Mesh" // ServiceID is a unique identifier of a specific service. ) // New creates a new instance of the AppMesh 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: // mySession := session.Must(session.NewSession()) // // // Create a AppMesh client from just a session. // svc := appmesh.New(mySession) // // // Create a AppMesh client with additional configuration // svc := appmesh.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *AppMesh { c := p.ClientConfig(EndpointsID, cfgs...) if c.SigningNameDerived || len(c.SigningName) == 0 { c.SigningName = "appmesh" } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *AppMesh { svc := &AppMesh{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, ServiceID: ServiceID, SigningName: signingName, SigningRegion: signingRegion, PartitionID: partitionID, Endpoint: endpoint, APIVersion: "2019-01-25", }, 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( protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), ) // Run custom client initialization if present if initClient != nil { initClient(svc.Client) } return svc } // newRequest creates a new request for a AppMesh operation and runs any // custom request initialization. func (c *AppMesh) 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 }
105
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package appmeshiface provides an interface to enable mocking the AWS App Mesh 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 appmeshiface import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/service/appmesh" ) // AppMeshAPI provides an interface to enable mocking the // appmesh.AppMesh 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 App Mesh. // func myFunc(svc appmeshiface.AppMeshAPI) bool { // // Make svc.CreateGatewayRoute request // } // // func main() { // sess := session.New() // svc := appmesh.New(sess) // // myFunc(svc) // } // // In your _test.go file: // // // Define a mock struct to be used in your unit tests of myFunc. // type mockAppMeshClient struct { // appmeshiface.AppMeshAPI // } // func (m *mockAppMeshClient) CreateGatewayRoute(input *appmesh.CreateGatewayRouteInput) (*appmesh.CreateGatewayRouteOutput, error) { // // mock response/functionality // } // // func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockAppMeshClient{} // // 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 AppMeshAPI interface { CreateGatewayRoute(*appmesh.CreateGatewayRouteInput) (*appmesh.CreateGatewayRouteOutput, error) CreateGatewayRouteWithContext(aws.Context, *appmesh.CreateGatewayRouteInput, ...request.Option) (*appmesh.CreateGatewayRouteOutput, error) CreateGatewayRouteRequest(*appmesh.CreateGatewayRouteInput) (*request.Request, *appmesh.CreateGatewayRouteOutput) CreateMesh(*appmesh.CreateMeshInput) (*appmesh.CreateMeshOutput, error) CreateMeshWithContext(aws.Context, *appmesh.CreateMeshInput, ...request.Option) (*appmesh.CreateMeshOutput, error) CreateMeshRequest(*appmesh.CreateMeshInput) (*request.Request, *appmesh.CreateMeshOutput) CreateRoute(*appmesh.CreateRouteInput) (*appmesh.CreateRouteOutput, error) CreateRouteWithContext(aws.Context, *appmesh.CreateRouteInput, ...request.Option) (*appmesh.CreateRouteOutput, error) CreateRouteRequest(*appmesh.CreateRouteInput) (*request.Request, *appmesh.CreateRouteOutput) CreateVirtualGateway(*appmesh.CreateVirtualGatewayInput) (*appmesh.CreateVirtualGatewayOutput, error) CreateVirtualGatewayWithContext(aws.Context, *appmesh.CreateVirtualGatewayInput, ...request.Option) (*appmesh.CreateVirtualGatewayOutput, error) CreateVirtualGatewayRequest(*appmesh.CreateVirtualGatewayInput) (*request.Request, *appmesh.CreateVirtualGatewayOutput) CreateVirtualNode(*appmesh.CreateVirtualNodeInput) (*appmesh.CreateVirtualNodeOutput, error) CreateVirtualNodeWithContext(aws.Context, *appmesh.CreateVirtualNodeInput, ...request.Option) (*appmesh.CreateVirtualNodeOutput, error) CreateVirtualNodeRequest(*appmesh.CreateVirtualNodeInput) (*request.Request, *appmesh.CreateVirtualNodeOutput) CreateVirtualRouter(*appmesh.CreateVirtualRouterInput) (*appmesh.CreateVirtualRouterOutput, error) CreateVirtualRouterWithContext(aws.Context, *appmesh.CreateVirtualRouterInput, ...request.Option) (*appmesh.CreateVirtualRouterOutput, error) CreateVirtualRouterRequest(*appmesh.CreateVirtualRouterInput) (*request.Request, *appmesh.CreateVirtualRouterOutput) CreateVirtualService(*appmesh.CreateVirtualServiceInput) (*appmesh.CreateVirtualServiceOutput, error) CreateVirtualServiceWithContext(aws.Context, *appmesh.CreateVirtualServiceInput, ...request.Option) (*appmesh.CreateVirtualServiceOutput, error) CreateVirtualServiceRequest(*appmesh.CreateVirtualServiceInput) (*request.Request, *appmesh.CreateVirtualServiceOutput) DeleteGatewayRoute(*appmesh.DeleteGatewayRouteInput) (*appmesh.DeleteGatewayRouteOutput, error) DeleteGatewayRouteWithContext(aws.Context, *appmesh.DeleteGatewayRouteInput, ...request.Option) (*appmesh.DeleteGatewayRouteOutput, error) DeleteGatewayRouteRequest(*appmesh.DeleteGatewayRouteInput) (*request.Request, *appmesh.DeleteGatewayRouteOutput) DeleteMesh(*appmesh.DeleteMeshInput) (*appmesh.DeleteMeshOutput, error) DeleteMeshWithContext(aws.Context, *appmesh.DeleteMeshInput, ...request.Option) (*appmesh.DeleteMeshOutput, error) DeleteMeshRequest(*appmesh.DeleteMeshInput) (*request.Request, *appmesh.DeleteMeshOutput) DeleteRoute(*appmesh.DeleteRouteInput) (*appmesh.DeleteRouteOutput, error) DeleteRouteWithContext(aws.Context, *appmesh.DeleteRouteInput, ...request.Option) (*appmesh.DeleteRouteOutput, error) DeleteRouteRequest(*appmesh.DeleteRouteInput) (*request.Request, *appmesh.DeleteRouteOutput) DeleteVirtualGateway(*appmesh.DeleteVirtualGatewayInput) (*appmesh.DeleteVirtualGatewayOutput, error) DeleteVirtualGatewayWithContext(aws.Context, *appmesh.DeleteVirtualGatewayInput, ...request.Option) (*appmesh.DeleteVirtualGatewayOutput, error) DeleteVirtualGatewayRequest(*appmesh.DeleteVirtualGatewayInput) (*request.Request, *appmesh.DeleteVirtualGatewayOutput) DeleteVirtualNode(*appmesh.DeleteVirtualNodeInput) (*appmesh.DeleteVirtualNodeOutput, error) DeleteVirtualNodeWithContext(aws.Context, *appmesh.DeleteVirtualNodeInput, ...request.Option) (*appmesh.DeleteVirtualNodeOutput, error) DeleteVirtualNodeRequest(*appmesh.DeleteVirtualNodeInput) (*request.Request, *appmesh.DeleteVirtualNodeOutput) DeleteVirtualRouter(*appmesh.DeleteVirtualRouterInput) (*appmesh.DeleteVirtualRouterOutput, error) DeleteVirtualRouterWithContext(aws.Context, *appmesh.DeleteVirtualRouterInput, ...request.Option) (*appmesh.DeleteVirtualRouterOutput, error) DeleteVirtualRouterRequest(*appmesh.DeleteVirtualRouterInput) (*request.Request, *appmesh.DeleteVirtualRouterOutput) DeleteVirtualService(*appmesh.DeleteVirtualServiceInput) (*appmesh.DeleteVirtualServiceOutput, error) DeleteVirtualServiceWithContext(aws.Context, *appmesh.DeleteVirtualServiceInput, ...request.Option) (*appmesh.DeleteVirtualServiceOutput, error) DeleteVirtualServiceRequest(*appmesh.DeleteVirtualServiceInput) (*request.Request, *appmesh.DeleteVirtualServiceOutput) DescribeGatewayRoute(*appmesh.DescribeGatewayRouteInput) (*appmesh.DescribeGatewayRouteOutput, error) DescribeGatewayRouteWithContext(aws.Context, *appmesh.DescribeGatewayRouteInput, ...request.Option) (*appmesh.DescribeGatewayRouteOutput, error) DescribeGatewayRouteRequest(*appmesh.DescribeGatewayRouteInput) (*request.Request, *appmesh.DescribeGatewayRouteOutput) DescribeMesh(*appmesh.DescribeMeshInput) (*appmesh.DescribeMeshOutput, error) DescribeMeshWithContext(aws.Context, *appmesh.DescribeMeshInput, ...request.Option) (*appmesh.DescribeMeshOutput, error) DescribeMeshRequest(*appmesh.DescribeMeshInput) (*request.Request, *appmesh.DescribeMeshOutput) DescribeRoute(*appmesh.DescribeRouteInput) (*appmesh.DescribeRouteOutput, error) DescribeRouteWithContext(aws.Context, *appmesh.DescribeRouteInput, ...request.Option) (*appmesh.DescribeRouteOutput, error) DescribeRouteRequest(*appmesh.DescribeRouteInput) (*request.Request, *appmesh.DescribeRouteOutput) DescribeVirtualGateway(*appmesh.DescribeVirtualGatewayInput) (*appmesh.DescribeVirtualGatewayOutput, error) DescribeVirtualGatewayWithContext(aws.Context, *appmesh.DescribeVirtualGatewayInput, ...request.Option) (*appmesh.DescribeVirtualGatewayOutput, error) DescribeVirtualGatewayRequest(*appmesh.DescribeVirtualGatewayInput) (*request.Request, *appmesh.DescribeVirtualGatewayOutput) DescribeVirtualNode(*appmesh.DescribeVirtualNodeInput) (*appmesh.DescribeVirtualNodeOutput, error) DescribeVirtualNodeWithContext(aws.Context, *appmesh.DescribeVirtualNodeInput, ...request.Option) (*appmesh.DescribeVirtualNodeOutput, error) DescribeVirtualNodeRequest(*appmesh.DescribeVirtualNodeInput) (*request.Request, *appmesh.DescribeVirtualNodeOutput) DescribeVirtualRouter(*appmesh.DescribeVirtualRouterInput) (*appmesh.DescribeVirtualRouterOutput, error) DescribeVirtualRouterWithContext(aws.Context, *appmesh.DescribeVirtualRouterInput, ...request.Option) (*appmesh.DescribeVirtualRouterOutput, error) DescribeVirtualRouterRequest(*appmesh.DescribeVirtualRouterInput) (*request.Request, *appmesh.DescribeVirtualRouterOutput) DescribeVirtualService(*appmesh.DescribeVirtualServiceInput) (*appmesh.DescribeVirtualServiceOutput, error) DescribeVirtualServiceWithContext(aws.Context, *appmesh.DescribeVirtualServiceInput, ...request.Option) (*appmesh.DescribeVirtualServiceOutput, error) DescribeVirtualServiceRequest(*appmesh.DescribeVirtualServiceInput) (*request.Request, *appmesh.DescribeVirtualServiceOutput) ListGatewayRoutes(*appmesh.ListGatewayRoutesInput) (*appmesh.ListGatewayRoutesOutput, error) ListGatewayRoutesWithContext(aws.Context, *appmesh.ListGatewayRoutesInput, ...request.Option) (*appmesh.ListGatewayRoutesOutput, error) ListGatewayRoutesRequest(*appmesh.ListGatewayRoutesInput) (*request.Request, *appmesh.ListGatewayRoutesOutput) ListGatewayRoutesPages(*appmesh.ListGatewayRoutesInput, func(*appmesh.ListGatewayRoutesOutput, bool) bool) error ListGatewayRoutesPagesWithContext(aws.Context, *appmesh.ListGatewayRoutesInput, func(*appmesh.ListGatewayRoutesOutput, bool) bool, ...request.Option) error ListMeshes(*appmesh.ListMeshesInput) (*appmesh.ListMeshesOutput, error) ListMeshesWithContext(aws.Context, *appmesh.ListMeshesInput, ...request.Option) (*appmesh.ListMeshesOutput, error) ListMeshesRequest(*appmesh.ListMeshesInput) (*request.Request, *appmesh.ListMeshesOutput) ListMeshesPages(*appmesh.ListMeshesInput, func(*appmesh.ListMeshesOutput, bool) bool) error ListMeshesPagesWithContext(aws.Context, *appmesh.ListMeshesInput, func(*appmesh.ListMeshesOutput, bool) bool, ...request.Option) error ListRoutes(*appmesh.ListRoutesInput) (*appmesh.ListRoutesOutput, error) ListRoutesWithContext(aws.Context, *appmesh.ListRoutesInput, ...request.Option) (*appmesh.ListRoutesOutput, error) ListRoutesRequest(*appmesh.ListRoutesInput) (*request.Request, *appmesh.ListRoutesOutput) ListRoutesPages(*appmesh.ListRoutesInput, func(*appmesh.ListRoutesOutput, bool) bool) error ListRoutesPagesWithContext(aws.Context, *appmesh.ListRoutesInput, func(*appmesh.ListRoutesOutput, bool) bool, ...request.Option) error ListTagsForResource(*appmesh.ListTagsForResourceInput) (*appmesh.ListTagsForResourceOutput, error) ListTagsForResourceWithContext(aws.Context, *appmesh.ListTagsForResourceInput, ...request.Option) (*appmesh.ListTagsForResourceOutput, error) ListTagsForResourceRequest(*appmesh.ListTagsForResourceInput) (*request.Request, *appmesh.ListTagsForResourceOutput) ListTagsForResourcePages(*appmesh.ListTagsForResourceInput, func(*appmesh.ListTagsForResourceOutput, bool) bool) error ListTagsForResourcePagesWithContext(aws.Context, *appmesh.ListTagsForResourceInput, func(*appmesh.ListTagsForResourceOutput, bool) bool, ...request.Option) error ListVirtualGateways(*appmesh.ListVirtualGatewaysInput) (*appmesh.ListVirtualGatewaysOutput, error) ListVirtualGatewaysWithContext(aws.Context, *appmesh.ListVirtualGatewaysInput, ...request.Option) (*appmesh.ListVirtualGatewaysOutput, error) ListVirtualGatewaysRequest(*appmesh.ListVirtualGatewaysInput) (*request.Request, *appmesh.ListVirtualGatewaysOutput) ListVirtualGatewaysPages(*appmesh.ListVirtualGatewaysInput, func(*appmesh.ListVirtualGatewaysOutput, bool) bool) error ListVirtualGatewaysPagesWithContext(aws.Context, *appmesh.ListVirtualGatewaysInput, func(*appmesh.ListVirtualGatewaysOutput, bool) bool, ...request.Option) error ListVirtualNodes(*appmesh.ListVirtualNodesInput) (*appmesh.ListVirtualNodesOutput, error) ListVirtualNodesWithContext(aws.Context, *appmesh.ListVirtualNodesInput, ...request.Option) (*appmesh.ListVirtualNodesOutput, error) ListVirtualNodesRequest(*appmesh.ListVirtualNodesInput) (*request.Request, *appmesh.ListVirtualNodesOutput) ListVirtualNodesPages(*appmesh.ListVirtualNodesInput, func(*appmesh.ListVirtualNodesOutput, bool) bool) error ListVirtualNodesPagesWithContext(aws.Context, *appmesh.ListVirtualNodesInput, func(*appmesh.ListVirtualNodesOutput, bool) bool, ...request.Option) error ListVirtualRouters(*appmesh.ListVirtualRoutersInput) (*appmesh.ListVirtualRoutersOutput, error) ListVirtualRoutersWithContext(aws.Context, *appmesh.ListVirtualRoutersInput, ...request.Option) (*appmesh.ListVirtualRoutersOutput, error) ListVirtualRoutersRequest(*appmesh.ListVirtualRoutersInput) (*request.Request, *appmesh.ListVirtualRoutersOutput) ListVirtualRoutersPages(*appmesh.ListVirtualRoutersInput, func(*appmesh.ListVirtualRoutersOutput, bool) bool) error ListVirtualRoutersPagesWithContext(aws.Context, *appmesh.ListVirtualRoutersInput, func(*appmesh.ListVirtualRoutersOutput, bool) bool, ...request.Option) error ListVirtualServices(*appmesh.ListVirtualServicesInput) (*appmesh.ListVirtualServicesOutput, error) ListVirtualServicesWithContext(aws.Context, *appmesh.ListVirtualServicesInput, ...request.Option) (*appmesh.ListVirtualServicesOutput, error) ListVirtualServicesRequest(*appmesh.ListVirtualServicesInput) (*request.Request, *appmesh.ListVirtualServicesOutput) ListVirtualServicesPages(*appmesh.ListVirtualServicesInput, func(*appmesh.ListVirtualServicesOutput, bool) bool) error ListVirtualServicesPagesWithContext(aws.Context, *appmesh.ListVirtualServicesInput, func(*appmesh.ListVirtualServicesOutput, bool) bool, ...request.Option) error TagResource(*appmesh.TagResourceInput) (*appmesh.TagResourceOutput, error) TagResourceWithContext(aws.Context, *appmesh.TagResourceInput, ...request.Option) (*appmesh.TagResourceOutput, error) TagResourceRequest(*appmesh.TagResourceInput) (*request.Request, *appmesh.TagResourceOutput) UntagResource(*appmesh.UntagResourceInput) (*appmesh.UntagResourceOutput, error) UntagResourceWithContext(aws.Context, *appmesh.UntagResourceInput, ...request.Option) (*appmesh.UntagResourceOutput, error) UntagResourceRequest(*appmesh.UntagResourceInput) (*request.Request, *appmesh.UntagResourceOutput) UpdateGatewayRoute(*appmesh.UpdateGatewayRouteInput) (*appmesh.UpdateGatewayRouteOutput, error) UpdateGatewayRouteWithContext(aws.Context, *appmesh.UpdateGatewayRouteInput, ...request.Option) (*appmesh.UpdateGatewayRouteOutput, error) UpdateGatewayRouteRequest(*appmesh.UpdateGatewayRouteInput) (*request.Request, *appmesh.UpdateGatewayRouteOutput) UpdateMesh(*appmesh.UpdateMeshInput) (*appmesh.UpdateMeshOutput, error) UpdateMeshWithContext(aws.Context, *appmesh.UpdateMeshInput, ...request.Option) (*appmesh.UpdateMeshOutput, error) UpdateMeshRequest(*appmesh.UpdateMeshInput) (*request.Request, *appmesh.UpdateMeshOutput) UpdateRoute(*appmesh.UpdateRouteInput) (*appmesh.UpdateRouteOutput, error) UpdateRouteWithContext(aws.Context, *appmesh.UpdateRouteInput, ...request.Option) (*appmesh.UpdateRouteOutput, error) UpdateRouteRequest(*appmesh.UpdateRouteInput) (*request.Request, *appmesh.UpdateRouteOutput) UpdateVirtualGateway(*appmesh.UpdateVirtualGatewayInput) (*appmesh.UpdateVirtualGatewayOutput, error) UpdateVirtualGatewayWithContext(aws.Context, *appmesh.UpdateVirtualGatewayInput, ...request.Option) (*appmesh.UpdateVirtualGatewayOutput, error) UpdateVirtualGatewayRequest(*appmesh.UpdateVirtualGatewayInput) (*request.Request, *appmesh.UpdateVirtualGatewayOutput) UpdateVirtualNode(*appmesh.UpdateVirtualNodeInput) (*appmesh.UpdateVirtualNodeOutput, error) UpdateVirtualNodeWithContext(aws.Context, *appmesh.UpdateVirtualNodeInput, ...request.Option) (*appmesh.UpdateVirtualNodeOutput, error) UpdateVirtualNodeRequest(*appmesh.UpdateVirtualNodeInput) (*request.Request, *appmesh.UpdateVirtualNodeOutput) UpdateVirtualRouter(*appmesh.UpdateVirtualRouterInput) (*appmesh.UpdateVirtualRouterOutput, error) UpdateVirtualRouterWithContext(aws.Context, *appmesh.UpdateVirtualRouterInput, ...request.Option) (*appmesh.UpdateVirtualRouterOutput, error) UpdateVirtualRouterRequest(*appmesh.UpdateVirtualRouterInput) (*request.Request, *appmesh.UpdateVirtualRouterOutput) UpdateVirtualService(*appmesh.UpdateVirtualServiceInput) (*appmesh.UpdateVirtualServiceOutput, error) UpdateVirtualServiceWithContext(aws.Context, *appmesh.UpdateVirtualServiceInput, ...request.Option) (*appmesh.UpdateVirtualServiceOutput, error) UpdateVirtualServiceRequest(*appmesh.UpdateVirtualServiceInput) (*request.Request, *appmesh.UpdateVirtualServiceOutput) } var _ AppMeshAPI = (*appmesh.AppMesh)(nil)
241
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package appregistry import ( "fmt" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) const opAssociateAttributeGroup = "AssociateAttributeGroup" // AssociateAttributeGroupRequest generates a "aws/request.Request" representing the // client's request for the AssociateAttributeGroup operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See AssociateAttributeGroup for more information on using the AssociateAttributeGroup // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the AssociateAttributeGroupRequest method. // req, resp := client.AssociateAttributeGroupRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/AssociateAttributeGroup func (c *AppRegistry) AssociateAttributeGroupRequest(input *AssociateAttributeGroupInput) (req *request.Request, output *AssociateAttributeGroupOutput) { op := &request.Operation{ Name: opAssociateAttributeGroup, HTTPMethod: "PUT", HTTPPath: "/applications/{application}/attribute-groups/{attributeGroup}", } if input == nil { input = &AssociateAttributeGroupInput{} } output = &AssociateAttributeGroupOutput{} req = c.newRequest(op, input, output) return } // AssociateAttributeGroup API operation for AWS Service Catalog App Registry. // // Associates an attribute group with an application to augment the application's // metadata with the group's attributes. This feature enables applications to // be described with user-defined details that are machine-readable, such as // third-party integrations. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Service Catalog App Registry's // API operation AssociateAttributeGroup for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The specified resource does not exist. // // * ValidationException // The request has invalid or missing parameters. // // * InternalServerException // The service is experiencing internal problems. // // * ServiceQuotaExceededException // The maximum number of resources per account has been reached. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/AssociateAttributeGroup func (c *AppRegistry) AssociateAttributeGroup(input *AssociateAttributeGroupInput) (*AssociateAttributeGroupOutput, error) { req, out := c.AssociateAttributeGroupRequest(input) return out, req.Send() } // AssociateAttributeGroupWithContext is the same as AssociateAttributeGroup with the addition of // the ability to pass a context and additional request options. // // See AssociateAttributeGroup for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRegistry) AssociateAttributeGroupWithContext(ctx aws.Context, input *AssociateAttributeGroupInput, opts ...request.Option) (*AssociateAttributeGroupOutput, error) { req, out := c.AssociateAttributeGroupRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opAssociateResource = "AssociateResource" // AssociateResourceRequest generates a "aws/request.Request" representing the // client's request for the AssociateResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See AssociateResource for more information on using the AssociateResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the AssociateResourceRequest method. // req, resp := client.AssociateResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/AssociateResource func (c *AppRegistry) AssociateResourceRequest(input *AssociateResourceInput) (req *request.Request, output *AssociateResourceOutput) { op := &request.Operation{ Name: opAssociateResource, HTTPMethod: "PUT", HTTPPath: "/applications/{application}/resources/{resourceType}/{resource}", } if input == nil { input = &AssociateResourceInput{} } output = &AssociateResourceOutput{} req = c.newRequest(op, input, output) return } // AssociateResource API operation for AWS Service Catalog App Registry. // // Associates a resource with an application. Both the resource and the application // can be specified either by ID or name. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Service Catalog App Registry's // API operation AssociateResource for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The specified resource does not exist. // // * InternalServerException // The service is experiencing internal problems. // // * ServiceQuotaExceededException // The maximum number of resources per account has been reached. // // * ConflictException // There was a conflict when processing the request (for example, a resource // with the given name already exists within the account). // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/AssociateResource func (c *AppRegistry) AssociateResource(input *AssociateResourceInput) (*AssociateResourceOutput, error) { req, out := c.AssociateResourceRequest(input) return out, req.Send() } // AssociateResourceWithContext is the same as AssociateResource with the addition of // the ability to pass a context and additional request options. // // See AssociateResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRegistry) AssociateResourceWithContext(ctx aws.Context, input *AssociateResourceInput, opts ...request.Option) (*AssociateResourceOutput, error) { req, out := c.AssociateResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateApplication = "CreateApplication" // CreateApplicationRequest generates a "aws/request.Request" representing the // client's request for the CreateApplication operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateApplication for more information on using the CreateApplication // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateApplicationRequest method. // req, resp := client.CreateApplicationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/CreateApplication func (c *AppRegistry) CreateApplicationRequest(input *CreateApplicationInput) (req *request.Request, output *CreateApplicationOutput) { op := &request.Operation{ Name: opCreateApplication, HTTPMethod: "POST", HTTPPath: "/applications", } if input == nil { input = &CreateApplicationInput{} } output = &CreateApplicationOutput{} req = c.newRequest(op, input, output) return } // CreateApplication API operation for AWS Service Catalog App Registry. // // Creates a new application that is the top-level node in a hierarchy of related // cloud resource abstractions. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Service Catalog App Registry's // API operation CreateApplication for usage and error information. // // Returned Error Types: // * ServiceQuotaExceededException // The maximum number of resources per account has been reached. // // * ConflictException // There was a conflict when processing the request (for example, a resource // with the given name already exists within the account). // // * InternalServerException // The service is experiencing internal problems. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/CreateApplication func (c *AppRegistry) CreateApplication(input *CreateApplicationInput) (*CreateApplicationOutput, error) { req, out := c.CreateApplicationRequest(input) return out, req.Send() } // CreateApplicationWithContext is the same as CreateApplication with the addition of // the ability to pass a context and additional request options. // // See CreateApplication for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRegistry) CreateApplicationWithContext(ctx aws.Context, input *CreateApplicationInput, opts ...request.Option) (*CreateApplicationOutput, error) { req, out := c.CreateApplicationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateAttributeGroup = "CreateAttributeGroup" // CreateAttributeGroupRequest generates a "aws/request.Request" representing the // client's request for the CreateAttributeGroup operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateAttributeGroup for more information on using the CreateAttributeGroup // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateAttributeGroupRequest method. // req, resp := client.CreateAttributeGroupRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/CreateAttributeGroup func (c *AppRegistry) CreateAttributeGroupRequest(input *CreateAttributeGroupInput) (req *request.Request, output *CreateAttributeGroupOutput) { op := &request.Operation{ Name: opCreateAttributeGroup, HTTPMethod: "POST", HTTPPath: "/attribute-groups", } if input == nil { input = &CreateAttributeGroupInput{} } output = &CreateAttributeGroupOutput{} req = c.newRequest(op, input, output) return } // CreateAttributeGroup API operation for AWS Service Catalog App Registry. // // Creates a new attribute group as a container for user-defined attributes. // This feature enables users to have full control over their cloud application's // metadata in a rich machine-readable format to facilitate integration with // automated workflows and third-party tools. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Service Catalog App Registry's // API operation CreateAttributeGroup for usage and error information. // // Returned Error Types: // * ServiceQuotaExceededException // The maximum number of resources per account has been reached. // // * ConflictException // There was a conflict when processing the request (for example, a resource // with the given name already exists within the account). // // * ValidationException // The request has invalid or missing parameters. // // * InternalServerException // The service is experiencing internal problems. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/CreateAttributeGroup func (c *AppRegistry) CreateAttributeGroup(input *CreateAttributeGroupInput) (*CreateAttributeGroupOutput, error) { req, out := c.CreateAttributeGroupRequest(input) return out, req.Send() } // CreateAttributeGroupWithContext is the same as CreateAttributeGroup with the addition of // the ability to pass a context and additional request options. // // See CreateAttributeGroup for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRegistry) CreateAttributeGroupWithContext(ctx aws.Context, input *CreateAttributeGroupInput, opts ...request.Option) (*CreateAttributeGroupOutput, error) { req, out := c.CreateAttributeGroupRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteApplication = "DeleteApplication" // DeleteApplicationRequest generates a "aws/request.Request" representing the // client's request for the DeleteApplication operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteApplication for more information on using the DeleteApplication // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteApplicationRequest method. // req, resp := client.DeleteApplicationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/DeleteApplication func (c *AppRegistry) DeleteApplicationRequest(input *DeleteApplicationInput) (req *request.Request, output *DeleteApplicationOutput) { op := &request.Operation{ Name: opDeleteApplication, HTTPMethod: "DELETE", HTTPPath: "/applications/{application}", } if input == nil { input = &DeleteApplicationInput{} } output = &DeleteApplicationOutput{} req = c.newRequest(op, input, output) return } // DeleteApplication API operation for AWS Service Catalog App Registry. // // Deletes an application that is specified either by its application ID or // name. All associated attribute groups and resources must be disassociated // from it before deleting an application. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Service Catalog App Registry's // API operation DeleteApplication for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The specified resource does not exist. // // * ValidationException // The request has invalid or missing parameters. // // * InternalServerException // The service is experiencing internal problems. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/DeleteApplication func (c *AppRegistry) DeleteApplication(input *DeleteApplicationInput) (*DeleteApplicationOutput, error) { req, out := c.DeleteApplicationRequest(input) return out, req.Send() } // DeleteApplicationWithContext is the same as DeleteApplication with the addition of // the ability to pass a context and additional request options. // // See DeleteApplication for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRegistry) DeleteApplicationWithContext(ctx aws.Context, input *DeleteApplicationInput, opts ...request.Option) (*DeleteApplicationOutput, error) { req, out := c.DeleteApplicationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteAttributeGroup = "DeleteAttributeGroup" // DeleteAttributeGroupRequest generates a "aws/request.Request" representing the // client's request for the DeleteAttributeGroup operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteAttributeGroup for more information on using the DeleteAttributeGroup // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteAttributeGroupRequest method. // req, resp := client.DeleteAttributeGroupRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/DeleteAttributeGroup func (c *AppRegistry) DeleteAttributeGroupRequest(input *DeleteAttributeGroupInput) (req *request.Request, output *DeleteAttributeGroupOutput) { op := &request.Operation{ Name: opDeleteAttributeGroup, HTTPMethod: "DELETE", HTTPPath: "/attribute-groups/{attributeGroup}", } if input == nil { input = &DeleteAttributeGroupInput{} } output = &DeleteAttributeGroupOutput{} req = c.newRequest(op, input, output) return } // DeleteAttributeGroup API operation for AWS Service Catalog App Registry. // // Deletes an attribute group, specified either by its attribute group ID or // name. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Service Catalog App Registry's // API operation DeleteAttributeGroup for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The specified resource does not exist. // // * ValidationException // The request has invalid or missing parameters. // // * InternalServerException // The service is experiencing internal problems. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/DeleteAttributeGroup func (c *AppRegistry) DeleteAttributeGroup(input *DeleteAttributeGroupInput) (*DeleteAttributeGroupOutput, error) { req, out := c.DeleteAttributeGroupRequest(input) return out, req.Send() } // DeleteAttributeGroupWithContext is the same as DeleteAttributeGroup with the addition of // the ability to pass a context and additional request options. // // See DeleteAttributeGroup for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRegistry) DeleteAttributeGroupWithContext(ctx aws.Context, input *DeleteAttributeGroupInput, opts ...request.Option) (*DeleteAttributeGroupOutput, error) { req, out := c.DeleteAttributeGroupRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDisassociateAttributeGroup = "DisassociateAttributeGroup" // DisassociateAttributeGroupRequest generates a "aws/request.Request" representing the // client's request for the DisassociateAttributeGroup operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DisassociateAttributeGroup for more information on using the DisassociateAttributeGroup // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DisassociateAttributeGroupRequest method. // req, resp := client.DisassociateAttributeGroupRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/DisassociateAttributeGroup func (c *AppRegistry) DisassociateAttributeGroupRequest(input *DisassociateAttributeGroupInput) (req *request.Request, output *DisassociateAttributeGroupOutput) { op := &request.Operation{ Name: opDisassociateAttributeGroup, HTTPMethod: "DELETE", HTTPPath: "/applications/{application}/attribute-groups/{attributeGroup}", } if input == nil { input = &DisassociateAttributeGroupInput{} } output = &DisassociateAttributeGroupOutput{} req = c.newRequest(op, input, output) return } // DisassociateAttributeGroup API operation for AWS Service Catalog App Registry. // // Disassociates an attribute group from an application to remove the extra // attributes contained in the attribute group from the application's metadata. // This operation reverts AssociateAttributeGroup. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Service Catalog App Registry's // API operation DisassociateAttributeGroup for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The specified resource does not exist. // // * ValidationException // The request has invalid or missing parameters. // // * InternalServerException // The service is experiencing internal problems. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/DisassociateAttributeGroup func (c *AppRegistry) DisassociateAttributeGroup(input *DisassociateAttributeGroupInput) (*DisassociateAttributeGroupOutput, error) { req, out := c.DisassociateAttributeGroupRequest(input) return out, req.Send() } // DisassociateAttributeGroupWithContext is the same as DisassociateAttributeGroup with the addition of // the ability to pass a context and additional request options. // // See DisassociateAttributeGroup for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRegistry) DisassociateAttributeGroupWithContext(ctx aws.Context, input *DisassociateAttributeGroupInput, opts ...request.Option) (*DisassociateAttributeGroupOutput, error) { req, out := c.DisassociateAttributeGroupRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDisassociateResource = "DisassociateResource" // DisassociateResourceRequest generates a "aws/request.Request" representing the // client's request for the DisassociateResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DisassociateResource for more information on using the DisassociateResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DisassociateResourceRequest method. // req, resp := client.DisassociateResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/DisassociateResource func (c *AppRegistry) DisassociateResourceRequest(input *DisassociateResourceInput) (req *request.Request, output *DisassociateResourceOutput) { op := &request.Operation{ Name: opDisassociateResource, HTTPMethod: "DELETE", HTTPPath: "/applications/{application}/resources/{resourceType}/{resource}", } if input == nil { input = &DisassociateResourceInput{} } output = &DisassociateResourceOutput{} req = c.newRequest(op, input, output) return } // DisassociateResource API operation for AWS Service Catalog App Registry. // // Disassociates a resource from application. Both the resource and the application // can be specified either by ID or name. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Service Catalog App Registry's // API operation DisassociateResource for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The specified resource does not exist. // // * InternalServerException // The service is experiencing internal problems. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/DisassociateResource func (c *AppRegistry) DisassociateResource(input *DisassociateResourceInput) (*DisassociateResourceOutput, error) { req, out := c.DisassociateResourceRequest(input) return out, req.Send() } // DisassociateResourceWithContext is the same as DisassociateResource with the addition of // the ability to pass a context and additional request options. // // See DisassociateResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRegistry) DisassociateResourceWithContext(ctx aws.Context, input *DisassociateResourceInput, opts ...request.Option) (*DisassociateResourceOutput, error) { req, out := c.DisassociateResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetApplication = "GetApplication" // GetApplicationRequest generates a "aws/request.Request" representing the // client's request for the GetApplication operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetApplication for more information on using the GetApplication // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetApplicationRequest method. // req, resp := client.GetApplicationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/GetApplication func (c *AppRegistry) GetApplicationRequest(input *GetApplicationInput) (req *request.Request, output *GetApplicationOutput) { op := &request.Operation{ Name: opGetApplication, HTTPMethod: "GET", HTTPPath: "/applications/{application}", } if input == nil { input = &GetApplicationInput{} } output = &GetApplicationOutput{} req = c.newRequest(op, input, output) return } // GetApplication API operation for AWS Service Catalog App Registry. // // Retrieves metadata information about one of your applications. The application // can be specified either by its unique ID or by its name (which is unique // within one account in one region at a given point in time). Specify by ID // in automated workflows if you want to make sure that the exact same application // is returned or a ResourceNotFoundException is thrown, avoiding the ABA addressing // problem. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Service Catalog App Registry's // API operation GetApplication for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The specified resource does not exist. // // * ValidationException // The request has invalid or missing parameters. // // * InternalServerException // The service is experiencing internal problems. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/GetApplication func (c *AppRegistry) GetApplication(input *GetApplicationInput) (*GetApplicationOutput, error) { req, out := c.GetApplicationRequest(input) return out, req.Send() } // GetApplicationWithContext is the same as GetApplication with the addition of // the ability to pass a context and additional request options. // // See GetApplication for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRegistry) GetApplicationWithContext(ctx aws.Context, input *GetApplicationInput, opts ...request.Option) (*GetApplicationOutput, error) { req, out := c.GetApplicationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetAttributeGroup = "GetAttributeGroup" // GetAttributeGroupRequest generates a "aws/request.Request" representing the // client's request for the GetAttributeGroup operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetAttributeGroup for more information on using the GetAttributeGroup // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetAttributeGroupRequest method. // req, resp := client.GetAttributeGroupRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/GetAttributeGroup func (c *AppRegistry) GetAttributeGroupRequest(input *GetAttributeGroupInput) (req *request.Request, output *GetAttributeGroupOutput) { op := &request.Operation{ Name: opGetAttributeGroup, HTTPMethod: "GET", HTTPPath: "/attribute-groups/{attributeGroup}", } if input == nil { input = &GetAttributeGroupInput{} } output = &GetAttributeGroupOutput{} req = c.newRequest(op, input, output) return } // GetAttributeGroup API operation for AWS Service Catalog App Registry. // // Retrieves an attribute group, either by its name or its ID. The attribute // group can be specified either by its unique ID or by its name. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Service Catalog App Registry's // API operation GetAttributeGroup for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The specified resource does not exist. // // * ValidationException // The request has invalid or missing parameters. // // * InternalServerException // The service is experiencing internal problems. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/GetAttributeGroup func (c *AppRegistry) GetAttributeGroup(input *GetAttributeGroupInput) (*GetAttributeGroupOutput, error) { req, out := c.GetAttributeGroupRequest(input) return out, req.Send() } // GetAttributeGroupWithContext is the same as GetAttributeGroup with the addition of // the ability to pass a context and additional request options. // // See GetAttributeGroup for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRegistry) GetAttributeGroupWithContext(ctx aws.Context, input *GetAttributeGroupInput, opts ...request.Option) (*GetAttributeGroupOutput, error) { req, out := c.GetAttributeGroupRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opListApplications = "ListApplications" // ListApplicationsRequest generates a "aws/request.Request" representing the // client's request for the ListApplications operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListApplications for more information on using the ListApplications // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListApplicationsRequest method. // req, resp := client.ListApplicationsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/ListApplications func (c *AppRegistry) ListApplicationsRequest(input *ListApplicationsInput) (req *request.Request, output *ListApplicationsOutput) { op := &request.Operation{ Name: opListApplications, HTTPMethod: "GET", HTTPPath: "/applications", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, LimitToken: "maxResults", TruncationToken: "", }, } if input == nil { input = &ListApplicationsInput{} } output = &ListApplicationsOutput{} req = c.newRequest(op, input, output) return } // ListApplications API operation for AWS Service Catalog App Registry. // // Retrieves a list of all of your applications. Results are paginated. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Service Catalog App Registry's // API operation ListApplications for usage and error information. // // Returned Error Types: // * ValidationException // The request has invalid or missing parameters. // // * InternalServerException // The service is experiencing internal problems. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/ListApplications func (c *AppRegistry) ListApplications(input *ListApplicationsInput) (*ListApplicationsOutput, error) { req, out := c.ListApplicationsRequest(input) return out, req.Send() } // ListApplicationsWithContext is the same as ListApplications with the addition of // the ability to pass a context and additional request options. // // See ListApplications for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRegistry) ListApplicationsWithContext(ctx aws.Context, input *ListApplicationsInput, opts ...request.Option) (*ListApplicationsOutput, error) { req, out := c.ListApplicationsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListApplicationsPages iterates over the pages of a ListApplications operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListApplications method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListApplications operation. // pageNum := 0 // err := client.ListApplicationsPages(params, // func(page *appregistry.ListApplicationsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *AppRegistry) ListApplicationsPages(input *ListApplicationsInput, fn func(*ListApplicationsOutput, bool) bool) error { return c.ListApplicationsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListApplicationsPagesWithContext same as ListApplicationsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRegistry) ListApplicationsPagesWithContext(ctx aws.Context, input *ListApplicationsInput, fn func(*ListApplicationsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListApplicationsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListApplicationsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListApplicationsOutput), !p.HasNextPage()) { break } } return p.Err() } const opListAssociatedAttributeGroups = "ListAssociatedAttributeGroups" // ListAssociatedAttributeGroupsRequest generates a "aws/request.Request" representing the // client's request for the ListAssociatedAttributeGroups operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListAssociatedAttributeGroups for more information on using the ListAssociatedAttributeGroups // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListAssociatedAttributeGroupsRequest method. // req, resp := client.ListAssociatedAttributeGroupsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/ListAssociatedAttributeGroups func (c *AppRegistry) ListAssociatedAttributeGroupsRequest(input *ListAssociatedAttributeGroupsInput) (req *request.Request, output *ListAssociatedAttributeGroupsOutput) { op := &request.Operation{ Name: opListAssociatedAttributeGroups, HTTPMethod: "GET", HTTPPath: "/applications/{application}/attribute-groups", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, LimitToken: "maxResults", TruncationToken: "", }, } if input == nil { input = &ListAssociatedAttributeGroupsInput{} } output = &ListAssociatedAttributeGroupsOutput{} req = c.newRequest(op, input, output) return } // ListAssociatedAttributeGroups API operation for AWS Service Catalog App Registry. // // Lists all attribute groups that are associated with specified application. // Results are paginated. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Service Catalog App Registry's // API operation ListAssociatedAttributeGroups for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The specified resource does not exist. // // * ValidationException // The request has invalid or missing parameters. // // * InternalServerException // The service is experiencing internal problems. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/ListAssociatedAttributeGroups func (c *AppRegistry) ListAssociatedAttributeGroups(input *ListAssociatedAttributeGroupsInput) (*ListAssociatedAttributeGroupsOutput, error) { req, out := c.ListAssociatedAttributeGroupsRequest(input) return out, req.Send() } // ListAssociatedAttributeGroupsWithContext is the same as ListAssociatedAttributeGroups with the addition of // the ability to pass a context and additional request options. // // See ListAssociatedAttributeGroups for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRegistry) ListAssociatedAttributeGroupsWithContext(ctx aws.Context, input *ListAssociatedAttributeGroupsInput, opts ...request.Option) (*ListAssociatedAttributeGroupsOutput, error) { req, out := c.ListAssociatedAttributeGroupsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListAssociatedAttributeGroupsPages iterates over the pages of a ListAssociatedAttributeGroups operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListAssociatedAttributeGroups method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListAssociatedAttributeGroups operation. // pageNum := 0 // err := client.ListAssociatedAttributeGroupsPages(params, // func(page *appregistry.ListAssociatedAttributeGroupsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *AppRegistry) ListAssociatedAttributeGroupsPages(input *ListAssociatedAttributeGroupsInput, fn func(*ListAssociatedAttributeGroupsOutput, bool) bool) error { return c.ListAssociatedAttributeGroupsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListAssociatedAttributeGroupsPagesWithContext same as ListAssociatedAttributeGroupsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRegistry) ListAssociatedAttributeGroupsPagesWithContext(ctx aws.Context, input *ListAssociatedAttributeGroupsInput, fn func(*ListAssociatedAttributeGroupsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListAssociatedAttributeGroupsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListAssociatedAttributeGroupsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListAssociatedAttributeGroupsOutput), !p.HasNextPage()) { break } } return p.Err() } const opListAssociatedResources = "ListAssociatedResources" // ListAssociatedResourcesRequest generates a "aws/request.Request" representing the // client's request for the ListAssociatedResources operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListAssociatedResources for more information on using the ListAssociatedResources // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListAssociatedResourcesRequest method. // req, resp := client.ListAssociatedResourcesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/ListAssociatedResources func (c *AppRegistry) ListAssociatedResourcesRequest(input *ListAssociatedResourcesInput) (req *request.Request, output *ListAssociatedResourcesOutput) { op := &request.Operation{ Name: opListAssociatedResources, HTTPMethod: "GET", HTTPPath: "/applications/{application}/resources", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, LimitToken: "maxResults", TruncationToken: "", }, } if input == nil { input = &ListAssociatedResourcesInput{} } output = &ListAssociatedResourcesOutput{} req = c.newRequest(op, input, output) return } // ListAssociatedResources API operation for AWS Service Catalog App Registry. // // Lists all resources that are associated with specified application. Results // are paginated. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Service Catalog App Registry's // API operation ListAssociatedResources for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The specified resource does not exist. // // * ValidationException // The request has invalid or missing parameters. // // * InternalServerException // The service is experiencing internal problems. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/ListAssociatedResources func (c *AppRegistry) ListAssociatedResources(input *ListAssociatedResourcesInput) (*ListAssociatedResourcesOutput, error) { req, out := c.ListAssociatedResourcesRequest(input) return out, req.Send() } // ListAssociatedResourcesWithContext is the same as ListAssociatedResources with the addition of // the ability to pass a context and additional request options. // // See ListAssociatedResources for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRegistry) ListAssociatedResourcesWithContext(ctx aws.Context, input *ListAssociatedResourcesInput, opts ...request.Option) (*ListAssociatedResourcesOutput, error) { req, out := c.ListAssociatedResourcesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListAssociatedResourcesPages iterates over the pages of a ListAssociatedResources operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListAssociatedResources method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListAssociatedResources operation. // pageNum := 0 // err := client.ListAssociatedResourcesPages(params, // func(page *appregistry.ListAssociatedResourcesOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *AppRegistry) ListAssociatedResourcesPages(input *ListAssociatedResourcesInput, fn func(*ListAssociatedResourcesOutput, bool) bool) error { return c.ListAssociatedResourcesPagesWithContext(aws.BackgroundContext(), input, fn) } // ListAssociatedResourcesPagesWithContext same as ListAssociatedResourcesPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRegistry) ListAssociatedResourcesPagesWithContext(ctx aws.Context, input *ListAssociatedResourcesInput, fn func(*ListAssociatedResourcesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListAssociatedResourcesInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListAssociatedResourcesRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListAssociatedResourcesOutput), !p.HasNextPage()) { break } } return p.Err() } const opListAttributeGroups = "ListAttributeGroups" // ListAttributeGroupsRequest generates a "aws/request.Request" representing the // client's request for the ListAttributeGroups operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListAttributeGroups for more information on using the ListAttributeGroups // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListAttributeGroupsRequest method. // req, resp := client.ListAttributeGroupsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/ListAttributeGroups func (c *AppRegistry) ListAttributeGroupsRequest(input *ListAttributeGroupsInput) (req *request.Request, output *ListAttributeGroupsOutput) { op := &request.Operation{ Name: opListAttributeGroups, HTTPMethod: "GET", HTTPPath: "/attribute-groups", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, LimitToken: "maxResults", TruncationToken: "", }, } if input == nil { input = &ListAttributeGroupsInput{} } output = &ListAttributeGroupsOutput{} req = c.newRequest(op, input, output) return } // ListAttributeGroups API operation for AWS Service Catalog App Registry. // // Lists all attribute groups which you have access to. Results are paginated. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Service Catalog App Registry's // API operation ListAttributeGroups for usage and error information. // // Returned Error Types: // * ValidationException // The request has invalid or missing parameters. // // * InternalServerException // The service is experiencing internal problems. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/ListAttributeGroups func (c *AppRegistry) ListAttributeGroups(input *ListAttributeGroupsInput) (*ListAttributeGroupsOutput, error) { req, out := c.ListAttributeGroupsRequest(input) return out, req.Send() } // ListAttributeGroupsWithContext is the same as ListAttributeGroups with the addition of // the ability to pass a context and additional request options. // // See ListAttributeGroups for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRegistry) ListAttributeGroupsWithContext(ctx aws.Context, input *ListAttributeGroupsInput, opts ...request.Option) (*ListAttributeGroupsOutput, error) { req, out := c.ListAttributeGroupsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListAttributeGroupsPages iterates over the pages of a ListAttributeGroups operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListAttributeGroups method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListAttributeGroups operation. // pageNum := 0 // err := client.ListAttributeGroupsPages(params, // func(page *appregistry.ListAttributeGroupsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *AppRegistry) ListAttributeGroupsPages(input *ListAttributeGroupsInput, fn func(*ListAttributeGroupsOutput, bool) bool) error { return c.ListAttributeGroupsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListAttributeGroupsPagesWithContext same as ListAttributeGroupsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRegistry) ListAttributeGroupsPagesWithContext(ctx aws.Context, input *ListAttributeGroupsInput, fn func(*ListAttributeGroupsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListAttributeGroupsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListAttributeGroupsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListAttributeGroupsOutput), !p.HasNextPage()) { break } } return p.Err() } const opListTagsForResource = "ListTagsForResource" // ListTagsForResourceRequest generates a "aws/request.Request" representing the // client's request for the ListTagsForResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListTagsForResource for more information on using the ListTagsForResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListTagsForResourceRequest method. // req, resp := client.ListTagsForResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/ListTagsForResource func (c *AppRegistry) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { op := &request.Operation{ Name: opListTagsForResource, HTTPMethod: "GET", HTTPPath: "/tags/{resourceArn}", } if input == nil { input = &ListTagsForResourceInput{} } output = &ListTagsForResourceOutput{} req = c.newRequest(op, input, output) return } // ListTagsForResource API operation for AWS Service Catalog App Registry. // // Lists all of the tags on the resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Service Catalog App Registry's // API operation ListTagsForResource for usage and error information. // // Returned Error Types: // * ValidationException // The request has invalid or missing parameters. // // * ResourceNotFoundException // The specified resource does not exist. // // * InternalServerException // The service is experiencing internal problems. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/ListTagsForResource func (c *AppRegistry) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) return out, req.Send() } // ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of // the ability to pass a context and additional request options. // // See ListTagsForResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRegistry) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opSyncResource = "SyncResource" // SyncResourceRequest generates a "aws/request.Request" representing the // client's request for the SyncResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See SyncResource for more information on using the SyncResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the SyncResourceRequest method. // req, resp := client.SyncResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/SyncResource func (c *AppRegistry) SyncResourceRequest(input *SyncResourceInput) (req *request.Request, output *SyncResourceOutput) { op := &request.Operation{ Name: opSyncResource, HTTPMethod: "POST", HTTPPath: "/sync/{resourceType}/{resource}", } if input == nil { input = &SyncResourceInput{} } output = &SyncResourceOutput{} req = c.newRequest(op, input, output) return } // SyncResource API operation for AWS Service Catalog App Registry. // // Syncs the resource with what is currently recorded in App registry. Specifically, // the resource’s App registry system tags are synced with its associated // application. The resource is removed if it is not associated with the application. // The caller must have permissions to read and update the resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Service Catalog App Registry's // API operation SyncResource for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The specified resource does not exist. // // * InternalServerException // The service is experiencing internal problems. // // * ConflictException // There was a conflict when processing the request (for example, a resource // with the given name already exists within the account). // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/SyncResource func (c *AppRegistry) SyncResource(input *SyncResourceInput) (*SyncResourceOutput, error) { req, out := c.SyncResourceRequest(input) return out, req.Send() } // SyncResourceWithContext is the same as SyncResource with the addition of // the ability to pass a context and additional request options. // // See SyncResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRegistry) SyncResourceWithContext(ctx aws.Context, input *SyncResourceInput, opts ...request.Option) (*SyncResourceOutput, error) { req, out := c.SyncResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opTagResource = "TagResource" // TagResourceRequest generates a "aws/request.Request" representing the // client's request for the TagResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See TagResource for more information on using the TagResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the TagResourceRequest method. // req, resp := client.TagResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/TagResource func (c *AppRegistry) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { op := &request.Operation{ Name: opTagResource, HTTPMethod: "POST", HTTPPath: "/tags/{resourceArn}", } if input == nil { input = &TagResourceInput{} } output = &TagResourceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // TagResource API operation for AWS Service Catalog App Registry. // // Assigns one or more tags (key-value pairs) to the specified resource. // // Each tag consists of a key and an optional value. If a tag with the same // key is already associated with the resource, this action updates its value. // // This operation returns an empty response if the call was successful. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Service Catalog App Registry's // API operation TagResource for usage and error information. // // Returned Error Types: // * ValidationException // The request has invalid or missing parameters. // // * ResourceNotFoundException // The specified resource does not exist. // // * InternalServerException // The service is experiencing internal problems. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/TagResource func (c *AppRegistry) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { req, out := c.TagResourceRequest(input) return out, req.Send() } // TagResourceWithContext is the same as TagResource with the addition of // the ability to pass a context and additional request options. // // See TagResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRegistry) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { req, out := c.TagResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUntagResource = "UntagResource" // UntagResourceRequest generates a "aws/request.Request" representing the // client's request for the UntagResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UntagResource for more information on using the UntagResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UntagResourceRequest method. // req, resp := client.UntagResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/UntagResource func (c *AppRegistry) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { op := &request.Operation{ Name: opUntagResource, HTTPMethod: "DELETE", HTTPPath: "/tags/{resourceArn}", } if input == nil { input = &UntagResourceInput{} } output = &UntagResourceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // UntagResource API operation for AWS Service Catalog App Registry. // // Removes tags from a resource. // // This operation returns an empty response if the call was successful. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Service Catalog App Registry's // API operation UntagResource for usage and error information. // // Returned Error Types: // * ValidationException // The request has invalid or missing parameters. // // * ResourceNotFoundException // The specified resource does not exist. // // * InternalServerException // The service is experiencing internal problems. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/UntagResource func (c *AppRegistry) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { req, out := c.UntagResourceRequest(input) return out, req.Send() } // UntagResourceWithContext is the same as UntagResource with the addition of // the ability to pass a context and additional request options. // // See UntagResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRegistry) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { req, out := c.UntagResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateApplication = "UpdateApplication" // UpdateApplicationRequest generates a "aws/request.Request" representing the // client's request for the UpdateApplication operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateApplication for more information on using the UpdateApplication // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateApplicationRequest method. // req, resp := client.UpdateApplicationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/UpdateApplication func (c *AppRegistry) UpdateApplicationRequest(input *UpdateApplicationInput) (req *request.Request, output *UpdateApplicationOutput) { op := &request.Operation{ Name: opUpdateApplication, HTTPMethod: "PATCH", HTTPPath: "/applications/{application}", } if input == nil { input = &UpdateApplicationInput{} } output = &UpdateApplicationOutput{} req = c.newRequest(op, input, output) return } // UpdateApplication API operation for AWS Service Catalog App Registry. // // Updates an existing application with new attributes. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Service Catalog App Registry's // API operation UpdateApplication for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The specified resource does not exist. // // * ConflictException // There was a conflict when processing the request (for example, a resource // with the given name already exists within the account). // // * InternalServerException // The service is experiencing internal problems. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/UpdateApplication func (c *AppRegistry) UpdateApplication(input *UpdateApplicationInput) (*UpdateApplicationOutput, error) { req, out := c.UpdateApplicationRequest(input) return out, req.Send() } // UpdateApplicationWithContext is the same as UpdateApplication with the addition of // the ability to pass a context and additional request options. // // See UpdateApplication for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRegistry) UpdateApplicationWithContext(ctx aws.Context, input *UpdateApplicationInput, opts ...request.Option) (*UpdateApplicationOutput, error) { req, out := c.UpdateApplicationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateAttributeGroup = "UpdateAttributeGroup" // UpdateAttributeGroupRequest generates a "aws/request.Request" representing the // client's request for the UpdateAttributeGroup operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateAttributeGroup for more information on using the UpdateAttributeGroup // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateAttributeGroupRequest method. // req, resp := client.UpdateAttributeGroupRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/UpdateAttributeGroup func (c *AppRegistry) UpdateAttributeGroupRequest(input *UpdateAttributeGroupInput) (req *request.Request, output *UpdateAttributeGroupOutput) { op := &request.Operation{ Name: opUpdateAttributeGroup, HTTPMethod: "PATCH", HTTPPath: "/attribute-groups/{attributeGroup}", } if input == nil { input = &UpdateAttributeGroupInput{} } output = &UpdateAttributeGroupOutput{} req = c.newRequest(op, input, output) return } // UpdateAttributeGroup API operation for AWS Service Catalog App Registry. // // Updates an existing attribute group with new details. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Service Catalog App Registry's // API operation UpdateAttributeGroup for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The specified resource does not exist. // // * ValidationException // The request has invalid or missing parameters. // // * ConflictException // There was a conflict when processing the request (for example, a resource // with the given name already exists within the account). // // * InternalServerException // The service is experiencing internal problems. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/UpdateAttributeGroup func (c *AppRegistry) UpdateAttributeGroup(input *UpdateAttributeGroupInput) (*UpdateAttributeGroupOutput, error) { req, out := c.UpdateAttributeGroupRequest(input) return out, req.Send() } // UpdateAttributeGroupWithContext is the same as UpdateAttributeGroup with the addition of // the ability to pass a context and additional request options. // // See UpdateAttributeGroup for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRegistry) UpdateAttributeGroupWithContext(ctx aws.Context, input *UpdateAttributeGroupInput, opts ...request.Option) (*UpdateAttributeGroupOutput, error) { req, out := c.UpdateAttributeGroupRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // Represents a Service Catalog AppRegistry application that is the top-level // node in a hierarchy of related cloud resource abstractions. type Application struct { _ struct{} `type:"structure"` // The Amazon resource name (ARN) that specifies the application across services. Arn *string `locationName:"arn" type:"string"` // The ISO-8601 formatted timestamp of the moment when the application was created. CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"iso8601"` // The description of the application. Description *string `locationName:"description" type:"string"` // The identifier of the application. Id *string `locationName:"id" type:"string"` // The ISO-8601 formatted timestamp of the moment when the application was last // updated. LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp" timestampFormat:"iso8601"` // The name of the application. The name must be unique in the region in which // you are creating the application. Name *string `locationName:"name" min:"1" type:"string"` // Key-value pairs you can use to associate with the application. Tags map[string]*string `locationName:"tags" type:"map"` } // String returns the string representation func (s Application) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Application) GoString() string { return s.String() } // SetArn sets the Arn field's value. func (s *Application) SetArn(v string) *Application { s.Arn = &v return s } // SetCreationTime sets the CreationTime field's value. func (s *Application) SetCreationTime(v time.Time) *Application { s.CreationTime = &v return s } // SetDescription sets the Description field's value. func (s *Application) SetDescription(v string) *Application { s.Description = &v return s } // SetId sets the Id field's value. func (s *Application) SetId(v string) *Application { s.Id = &v return s } // SetLastUpdateTime sets the LastUpdateTime field's value. func (s *Application) SetLastUpdateTime(v time.Time) *Application { s.LastUpdateTime = &v return s } // SetName sets the Name field's value. func (s *Application) SetName(v string) *Application { s.Name = &v return s } // SetTags sets the Tags field's value. func (s *Application) SetTags(v map[string]*string) *Application { s.Tags = v return s } // Summary of a Service Catalog AppRegistry application. type ApplicationSummary struct { _ struct{} `type:"structure"` // The Amazon resource name (ARN) that specifies the application across services. Arn *string `locationName:"arn" type:"string"` // The ISO-8601 formatted timestamp of the moment when the application was created. CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"iso8601"` // The description of the application. Description *string `locationName:"description" type:"string"` // The identifier of the application. Id *string `locationName:"id" type:"string"` // The ISO-8601 formatted timestamp of the moment when the application was last // updated. LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp" timestampFormat:"iso8601"` // The name of the application. The name must be unique in the region in which // you are creating the application. Name *string `locationName:"name" min:"1" type:"string"` } // String returns the string representation func (s ApplicationSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ApplicationSummary) GoString() string { return s.String() } // SetArn sets the Arn field's value. func (s *ApplicationSummary) SetArn(v string) *ApplicationSummary { s.Arn = &v return s } // SetCreationTime sets the CreationTime field's value. func (s *ApplicationSummary) SetCreationTime(v time.Time) *ApplicationSummary { s.CreationTime = &v return s } // SetDescription sets the Description field's value. func (s *ApplicationSummary) SetDescription(v string) *ApplicationSummary { s.Description = &v return s } // SetId sets the Id field's value. func (s *ApplicationSummary) SetId(v string) *ApplicationSummary { s.Id = &v return s } // SetLastUpdateTime sets the LastUpdateTime field's value. func (s *ApplicationSummary) SetLastUpdateTime(v time.Time) *ApplicationSummary { s.LastUpdateTime = &v return s } // SetName sets the Name field's value. func (s *ApplicationSummary) SetName(v string) *ApplicationSummary { s.Name = &v return s } type AssociateAttributeGroupInput struct { _ struct{} `type:"structure"` // The name or ID of the application. // // Application is a required field Application *string `location:"uri" locationName:"application" min:"1" type:"string" required:"true"` // The name or ID of the attribute group that holds the attributes to describe // the application. // // AttributeGroup is a required field AttributeGroup *string `location:"uri" locationName:"attributeGroup" min:"1" type:"string" required:"true"` } // String returns the string representation func (s AssociateAttributeGroupInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AssociateAttributeGroupInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *AssociateAttributeGroupInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "AssociateAttributeGroupInput"} if s.Application == nil { invalidParams.Add(request.NewErrParamRequired("Application")) } if s.Application != nil && len(*s.Application) < 1 { invalidParams.Add(request.NewErrParamMinLen("Application", 1)) } if s.AttributeGroup == nil { invalidParams.Add(request.NewErrParamRequired("AttributeGroup")) } if s.AttributeGroup != nil && len(*s.AttributeGroup) < 1 { invalidParams.Add(request.NewErrParamMinLen("AttributeGroup", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApplication sets the Application field's value. func (s *AssociateAttributeGroupInput) SetApplication(v string) *AssociateAttributeGroupInput { s.Application = &v return s } // SetAttributeGroup sets the AttributeGroup field's value. func (s *AssociateAttributeGroupInput) SetAttributeGroup(v string) *AssociateAttributeGroupInput { s.AttributeGroup = &v return s } type AssociateAttributeGroupOutput struct { _ struct{} `type:"structure"` // The Amazon resource name (ARN) of the application that was augmented with // attributes. ApplicationArn *string `locationName:"applicationArn" type:"string"` // The Amazon resource name (ARN) of the attribute group that contains the application's // new attributes. AttributeGroupArn *string `locationName:"attributeGroupArn" type:"string"` } // String returns the string representation func (s AssociateAttributeGroupOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AssociateAttributeGroupOutput) GoString() string { return s.String() } // SetApplicationArn sets the ApplicationArn field's value. func (s *AssociateAttributeGroupOutput) SetApplicationArn(v string) *AssociateAttributeGroupOutput { s.ApplicationArn = &v return s } // SetAttributeGroupArn sets the AttributeGroupArn field's value. func (s *AssociateAttributeGroupOutput) SetAttributeGroupArn(v string) *AssociateAttributeGroupOutput { s.AttributeGroupArn = &v return s } type AssociateResourceInput struct { _ struct{} `type:"structure"` // The name or ID of the application. // // Application is a required field Application *string `location:"uri" locationName:"application" min:"1" type:"string" required:"true"` // The name or ID of the resource of which the application will be associated. // // Resource is a required field Resource *string `location:"uri" locationName:"resource" min:"1" type:"string" required:"true"` // The type of resource of which the application will be associated. // // ResourceType is a required field ResourceType *string `location:"uri" locationName:"resourceType" type:"string" required:"true" enum:"ResourceType"` } // String returns the string representation func (s AssociateResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AssociateResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *AssociateResourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "AssociateResourceInput"} if s.Application == nil { invalidParams.Add(request.NewErrParamRequired("Application")) } if s.Application != nil && len(*s.Application) < 1 { invalidParams.Add(request.NewErrParamMinLen("Application", 1)) } if s.Resource == nil { invalidParams.Add(request.NewErrParamRequired("Resource")) } if s.Resource != nil && len(*s.Resource) < 1 { invalidParams.Add(request.NewErrParamMinLen("Resource", 1)) } if s.ResourceType == nil { invalidParams.Add(request.NewErrParamRequired("ResourceType")) } if s.ResourceType != nil && len(*s.ResourceType) < 1 { invalidParams.Add(request.NewErrParamMinLen("ResourceType", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApplication sets the Application field's value. func (s *AssociateResourceInput) SetApplication(v string) *AssociateResourceInput { s.Application = &v return s } // SetResource sets the Resource field's value. func (s *AssociateResourceInput) SetResource(v string) *AssociateResourceInput { s.Resource = &v return s } // SetResourceType sets the ResourceType field's value. func (s *AssociateResourceInput) SetResourceType(v string) *AssociateResourceInput { s.ResourceType = &v return s } type AssociateResourceOutput struct { _ struct{} `type:"structure"` // The Amazon resource name (ARN) of the application that was augmented with // attributes. ApplicationArn *string `locationName:"applicationArn" type:"string"` // The Amazon resource name (ARN) that specifies the resource. ResourceArn *string `locationName:"resourceArn" min:"1" type:"string"` } // String returns the string representation func (s AssociateResourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AssociateResourceOutput) GoString() string { return s.String() } // SetApplicationArn sets the ApplicationArn field's value. func (s *AssociateResourceOutput) SetApplicationArn(v string) *AssociateResourceOutput { s.ApplicationArn = &v return s } // SetResourceArn sets the ResourceArn field's value. func (s *AssociateResourceOutput) SetResourceArn(v string) *AssociateResourceOutput { s.ResourceArn = &v return s } // Represents a Service Catalog AppRegistry attribute group that is rich metadata // which describes an application and its components. type AttributeGroup struct { _ struct{} `type:"structure"` // The Amazon resource name (ARN) that specifies the attribute group across // services. Arn *string `locationName:"arn" type:"string"` // The ISO-8601 formatted timestamp of the moment the attribute group was created. CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"iso8601"` // The description of the attribute group that the user provides. Description *string `locationName:"description" type:"string"` // The globally unique attribute group identifier of the attribute group. Id *string `locationName:"id" min:"1" type:"string"` // The ISO-8601 formatted timestamp of the moment the attribute group was last // updated. This time is the same as the creationTime for a newly created attribute // group. LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp" timestampFormat:"iso8601"` // The name of the attribute group. Name *string `locationName:"name" min:"1" type:"string"` // Key-value pairs you can use to associate with the attribute group. Tags map[string]*string `locationName:"tags" type:"map"` } // String returns the string representation func (s AttributeGroup) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AttributeGroup) GoString() string { return s.String() } // SetArn sets the Arn field's value. func (s *AttributeGroup) SetArn(v string) *AttributeGroup { s.Arn = &v return s } // SetCreationTime sets the CreationTime field's value. func (s *AttributeGroup) SetCreationTime(v time.Time) *AttributeGroup { s.CreationTime = &v return s } // SetDescription sets the Description field's value. func (s *AttributeGroup) SetDescription(v string) *AttributeGroup { s.Description = &v return s } // SetId sets the Id field's value. func (s *AttributeGroup) SetId(v string) *AttributeGroup { s.Id = &v return s } // SetLastUpdateTime sets the LastUpdateTime field's value. func (s *AttributeGroup) SetLastUpdateTime(v time.Time) *AttributeGroup { s.LastUpdateTime = &v return s } // SetName sets the Name field's value. func (s *AttributeGroup) SetName(v string) *AttributeGroup { s.Name = &v return s } // SetTags sets the Tags field's value. func (s *AttributeGroup) SetTags(v map[string]*string) *AttributeGroup { s.Tags = v return s } // Summary of a Service Catalog AppRegistry attribute group. type AttributeGroupSummary struct { _ struct{} `type:"structure"` // The Amazon resource name (ARN) that specifies the attribute group across // services. Arn *string `locationName:"arn" type:"string"` // The ISO-8601 formatted timestamp of the moment the attribute group was created. CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"iso8601"` // The description of the attribute group that the user provides. Description *string `locationName:"description" type:"string"` // The globally unique attribute group identifier of the attribute group. Id *string `locationName:"id" min:"1" type:"string"` // The ISO-8601 formatted timestamp of the moment the attribute group was last // updated. This time is the same as the creationTime for a newly created attribute // group. LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp" timestampFormat:"iso8601"` // The name of the attribute group. Name *string `locationName:"name" min:"1" type:"string"` } // String returns the string representation func (s AttributeGroupSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AttributeGroupSummary) GoString() string { return s.String() } // SetArn sets the Arn field's value. func (s *AttributeGroupSummary) SetArn(v string) *AttributeGroupSummary { s.Arn = &v return s } // SetCreationTime sets the CreationTime field's value. func (s *AttributeGroupSummary) SetCreationTime(v time.Time) *AttributeGroupSummary { s.CreationTime = &v return s } // SetDescription sets the Description field's value. func (s *AttributeGroupSummary) SetDescription(v string) *AttributeGroupSummary { s.Description = &v return s } // SetId sets the Id field's value. func (s *AttributeGroupSummary) SetId(v string) *AttributeGroupSummary { s.Id = &v return s } // SetLastUpdateTime sets the LastUpdateTime field's value. func (s *AttributeGroupSummary) SetLastUpdateTime(v time.Time) *AttributeGroupSummary { s.LastUpdateTime = &v return s } // SetName sets the Name field's value. func (s *AttributeGroupSummary) SetName(v string) *AttributeGroupSummary { s.Name = &v return s } // There was a conflict when processing the request (for example, a resource // with the given name already exists within the account). type ConflictException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s ConflictException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ConflictException) GoString() string { return s.String() } func newErrorConflictException(v protocol.ResponseMetadata) error { return &ConflictException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ConflictException) Code() string { return "ConflictException" } // Message returns the exception's message. func (s *ConflictException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ConflictException) OrigErr() error { return nil } func (s *ConflictException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ConflictException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ConflictException) RequestID() string { return s.RespMetadata.RequestID } type CreateApplicationInput struct { _ struct{} `type:"structure"` // A unique identifier that you provide to ensure idempotency. If you retry // a request that completed successfully using the same client token and the // same parameters, the retry succeeds without performing any further actions. // If you retry a successful request using the same client token, but one or // more of the parameters are different, the retry fails. ClientToken *string `locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"` // The description of the application. Description *string `locationName:"description" type:"string"` // The name of the application. The name must be unique in the region in which // you are creating the application. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` // Key-value pairs you can use to associate with the application. Tags map[string]*string `locationName:"tags" type:"map"` } // String returns the string representation func (s CreateApplicationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateApplicationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateApplicationInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateApplicationInput"} if s.ClientToken != nil && len(*s.ClientToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1)) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetClientToken sets the ClientToken field's value. func (s *CreateApplicationInput) SetClientToken(v string) *CreateApplicationInput { s.ClientToken = &v return s } // SetDescription sets the Description field's value. func (s *CreateApplicationInput) SetDescription(v string) *CreateApplicationInput { s.Description = &v return s } // SetName sets the Name field's value. func (s *CreateApplicationInput) SetName(v string) *CreateApplicationInput { s.Name = &v return s } // SetTags sets the Tags field's value. func (s *CreateApplicationInput) SetTags(v map[string]*string) *CreateApplicationInput { s.Tags = v return s } type CreateApplicationOutput struct { _ struct{} `type:"structure"` // Information about the application. Application *Application `locationName:"application" type:"structure"` } // String returns the string representation func (s CreateApplicationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateApplicationOutput) GoString() string { return s.String() } // SetApplication sets the Application field's value. func (s *CreateApplicationOutput) SetApplication(v *Application) *CreateApplicationOutput { s.Application = v return s } type CreateAttributeGroupInput struct { _ struct{} `type:"structure"` // A JSON string in the form of nested key-value pairs that represent the attributes // in the group and describes an application and its components. // // Attributes is a required field Attributes *string `locationName:"attributes" min:"1" type:"string" required:"true"` // A unique identifier that you provide to ensure idempotency. If you retry // a request that completed successfully using the same client token and the // same parameters, the retry succeeds without performing any further actions. // If you retry a successful request using the same client token, but one or // more of the parameters are different, the retry fails. ClientToken *string `locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"` // The description of the attribute group that the user provides. Description *string `locationName:"description" type:"string"` // The name of the attribute group. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` // Key-value pairs you can use to associate with the attribute group. Tags map[string]*string `locationName:"tags" type:"map"` } // String returns the string representation func (s CreateAttributeGroupInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateAttributeGroupInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateAttributeGroupInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateAttributeGroupInput"} if s.Attributes == nil { invalidParams.Add(request.NewErrParamRequired("Attributes")) } if s.Attributes != nil && len(*s.Attributes) < 1 { invalidParams.Add(request.NewErrParamMinLen("Attributes", 1)) } if s.ClientToken != nil && len(*s.ClientToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1)) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAttributes sets the Attributes field's value. func (s *CreateAttributeGroupInput) SetAttributes(v string) *CreateAttributeGroupInput { s.Attributes = &v return s } // SetClientToken sets the ClientToken field's value. func (s *CreateAttributeGroupInput) SetClientToken(v string) *CreateAttributeGroupInput { s.ClientToken = &v return s } // SetDescription sets the Description field's value. func (s *CreateAttributeGroupInput) SetDescription(v string) *CreateAttributeGroupInput { s.Description = &v return s } // SetName sets the Name field's value. func (s *CreateAttributeGroupInput) SetName(v string) *CreateAttributeGroupInput { s.Name = &v return s } // SetTags sets the Tags field's value. func (s *CreateAttributeGroupInput) SetTags(v map[string]*string) *CreateAttributeGroupInput { s.Tags = v return s } type CreateAttributeGroupOutput struct { _ struct{} `type:"structure"` // Information about the attribute group. AttributeGroup *AttributeGroup `locationName:"attributeGroup" type:"structure"` } // String returns the string representation func (s CreateAttributeGroupOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateAttributeGroupOutput) GoString() string { return s.String() } // SetAttributeGroup sets the AttributeGroup field's value. func (s *CreateAttributeGroupOutput) SetAttributeGroup(v *AttributeGroup) *CreateAttributeGroupOutput { s.AttributeGroup = v return s } type DeleteApplicationInput struct { _ struct{} `type:"structure"` // The name or ID of the application. // // Application is a required field Application *string `location:"uri" locationName:"application" min:"1" type:"string" required:"true"` } // String returns the string representation func (s DeleteApplicationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteApplicationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteApplicationInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteApplicationInput"} if s.Application == nil { invalidParams.Add(request.NewErrParamRequired("Application")) } if s.Application != nil && len(*s.Application) < 1 { invalidParams.Add(request.NewErrParamMinLen("Application", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApplication sets the Application field's value. func (s *DeleteApplicationInput) SetApplication(v string) *DeleteApplicationInput { s.Application = &v return s } type DeleteApplicationOutput struct { _ struct{} `type:"structure"` // Information about the deleted application. Application *ApplicationSummary `locationName:"application" type:"structure"` } // String returns the string representation func (s DeleteApplicationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteApplicationOutput) GoString() string { return s.String() } // SetApplication sets the Application field's value. func (s *DeleteApplicationOutput) SetApplication(v *ApplicationSummary) *DeleteApplicationOutput { s.Application = v return s } type DeleteAttributeGroupInput struct { _ struct{} `type:"structure"` // The name or ID of the attribute group that holds the attributes to describe // the application. // // AttributeGroup is a required field AttributeGroup *string `location:"uri" locationName:"attributeGroup" min:"1" type:"string" required:"true"` } // String returns the string representation func (s DeleteAttributeGroupInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteAttributeGroupInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteAttributeGroupInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteAttributeGroupInput"} if s.AttributeGroup == nil { invalidParams.Add(request.NewErrParamRequired("AttributeGroup")) } if s.AttributeGroup != nil && len(*s.AttributeGroup) < 1 { invalidParams.Add(request.NewErrParamMinLen("AttributeGroup", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAttributeGroup sets the AttributeGroup field's value. func (s *DeleteAttributeGroupInput) SetAttributeGroup(v string) *DeleteAttributeGroupInput { s.AttributeGroup = &v return s } type DeleteAttributeGroupOutput struct { _ struct{} `type:"structure"` // Information about the deleted attribute group. AttributeGroup *AttributeGroupSummary `locationName:"attributeGroup" type:"structure"` } // String returns the string representation func (s DeleteAttributeGroupOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteAttributeGroupOutput) GoString() string { return s.String() } // SetAttributeGroup sets the AttributeGroup field's value. func (s *DeleteAttributeGroupOutput) SetAttributeGroup(v *AttributeGroupSummary) *DeleteAttributeGroupOutput { s.AttributeGroup = v return s } type DisassociateAttributeGroupInput struct { _ struct{} `type:"structure"` // The name or ID of the application. // // Application is a required field Application *string `location:"uri" locationName:"application" min:"1" type:"string" required:"true"` // The name or ID of the attribute group that holds the attributes to describe // the application. // // AttributeGroup is a required field AttributeGroup *string `location:"uri" locationName:"attributeGroup" min:"1" type:"string" required:"true"` } // String returns the string representation func (s DisassociateAttributeGroupInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DisassociateAttributeGroupInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DisassociateAttributeGroupInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DisassociateAttributeGroupInput"} if s.Application == nil { invalidParams.Add(request.NewErrParamRequired("Application")) } if s.Application != nil && len(*s.Application) < 1 { invalidParams.Add(request.NewErrParamMinLen("Application", 1)) } if s.AttributeGroup == nil { invalidParams.Add(request.NewErrParamRequired("AttributeGroup")) } if s.AttributeGroup != nil && len(*s.AttributeGroup) < 1 { invalidParams.Add(request.NewErrParamMinLen("AttributeGroup", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApplication sets the Application field's value. func (s *DisassociateAttributeGroupInput) SetApplication(v string) *DisassociateAttributeGroupInput { s.Application = &v return s } // SetAttributeGroup sets the AttributeGroup field's value. func (s *DisassociateAttributeGroupInput) SetAttributeGroup(v string) *DisassociateAttributeGroupInput { s.AttributeGroup = &v return s } type DisassociateAttributeGroupOutput struct { _ struct{} `type:"structure"` // The Amazon resource name (ARN) that specifies the application. ApplicationArn *string `locationName:"applicationArn" type:"string"` // The Amazon resource name (ARN) that specifies the attribute group. AttributeGroupArn *string `locationName:"attributeGroupArn" type:"string"` } // String returns the string representation func (s DisassociateAttributeGroupOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DisassociateAttributeGroupOutput) GoString() string { return s.String() } // SetApplicationArn sets the ApplicationArn field's value. func (s *DisassociateAttributeGroupOutput) SetApplicationArn(v string) *DisassociateAttributeGroupOutput { s.ApplicationArn = &v return s } // SetAttributeGroupArn sets the AttributeGroupArn field's value. func (s *DisassociateAttributeGroupOutput) SetAttributeGroupArn(v string) *DisassociateAttributeGroupOutput { s.AttributeGroupArn = &v return s } type DisassociateResourceInput struct { _ struct{} `type:"structure"` // The name or ID of the application. // // Application is a required field Application *string `location:"uri" locationName:"application" min:"1" type:"string" required:"true"` // The name or ID of the resource. // // Resource is a required field Resource *string `location:"uri" locationName:"resource" min:"1" type:"string" required:"true"` // The type of the resource that is being disassociated. // // ResourceType is a required field ResourceType *string `location:"uri" locationName:"resourceType" type:"string" required:"true" enum:"ResourceType"` } // String returns the string representation func (s DisassociateResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DisassociateResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DisassociateResourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DisassociateResourceInput"} if s.Application == nil { invalidParams.Add(request.NewErrParamRequired("Application")) } if s.Application != nil && len(*s.Application) < 1 { invalidParams.Add(request.NewErrParamMinLen("Application", 1)) } if s.Resource == nil { invalidParams.Add(request.NewErrParamRequired("Resource")) } if s.Resource != nil && len(*s.Resource) < 1 { invalidParams.Add(request.NewErrParamMinLen("Resource", 1)) } if s.ResourceType == nil { invalidParams.Add(request.NewErrParamRequired("ResourceType")) } if s.ResourceType != nil && len(*s.ResourceType) < 1 { invalidParams.Add(request.NewErrParamMinLen("ResourceType", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApplication sets the Application field's value. func (s *DisassociateResourceInput) SetApplication(v string) *DisassociateResourceInput { s.Application = &v return s } // SetResource sets the Resource field's value. func (s *DisassociateResourceInput) SetResource(v string) *DisassociateResourceInput { s.Resource = &v return s } // SetResourceType sets the ResourceType field's value. func (s *DisassociateResourceInput) SetResourceType(v string) *DisassociateResourceInput { s.ResourceType = &v return s } type DisassociateResourceOutput struct { _ struct{} `type:"structure"` // The Amazon resource name (ARN) that specifies the application. ApplicationArn *string `locationName:"applicationArn" type:"string"` // The Amazon resource name (ARN) that specifies the resource. ResourceArn *string `locationName:"resourceArn" min:"1" type:"string"` } // String returns the string representation func (s DisassociateResourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DisassociateResourceOutput) GoString() string { return s.String() } // SetApplicationArn sets the ApplicationArn field's value. func (s *DisassociateResourceOutput) SetApplicationArn(v string) *DisassociateResourceOutput { s.ApplicationArn = &v return s } // SetResourceArn sets the ResourceArn field's value. func (s *DisassociateResourceOutput) SetResourceArn(v string) *DisassociateResourceOutput { s.ResourceArn = &v return s } type GetApplicationInput struct { _ struct{} `type:"structure"` // The name or ID of the application. // // Application is a required field Application *string `location:"uri" locationName:"application" min:"1" type:"string" required:"true"` } // String returns the string representation func (s GetApplicationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetApplicationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetApplicationInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetApplicationInput"} if s.Application == nil { invalidParams.Add(request.NewErrParamRequired("Application")) } if s.Application != nil && len(*s.Application) < 1 { invalidParams.Add(request.NewErrParamMinLen("Application", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApplication sets the Application field's value. func (s *GetApplicationInput) SetApplication(v string) *GetApplicationInput { s.Application = &v return s } type GetApplicationOutput struct { _ struct{} `type:"structure"` // The Amazon resource name (ARN) that specifies the application across services. Arn *string `locationName:"arn" type:"string"` // The number of top-level resources that were registered as part of this application. AssociatedResourceCount *int64 `locationName:"associatedResourceCount" type:"integer"` // The ISO-8601 formatted timestamp of the moment when the application was created. CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"iso8601"` // The description of the application. Description *string `locationName:"description" type:"string"` // The identifier of the application. Id *string `locationName:"id" type:"string"` // The ISO-8601 formatted timestamp of the moment when the application was last // updated. LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp" timestampFormat:"iso8601"` // The name of the application. The name must be unique in the region in which // you are creating the application. Name *string `locationName:"name" min:"1" type:"string"` // Key-value pairs associated with the application. Tags map[string]*string `locationName:"tags" type:"map"` } // String returns the string representation func (s GetApplicationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetApplicationOutput) GoString() string { return s.String() } // SetArn sets the Arn field's value. func (s *GetApplicationOutput) SetArn(v string) *GetApplicationOutput { s.Arn = &v return s } // SetAssociatedResourceCount sets the AssociatedResourceCount field's value. func (s *GetApplicationOutput) SetAssociatedResourceCount(v int64) *GetApplicationOutput { s.AssociatedResourceCount = &v return s } // SetCreationTime sets the CreationTime field's value. func (s *GetApplicationOutput) SetCreationTime(v time.Time) *GetApplicationOutput { s.CreationTime = &v return s } // SetDescription sets the Description field's value. func (s *GetApplicationOutput) SetDescription(v string) *GetApplicationOutput { s.Description = &v return s } // SetId sets the Id field's value. func (s *GetApplicationOutput) SetId(v string) *GetApplicationOutput { s.Id = &v return s } // SetLastUpdateTime sets the LastUpdateTime field's value. func (s *GetApplicationOutput) SetLastUpdateTime(v time.Time) *GetApplicationOutput { s.LastUpdateTime = &v return s } // SetName sets the Name field's value. func (s *GetApplicationOutput) SetName(v string) *GetApplicationOutput { s.Name = &v return s } // SetTags sets the Tags field's value. func (s *GetApplicationOutput) SetTags(v map[string]*string) *GetApplicationOutput { s.Tags = v return s } type GetAttributeGroupInput struct { _ struct{} `type:"structure"` // The name or ID of the attribute group that holds the attributes to describe // the application. // // AttributeGroup is a required field AttributeGroup *string `location:"uri" locationName:"attributeGroup" min:"1" type:"string" required:"true"` } // String returns the string representation func (s GetAttributeGroupInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetAttributeGroupInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetAttributeGroupInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetAttributeGroupInput"} if s.AttributeGroup == nil { invalidParams.Add(request.NewErrParamRequired("AttributeGroup")) } if s.AttributeGroup != nil && len(*s.AttributeGroup) < 1 { invalidParams.Add(request.NewErrParamMinLen("AttributeGroup", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAttributeGroup sets the AttributeGroup field's value. func (s *GetAttributeGroupInput) SetAttributeGroup(v string) *GetAttributeGroupInput { s.AttributeGroup = &v return s } type GetAttributeGroupOutput struct { _ struct{} `type:"structure"` // The Amazon resource name (ARN) that specifies the attribute group across // services. Arn *string `locationName:"arn" type:"string"` // A JSON string in the form of nested key-value pairs that represent the attributes // in the group and describes an application and its components. Attributes *string `locationName:"attributes" min:"1" type:"string"` // The ISO-8601 formatted timestamp of the moment the attribute group was created. CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"iso8601"` // The description of the attribute group that the user provides. Description *string `locationName:"description" type:"string"` // The identifier of the attribute group. Id *string `locationName:"id" min:"1" type:"string"` // The ISO-8601 formatted timestamp of the moment the attribute group was last // updated. This time is the same as the creationTime for a newly created attribute // group. LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp" timestampFormat:"iso8601"` // The name of the attribute group. Name *string `locationName:"name" min:"1" type:"string"` // Key-value pairs associated with the attribute group. Tags map[string]*string `locationName:"tags" type:"map"` } // String returns the string representation func (s GetAttributeGroupOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetAttributeGroupOutput) GoString() string { return s.String() } // SetArn sets the Arn field's value. func (s *GetAttributeGroupOutput) SetArn(v string) *GetAttributeGroupOutput { s.Arn = &v return s } // SetAttributes sets the Attributes field's value. func (s *GetAttributeGroupOutput) SetAttributes(v string) *GetAttributeGroupOutput { s.Attributes = &v return s } // SetCreationTime sets the CreationTime field's value. func (s *GetAttributeGroupOutput) SetCreationTime(v time.Time) *GetAttributeGroupOutput { s.CreationTime = &v return s } // SetDescription sets the Description field's value. func (s *GetAttributeGroupOutput) SetDescription(v string) *GetAttributeGroupOutput { s.Description = &v return s } // SetId sets the Id field's value. func (s *GetAttributeGroupOutput) SetId(v string) *GetAttributeGroupOutput { s.Id = &v return s } // SetLastUpdateTime sets the LastUpdateTime field's value. func (s *GetAttributeGroupOutput) SetLastUpdateTime(v time.Time) *GetAttributeGroupOutput { s.LastUpdateTime = &v return s } // SetName sets the Name field's value. func (s *GetAttributeGroupOutput) SetName(v string) *GetAttributeGroupOutput { s.Name = &v return s } // SetTags sets the Tags field's value. func (s *GetAttributeGroupOutput) SetTags(v map[string]*string) *GetAttributeGroupOutput { s.Tags = v return s } // The service is experiencing internal problems. type InternalServerException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s InternalServerException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s InternalServerException) GoString() string { return s.String() } func newErrorInternalServerException(v protocol.ResponseMetadata) error { return &InternalServerException{ RespMetadata: v, } } // Code returns the exception type name. func (s *InternalServerException) Code() string { return "InternalServerException" } // Message returns the exception's message. func (s *InternalServerException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *InternalServerException) OrigErr() error { return nil } func (s *InternalServerException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *InternalServerException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *InternalServerException) RequestID() string { return s.RespMetadata.RequestID } type ListApplicationsInput struct { _ struct{} `type:"structure"` // The upper bound of the number of results to return (cannot exceed 25). If // this parameter is omitted, it defaults to 25. This value is optional. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // The token to use to get the next page of results after a previous API call. NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation func (s ListApplicationsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListApplicationsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListApplicationsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListApplicationsInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxResults sets the MaxResults field's value. func (s *ListApplicationsInput) SetMaxResults(v int64) *ListApplicationsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListApplicationsInput) SetNextToken(v string) *ListApplicationsInput { s.NextToken = &v return s } type ListApplicationsOutput struct { _ struct{} `type:"structure"` // This list of applications. Applications []*ApplicationSummary `locationName:"applications" type:"list"` // The token to use to get the next page of results after a previous API call. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation func (s ListApplicationsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListApplicationsOutput) GoString() string { return s.String() } // SetApplications sets the Applications field's value. func (s *ListApplicationsOutput) SetApplications(v []*ApplicationSummary) *ListApplicationsOutput { s.Applications = v return s } // SetNextToken sets the NextToken field's value. func (s *ListApplicationsOutput) SetNextToken(v string) *ListApplicationsOutput { s.NextToken = &v return s } type ListAssociatedAttributeGroupsInput struct { _ struct{} `type:"structure"` // The name or ID of the application. // // Application is a required field Application *string `location:"uri" locationName:"application" min:"1" type:"string" required:"true"` // The upper bound of the number of results to return (cannot exceed 25). If // this parameter is omitted, it defaults to 25. This value is optional. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // The token to use to get the next page of results after a previous API call. NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation func (s ListAssociatedAttributeGroupsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListAssociatedAttributeGroupsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListAssociatedAttributeGroupsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListAssociatedAttributeGroupsInput"} if s.Application == nil { invalidParams.Add(request.NewErrParamRequired("Application")) } if s.Application != nil && len(*s.Application) < 1 { invalidParams.Add(request.NewErrParamMinLen("Application", 1)) } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApplication sets the Application field's value. func (s *ListAssociatedAttributeGroupsInput) SetApplication(v string) *ListAssociatedAttributeGroupsInput { s.Application = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListAssociatedAttributeGroupsInput) SetMaxResults(v int64) *ListAssociatedAttributeGroupsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListAssociatedAttributeGroupsInput) SetNextToken(v string) *ListAssociatedAttributeGroupsInput { s.NextToken = &v return s } type ListAssociatedAttributeGroupsOutput struct { _ struct{} `type:"structure"` // A list of attribute group IDs. AttributeGroups []*string `locationName:"attributeGroups" type:"list"` // The token to use to get the next page of results after a previous API call. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation func (s ListAssociatedAttributeGroupsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListAssociatedAttributeGroupsOutput) GoString() string { return s.String() } // SetAttributeGroups sets the AttributeGroups field's value. func (s *ListAssociatedAttributeGroupsOutput) SetAttributeGroups(v []*string) *ListAssociatedAttributeGroupsOutput { s.AttributeGroups = v return s } // SetNextToken sets the NextToken field's value. func (s *ListAssociatedAttributeGroupsOutput) SetNextToken(v string) *ListAssociatedAttributeGroupsOutput { s.NextToken = &v return s } type ListAssociatedResourcesInput struct { _ struct{} `type:"structure"` // The name or ID of the application. // // Application is a required field Application *string `location:"uri" locationName:"application" min:"1" type:"string" required:"true"` // The upper bound of the number of results to return (cannot exceed 25). If // this parameter is omitted, it defaults to 25. This value is optional. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // The token to use to get the next page of results after a previous API call. NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation func (s ListAssociatedResourcesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListAssociatedResourcesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListAssociatedResourcesInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListAssociatedResourcesInput"} if s.Application == nil { invalidParams.Add(request.NewErrParamRequired("Application")) } if s.Application != nil && len(*s.Application) < 1 { invalidParams.Add(request.NewErrParamMinLen("Application", 1)) } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApplication sets the Application field's value. func (s *ListAssociatedResourcesInput) SetApplication(v string) *ListAssociatedResourcesInput { s.Application = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListAssociatedResourcesInput) SetMaxResults(v int64) *ListAssociatedResourcesInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListAssociatedResourcesInput) SetNextToken(v string) *ListAssociatedResourcesInput { s.NextToken = &v return s } type ListAssociatedResourcesOutput struct { _ struct{} `type:"structure"` // The token to use to get the next page of results after a previous API call. NextToken *string `locationName:"nextToken" min:"1" type:"string"` // Information about the resources. Resources []*ResourceInfo `locationName:"resources" type:"list"` } // String returns the string representation func (s ListAssociatedResourcesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListAssociatedResourcesOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *ListAssociatedResourcesOutput) SetNextToken(v string) *ListAssociatedResourcesOutput { s.NextToken = &v return s } // SetResources sets the Resources field's value. func (s *ListAssociatedResourcesOutput) SetResources(v []*ResourceInfo) *ListAssociatedResourcesOutput { s.Resources = v return s } type ListAttributeGroupsInput struct { _ struct{} `type:"structure"` // The upper bound of the number of results to return (cannot exceed 25). If // this parameter is omitted, it defaults to 25. This value is optional. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // The token to use to get the next page of results after a previous API call. NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation func (s ListAttributeGroupsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListAttributeGroupsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListAttributeGroupsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListAttributeGroupsInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxResults sets the MaxResults field's value. func (s *ListAttributeGroupsInput) SetMaxResults(v int64) *ListAttributeGroupsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListAttributeGroupsInput) SetNextToken(v string) *ListAttributeGroupsInput { s.NextToken = &v return s } type ListAttributeGroupsOutput struct { _ struct{} `type:"structure"` // This list of attribute groups. AttributeGroups []*AttributeGroupSummary `locationName:"attributeGroups" type:"list"` // The token to use to get the next page of results after a previous API call. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation func (s ListAttributeGroupsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListAttributeGroupsOutput) GoString() string { return s.String() } // SetAttributeGroups sets the AttributeGroups field's value. func (s *ListAttributeGroupsOutput) SetAttributeGroups(v []*AttributeGroupSummary) *ListAttributeGroupsOutput { s.AttributeGroups = v return s } // SetNextToken sets the NextToken field's value. func (s *ListAttributeGroupsOutput) SetNextToken(v string) *ListAttributeGroupsOutput { s.NextToken = &v return s } type ListTagsForResourceInput struct { _ struct{} `type:"structure"` // The Amazon resource name (ARN) that specifies the resource. // // ResourceArn is a required field ResourceArn *string `location:"uri" locationName:"resourceArn" min:"1" type:"string" required:"true"` } // String returns the string representation func (s ListTagsForResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListTagsForResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListTagsForResourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} if s.ResourceArn == nil { invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetResourceArn sets the ResourceArn field's value. func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { s.ResourceArn = &v return s } type ListTagsForResourceOutput struct { _ struct{} `type:"structure"` // The tags on the resource. Tags map[string]*string `locationName:"tags" type:"map"` } // String returns the string representation func (s ListTagsForResourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListTagsForResourceOutput) GoString() string { return s.String() } // SetTags sets the Tags field's value. func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput { s.Tags = v return s } // Information about the resource. type ResourceInfo struct { _ struct{} `type:"structure"` // The Amazon resource name (ARN) that specifies the resource across services. Arn *string `locationName:"arn" type:"string"` // The name of the resource. Name *string `locationName:"name" min:"1" type:"string"` } // String returns the string representation func (s ResourceInfo) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ResourceInfo) GoString() string { return s.String() } // SetArn sets the Arn field's value. func (s *ResourceInfo) SetArn(v string) *ResourceInfo { s.Arn = &v return s } // SetName sets the Name field's value. func (s *ResourceInfo) SetName(v string) *ResourceInfo { s.Name = &v return s } // The specified resource does not exist. type ResourceNotFoundException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s ResourceNotFoundException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ResourceNotFoundException) GoString() string { return s.String() } func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { return &ResourceNotFoundException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ResourceNotFoundException) Code() string { return "ResourceNotFoundException" } // Message returns the exception's message. func (s *ResourceNotFoundException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ResourceNotFoundException) OrigErr() error { return nil } func (s *ResourceNotFoundException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ResourceNotFoundException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ResourceNotFoundException) RequestID() string { return s.RespMetadata.RequestID } // The maximum number of resources per account has been reached. type ServiceQuotaExceededException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s ServiceQuotaExceededException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ServiceQuotaExceededException) GoString() string { return s.String() } func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error { return &ServiceQuotaExceededException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ServiceQuotaExceededException) Code() string { return "ServiceQuotaExceededException" } // Message returns the exception's message. func (s *ServiceQuotaExceededException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ServiceQuotaExceededException) OrigErr() error { return nil } func (s *ServiceQuotaExceededException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ServiceQuotaExceededException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ServiceQuotaExceededException) RequestID() string { return s.RespMetadata.RequestID } type SyncResourceInput struct { _ struct{} `type:"structure"` // An entity you can work with and specify with a name or ID. Examples include // an Amazon EC2 instance, an AWS CloudFormation stack, or an Amazon S3 bucket. // // Resource is a required field Resource *string `location:"uri" locationName:"resource" min:"1" type:"string" required:"true"` // The type of resource of which the application will be associated. // // ResourceType is a required field ResourceType *string `location:"uri" locationName:"resourceType" type:"string" required:"true" enum:"ResourceType"` } // String returns the string representation func (s SyncResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s SyncResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *SyncResourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "SyncResourceInput"} if s.Resource == nil { invalidParams.Add(request.NewErrParamRequired("Resource")) } if s.Resource != nil && len(*s.Resource) < 1 { invalidParams.Add(request.NewErrParamMinLen("Resource", 1)) } if s.ResourceType == nil { invalidParams.Add(request.NewErrParamRequired("ResourceType")) } if s.ResourceType != nil && len(*s.ResourceType) < 1 { invalidParams.Add(request.NewErrParamMinLen("ResourceType", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetResource sets the Resource field's value. func (s *SyncResourceInput) SetResource(v string) *SyncResourceInput { s.Resource = &v return s } // SetResourceType sets the ResourceType field's value. func (s *SyncResourceInput) SetResourceType(v string) *SyncResourceInput { s.ResourceType = &v return s } type SyncResourceOutput struct { _ struct{} `type:"structure"` // The results of the output if an application is associated with an ARN value, // which could be syncStarted or None. ActionTaken *string `locationName:"actionTaken" type:"string" enum:"SyncAction"` // The Amazon resource name (ARN) that specifies the application. ApplicationArn *string `locationName:"applicationArn" type:"string"` // The Amazon resource name (ARN) that specifies the resource. ResourceArn *string `locationName:"resourceArn" min:"1" type:"string"` } // String returns the string representation func (s SyncResourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s SyncResourceOutput) GoString() string { return s.String() } // SetActionTaken sets the ActionTaken field's value. func (s *SyncResourceOutput) SetActionTaken(v string) *SyncResourceOutput { s.ActionTaken = &v return s } // SetApplicationArn sets the ApplicationArn field's value. func (s *SyncResourceOutput) SetApplicationArn(v string) *SyncResourceOutput { s.ApplicationArn = &v return s } // SetResourceArn sets the ResourceArn field's value. func (s *SyncResourceOutput) SetResourceArn(v string) *SyncResourceOutput { s.ResourceArn = &v return s } type TagResourceInput struct { _ struct{} `type:"structure"` // The Amazon resource name (ARN) that specifies the resource. // // ResourceArn is a required field ResourceArn *string `location:"uri" locationName:"resourceArn" min:"1" type:"string" required:"true"` // The new or modified tags for the resource. // // Tags is a required field Tags map[string]*string `locationName:"tags" type:"map" required:"true"` } // String returns the string representation func (s TagResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TagResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *TagResourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} if s.ResourceArn == nil { invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) } if s.Tags == nil { invalidParams.Add(request.NewErrParamRequired("Tags")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetResourceArn sets the ResourceArn field's value. func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { s.ResourceArn = &v return s } // SetTags sets the Tags field's value. func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput { s.Tags = v return s } type TagResourceOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s TagResourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TagResourceOutput) GoString() string { return s.String() } type UntagResourceInput struct { _ struct{} `type:"structure"` // The Amazon resource name (ARN) that specifies the resource. // // ResourceArn is a required field ResourceArn *string `location:"uri" locationName:"resourceArn" min:"1" type:"string" required:"true"` // A list of the tag keys to remove from the specified resource. // // TagKeys is a required field TagKeys []*string `location:"querystring" locationName:"tagKeys" type:"list" required:"true"` } // String returns the string representation func (s UntagResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UntagResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UntagResourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} if s.ResourceArn == nil { invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) } if s.TagKeys == nil { invalidParams.Add(request.NewErrParamRequired("TagKeys")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetResourceArn sets the ResourceArn field's value. func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { s.ResourceArn = &v return s } // SetTagKeys sets the TagKeys field's value. func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { s.TagKeys = v return s } type UntagResourceOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s UntagResourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UntagResourceOutput) GoString() string { return s.String() } type UpdateApplicationInput struct { _ struct{} `type:"structure"` // The name or ID of the application that will be updated. // // Application is a required field Application *string `location:"uri" locationName:"application" min:"1" type:"string" required:"true"` // The new description of the application. Description *string `locationName:"description" type:"string"` // The new name of the application. The name must be unique in the region in // which you are updating the application. Name *string `locationName:"name" min:"1" type:"string"` } // String returns the string representation func (s UpdateApplicationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateApplicationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateApplicationInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateApplicationInput"} if s.Application == nil { invalidParams.Add(request.NewErrParamRequired("Application")) } if s.Application != nil && len(*s.Application) < 1 { invalidParams.Add(request.NewErrParamMinLen("Application", 1)) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApplication sets the Application field's value. func (s *UpdateApplicationInput) SetApplication(v string) *UpdateApplicationInput { s.Application = &v return s } // SetDescription sets the Description field's value. func (s *UpdateApplicationInput) SetDescription(v string) *UpdateApplicationInput { s.Description = &v return s } // SetName sets the Name field's value. func (s *UpdateApplicationInput) SetName(v string) *UpdateApplicationInput { s.Name = &v return s } type UpdateApplicationOutput struct { _ struct{} `type:"structure"` // The updated information of the application. Application *Application `locationName:"application" type:"structure"` } // String returns the string representation func (s UpdateApplicationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateApplicationOutput) GoString() string { return s.String() } // SetApplication sets the Application field's value. func (s *UpdateApplicationOutput) SetApplication(v *Application) *UpdateApplicationOutput { s.Application = v return s } type UpdateAttributeGroupInput struct { _ struct{} `type:"structure"` // The name or ID of the attribute group that holds the attributes to describe // the application. // // AttributeGroup is a required field AttributeGroup *string `location:"uri" locationName:"attributeGroup" min:"1" type:"string" required:"true"` // A JSON string in the form of nested key-value pairs that represent the attributes // in the group and describes an application and its components. Attributes *string `locationName:"attributes" min:"1" type:"string"` // The description of the attribute group that the user provides. Description *string `locationName:"description" type:"string"` // The new name of the attribute group. The name must be unique in the region // in which you are updating the attribute group. Name *string `locationName:"name" min:"1" type:"string"` } // String returns the string representation func (s UpdateAttributeGroupInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateAttributeGroupInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateAttributeGroupInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateAttributeGroupInput"} if s.AttributeGroup == nil { invalidParams.Add(request.NewErrParamRequired("AttributeGroup")) } if s.AttributeGroup != nil && len(*s.AttributeGroup) < 1 { invalidParams.Add(request.NewErrParamMinLen("AttributeGroup", 1)) } if s.Attributes != nil && len(*s.Attributes) < 1 { invalidParams.Add(request.NewErrParamMinLen("Attributes", 1)) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAttributeGroup sets the AttributeGroup field's value. func (s *UpdateAttributeGroupInput) SetAttributeGroup(v string) *UpdateAttributeGroupInput { s.AttributeGroup = &v return s } // SetAttributes sets the Attributes field's value. func (s *UpdateAttributeGroupInput) SetAttributes(v string) *UpdateAttributeGroupInput { s.Attributes = &v return s } // SetDescription sets the Description field's value. func (s *UpdateAttributeGroupInput) SetDescription(v string) *UpdateAttributeGroupInput { s.Description = &v return s } // SetName sets the Name field's value. func (s *UpdateAttributeGroupInput) SetName(v string) *UpdateAttributeGroupInput { s.Name = &v return s } type UpdateAttributeGroupOutput struct { _ struct{} `type:"structure"` // The updated information of the attribute group. AttributeGroup *AttributeGroup `locationName:"attributeGroup" type:"structure"` } // String returns the string representation func (s UpdateAttributeGroupOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateAttributeGroupOutput) GoString() string { return s.String() } // SetAttributeGroup sets the AttributeGroup field's value. func (s *UpdateAttributeGroupOutput) SetAttributeGroup(v *AttributeGroup) *UpdateAttributeGroupOutput { s.AttributeGroup = v return s } // The request has invalid or missing parameters. type ValidationException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s ValidationException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ValidationException) GoString() string { return s.String() } func newErrorValidationException(v protocol.ResponseMetadata) error { return &ValidationException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ValidationException) Code() string { return "ValidationException" } // Message returns the exception's message. func (s *ValidationException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ValidationException) OrigErr() error { return nil } func (s *ValidationException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ValidationException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ValidationException) RequestID() string { return s.RespMetadata.RequestID } const ( // ResourceTypeCfnStack is a ResourceType enum value ResourceTypeCfnStack = "CFN_STACK" ) // ResourceType_Values returns all elements of the ResourceType enum func ResourceType_Values() []string { return []string{ ResourceTypeCfnStack, } } const ( // SyncActionStartSync is a SyncAction enum value SyncActionStartSync = "START_SYNC" // SyncActionNoAction is a SyncAction enum value SyncActionNoAction = "NO_ACTION" ) // SyncAction_Values returns all elements of the SyncAction enum func SyncAction_Values() []string { return []string{ SyncActionStartSync, SyncActionNoAction, } }
4,489
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package appregistry provides the client and types for making API // requests to AWS Service Catalog App Registry. // // AWS Service Catalog AppRegistry enables organizations to understand the application // context of their AWS resources. AppRegistry provides a repository of your // applications, their resources, and the application metadata that you use // within your enterprise. // // See https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24 for more information on this service. // // See appregistry package documentation for more information. // https://docs.aws.amazon.com/sdk-for-go/api/service/appregistry/ // // Using the Client // // To contact AWS Service Catalog App Registry 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 Service Catalog App Registry client AppRegistry for more // information on creating client for this service. // https://docs.aws.amazon.com/sdk-for-go/api/service/appregistry/#New package appregistry
32
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package appregistry import ( "github.com/aws/aws-sdk-go/private/protocol" ) const ( // ErrCodeConflictException for service response error code // "ConflictException". // // There was a conflict when processing the request (for example, a resource // with the given name already exists within the account). ErrCodeConflictException = "ConflictException" // ErrCodeInternalServerException for service response error code // "InternalServerException". // // The service is experiencing internal problems. ErrCodeInternalServerException = "InternalServerException" // ErrCodeResourceNotFoundException for service response error code // "ResourceNotFoundException". // // The specified resource does not exist. ErrCodeResourceNotFoundException = "ResourceNotFoundException" // ErrCodeServiceQuotaExceededException for service response error code // "ServiceQuotaExceededException". // // The maximum number of resources per account has been reached. ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException" // ErrCodeValidationException for service response error code // "ValidationException". // // The request has invalid or missing parameters. ErrCodeValidationException = "ValidationException" ) var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "ConflictException": newErrorConflictException, "InternalServerException": newErrorInternalServerException, "ResourceNotFoundException": newErrorResourceNotFoundException, "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, "ValidationException": newErrorValidationException, }
50
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package appregistry 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" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) // AppRegistry provides the API operation methods for making requests to // AWS Service Catalog App Registry. See this package's package overview docs // for details on the service. // // AppRegistry methods are safe to use concurrently. It is not safe to // modify mutate any of the struct's properties though. type AppRegistry 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 = "Service Catalog AppRegistry" // Name of service. EndpointsID = "servicecatalog-appregistry" // ID to lookup a service endpoint with. ServiceID = "Service Catalog AppRegistry" // ServiceID is a unique identifier of a specific service. ) // New creates a new instance of the AppRegistry 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: // mySession := session.Must(session.NewSession()) // // // Create a AppRegistry client from just a session. // svc := appregistry.New(mySession) // // // Create a AppRegistry client with additional configuration // svc := appregistry.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *AppRegistry { c := p.ClientConfig(EndpointsID, cfgs...) if c.SigningNameDerived || len(c.SigningName) == 0 { c.SigningName = "servicecatalog" } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *AppRegistry { svc := &AppRegistry{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, ServiceID: ServiceID, SigningName: signingName, SigningRegion: signingRegion, PartitionID: partitionID, Endpoint: endpoint, APIVersion: "2020-06-24", }, 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( protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), ) // Run custom client initialization if present if initClient != nil { initClient(svc.Client) } return svc } // newRequest creates a new request for a AppRegistry operation and runs any // custom request initialization. func (c *AppRegistry) 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 }
105
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package appregistryiface provides an interface to enable mocking the AWS Service Catalog App Registry 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 appregistryiface import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/service/appregistry" ) // AppRegistryAPI provides an interface to enable mocking the // appregistry.AppRegistry 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 Service Catalog App Registry. // func myFunc(svc appregistryiface.AppRegistryAPI) bool { // // Make svc.AssociateAttributeGroup request // } // // func main() { // sess := session.New() // svc := appregistry.New(sess) // // myFunc(svc) // } // // In your _test.go file: // // // Define a mock struct to be used in your unit tests of myFunc. // type mockAppRegistryClient struct { // appregistryiface.AppRegistryAPI // } // func (m *mockAppRegistryClient) AssociateAttributeGroup(input *appregistry.AssociateAttributeGroupInput) (*appregistry.AssociateAttributeGroupOutput, error) { // // mock response/functionality // } // // func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockAppRegistryClient{} // // 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 AppRegistryAPI interface { AssociateAttributeGroup(*appregistry.AssociateAttributeGroupInput) (*appregistry.AssociateAttributeGroupOutput, error) AssociateAttributeGroupWithContext(aws.Context, *appregistry.AssociateAttributeGroupInput, ...request.Option) (*appregistry.AssociateAttributeGroupOutput, error) AssociateAttributeGroupRequest(*appregistry.AssociateAttributeGroupInput) (*request.Request, *appregistry.AssociateAttributeGroupOutput) AssociateResource(*appregistry.AssociateResourceInput) (*appregistry.AssociateResourceOutput, error) AssociateResourceWithContext(aws.Context, *appregistry.AssociateResourceInput, ...request.Option) (*appregistry.AssociateResourceOutput, error) AssociateResourceRequest(*appregistry.AssociateResourceInput) (*request.Request, *appregistry.AssociateResourceOutput) CreateApplication(*appregistry.CreateApplicationInput) (*appregistry.CreateApplicationOutput, error) CreateApplicationWithContext(aws.Context, *appregistry.CreateApplicationInput, ...request.Option) (*appregistry.CreateApplicationOutput, error) CreateApplicationRequest(*appregistry.CreateApplicationInput) (*request.Request, *appregistry.CreateApplicationOutput) CreateAttributeGroup(*appregistry.CreateAttributeGroupInput) (*appregistry.CreateAttributeGroupOutput, error) CreateAttributeGroupWithContext(aws.Context, *appregistry.CreateAttributeGroupInput, ...request.Option) (*appregistry.CreateAttributeGroupOutput, error) CreateAttributeGroupRequest(*appregistry.CreateAttributeGroupInput) (*request.Request, *appregistry.CreateAttributeGroupOutput) DeleteApplication(*appregistry.DeleteApplicationInput) (*appregistry.DeleteApplicationOutput, error) DeleteApplicationWithContext(aws.Context, *appregistry.DeleteApplicationInput, ...request.Option) (*appregistry.DeleteApplicationOutput, error) DeleteApplicationRequest(*appregistry.DeleteApplicationInput) (*request.Request, *appregistry.DeleteApplicationOutput) DeleteAttributeGroup(*appregistry.DeleteAttributeGroupInput) (*appregistry.DeleteAttributeGroupOutput, error) DeleteAttributeGroupWithContext(aws.Context, *appregistry.DeleteAttributeGroupInput, ...request.Option) (*appregistry.DeleteAttributeGroupOutput, error) DeleteAttributeGroupRequest(*appregistry.DeleteAttributeGroupInput) (*request.Request, *appregistry.DeleteAttributeGroupOutput) DisassociateAttributeGroup(*appregistry.DisassociateAttributeGroupInput) (*appregistry.DisassociateAttributeGroupOutput, error) DisassociateAttributeGroupWithContext(aws.Context, *appregistry.DisassociateAttributeGroupInput, ...request.Option) (*appregistry.DisassociateAttributeGroupOutput, error) DisassociateAttributeGroupRequest(*appregistry.DisassociateAttributeGroupInput) (*request.Request, *appregistry.DisassociateAttributeGroupOutput) DisassociateResource(*appregistry.DisassociateResourceInput) (*appregistry.DisassociateResourceOutput, error) DisassociateResourceWithContext(aws.Context, *appregistry.DisassociateResourceInput, ...request.Option) (*appregistry.DisassociateResourceOutput, error) DisassociateResourceRequest(*appregistry.DisassociateResourceInput) (*request.Request, *appregistry.DisassociateResourceOutput) GetApplication(*appregistry.GetApplicationInput) (*appregistry.GetApplicationOutput, error) GetApplicationWithContext(aws.Context, *appregistry.GetApplicationInput, ...request.Option) (*appregistry.GetApplicationOutput, error) GetApplicationRequest(*appregistry.GetApplicationInput) (*request.Request, *appregistry.GetApplicationOutput) GetAttributeGroup(*appregistry.GetAttributeGroupInput) (*appregistry.GetAttributeGroupOutput, error) GetAttributeGroupWithContext(aws.Context, *appregistry.GetAttributeGroupInput, ...request.Option) (*appregistry.GetAttributeGroupOutput, error) GetAttributeGroupRequest(*appregistry.GetAttributeGroupInput) (*request.Request, *appregistry.GetAttributeGroupOutput) ListApplications(*appregistry.ListApplicationsInput) (*appregistry.ListApplicationsOutput, error) ListApplicationsWithContext(aws.Context, *appregistry.ListApplicationsInput, ...request.Option) (*appregistry.ListApplicationsOutput, error) ListApplicationsRequest(*appregistry.ListApplicationsInput) (*request.Request, *appregistry.ListApplicationsOutput) ListApplicationsPages(*appregistry.ListApplicationsInput, func(*appregistry.ListApplicationsOutput, bool) bool) error ListApplicationsPagesWithContext(aws.Context, *appregistry.ListApplicationsInput, func(*appregistry.ListApplicationsOutput, bool) bool, ...request.Option) error ListAssociatedAttributeGroups(*appregistry.ListAssociatedAttributeGroupsInput) (*appregistry.ListAssociatedAttributeGroupsOutput, error) ListAssociatedAttributeGroupsWithContext(aws.Context, *appregistry.ListAssociatedAttributeGroupsInput, ...request.Option) (*appregistry.ListAssociatedAttributeGroupsOutput, error) ListAssociatedAttributeGroupsRequest(*appregistry.ListAssociatedAttributeGroupsInput) (*request.Request, *appregistry.ListAssociatedAttributeGroupsOutput) ListAssociatedAttributeGroupsPages(*appregistry.ListAssociatedAttributeGroupsInput, func(*appregistry.ListAssociatedAttributeGroupsOutput, bool) bool) error ListAssociatedAttributeGroupsPagesWithContext(aws.Context, *appregistry.ListAssociatedAttributeGroupsInput, func(*appregistry.ListAssociatedAttributeGroupsOutput, bool) bool, ...request.Option) error ListAssociatedResources(*appregistry.ListAssociatedResourcesInput) (*appregistry.ListAssociatedResourcesOutput, error) ListAssociatedResourcesWithContext(aws.Context, *appregistry.ListAssociatedResourcesInput, ...request.Option) (*appregistry.ListAssociatedResourcesOutput, error) ListAssociatedResourcesRequest(*appregistry.ListAssociatedResourcesInput) (*request.Request, *appregistry.ListAssociatedResourcesOutput) ListAssociatedResourcesPages(*appregistry.ListAssociatedResourcesInput, func(*appregistry.ListAssociatedResourcesOutput, bool) bool) error ListAssociatedResourcesPagesWithContext(aws.Context, *appregistry.ListAssociatedResourcesInput, func(*appregistry.ListAssociatedResourcesOutput, bool) bool, ...request.Option) error ListAttributeGroups(*appregistry.ListAttributeGroupsInput) (*appregistry.ListAttributeGroupsOutput, error) ListAttributeGroupsWithContext(aws.Context, *appregistry.ListAttributeGroupsInput, ...request.Option) (*appregistry.ListAttributeGroupsOutput, error) ListAttributeGroupsRequest(*appregistry.ListAttributeGroupsInput) (*request.Request, *appregistry.ListAttributeGroupsOutput) ListAttributeGroupsPages(*appregistry.ListAttributeGroupsInput, func(*appregistry.ListAttributeGroupsOutput, bool) bool) error ListAttributeGroupsPagesWithContext(aws.Context, *appregistry.ListAttributeGroupsInput, func(*appregistry.ListAttributeGroupsOutput, bool) bool, ...request.Option) error ListTagsForResource(*appregistry.ListTagsForResourceInput) (*appregistry.ListTagsForResourceOutput, error) ListTagsForResourceWithContext(aws.Context, *appregistry.ListTagsForResourceInput, ...request.Option) (*appregistry.ListTagsForResourceOutput, error) ListTagsForResourceRequest(*appregistry.ListTagsForResourceInput) (*request.Request, *appregistry.ListTagsForResourceOutput) SyncResource(*appregistry.SyncResourceInput) (*appregistry.SyncResourceOutput, error) SyncResourceWithContext(aws.Context, *appregistry.SyncResourceInput, ...request.Option) (*appregistry.SyncResourceOutput, error) SyncResourceRequest(*appregistry.SyncResourceInput) (*request.Request, *appregistry.SyncResourceOutput) TagResource(*appregistry.TagResourceInput) (*appregistry.TagResourceOutput, error) TagResourceWithContext(aws.Context, *appregistry.TagResourceInput, ...request.Option) (*appregistry.TagResourceOutput, error) TagResourceRequest(*appregistry.TagResourceInput) (*request.Request, *appregistry.TagResourceOutput) UntagResource(*appregistry.UntagResourceInput) (*appregistry.UntagResourceOutput, error) UntagResourceWithContext(aws.Context, *appregistry.UntagResourceInput, ...request.Option) (*appregistry.UntagResourceOutput, error) UntagResourceRequest(*appregistry.UntagResourceInput) (*request.Request, *appregistry.UntagResourceOutput) UpdateApplication(*appregistry.UpdateApplicationInput) (*appregistry.UpdateApplicationOutput, error) UpdateApplicationWithContext(aws.Context, *appregistry.UpdateApplicationInput, ...request.Option) (*appregistry.UpdateApplicationOutput, error) UpdateApplicationRequest(*appregistry.UpdateApplicationInput) (*request.Request, *appregistry.UpdateApplicationOutput) UpdateAttributeGroup(*appregistry.UpdateAttributeGroupInput) (*appregistry.UpdateAttributeGroupOutput, error) UpdateAttributeGroupWithContext(aws.Context, *appregistry.UpdateAttributeGroupInput, ...request.Option) (*appregistry.UpdateAttributeGroupOutput, error) UpdateAttributeGroupRequest(*appregistry.UpdateAttributeGroupInput) (*request.Request, *appregistry.UpdateAttributeGroupOutput) } var _ AppRegistryAPI = (*appregistry.AppRegistry)(nil)
157
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package apprunner import ( "fmt" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) const opAssociateCustomDomain = "AssociateCustomDomain" // AssociateCustomDomainRequest generates a "aws/request.Request" representing the // client's request for the AssociateCustomDomain operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See AssociateCustomDomain for more information on using the AssociateCustomDomain // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the AssociateCustomDomainRequest method. // req, resp := client.AssociateCustomDomainRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/AssociateCustomDomain func (c *AppRunner) AssociateCustomDomainRequest(input *AssociateCustomDomainInput) (req *request.Request, output *AssociateCustomDomainOutput) { op := &request.Operation{ Name: opAssociateCustomDomain, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &AssociateCustomDomainInput{} } output = &AssociateCustomDomainOutput{} req = c.newRequest(op, input, output) return } // AssociateCustomDomain API operation for AWS App Runner. // // Associate your own domain name with the AWS App Runner subdomain URL of your // App Runner service. // // After you call AssociateCustomDomain and receive a successful response, use // the information in the CustomDomain record that's returned to add CNAME records // to your Domain Name System (DNS). For each mapped domain name, add a mapping // to the target App Runner subdomain and one or more certificate validation // records. App Runner then performs DNS validation to verify that you own or // control the domain name that you associated. App Runner tracks domain validity // in a certificate stored in AWS Certificate Manager (ACM) (https://docs.aws.amazon.com/acm/latest/userguide). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS App Runner's // API operation AssociateCustomDomain for usage and error information. // // Returned Error Types: // * InvalidRequestException // One or more input parameters aren't valid. Refer to the API action's document // page, correct the input parameters, and try the action again. // // * InternalServiceErrorException // An unexpected service exception occurred. // // * InvalidStateException // You can't perform this action when the resource is in its current state. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/AssociateCustomDomain func (c *AppRunner) AssociateCustomDomain(input *AssociateCustomDomainInput) (*AssociateCustomDomainOutput, error) { req, out := c.AssociateCustomDomainRequest(input) return out, req.Send() } // AssociateCustomDomainWithContext is the same as AssociateCustomDomain with the addition of // the ability to pass a context and additional request options. // // See AssociateCustomDomain for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRunner) AssociateCustomDomainWithContext(ctx aws.Context, input *AssociateCustomDomainInput, opts ...request.Option) (*AssociateCustomDomainOutput, error) { req, out := c.AssociateCustomDomainRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateAutoScalingConfiguration = "CreateAutoScalingConfiguration" // CreateAutoScalingConfigurationRequest generates a "aws/request.Request" representing the // client's request for the CreateAutoScalingConfiguration operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateAutoScalingConfiguration for more information on using the CreateAutoScalingConfiguration // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateAutoScalingConfigurationRequest method. // req, resp := client.CreateAutoScalingConfigurationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateAutoScalingConfiguration func (c *AppRunner) CreateAutoScalingConfigurationRequest(input *CreateAutoScalingConfigurationInput) (req *request.Request, output *CreateAutoScalingConfigurationOutput) { op := &request.Operation{ Name: opCreateAutoScalingConfiguration, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateAutoScalingConfigurationInput{} } output = &CreateAutoScalingConfigurationOutput{} req = c.newRequest(op, input, output) return } // CreateAutoScalingConfiguration API operation for AWS App Runner. // // Create an AWS App Runner automatic scaling configuration resource. App Runner // requires this resource when you create App Runner services that require non-default // auto scaling settings. You can share an auto scaling configuration across // multiple services. // // Create multiple revisions of a configuration by using the same AutoScalingConfigurationName // and different AutoScalingConfigurationRevision values. When you create a // service, you can set it to use the latest active revision of an auto scaling // configuration or a specific revision. // // Configure a higher MinSize to increase the spread of your App Runner service // over more Availability Zones in the AWS Region. The tradeoff is a higher // minimal cost. // // Configure a lower MaxSize to control your cost. The tradeoff is lower responsiveness // during peak demand. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS App Runner's // API operation CreateAutoScalingConfiguration for usage and error information. // // Returned Error Types: // * InvalidRequestException // One or more input parameters aren't valid. Refer to the API action's document // page, correct the input parameters, and try the action again. // // * InternalServiceErrorException // An unexpected service exception occurred. // // * ServiceQuotaExceededException // App Runner can't create this resource. You've reached your account quota // for this resource type. // // For App Runner per-resource quotas, see AWS App Runner endpoints and quotas // (https://docs.aws.amazon.com/general/latest/gr/apprunner.html) in the AWS // General Reference. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateAutoScalingConfiguration func (c *AppRunner) CreateAutoScalingConfiguration(input *CreateAutoScalingConfigurationInput) (*CreateAutoScalingConfigurationOutput, error) { req, out := c.CreateAutoScalingConfigurationRequest(input) return out, req.Send() } // CreateAutoScalingConfigurationWithContext is the same as CreateAutoScalingConfiguration with the addition of // the ability to pass a context and additional request options. // // See CreateAutoScalingConfiguration for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRunner) CreateAutoScalingConfigurationWithContext(ctx aws.Context, input *CreateAutoScalingConfigurationInput, opts ...request.Option) (*CreateAutoScalingConfigurationOutput, error) { req, out := c.CreateAutoScalingConfigurationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateConnection = "CreateConnection" // CreateConnectionRequest generates a "aws/request.Request" representing the // client's request for the CreateConnection operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateConnection for more information on using the CreateConnection // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateConnectionRequest method. // req, resp := client.CreateConnectionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateConnection func (c *AppRunner) CreateConnectionRequest(input *CreateConnectionInput) (req *request.Request, output *CreateConnectionOutput) { op := &request.Operation{ Name: opCreateConnection, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateConnectionInput{} } output = &CreateConnectionOutput{} req = c.newRequest(op, input, output) return } // CreateConnection API operation for AWS App Runner. // // Create an AWS App Runner connection resource. App Runner requires a connection // resource when you create App Runner services that access private repositories // from certain third-party providers. You can share a connection across multiple // services. // // A connection resource is needed to access GitHub repositories. GitHub requires // a user interface approval process through the App Runner console before you // can use the connection. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS App Runner's // API operation CreateConnection for usage and error information. // // Returned Error Types: // * InvalidRequestException // One or more input parameters aren't valid. Refer to the API action's document // page, correct the input parameters, and try the action again. // // * InternalServiceErrorException // An unexpected service exception occurred. // // * ServiceQuotaExceededException // App Runner can't create this resource. You've reached your account quota // for this resource type. // // For App Runner per-resource quotas, see AWS App Runner endpoints and quotas // (https://docs.aws.amazon.com/general/latest/gr/apprunner.html) in the AWS // General Reference. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateConnection func (c *AppRunner) CreateConnection(input *CreateConnectionInput) (*CreateConnectionOutput, error) { req, out := c.CreateConnectionRequest(input) return out, req.Send() } // CreateConnectionWithContext is the same as CreateConnection with the addition of // the ability to pass a context and additional request options. // // See CreateConnection for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRunner) CreateConnectionWithContext(ctx aws.Context, input *CreateConnectionInput, opts ...request.Option) (*CreateConnectionOutput, error) { req, out := c.CreateConnectionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateService = "CreateService" // CreateServiceRequest generates a "aws/request.Request" representing the // client's request for the CreateService operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateService for more information on using the CreateService // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateServiceRequest method. // req, resp := client.CreateServiceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateService func (c *AppRunner) CreateServiceRequest(input *CreateServiceInput) (req *request.Request, output *CreateServiceOutput) { op := &request.Operation{ Name: opCreateService, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateServiceInput{} } output = &CreateServiceOutput{} req = c.newRequest(op, input, output) return } // CreateService API operation for AWS App Runner. // // Create an AWS App Runner service. After the service is created, the action // also automatically starts a deployment. // // This is an asynchronous operation. On a successful call, you can use the // returned OperationId and the ListOperations (https://docs.aws.amazon.com/apprunner/latest/api/API_ListOperations.html) // call to track the operation's progress. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS App Runner's // API operation CreateService for usage and error information. // // Returned Error Types: // * InvalidRequestException // One or more input parameters aren't valid. Refer to the API action's document // page, correct the input parameters, and try the action again. // // * InternalServiceErrorException // An unexpected service exception occurred. // // * ServiceQuotaExceededException // App Runner can't create this resource. You've reached your account quota // for this resource type. // // For App Runner per-resource quotas, see AWS App Runner endpoints and quotas // (https://docs.aws.amazon.com/general/latest/gr/apprunner.html) in the AWS // General Reference. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateService func (c *AppRunner) CreateService(input *CreateServiceInput) (*CreateServiceOutput, error) { req, out := c.CreateServiceRequest(input) return out, req.Send() } // CreateServiceWithContext is the same as CreateService with the addition of // the ability to pass a context and additional request options. // // See CreateService for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRunner) CreateServiceWithContext(ctx aws.Context, input *CreateServiceInput, opts ...request.Option) (*CreateServiceOutput, error) { req, out := c.CreateServiceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteAutoScalingConfiguration = "DeleteAutoScalingConfiguration" // DeleteAutoScalingConfigurationRequest generates a "aws/request.Request" representing the // client's request for the DeleteAutoScalingConfiguration operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteAutoScalingConfiguration for more information on using the DeleteAutoScalingConfiguration // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteAutoScalingConfigurationRequest method. // req, resp := client.DeleteAutoScalingConfigurationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteAutoScalingConfiguration func (c *AppRunner) DeleteAutoScalingConfigurationRequest(input *DeleteAutoScalingConfigurationInput) (req *request.Request, output *DeleteAutoScalingConfigurationOutput) { op := &request.Operation{ Name: opDeleteAutoScalingConfiguration, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteAutoScalingConfigurationInput{} } output = &DeleteAutoScalingConfigurationOutput{} req = c.newRequest(op, input, output) return } // DeleteAutoScalingConfiguration API operation for AWS App Runner. // // Delete an AWS App Runner automatic scaling configuration resource. You can // delete a specific revision or the latest active revision. You can't delete // a configuration that's used by one or more App Runner services. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS App Runner's // API operation DeleteAutoScalingConfiguration for usage and error information. // // Returned Error Types: // * InvalidRequestException // One or more input parameters aren't valid. Refer to the API action's document // page, correct the input parameters, and try the action again. // // * InternalServiceErrorException // An unexpected service exception occurred. // // * ResourceNotFoundException // A resource doesn't exist for the specified Amazon Resource Name (ARN) in // your AWS account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteAutoScalingConfiguration func (c *AppRunner) DeleteAutoScalingConfiguration(input *DeleteAutoScalingConfigurationInput) (*DeleteAutoScalingConfigurationOutput, error) { req, out := c.DeleteAutoScalingConfigurationRequest(input) return out, req.Send() } // DeleteAutoScalingConfigurationWithContext is the same as DeleteAutoScalingConfiguration with the addition of // the ability to pass a context and additional request options. // // See DeleteAutoScalingConfiguration for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRunner) DeleteAutoScalingConfigurationWithContext(ctx aws.Context, input *DeleteAutoScalingConfigurationInput, opts ...request.Option) (*DeleteAutoScalingConfigurationOutput, error) { req, out := c.DeleteAutoScalingConfigurationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteConnection = "DeleteConnection" // DeleteConnectionRequest generates a "aws/request.Request" representing the // client's request for the DeleteConnection operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteConnection for more information on using the DeleteConnection // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteConnectionRequest method. // req, resp := client.DeleteConnectionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteConnection func (c *AppRunner) DeleteConnectionRequest(input *DeleteConnectionInput) (req *request.Request, output *DeleteConnectionOutput) { op := &request.Operation{ Name: opDeleteConnection, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteConnectionInput{} } output = &DeleteConnectionOutput{} req = c.newRequest(op, input, output) return } // DeleteConnection API operation for AWS App Runner. // // Delete an AWS App Runner connection. You must first ensure that there are // no running App Runner services that use this connection. If there are any, // the DeleteConnection action fails. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS App Runner's // API operation DeleteConnection for usage and error information. // // Returned Error Types: // * InvalidRequestException // One or more input parameters aren't valid. Refer to the API action's document // page, correct the input parameters, and try the action again. // // * ResourceNotFoundException // A resource doesn't exist for the specified Amazon Resource Name (ARN) in // your AWS account. // // * InternalServiceErrorException // An unexpected service exception occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteConnection func (c *AppRunner) DeleteConnection(input *DeleteConnectionInput) (*DeleteConnectionOutput, error) { req, out := c.DeleteConnectionRequest(input) return out, req.Send() } // DeleteConnectionWithContext is the same as DeleteConnection with the addition of // the ability to pass a context and additional request options. // // See DeleteConnection for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRunner) DeleteConnectionWithContext(ctx aws.Context, input *DeleteConnectionInput, opts ...request.Option) (*DeleteConnectionOutput, error) { req, out := c.DeleteConnectionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteService = "DeleteService" // DeleteServiceRequest generates a "aws/request.Request" representing the // client's request for the DeleteService operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteService for more information on using the DeleteService // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteServiceRequest method. // req, resp := client.DeleteServiceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteService func (c *AppRunner) DeleteServiceRequest(input *DeleteServiceInput) (req *request.Request, output *DeleteServiceOutput) { op := &request.Operation{ Name: opDeleteService, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteServiceInput{} } output = &DeleteServiceOutput{} req = c.newRequest(op, input, output) return } // DeleteService API operation for AWS App Runner. // // Delete an AWS App Runner service. // // This is an asynchronous operation. On a successful call, you can use the // returned OperationId and the ListOperations call to track the operation's // progress. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS App Runner's // API operation DeleteService for usage and error information. // // Returned Error Types: // * InvalidRequestException // One or more input parameters aren't valid. Refer to the API action's document // page, correct the input parameters, and try the action again. // // * ResourceNotFoundException // A resource doesn't exist for the specified Amazon Resource Name (ARN) in // your AWS account. // // * InvalidStateException // You can't perform this action when the resource is in its current state. // // * InternalServiceErrorException // An unexpected service exception occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteService func (c *AppRunner) DeleteService(input *DeleteServiceInput) (*DeleteServiceOutput, error) { req, out := c.DeleteServiceRequest(input) return out, req.Send() } // DeleteServiceWithContext is the same as DeleteService with the addition of // the ability to pass a context and additional request options. // // See DeleteService for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRunner) DeleteServiceWithContext(ctx aws.Context, input *DeleteServiceInput, opts ...request.Option) (*DeleteServiceOutput, error) { req, out := c.DeleteServiceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeAutoScalingConfiguration = "DescribeAutoScalingConfiguration" // DescribeAutoScalingConfigurationRequest generates a "aws/request.Request" representing the // client's request for the DescribeAutoScalingConfiguration operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeAutoScalingConfiguration for more information on using the DescribeAutoScalingConfiguration // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeAutoScalingConfigurationRequest method. // req, resp := client.DescribeAutoScalingConfigurationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeAutoScalingConfiguration func (c *AppRunner) DescribeAutoScalingConfigurationRequest(input *DescribeAutoScalingConfigurationInput) (req *request.Request, output *DescribeAutoScalingConfigurationOutput) { op := &request.Operation{ Name: opDescribeAutoScalingConfiguration, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeAutoScalingConfigurationInput{} } output = &DescribeAutoScalingConfigurationOutput{} req = c.newRequest(op, input, output) return } // DescribeAutoScalingConfiguration API operation for AWS App Runner. // // Return a full description of an AWS App Runner automatic scaling configuration // resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS App Runner's // API operation DescribeAutoScalingConfiguration for usage and error information. // // Returned Error Types: // * InvalidRequestException // One or more input parameters aren't valid. Refer to the API action's document // page, correct the input parameters, and try the action again. // // * InternalServiceErrorException // An unexpected service exception occurred. // // * ResourceNotFoundException // A resource doesn't exist for the specified Amazon Resource Name (ARN) in // your AWS account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeAutoScalingConfiguration func (c *AppRunner) DescribeAutoScalingConfiguration(input *DescribeAutoScalingConfigurationInput) (*DescribeAutoScalingConfigurationOutput, error) { req, out := c.DescribeAutoScalingConfigurationRequest(input) return out, req.Send() } // DescribeAutoScalingConfigurationWithContext is the same as DescribeAutoScalingConfiguration with the addition of // the ability to pass a context and additional request options. // // See DescribeAutoScalingConfiguration for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRunner) DescribeAutoScalingConfigurationWithContext(ctx aws.Context, input *DescribeAutoScalingConfigurationInput, opts ...request.Option) (*DescribeAutoScalingConfigurationOutput, error) { req, out := c.DescribeAutoScalingConfigurationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeCustomDomains = "DescribeCustomDomains" // DescribeCustomDomainsRequest generates a "aws/request.Request" representing the // client's request for the DescribeCustomDomains operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeCustomDomains for more information on using the DescribeCustomDomains // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeCustomDomainsRequest method. // req, resp := client.DescribeCustomDomainsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeCustomDomains func (c *AppRunner) DescribeCustomDomainsRequest(input *DescribeCustomDomainsInput) (req *request.Request, output *DescribeCustomDomainsOutput) { op := &request.Operation{ Name: opDescribeCustomDomains, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &DescribeCustomDomainsInput{} } output = &DescribeCustomDomainsOutput{} req = c.newRequest(op, input, output) return } // DescribeCustomDomains API operation for AWS App Runner. // // Return a description of custom domain names that are associated with an AWS // App Runner service. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS App Runner's // API operation DescribeCustomDomains for usage and error information. // // Returned Error Types: // * InvalidRequestException // One or more input parameters aren't valid. Refer to the API action's document // page, correct the input parameters, and try the action again. // // * InternalServiceErrorException // An unexpected service exception occurred. // // * ResourceNotFoundException // A resource doesn't exist for the specified Amazon Resource Name (ARN) in // your AWS account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeCustomDomains func (c *AppRunner) DescribeCustomDomains(input *DescribeCustomDomainsInput) (*DescribeCustomDomainsOutput, error) { req, out := c.DescribeCustomDomainsRequest(input) return out, req.Send() } // DescribeCustomDomainsWithContext is the same as DescribeCustomDomains with the addition of // the ability to pass a context and additional request options. // // See DescribeCustomDomains for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRunner) DescribeCustomDomainsWithContext(ctx aws.Context, input *DescribeCustomDomainsInput, opts ...request.Option) (*DescribeCustomDomainsOutput, error) { req, out := c.DescribeCustomDomainsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // DescribeCustomDomainsPages iterates over the pages of a DescribeCustomDomains operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See DescribeCustomDomains method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a DescribeCustomDomains operation. // pageNum := 0 // err := client.DescribeCustomDomainsPages(params, // func(page *apprunner.DescribeCustomDomainsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *AppRunner) DescribeCustomDomainsPages(input *DescribeCustomDomainsInput, fn func(*DescribeCustomDomainsOutput, bool) bool) error { return c.DescribeCustomDomainsPagesWithContext(aws.BackgroundContext(), input, fn) } // DescribeCustomDomainsPagesWithContext same as DescribeCustomDomainsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRunner) DescribeCustomDomainsPagesWithContext(ctx aws.Context, input *DescribeCustomDomainsInput, fn func(*DescribeCustomDomainsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *DescribeCustomDomainsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.DescribeCustomDomainsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*DescribeCustomDomainsOutput), !p.HasNextPage()) { break } } return p.Err() } const opDescribeService = "DescribeService" // DescribeServiceRequest generates a "aws/request.Request" representing the // client's request for the DescribeService operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeService for more information on using the DescribeService // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeServiceRequest method. // req, resp := client.DescribeServiceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeService func (c *AppRunner) DescribeServiceRequest(input *DescribeServiceInput) (req *request.Request, output *DescribeServiceOutput) { op := &request.Operation{ Name: opDescribeService, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeServiceInput{} } output = &DescribeServiceOutput{} req = c.newRequest(op, input, output) return } // DescribeService API operation for AWS App Runner. // // Return a full description of an AWS App Runner service. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS App Runner's // API operation DescribeService for usage and error information. // // Returned Error Types: // * InvalidRequestException // One or more input parameters aren't valid. Refer to the API action's document // page, correct the input parameters, and try the action again. // // * ResourceNotFoundException // A resource doesn't exist for the specified Amazon Resource Name (ARN) in // your AWS account. // // * InternalServiceErrorException // An unexpected service exception occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeService func (c *AppRunner) DescribeService(input *DescribeServiceInput) (*DescribeServiceOutput, error) { req, out := c.DescribeServiceRequest(input) return out, req.Send() } // DescribeServiceWithContext is the same as DescribeService with the addition of // the ability to pass a context and additional request options. // // See DescribeService for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRunner) DescribeServiceWithContext(ctx aws.Context, input *DescribeServiceInput, opts ...request.Option) (*DescribeServiceOutput, error) { req, out := c.DescribeServiceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDisassociateCustomDomain = "DisassociateCustomDomain" // DisassociateCustomDomainRequest generates a "aws/request.Request" representing the // client's request for the DisassociateCustomDomain operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DisassociateCustomDomain for more information on using the DisassociateCustomDomain // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DisassociateCustomDomainRequest method. // req, resp := client.DisassociateCustomDomainRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DisassociateCustomDomain func (c *AppRunner) DisassociateCustomDomainRequest(input *DisassociateCustomDomainInput) (req *request.Request, output *DisassociateCustomDomainOutput) { op := &request.Operation{ Name: opDisassociateCustomDomain, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DisassociateCustomDomainInput{} } output = &DisassociateCustomDomainOutput{} req = c.newRequest(op, input, output) return } // DisassociateCustomDomain API operation for AWS App Runner. // // Disassociate a custom domain name from an AWS App Runner service. // // Certificates tracking domain validity are associated with a custom domain // and are stored in AWS Certificate Manager (ACM) (https://docs.aws.amazon.com/acm/latest/userguide). // These certificates aren't deleted as part of this action. App Runner delays // certificate deletion for 30 days after a domain is disassociated from your // service. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS App Runner's // API operation DisassociateCustomDomain for usage and error information. // // Returned Error Types: // * InvalidRequestException // One or more input parameters aren't valid. Refer to the API action's document // page, correct the input parameters, and try the action again. // // * InternalServiceErrorException // An unexpected service exception occurred. // // * ResourceNotFoundException // A resource doesn't exist for the specified Amazon Resource Name (ARN) in // your AWS account. // // * InvalidStateException // You can't perform this action when the resource is in its current state. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DisassociateCustomDomain func (c *AppRunner) DisassociateCustomDomain(input *DisassociateCustomDomainInput) (*DisassociateCustomDomainOutput, error) { req, out := c.DisassociateCustomDomainRequest(input) return out, req.Send() } // DisassociateCustomDomainWithContext is the same as DisassociateCustomDomain with the addition of // the ability to pass a context and additional request options. // // See DisassociateCustomDomain for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRunner) DisassociateCustomDomainWithContext(ctx aws.Context, input *DisassociateCustomDomainInput, opts ...request.Option) (*DisassociateCustomDomainOutput, error) { req, out := c.DisassociateCustomDomainRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opListAutoScalingConfigurations = "ListAutoScalingConfigurations" // ListAutoScalingConfigurationsRequest generates a "aws/request.Request" representing the // client's request for the ListAutoScalingConfigurations operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListAutoScalingConfigurations for more information on using the ListAutoScalingConfigurations // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListAutoScalingConfigurationsRequest method. // req, resp := client.ListAutoScalingConfigurationsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListAutoScalingConfigurations func (c *AppRunner) ListAutoScalingConfigurationsRequest(input *ListAutoScalingConfigurationsInput) (req *request.Request, output *ListAutoScalingConfigurationsOutput) { op := &request.Operation{ Name: opListAutoScalingConfigurations, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListAutoScalingConfigurationsInput{} } output = &ListAutoScalingConfigurationsOutput{} req = c.newRequest(op, input, output) return } // ListAutoScalingConfigurations API operation for AWS App Runner. // // Returns a list of AWS App Runner automatic scaling configurations in your // AWS account. You can query the revisions for a specific configuration name // or the revisions for all configurations in your account. You can optionally // query only the latest revision of each requested name. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS App Runner's // API operation ListAutoScalingConfigurations for usage and error information. // // Returned Error Types: // * InvalidRequestException // One or more input parameters aren't valid. Refer to the API action's document // page, correct the input parameters, and try the action again. // // * InternalServiceErrorException // An unexpected service exception occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListAutoScalingConfigurations func (c *AppRunner) ListAutoScalingConfigurations(input *ListAutoScalingConfigurationsInput) (*ListAutoScalingConfigurationsOutput, error) { req, out := c.ListAutoScalingConfigurationsRequest(input) return out, req.Send() } // ListAutoScalingConfigurationsWithContext is the same as ListAutoScalingConfigurations with the addition of // the ability to pass a context and additional request options. // // See ListAutoScalingConfigurations for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRunner) ListAutoScalingConfigurationsWithContext(ctx aws.Context, input *ListAutoScalingConfigurationsInput, opts ...request.Option) (*ListAutoScalingConfigurationsOutput, error) { req, out := c.ListAutoScalingConfigurationsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListAutoScalingConfigurationsPages iterates over the pages of a ListAutoScalingConfigurations operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListAutoScalingConfigurations method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListAutoScalingConfigurations operation. // pageNum := 0 // err := client.ListAutoScalingConfigurationsPages(params, // func(page *apprunner.ListAutoScalingConfigurationsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *AppRunner) ListAutoScalingConfigurationsPages(input *ListAutoScalingConfigurationsInput, fn func(*ListAutoScalingConfigurationsOutput, bool) bool) error { return c.ListAutoScalingConfigurationsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListAutoScalingConfigurationsPagesWithContext same as ListAutoScalingConfigurationsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRunner) ListAutoScalingConfigurationsPagesWithContext(ctx aws.Context, input *ListAutoScalingConfigurationsInput, fn func(*ListAutoScalingConfigurationsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListAutoScalingConfigurationsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListAutoScalingConfigurationsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListAutoScalingConfigurationsOutput), !p.HasNextPage()) { break } } return p.Err() } const opListConnections = "ListConnections" // ListConnectionsRequest generates a "aws/request.Request" representing the // client's request for the ListConnections operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListConnections for more information on using the ListConnections // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListConnectionsRequest method. // req, resp := client.ListConnectionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListConnections func (c *AppRunner) ListConnectionsRequest(input *ListConnectionsInput) (req *request.Request, output *ListConnectionsOutput) { op := &request.Operation{ Name: opListConnections, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListConnectionsInput{} } output = &ListConnectionsOutput{} req = c.newRequest(op, input, output) return } // ListConnections API operation for AWS App Runner. // // Returns a list of AWS App Runner connections that are associated with your // AWS account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS App Runner's // API operation ListConnections for usage and error information. // // Returned Error Types: // * InvalidRequestException // One or more input parameters aren't valid. Refer to the API action's document // page, correct the input parameters, and try the action again. // // * InternalServiceErrorException // An unexpected service exception occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListConnections func (c *AppRunner) ListConnections(input *ListConnectionsInput) (*ListConnectionsOutput, error) { req, out := c.ListConnectionsRequest(input) return out, req.Send() } // ListConnectionsWithContext is the same as ListConnections with the addition of // the ability to pass a context and additional request options. // // See ListConnections for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRunner) ListConnectionsWithContext(ctx aws.Context, input *ListConnectionsInput, opts ...request.Option) (*ListConnectionsOutput, error) { req, out := c.ListConnectionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListConnectionsPages iterates over the pages of a ListConnections operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListConnections method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListConnections operation. // pageNum := 0 // err := client.ListConnectionsPages(params, // func(page *apprunner.ListConnectionsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *AppRunner) ListConnectionsPages(input *ListConnectionsInput, fn func(*ListConnectionsOutput, bool) bool) error { return c.ListConnectionsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListConnectionsPagesWithContext same as ListConnectionsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRunner) ListConnectionsPagesWithContext(ctx aws.Context, input *ListConnectionsInput, fn func(*ListConnectionsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListConnectionsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListConnectionsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListConnectionsOutput), !p.HasNextPage()) { break } } return p.Err() } const opListOperations = "ListOperations" // ListOperationsRequest generates a "aws/request.Request" representing the // client's request for the ListOperations operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListOperations for more information on using the ListOperations // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListOperationsRequest method. // req, resp := client.ListOperationsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListOperations func (c *AppRunner) ListOperationsRequest(input *ListOperationsInput) (req *request.Request, output *ListOperationsOutput) { op := &request.Operation{ Name: opListOperations, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListOperationsInput{} } output = &ListOperationsOutput{} req = c.newRequest(op, input, output) return } // ListOperations API operation for AWS App Runner. // // Return a list of operations that occurred on an AWS App Runner service. // // The resulting list of OperationSummary objects is sorted in reverse chronological // order. The first object on the list represents the last started operation. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS App Runner's // API operation ListOperations for usage and error information. // // Returned Error Types: // * InvalidRequestException // One or more input parameters aren't valid. Refer to the API action's document // page, correct the input parameters, and try the action again. // // * InternalServiceErrorException // An unexpected service exception occurred. // // * ResourceNotFoundException // A resource doesn't exist for the specified Amazon Resource Name (ARN) in // your AWS account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListOperations func (c *AppRunner) ListOperations(input *ListOperationsInput) (*ListOperationsOutput, error) { req, out := c.ListOperationsRequest(input) return out, req.Send() } // ListOperationsWithContext is the same as ListOperations with the addition of // the ability to pass a context and additional request options. // // See ListOperations for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRunner) ListOperationsWithContext(ctx aws.Context, input *ListOperationsInput, opts ...request.Option) (*ListOperationsOutput, error) { req, out := c.ListOperationsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListOperationsPages iterates over the pages of a ListOperations operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListOperations method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListOperations operation. // pageNum := 0 // err := client.ListOperationsPages(params, // func(page *apprunner.ListOperationsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *AppRunner) ListOperationsPages(input *ListOperationsInput, fn func(*ListOperationsOutput, bool) bool) error { return c.ListOperationsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListOperationsPagesWithContext same as ListOperationsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRunner) ListOperationsPagesWithContext(ctx aws.Context, input *ListOperationsInput, fn func(*ListOperationsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListOperationsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListOperationsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListOperationsOutput), !p.HasNextPage()) { break } } return p.Err() } const opListServices = "ListServices" // ListServicesRequest generates a "aws/request.Request" representing the // client's request for the ListServices operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListServices for more information on using the ListServices // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListServicesRequest method. // req, resp := client.ListServicesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListServices func (c *AppRunner) ListServicesRequest(input *ListServicesInput) (req *request.Request, output *ListServicesOutput) { op := &request.Operation{ Name: opListServices, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListServicesInput{} } output = &ListServicesOutput{} req = c.newRequest(op, input, output) return } // ListServices API operation for AWS App Runner. // // Returns a list of running AWS App Runner services in your AWS account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS App Runner's // API operation ListServices for usage and error information. // // Returned Error Types: // * InvalidRequestException // One or more input parameters aren't valid. Refer to the API action's document // page, correct the input parameters, and try the action again. // // * InternalServiceErrorException // An unexpected service exception occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListServices func (c *AppRunner) ListServices(input *ListServicesInput) (*ListServicesOutput, error) { req, out := c.ListServicesRequest(input) return out, req.Send() } // ListServicesWithContext is the same as ListServices with the addition of // the ability to pass a context and additional request options. // // See ListServices for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRunner) ListServicesWithContext(ctx aws.Context, input *ListServicesInput, opts ...request.Option) (*ListServicesOutput, error) { req, out := c.ListServicesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListServicesPages iterates over the pages of a ListServices operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListServices method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListServices operation. // pageNum := 0 // err := client.ListServicesPages(params, // func(page *apprunner.ListServicesOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *AppRunner) ListServicesPages(input *ListServicesInput, fn func(*ListServicesOutput, bool) bool) error { return c.ListServicesPagesWithContext(aws.BackgroundContext(), input, fn) } // ListServicesPagesWithContext same as ListServicesPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRunner) ListServicesPagesWithContext(ctx aws.Context, input *ListServicesInput, fn func(*ListServicesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListServicesInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListServicesRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListServicesOutput), !p.HasNextPage()) { break } } return p.Err() } const opListTagsForResource = "ListTagsForResource" // ListTagsForResourceRequest generates a "aws/request.Request" representing the // client's request for the ListTagsForResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListTagsForResource for more information on using the ListTagsForResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListTagsForResourceRequest method. // req, resp := client.ListTagsForResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListTagsForResource func (c *AppRunner) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { op := &request.Operation{ Name: opListTagsForResource, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &ListTagsForResourceInput{} } output = &ListTagsForResourceOutput{} req = c.newRequest(op, input, output) return } // ListTagsForResource API operation for AWS App Runner. // // List tags that are associated with for an AWS App Runner resource. The response // contains a list of tag key-value pairs. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS App Runner's // API operation ListTagsForResource for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // A resource doesn't exist for the specified Amazon Resource Name (ARN) in // your AWS account. // // * InternalServiceErrorException // An unexpected service exception occurred. // // * InvalidRequestException // One or more input parameters aren't valid. Refer to the API action's document // page, correct the input parameters, and try the action again. // // * InvalidStateException // You can't perform this action when the resource is in its current state. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListTagsForResource func (c *AppRunner) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) return out, req.Send() } // ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of // the ability to pass a context and additional request options. // // See ListTagsForResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRunner) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opPauseService = "PauseService" // PauseServiceRequest generates a "aws/request.Request" representing the // client's request for the PauseService operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See PauseService for more information on using the PauseService // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the PauseServiceRequest method. // req, resp := client.PauseServiceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/PauseService func (c *AppRunner) PauseServiceRequest(input *PauseServiceInput) (req *request.Request, output *PauseServiceOutput) { op := &request.Operation{ Name: opPauseService, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &PauseServiceInput{} } output = &PauseServiceOutput{} req = c.newRequest(op, input, output) return } // PauseService API operation for AWS App Runner. // // Pause an active AWS App Runner service. App Runner reduces compute capacity // for the service to zero and loses state (for example, ephemeral storage is // removed). // // This is an asynchronous operation. On a successful call, you can use the // returned OperationId and the ListOperations call to track the operation's // progress. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS App Runner's // API operation PauseService for usage and error information. // // Returned Error Types: // * InvalidRequestException // One or more input parameters aren't valid. Refer to the API action's document // page, correct the input parameters, and try the action again. // // * ResourceNotFoundException // A resource doesn't exist for the specified Amazon Resource Name (ARN) in // your AWS account. // // * InternalServiceErrorException // An unexpected service exception occurred. // // * InvalidStateException // You can't perform this action when the resource is in its current state. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/PauseService func (c *AppRunner) PauseService(input *PauseServiceInput) (*PauseServiceOutput, error) { req, out := c.PauseServiceRequest(input) return out, req.Send() } // PauseServiceWithContext is the same as PauseService with the addition of // the ability to pass a context and additional request options. // // See PauseService for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRunner) PauseServiceWithContext(ctx aws.Context, input *PauseServiceInput, opts ...request.Option) (*PauseServiceOutput, error) { req, out := c.PauseServiceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opResumeService = "ResumeService" // ResumeServiceRequest generates a "aws/request.Request" representing the // client's request for the ResumeService operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ResumeService for more information on using the ResumeService // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ResumeServiceRequest method. // req, resp := client.ResumeServiceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ResumeService func (c *AppRunner) ResumeServiceRequest(input *ResumeServiceInput) (req *request.Request, output *ResumeServiceOutput) { op := &request.Operation{ Name: opResumeService, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &ResumeServiceInput{} } output = &ResumeServiceOutput{} req = c.newRequest(op, input, output) return } // ResumeService API operation for AWS App Runner. // // Resume an active AWS App Runner service. App Runner provisions compute capacity // for the service. // // This is an asynchronous operation. On a successful call, you can use the // returned OperationId and the ListOperations call to track the operation's // progress. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS App Runner's // API operation ResumeService for usage and error information. // // Returned Error Types: // * InvalidRequestException // One or more input parameters aren't valid. Refer to the API action's document // page, correct the input parameters, and try the action again. // // * ResourceNotFoundException // A resource doesn't exist for the specified Amazon Resource Name (ARN) in // your AWS account. // // * InternalServiceErrorException // An unexpected service exception occurred. // // * InvalidStateException // You can't perform this action when the resource is in its current state. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ResumeService func (c *AppRunner) ResumeService(input *ResumeServiceInput) (*ResumeServiceOutput, error) { req, out := c.ResumeServiceRequest(input) return out, req.Send() } // ResumeServiceWithContext is the same as ResumeService with the addition of // the ability to pass a context and additional request options. // // See ResumeService for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRunner) ResumeServiceWithContext(ctx aws.Context, input *ResumeServiceInput, opts ...request.Option) (*ResumeServiceOutput, error) { req, out := c.ResumeServiceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opStartDeployment = "StartDeployment" // StartDeploymentRequest generates a "aws/request.Request" representing the // client's request for the StartDeployment operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See StartDeployment for more information on using the StartDeployment // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the StartDeploymentRequest method. // req, resp := client.StartDeploymentRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/StartDeployment func (c *AppRunner) StartDeploymentRequest(input *StartDeploymentInput) (req *request.Request, output *StartDeploymentOutput) { op := &request.Operation{ Name: opStartDeployment, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &StartDeploymentInput{} } output = &StartDeploymentOutput{} req = c.newRequest(op, input, output) return } // StartDeployment API operation for AWS App Runner. // // Initiate a manual deployment of the latest commit in a source code repository // or the latest image in a source image repository to an AWS App Runner service. // // For a source code repository, App Runner retrieves the commit and builds // a Docker image. For a source image repository, App Runner retrieves the latest // Docker image. In both cases, App Runner then deploys the new image to your // service and starts a new container instance. // // This is an asynchronous operation. On a successful call, you can use the // returned OperationId and the ListOperations call to track the operation's // progress. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS App Runner's // API operation StartDeployment for usage and error information. // // Returned Error Types: // * InvalidRequestException // One or more input parameters aren't valid. Refer to the API action's document // page, correct the input parameters, and try the action again. // // * ResourceNotFoundException // A resource doesn't exist for the specified Amazon Resource Name (ARN) in // your AWS account. // // * InternalServiceErrorException // An unexpected service exception occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/StartDeployment func (c *AppRunner) StartDeployment(input *StartDeploymentInput) (*StartDeploymentOutput, error) { req, out := c.StartDeploymentRequest(input) return out, req.Send() } // StartDeploymentWithContext is the same as StartDeployment with the addition of // the ability to pass a context and additional request options. // // See StartDeployment for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRunner) StartDeploymentWithContext(ctx aws.Context, input *StartDeploymentInput, opts ...request.Option) (*StartDeploymentOutput, error) { req, out := c.StartDeploymentRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opTagResource = "TagResource" // TagResourceRequest generates a "aws/request.Request" representing the // client's request for the TagResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See TagResource for more information on using the TagResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the TagResourceRequest method. // req, resp := client.TagResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/TagResource func (c *AppRunner) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { op := &request.Operation{ Name: opTagResource, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &TagResourceInput{} } output = &TagResourceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // TagResource API operation for AWS App Runner. // // Add tags to, or update the tag values of, an App Runner resource. A tag is // a key-value pair. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS App Runner's // API operation TagResource for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // A resource doesn't exist for the specified Amazon Resource Name (ARN) in // your AWS account. // // * InternalServiceErrorException // An unexpected service exception occurred. // // * InvalidRequestException // One or more input parameters aren't valid. Refer to the API action's document // page, correct the input parameters, and try the action again. // // * InvalidStateException // You can't perform this action when the resource is in its current state. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/TagResource func (c *AppRunner) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { req, out := c.TagResourceRequest(input) return out, req.Send() } // TagResourceWithContext is the same as TagResource with the addition of // the ability to pass a context and additional request options. // // See TagResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRunner) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { req, out := c.TagResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUntagResource = "UntagResource" // UntagResourceRequest generates a "aws/request.Request" representing the // client's request for the UntagResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UntagResource for more information on using the UntagResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UntagResourceRequest method. // req, resp := client.UntagResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/UntagResource func (c *AppRunner) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { op := &request.Operation{ Name: opUntagResource, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &UntagResourceInput{} } output = &UntagResourceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // UntagResource API operation for AWS App Runner. // // Remove tags from an App Runner resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS App Runner's // API operation UntagResource for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // A resource doesn't exist for the specified Amazon Resource Name (ARN) in // your AWS account. // // * InternalServiceErrorException // An unexpected service exception occurred. // // * InvalidRequestException // One or more input parameters aren't valid. Refer to the API action's document // page, correct the input parameters, and try the action again. // // * InvalidStateException // You can't perform this action when the resource is in its current state. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/UntagResource func (c *AppRunner) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { req, out := c.UntagResourceRequest(input) return out, req.Send() } // UntagResourceWithContext is the same as UntagResource with the addition of // the ability to pass a context and additional request options. // // See UntagResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRunner) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { req, out := c.UntagResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateService = "UpdateService" // UpdateServiceRequest generates a "aws/request.Request" representing the // client's request for the UpdateService operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateService for more information on using the UpdateService // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateServiceRequest method. // req, resp := client.UpdateServiceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/UpdateService func (c *AppRunner) UpdateServiceRequest(input *UpdateServiceInput) (req *request.Request, output *UpdateServiceOutput) { op := &request.Operation{ Name: opUpdateService, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &UpdateServiceInput{} } output = &UpdateServiceOutput{} req = c.newRequest(op, input, output) return } // UpdateService API operation for AWS App Runner. // // Update an AWS App Runner service. You can update the source configuration // and instance configuration of the service. You can also update the ARN of // the auto scaling configuration resource that's associated with the service. // However, you can't change the name or the encryption configuration of the // service. These can be set only when you create the service. // // To update the tags applied to your service, use the separate actions TagResource // and UntagResource. // // This is an asynchronous operation. On a successful call, you can use the // returned OperationId and the ListOperations call to track the operation's // progress. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS App Runner's // API operation UpdateService for usage and error information. // // Returned Error Types: // * InvalidRequestException // One or more input parameters aren't valid. Refer to the API action's document // page, correct the input parameters, and try the action again. // // * ResourceNotFoundException // A resource doesn't exist for the specified Amazon Resource Name (ARN) in // your AWS account. // // * InvalidStateException // You can't perform this action when the resource is in its current state. // // * InternalServiceErrorException // An unexpected service exception occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/UpdateService func (c *AppRunner) UpdateService(input *UpdateServiceInput) (*UpdateServiceOutput, error) { req, out := c.UpdateServiceRequest(input) return out, req.Send() } // UpdateServiceWithContext is the same as UpdateService with the addition of // the ability to pass a context and additional request options. // // See UpdateService for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppRunner) UpdateServiceWithContext(ctx aws.Context, input *UpdateServiceInput, opts ...request.Option) (*UpdateServiceOutput, error) { req, out := c.UpdateServiceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } type AssociateCustomDomainInput struct { _ struct{} `type:"structure"` // A custom domain endpoint to associate. Specify a root domain (for example, // example.com), a subdomain (for example, login.example.com or admin.login.example.com), // or a wildcard (for example, *.example.com). // // DomainName is a required field DomainName *string `min:"1" type:"string" required:"true"` // Set to true to associate the subdomain www.DomainName with the App Runner // service in addition to the base domain. // // Default: true EnableWWWSubdomain *bool `type:"boolean"` // The Amazon Resource Name (ARN) of the App Runner service that you want to // associate a custom domain name with. // // ServiceArn is a required field ServiceArn *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s AssociateCustomDomainInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AssociateCustomDomainInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *AssociateCustomDomainInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "AssociateCustomDomainInput"} if s.DomainName == nil { invalidParams.Add(request.NewErrParamRequired("DomainName")) } if s.DomainName != nil && len(*s.DomainName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) } if s.ServiceArn == nil { invalidParams.Add(request.NewErrParamRequired("ServiceArn")) } if s.ServiceArn != nil && len(*s.ServiceArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("ServiceArn", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDomainName sets the DomainName field's value. func (s *AssociateCustomDomainInput) SetDomainName(v string) *AssociateCustomDomainInput { s.DomainName = &v return s } // SetEnableWWWSubdomain sets the EnableWWWSubdomain field's value. func (s *AssociateCustomDomainInput) SetEnableWWWSubdomain(v bool) *AssociateCustomDomainInput { s.EnableWWWSubdomain = &v return s } // SetServiceArn sets the ServiceArn field's value. func (s *AssociateCustomDomainInput) SetServiceArn(v string) *AssociateCustomDomainInput { s.ServiceArn = &v return s } type AssociateCustomDomainOutput struct { _ struct{} `type:"structure"` // A description of the domain name that's being associated. // // CustomDomain is a required field CustomDomain *CustomDomain `type:"structure" required:"true"` // The App Runner subdomain of the App Runner service. The custom domain name // is mapped to this target name. // // DNSTarget is a required field DNSTarget *string `type:"string" required:"true"` // The Amazon Resource Name (ARN) of the App Runner service with which a custom // domain name is associated. // // ServiceArn is a required field ServiceArn *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s AssociateCustomDomainOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AssociateCustomDomainOutput) GoString() string { return s.String() } // SetCustomDomain sets the CustomDomain field's value. func (s *AssociateCustomDomainOutput) SetCustomDomain(v *CustomDomain) *AssociateCustomDomainOutput { s.CustomDomain = v return s } // SetDNSTarget sets the DNSTarget field's value. func (s *AssociateCustomDomainOutput) SetDNSTarget(v string) *AssociateCustomDomainOutput { s.DNSTarget = &v return s } // SetServiceArn sets the ServiceArn field's value. func (s *AssociateCustomDomainOutput) SetServiceArn(v string) *AssociateCustomDomainOutput { s.ServiceArn = &v return s } // Describes resources needed to authenticate access to some source repositories. // The specific resource depends on the repository provider. type AuthenticationConfiguration struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the IAM role that grants the App Runner // service access to a source repository. It's required for ECR image repositories // (but not for ECR Public repositories). AccessRoleArn *string `min:"29" type:"string"` // The Amazon Resource Name (ARN) of the App Runner connection that enables // the App Runner service to connect to a source repository. It's required for // GitHub code repositories. ConnectionArn *string `min:"1" type:"string"` } // String returns the string representation func (s AuthenticationConfiguration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AuthenticationConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *AuthenticationConfiguration) Validate() error { invalidParams := request.ErrInvalidParams{Context: "AuthenticationConfiguration"} if s.AccessRoleArn != nil && len(*s.AccessRoleArn) < 29 { invalidParams.Add(request.NewErrParamMinLen("AccessRoleArn", 29)) } if s.ConnectionArn != nil && len(*s.ConnectionArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("ConnectionArn", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAccessRoleArn sets the AccessRoleArn field's value. func (s *AuthenticationConfiguration) SetAccessRoleArn(v string) *AuthenticationConfiguration { s.AccessRoleArn = &v return s } // SetConnectionArn sets the ConnectionArn field's value. func (s *AuthenticationConfiguration) SetConnectionArn(v string) *AuthenticationConfiguration { s.ConnectionArn = &v return s } // Describes an AWS App Runner automatic scaling configuration resource. Multiple // revisions of a configuration have the same AutoScalingConfigurationName and // different AutoScalingConfigurationRevision values. // // A higher MinSize increases the spread of your App Runner service over more // Availability Zones in the AWS Region. The tradeoff is a higher minimal cost. // // A lower MaxSize controls your cost. The tradeoff is lower responsiveness // during peak demand. type AutoScalingConfiguration struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of this auto scaling configuration. AutoScalingConfigurationArn *string `min:"1" type:"string"` // The customer-provided auto scaling configuration name. It can be used in // multiple revisions of a configuration. AutoScalingConfigurationName *string `min:"4" type:"string"` // The revision of this auto scaling configuration. It's unique among all the // active configurations ("Status": "ACTIVE") that share the same AutoScalingConfigurationName. AutoScalingConfigurationRevision *int64 `type:"integer"` // The time when the auto scaling configuration was created. It's in Unix time // stamp format. CreatedAt *time.Time `type:"timestamp"` // The time when the auto scaling configuration was deleted. It's in Unix time // stamp format. DeletedAt *time.Time `type:"timestamp"` // It's set to true for the configuration with the highest Revision among all // configurations that share the same Name. It's set to false otherwise. Latest *bool `type:"boolean"` // The maximum number of concurrent requests that an instance processes. If // the number of concurrent requests exceeds this limit, App Runner scales the // service up. MaxConcurrency *int64 `type:"integer"` // The maximum number of instances that a service scales up to. At most MaxSize // instances actively serve traffic for your service. MaxSize *int64 `type:"integer"` // The minimum number of instances that App Runner provisions for a service. // The service always has at least MinSize provisioned instances. Some of them // actively serve traffic. The rest of them (provisioned and inactive instances) // are a cost-effective compute capacity reserve and are ready to be quickly // activated. You pay for memory usage of all the provisioned instances. You // pay for CPU usage of only the active subset. // // App Runner temporarily doubles the number of provisioned instances during // deployments, to maintain the same capacity for both old and new code. MinSize *int64 `type:"integer"` // The current state of the auto scaling configuration. If the status of a configuration // revision is INACTIVE, it was deleted and can't be used. Inactive configuration // revisions are permanently removed some time after they are deleted. Status *string `type:"string" enum:"AutoScalingConfigurationStatus"` } // String returns the string representation func (s AutoScalingConfiguration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AutoScalingConfiguration) GoString() string { return s.String() } // SetAutoScalingConfigurationArn sets the AutoScalingConfigurationArn field's value. func (s *AutoScalingConfiguration) SetAutoScalingConfigurationArn(v string) *AutoScalingConfiguration { s.AutoScalingConfigurationArn = &v return s } // SetAutoScalingConfigurationName sets the AutoScalingConfigurationName field's value. func (s *AutoScalingConfiguration) SetAutoScalingConfigurationName(v string) *AutoScalingConfiguration { s.AutoScalingConfigurationName = &v return s } // SetAutoScalingConfigurationRevision sets the AutoScalingConfigurationRevision field's value. func (s *AutoScalingConfiguration) SetAutoScalingConfigurationRevision(v int64) *AutoScalingConfiguration { s.AutoScalingConfigurationRevision = &v return s } // SetCreatedAt sets the CreatedAt field's value. func (s *AutoScalingConfiguration) SetCreatedAt(v time.Time) *AutoScalingConfiguration { s.CreatedAt = &v return s } // SetDeletedAt sets the DeletedAt field's value. func (s *AutoScalingConfiguration) SetDeletedAt(v time.Time) *AutoScalingConfiguration { s.DeletedAt = &v return s } // SetLatest sets the Latest field's value. func (s *AutoScalingConfiguration) SetLatest(v bool) *AutoScalingConfiguration { s.Latest = &v return s } // SetMaxConcurrency sets the MaxConcurrency field's value. func (s *AutoScalingConfiguration) SetMaxConcurrency(v int64) *AutoScalingConfiguration { s.MaxConcurrency = &v return s } // SetMaxSize sets the MaxSize field's value. func (s *AutoScalingConfiguration) SetMaxSize(v int64) *AutoScalingConfiguration { s.MaxSize = &v return s } // SetMinSize sets the MinSize field's value. func (s *AutoScalingConfiguration) SetMinSize(v int64) *AutoScalingConfiguration { s.MinSize = &v return s } // SetStatus sets the Status field's value. func (s *AutoScalingConfiguration) SetStatus(v string) *AutoScalingConfiguration { s.Status = &v return s } // Provides summary information about an AWS App Runner automatic scaling configuration // resource. // // This type contains limited information about an auto scaling configuration. // It includes only identification information, without configuration details. // It's returned by the ListAutoScalingConfigurations action. Complete configuration // information is returned by the CreateAutoScalingConfiguration, DescribeAutoScalingConfiguration, // and DeleteAutoScalingConfiguration actions using the AutoScalingConfiguration // type. type AutoScalingConfigurationSummary struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of this auto scaling configuration. AutoScalingConfigurationArn *string `min:"1" type:"string"` // The customer-provided auto scaling configuration name. It can be used in // multiple revisions of a configuration. AutoScalingConfigurationName *string `min:"4" type:"string"` // The revision of this auto scaling configuration. It's unique among all the // active configurations ("Status": "ACTIVE") with the same AutoScalingConfigurationName. AutoScalingConfigurationRevision *int64 `type:"integer"` } // String returns the string representation func (s AutoScalingConfigurationSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AutoScalingConfigurationSummary) GoString() string { return s.String() } // SetAutoScalingConfigurationArn sets the AutoScalingConfigurationArn field's value. func (s *AutoScalingConfigurationSummary) SetAutoScalingConfigurationArn(v string) *AutoScalingConfigurationSummary { s.AutoScalingConfigurationArn = &v return s } // SetAutoScalingConfigurationName sets the AutoScalingConfigurationName field's value. func (s *AutoScalingConfigurationSummary) SetAutoScalingConfigurationName(v string) *AutoScalingConfigurationSummary { s.AutoScalingConfigurationName = &v return s } // SetAutoScalingConfigurationRevision sets the AutoScalingConfigurationRevision field's value. func (s *AutoScalingConfigurationSummary) SetAutoScalingConfigurationRevision(v int64) *AutoScalingConfigurationSummary { s.AutoScalingConfigurationRevision = &v return s } // Describes a certificate CNAME record to add to your DNS. For more information, // see AssociateCustomDomain (https://docs.aws.amazon.com/apprunner/latest/api/API_AssociateCustomDomain.html). type CertificateValidationRecord struct { _ struct{} `type:"structure"` // The certificate CNAME record name. Name *string `type:"string"` // The current state of the certificate CNAME record validation. It should change // to SUCCESS after App Runner completes validation with your DNS. Status *string `type:"string" enum:"CertificateValidationRecordStatus"` // The record type, always CNAME. Type *string `type:"string"` // The certificate CNAME record value. Value *string `type:"string"` } // String returns the string representation func (s CertificateValidationRecord) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CertificateValidationRecord) GoString() string { return s.String() } // SetName sets the Name field's value. func (s *CertificateValidationRecord) SetName(v string) *CertificateValidationRecord { s.Name = &v return s } // SetStatus sets the Status field's value. func (s *CertificateValidationRecord) SetStatus(v string) *CertificateValidationRecord { s.Status = &v return s } // SetType sets the Type field's value. func (s *CertificateValidationRecord) SetType(v string) *CertificateValidationRecord { s.Type = &v return s } // SetValue sets the Value field's value. func (s *CertificateValidationRecord) SetValue(v string) *CertificateValidationRecord { s.Value = &v return s } // Describes the configuration that AWS App Runner uses to build and run an // App Runner service from a source code repository. type CodeConfiguration struct { _ struct{} `type:"structure"` // The basic configuration for building and running the App Runner service. // Use it to quickly launch an App Runner service without providing a apprunner.yaml // file in the source code repository (or ignoring the file if it exists). CodeConfigurationValues *CodeConfigurationValues `type:"structure"` // The source of the App Runner configuration. Values are interpreted as follows: // // * REPOSITORY – App Runner reads configuration values from the apprunner.yaml // file in the source code repository and ignores CodeConfigurationValues. // // * API – App Runner uses configuration values provided in CodeConfigurationValues // and ignores the apprunner.yaml file in the source code repository. // // ConfigurationSource is a required field ConfigurationSource *string `type:"string" required:"true" enum:"ConfigurationSource"` } // String returns the string representation func (s CodeConfiguration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CodeConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CodeConfiguration) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CodeConfiguration"} if s.ConfigurationSource == nil { invalidParams.Add(request.NewErrParamRequired("ConfigurationSource")) } if s.CodeConfigurationValues != nil { if err := s.CodeConfigurationValues.Validate(); err != nil { invalidParams.AddNested("CodeConfigurationValues", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCodeConfigurationValues sets the CodeConfigurationValues field's value. func (s *CodeConfiguration) SetCodeConfigurationValues(v *CodeConfigurationValues) *CodeConfiguration { s.CodeConfigurationValues = v return s } // SetConfigurationSource sets the ConfigurationSource field's value. func (s *CodeConfiguration) SetConfigurationSource(v string) *CodeConfiguration { s.ConfigurationSource = &v return s } // Describes the basic configuration needed for building and running an AWS // App Runner service. This type doesn't support the full set of possible configuration // options. Fur full configuration capabilities, use a apprunner.yaml file in // the source code repository. type CodeConfigurationValues struct { _ struct{} `type:"structure"` // The command App Runner runs to build your application. BuildCommand *string `type:"string" sensitive:"true"` // The port that your application listens to in the container. // // Default: 8080 Port *string `type:"string"` // A runtime environment type for building and running an App Runner service. // It represents a programming language runtime. // // Runtime is a required field Runtime *string `type:"string" required:"true" enum:"Runtime"` // The environment variables that are available to your running App Runner service. // An array of key-value pairs. Keys with a prefix of AWSAPPRUNNER are reserved // for system use and aren't valid. RuntimeEnvironmentVariables map[string]*string `type:"map"` // The command App Runner runs to start your application. StartCommand *string `type:"string" sensitive:"true"` } // String returns the string representation func (s CodeConfigurationValues) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CodeConfigurationValues) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CodeConfigurationValues) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CodeConfigurationValues"} if s.Runtime == nil { invalidParams.Add(request.NewErrParamRequired("Runtime")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetBuildCommand sets the BuildCommand field's value. func (s *CodeConfigurationValues) SetBuildCommand(v string) *CodeConfigurationValues { s.BuildCommand = &v return s } // SetPort sets the Port field's value. func (s *CodeConfigurationValues) SetPort(v string) *CodeConfigurationValues { s.Port = &v return s } // SetRuntime sets the Runtime field's value. func (s *CodeConfigurationValues) SetRuntime(v string) *CodeConfigurationValues { s.Runtime = &v return s } // SetRuntimeEnvironmentVariables sets the RuntimeEnvironmentVariables field's value. func (s *CodeConfigurationValues) SetRuntimeEnvironmentVariables(v map[string]*string) *CodeConfigurationValues { s.RuntimeEnvironmentVariables = v return s } // SetStartCommand sets the StartCommand field's value. func (s *CodeConfigurationValues) SetStartCommand(v string) *CodeConfigurationValues { s.StartCommand = &v return s } // Describes a source code repository. type CodeRepository struct { _ struct{} `type:"structure"` // Configuration for building and running the service from a source code repository. CodeConfiguration *CodeConfiguration `type:"structure"` // The location of the repository that contains the source code. // // RepositoryUrl is a required field RepositoryUrl *string `type:"string" required:"true"` // The version that should be used within the source code repository. // // SourceCodeVersion is a required field SourceCodeVersion *SourceCodeVersion `type:"structure" required:"true"` } // String returns the string representation func (s CodeRepository) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CodeRepository) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CodeRepository) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CodeRepository"} if s.RepositoryUrl == nil { invalidParams.Add(request.NewErrParamRequired("RepositoryUrl")) } if s.SourceCodeVersion == nil { invalidParams.Add(request.NewErrParamRequired("SourceCodeVersion")) } if s.CodeConfiguration != nil { if err := s.CodeConfiguration.Validate(); err != nil { invalidParams.AddNested("CodeConfiguration", err.(request.ErrInvalidParams)) } } if s.SourceCodeVersion != nil { if err := s.SourceCodeVersion.Validate(); err != nil { invalidParams.AddNested("SourceCodeVersion", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCodeConfiguration sets the CodeConfiguration field's value. func (s *CodeRepository) SetCodeConfiguration(v *CodeConfiguration) *CodeRepository { s.CodeConfiguration = v return s } // SetRepositoryUrl sets the RepositoryUrl field's value. func (s *CodeRepository) SetRepositoryUrl(v string) *CodeRepository { s.RepositoryUrl = &v return s } // SetSourceCodeVersion sets the SourceCodeVersion field's value. func (s *CodeRepository) SetSourceCodeVersion(v *SourceCodeVersion) *CodeRepository { s.SourceCodeVersion = v return s } // Describes an AWS App Runner connection resource. type Connection struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of this connection. ConnectionArn *string `min:"1" type:"string"` // The customer-provided connection name. ConnectionName *string `min:"4" type:"string"` // The App Runner connection creation time, expressed as a Unix time stamp. CreatedAt *time.Time `type:"timestamp"` // The source repository provider. ProviderType *string `type:"string" enum:"ProviderType"` // The current state of the App Runner connection. When the state is AVAILABLE, // you can use the connection to create an App Runner service. Status *string `type:"string" enum:"ConnectionStatus"` } // String returns the string representation func (s Connection) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Connection) GoString() string { return s.String() } // SetConnectionArn sets the ConnectionArn field's value. func (s *Connection) SetConnectionArn(v string) *Connection { s.ConnectionArn = &v return s } // SetConnectionName sets the ConnectionName field's value. func (s *Connection) SetConnectionName(v string) *Connection { s.ConnectionName = &v return s } // SetCreatedAt sets the CreatedAt field's value. func (s *Connection) SetCreatedAt(v time.Time) *Connection { s.CreatedAt = &v return s } // SetProviderType sets the ProviderType field's value. func (s *Connection) SetProviderType(v string) *Connection { s.ProviderType = &v return s } // SetStatus sets the Status field's value. func (s *Connection) SetStatus(v string) *Connection { s.Status = &v return s } // Provides summary information about an AWS App Runner connection resource. type ConnectionSummary struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of this connection. ConnectionArn *string `min:"1" type:"string"` // The customer-provided connection name. ConnectionName *string `min:"4" type:"string"` // The App Runner connection creation time, expressed as a Unix time stamp. CreatedAt *time.Time `type:"timestamp"` // The source repository provider. ProviderType *string `type:"string" enum:"ProviderType"` // The current state of the App Runner connection. When the state is AVAILABLE, // you can use the connection to create an App Runner service. Status *string `type:"string" enum:"ConnectionStatus"` } // String returns the string representation func (s ConnectionSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ConnectionSummary) GoString() string { return s.String() } // SetConnectionArn sets the ConnectionArn field's value. func (s *ConnectionSummary) SetConnectionArn(v string) *ConnectionSummary { s.ConnectionArn = &v return s } // SetConnectionName sets the ConnectionName field's value. func (s *ConnectionSummary) SetConnectionName(v string) *ConnectionSummary { s.ConnectionName = &v return s } // SetCreatedAt sets the CreatedAt field's value. func (s *ConnectionSummary) SetCreatedAt(v time.Time) *ConnectionSummary { s.CreatedAt = &v return s } // SetProviderType sets the ProviderType field's value. func (s *ConnectionSummary) SetProviderType(v string) *ConnectionSummary { s.ProviderType = &v return s } // SetStatus sets the Status field's value. func (s *ConnectionSummary) SetStatus(v string) *ConnectionSummary { s.Status = &v return s } type CreateAutoScalingConfigurationInput struct { _ struct{} `type:"structure"` // A name for the auto scaling configuration. When you use it for the first // time in an AWS Region, App Runner creates revision number 1 of this name. // When you use the same name in subsequent calls, App Runner creates incremental // revisions of the configuration. // // AutoScalingConfigurationName is a required field AutoScalingConfigurationName *string `min:"4" type:"string" required:"true"` // The maximum number of concurrent requests that you want an instance to process. // If the number of concurrent requests exceeds this limit, App Runner scales // up your service. // // Default: 100 MaxConcurrency *int64 `min:"1" type:"integer"` // The maximum number of instances that your service scales up to. At most MaxSize // instances actively serve traffic for your service. // // Default: 25 MaxSize *int64 `min:"1" type:"integer"` // The minimum number of instances that App Runner provisions for your service. // The service always has at least MinSize provisioned instances. Some of them // actively serve traffic. The rest of them (provisioned and inactive instances) // are a cost-effective compute capacity reserve and are ready to be quickly // activated. You pay for memory usage of all the provisioned instances. You // pay for CPU usage of only the active subset. // // App Runner temporarily doubles the number of provisioned instances during // deployments, to maintain the same capacity for both old and new code. // // Default: 1 MinSize *int64 `min:"1" type:"integer"` // A list of metadata items that you can associate with your auto scaling configuration // resource. A tag is a key-value pair. Tags []*Tag `type:"list"` } // String returns the string representation func (s CreateAutoScalingConfigurationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateAutoScalingConfigurationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateAutoScalingConfigurationInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateAutoScalingConfigurationInput"} if s.AutoScalingConfigurationName == nil { invalidParams.Add(request.NewErrParamRequired("AutoScalingConfigurationName")) } if s.AutoScalingConfigurationName != nil && len(*s.AutoScalingConfigurationName) < 4 { invalidParams.Add(request.NewErrParamMinLen("AutoScalingConfigurationName", 4)) } if s.MaxConcurrency != nil && *s.MaxConcurrency < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxConcurrency", 1)) } if s.MaxSize != nil && *s.MaxSize < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxSize", 1)) } if s.MinSize != nil && *s.MinSize < 1 { invalidParams.Add(request.NewErrParamMinValue("MinSize", 1)) } if s.Tags != nil { for i, v := range s.Tags { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAutoScalingConfigurationName sets the AutoScalingConfigurationName field's value. func (s *CreateAutoScalingConfigurationInput) SetAutoScalingConfigurationName(v string) *CreateAutoScalingConfigurationInput { s.AutoScalingConfigurationName = &v return s } // SetMaxConcurrency sets the MaxConcurrency field's value. func (s *CreateAutoScalingConfigurationInput) SetMaxConcurrency(v int64) *CreateAutoScalingConfigurationInput { s.MaxConcurrency = &v return s } // SetMaxSize sets the MaxSize field's value. func (s *CreateAutoScalingConfigurationInput) SetMaxSize(v int64) *CreateAutoScalingConfigurationInput { s.MaxSize = &v return s } // SetMinSize sets the MinSize field's value. func (s *CreateAutoScalingConfigurationInput) SetMinSize(v int64) *CreateAutoScalingConfigurationInput { s.MinSize = &v return s } // SetTags sets the Tags field's value. func (s *CreateAutoScalingConfigurationInput) SetTags(v []*Tag) *CreateAutoScalingConfigurationInput { s.Tags = v return s } type CreateAutoScalingConfigurationOutput struct { _ struct{} `type:"structure"` // A description of the App Runner auto scaling configuration that's created // by this request. // // AutoScalingConfiguration is a required field AutoScalingConfiguration *AutoScalingConfiguration `type:"structure" required:"true"` } // String returns the string representation func (s CreateAutoScalingConfigurationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateAutoScalingConfigurationOutput) GoString() string { return s.String() } // SetAutoScalingConfiguration sets the AutoScalingConfiguration field's value. func (s *CreateAutoScalingConfigurationOutput) SetAutoScalingConfiguration(v *AutoScalingConfiguration) *CreateAutoScalingConfigurationOutput { s.AutoScalingConfiguration = v return s } type CreateConnectionInput struct { _ struct{} `type:"structure"` // A name for the new connection. It must be unique across all App Runner connections // for the AWS account in the AWS Region. // // ConnectionName is a required field ConnectionName *string `min:"4" type:"string" required:"true"` // The source repository provider. // // ProviderType is a required field ProviderType *string `type:"string" required:"true" enum:"ProviderType"` // A list of metadata items that you can associate with your connection resource. // A tag is a key-value pair. Tags []*Tag `type:"list"` } // String returns the string representation func (s CreateConnectionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateConnectionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateConnectionInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateConnectionInput"} if s.ConnectionName == nil { invalidParams.Add(request.NewErrParamRequired("ConnectionName")) } if s.ConnectionName != nil && len(*s.ConnectionName) < 4 { invalidParams.Add(request.NewErrParamMinLen("ConnectionName", 4)) } if s.ProviderType == nil { invalidParams.Add(request.NewErrParamRequired("ProviderType")) } if s.Tags != nil { for i, v := range s.Tags { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetConnectionName sets the ConnectionName field's value. func (s *CreateConnectionInput) SetConnectionName(v string) *CreateConnectionInput { s.ConnectionName = &v return s } // SetProviderType sets the ProviderType field's value. func (s *CreateConnectionInput) SetProviderType(v string) *CreateConnectionInput { s.ProviderType = &v return s } // SetTags sets the Tags field's value. func (s *CreateConnectionInput) SetTags(v []*Tag) *CreateConnectionInput { s.Tags = v return s } type CreateConnectionOutput struct { _ struct{} `type:"structure"` // A description of the App Runner connection that's created by this request. // // Connection is a required field Connection *Connection `type:"structure" required:"true"` } // String returns the string representation func (s CreateConnectionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateConnectionOutput) GoString() string { return s.String() } // SetConnection sets the Connection field's value. func (s *CreateConnectionOutput) SetConnection(v *Connection) *CreateConnectionOutput { s.Connection = v return s } type CreateServiceInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of an App Runner automatic scaling configuration // resource that you want to associate with your service. If not provided, App // Runner associates the latest revision of a default auto scaling configuration. AutoScalingConfigurationArn *string `min:"1" type:"string"` // An optional custom encryption key that App Runner uses to encrypt the copy // of your source repository that it maintains and your service logs. By default, // App Runner uses an AWS managed CMK. EncryptionConfiguration *EncryptionConfiguration `type:"structure"` // The settings for the health check that AWS App Runner performs to monitor // the health of your service. HealthCheckConfiguration *HealthCheckConfiguration `type:"structure"` // The runtime configuration of instances (scaling units) of the App Runner // service. InstanceConfiguration *InstanceConfiguration `type:"structure"` // A name for the new service. It must be unique across all the running App // Runner services in your AWS account in the AWS Region. // // ServiceName is a required field ServiceName *string `min:"4" type:"string" required:"true"` // The source to deploy to the App Runner service. It can be a code or an image // repository. // // SourceConfiguration is a required field SourceConfiguration *SourceConfiguration `type:"structure" required:"true"` // An optional list of metadata items that you can associate with your service // resource. A tag is a key-value pair. Tags []*Tag `type:"list"` } // String returns the string representation func (s CreateServiceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateServiceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateServiceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateServiceInput"} if s.AutoScalingConfigurationArn != nil && len(*s.AutoScalingConfigurationArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("AutoScalingConfigurationArn", 1)) } if s.ServiceName == nil { invalidParams.Add(request.NewErrParamRequired("ServiceName")) } if s.ServiceName != nil && len(*s.ServiceName) < 4 { invalidParams.Add(request.NewErrParamMinLen("ServiceName", 4)) } if s.SourceConfiguration == nil { invalidParams.Add(request.NewErrParamRequired("SourceConfiguration")) } if s.EncryptionConfiguration != nil { if err := s.EncryptionConfiguration.Validate(); err != nil { invalidParams.AddNested("EncryptionConfiguration", err.(request.ErrInvalidParams)) } } if s.HealthCheckConfiguration != nil { if err := s.HealthCheckConfiguration.Validate(); err != nil { invalidParams.AddNested("HealthCheckConfiguration", err.(request.ErrInvalidParams)) } } if s.InstanceConfiguration != nil { if err := s.InstanceConfiguration.Validate(); err != nil { invalidParams.AddNested("InstanceConfiguration", err.(request.ErrInvalidParams)) } } if s.SourceConfiguration != nil { if err := s.SourceConfiguration.Validate(); err != nil { invalidParams.AddNested("SourceConfiguration", err.(request.ErrInvalidParams)) } } if s.Tags != nil { for i, v := range s.Tags { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAutoScalingConfigurationArn sets the AutoScalingConfigurationArn field's value. func (s *CreateServiceInput) SetAutoScalingConfigurationArn(v string) *CreateServiceInput { s.AutoScalingConfigurationArn = &v return s } // SetEncryptionConfiguration sets the EncryptionConfiguration field's value. func (s *CreateServiceInput) SetEncryptionConfiguration(v *EncryptionConfiguration) *CreateServiceInput { s.EncryptionConfiguration = v return s } // SetHealthCheckConfiguration sets the HealthCheckConfiguration field's value. func (s *CreateServiceInput) SetHealthCheckConfiguration(v *HealthCheckConfiguration) *CreateServiceInput { s.HealthCheckConfiguration = v return s } // SetInstanceConfiguration sets the InstanceConfiguration field's value. func (s *CreateServiceInput) SetInstanceConfiguration(v *InstanceConfiguration) *CreateServiceInput { s.InstanceConfiguration = v return s } // SetServiceName sets the ServiceName field's value. func (s *CreateServiceInput) SetServiceName(v string) *CreateServiceInput { s.ServiceName = &v return s } // SetSourceConfiguration sets the SourceConfiguration field's value. func (s *CreateServiceInput) SetSourceConfiguration(v *SourceConfiguration) *CreateServiceInput { s.SourceConfiguration = v return s } // SetTags sets the Tags field's value. func (s *CreateServiceInput) SetTags(v []*Tag) *CreateServiceInput { s.Tags = v return s } type CreateServiceOutput struct { _ struct{} `type:"structure"` // The unique ID of the asynchronous operation that this request started. You // can use it combined with the ListOperations (https://docs.aws.amazon.com/apprunner/latest/api/API_ListOperations.html) // call to track the operation's progress. // // OperationId is a required field OperationId *string `min:"36" type:"string" required:"true"` // A description of the App Runner service that's created by this request. // // Service is a required field Service *Service `type:"structure" required:"true"` } // String returns the string representation func (s CreateServiceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateServiceOutput) GoString() string { return s.String() } // SetOperationId sets the OperationId field's value. func (s *CreateServiceOutput) SetOperationId(v string) *CreateServiceOutput { s.OperationId = &v return s } // SetService sets the Service field's value. func (s *CreateServiceOutput) SetService(v *Service) *CreateServiceOutput { s.Service = v return s } // Describes a custom domain that's associated with an AWS App Runner service. type CustomDomain struct { _ struct{} `type:"structure"` // A list of certificate CNAME records that's used for this domain name. CertificateValidationRecords []*CertificateValidationRecord `type:"list"` // An associated custom domain endpoint. It can be a root domain (for example, // example.com), a subdomain (for example, login.example.com or admin.login.example.com), // or a wildcard (for example, *.example.com). // // DomainName is a required field DomainName *string `min:"1" type:"string" required:"true"` // When true, the subdomain www.DomainName is associated with the App Runner // service in addition to the base domain. // // EnableWWWSubdomain is a required field EnableWWWSubdomain *bool `type:"boolean" required:"true"` // The current state of the domain name association. // // Status is a required field Status *string `type:"string" required:"true" enum:"CustomDomainAssociationStatus"` } // String returns the string representation func (s CustomDomain) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CustomDomain) GoString() string { return s.String() } // SetCertificateValidationRecords sets the CertificateValidationRecords field's value. func (s *CustomDomain) SetCertificateValidationRecords(v []*CertificateValidationRecord) *CustomDomain { s.CertificateValidationRecords = v return s } // SetDomainName sets the DomainName field's value. func (s *CustomDomain) SetDomainName(v string) *CustomDomain { s.DomainName = &v return s } // SetEnableWWWSubdomain sets the EnableWWWSubdomain field's value. func (s *CustomDomain) SetEnableWWWSubdomain(v bool) *CustomDomain { s.EnableWWWSubdomain = &v return s } // SetStatus sets the Status field's value. func (s *CustomDomain) SetStatus(v string) *CustomDomain { s.Status = &v return s } type DeleteAutoScalingConfigurationInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the App Runner auto scaling configuration // that you want to delete. // // The ARN can be a full auto scaling configuration ARN, or a partial ARN ending // with either .../name or .../name/revision . If a revision isn't specified, // the latest active revision is deleted. // // AutoScalingConfigurationArn is a required field AutoScalingConfigurationArn *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DeleteAutoScalingConfigurationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteAutoScalingConfigurationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteAutoScalingConfigurationInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteAutoScalingConfigurationInput"} if s.AutoScalingConfigurationArn == nil { invalidParams.Add(request.NewErrParamRequired("AutoScalingConfigurationArn")) } if s.AutoScalingConfigurationArn != nil && len(*s.AutoScalingConfigurationArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("AutoScalingConfigurationArn", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAutoScalingConfigurationArn sets the AutoScalingConfigurationArn field's value. func (s *DeleteAutoScalingConfigurationInput) SetAutoScalingConfigurationArn(v string) *DeleteAutoScalingConfigurationInput { s.AutoScalingConfigurationArn = &v return s } type DeleteAutoScalingConfigurationOutput struct { _ struct{} `type:"structure"` // A description of the App Runner auto scaling configuration that this request // just deleted. // // AutoScalingConfiguration is a required field AutoScalingConfiguration *AutoScalingConfiguration `type:"structure" required:"true"` } // String returns the string representation func (s DeleteAutoScalingConfigurationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteAutoScalingConfigurationOutput) GoString() string { return s.String() } // SetAutoScalingConfiguration sets the AutoScalingConfiguration field's value. func (s *DeleteAutoScalingConfigurationOutput) SetAutoScalingConfiguration(v *AutoScalingConfiguration) *DeleteAutoScalingConfigurationOutput { s.AutoScalingConfiguration = v return s } type DeleteConnectionInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the App Runner connection that you want // to delete. // // ConnectionArn is a required field ConnectionArn *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DeleteConnectionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteConnectionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteConnectionInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteConnectionInput"} if s.ConnectionArn == nil { invalidParams.Add(request.NewErrParamRequired("ConnectionArn")) } if s.ConnectionArn != nil && len(*s.ConnectionArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("ConnectionArn", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetConnectionArn sets the ConnectionArn field's value. func (s *DeleteConnectionInput) SetConnectionArn(v string) *DeleteConnectionInput { s.ConnectionArn = &v return s } type DeleteConnectionOutput struct { _ struct{} `type:"structure"` // A description of the App Runner connection that this request just deleted. Connection *Connection `type:"structure"` } // String returns the string representation func (s DeleteConnectionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteConnectionOutput) GoString() string { return s.String() } // SetConnection sets the Connection field's value. func (s *DeleteConnectionOutput) SetConnection(v *Connection) *DeleteConnectionOutput { s.Connection = v return s } type DeleteServiceInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the App Runner service that you want to // delete. // // ServiceArn is a required field ServiceArn *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DeleteServiceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteServiceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteServiceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteServiceInput"} if s.ServiceArn == nil { invalidParams.Add(request.NewErrParamRequired("ServiceArn")) } if s.ServiceArn != nil && len(*s.ServiceArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("ServiceArn", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetServiceArn sets the ServiceArn field's value. func (s *DeleteServiceInput) SetServiceArn(v string) *DeleteServiceInput { s.ServiceArn = &v return s } type DeleteServiceOutput struct { _ struct{} `type:"structure"` // The unique ID of the asynchronous operation that this request started. You // can use it combined with the ListOperations call to track the operation's // progress. // // OperationId is a required field OperationId *string `min:"36" type:"string" required:"true"` // A description of the App Runner service that this request just deleted. // // Service is a required field Service *Service `type:"structure" required:"true"` } // String returns the string representation func (s DeleteServiceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteServiceOutput) GoString() string { return s.String() } // SetOperationId sets the OperationId field's value. func (s *DeleteServiceOutput) SetOperationId(v string) *DeleteServiceOutput { s.OperationId = &v return s } // SetService sets the Service field's value. func (s *DeleteServiceOutput) SetService(v *Service) *DeleteServiceOutput { s.Service = v return s } type DescribeAutoScalingConfigurationInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the App Runner auto scaling configuration // that you want a description for. // // The ARN can be a full auto scaling configuration ARN, or a partial ARN ending // with either .../name or .../name/revision . If a revision isn't specified, // the latest active revision is described. // // AutoScalingConfigurationArn is a required field AutoScalingConfigurationArn *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DescribeAutoScalingConfigurationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeAutoScalingConfigurationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeAutoScalingConfigurationInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeAutoScalingConfigurationInput"} if s.AutoScalingConfigurationArn == nil { invalidParams.Add(request.NewErrParamRequired("AutoScalingConfigurationArn")) } if s.AutoScalingConfigurationArn != nil && len(*s.AutoScalingConfigurationArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("AutoScalingConfigurationArn", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAutoScalingConfigurationArn sets the AutoScalingConfigurationArn field's value. func (s *DescribeAutoScalingConfigurationInput) SetAutoScalingConfigurationArn(v string) *DescribeAutoScalingConfigurationInput { s.AutoScalingConfigurationArn = &v return s } type DescribeAutoScalingConfigurationOutput struct { _ struct{} `type:"structure"` // A full description of the App Runner auto scaling configuration that you // specified in this request. // // AutoScalingConfiguration is a required field AutoScalingConfiguration *AutoScalingConfiguration `type:"structure" required:"true"` } // String returns the string representation func (s DescribeAutoScalingConfigurationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeAutoScalingConfigurationOutput) GoString() string { return s.String() } // SetAutoScalingConfiguration sets the AutoScalingConfiguration field's value. func (s *DescribeAutoScalingConfigurationOutput) SetAutoScalingConfiguration(v *AutoScalingConfiguration) *DescribeAutoScalingConfigurationOutput { s.AutoScalingConfiguration = v return s } type DescribeCustomDomainsInput struct { _ struct{} `type:"structure"` // The maximum number of results that each response (result page) can include. // It's used for a paginated request. // // If you don't specify MaxResults, the request retrieves all available results // in a single response. MaxResults *int64 `min:"1" type:"integer"` // A token from a previous result page. It's used for a paginated request. The // request retrieves the next result page. All other parameter values must be // identical to the ones that are specified in the initial request. // // If you don't specify NextToken, the request retrieves the first result page. NextToken *string `type:"string"` // The Amazon Resource Name (ARN) of the App Runner service that you want associated // custom domain names to be described for. // // ServiceArn is a required field ServiceArn *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DescribeCustomDomainsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeCustomDomainsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeCustomDomainsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeCustomDomainsInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if s.ServiceArn == nil { invalidParams.Add(request.NewErrParamRequired("ServiceArn")) } if s.ServiceArn != nil && len(*s.ServiceArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("ServiceArn", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxResults sets the MaxResults field's value. func (s *DescribeCustomDomainsInput) SetMaxResults(v int64) *DescribeCustomDomainsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeCustomDomainsInput) SetNextToken(v string) *DescribeCustomDomainsInput { s.NextToken = &v return s } // SetServiceArn sets the ServiceArn field's value. func (s *DescribeCustomDomainsInput) SetServiceArn(v string) *DescribeCustomDomainsInput { s.ServiceArn = &v return s } type DescribeCustomDomainsOutput struct { _ struct{} `type:"structure"` // A list of descriptions of custom domain names that are associated with the // service. In a paginated request, the request returns up to MaxResults records // per call. // // CustomDomains is a required field CustomDomains []*CustomDomain `type:"list" required:"true"` // The App Runner subdomain of the App Runner service. The associated custom // domain names are mapped to this target name. // // DNSTarget is a required field DNSTarget *string `type:"string" required:"true"` // The token that you can pass in a subsequent request to get the next result // page. It's returned in a paginated request. NextToken *string `type:"string"` // The Amazon Resource Name (ARN) of the App Runner service whose associated // custom domain names you want to describe. // // ServiceArn is a required field ServiceArn *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DescribeCustomDomainsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeCustomDomainsOutput) GoString() string { return s.String() } // SetCustomDomains sets the CustomDomains field's value. func (s *DescribeCustomDomainsOutput) SetCustomDomains(v []*CustomDomain) *DescribeCustomDomainsOutput { s.CustomDomains = v return s } // SetDNSTarget sets the DNSTarget field's value. func (s *DescribeCustomDomainsOutput) SetDNSTarget(v string) *DescribeCustomDomainsOutput { s.DNSTarget = &v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeCustomDomainsOutput) SetNextToken(v string) *DescribeCustomDomainsOutput { s.NextToken = &v return s } // SetServiceArn sets the ServiceArn field's value. func (s *DescribeCustomDomainsOutput) SetServiceArn(v string) *DescribeCustomDomainsOutput { s.ServiceArn = &v return s } type DescribeServiceInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the App Runner service that you want a // description for. // // ServiceArn is a required field ServiceArn *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DescribeServiceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeServiceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeServiceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeServiceInput"} if s.ServiceArn == nil { invalidParams.Add(request.NewErrParamRequired("ServiceArn")) } if s.ServiceArn != nil && len(*s.ServiceArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("ServiceArn", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetServiceArn sets the ServiceArn field's value. func (s *DescribeServiceInput) SetServiceArn(v string) *DescribeServiceInput { s.ServiceArn = &v return s } type DescribeServiceOutput struct { _ struct{} `type:"structure"` // A full description of the App Runner service that you specified in this request. // // Service is a required field Service *Service `type:"structure" required:"true"` } // String returns the string representation func (s DescribeServiceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeServiceOutput) GoString() string { return s.String() } // SetService sets the Service field's value. func (s *DescribeServiceOutput) SetService(v *Service) *DescribeServiceOutput { s.Service = v return s } type DisassociateCustomDomainInput struct { _ struct{} `type:"structure"` // The domain name that you want to disassociate from the App Runner service. // // DomainName is a required field DomainName *string `min:"1" type:"string" required:"true"` // The Amazon Resource Name (ARN) of the App Runner service that you want to // disassociate a custom domain name from. // // ServiceArn is a required field ServiceArn *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DisassociateCustomDomainInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DisassociateCustomDomainInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DisassociateCustomDomainInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DisassociateCustomDomainInput"} if s.DomainName == nil { invalidParams.Add(request.NewErrParamRequired("DomainName")) } if s.DomainName != nil && len(*s.DomainName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) } if s.ServiceArn == nil { invalidParams.Add(request.NewErrParamRequired("ServiceArn")) } if s.ServiceArn != nil && len(*s.ServiceArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("ServiceArn", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDomainName sets the DomainName field's value. func (s *DisassociateCustomDomainInput) SetDomainName(v string) *DisassociateCustomDomainInput { s.DomainName = &v return s } // SetServiceArn sets the ServiceArn field's value. func (s *DisassociateCustomDomainInput) SetServiceArn(v string) *DisassociateCustomDomainInput { s.ServiceArn = &v return s } type DisassociateCustomDomainOutput struct { _ struct{} `type:"structure"` // A description of the domain name that's being disassociated. // // CustomDomain is a required field CustomDomain *CustomDomain `type:"structure" required:"true"` // The App Runner subdomain of the App Runner service. The disassociated custom // domain name was mapped to this target name. // // DNSTarget is a required field DNSTarget *string `type:"string" required:"true"` // The Amazon Resource Name (ARN) of the App Runner service that a custom domain // name is disassociated from. // // ServiceArn is a required field ServiceArn *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DisassociateCustomDomainOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DisassociateCustomDomainOutput) GoString() string { return s.String() } // SetCustomDomain sets the CustomDomain field's value. func (s *DisassociateCustomDomainOutput) SetCustomDomain(v *CustomDomain) *DisassociateCustomDomainOutput { s.CustomDomain = v return s } // SetDNSTarget sets the DNSTarget field's value. func (s *DisassociateCustomDomainOutput) SetDNSTarget(v string) *DisassociateCustomDomainOutput { s.DNSTarget = &v return s } // SetServiceArn sets the ServiceArn field's value. func (s *DisassociateCustomDomainOutput) SetServiceArn(v string) *DisassociateCustomDomainOutput { s.ServiceArn = &v return s } // Describes a custom encryption key that AWS App Runner uses to encrypt copies // of the source repository and service logs. type EncryptionConfiguration struct { _ struct{} `type:"structure"` // The ARN of the KMS key that's used for encryption. // // KmsKey is a required field KmsKey *string `type:"string" required:"true"` } // String returns the string representation func (s EncryptionConfiguration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s EncryptionConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *EncryptionConfiguration) Validate() error { invalidParams := request.ErrInvalidParams{Context: "EncryptionConfiguration"} if s.KmsKey == nil { invalidParams.Add(request.NewErrParamRequired("KmsKey")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetKmsKey sets the KmsKey field's value. func (s *EncryptionConfiguration) SetKmsKey(v string) *EncryptionConfiguration { s.KmsKey = &v return s } // Describes the settings for the health check that AWS App Runner performs // to monitor the health of a service. type HealthCheckConfiguration struct { _ struct{} `type:"structure"` // The number of consecutive checks that must succeed before App Runner decides // that the service is healthy. // // Default: 3 HealthyThreshold *int64 `min:"1" type:"integer"` // The time interval, in seconds, between health checks. // // Default: 5 Interval *int64 `min:"1" type:"integer"` // The URL that health check requests are sent to. // // Path is only applicable when you set Protocol to HTTP. // // Default: "/" Path *string `type:"string"` // The IP protocol that App Runner uses to perform health checks for your service. // // If you set Protocol to HTTP, App Runner sends health check requests to the // HTTP path specified by Path. // // Default: TCP Protocol *string `type:"string" enum:"HealthCheckProtocol"` // The time, in seconds, to wait for a health check response before deciding // it failed. // // Default: 2 Timeout *int64 `min:"1" type:"integer"` // The number of consecutive checks that must fail before App Runner decides // that the service is unhealthy. // // Default: 3 UnhealthyThreshold *int64 `min:"1" type:"integer"` } // String returns the string representation func (s HealthCheckConfiguration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s HealthCheckConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *HealthCheckConfiguration) Validate() error { invalidParams := request.ErrInvalidParams{Context: "HealthCheckConfiguration"} if s.HealthyThreshold != nil && *s.HealthyThreshold < 1 { invalidParams.Add(request.NewErrParamMinValue("HealthyThreshold", 1)) } if s.Interval != nil && *s.Interval < 1 { invalidParams.Add(request.NewErrParamMinValue("Interval", 1)) } if s.Timeout != nil && *s.Timeout < 1 { invalidParams.Add(request.NewErrParamMinValue("Timeout", 1)) } if s.UnhealthyThreshold != nil && *s.UnhealthyThreshold < 1 { invalidParams.Add(request.NewErrParamMinValue("UnhealthyThreshold", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetHealthyThreshold sets the HealthyThreshold field's value. func (s *HealthCheckConfiguration) SetHealthyThreshold(v int64) *HealthCheckConfiguration { s.HealthyThreshold = &v return s } // SetInterval sets the Interval field's value. func (s *HealthCheckConfiguration) SetInterval(v int64) *HealthCheckConfiguration { s.Interval = &v return s } // SetPath sets the Path field's value. func (s *HealthCheckConfiguration) SetPath(v string) *HealthCheckConfiguration { s.Path = &v return s } // SetProtocol sets the Protocol field's value. func (s *HealthCheckConfiguration) SetProtocol(v string) *HealthCheckConfiguration { s.Protocol = &v return s } // SetTimeout sets the Timeout field's value. func (s *HealthCheckConfiguration) SetTimeout(v int64) *HealthCheckConfiguration { s.Timeout = &v return s } // SetUnhealthyThreshold sets the UnhealthyThreshold field's value. func (s *HealthCheckConfiguration) SetUnhealthyThreshold(v int64) *HealthCheckConfiguration { s.UnhealthyThreshold = &v return s } // Describes the configuration that AWS App Runner uses to run an App Runner // service using an image pulled from a source image repository. type ImageConfiguration struct { _ struct{} `type:"structure"` // The port that your application listens to in the container. // // Default: 8080 Port *string `type:"string"` // Environment variables that are available to your running App Runner service. // An array of key-value pairs. Keys with a prefix of AWSAPPRUNNER are reserved // for system use and aren't valid. RuntimeEnvironmentVariables map[string]*string `type:"map"` // An optional command that App Runner runs to start the application in the // source image. If specified, this command overrides the Docker image’s default // start command. StartCommand *string `type:"string"` } // String returns the string representation func (s ImageConfiguration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ImageConfiguration) GoString() string { return s.String() } // SetPort sets the Port field's value. func (s *ImageConfiguration) SetPort(v string) *ImageConfiguration { s.Port = &v return s } // SetRuntimeEnvironmentVariables sets the RuntimeEnvironmentVariables field's value. func (s *ImageConfiguration) SetRuntimeEnvironmentVariables(v map[string]*string) *ImageConfiguration { s.RuntimeEnvironmentVariables = v return s } // SetStartCommand sets the StartCommand field's value. func (s *ImageConfiguration) SetStartCommand(v string) *ImageConfiguration { s.StartCommand = &v return s } // Describes a source image repository. type ImageRepository struct { _ struct{} `type:"structure"` // Configuration for running the identified image. ImageConfiguration *ImageConfiguration `type:"structure"` // The identifier of an image. // // For an image in Amazon Elastic Container Registry (Amazon ECR), this is an // image name. For the image name format, see Pulling an image (https://docs.aws.amazon.com/AmazonECR/latest/userguide/docker-pull-ecr-image.html) // in the Amazon ECR User Guide. // // ImageIdentifier is a required field ImageIdentifier *string `min:"1" type:"string" required:"true"` // The type of the image repository. This reflects the repository provider and // whether the repository is private or public. // // ImageRepositoryType is a required field ImageRepositoryType *string `type:"string" required:"true" enum:"ImageRepositoryType"` } // String returns the string representation func (s ImageRepository) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ImageRepository) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ImageRepository) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ImageRepository"} if s.ImageIdentifier == nil { invalidParams.Add(request.NewErrParamRequired("ImageIdentifier")) } if s.ImageIdentifier != nil && len(*s.ImageIdentifier) < 1 { invalidParams.Add(request.NewErrParamMinLen("ImageIdentifier", 1)) } if s.ImageRepositoryType == nil { invalidParams.Add(request.NewErrParamRequired("ImageRepositoryType")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetImageConfiguration sets the ImageConfiguration field's value. func (s *ImageRepository) SetImageConfiguration(v *ImageConfiguration) *ImageRepository { s.ImageConfiguration = v return s } // SetImageIdentifier sets the ImageIdentifier field's value. func (s *ImageRepository) SetImageIdentifier(v string) *ImageRepository { s.ImageIdentifier = &v return s } // SetImageRepositoryType sets the ImageRepositoryType field's value. func (s *ImageRepository) SetImageRepositoryType(v string) *ImageRepository { s.ImageRepositoryType = &v return s } // Describes the runtime configuration of an AWS App Runner service instance // (scaling unit). type InstanceConfiguration struct { _ struct{} `type:"structure"` // The number of CPU units reserved for each instance of your App Runner service. // // Default: 1 vCPU Cpu *string `min:"4" type:"string"` // The Amazon Resource Name (ARN) of an IAM role that provides permissions to // your App Runner service. These are permissions that your code needs when // it calls any AWS APIs. InstanceRoleArn *string `min:"29" type:"string"` // The amount of memory, in MB or GB, reserved for each instance of your App // Runner service. // // Default: 2 GB Memory *string `min:"4" type:"string"` } // String returns the string representation func (s InstanceConfiguration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s InstanceConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *InstanceConfiguration) Validate() error { invalidParams := request.ErrInvalidParams{Context: "InstanceConfiguration"} if s.Cpu != nil && len(*s.Cpu) < 4 { invalidParams.Add(request.NewErrParamMinLen("Cpu", 4)) } if s.InstanceRoleArn != nil && len(*s.InstanceRoleArn) < 29 { invalidParams.Add(request.NewErrParamMinLen("InstanceRoleArn", 29)) } if s.Memory != nil && len(*s.Memory) < 4 { invalidParams.Add(request.NewErrParamMinLen("Memory", 4)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCpu sets the Cpu field's value. func (s *InstanceConfiguration) SetCpu(v string) *InstanceConfiguration { s.Cpu = &v return s } // SetInstanceRoleArn sets the InstanceRoleArn field's value. func (s *InstanceConfiguration) SetInstanceRoleArn(v string) *InstanceConfiguration { s.InstanceRoleArn = &v return s } // SetMemory sets the Memory field's value. func (s *InstanceConfiguration) SetMemory(v string) *InstanceConfiguration { s.Memory = &v return s } // An unexpected service exception occurred. type InternalServiceErrorException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s InternalServiceErrorException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s InternalServiceErrorException) GoString() string { return s.String() } func newErrorInternalServiceErrorException(v protocol.ResponseMetadata) error { return &InternalServiceErrorException{ RespMetadata: v, } } // Code returns the exception type name. func (s *InternalServiceErrorException) Code() string { return "InternalServiceErrorException" } // Message returns the exception's message. func (s *InternalServiceErrorException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *InternalServiceErrorException) OrigErr() error { return nil } func (s *InternalServiceErrorException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *InternalServiceErrorException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *InternalServiceErrorException) RequestID() string { return s.RespMetadata.RequestID } // One or more input parameters aren't valid. Refer to the API action's document // page, correct the input parameters, and try the action again. type InvalidRequestException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s InvalidRequestException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s InvalidRequestException) GoString() string { return s.String() } func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { return &InvalidRequestException{ RespMetadata: v, } } // Code returns the exception type name. func (s *InvalidRequestException) Code() string { return "InvalidRequestException" } // Message returns the exception's message. func (s *InvalidRequestException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *InvalidRequestException) OrigErr() error { return nil } func (s *InvalidRequestException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *InvalidRequestException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *InvalidRequestException) RequestID() string { return s.RespMetadata.RequestID } // You can't perform this action when the resource is in its current state. type InvalidStateException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s InvalidStateException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s InvalidStateException) GoString() string { return s.String() } func newErrorInvalidStateException(v protocol.ResponseMetadata) error { return &InvalidStateException{ RespMetadata: v, } } // Code returns the exception type name. func (s *InvalidStateException) Code() string { return "InvalidStateException" } // Message returns the exception's message. func (s *InvalidStateException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *InvalidStateException) OrigErr() error { return nil } func (s *InvalidStateException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *InvalidStateException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *InvalidStateException) RequestID() string { return s.RespMetadata.RequestID } type ListAutoScalingConfigurationsInput struct { _ struct{} `type:"structure"` // The name of the App Runner auto scaling configuration that you want to list. // If specified, App Runner lists revisions that share this name. If not specified, // App Runner returns revisions of all configurations. AutoScalingConfigurationName *string `min:"4" type:"string"` // Set to true to list only the latest revision for each requested configuration // name. // // Keep as false to list all revisions for each requested configuration name. // // Default: false LatestOnly *bool `type:"boolean"` // The maximum number of results to include in each response (result page). // It's used for a paginated request. // // If you don't specify MaxResults, the request retrieves all available results // in a single response. MaxResults *int64 `min:"1" type:"integer"` // A token from a previous result page. It's used for a paginated request. The // request retrieves the next result page. All other parameter values must be // identical to the ones that are specified in the initial request. // // If you don't specify NextToken, the request retrieves the first result page. NextToken *string `min:"1" type:"string"` } // String returns the string representation func (s ListAutoScalingConfigurationsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListAutoScalingConfigurationsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListAutoScalingConfigurationsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListAutoScalingConfigurationsInput"} if s.AutoScalingConfigurationName != nil && len(*s.AutoScalingConfigurationName) < 4 { invalidParams.Add(request.NewErrParamMinLen("AutoScalingConfigurationName", 4)) } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAutoScalingConfigurationName sets the AutoScalingConfigurationName field's value. func (s *ListAutoScalingConfigurationsInput) SetAutoScalingConfigurationName(v string) *ListAutoScalingConfigurationsInput { s.AutoScalingConfigurationName = &v return s } // SetLatestOnly sets the LatestOnly field's value. func (s *ListAutoScalingConfigurationsInput) SetLatestOnly(v bool) *ListAutoScalingConfigurationsInput { s.LatestOnly = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListAutoScalingConfigurationsInput) SetMaxResults(v int64) *ListAutoScalingConfigurationsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListAutoScalingConfigurationsInput) SetNextToken(v string) *ListAutoScalingConfigurationsInput { s.NextToken = &v return s } type ListAutoScalingConfigurationsOutput struct { _ struct{} `type:"structure"` // A list of summary information records for auto scaling configurations. In // a paginated request, the request returns up to MaxResults records for each // call. // // AutoScalingConfigurationSummaryList is a required field AutoScalingConfigurationSummaryList []*AutoScalingConfigurationSummary `type:"list" required:"true"` // The token that you can pass in a subsequent request to get the next result // page. It's returned in a paginated request. NextToken *string `min:"1" type:"string"` } // String returns the string representation func (s ListAutoScalingConfigurationsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListAutoScalingConfigurationsOutput) GoString() string { return s.String() } // SetAutoScalingConfigurationSummaryList sets the AutoScalingConfigurationSummaryList field's value. func (s *ListAutoScalingConfigurationsOutput) SetAutoScalingConfigurationSummaryList(v []*AutoScalingConfigurationSummary) *ListAutoScalingConfigurationsOutput { s.AutoScalingConfigurationSummaryList = v return s } // SetNextToken sets the NextToken field's value. func (s *ListAutoScalingConfigurationsOutput) SetNextToken(v string) *ListAutoScalingConfigurationsOutput { s.NextToken = &v return s } type ListConnectionsInput struct { _ struct{} `type:"structure"` // If specified, only this connection is returned. If not specified, the result // isn't filtered by name. ConnectionName *string `min:"4" type:"string"` // The maximum number of results to include in each response (result page). // Used for a paginated request. // // If you don't specify MaxResults, the request retrieves all available results // in a single response. MaxResults *int64 `min:"1" type:"integer"` // A token from a previous result page. Used for a paginated request. The request // retrieves the next result page. All other parameter values must be identical // to the ones specified in the initial request. // // If you don't specify NextToken, the request retrieves the first result page. NextToken *string `min:"1" type:"string"` } // String returns the string representation func (s ListConnectionsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListConnectionsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListConnectionsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListConnectionsInput"} if s.ConnectionName != nil && len(*s.ConnectionName) < 4 { invalidParams.Add(request.NewErrParamMinLen("ConnectionName", 4)) } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetConnectionName sets the ConnectionName field's value. func (s *ListConnectionsInput) SetConnectionName(v string) *ListConnectionsInput { s.ConnectionName = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListConnectionsInput) SetMaxResults(v int64) *ListConnectionsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListConnectionsInput) SetNextToken(v string) *ListConnectionsInput { s.NextToken = &v return s } type ListConnectionsOutput struct { _ struct{} `type:"structure"` // A list of summary information records for connections. In a paginated request, // the request returns up to MaxResults records for each call. // // ConnectionSummaryList is a required field ConnectionSummaryList []*ConnectionSummary `type:"list" required:"true"` // The token that you can pass in a subsequent request to get the next result // page. Returned in a paginated request. NextToken *string `min:"1" type:"string"` } // String returns the string representation func (s ListConnectionsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListConnectionsOutput) GoString() string { return s.String() } // SetConnectionSummaryList sets the ConnectionSummaryList field's value. func (s *ListConnectionsOutput) SetConnectionSummaryList(v []*ConnectionSummary) *ListConnectionsOutput { s.ConnectionSummaryList = v return s } // SetNextToken sets the NextToken field's value. func (s *ListConnectionsOutput) SetNextToken(v string) *ListConnectionsOutput { s.NextToken = &v return s } type ListOperationsInput struct { _ struct{} `type:"structure"` // The maximum number of results to include in each response (result page). // It's used for a paginated request. // // If you don't specify MaxResults, the request retrieves all available results // in a single response. MaxResults *int64 `min:"1" type:"integer"` // A token from a previous result page. It's used for a paginated request. The // request retrieves the next result page. All other parameter values must be // identical to the ones specified in the initial request. // // If you don't specify NextToken, the request retrieves the first result page. NextToken *string `type:"string"` // The Amazon Resource Name (ARN) of the App Runner service that you want a // list of operations for. // // ServiceArn is a required field ServiceArn *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s ListOperationsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListOperationsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListOperationsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListOperationsInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if s.ServiceArn == nil { invalidParams.Add(request.NewErrParamRequired("ServiceArn")) } if s.ServiceArn != nil && len(*s.ServiceArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("ServiceArn", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxResults sets the MaxResults field's value. func (s *ListOperationsInput) SetMaxResults(v int64) *ListOperationsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListOperationsInput) SetNextToken(v string) *ListOperationsInput { s.NextToken = &v return s } // SetServiceArn sets the ServiceArn field's value. func (s *ListOperationsInput) SetServiceArn(v string) *ListOperationsInput { s.ServiceArn = &v return s } type ListOperationsOutput struct { _ struct{} `type:"structure"` // The token that you can pass in a subsequent request to get the next result // page. It's returned in a paginated request. NextToken *string `type:"string"` // A list of operation summary information records. In a paginated request, // the request returns up to MaxResults records for each call. OperationSummaryList []*OperationSummary `type:"list"` } // String returns the string representation func (s ListOperationsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListOperationsOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *ListOperationsOutput) SetNextToken(v string) *ListOperationsOutput { s.NextToken = &v return s } // SetOperationSummaryList sets the OperationSummaryList field's value. func (s *ListOperationsOutput) SetOperationSummaryList(v []*OperationSummary) *ListOperationsOutput { s.OperationSummaryList = v return s } type ListServicesInput struct { _ struct{} `type:"structure"` // The maximum number of results to include in each response (result page). // It's used for a paginated request. // // If you don't specify MaxResults, the request retrieves all available results // in a single response. MaxResults *int64 `min:"1" type:"integer"` // A token from a previous result page. Used for a paginated request. The request // retrieves the next result page. All other parameter values must be identical // to the ones specified in the initial request. // // If you don't specify NextToken, the request retrieves the first result page. NextToken *string `type:"string"` } // String returns the string representation func (s ListServicesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListServicesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListServicesInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListServicesInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxResults sets the MaxResults field's value. func (s *ListServicesInput) SetMaxResults(v int64) *ListServicesInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListServicesInput) SetNextToken(v string) *ListServicesInput { s.NextToken = &v return s } type ListServicesOutput struct { _ struct{} `type:"structure"` // The token that you can pass in a subsequent request to get the next result // page. It's returned in a paginated request. NextToken *string `type:"string"` // A list of service summary information records. In a paginated request, the // request returns up to MaxResults records for each call. // // ServiceSummaryList is a required field ServiceSummaryList []*ServiceSummary `type:"list" required:"true"` } // String returns the string representation func (s ListServicesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListServicesOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *ListServicesOutput) SetNextToken(v string) *ListServicesOutput { s.NextToken = &v return s } // SetServiceSummaryList sets the ServiceSummaryList field's value. func (s *ListServicesOutput) SetServiceSummaryList(v []*ServiceSummary) *ListServicesOutput { s.ServiceSummaryList = v return s } type ListTagsForResourceInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the resource that a tag list is requested // for. // // It must be the ARN of an App Runner resource. // // ResourceArn is a required field ResourceArn *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s ListTagsForResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListTagsForResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListTagsForResourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} if s.ResourceArn == nil { invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetResourceArn sets the ResourceArn field's value. func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { s.ResourceArn = &v return s } type ListTagsForResourceOutput struct { _ struct{} `type:"structure"` // A list of the tag key-value pairs that are associated with the resource. Tags []*Tag `type:"list"` } // String returns the string representation func (s ListTagsForResourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListTagsForResourceOutput) GoString() string { return s.String() } // SetTags sets the Tags field's value. func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { s.Tags = v return s } // Provides summary information for an operation that occurred on an AWS App // Runner service. type OperationSummary struct { _ struct{} `type:"structure"` // The time when the operation ended. It's in the Unix time stamp format. EndedAt *time.Time `type:"timestamp"` // A unique ID of this operation. It's unique in the scope of the App Runner // service. Id *string `min:"36" type:"string"` // The time when the operation started. It's in the Unix time stamp format. StartedAt *time.Time `type:"timestamp"` // The current state of the operation. Status *string `type:"string" enum:"OperationStatus"` // The Amazon Resource Name (ARN) of the resource that the operation acted on // (for example, an App Runner service). TargetArn *string `min:"1" type:"string"` // The type of operation. It indicates a specific action that occured. Type *string `type:"string" enum:"OperationType"` // The time when the operation was last updated. It's in the Unix time stamp // format. UpdatedAt *time.Time `type:"timestamp"` } // String returns the string representation func (s OperationSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s OperationSummary) GoString() string { return s.String() } // SetEndedAt sets the EndedAt field's value. func (s *OperationSummary) SetEndedAt(v time.Time) *OperationSummary { s.EndedAt = &v return s } // SetId sets the Id field's value. func (s *OperationSummary) SetId(v string) *OperationSummary { s.Id = &v return s } // SetStartedAt sets the StartedAt field's value. func (s *OperationSummary) SetStartedAt(v time.Time) *OperationSummary { s.StartedAt = &v return s } // SetStatus sets the Status field's value. func (s *OperationSummary) SetStatus(v string) *OperationSummary { s.Status = &v return s } // SetTargetArn sets the TargetArn field's value. func (s *OperationSummary) SetTargetArn(v string) *OperationSummary { s.TargetArn = &v return s } // SetType sets the Type field's value. func (s *OperationSummary) SetType(v string) *OperationSummary { s.Type = &v return s } // SetUpdatedAt sets the UpdatedAt field's value. func (s *OperationSummary) SetUpdatedAt(v time.Time) *OperationSummary { s.UpdatedAt = &v return s } type PauseServiceInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the App Runner service that you want to // pause. // // ServiceArn is a required field ServiceArn *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s PauseServiceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s PauseServiceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *PauseServiceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "PauseServiceInput"} if s.ServiceArn == nil { invalidParams.Add(request.NewErrParamRequired("ServiceArn")) } if s.ServiceArn != nil && len(*s.ServiceArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("ServiceArn", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetServiceArn sets the ServiceArn field's value. func (s *PauseServiceInput) SetServiceArn(v string) *PauseServiceInput { s.ServiceArn = &v return s } type PauseServiceOutput struct { _ struct{} `type:"structure"` // The unique ID of the asynchronous operation that this request started. You // can use it combined with the ListOperations call to track the operation's // progress. OperationId *string `min:"36" type:"string"` // A description of the App Runner service that this request just paused. // // Service is a required field Service *Service `type:"structure" required:"true"` } // String returns the string representation func (s PauseServiceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s PauseServiceOutput) GoString() string { return s.String() } // SetOperationId sets the OperationId field's value. func (s *PauseServiceOutput) SetOperationId(v string) *PauseServiceOutput { s.OperationId = &v return s } // SetService sets the Service field's value. func (s *PauseServiceOutput) SetService(v *Service) *PauseServiceOutput { s.Service = v return s } // A resource doesn't exist for the specified Amazon Resource Name (ARN) in // your AWS account. type ResourceNotFoundException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s ResourceNotFoundException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ResourceNotFoundException) GoString() string { return s.String() } func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { return &ResourceNotFoundException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ResourceNotFoundException) Code() string { return "ResourceNotFoundException" } // Message returns the exception's message. func (s *ResourceNotFoundException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ResourceNotFoundException) OrigErr() error { return nil } func (s *ResourceNotFoundException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ResourceNotFoundException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ResourceNotFoundException) RequestID() string { return s.RespMetadata.RequestID } type ResumeServiceInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the App Runner service that you want to // resume. // // ServiceArn is a required field ServiceArn *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s ResumeServiceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ResumeServiceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ResumeServiceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ResumeServiceInput"} if s.ServiceArn == nil { invalidParams.Add(request.NewErrParamRequired("ServiceArn")) } if s.ServiceArn != nil && len(*s.ServiceArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("ServiceArn", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetServiceArn sets the ServiceArn field's value. func (s *ResumeServiceInput) SetServiceArn(v string) *ResumeServiceInput { s.ServiceArn = &v return s } type ResumeServiceOutput struct { _ struct{} `type:"structure"` // The unique ID of the asynchronous operation that this request started. You // can use it combined with the ListOperations call to track the operation's // progress. OperationId *string `min:"36" type:"string"` // A description of the App Runner service that this request just resumed. // // Service is a required field Service *Service `type:"structure" required:"true"` } // String returns the string representation func (s ResumeServiceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ResumeServiceOutput) GoString() string { return s.String() } // SetOperationId sets the OperationId field's value. func (s *ResumeServiceOutput) SetOperationId(v string) *ResumeServiceOutput { s.OperationId = &v return s } // SetService sets the Service field's value. func (s *ResumeServiceOutput) SetService(v *Service) *ResumeServiceOutput { s.Service = v return s } // Describes an AWS App Runner service. It can describe a service in any state, // including deleted services. // // This type contains the full information about a service, including configuration // details. It's returned by the CreateService (https://docs.aws.amazon.com/apprunner/latest/api/API_CreateService.html), // DescribeService (https://docs.aws.amazon.com/apprunner/latest/api/API_DescribeService.html), // and DeleteService (https://docs.aws.amazon.com/apprunner/latest/api/API_DeleteService.html) // actions. A subset of this information is returned by the ListServices (https://docs.aws.amazon.com/apprunner/latest/api/API_ListServices.html) // action using the ServiceSummary (https://docs.aws.amazon.com/apprunner/latest/api/API_ServiceSummary.html) // type. type Service struct { _ struct{} `type:"structure"` // Summary information for the App Runner automatic scaling configuration resource // that's associated with this service. // // AutoScalingConfigurationSummary is a required field AutoScalingConfigurationSummary *AutoScalingConfigurationSummary `type:"structure" required:"true"` // The time when the App Runner service was created. It's in the Unix time stamp // format. // // CreatedAt is a required field CreatedAt *time.Time `type:"timestamp" required:"true"` // The time when the App Runner service was deleted. It's in the Unix time stamp // format. DeletedAt *time.Time `type:"timestamp"` // The encryption key that App Runner uses to encrypt the service logs and the // copy of the source repository that App Runner maintains for the service. // It can be either a customer-provided encryption key or an AWS managed CMK. EncryptionConfiguration *EncryptionConfiguration `type:"structure"` // The settings for the health check that App Runner performs to monitor the // health of this service. HealthCheckConfiguration *HealthCheckConfiguration `type:"structure"` // The runtime configuration of instances (scaling units) of this service. // // InstanceConfiguration is a required field InstanceConfiguration *InstanceConfiguration `type:"structure" required:"true"` // The Amazon Resource Name (ARN) of this service. // // ServiceArn is a required field ServiceArn *string `min:"1" type:"string" required:"true"` // An ID that App Runner generated for this service. It's unique within the // AWS Region. // // ServiceId is a required field ServiceId *string `min:"32" type:"string" required:"true"` // The customer-provided service name. // // ServiceName is a required field ServiceName *string `min:"4" type:"string" required:"true"` // A subdomain URL that App Runner generated for this service. You can use this // URL to access your service web application. // // ServiceUrl is a required field ServiceUrl *string `type:"string" required:"true"` // The source deployed to the App Runner service. It can be a code or an image // repository. // // SourceConfiguration is a required field SourceConfiguration *SourceConfiguration `type:"structure" required:"true"` // The current state of the App Runner service. These particular values mean // the following. // // * CREATE_FAILED – The service failed to create. To troubleshoot this // failure, read the failure events and logs, change any parameters that // need to be fixed, and retry the call to create the service. The failed // service isn't usable, and still counts towards your service quota. When // you're done analyzing the failure, delete the service. // // * DELETE_FAILED – The service failed to delete and can't be successfully // recovered. Retry the service deletion call to ensure that all related // resources are removed. // // Status is a required field Status *string `type:"string" required:"true" enum:"ServiceStatus"` // The time when the App Runner service was last updated at. It's in the Unix // time stamp format. // // UpdatedAt is a required field UpdatedAt *time.Time `type:"timestamp" required:"true"` } // String returns the string representation func (s Service) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Service) GoString() string { return s.String() } // SetAutoScalingConfigurationSummary sets the AutoScalingConfigurationSummary field's value. func (s *Service) SetAutoScalingConfigurationSummary(v *AutoScalingConfigurationSummary) *Service { s.AutoScalingConfigurationSummary = v return s } // SetCreatedAt sets the CreatedAt field's value. func (s *Service) SetCreatedAt(v time.Time) *Service { s.CreatedAt = &v return s } // SetDeletedAt sets the DeletedAt field's value. func (s *Service) SetDeletedAt(v time.Time) *Service { s.DeletedAt = &v return s } // SetEncryptionConfiguration sets the EncryptionConfiguration field's value. func (s *Service) SetEncryptionConfiguration(v *EncryptionConfiguration) *Service { s.EncryptionConfiguration = v return s } // SetHealthCheckConfiguration sets the HealthCheckConfiguration field's value. func (s *Service) SetHealthCheckConfiguration(v *HealthCheckConfiguration) *Service { s.HealthCheckConfiguration = v return s } // SetInstanceConfiguration sets the InstanceConfiguration field's value. func (s *Service) SetInstanceConfiguration(v *InstanceConfiguration) *Service { s.InstanceConfiguration = v return s } // SetServiceArn sets the ServiceArn field's value. func (s *Service) SetServiceArn(v string) *Service { s.ServiceArn = &v return s } // SetServiceId sets the ServiceId field's value. func (s *Service) SetServiceId(v string) *Service { s.ServiceId = &v return s } // SetServiceName sets the ServiceName field's value. func (s *Service) SetServiceName(v string) *Service { s.ServiceName = &v return s } // SetServiceUrl sets the ServiceUrl field's value. func (s *Service) SetServiceUrl(v string) *Service { s.ServiceUrl = &v return s } // SetSourceConfiguration sets the SourceConfiguration field's value. func (s *Service) SetSourceConfiguration(v *SourceConfiguration) *Service { s.SourceConfiguration = v return s } // SetStatus sets the Status field's value. func (s *Service) SetStatus(v string) *Service { s.Status = &v return s } // SetUpdatedAt sets the UpdatedAt field's value. func (s *Service) SetUpdatedAt(v time.Time) *Service { s.UpdatedAt = &v return s } // App Runner can't create this resource. You've reached your account quota // for this resource type. // // For App Runner per-resource quotas, see AWS App Runner endpoints and quotas // (https://docs.aws.amazon.com/general/latest/gr/apprunner.html) in the AWS // General Reference. type ServiceQuotaExceededException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s ServiceQuotaExceededException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ServiceQuotaExceededException) GoString() string { return s.String() } func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error { return &ServiceQuotaExceededException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ServiceQuotaExceededException) Code() string { return "ServiceQuotaExceededException" } // Message returns the exception's message. func (s *ServiceQuotaExceededException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ServiceQuotaExceededException) OrigErr() error { return nil } func (s *ServiceQuotaExceededException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ServiceQuotaExceededException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ServiceQuotaExceededException) RequestID() string { return s.RespMetadata.RequestID } // Provides summary information for an AWS App Runner service. // // This type contains limited information about a service. It doesn't include // configuration details. It's returned by the ListServices (https://docs.aws.amazon.com/apprunner/latest/api/API_ListServices.html) // action. Complete service information is returned by the CreateService (https://docs.aws.amazon.com/apprunner/latest/api/API_CreateService.html), // DescribeService (https://docs.aws.amazon.com/apprunner/latest/api/API_DescribeService.html), // and DeleteService (https://docs.aws.amazon.com/apprunner/latest/api/API_DeleteService.html) // actions using the Service (https://docs.aws.amazon.com/apprunner/latest/api/API_Service.html) // type. type ServiceSummary struct { _ struct{} `type:"structure"` // The time when the App Runner service was created. It's in the Unix time stamp // format. CreatedAt *time.Time `type:"timestamp"` // The Amazon Resource Name (ARN) of this service. ServiceArn *string `min:"1" type:"string"` // An ID that App Runner generated for this service. It's unique within the // AWS Region. ServiceId *string `min:"32" type:"string"` // The customer-provided service name. ServiceName *string `min:"4" type:"string"` // A subdomain URL that App Runner generated for this service. You can use this // URL to access your service web application. ServiceUrl *string `type:"string"` // The current state of the App Runner service. These particular values mean // the following. // // * CREATE_FAILED – The service failed to create. Read the failure events // and logs, change any parameters that need to be fixed, and retry the call // to create the service. The failed service isn't usable, and still counts // towards your service quota. When you're done analyzing the failure, delete // the service. // // * DELETE_FAILED – The service failed to delete and can't be successfully // recovered. Retry the service deletion call to ensure that all related // resources are removed. Status *string `type:"string" enum:"ServiceStatus"` // The time when the App Runner service was last updated. It's in theUnix time // stamp format. UpdatedAt *time.Time `type:"timestamp"` } // String returns the string representation func (s ServiceSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ServiceSummary) GoString() string { return s.String() } // SetCreatedAt sets the CreatedAt field's value. func (s *ServiceSummary) SetCreatedAt(v time.Time) *ServiceSummary { s.CreatedAt = &v return s } // SetServiceArn sets the ServiceArn field's value. func (s *ServiceSummary) SetServiceArn(v string) *ServiceSummary { s.ServiceArn = &v return s } // SetServiceId sets the ServiceId field's value. func (s *ServiceSummary) SetServiceId(v string) *ServiceSummary { s.ServiceId = &v return s } // SetServiceName sets the ServiceName field's value. func (s *ServiceSummary) SetServiceName(v string) *ServiceSummary { s.ServiceName = &v return s } // SetServiceUrl sets the ServiceUrl field's value. func (s *ServiceSummary) SetServiceUrl(v string) *ServiceSummary { s.ServiceUrl = &v return s } // SetStatus sets the Status field's value. func (s *ServiceSummary) SetStatus(v string) *ServiceSummary { s.Status = &v return s } // SetUpdatedAt sets the UpdatedAt field's value. func (s *ServiceSummary) SetUpdatedAt(v time.Time) *ServiceSummary { s.UpdatedAt = &v return s } // Identifies a version of code that AWS App Runner refers to within a source // code repository. type SourceCodeVersion struct { _ struct{} `type:"structure"` // The type of version identifier. // // For a git-based repository, branches represent versions. // // Type is a required field Type *string `type:"string" required:"true" enum:"SourceCodeVersionType"` // A source code version. // // For a git-based repository, a branch name maps to a specific version. App // Runner uses the most recent commit to the branch. // // Value is a required field Value *string `type:"string" required:"true"` } // String returns the string representation func (s SourceCodeVersion) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s SourceCodeVersion) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *SourceCodeVersion) Validate() error { invalidParams := request.ErrInvalidParams{Context: "SourceCodeVersion"} if s.Type == nil { invalidParams.Add(request.NewErrParamRequired("Type")) } if s.Value == nil { invalidParams.Add(request.NewErrParamRequired("Value")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetType sets the Type field's value. func (s *SourceCodeVersion) SetType(v string) *SourceCodeVersion { s.Type = &v return s } // SetValue sets the Value field's value. func (s *SourceCodeVersion) SetValue(v string) *SourceCodeVersion { s.Value = &v return s } // Describes the source deployed to an AWS App Runner service. It can be a code // or an image repository. type SourceConfiguration struct { _ struct{} `type:"structure"` // Describes the resources that are needed to authenticate access to some source // repositories. AuthenticationConfiguration *AuthenticationConfiguration `type:"structure"` // If true, continuous integration from the source repository is enabled for // the App Runner service. Each repository change (source code commit or new // image version) starts a deployment. // // Default: true AutoDeploymentsEnabled *bool `type:"boolean"` // The description of a source code repository. // // You must provide either this member or ImageRepository (but not both). CodeRepository *CodeRepository `type:"structure"` // The description of a source image repository. // // You must provide either this member or CodeRepository (but not both). ImageRepository *ImageRepository `type:"structure"` } // String returns the string representation func (s SourceConfiguration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s SourceConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *SourceConfiguration) Validate() error { invalidParams := request.ErrInvalidParams{Context: "SourceConfiguration"} if s.AuthenticationConfiguration != nil { if err := s.AuthenticationConfiguration.Validate(); err != nil { invalidParams.AddNested("AuthenticationConfiguration", err.(request.ErrInvalidParams)) } } if s.CodeRepository != nil { if err := s.CodeRepository.Validate(); err != nil { invalidParams.AddNested("CodeRepository", err.(request.ErrInvalidParams)) } } if s.ImageRepository != nil { if err := s.ImageRepository.Validate(); err != nil { invalidParams.AddNested("ImageRepository", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAuthenticationConfiguration sets the AuthenticationConfiguration field's value. func (s *SourceConfiguration) SetAuthenticationConfiguration(v *AuthenticationConfiguration) *SourceConfiguration { s.AuthenticationConfiguration = v return s } // SetAutoDeploymentsEnabled sets the AutoDeploymentsEnabled field's value. func (s *SourceConfiguration) SetAutoDeploymentsEnabled(v bool) *SourceConfiguration { s.AutoDeploymentsEnabled = &v return s } // SetCodeRepository sets the CodeRepository field's value. func (s *SourceConfiguration) SetCodeRepository(v *CodeRepository) *SourceConfiguration { s.CodeRepository = v return s } // SetImageRepository sets the ImageRepository field's value. func (s *SourceConfiguration) SetImageRepository(v *ImageRepository) *SourceConfiguration { s.ImageRepository = v return s } type StartDeploymentInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the App Runner service that you want to // manually deploy to. // // ServiceArn is a required field ServiceArn *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s StartDeploymentInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StartDeploymentInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *StartDeploymentInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "StartDeploymentInput"} if s.ServiceArn == nil { invalidParams.Add(request.NewErrParamRequired("ServiceArn")) } if s.ServiceArn != nil && len(*s.ServiceArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("ServiceArn", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetServiceArn sets the ServiceArn field's value. func (s *StartDeploymentInput) SetServiceArn(v string) *StartDeploymentInput { s.ServiceArn = &v return s } type StartDeploymentOutput struct { _ struct{} `type:"structure"` // The unique ID of the asynchronous operation that this request started. You // can use it combined with the ListOperations call to track the operation's // progress. // // OperationId is a required field OperationId *string `min:"36" type:"string" required:"true"` } // String returns the string representation func (s StartDeploymentOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StartDeploymentOutput) GoString() string { return s.String() } // SetOperationId sets the OperationId field's value. func (s *StartDeploymentOutput) SetOperationId(v string) *StartDeploymentOutput { s.OperationId = &v return s } // Describes a tag that is applied to an AWS App Runner resource. A tag is a // metadata item consisting of a key-value pair. type Tag struct { _ struct{} `type:"structure"` // The key of the tag. Key *string `min:"1" type:"string"` // The value of the tag. Value *string `type:"string"` } // String returns the string representation func (s Tag) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Tag) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *Tag) Validate() error { invalidParams := request.ErrInvalidParams{Context: "Tag"} if s.Key != nil && len(*s.Key) < 1 { invalidParams.Add(request.NewErrParamMinLen("Key", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetKey sets the Key field's value. func (s *Tag) SetKey(v string) *Tag { s.Key = &v return s } // SetValue sets the Value field's value. func (s *Tag) SetValue(v string) *Tag { s.Value = &v return s } type TagResourceInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the resource that you want to update tags // for. // // It must be the ARN of an App Runner resource. // // ResourceArn is a required field ResourceArn *string `min:"1" type:"string" required:"true"` // A list of tag key-value pairs to add or update. If a key is new to the resource, // the tag is added with the provided value. If a key is already associated // with the resource, the value of the tag is updated. // // Tags is a required field Tags []*Tag `type:"list" required:"true"` } // String returns the string representation func (s TagResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TagResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *TagResourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} if s.ResourceArn == nil { invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) } if s.Tags == nil { invalidParams.Add(request.NewErrParamRequired("Tags")) } if s.Tags != nil { for i, v := range s.Tags { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetResourceArn sets the ResourceArn field's value. func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { s.ResourceArn = &v return s } // SetTags sets the Tags field's value. func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput { s.Tags = v return s } type TagResourceOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s TagResourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TagResourceOutput) GoString() string { return s.String() } type UntagResourceInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the resource that you want to remove tags // from. // // It must be the ARN of an App Runner resource. // // ResourceArn is a required field ResourceArn *string `min:"1" type:"string" required:"true"` // A list of tag keys that you want to remove. // // TagKeys is a required field TagKeys []*string `type:"list" required:"true"` } // String returns the string representation func (s UntagResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UntagResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UntagResourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} if s.ResourceArn == nil { invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) } if s.TagKeys == nil { invalidParams.Add(request.NewErrParamRequired("TagKeys")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetResourceArn sets the ResourceArn field's value. func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { s.ResourceArn = &v return s } // SetTagKeys sets the TagKeys field's value. func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { s.TagKeys = v return s } type UntagResourceOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s UntagResourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UntagResourceOutput) GoString() string { return s.String() } type UpdateServiceInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of an App Runner automatic scaling configuration // resource that you want to associate with your service. AutoScalingConfigurationArn *string `min:"1" type:"string"` // The settings for the health check that AWS App Runner performs to monitor // the health of your service. HealthCheckConfiguration *HealthCheckConfiguration `type:"structure"` // The runtime configuration to apply to instances (scaling units) of the App // Runner service. InstanceConfiguration *InstanceConfiguration `type:"structure"` // The Amazon Resource Name (ARN) of the App Runner service that you want to // update. // // ServiceArn is a required field ServiceArn *string `min:"1" type:"string" required:"true"` // The source configuration to apply to the App Runner service. // // You can change the configuration of the code or image repository that the // service uses. However, you can't switch from code to image or the other way // around. This means that you must provide the same structure member of SourceConfiguration // that you originally included when you created the service. Specifically, // you can include either CodeRepository or ImageRepository. To update the source // configuration, set the values to members of the structure that you include. SourceConfiguration *SourceConfiguration `type:"structure"` } // String returns the string representation func (s UpdateServiceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateServiceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateServiceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateServiceInput"} if s.AutoScalingConfigurationArn != nil && len(*s.AutoScalingConfigurationArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("AutoScalingConfigurationArn", 1)) } if s.ServiceArn == nil { invalidParams.Add(request.NewErrParamRequired("ServiceArn")) } if s.ServiceArn != nil && len(*s.ServiceArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("ServiceArn", 1)) } if s.HealthCheckConfiguration != nil { if err := s.HealthCheckConfiguration.Validate(); err != nil { invalidParams.AddNested("HealthCheckConfiguration", err.(request.ErrInvalidParams)) } } if s.InstanceConfiguration != nil { if err := s.InstanceConfiguration.Validate(); err != nil { invalidParams.AddNested("InstanceConfiguration", err.(request.ErrInvalidParams)) } } if s.SourceConfiguration != nil { if err := s.SourceConfiguration.Validate(); err != nil { invalidParams.AddNested("SourceConfiguration", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAutoScalingConfigurationArn sets the AutoScalingConfigurationArn field's value. func (s *UpdateServiceInput) SetAutoScalingConfigurationArn(v string) *UpdateServiceInput { s.AutoScalingConfigurationArn = &v return s } // SetHealthCheckConfiguration sets the HealthCheckConfiguration field's value. func (s *UpdateServiceInput) SetHealthCheckConfiguration(v *HealthCheckConfiguration) *UpdateServiceInput { s.HealthCheckConfiguration = v return s } // SetInstanceConfiguration sets the InstanceConfiguration field's value. func (s *UpdateServiceInput) SetInstanceConfiguration(v *InstanceConfiguration) *UpdateServiceInput { s.InstanceConfiguration = v return s } // SetServiceArn sets the ServiceArn field's value. func (s *UpdateServiceInput) SetServiceArn(v string) *UpdateServiceInput { s.ServiceArn = &v return s } // SetSourceConfiguration sets the SourceConfiguration field's value. func (s *UpdateServiceInput) SetSourceConfiguration(v *SourceConfiguration) *UpdateServiceInput { s.SourceConfiguration = v return s } type UpdateServiceOutput struct { _ struct{} `type:"structure"` // The unique ID of the asynchronous operation that this request started. You // can use it combined with the ListOperations call to track the operation's // progress. // // OperationId is a required field OperationId *string `min:"36" type:"string" required:"true"` // A description of the App Runner service updated by this request. All configuration // values in the returned Service structure reflect configuration changes that // are being applied by this request. // // Service is a required field Service *Service `type:"structure" required:"true"` } // String returns the string representation func (s UpdateServiceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateServiceOutput) GoString() string { return s.String() } // SetOperationId sets the OperationId field's value. func (s *UpdateServiceOutput) SetOperationId(v string) *UpdateServiceOutput { s.OperationId = &v return s } // SetService sets the Service field's value. func (s *UpdateServiceOutput) SetService(v *Service) *UpdateServiceOutput { s.Service = v return s } const ( // AutoScalingConfigurationStatusActive is a AutoScalingConfigurationStatus enum value AutoScalingConfigurationStatusActive = "ACTIVE" // AutoScalingConfigurationStatusInactive is a AutoScalingConfigurationStatus enum value AutoScalingConfigurationStatusInactive = "INACTIVE" ) // AutoScalingConfigurationStatus_Values returns all elements of the AutoScalingConfigurationStatus enum func AutoScalingConfigurationStatus_Values() []string { return []string{ AutoScalingConfigurationStatusActive, AutoScalingConfigurationStatusInactive, } } const ( // CertificateValidationRecordStatusPendingValidation is a CertificateValidationRecordStatus enum value CertificateValidationRecordStatusPendingValidation = "PENDING_VALIDATION" // CertificateValidationRecordStatusSuccess is a CertificateValidationRecordStatus enum value CertificateValidationRecordStatusSuccess = "SUCCESS" // CertificateValidationRecordStatusFailed is a CertificateValidationRecordStatus enum value CertificateValidationRecordStatusFailed = "FAILED" ) // CertificateValidationRecordStatus_Values returns all elements of the CertificateValidationRecordStatus enum func CertificateValidationRecordStatus_Values() []string { return []string{ CertificateValidationRecordStatusPendingValidation, CertificateValidationRecordStatusSuccess, CertificateValidationRecordStatusFailed, } } const ( // ConfigurationSourceRepository is a ConfigurationSource enum value ConfigurationSourceRepository = "REPOSITORY" // ConfigurationSourceApi is a ConfigurationSource enum value ConfigurationSourceApi = "API" ) // ConfigurationSource_Values returns all elements of the ConfigurationSource enum func ConfigurationSource_Values() []string { return []string{ ConfigurationSourceRepository, ConfigurationSourceApi, } } const ( // ConnectionStatusPendingHandshake is a ConnectionStatus enum value ConnectionStatusPendingHandshake = "PENDING_HANDSHAKE" // ConnectionStatusAvailable is a ConnectionStatus enum value ConnectionStatusAvailable = "AVAILABLE" // ConnectionStatusError is a ConnectionStatus enum value ConnectionStatusError = "ERROR" // ConnectionStatusDeleted is a ConnectionStatus enum value ConnectionStatusDeleted = "DELETED" ) // ConnectionStatus_Values returns all elements of the ConnectionStatus enum func ConnectionStatus_Values() []string { return []string{ ConnectionStatusPendingHandshake, ConnectionStatusAvailable, ConnectionStatusError, ConnectionStatusDeleted, } } const ( // CustomDomainAssociationStatusCreating is a CustomDomainAssociationStatus enum value CustomDomainAssociationStatusCreating = "CREATING" // CustomDomainAssociationStatusCreateFailed is a CustomDomainAssociationStatus enum value CustomDomainAssociationStatusCreateFailed = "CREATE_FAILED" // CustomDomainAssociationStatusActive is a CustomDomainAssociationStatus enum value CustomDomainAssociationStatusActive = "ACTIVE" // CustomDomainAssociationStatusDeleting is a CustomDomainAssociationStatus enum value CustomDomainAssociationStatusDeleting = "DELETING" // CustomDomainAssociationStatusDeleteFailed is a CustomDomainAssociationStatus enum value CustomDomainAssociationStatusDeleteFailed = "DELETE_FAILED" // CustomDomainAssociationStatusPendingCertificateDnsValidation is a CustomDomainAssociationStatus enum value CustomDomainAssociationStatusPendingCertificateDnsValidation = "PENDING_CERTIFICATE_DNS_VALIDATION" // CustomDomainAssociationStatusBindingCertificate is a CustomDomainAssociationStatus enum value CustomDomainAssociationStatusBindingCertificate = "BINDING_CERTIFICATE" ) // CustomDomainAssociationStatus_Values returns all elements of the CustomDomainAssociationStatus enum func CustomDomainAssociationStatus_Values() []string { return []string{ CustomDomainAssociationStatusCreating, CustomDomainAssociationStatusCreateFailed, CustomDomainAssociationStatusActive, CustomDomainAssociationStatusDeleting, CustomDomainAssociationStatusDeleteFailed, CustomDomainAssociationStatusPendingCertificateDnsValidation, CustomDomainAssociationStatusBindingCertificate, } } const ( // HealthCheckProtocolTcp is a HealthCheckProtocol enum value HealthCheckProtocolTcp = "TCP" // HealthCheckProtocolHttp is a HealthCheckProtocol enum value HealthCheckProtocolHttp = "HTTP" ) // HealthCheckProtocol_Values returns all elements of the HealthCheckProtocol enum func HealthCheckProtocol_Values() []string { return []string{ HealthCheckProtocolTcp, HealthCheckProtocolHttp, } } const ( // ImageRepositoryTypeEcr is a ImageRepositoryType enum value ImageRepositoryTypeEcr = "ECR" // ImageRepositoryTypeEcrPublic is a ImageRepositoryType enum value ImageRepositoryTypeEcrPublic = "ECR_PUBLIC" ) // ImageRepositoryType_Values returns all elements of the ImageRepositoryType enum func ImageRepositoryType_Values() []string { return []string{ ImageRepositoryTypeEcr, ImageRepositoryTypeEcrPublic, } } const ( // OperationStatusPending is a OperationStatus enum value OperationStatusPending = "PENDING" // OperationStatusInProgress is a OperationStatus enum value OperationStatusInProgress = "IN_PROGRESS" // OperationStatusFailed is a OperationStatus enum value OperationStatusFailed = "FAILED" // OperationStatusSucceeded is a OperationStatus enum value OperationStatusSucceeded = "SUCCEEDED" // OperationStatusRollbackInProgress is a OperationStatus enum value OperationStatusRollbackInProgress = "ROLLBACK_IN_PROGRESS" // OperationStatusRollbackFailed is a OperationStatus enum value OperationStatusRollbackFailed = "ROLLBACK_FAILED" // OperationStatusRollbackSucceeded is a OperationStatus enum value OperationStatusRollbackSucceeded = "ROLLBACK_SUCCEEDED" ) // OperationStatus_Values returns all elements of the OperationStatus enum func OperationStatus_Values() []string { return []string{ OperationStatusPending, OperationStatusInProgress, OperationStatusFailed, OperationStatusSucceeded, OperationStatusRollbackInProgress, OperationStatusRollbackFailed, OperationStatusRollbackSucceeded, } } const ( // OperationTypeStartDeployment is a OperationType enum value OperationTypeStartDeployment = "START_DEPLOYMENT" // OperationTypeCreateService is a OperationType enum value OperationTypeCreateService = "CREATE_SERVICE" // OperationTypePauseService is a OperationType enum value OperationTypePauseService = "PAUSE_SERVICE" // OperationTypeResumeService is a OperationType enum value OperationTypeResumeService = "RESUME_SERVICE" // OperationTypeDeleteService is a OperationType enum value OperationTypeDeleteService = "DELETE_SERVICE" ) // OperationType_Values returns all elements of the OperationType enum func OperationType_Values() []string { return []string{ OperationTypeStartDeployment, OperationTypeCreateService, OperationTypePauseService, OperationTypeResumeService, OperationTypeDeleteService, } } const ( // ProviderTypeGithub is a ProviderType enum value ProviderTypeGithub = "GITHUB" ) // ProviderType_Values returns all elements of the ProviderType enum func ProviderType_Values() []string { return []string{ ProviderTypeGithub, } } const ( // RuntimePython3 is a Runtime enum value RuntimePython3 = "PYTHON_3" // RuntimeNodejs12 is a Runtime enum value RuntimeNodejs12 = "NODEJS_12" ) // Runtime_Values returns all elements of the Runtime enum func Runtime_Values() []string { return []string{ RuntimePython3, RuntimeNodejs12, } } const ( // ServiceStatusCreateFailed is a ServiceStatus enum value ServiceStatusCreateFailed = "CREATE_FAILED" // ServiceStatusRunning is a ServiceStatus enum value ServiceStatusRunning = "RUNNING" // ServiceStatusDeleted is a ServiceStatus enum value ServiceStatusDeleted = "DELETED" // ServiceStatusDeleteFailed is a ServiceStatus enum value ServiceStatusDeleteFailed = "DELETE_FAILED" // ServiceStatusPaused is a ServiceStatus enum value ServiceStatusPaused = "PAUSED" // ServiceStatusOperationInProgress is a ServiceStatus enum value ServiceStatusOperationInProgress = "OPERATION_IN_PROGRESS" ) // ServiceStatus_Values returns all elements of the ServiceStatus enum func ServiceStatus_Values() []string { return []string{ ServiceStatusCreateFailed, ServiceStatusRunning, ServiceStatusDeleted, ServiceStatusDeleteFailed, ServiceStatusPaused, ServiceStatusOperationInProgress, } } const ( // SourceCodeVersionTypeBranch is a SourceCodeVersionType enum value SourceCodeVersionTypeBranch = "BRANCH" ) // SourceCodeVersionType_Values returns all elements of the SourceCodeVersionType enum func SourceCodeVersionType_Values() []string { return []string{ SourceCodeVersionTypeBranch, } }
6,646
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package apprunner provides the client and types for making API // requests to AWS App Runner. // // AWS App Runner is an application service that provides a fast, simple, and // cost-effective way to go directly from an existing container image or source // code to a running service in the AWS cloud in seconds. You don't need to // learn new technologies, decide which compute service to use, or understand // how to provision and configure AWS resources. // // App Runner connects directly to your container registry or source code repository. // It provides an automatic delivery pipeline with fully managed operations, // high performance, scalability, and security. // // For more information about App Runner, see the AWS App Runner Developer Guide // (https://docs.aws.amazon.com/apprunner/latest/dg/). For release information, // see the AWS App Runner Release Notes (https://docs.aws.amazon.com/apprunner/latest/relnotes/). // // To install the Software Development Kits (SDKs), Integrated Development Environment // (IDE) Toolkits, and command line tools that you can use to access the API, // see Tools for Amazon Web Services (http://aws.amazon.com/tools/). // // Endpoints // // For a list of Region-specific endpoints that App Runner supports, see AWS // App Runner endpoints and quotas (https://docs.aws.amazon.com/general/latest/gr/apprunner.html) // in the AWS General Reference. // // See https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15 for more information on this service. // // See apprunner package documentation for more information. // https://docs.aws.amazon.com/sdk-for-go/api/service/apprunner/ // // Using the Client // // To contact AWS App Runner 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 App Runner client AppRunner for more // information on creating client for this service. // https://docs.aws.amazon.com/sdk-for-go/api/service/apprunner/#New package apprunner
51
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package apprunner import ( "github.com/aws/aws-sdk-go/private/protocol" ) const ( // ErrCodeInternalServiceErrorException for service response error code // "InternalServiceErrorException". // // An unexpected service exception occurred. ErrCodeInternalServiceErrorException = "InternalServiceErrorException" // ErrCodeInvalidRequestException for service response error code // "InvalidRequestException". // // One or more input parameters aren't valid. Refer to the API action's document // page, correct the input parameters, and try the action again. ErrCodeInvalidRequestException = "InvalidRequestException" // ErrCodeInvalidStateException for service response error code // "InvalidStateException". // // You can't perform this action when the resource is in its current state. ErrCodeInvalidStateException = "InvalidStateException" // ErrCodeResourceNotFoundException for service response error code // "ResourceNotFoundException". // // A resource doesn't exist for the specified Amazon Resource Name (ARN) in // your AWS account. ErrCodeResourceNotFoundException = "ResourceNotFoundException" // ErrCodeServiceQuotaExceededException for service response error code // "ServiceQuotaExceededException". // // App Runner can't create this resource. You've reached your account quota // for this resource type. // // For App Runner per-resource quotas, see AWS App Runner endpoints and quotas // (https://docs.aws.amazon.com/general/latest/gr/apprunner.html) in the AWS // General Reference. ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException" ) var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "InternalServiceErrorException": newErrorInternalServiceErrorException, "InvalidRequestException": newErrorInvalidRequestException, "InvalidStateException": newErrorInvalidStateException, "ResourceNotFoundException": newErrorResourceNotFoundException, "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, }
56
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package apprunner 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" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) // AppRunner provides the API operation methods for making requests to // AWS App Runner. See this package's package overview docs // for details on the service. // // AppRunner methods are safe to use concurrently. It is not safe to // modify mutate any of the struct's properties though. type AppRunner 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 = "AppRunner" // Name of service. EndpointsID = "apprunner" // ID to lookup a service endpoint with. ServiceID = "AppRunner" // ServiceID is a unique identifier of a specific service. ) // New creates a new instance of the AppRunner 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: // mySession := session.Must(session.NewSession()) // // // Create a AppRunner client from just a session. // svc := apprunner.New(mySession) // // // Create a AppRunner client with additional configuration // svc := apprunner.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *AppRunner { c := p.ClientConfig(EndpointsID, cfgs...) if c.SigningNameDerived || len(c.SigningName) == 0 { c.SigningName = "apprunner" } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *AppRunner { svc := &AppRunner{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, ServiceID: ServiceID, SigningName: signingName, SigningRegion: signingRegion, PartitionID: partitionID, Endpoint: endpoint, APIVersion: "2020-05-15", JSONVersion: "1.0", TargetPrefix: "AppRunner", }, handlers, ), } // Handlers svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) svc.Handlers.UnmarshalError.PushBackNamed( protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), ) // Run custom client initialization if present if initClient != nil { initClient(svc.Client) } return svc } // newRequest creates a new request for a AppRunner operation and runs any // custom request initialization. func (c *AppRunner) 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 }
107
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package apprunneriface provides an interface to enable mocking the AWS App Runner 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 apprunneriface import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/service/apprunner" ) // AppRunnerAPI provides an interface to enable mocking the // apprunner.AppRunner 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 App Runner. // func myFunc(svc apprunneriface.AppRunnerAPI) bool { // // Make svc.AssociateCustomDomain request // } // // func main() { // sess := session.New() // svc := apprunner.New(sess) // // myFunc(svc) // } // // In your _test.go file: // // // Define a mock struct to be used in your unit tests of myFunc. // type mockAppRunnerClient struct { // apprunneriface.AppRunnerAPI // } // func (m *mockAppRunnerClient) AssociateCustomDomain(input *apprunner.AssociateCustomDomainInput) (*apprunner.AssociateCustomDomainOutput, error) { // // mock response/functionality // } // // func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockAppRunnerClient{} // // 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 AppRunnerAPI interface { AssociateCustomDomain(*apprunner.AssociateCustomDomainInput) (*apprunner.AssociateCustomDomainOutput, error) AssociateCustomDomainWithContext(aws.Context, *apprunner.AssociateCustomDomainInput, ...request.Option) (*apprunner.AssociateCustomDomainOutput, error) AssociateCustomDomainRequest(*apprunner.AssociateCustomDomainInput) (*request.Request, *apprunner.AssociateCustomDomainOutput) CreateAutoScalingConfiguration(*apprunner.CreateAutoScalingConfigurationInput) (*apprunner.CreateAutoScalingConfigurationOutput, error) CreateAutoScalingConfigurationWithContext(aws.Context, *apprunner.CreateAutoScalingConfigurationInput, ...request.Option) (*apprunner.CreateAutoScalingConfigurationOutput, error) CreateAutoScalingConfigurationRequest(*apprunner.CreateAutoScalingConfigurationInput) (*request.Request, *apprunner.CreateAutoScalingConfigurationOutput) CreateConnection(*apprunner.CreateConnectionInput) (*apprunner.CreateConnectionOutput, error) CreateConnectionWithContext(aws.Context, *apprunner.CreateConnectionInput, ...request.Option) (*apprunner.CreateConnectionOutput, error) CreateConnectionRequest(*apprunner.CreateConnectionInput) (*request.Request, *apprunner.CreateConnectionOutput) CreateService(*apprunner.CreateServiceInput) (*apprunner.CreateServiceOutput, error) CreateServiceWithContext(aws.Context, *apprunner.CreateServiceInput, ...request.Option) (*apprunner.CreateServiceOutput, error) CreateServiceRequest(*apprunner.CreateServiceInput) (*request.Request, *apprunner.CreateServiceOutput) DeleteAutoScalingConfiguration(*apprunner.DeleteAutoScalingConfigurationInput) (*apprunner.DeleteAutoScalingConfigurationOutput, error) DeleteAutoScalingConfigurationWithContext(aws.Context, *apprunner.DeleteAutoScalingConfigurationInput, ...request.Option) (*apprunner.DeleteAutoScalingConfigurationOutput, error) DeleteAutoScalingConfigurationRequest(*apprunner.DeleteAutoScalingConfigurationInput) (*request.Request, *apprunner.DeleteAutoScalingConfigurationOutput) DeleteConnection(*apprunner.DeleteConnectionInput) (*apprunner.DeleteConnectionOutput, error) DeleteConnectionWithContext(aws.Context, *apprunner.DeleteConnectionInput, ...request.Option) (*apprunner.DeleteConnectionOutput, error) DeleteConnectionRequest(*apprunner.DeleteConnectionInput) (*request.Request, *apprunner.DeleteConnectionOutput) DeleteService(*apprunner.DeleteServiceInput) (*apprunner.DeleteServiceOutput, error) DeleteServiceWithContext(aws.Context, *apprunner.DeleteServiceInput, ...request.Option) (*apprunner.DeleteServiceOutput, error) DeleteServiceRequest(*apprunner.DeleteServiceInput) (*request.Request, *apprunner.DeleteServiceOutput) DescribeAutoScalingConfiguration(*apprunner.DescribeAutoScalingConfigurationInput) (*apprunner.DescribeAutoScalingConfigurationOutput, error) DescribeAutoScalingConfigurationWithContext(aws.Context, *apprunner.DescribeAutoScalingConfigurationInput, ...request.Option) (*apprunner.DescribeAutoScalingConfigurationOutput, error) DescribeAutoScalingConfigurationRequest(*apprunner.DescribeAutoScalingConfigurationInput) (*request.Request, *apprunner.DescribeAutoScalingConfigurationOutput) DescribeCustomDomains(*apprunner.DescribeCustomDomainsInput) (*apprunner.DescribeCustomDomainsOutput, error) DescribeCustomDomainsWithContext(aws.Context, *apprunner.DescribeCustomDomainsInput, ...request.Option) (*apprunner.DescribeCustomDomainsOutput, error) DescribeCustomDomainsRequest(*apprunner.DescribeCustomDomainsInput) (*request.Request, *apprunner.DescribeCustomDomainsOutput) DescribeCustomDomainsPages(*apprunner.DescribeCustomDomainsInput, func(*apprunner.DescribeCustomDomainsOutput, bool) bool) error DescribeCustomDomainsPagesWithContext(aws.Context, *apprunner.DescribeCustomDomainsInput, func(*apprunner.DescribeCustomDomainsOutput, bool) bool, ...request.Option) error DescribeService(*apprunner.DescribeServiceInput) (*apprunner.DescribeServiceOutput, error) DescribeServiceWithContext(aws.Context, *apprunner.DescribeServiceInput, ...request.Option) (*apprunner.DescribeServiceOutput, error) DescribeServiceRequest(*apprunner.DescribeServiceInput) (*request.Request, *apprunner.DescribeServiceOutput) DisassociateCustomDomain(*apprunner.DisassociateCustomDomainInput) (*apprunner.DisassociateCustomDomainOutput, error) DisassociateCustomDomainWithContext(aws.Context, *apprunner.DisassociateCustomDomainInput, ...request.Option) (*apprunner.DisassociateCustomDomainOutput, error) DisassociateCustomDomainRequest(*apprunner.DisassociateCustomDomainInput) (*request.Request, *apprunner.DisassociateCustomDomainOutput) ListAutoScalingConfigurations(*apprunner.ListAutoScalingConfigurationsInput) (*apprunner.ListAutoScalingConfigurationsOutput, error) ListAutoScalingConfigurationsWithContext(aws.Context, *apprunner.ListAutoScalingConfigurationsInput, ...request.Option) (*apprunner.ListAutoScalingConfigurationsOutput, error) ListAutoScalingConfigurationsRequest(*apprunner.ListAutoScalingConfigurationsInput) (*request.Request, *apprunner.ListAutoScalingConfigurationsOutput) ListAutoScalingConfigurationsPages(*apprunner.ListAutoScalingConfigurationsInput, func(*apprunner.ListAutoScalingConfigurationsOutput, bool) bool) error ListAutoScalingConfigurationsPagesWithContext(aws.Context, *apprunner.ListAutoScalingConfigurationsInput, func(*apprunner.ListAutoScalingConfigurationsOutput, bool) bool, ...request.Option) error ListConnections(*apprunner.ListConnectionsInput) (*apprunner.ListConnectionsOutput, error) ListConnectionsWithContext(aws.Context, *apprunner.ListConnectionsInput, ...request.Option) (*apprunner.ListConnectionsOutput, error) ListConnectionsRequest(*apprunner.ListConnectionsInput) (*request.Request, *apprunner.ListConnectionsOutput) ListConnectionsPages(*apprunner.ListConnectionsInput, func(*apprunner.ListConnectionsOutput, bool) bool) error ListConnectionsPagesWithContext(aws.Context, *apprunner.ListConnectionsInput, func(*apprunner.ListConnectionsOutput, bool) bool, ...request.Option) error ListOperations(*apprunner.ListOperationsInput) (*apprunner.ListOperationsOutput, error) ListOperationsWithContext(aws.Context, *apprunner.ListOperationsInput, ...request.Option) (*apprunner.ListOperationsOutput, error) ListOperationsRequest(*apprunner.ListOperationsInput) (*request.Request, *apprunner.ListOperationsOutput) ListOperationsPages(*apprunner.ListOperationsInput, func(*apprunner.ListOperationsOutput, bool) bool) error ListOperationsPagesWithContext(aws.Context, *apprunner.ListOperationsInput, func(*apprunner.ListOperationsOutput, bool) bool, ...request.Option) error ListServices(*apprunner.ListServicesInput) (*apprunner.ListServicesOutput, error) ListServicesWithContext(aws.Context, *apprunner.ListServicesInput, ...request.Option) (*apprunner.ListServicesOutput, error) ListServicesRequest(*apprunner.ListServicesInput) (*request.Request, *apprunner.ListServicesOutput) ListServicesPages(*apprunner.ListServicesInput, func(*apprunner.ListServicesOutput, bool) bool) error ListServicesPagesWithContext(aws.Context, *apprunner.ListServicesInput, func(*apprunner.ListServicesOutput, bool) bool, ...request.Option) error ListTagsForResource(*apprunner.ListTagsForResourceInput) (*apprunner.ListTagsForResourceOutput, error) ListTagsForResourceWithContext(aws.Context, *apprunner.ListTagsForResourceInput, ...request.Option) (*apprunner.ListTagsForResourceOutput, error) ListTagsForResourceRequest(*apprunner.ListTagsForResourceInput) (*request.Request, *apprunner.ListTagsForResourceOutput) PauseService(*apprunner.PauseServiceInput) (*apprunner.PauseServiceOutput, error) PauseServiceWithContext(aws.Context, *apprunner.PauseServiceInput, ...request.Option) (*apprunner.PauseServiceOutput, error) PauseServiceRequest(*apprunner.PauseServiceInput) (*request.Request, *apprunner.PauseServiceOutput) ResumeService(*apprunner.ResumeServiceInput) (*apprunner.ResumeServiceOutput, error) ResumeServiceWithContext(aws.Context, *apprunner.ResumeServiceInput, ...request.Option) (*apprunner.ResumeServiceOutput, error) ResumeServiceRequest(*apprunner.ResumeServiceInput) (*request.Request, *apprunner.ResumeServiceOutput) StartDeployment(*apprunner.StartDeploymentInput) (*apprunner.StartDeploymentOutput, error) StartDeploymentWithContext(aws.Context, *apprunner.StartDeploymentInput, ...request.Option) (*apprunner.StartDeploymentOutput, error) StartDeploymentRequest(*apprunner.StartDeploymentInput) (*request.Request, *apprunner.StartDeploymentOutput) TagResource(*apprunner.TagResourceInput) (*apprunner.TagResourceOutput, error) TagResourceWithContext(aws.Context, *apprunner.TagResourceInput, ...request.Option) (*apprunner.TagResourceOutput, error) TagResourceRequest(*apprunner.TagResourceInput) (*request.Request, *apprunner.TagResourceOutput) UntagResource(*apprunner.UntagResourceInput) (*apprunner.UntagResourceOutput, error) UntagResourceWithContext(aws.Context, *apprunner.UntagResourceInput, ...request.Option) (*apprunner.UntagResourceOutput, error) UntagResourceRequest(*apprunner.UntagResourceInput) (*request.Request, *apprunner.UntagResourceOutput) UpdateService(*apprunner.UpdateServiceInput) (*apprunner.UpdateServiceOutput, error) UpdateServiceWithContext(aws.Context, *apprunner.UpdateServiceInput, ...request.Option) (*apprunner.UpdateServiceOutput, error) UpdateServiceRequest(*apprunner.UpdateServiceInput) (*request.Request, *apprunner.UpdateServiceOutput) } var _ AppRunnerAPI = (*apprunner.AppRunner)(nil)
168
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package appstream import ( "fmt" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) const opAssociateFleet = "AssociateFleet" // AssociateFleetRequest generates a "aws/request.Request" representing the // client's request for the AssociateFleet operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See AssociateFleet for more information on using the AssociateFleet // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the AssociateFleetRequest method. // req, resp := client.AssociateFleetRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/AssociateFleet func (c *AppStream) AssociateFleetRequest(input *AssociateFleetInput) (req *request.Request, output *AssociateFleetOutput) { op := &request.Operation{ Name: opAssociateFleet, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &AssociateFleetInput{} } output = &AssociateFleetOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // AssociateFleet API operation for Amazon AppStream. // // Associates the specified fleet with the specified stack. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation AssociateFleet for usage and error information. // // Returned Error Types: // * LimitExceededException // The requested limit exceeds the permitted limit for an account. // // * InvalidAccountStatusException // The resource cannot be created because your AWS account is suspended. For // assistance, contact AWS Support. // // * ResourceNotFoundException // The specified resource was not found. // // * ConcurrentModificationException // An API error occurred. Wait a few minutes and try again. // // * IncompatibleImageException // The image can't be updated because it's not compatible for updates. // // * OperationNotPermittedException // The attempted operation is not permitted. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/AssociateFleet func (c *AppStream) AssociateFleet(input *AssociateFleetInput) (*AssociateFleetOutput, error) { req, out := c.AssociateFleetRequest(input) return out, req.Send() } // AssociateFleetWithContext is the same as AssociateFleet with the addition of // the ability to pass a context and additional request options. // // See AssociateFleet for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) AssociateFleetWithContext(ctx aws.Context, input *AssociateFleetInput, opts ...request.Option) (*AssociateFleetOutput, error) { req, out := c.AssociateFleetRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opBatchAssociateUserStack = "BatchAssociateUserStack" // BatchAssociateUserStackRequest generates a "aws/request.Request" representing the // client's request for the BatchAssociateUserStack operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See BatchAssociateUserStack for more information on using the BatchAssociateUserStack // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the BatchAssociateUserStackRequest method. // req, resp := client.BatchAssociateUserStackRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/BatchAssociateUserStack func (c *AppStream) BatchAssociateUserStackRequest(input *BatchAssociateUserStackInput) (req *request.Request, output *BatchAssociateUserStackOutput) { op := &request.Operation{ Name: opBatchAssociateUserStack, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &BatchAssociateUserStackInput{} } output = &BatchAssociateUserStackOutput{} req = c.newRequest(op, input, output) return } // BatchAssociateUserStack API operation for Amazon AppStream. // // Associates the specified users with the specified stacks. Users in a user // pool cannot be assigned to stacks with fleets that are joined to an Active // Directory domain. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation BatchAssociateUserStack for usage and error information. // // Returned Error Types: // * OperationNotPermittedException // The attempted operation is not permitted. // // * InvalidParameterCombinationException // Indicates an incorrect combination of parameters, or a missing parameter. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/BatchAssociateUserStack func (c *AppStream) BatchAssociateUserStack(input *BatchAssociateUserStackInput) (*BatchAssociateUserStackOutput, error) { req, out := c.BatchAssociateUserStackRequest(input) return out, req.Send() } // BatchAssociateUserStackWithContext is the same as BatchAssociateUserStack with the addition of // the ability to pass a context and additional request options. // // See BatchAssociateUserStack for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) BatchAssociateUserStackWithContext(ctx aws.Context, input *BatchAssociateUserStackInput, opts ...request.Option) (*BatchAssociateUserStackOutput, error) { req, out := c.BatchAssociateUserStackRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opBatchDisassociateUserStack = "BatchDisassociateUserStack" // BatchDisassociateUserStackRequest generates a "aws/request.Request" representing the // client's request for the BatchDisassociateUserStack operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See BatchDisassociateUserStack for more information on using the BatchDisassociateUserStack // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the BatchDisassociateUserStackRequest method. // req, resp := client.BatchDisassociateUserStackRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/BatchDisassociateUserStack func (c *AppStream) BatchDisassociateUserStackRequest(input *BatchDisassociateUserStackInput) (req *request.Request, output *BatchDisassociateUserStackOutput) { op := &request.Operation{ Name: opBatchDisassociateUserStack, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &BatchDisassociateUserStackInput{} } output = &BatchDisassociateUserStackOutput{} req = c.newRequest(op, input, output) return } // BatchDisassociateUserStack API operation for Amazon AppStream. // // Disassociates the specified users from the specified stacks. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation BatchDisassociateUserStack for usage and error information. // // Returned Error Types: // * OperationNotPermittedException // The attempted operation is not permitted. // // * InvalidParameterCombinationException // Indicates an incorrect combination of parameters, or a missing parameter. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/BatchDisassociateUserStack func (c *AppStream) BatchDisassociateUserStack(input *BatchDisassociateUserStackInput) (*BatchDisassociateUserStackOutput, error) { req, out := c.BatchDisassociateUserStackRequest(input) return out, req.Send() } // BatchDisassociateUserStackWithContext is the same as BatchDisassociateUserStack with the addition of // the ability to pass a context and additional request options. // // See BatchDisassociateUserStack for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) BatchDisassociateUserStackWithContext(ctx aws.Context, input *BatchDisassociateUserStackInput, opts ...request.Option) (*BatchDisassociateUserStackOutput, error) { req, out := c.BatchDisassociateUserStackRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCopyImage = "CopyImage" // CopyImageRequest generates a "aws/request.Request" representing the // client's request for the CopyImage operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CopyImage for more information on using the CopyImage // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CopyImageRequest method. // req, resp := client.CopyImageRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CopyImage func (c *AppStream) CopyImageRequest(input *CopyImageInput) (req *request.Request, output *CopyImageOutput) { op := &request.Operation{ Name: opCopyImage, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CopyImageInput{} } output = &CopyImageOutput{} req = c.newRequest(op, input, output) return } // CopyImage API operation for Amazon AppStream. // // Copies the image within the same region or to a new region within the same // AWS account. Note that any tags you added to the image will not be copied. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation CopyImage for usage and error information. // // Returned Error Types: // * ResourceAlreadyExistsException // The specified resource already exists. // // * ResourceNotFoundException // The specified resource was not found. // // * ResourceNotAvailableException // The specified resource exists and is not in use, but isn't available. // // * LimitExceededException // The requested limit exceeds the permitted limit for an account. // // * InvalidAccountStatusException // The resource cannot be created because your AWS account is suspended. For // assistance, contact AWS Support. // // * IncompatibleImageException // The image can't be updated because it's not compatible for updates. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CopyImage func (c *AppStream) CopyImage(input *CopyImageInput) (*CopyImageOutput, error) { req, out := c.CopyImageRequest(input) return out, req.Send() } // CopyImageWithContext is the same as CopyImage with the addition of // the ability to pass a context and additional request options. // // See CopyImage for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) CopyImageWithContext(ctx aws.Context, input *CopyImageInput, opts ...request.Option) (*CopyImageOutput, error) { req, out := c.CopyImageRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateDirectoryConfig = "CreateDirectoryConfig" // CreateDirectoryConfigRequest generates a "aws/request.Request" representing the // client's request for the CreateDirectoryConfig operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateDirectoryConfig for more information on using the CreateDirectoryConfig // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateDirectoryConfigRequest method. // req, resp := client.CreateDirectoryConfigRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateDirectoryConfig func (c *AppStream) CreateDirectoryConfigRequest(input *CreateDirectoryConfigInput) (req *request.Request, output *CreateDirectoryConfigOutput) { op := &request.Operation{ Name: opCreateDirectoryConfig, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateDirectoryConfigInput{} } output = &CreateDirectoryConfigOutput{} req = c.newRequest(op, input, output) return } // CreateDirectoryConfig API operation for Amazon AppStream. // // Creates a Directory Config object in AppStream 2.0. This object includes // the configuration information required to join fleets and image builders // to Microsoft Active Directory domains. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation CreateDirectoryConfig for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The specified resource was not found. // // * ResourceAlreadyExistsException // The specified resource already exists. // // * LimitExceededException // The requested limit exceeds the permitted limit for an account. // // * InvalidAccountStatusException // The resource cannot be created because your AWS account is suspended. For // assistance, contact AWS Support. // // * OperationNotPermittedException // The attempted operation is not permitted. // // * InvalidRoleException // The specified role is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateDirectoryConfig func (c *AppStream) CreateDirectoryConfig(input *CreateDirectoryConfigInput) (*CreateDirectoryConfigOutput, error) { req, out := c.CreateDirectoryConfigRequest(input) return out, req.Send() } // CreateDirectoryConfigWithContext is the same as CreateDirectoryConfig with the addition of // the ability to pass a context and additional request options. // // See CreateDirectoryConfig for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) CreateDirectoryConfigWithContext(ctx aws.Context, input *CreateDirectoryConfigInput, opts ...request.Option) (*CreateDirectoryConfigOutput, error) { req, out := c.CreateDirectoryConfigRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateFleet = "CreateFleet" // CreateFleetRequest generates a "aws/request.Request" representing the // client's request for the CreateFleet operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateFleet for more information on using the CreateFleet // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateFleetRequest method. // req, resp := client.CreateFleetRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateFleet func (c *AppStream) CreateFleetRequest(input *CreateFleetInput) (req *request.Request, output *CreateFleetOutput) { op := &request.Operation{ Name: opCreateFleet, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateFleetInput{} } output = &CreateFleetOutput{} req = c.newRequest(op, input, output) return } // CreateFleet API operation for Amazon AppStream. // // Creates a fleet. A fleet consists of streaming instances that run a specified // image. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation CreateFleet for usage and error information. // // Returned Error Types: // * ResourceAlreadyExistsException // The specified resource already exists. // // * ResourceNotAvailableException // The specified resource exists and is not in use, but isn't available. // // * ResourceNotFoundException // The specified resource was not found. // // * LimitExceededException // The requested limit exceeds the permitted limit for an account. // // * RequestLimitExceededException // AppStream 2.0 can’t process the request right now because the Describe // calls from your AWS account are being throttled by Amazon EC2. Try again // later. // // * InvalidAccountStatusException // The resource cannot be created because your AWS account is suspended. For // assistance, contact AWS Support. // // * InvalidRoleException // The specified role is invalid. // // * ConcurrentModificationException // An API error occurred. Wait a few minutes and try again. // // * InvalidParameterCombinationException // Indicates an incorrect combination of parameters, or a missing parameter. // // * IncompatibleImageException // The image can't be updated because it's not compatible for updates. // // * OperationNotPermittedException // The attempted operation is not permitted. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateFleet func (c *AppStream) CreateFleet(input *CreateFleetInput) (*CreateFleetOutput, error) { req, out := c.CreateFleetRequest(input) return out, req.Send() } // CreateFleetWithContext is the same as CreateFleet with the addition of // the ability to pass a context and additional request options. // // See CreateFleet for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) CreateFleetWithContext(ctx aws.Context, input *CreateFleetInput, opts ...request.Option) (*CreateFleetOutput, error) { req, out := c.CreateFleetRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateImageBuilder = "CreateImageBuilder" // CreateImageBuilderRequest generates a "aws/request.Request" representing the // client's request for the CreateImageBuilder operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateImageBuilder for more information on using the CreateImageBuilder // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateImageBuilderRequest method. // req, resp := client.CreateImageBuilderRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateImageBuilder func (c *AppStream) CreateImageBuilderRequest(input *CreateImageBuilderInput) (req *request.Request, output *CreateImageBuilderOutput) { op := &request.Operation{ Name: opCreateImageBuilder, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateImageBuilderInput{} } output = &CreateImageBuilderOutput{} req = c.newRequest(op, input, output) return } // CreateImageBuilder API operation for Amazon AppStream. // // Creates an image builder. An image builder is a virtual machine that is used // to create an image. // // The initial state of the builder is PENDING. When it is ready, the state // is RUNNING. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation CreateImageBuilder for usage and error information. // // Returned Error Types: // * LimitExceededException // The requested limit exceeds the permitted limit for an account. // // * RequestLimitExceededException // AppStream 2.0 can’t process the request right now because the Describe // calls from your AWS account are being throttled by Amazon EC2. Try again // later. // // * InvalidAccountStatusException // The resource cannot be created because your AWS account is suspended. For // assistance, contact AWS Support. // // * ResourceAlreadyExistsException // The specified resource already exists. // // * ResourceNotAvailableException // The specified resource exists and is not in use, but isn't available. // // * ResourceNotFoundException // The specified resource was not found. // // * InvalidRoleException // The specified role is invalid. // // * ConcurrentModificationException // An API error occurred. Wait a few minutes and try again. // // * InvalidParameterCombinationException // Indicates an incorrect combination of parameters, or a missing parameter. // // * IncompatibleImageException // The image can't be updated because it's not compatible for updates. // // * OperationNotPermittedException // The attempted operation is not permitted. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateImageBuilder func (c *AppStream) CreateImageBuilder(input *CreateImageBuilderInput) (*CreateImageBuilderOutput, error) { req, out := c.CreateImageBuilderRequest(input) return out, req.Send() } // CreateImageBuilderWithContext is the same as CreateImageBuilder with the addition of // the ability to pass a context and additional request options. // // See CreateImageBuilder for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) CreateImageBuilderWithContext(ctx aws.Context, input *CreateImageBuilderInput, opts ...request.Option) (*CreateImageBuilderOutput, error) { req, out := c.CreateImageBuilderRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateImageBuilderStreamingURL = "CreateImageBuilderStreamingURL" // CreateImageBuilderStreamingURLRequest generates a "aws/request.Request" representing the // client's request for the CreateImageBuilderStreamingURL operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateImageBuilderStreamingURL for more information on using the CreateImageBuilderStreamingURL // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateImageBuilderStreamingURLRequest method. // req, resp := client.CreateImageBuilderStreamingURLRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateImageBuilderStreamingURL func (c *AppStream) CreateImageBuilderStreamingURLRequest(input *CreateImageBuilderStreamingURLInput) (req *request.Request, output *CreateImageBuilderStreamingURLOutput) { op := &request.Operation{ Name: opCreateImageBuilderStreamingURL, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateImageBuilderStreamingURLInput{} } output = &CreateImageBuilderStreamingURLOutput{} req = c.newRequest(op, input, output) return } // CreateImageBuilderStreamingURL API operation for Amazon AppStream. // // Creates a URL to start an image builder streaming session. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation CreateImageBuilderStreamingURL for usage and error information. // // Returned Error Types: // * OperationNotPermittedException // The attempted operation is not permitted. // // * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateImageBuilderStreamingURL func (c *AppStream) CreateImageBuilderStreamingURL(input *CreateImageBuilderStreamingURLInput) (*CreateImageBuilderStreamingURLOutput, error) { req, out := c.CreateImageBuilderStreamingURLRequest(input) return out, req.Send() } // CreateImageBuilderStreamingURLWithContext is the same as CreateImageBuilderStreamingURL with the addition of // the ability to pass a context and additional request options. // // See CreateImageBuilderStreamingURL for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) CreateImageBuilderStreamingURLWithContext(ctx aws.Context, input *CreateImageBuilderStreamingURLInput, opts ...request.Option) (*CreateImageBuilderStreamingURLOutput, error) { req, out := c.CreateImageBuilderStreamingURLRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateStack = "CreateStack" // CreateStackRequest generates a "aws/request.Request" representing the // client's request for the CreateStack operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateStack for more information on using the CreateStack // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateStackRequest method. // req, resp := client.CreateStackRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateStack func (c *AppStream) CreateStackRequest(input *CreateStackInput) (req *request.Request, output *CreateStackOutput) { op := &request.Operation{ Name: opCreateStack, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateStackInput{} } output = &CreateStackOutput{} req = c.newRequest(op, input, output) return } // CreateStack API operation for Amazon AppStream. // // Creates a stack to start streaming applications to users. A stack consists // of an associated fleet, user access policies, and storage configurations. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation CreateStack for usage and error information. // // Returned Error Types: // * LimitExceededException // The requested limit exceeds the permitted limit for an account. // // * InvalidAccountStatusException // The resource cannot be created because your AWS account is suspended. For // assistance, contact AWS Support. // // * ResourceAlreadyExistsException // The specified resource already exists. // // * ConcurrentModificationException // An API error occurred. Wait a few minutes and try again. // // * InvalidRoleException // The specified role is invalid. // // * ResourceNotFoundException // The specified resource was not found. // // * InvalidParameterCombinationException // Indicates an incorrect combination of parameters, or a missing parameter. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateStack func (c *AppStream) CreateStack(input *CreateStackInput) (*CreateStackOutput, error) { req, out := c.CreateStackRequest(input) return out, req.Send() } // CreateStackWithContext is the same as CreateStack with the addition of // the ability to pass a context and additional request options. // // See CreateStack for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) CreateStackWithContext(ctx aws.Context, input *CreateStackInput, opts ...request.Option) (*CreateStackOutput, error) { req, out := c.CreateStackRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateStreamingURL = "CreateStreamingURL" // CreateStreamingURLRequest generates a "aws/request.Request" representing the // client's request for the CreateStreamingURL operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateStreamingURL for more information on using the CreateStreamingURL // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateStreamingURLRequest method. // req, resp := client.CreateStreamingURLRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateStreamingURL func (c *AppStream) CreateStreamingURLRequest(input *CreateStreamingURLInput) (req *request.Request, output *CreateStreamingURLOutput) { op := &request.Operation{ Name: opCreateStreamingURL, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateStreamingURLInput{} } output = &CreateStreamingURLOutput{} req = c.newRequest(op, input, output) return } // CreateStreamingURL API operation for Amazon AppStream. // // Creates a temporary URL to start an AppStream 2.0 streaming session for the // specified user. A streaming URL enables application streaming to be tested // without user setup. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation CreateStreamingURL for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The specified resource was not found. // // * ResourceNotAvailableException // The specified resource exists and is not in use, but isn't available. // // * OperationNotPermittedException // The attempted operation is not permitted. // // * InvalidParameterCombinationException // Indicates an incorrect combination of parameters, or a missing parameter. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateStreamingURL func (c *AppStream) CreateStreamingURL(input *CreateStreamingURLInput) (*CreateStreamingURLOutput, error) { req, out := c.CreateStreamingURLRequest(input) return out, req.Send() } // CreateStreamingURLWithContext is the same as CreateStreamingURL with the addition of // the ability to pass a context and additional request options. // // See CreateStreamingURL for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) CreateStreamingURLWithContext(ctx aws.Context, input *CreateStreamingURLInput, opts ...request.Option) (*CreateStreamingURLOutput, error) { req, out := c.CreateStreamingURLRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateUpdatedImage = "CreateUpdatedImage" // CreateUpdatedImageRequest generates a "aws/request.Request" representing the // client's request for the CreateUpdatedImage operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateUpdatedImage for more information on using the CreateUpdatedImage // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateUpdatedImageRequest method. // req, resp := client.CreateUpdatedImageRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateUpdatedImage func (c *AppStream) CreateUpdatedImageRequest(input *CreateUpdatedImageInput) (req *request.Request, output *CreateUpdatedImageOutput) { op := &request.Operation{ Name: opCreateUpdatedImage, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateUpdatedImageInput{} } output = &CreateUpdatedImageOutput{} req = c.newRequest(op, input, output) return } // CreateUpdatedImage API operation for Amazon AppStream. // // Creates a new image with the latest Windows operating system updates, driver // updates, and AppStream 2.0 agent software. // // For more information, see the "Update an Image by Using Managed AppStream // 2.0 Image Updates" section in Administer Your AppStream 2.0 Images (https://docs.aws.amazon.com/appstream2/latest/developerguide/administer-images.html), // in the Amazon AppStream 2.0 Administration Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation CreateUpdatedImage for usage and error information. // // Returned Error Types: // * LimitExceededException // The requested limit exceeds the permitted limit for an account. // // * InvalidAccountStatusException // The resource cannot be created because your AWS account is suspended. For // assistance, contact AWS Support. // // * OperationNotPermittedException // The attempted operation is not permitted. // // * ResourceAlreadyExistsException // The specified resource already exists. // // * ResourceNotFoundException // The specified resource was not found. // // * ConcurrentModificationException // An API error occurred. Wait a few minutes and try again. // // * IncompatibleImageException // The image can't be updated because it's not compatible for updates. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateUpdatedImage func (c *AppStream) CreateUpdatedImage(input *CreateUpdatedImageInput) (*CreateUpdatedImageOutput, error) { req, out := c.CreateUpdatedImageRequest(input) return out, req.Send() } // CreateUpdatedImageWithContext is the same as CreateUpdatedImage with the addition of // the ability to pass a context and additional request options. // // See CreateUpdatedImage for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) CreateUpdatedImageWithContext(ctx aws.Context, input *CreateUpdatedImageInput, opts ...request.Option) (*CreateUpdatedImageOutput, error) { req, out := c.CreateUpdatedImageRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateUsageReportSubscription = "CreateUsageReportSubscription" // CreateUsageReportSubscriptionRequest generates a "aws/request.Request" representing the // client's request for the CreateUsageReportSubscription operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateUsageReportSubscription for more information on using the CreateUsageReportSubscription // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateUsageReportSubscriptionRequest method. // req, resp := client.CreateUsageReportSubscriptionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateUsageReportSubscription func (c *AppStream) CreateUsageReportSubscriptionRequest(input *CreateUsageReportSubscriptionInput) (req *request.Request, output *CreateUsageReportSubscriptionOutput) { op := &request.Operation{ Name: opCreateUsageReportSubscription, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateUsageReportSubscriptionInput{} } output = &CreateUsageReportSubscriptionOutput{} req = c.newRequest(op, input, output) return } // CreateUsageReportSubscription API operation for Amazon AppStream. // // Creates a usage report subscription. Usage reports are generated daily. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation CreateUsageReportSubscription for usage and error information. // // Returned Error Types: // * InvalidRoleException // The specified role is invalid. // // * InvalidAccountStatusException // The resource cannot be created because your AWS account is suspended. For // assistance, contact AWS Support. // // * LimitExceededException // The requested limit exceeds the permitted limit for an account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateUsageReportSubscription func (c *AppStream) CreateUsageReportSubscription(input *CreateUsageReportSubscriptionInput) (*CreateUsageReportSubscriptionOutput, error) { req, out := c.CreateUsageReportSubscriptionRequest(input) return out, req.Send() } // CreateUsageReportSubscriptionWithContext is the same as CreateUsageReportSubscription with the addition of // the ability to pass a context and additional request options. // // See CreateUsageReportSubscription for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) CreateUsageReportSubscriptionWithContext(ctx aws.Context, input *CreateUsageReportSubscriptionInput, opts ...request.Option) (*CreateUsageReportSubscriptionOutput, error) { req, out := c.CreateUsageReportSubscriptionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateUser = "CreateUser" // CreateUserRequest generates a "aws/request.Request" representing the // client's request for the CreateUser operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateUser for more information on using the CreateUser // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateUserRequest method. // req, resp := client.CreateUserRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateUser func (c *AppStream) CreateUserRequest(input *CreateUserInput) (req *request.Request, output *CreateUserOutput) { op := &request.Operation{ Name: opCreateUser, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateUserInput{} } output = &CreateUserOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // CreateUser API operation for Amazon AppStream. // // Creates a new user in the user pool. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation CreateUser for usage and error information. // // Returned Error Types: // * ResourceAlreadyExistsException // The specified resource already exists. // // * InvalidAccountStatusException // The resource cannot be created because your AWS account is suspended. For // assistance, contact AWS Support. // // * InvalidParameterCombinationException // Indicates an incorrect combination of parameters, or a missing parameter. // // * LimitExceededException // The requested limit exceeds the permitted limit for an account. // // * OperationNotPermittedException // The attempted operation is not permitted. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateUser func (c *AppStream) CreateUser(input *CreateUserInput) (*CreateUserOutput, error) { req, out := c.CreateUserRequest(input) return out, req.Send() } // CreateUserWithContext is the same as CreateUser with the addition of // the ability to pass a context and additional request options. // // See CreateUser for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) CreateUserWithContext(ctx aws.Context, input *CreateUserInput, opts ...request.Option) (*CreateUserOutput, error) { req, out := c.CreateUserRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteDirectoryConfig = "DeleteDirectoryConfig" // DeleteDirectoryConfigRequest generates a "aws/request.Request" representing the // client's request for the DeleteDirectoryConfig operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteDirectoryConfig for more information on using the DeleteDirectoryConfig // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteDirectoryConfigRequest method. // req, resp := client.DeleteDirectoryConfigRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteDirectoryConfig func (c *AppStream) DeleteDirectoryConfigRequest(input *DeleteDirectoryConfigInput) (req *request.Request, output *DeleteDirectoryConfigOutput) { op := &request.Operation{ Name: opDeleteDirectoryConfig, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteDirectoryConfigInput{} } output = &DeleteDirectoryConfigOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteDirectoryConfig API operation for Amazon AppStream. // // Deletes the specified Directory Config object from AppStream 2.0. This object // includes the information required to join streaming instances to an Active // Directory domain. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation DeleteDirectoryConfig for usage and error information. // // Returned Error Types: // * ResourceInUseException // The specified resource is in use. // // * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteDirectoryConfig func (c *AppStream) DeleteDirectoryConfig(input *DeleteDirectoryConfigInput) (*DeleteDirectoryConfigOutput, error) { req, out := c.DeleteDirectoryConfigRequest(input) return out, req.Send() } // DeleteDirectoryConfigWithContext is the same as DeleteDirectoryConfig with the addition of // the ability to pass a context and additional request options. // // See DeleteDirectoryConfig for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) DeleteDirectoryConfigWithContext(ctx aws.Context, input *DeleteDirectoryConfigInput, opts ...request.Option) (*DeleteDirectoryConfigOutput, error) { req, out := c.DeleteDirectoryConfigRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteFleet = "DeleteFleet" // DeleteFleetRequest generates a "aws/request.Request" representing the // client's request for the DeleteFleet operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteFleet for more information on using the DeleteFleet // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteFleetRequest method. // req, resp := client.DeleteFleetRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteFleet func (c *AppStream) DeleteFleetRequest(input *DeleteFleetInput) (req *request.Request, output *DeleteFleetOutput) { op := &request.Operation{ Name: opDeleteFleet, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteFleetInput{} } output = &DeleteFleetOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteFleet API operation for Amazon AppStream. // // Deletes the specified fleet. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation DeleteFleet for usage and error information. // // Returned Error Types: // * ResourceInUseException // The specified resource is in use. // // * ResourceNotFoundException // The specified resource was not found. // // * ConcurrentModificationException // An API error occurred. Wait a few minutes and try again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteFleet func (c *AppStream) DeleteFleet(input *DeleteFleetInput) (*DeleteFleetOutput, error) { req, out := c.DeleteFleetRequest(input) return out, req.Send() } // DeleteFleetWithContext is the same as DeleteFleet with the addition of // the ability to pass a context and additional request options. // // See DeleteFleet for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) DeleteFleetWithContext(ctx aws.Context, input *DeleteFleetInput, opts ...request.Option) (*DeleteFleetOutput, error) { req, out := c.DeleteFleetRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteImage = "DeleteImage" // DeleteImageRequest generates a "aws/request.Request" representing the // client's request for the DeleteImage operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteImage for more information on using the DeleteImage // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteImageRequest method. // req, resp := client.DeleteImageRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteImage func (c *AppStream) DeleteImageRequest(input *DeleteImageInput) (req *request.Request, output *DeleteImageOutput) { op := &request.Operation{ Name: opDeleteImage, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteImageInput{} } output = &DeleteImageOutput{} req = c.newRequest(op, input, output) return } // DeleteImage API operation for Amazon AppStream. // // Deletes the specified image. You cannot delete an image when it is in use. // After you delete an image, you cannot provision new capacity using the image. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation DeleteImage for usage and error information. // // Returned Error Types: // * ResourceInUseException // The specified resource is in use. // // * ResourceNotFoundException // The specified resource was not found. // // * OperationNotPermittedException // The attempted operation is not permitted. // // * ConcurrentModificationException // An API error occurred. Wait a few minutes and try again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteImage func (c *AppStream) DeleteImage(input *DeleteImageInput) (*DeleteImageOutput, error) { req, out := c.DeleteImageRequest(input) return out, req.Send() } // DeleteImageWithContext is the same as DeleteImage with the addition of // the ability to pass a context and additional request options. // // See DeleteImage for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) DeleteImageWithContext(ctx aws.Context, input *DeleteImageInput, opts ...request.Option) (*DeleteImageOutput, error) { req, out := c.DeleteImageRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteImageBuilder = "DeleteImageBuilder" // DeleteImageBuilderRequest generates a "aws/request.Request" representing the // client's request for the DeleteImageBuilder operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteImageBuilder for more information on using the DeleteImageBuilder // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteImageBuilderRequest method. // req, resp := client.DeleteImageBuilderRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteImageBuilder func (c *AppStream) DeleteImageBuilderRequest(input *DeleteImageBuilderInput) (req *request.Request, output *DeleteImageBuilderOutput) { op := &request.Operation{ Name: opDeleteImageBuilder, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteImageBuilderInput{} } output = &DeleteImageBuilderOutput{} req = c.newRequest(op, input, output) return } // DeleteImageBuilder API operation for Amazon AppStream. // // Deletes the specified image builder and releases the capacity. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation DeleteImageBuilder for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The specified resource was not found. // // * OperationNotPermittedException // The attempted operation is not permitted. // // * ConcurrentModificationException // An API error occurred. Wait a few minutes and try again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteImageBuilder func (c *AppStream) DeleteImageBuilder(input *DeleteImageBuilderInput) (*DeleteImageBuilderOutput, error) { req, out := c.DeleteImageBuilderRequest(input) return out, req.Send() } // DeleteImageBuilderWithContext is the same as DeleteImageBuilder with the addition of // the ability to pass a context and additional request options. // // See DeleteImageBuilder for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) DeleteImageBuilderWithContext(ctx aws.Context, input *DeleteImageBuilderInput, opts ...request.Option) (*DeleteImageBuilderOutput, error) { req, out := c.DeleteImageBuilderRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteImagePermissions = "DeleteImagePermissions" // DeleteImagePermissionsRequest generates a "aws/request.Request" representing the // client's request for the DeleteImagePermissions operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteImagePermissions for more information on using the DeleteImagePermissions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteImagePermissionsRequest method. // req, resp := client.DeleteImagePermissionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteImagePermissions func (c *AppStream) DeleteImagePermissionsRequest(input *DeleteImagePermissionsInput) (req *request.Request, output *DeleteImagePermissionsOutput) { op := &request.Operation{ Name: opDeleteImagePermissions, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteImagePermissionsInput{} } output = &DeleteImagePermissionsOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteImagePermissions API operation for Amazon AppStream. // // Deletes permissions for the specified private image. After you delete permissions // for an image, AWS accounts to which you previously granted these permissions // can no longer use the image. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation DeleteImagePermissions for usage and error information. // // Returned Error Types: // * ResourceNotAvailableException // The specified resource exists and is not in use, but isn't available. // // * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteImagePermissions func (c *AppStream) DeleteImagePermissions(input *DeleteImagePermissionsInput) (*DeleteImagePermissionsOutput, error) { req, out := c.DeleteImagePermissionsRequest(input) return out, req.Send() } // DeleteImagePermissionsWithContext is the same as DeleteImagePermissions with the addition of // the ability to pass a context and additional request options. // // See DeleteImagePermissions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) DeleteImagePermissionsWithContext(ctx aws.Context, input *DeleteImagePermissionsInput, opts ...request.Option) (*DeleteImagePermissionsOutput, error) { req, out := c.DeleteImagePermissionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteStack = "DeleteStack" // DeleteStackRequest generates a "aws/request.Request" representing the // client's request for the DeleteStack operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteStack for more information on using the DeleteStack // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteStackRequest method. // req, resp := client.DeleteStackRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteStack func (c *AppStream) DeleteStackRequest(input *DeleteStackInput) (req *request.Request, output *DeleteStackOutput) { op := &request.Operation{ Name: opDeleteStack, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteStackInput{} } output = &DeleteStackOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteStack API operation for Amazon AppStream. // // Deletes the specified stack. After the stack is deleted, the application // streaming environment provided by the stack is no longer available to users. // Also, any reservations made for application streaming sessions for the stack // are released. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation DeleteStack for usage and error information. // // Returned Error Types: // * ResourceInUseException // The specified resource is in use. // // * ResourceNotFoundException // The specified resource was not found. // // * ConcurrentModificationException // An API error occurred. Wait a few minutes and try again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteStack func (c *AppStream) DeleteStack(input *DeleteStackInput) (*DeleteStackOutput, error) { req, out := c.DeleteStackRequest(input) return out, req.Send() } // DeleteStackWithContext is the same as DeleteStack with the addition of // the ability to pass a context and additional request options. // // See DeleteStack for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) DeleteStackWithContext(ctx aws.Context, input *DeleteStackInput, opts ...request.Option) (*DeleteStackOutput, error) { req, out := c.DeleteStackRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteUsageReportSubscription = "DeleteUsageReportSubscription" // DeleteUsageReportSubscriptionRequest generates a "aws/request.Request" representing the // client's request for the DeleteUsageReportSubscription operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteUsageReportSubscription for more information on using the DeleteUsageReportSubscription // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteUsageReportSubscriptionRequest method. // req, resp := client.DeleteUsageReportSubscriptionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteUsageReportSubscription func (c *AppStream) DeleteUsageReportSubscriptionRequest(input *DeleteUsageReportSubscriptionInput) (req *request.Request, output *DeleteUsageReportSubscriptionOutput) { op := &request.Operation{ Name: opDeleteUsageReportSubscription, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteUsageReportSubscriptionInput{} } output = &DeleteUsageReportSubscriptionOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteUsageReportSubscription API operation for Amazon AppStream. // // Disables usage report generation. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation DeleteUsageReportSubscription for usage and error information. // // Returned Error Types: // * InvalidAccountStatusException // The resource cannot be created because your AWS account is suspended. For // assistance, contact AWS Support. // // * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteUsageReportSubscription func (c *AppStream) DeleteUsageReportSubscription(input *DeleteUsageReportSubscriptionInput) (*DeleteUsageReportSubscriptionOutput, error) { req, out := c.DeleteUsageReportSubscriptionRequest(input) return out, req.Send() } // DeleteUsageReportSubscriptionWithContext is the same as DeleteUsageReportSubscription with the addition of // the ability to pass a context and additional request options. // // See DeleteUsageReportSubscription for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) DeleteUsageReportSubscriptionWithContext(ctx aws.Context, input *DeleteUsageReportSubscriptionInput, opts ...request.Option) (*DeleteUsageReportSubscriptionOutput, error) { req, out := c.DeleteUsageReportSubscriptionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteUser = "DeleteUser" // DeleteUserRequest generates a "aws/request.Request" representing the // client's request for the DeleteUser operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteUser for more information on using the DeleteUser // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteUserRequest method. // req, resp := client.DeleteUserRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteUser func (c *AppStream) DeleteUserRequest(input *DeleteUserInput) (req *request.Request, output *DeleteUserOutput) { op := &request.Operation{ Name: opDeleteUser, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteUserInput{} } output = &DeleteUserOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteUser API operation for Amazon AppStream. // // Deletes a user from the user pool. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation DeleteUser for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteUser func (c *AppStream) DeleteUser(input *DeleteUserInput) (*DeleteUserOutput, error) { req, out := c.DeleteUserRequest(input) return out, req.Send() } // DeleteUserWithContext is the same as DeleteUser with the addition of // the ability to pass a context and additional request options. // // See DeleteUser for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) DeleteUserWithContext(ctx aws.Context, input *DeleteUserInput, opts ...request.Option) (*DeleteUserOutput, error) { req, out := c.DeleteUserRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeDirectoryConfigs = "DescribeDirectoryConfigs" // DescribeDirectoryConfigsRequest generates a "aws/request.Request" representing the // client's request for the DescribeDirectoryConfigs operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeDirectoryConfigs for more information on using the DescribeDirectoryConfigs // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeDirectoryConfigsRequest method. // req, resp := client.DescribeDirectoryConfigsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeDirectoryConfigs func (c *AppStream) DescribeDirectoryConfigsRequest(input *DescribeDirectoryConfigsInput) (req *request.Request, output *DescribeDirectoryConfigsOutput) { op := &request.Operation{ Name: opDescribeDirectoryConfigs, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeDirectoryConfigsInput{} } output = &DescribeDirectoryConfigsOutput{} req = c.newRequest(op, input, output) return } // DescribeDirectoryConfigs API operation for Amazon AppStream. // // Retrieves a list that describes one or more specified Directory Config objects // for AppStream 2.0, if the names for these objects are provided. Otherwise, // all Directory Config objects in the account are described. These objects // include the configuration information required to join fleets and image builders // to Microsoft Active Directory domains. // // Although the response syntax in this topic includes the account password, // this password is not returned in the actual response. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation DescribeDirectoryConfigs for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeDirectoryConfigs func (c *AppStream) DescribeDirectoryConfigs(input *DescribeDirectoryConfigsInput) (*DescribeDirectoryConfigsOutput, error) { req, out := c.DescribeDirectoryConfigsRequest(input) return out, req.Send() } // DescribeDirectoryConfigsWithContext is the same as DescribeDirectoryConfigs with the addition of // the ability to pass a context and additional request options. // // See DescribeDirectoryConfigs for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) DescribeDirectoryConfigsWithContext(ctx aws.Context, input *DescribeDirectoryConfigsInput, opts ...request.Option) (*DescribeDirectoryConfigsOutput, error) { req, out := c.DescribeDirectoryConfigsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeFleets = "DescribeFleets" // DescribeFleetsRequest generates a "aws/request.Request" representing the // client's request for the DescribeFleets operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeFleets for more information on using the DescribeFleets // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeFleetsRequest method. // req, resp := client.DescribeFleetsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeFleets func (c *AppStream) DescribeFleetsRequest(input *DescribeFleetsInput) (req *request.Request, output *DescribeFleetsOutput) { op := &request.Operation{ Name: opDescribeFleets, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeFleetsInput{} } output = &DescribeFleetsOutput{} req = c.newRequest(op, input, output) return } // DescribeFleets API operation for Amazon AppStream. // // Retrieves a list that describes one or more specified fleets, if the fleet // names are provided. Otherwise, all fleets in the account are described. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation DescribeFleets for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeFleets func (c *AppStream) DescribeFleets(input *DescribeFleetsInput) (*DescribeFleetsOutput, error) { req, out := c.DescribeFleetsRequest(input) return out, req.Send() } // DescribeFleetsWithContext is the same as DescribeFleets with the addition of // the ability to pass a context and additional request options. // // See DescribeFleets for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) DescribeFleetsWithContext(ctx aws.Context, input *DescribeFleetsInput, opts ...request.Option) (*DescribeFleetsOutput, error) { req, out := c.DescribeFleetsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeImageBuilders = "DescribeImageBuilders" // DescribeImageBuildersRequest generates a "aws/request.Request" representing the // client's request for the DescribeImageBuilders operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeImageBuilders for more information on using the DescribeImageBuilders // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeImageBuildersRequest method. // req, resp := client.DescribeImageBuildersRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeImageBuilders func (c *AppStream) DescribeImageBuildersRequest(input *DescribeImageBuildersInput) (req *request.Request, output *DescribeImageBuildersOutput) { op := &request.Operation{ Name: opDescribeImageBuilders, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeImageBuildersInput{} } output = &DescribeImageBuildersOutput{} req = c.newRequest(op, input, output) return } // DescribeImageBuilders API operation for Amazon AppStream. // // Retrieves a list that describes one or more specified image builders, if // the image builder names are provided. Otherwise, all image builders in the // account are described. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation DescribeImageBuilders for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeImageBuilders func (c *AppStream) DescribeImageBuilders(input *DescribeImageBuildersInput) (*DescribeImageBuildersOutput, error) { req, out := c.DescribeImageBuildersRequest(input) return out, req.Send() } // DescribeImageBuildersWithContext is the same as DescribeImageBuilders with the addition of // the ability to pass a context and additional request options. // // See DescribeImageBuilders for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) DescribeImageBuildersWithContext(ctx aws.Context, input *DescribeImageBuildersInput, opts ...request.Option) (*DescribeImageBuildersOutput, error) { req, out := c.DescribeImageBuildersRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeImagePermissions = "DescribeImagePermissions" // DescribeImagePermissionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeImagePermissions operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeImagePermissions for more information on using the DescribeImagePermissions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeImagePermissionsRequest method. // req, resp := client.DescribeImagePermissionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeImagePermissions func (c *AppStream) DescribeImagePermissionsRequest(input *DescribeImagePermissionsInput) (req *request.Request, output *DescribeImagePermissionsOutput) { op := &request.Operation{ Name: opDescribeImagePermissions, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &DescribeImagePermissionsInput{} } output = &DescribeImagePermissionsOutput{} req = c.newRequest(op, input, output) return } // DescribeImagePermissions API operation for Amazon AppStream. // // Retrieves a list that describes the permissions for shared AWS account IDs // on a private image that you own. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation DescribeImagePermissions for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeImagePermissions func (c *AppStream) DescribeImagePermissions(input *DescribeImagePermissionsInput) (*DescribeImagePermissionsOutput, error) { req, out := c.DescribeImagePermissionsRequest(input) return out, req.Send() } // DescribeImagePermissionsWithContext is the same as DescribeImagePermissions with the addition of // the ability to pass a context and additional request options. // // See DescribeImagePermissions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) DescribeImagePermissionsWithContext(ctx aws.Context, input *DescribeImagePermissionsInput, opts ...request.Option) (*DescribeImagePermissionsOutput, error) { req, out := c.DescribeImagePermissionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // DescribeImagePermissionsPages iterates over the pages of a DescribeImagePermissions operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See DescribeImagePermissions method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a DescribeImagePermissions operation. // pageNum := 0 // err := client.DescribeImagePermissionsPages(params, // func(page *appstream.DescribeImagePermissionsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *AppStream) DescribeImagePermissionsPages(input *DescribeImagePermissionsInput, fn func(*DescribeImagePermissionsOutput, bool) bool) error { return c.DescribeImagePermissionsPagesWithContext(aws.BackgroundContext(), input, fn) } // DescribeImagePermissionsPagesWithContext same as DescribeImagePermissionsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) DescribeImagePermissionsPagesWithContext(ctx aws.Context, input *DescribeImagePermissionsInput, fn func(*DescribeImagePermissionsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *DescribeImagePermissionsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.DescribeImagePermissionsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*DescribeImagePermissionsOutput), !p.HasNextPage()) { break } } return p.Err() } const opDescribeImages = "DescribeImages" // DescribeImagesRequest generates a "aws/request.Request" representing the // client's request for the DescribeImages operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeImages for more information on using the DescribeImages // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeImagesRequest method. // req, resp := client.DescribeImagesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeImages func (c *AppStream) DescribeImagesRequest(input *DescribeImagesInput) (req *request.Request, output *DescribeImagesOutput) { op := &request.Operation{ Name: opDescribeImages, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &DescribeImagesInput{} } output = &DescribeImagesOutput{} req = c.newRequest(op, input, output) return } // DescribeImages API operation for Amazon AppStream. // // Retrieves a list that describes one or more specified images, if the image // names or image ARNs are provided. Otherwise, all images in the account are // described. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation DescribeImages for usage and error information. // // Returned Error Types: // * InvalidParameterCombinationException // Indicates an incorrect combination of parameters, or a missing parameter. // // * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeImages func (c *AppStream) DescribeImages(input *DescribeImagesInput) (*DescribeImagesOutput, error) { req, out := c.DescribeImagesRequest(input) return out, req.Send() } // DescribeImagesWithContext is the same as DescribeImages with the addition of // the ability to pass a context and additional request options. // // See DescribeImages for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) DescribeImagesWithContext(ctx aws.Context, input *DescribeImagesInput, opts ...request.Option) (*DescribeImagesOutput, error) { req, out := c.DescribeImagesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // DescribeImagesPages iterates over the pages of a DescribeImages operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See DescribeImages method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a DescribeImages operation. // pageNum := 0 // err := client.DescribeImagesPages(params, // func(page *appstream.DescribeImagesOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *AppStream) DescribeImagesPages(input *DescribeImagesInput, fn func(*DescribeImagesOutput, bool) bool) error { return c.DescribeImagesPagesWithContext(aws.BackgroundContext(), input, fn) } // DescribeImagesPagesWithContext same as DescribeImagesPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) DescribeImagesPagesWithContext(ctx aws.Context, input *DescribeImagesInput, fn func(*DescribeImagesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *DescribeImagesInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.DescribeImagesRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*DescribeImagesOutput), !p.HasNextPage()) { break } } return p.Err() } const opDescribeSessions = "DescribeSessions" // DescribeSessionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeSessions operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeSessions for more information on using the DescribeSessions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeSessionsRequest method. // req, resp := client.DescribeSessionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeSessions func (c *AppStream) DescribeSessionsRequest(input *DescribeSessionsInput) (req *request.Request, output *DescribeSessionsOutput) { op := &request.Operation{ Name: opDescribeSessions, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeSessionsInput{} } output = &DescribeSessionsOutput{} req = c.newRequest(op, input, output) return } // DescribeSessions API operation for Amazon AppStream. // // Retrieves a list that describes the streaming sessions for a specified stack // and fleet. If a UserId is provided for the stack and fleet, only streaming // sessions for that user are described. If an authentication type is not provided, // the default is to authenticate users using a streaming URL. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation DescribeSessions for usage and error information. // // Returned Error Types: // * InvalidParameterCombinationException // Indicates an incorrect combination of parameters, or a missing parameter. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeSessions func (c *AppStream) DescribeSessions(input *DescribeSessionsInput) (*DescribeSessionsOutput, error) { req, out := c.DescribeSessionsRequest(input) return out, req.Send() } // DescribeSessionsWithContext is the same as DescribeSessions with the addition of // the ability to pass a context and additional request options. // // See DescribeSessions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) DescribeSessionsWithContext(ctx aws.Context, input *DescribeSessionsInput, opts ...request.Option) (*DescribeSessionsOutput, error) { req, out := c.DescribeSessionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeStacks = "DescribeStacks" // DescribeStacksRequest generates a "aws/request.Request" representing the // client's request for the DescribeStacks operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeStacks for more information on using the DescribeStacks // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeStacksRequest method. // req, resp := client.DescribeStacksRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeStacks func (c *AppStream) DescribeStacksRequest(input *DescribeStacksInput) (req *request.Request, output *DescribeStacksOutput) { op := &request.Operation{ Name: opDescribeStacks, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeStacksInput{} } output = &DescribeStacksOutput{} req = c.newRequest(op, input, output) return } // DescribeStacks API operation for Amazon AppStream. // // Retrieves a list that describes one or more specified stacks, if the stack // names are provided. Otherwise, all stacks in the account are described. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation DescribeStacks for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeStacks func (c *AppStream) DescribeStacks(input *DescribeStacksInput) (*DescribeStacksOutput, error) { req, out := c.DescribeStacksRequest(input) return out, req.Send() } // DescribeStacksWithContext is the same as DescribeStacks with the addition of // the ability to pass a context and additional request options. // // See DescribeStacks for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) DescribeStacksWithContext(ctx aws.Context, input *DescribeStacksInput, opts ...request.Option) (*DescribeStacksOutput, error) { req, out := c.DescribeStacksRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeUsageReportSubscriptions = "DescribeUsageReportSubscriptions" // DescribeUsageReportSubscriptionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeUsageReportSubscriptions operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeUsageReportSubscriptions for more information on using the DescribeUsageReportSubscriptions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeUsageReportSubscriptionsRequest method. // req, resp := client.DescribeUsageReportSubscriptionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeUsageReportSubscriptions func (c *AppStream) DescribeUsageReportSubscriptionsRequest(input *DescribeUsageReportSubscriptionsInput) (req *request.Request, output *DescribeUsageReportSubscriptionsOutput) { op := &request.Operation{ Name: opDescribeUsageReportSubscriptions, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeUsageReportSubscriptionsInput{} } output = &DescribeUsageReportSubscriptionsOutput{} req = c.newRequest(op, input, output) return } // DescribeUsageReportSubscriptions API operation for Amazon AppStream. // // Retrieves a list that describes one or more usage report subscriptions. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation DescribeUsageReportSubscriptions for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The specified resource was not found. // // * InvalidAccountStatusException // The resource cannot be created because your AWS account is suspended. For // assistance, contact AWS Support. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeUsageReportSubscriptions func (c *AppStream) DescribeUsageReportSubscriptions(input *DescribeUsageReportSubscriptionsInput) (*DescribeUsageReportSubscriptionsOutput, error) { req, out := c.DescribeUsageReportSubscriptionsRequest(input) return out, req.Send() } // DescribeUsageReportSubscriptionsWithContext is the same as DescribeUsageReportSubscriptions with the addition of // the ability to pass a context and additional request options. // // See DescribeUsageReportSubscriptions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) DescribeUsageReportSubscriptionsWithContext(ctx aws.Context, input *DescribeUsageReportSubscriptionsInput, opts ...request.Option) (*DescribeUsageReportSubscriptionsOutput, error) { req, out := c.DescribeUsageReportSubscriptionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeUserStackAssociations = "DescribeUserStackAssociations" // DescribeUserStackAssociationsRequest generates a "aws/request.Request" representing the // client's request for the DescribeUserStackAssociations operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeUserStackAssociations for more information on using the DescribeUserStackAssociations // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeUserStackAssociationsRequest method. // req, resp := client.DescribeUserStackAssociationsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeUserStackAssociations func (c *AppStream) DescribeUserStackAssociationsRequest(input *DescribeUserStackAssociationsInput) (req *request.Request, output *DescribeUserStackAssociationsOutput) { op := &request.Operation{ Name: opDescribeUserStackAssociations, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeUserStackAssociationsInput{} } output = &DescribeUserStackAssociationsOutput{} req = c.newRequest(op, input, output) return } // DescribeUserStackAssociations API operation for Amazon AppStream. // // Retrieves a list that describes the UserStackAssociation objects. You must // specify either or both of the following: // // * The stack name // // * The user name (email address of the user associated with the stack) // and the authentication type for the user // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation DescribeUserStackAssociations for usage and error information. // // Returned Error Types: // * InvalidParameterCombinationException // Indicates an incorrect combination of parameters, or a missing parameter. // // * OperationNotPermittedException // The attempted operation is not permitted. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeUserStackAssociations func (c *AppStream) DescribeUserStackAssociations(input *DescribeUserStackAssociationsInput) (*DescribeUserStackAssociationsOutput, error) { req, out := c.DescribeUserStackAssociationsRequest(input) return out, req.Send() } // DescribeUserStackAssociationsWithContext is the same as DescribeUserStackAssociations with the addition of // the ability to pass a context and additional request options. // // See DescribeUserStackAssociations for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) DescribeUserStackAssociationsWithContext(ctx aws.Context, input *DescribeUserStackAssociationsInput, opts ...request.Option) (*DescribeUserStackAssociationsOutput, error) { req, out := c.DescribeUserStackAssociationsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeUsers = "DescribeUsers" // DescribeUsersRequest generates a "aws/request.Request" representing the // client's request for the DescribeUsers operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeUsers for more information on using the DescribeUsers // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeUsersRequest method. // req, resp := client.DescribeUsersRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeUsers func (c *AppStream) DescribeUsersRequest(input *DescribeUsersInput) (req *request.Request, output *DescribeUsersOutput) { op := &request.Operation{ Name: opDescribeUsers, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeUsersInput{} } output = &DescribeUsersOutput{} req = c.newRequest(op, input, output) return } // DescribeUsers API operation for Amazon AppStream. // // Retrieves a list that describes one or more specified users in the user pool. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation DescribeUsers for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The specified resource was not found. // // * InvalidParameterCombinationException // Indicates an incorrect combination of parameters, or a missing parameter. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeUsers func (c *AppStream) DescribeUsers(input *DescribeUsersInput) (*DescribeUsersOutput, error) { req, out := c.DescribeUsersRequest(input) return out, req.Send() } // DescribeUsersWithContext is the same as DescribeUsers with the addition of // the ability to pass a context and additional request options. // // See DescribeUsers for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) DescribeUsersWithContext(ctx aws.Context, input *DescribeUsersInput, opts ...request.Option) (*DescribeUsersOutput, error) { req, out := c.DescribeUsersRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDisableUser = "DisableUser" // DisableUserRequest generates a "aws/request.Request" representing the // client's request for the DisableUser operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DisableUser for more information on using the DisableUser // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DisableUserRequest method. // req, resp := client.DisableUserRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DisableUser func (c *AppStream) DisableUserRequest(input *DisableUserInput) (req *request.Request, output *DisableUserOutput) { op := &request.Operation{ Name: opDisableUser, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DisableUserInput{} } output = &DisableUserOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DisableUser API operation for Amazon AppStream. // // Disables the specified user in the user pool. Users can't sign in to AppStream // 2.0 until they are re-enabled. This action does not delete the user. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation DisableUser for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DisableUser func (c *AppStream) DisableUser(input *DisableUserInput) (*DisableUserOutput, error) { req, out := c.DisableUserRequest(input) return out, req.Send() } // DisableUserWithContext is the same as DisableUser with the addition of // the ability to pass a context and additional request options. // // See DisableUser for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) DisableUserWithContext(ctx aws.Context, input *DisableUserInput, opts ...request.Option) (*DisableUserOutput, error) { req, out := c.DisableUserRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDisassociateFleet = "DisassociateFleet" // DisassociateFleetRequest generates a "aws/request.Request" representing the // client's request for the DisassociateFleet operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DisassociateFleet for more information on using the DisassociateFleet // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DisassociateFleetRequest method. // req, resp := client.DisassociateFleetRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DisassociateFleet func (c *AppStream) DisassociateFleetRequest(input *DisassociateFleetInput) (req *request.Request, output *DisassociateFleetOutput) { op := &request.Operation{ Name: opDisassociateFleet, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DisassociateFleetInput{} } output = &DisassociateFleetOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DisassociateFleet API operation for Amazon AppStream. // // Disassociates the specified fleet from the specified stack. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation DisassociateFleet for usage and error information. // // Returned Error Types: // * ResourceInUseException // The specified resource is in use. // // * ResourceNotFoundException // The specified resource was not found. // // * ConcurrentModificationException // An API error occurred. Wait a few minutes and try again. // // * OperationNotPermittedException // The attempted operation is not permitted. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DisassociateFleet func (c *AppStream) DisassociateFleet(input *DisassociateFleetInput) (*DisassociateFleetOutput, error) { req, out := c.DisassociateFleetRequest(input) return out, req.Send() } // DisassociateFleetWithContext is the same as DisassociateFleet with the addition of // the ability to pass a context and additional request options. // // See DisassociateFleet for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) DisassociateFleetWithContext(ctx aws.Context, input *DisassociateFleetInput, opts ...request.Option) (*DisassociateFleetOutput, error) { req, out := c.DisassociateFleetRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opEnableUser = "EnableUser" // EnableUserRequest generates a "aws/request.Request" representing the // client's request for the EnableUser operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See EnableUser for more information on using the EnableUser // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the EnableUserRequest method. // req, resp := client.EnableUserRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/EnableUser func (c *AppStream) EnableUserRequest(input *EnableUserInput) (req *request.Request, output *EnableUserOutput) { op := &request.Operation{ Name: opEnableUser, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &EnableUserInput{} } output = &EnableUserOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // EnableUser API operation for Amazon AppStream. // // Enables a user in the user pool. After being enabled, users can sign in to // AppStream 2.0 and open applications from the stacks to which they are assigned. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation EnableUser for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The specified resource was not found. // // * InvalidAccountStatusException // The resource cannot be created because your AWS account is suspended. For // assistance, contact AWS Support. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/EnableUser func (c *AppStream) EnableUser(input *EnableUserInput) (*EnableUserOutput, error) { req, out := c.EnableUserRequest(input) return out, req.Send() } // EnableUserWithContext is the same as EnableUser with the addition of // the ability to pass a context and additional request options. // // See EnableUser for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) EnableUserWithContext(ctx aws.Context, input *EnableUserInput, opts ...request.Option) (*EnableUserOutput, error) { req, out := c.EnableUserRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opExpireSession = "ExpireSession" // ExpireSessionRequest generates a "aws/request.Request" representing the // client's request for the ExpireSession operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ExpireSession for more information on using the ExpireSession // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ExpireSessionRequest method. // req, resp := client.ExpireSessionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ExpireSession func (c *AppStream) ExpireSessionRequest(input *ExpireSessionInput) (req *request.Request, output *ExpireSessionOutput) { op := &request.Operation{ Name: opExpireSession, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &ExpireSessionInput{} } output = &ExpireSessionOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // ExpireSession API operation for Amazon AppStream. // // Immediately stops the specified streaming session. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation ExpireSession for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ExpireSession func (c *AppStream) ExpireSession(input *ExpireSessionInput) (*ExpireSessionOutput, error) { req, out := c.ExpireSessionRequest(input) return out, req.Send() } // ExpireSessionWithContext is the same as ExpireSession with the addition of // the ability to pass a context and additional request options. // // See ExpireSession for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) ExpireSessionWithContext(ctx aws.Context, input *ExpireSessionInput, opts ...request.Option) (*ExpireSessionOutput, error) { req, out := c.ExpireSessionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opListAssociatedFleets = "ListAssociatedFleets" // ListAssociatedFleetsRequest generates a "aws/request.Request" representing the // client's request for the ListAssociatedFleets operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListAssociatedFleets for more information on using the ListAssociatedFleets // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListAssociatedFleetsRequest method. // req, resp := client.ListAssociatedFleetsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ListAssociatedFleets func (c *AppStream) ListAssociatedFleetsRequest(input *ListAssociatedFleetsInput) (req *request.Request, output *ListAssociatedFleetsOutput) { op := &request.Operation{ Name: opListAssociatedFleets, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &ListAssociatedFleetsInput{} } output = &ListAssociatedFleetsOutput{} req = c.newRequest(op, input, output) return } // ListAssociatedFleets API operation for Amazon AppStream. // // Retrieves the name of the fleet that is associated with the specified stack. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation ListAssociatedFleets for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ListAssociatedFleets func (c *AppStream) ListAssociatedFleets(input *ListAssociatedFleetsInput) (*ListAssociatedFleetsOutput, error) { req, out := c.ListAssociatedFleetsRequest(input) return out, req.Send() } // ListAssociatedFleetsWithContext is the same as ListAssociatedFleets with the addition of // the ability to pass a context and additional request options. // // See ListAssociatedFleets for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) ListAssociatedFleetsWithContext(ctx aws.Context, input *ListAssociatedFleetsInput, opts ...request.Option) (*ListAssociatedFleetsOutput, error) { req, out := c.ListAssociatedFleetsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opListAssociatedStacks = "ListAssociatedStacks" // ListAssociatedStacksRequest generates a "aws/request.Request" representing the // client's request for the ListAssociatedStacks operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListAssociatedStacks for more information on using the ListAssociatedStacks // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListAssociatedStacksRequest method. // req, resp := client.ListAssociatedStacksRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ListAssociatedStacks func (c *AppStream) ListAssociatedStacksRequest(input *ListAssociatedStacksInput) (req *request.Request, output *ListAssociatedStacksOutput) { op := &request.Operation{ Name: opListAssociatedStacks, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &ListAssociatedStacksInput{} } output = &ListAssociatedStacksOutput{} req = c.newRequest(op, input, output) return } // ListAssociatedStacks API operation for Amazon AppStream. // // Retrieves the name of the stack with which the specified fleet is associated. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation ListAssociatedStacks for usage and error information. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ListAssociatedStacks func (c *AppStream) ListAssociatedStacks(input *ListAssociatedStacksInput) (*ListAssociatedStacksOutput, error) { req, out := c.ListAssociatedStacksRequest(input) return out, req.Send() } // ListAssociatedStacksWithContext is the same as ListAssociatedStacks with the addition of // the ability to pass a context and additional request options. // // See ListAssociatedStacks for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) ListAssociatedStacksWithContext(ctx aws.Context, input *ListAssociatedStacksInput, opts ...request.Option) (*ListAssociatedStacksOutput, error) { req, out := c.ListAssociatedStacksRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opListTagsForResource = "ListTagsForResource" // ListTagsForResourceRequest generates a "aws/request.Request" representing the // client's request for the ListTagsForResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListTagsForResource for more information on using the ListTagsForResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListTagsForResourceRequest method. // req, resp := client.ListTagsForResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ListTagsForResource func (c *AppStream) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { op := &request.Operation{ Name: opListTagsForResource, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &ListTagsForResourceInput{} } output = &ListTagsForResourceOutput{} req = c.newRequest(op, input, output) return } // ListTagsForResource API operation for Amazon AppStream. // // Retrieves a list of all tags for the specified AppStream 2.0 resource. You // can tag AppStream 2.0 image builders, images, fleets, and stacks. // // For more information about tags, see Tagging Your Resources (https://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic.html) // in the Amazon AppStream 2.0 Administration Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation ListTagsForResource for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ListTagsForResource func (c *AppStream) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) return out, req.Send() } // ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of // the ability to pass a context and additional request options. // // See ListTagsForResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opStartFleet = "StartFleet" // StartFleetRequest generates a "aws/request.Request" representing the // client's request for the StartFleet operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See StartFleet for more information on using the StartFleet // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the StartFleetRequest method. // req, resp := client.StartFleetRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/StartFleet func (c *AppStream) StartFleetRequest(input *StartFleetInput) (req *request.Request, output *StartFleetOutput) { op := &request.Operation{ Name: opStartFleet, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &StartFleetInput{} } output = &StartFleetOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // StartFleet API operation for Amazon AppStream. // // Starts the specified fleet. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation StartFleet for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The specified resource was not found. // // * OperationNotPermittedException // The attempted operation is not permitted. // // * LimitExceededException // The requested limit exceeds the permitted limit for an account. // // * RequestLimitExceededException // AppStream 2.0 can’t process the request right now because the Describe // calls from your AWS account are being throttled by Amazon EC2. Try again // later. // // * InvalidAccountStatusException // The resource cannot be created because your AWS account is suspended. For // assistance, contact AWS Support. // // * ConcurrentModificationException // An API error occurred. Wait a few minutes and try again. // // * ResourceNotAvailableException // The specified resource exists and is not in use, but isn't available. // // * InvalidRoleException // The specified role is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/StartFleet func (c *AppStream) StartFleet(input *StartFleetInput) (*StartFleetOutput, error) { req, out := c.StartFleetRequest(input) return out, req.Send() } // StartFleetWithContext is the same as StartFleet with the addition of // the ability to pass a context and additional request options. // // See StartFleet for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) StartFleetWithContext(ctx aws.Context, input *StartFleetInput, opts ...request.Option) (*StartFleetOutput, error) { req, out := c.StartFleetRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opStartImageBuilder = "StartImageBuilder" // StartImageBuilderRequest generates a "aws/request.Request" representing the // client's request for the StartImageBuilder operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See StartImageBuilder for more information on using the StartImageBuilder // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the StartImageBuilderRequest method. // req, resp := client.StartImageBuilderRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/StartImageBuilder func (c *AppStream) StartImageBuilderRequest(input *StartImageBuilderInput) (req *request.Request, output *StartImageBuilderOutput) { op := &request.Operation{ Name: opStartImageBuilder, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &StartImageBuilderInput{} } output = &StartImageBuilderOutput{} req = c.newRequest(op, input, output) return } // StartImageBuilder API operation for Amazon AppStream. // // Starts the specified image builder. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation StartImageBuilder for usage and error information. // // Returned Error Types: // * ResourceNotAvailableException // The specified resource exists and is not in use, but isn't available. // // * ResourceNotFoundException // The specified resource was not found. // // * ConcurrentModificationException // An API error occurred. Wait a few minutes and try again. // // * InvalidAccountStatusException // The resource cannot be created because your AWS account is suspended. For // assistance, contact AWS Support. // // * IncompatibleImageException // The image can't be updated because it's not compatible for updates. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/StartImageBuilder func (c *AppStream) StartImageBuilder(input *StartImageBuilderInput) (*StartImageBuilderOutput, error) { req, out := c.StartImageBuilderRequest(input) return out, req.Send() } // StartImageBuilderWithContext is the same as StartImageBuilder with the addition of // the ability to pass a context and additional request options. // // See StartImageBuilder for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) StartImageBuilderWithContext(ctx aws.Context, input *StartImageBuilderInput, opts ...request.Option) (*StartImageBuilderOutput, error) { req, out := c.StartImageBuilderRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opStopFleet = "StopFleet" // StopFleetRequest generates a "aws/request.Request" representing the // client's request for the StopFleet operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See StopFleet for more information on using the StopFleet // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the StopFleetRequest method. // req, resp := client.StopFleetRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/StopFleet func (c *AppStream) StopFleetRequest(input *StopFleetInput) (req *request.Request, output *StopFleetOutput) { op := &request.Operation{ Name: opStopFleet, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &StopFleetInput{} } output = &StopFleetOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // StopFleet API operation for Amazon AppStream. // // Stops the specified fleet. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation StopFleet for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The specified resource was not found. // // * ConcurrentModificationException // An API error occurred. Wait a few minutes and try again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/StopFleet func (c *AppStream) StopFleet(input *StopFleetInput) (*StopFleetOutput, error) { req, out := c.StopFleetRequest(input) return out, req.Send() } // StopFleetWithContext is the same as StopFleet with the addition of // the ability to pass a context and additional request options. // // See StopFleet for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) StopFleetWithContext(ctx aws.Context, input *StopFleetInput, opts ...request.Option) (*StopFleetOutput, error) { req, out := c.StopFleetRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opStopImageBuilder = "StopImageBuilder" // StopImageBuilderRequest generates a "aws/request.Request" representing the // client's request for the StopImageBuilder operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See StopImageBuilder for more information on using the StopImageBuilder // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the StopImageBuilderRequest method. // req, resp := client.StopImageBuilderRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/StopImageBuilder func (c *AppStream) StopImageBuilderRequest(input *StopImageBuilderInput) (req *request.Request, output *StopImageBuilderOutput) { op := &request.Operation{ Name: opStopImageBuilder, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &StopImageBuilderInput{} } output = &StopImageBuilderOutput{} req = c.newRequest(op, input, output) return } // StopImageBuilder API operation for Amazon AppStream. // // Stops the specified image builder. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation StopImageBuilder for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The specified resource was not found. // // * OperationNotPermittedException // The attempted operation is not permitted. // // * ConcurrentModificationException // An API error occurred. Wait a few minutes and try again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/StopImageBuilder func (c *AppStream) StopImageBuilder(input *StopImageBuilderInput) (*StopImageBuilderOutput, error) { req, out := c.StopImageBuilderRequest(input) return out, req.Send() } // StopImageBuilderWithContext is the same as StopImageBuilder with the addition of // the ability to pass a context and additional request options. // // See StopImageBuilder for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) StopImageBuilderWithContext(ctx aws.Context, input *StopImageBuilderInput, opts ...request.Option) (*StopImageBuilderOutput, error) { req, out := c.StopImageBuilderRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opTagResource = "TagResource" // TagResourceRequest generates a "aws/request.Request" representing the // client's request for the TagResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See TagResource for more information on using the TagResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the TagResourceRequest method. // req, resp := client.TagResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/TagResource func (c *AppStream) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { op := &request.Operation{ Name: opTagResource, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &TagResourceInput{} } output = &TagResourceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // TagResource API operation for Amazon AppStream. // // Adds or overwrites one or more tags for the specified AppStream 2.0 resource. // You can tag AppStream 2.0 image builders, images, fleets, and stacks. // // Each tag consists of a key and an optional value. If a resource already has // a tag with the same key, this operation updates its value. // // To list the current tags for your resources, use ListTagsForResource. To // disassociate tags from your resources, use UntagResource. // // For more information about tags, see Tagging Your Resources (https://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic.html) // in the Amazon AppStream 2.0 Administration Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation TagResource for usage and error information. // // Returned Error Types: // * LimitExceededException // The requested limit exceeds the permitted limit for an account. // // * InvalidAccountStatusException // The resource cannot be created because your AWS account is suspended. For // assistance, contact AWS Support. // // * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/TagResource func (c *AppStream) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { req, out := c.TagResourceRequest(input) return out, req.Send() } // TagResourceWithContext is the same as TagResource with the addition of // the ability to pass a context and additional request options. // // See TagResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { req, out := c.TagResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUntagResource = "UntagResource" // UntagResourceRequest generates a "aws/request.Request" representing the // client's request for the UntagResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UntagResource for more information on using the UntagResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UntagResourceRequest method. // req, resp := client.UntagResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UntagResource func (c *AppStream) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { op := &request.Operation{ Name: opUntagResource, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &UntagResourceInput{} } output = &UntagResourceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // UntagResource API operation for Amazon AppStream. // // Disassociates one or more specified tags from the specified AppStream 2.0 // resource. // // To list the current tags for your resources, use ListTagsForResource. // // For more information about tags, see Tagging Your Resources (https://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic.html) // in the Amazon AppStream 2.0 Administration Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation UntagResource for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UntagResource func (c *AppStream) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { req, out := c.UntagResourceRequest(input) return out, req.Send() } // UntagResourceWithContext is the same as UntagResource with the addition of // the ability to pass a context and additional request options. // // See UntagResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { req, out := c.UntagResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateDirectoryConfig = "UpdateDirectoryConfig" // UpdateDirectoryConfigRequest generates a "aws/request.Request" representing the // client's request for the UpdateDirectoryConfig operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateDirectoryConfig for more information on using the UpdateDirectoryConfig // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateDirectoryConfigRequest method. // req, resp := client.UpdateDirectoryConfigRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UpdateDirectoryConfig func (c *AppStream) UpdateDirectoryConfigRequest(input *UpdateDirectoryConfigInput) (req *request.Request, output *UpdateDirectoryConfigOutput) { op := &request.Operation{ Name: opUpdateDirectoryConfig, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &UpdateDirectoryConfigInput{} } output = &UpdateDirectoryConfigOutput{} req = c.newRequest(op, input, output) return } // UpdateDirectoryConfig API operation for Amazon AppStream. // // Updates the specified Directory Config object in AppStream 2.0. This object // includes the configuration information required to join fleets and image // builders to Microsoft Active Directory domains. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation UpdateDirectoryConfig for usage and error information. // // Returned Error Types: // * ResourceInUseException // The specified resource is in use. // // * ResourceNotFoundException // The specified resource was not found. // // * ConcurrentModificationException // An API error occurred. Wait a few minutes and try again. // // * OperationNotPermittedException // The attempted operation is not permitted. // // * InvalidRoleException // The specified role is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UpdateDirectoryConfig func (c *AppStream) UpdateDirectoryConfig(input *UpdateDirectoryConfigInput) (*UpdateDirectoryConfigOutput, error) { req, out := c.UpdateDirectoryConfigRequest(input) return out, req.Send() } // UpdateDirectoryConfigWithContext is the same as UpdateDirectoryConfig with the addition of // the ability to pass a context and additional request options. // // See UpdateDirectoryConfig for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) UpdateDirectoryConfigWithContext(ctx aws.Context, input *UpdateDirectoryConfigInput, opts ...request.Option) (*UpdateDirectoryConfigOutput, error) { req, out := c.UpdateDirectoryConfigRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateFleet = "UpdateFleet" // UpdateFleetRequest generates a "aws/request.Request" representing the // client's request for the UpdateFleet operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateFleet for more information on using the UpdateFleet // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateFleetRequest method. // req, resp := client.UpdateFleetRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UpdateFleet func (c *AppStream) UpdateFleetRequest(input *UpdateFleetInput) (req *request.Request, output *UpdateFleetOutput) { op := &request.Operation{ Name: opUpdateFleet, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &UpdateFleetInput{} } output = &UpdateFleetOutput{} req = c.newRequest(op, input, output) return } // UpdateFleet API operation for Amazon AppStream. // // Updates the specified fleet. // // If the fleet is in the STOPPED state, you can update any attribute except // the fleet name. If the fleet is in the RUNNING state, you can update the // DisplayName, ComputeCapacity, ImageARN, ImageName, IdleDisconnectTimeoutInSeconds, // and DisconnectTimeoutInSeconds attributes. If the fleet is in the STARTING // or STOPPING state, you can't update it. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation UpdateFleet for usage and error information. // // Returned Error Types: // * ResourceInUseException // The specified resource is in use. // // * LimitExceededException // The requested limit exceeds the permitted limit for an account. // // * RequestLimitExceededException // AppStream 2.0 can’t process the request right now because the Describe // calls from your AWS account are being throttled by Amazon EC2. Try again // later. // // * InvalidAccountStatusException // The resource cannot be created because your AWS account is suspended. For // assistance, contact AWS Support. // // * InvalidRoleException // The specified role is invalid. // // * ResourceNotFoundException // The specified resource was not found. // // * ResourceNotAvailableException // The specified resource exists and is not in use, but isn't available. // // * InvalidParameterCombinationException // Indicates an incorrect combination of parameters, or a missing parameter. // // * ConcurrentModificationException // An API error occurred. Wait a few minutes and try again. // // * IncompatibleImageException // The image can't be updated because it's not compatible for updates. // // * OperationNotPermittedException // The attempted operation is not permitted. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UpdateFleet func (c *AppStream) UpdateFleet(input *UpdateFleetInput) (*UpdateFleetOutput, error) { req, out := c.UpdateFleetRequest(input) return out, req.Send() } // UpdateFleetWithContext is the same as UpdateFleet with the addition of // the ability to pass a context and additional request options. // // See UpdateFleet for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) UpdateFleetWithContext(ctx aws.Context, input *UpdateFleetInput, opts ...request.Option) (*UpdateFleetOutput, error) { req, out := c.UpdateFleetRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateImagePermissions = "UpdateImagePermissions" // UpdateImagePermissionsRequest generates a "aws/request.Request" representing the // client's request for the UpdateImagePermissions operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateImagePermissions for more information on using the UpdateImagePermissions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateImagePermissionsRequest method. // req, resp := client.UpdateImagePermissionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UpdateImagePermissions func (c *AppStream) UpdateImagePermissionsRequest(input *UpdateImagePermissionsInput) (req *request.Request, output *UpdateImagePermissionsOutput) { op := &request.Operation{ Name: opUpdateImagePermissions, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &UpdateImagePermissionsInput{} } output = &UpdateImagePermissionsOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // UpdateImagePermissions API operation for Amazon AppStream. // // Adds or updates permissions for the specified private image. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation UpdateImagePermissions for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The specified resource was not found. // // * ResourceNotAvailableException // The specified resource exists and is not in use, but isn't available. // // * LimitExceededException // The requested limit exceeds the permitted limit for an account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UpdateImagePermissions func (c *AppStream) UpdateImagePermissions(input *UpdateImagePermissionsInput) (*UpdateImagePermissionsOutput, error) { req, out := c.UpdateImagePermissionsRequest(input) return out, req.Send() } // UpdateImagePermissionsWithContext is the same as UpdateImagePermissions with the addition of // the ability to pass a context and additional request options. // // See UpdateImagePermissions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) UpdateImagePermissionsWithContext(ctx aws.Context, input *UpdateImagePermissionsInput, opts ...request.Option) (*UpdateImagePermissionsOutput, error) { req, out := c.UpdateImagePermissionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateStack = "UpdateStack" // UpdateStackRequest generates a "aws/request.Request" representing the // client's request for the UpdateStack operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateStack for more information on using the UpdateStack // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateStackRequest method. // req, resp := client.UpdateStackRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UpdateStack func (c *AppStream) UpdateStackRequest(input *UpdateStackInput) (req *request.Request, output *UpdateStackOutput) { op := &request.Operation{ Name: opUpdateStack, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &UpdateStackInput{} } output = &UpdateStackOutput{} req = c.newRequest(op, input, output) return } // UpdateStack API operation for Amazon AppStream. // // Updates the specified fields for the specified stack. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon AppStream's // API operation UpdateStack for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The specified resource was not found. // // * ResourceInUseException // The specified resource is in use. // // * InvalidRoleException // The specified role is invalid. // // * InvalidParameterCombinationException // Indicates an incorrect combination of parameters, or a missing parameter. // // * LimitExceededException // The requested limit exceeds the permitted limit for an account. // // * InvalidAccountStatusException // The resource cannot be created because your AWS account is suspended. For // assistance, contact AWS Support. // // * IncompatibleImageException // The image can't be updated because it's not compatible for updates. // // * OperationNotPermittedException // The attempted operation is not permitted. // // * ConcurrentModificationException // An API error occurred. Wait a few minutes and try again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UpdateStack func (c *AppStream) UpdateStack(input *UpdateStackInput) (*UpdateStackOutput, error) { req, out := c.UpdateStackRequest(input) return out, req.Send() } // UpdateStackWithContext is the same as UpdateStack with the addition of // the ability to pass a context and additional request options. // // See UpdateStack for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) UpdateStackWithContext(ctx aws.Context, input *UpdateStackInput, opts ...request.Option) (*UpdateStackOutput, error) { req, out := c.UpdateStackRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // Describes an interface VPC endpoint (interface endpoint) that lets you create // a private connection between the virtual private cloud (VPC) that you specify // and AppStream 2.0. When you specify an interface endpoint for a stack, users // of the stack can connect to AppStream 2.0 only through that endpoint. When // you specify an interface endpoint for an image builder, administrators can // connect to the image builder only through that endpoint. type AccessEndpoint struct { _ struct{} `type:"structure"` // The type of interface endpoint. // // EndpointType is a required field EndpointType *string `type:"string" required:"true" enum:"AccessEndpointType"` // The identifier (ID) of the VPC in which the interface endpoint is used. VpceId *string `min:"1" type:"string"` } // String returns the string representation func (s AccessEndpoint) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AccessEndpoint) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *AccessEndpoint) Validate() error { invalidParams := request.ErrInvalidParams{Context: "AccessEndpoint"} if s.EndpointType == nil { invalidParams.Add(request.NewErrParamRequired("EndpointType")) } if s.VpceId != nil && len(*s.VpceId) < 1 { invalidParams.Add(request.NewErrParamMinLen("VpceId", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetEndpointType sets the EndpointType field's value. func (s *AccessEndpoint) SetEndpointType(v string) *AccessEndpoint { s.EndpointType = &v return s } // SetVpceId sets the VpceId field's value. func (s *AccessEndpoint) SetVpceId(v string) *AccessEndpoint { s.VpceId = &v return s } // Describes an application in the application catalog. type Application struct { _ struct{} `type:"structure"` // The application name to display. DisplayName *string `min:"1" type:"string"` // If there is a problem, the application can be disabled after image creation. Enabled *bool `type:"boolean"` // The URL for the application icon. This URL might be time-limited. IconURL *string `min:"1" type:"string"` // The arguments that are passed to the application at launch. LaunchParameters *string `min:"1" type:"string"` // The path to the application executable in the instance. LaunchPath *string `min:"1" type:"string"` // Additional attributes that describe the application. Metadata map[string]*string `type:"map"` // The name of the application. Name *string `min:"1" type:"string"` } // String returns the string representation func (s Application) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Application) GoString() string { return s.String() } // SetDisplayName sets the DisplayName field's value. func (s *Application) SetDisplayName(v string) *Application { s.DisplayName = &v return s } // SetEnabled sets the Enabled field's value. func (s *Application) SetEnabled(v bool) *Application { s.Enabled = &v return s } // SetIconURL sets the IconURL field's value. func (s *Application) SetIconURL(v string) *Application { s.IconURL = &v return s } // SetLaunchParameters sets the LaunchParameters field's value. func (s *Application) SetLaunchParameters(v string) *Application { s.LaunchParameters = &v return s } // SetLaunchPath sets the LaunchPath field's value. func (s *Application) SetLaunchPath(v string) *Application { s.LaunchPath = &v return s } // SetMetadata sets the Metadata field's value. func (s *Application) SetMetadata(v map[string]*string) *Application { s.Metadata = v return s } // SetName sets the Name field's value. func (s *Application) SetName(v string) *Application { s.Name = &v return s } // The persistent application settings for users of a stack. type ApplicationSettings struct { _ struct{} `type:"structure"` // Enables or disables persistent application settings for users during their // streaming sessions. // // Enabled is a required field Enabled *bool `type:"boolean" required:"true"` // The path prefix for the S3 bucket where users’ persistent application settings // are stored. You can allow the same persistent application settings to be // used across multiple stacks by specifying the same settings group for each // stack. SettingsGroup *string `type:"string"` } // String returns the string representation func (s ApplicationSettings) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ApplicationSettings) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ApplicationSettings) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ApplicationSettings"} if s.Enabled == nil { invalidParams.Add(request.NewErrParamRequired("Enabled")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetEnabled sets the Enabled field's value. func (s *ApplicationSettings) SetEnabled(v bool) *ApplicationSettings { s.Enabled = &v return s } // SetSettingsGroup sets the SettingsGroup field's value. func (s *ApplicationSettings) SetSettingsGroup(v string) *ApplicationSettings { s.SettingsGroup = &v return s } // Describes the persistent application settings for users of a stack. type ApplicationSettingsResponse struct { _ struct{} `type:"structure"` // Specifies whether persistent application settings are enabled for users during // their streaming sessions. Enabled *bool `type:"boolean"` // The S3 bucket where users’ persistent application settings are stored. // When persistent application settings are enabled for the first time for an // account in an AWS Region, an S3 bucket is created. The bucket is unique to // the AWS account and the Region. S3BucketName *string `min:"1" type:"string"` // The path prefix for the S3 bucket where users’ persistent application settings // are stored. SettingsGroup *string `type:"string"` } // String returns the string representation func (s ApplicationSettingsResponse) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ApplicationSettingsResponse) GoString() string { return s.String() } // SetEnabled sets the Enabled field's value. func (s *ApplicationSettingsResponse) SetEnabled(v bool) *ApplicationSettingsResponse { s.Enabled = &v return s } // SetS3BucketName sets the S3BucketName field's value. func (s *ApplicationSettingsResponse) SetS3BucketName(v string) *ApplicationSettingsResponse { s.S3BucketName = &v return s } // SetSettingsGroup sets the SettingsGroup field's value. func (s *ApplicationSettingsResponse) SetSettingsGroup(v string) *ApplicationSettingsResponse { s.SettingsGroup = &v return s } type AssociateFleetInput struct { _ struct{} `type:"structure"` // The name of the fleet. // // FleetName is a required field FleetName *string `min:"1" type:"string" required:"true"` // The name of the stack. // // StackName is a required field StackName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s AssociateFleetInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AssociateFleetInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *AssociateFleetInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "AssociateFleetInput"} if s.FleetName == nil { invalidParams.Add(request.NewErrParamRequired("FleetName")) } if s.FleetName != nil && len(*s.FleetName) < 1 { invalidParams.Add(request.NewErrParamMinLen("FleetName", 1)) } if s.StackName == nil { invalidParams.Add(request.NewErrParamRequired("StackName")) } if s.StackName != nil && len(*s.StackName) < 1 { invalidParams.Add(request.NewErrParamMinLen("StackName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetFleetName sets the FleetName field's value. func (s *AssociateFleetInput) SetFleetName(v string) *AssociateFleetInput { s.FleetName = &v return s } // SetStackName sets the StackName field's value. func (s *AssociateFleetInput) SetStackName(v string) *AssociateFleetInput { s.StackName = &v return s } type AssociateFleetOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s AssociateFleetOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AssociateFleetOutput) GoString() string { return s.String() } type BatchAssociateUserStackInput struct { _ struct{} `type:"structure"` // The list of UserStackAssociation objects. // // UserStackAssociations is a required field UserStackAssociations []*UserStackAssociation `min:"1" type:"list" required:"true"` } // String returns the string representation func (s BatchAssociateUserStackInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s BatchAssociateUserStackInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *BatchAssociateUserStackInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "BatchAssociateUserStackInput"} if s.UserStackAssociations == nil { invalidParams.Add(request.NewErrParamRequired("UserStackAssociations")) } if s.UserStackAssociations != nil && len(s.UserStackAssociations) < 1 { invalidParams.Add(request.NewErrParamMinLen("UserStackAssociations", 1)) } if s.UserStackAssociations != nil { for i, v := range s.UserStackAssociations { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UserStackAssociations", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetUserStackAssociations sets the UserStackAssociations field's value. func (s *BatchAssociateUserStackInput) SetUserStackAssociations(v []*UserStackAssociation) *BatchAssociateUserStackInput { s.UserStackAssociations = v return s } type BatchAssociateUserStackOutput struct { _ struct{} `type:"structure"` // The list of UserStackAssociationError objects. Errors []*UserStackAssociationError `locationName:"errors" type:"list"` } // String returns the string representation func (s BatchAssociateUserStackOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s BatchAssociateUserStackOutput) GoString() string { return s.String() } // SetErrors sets the Errors field's value. func (s *BatchAssociateUserStackOutput) SetErrors(v []*UserStackAssociationError) *BatchAssociateUserStackOutput { s.Errors = v return s } type BatchDisassociateUserStackInput struct { _ struct{} `type:"structure"` // The list of UserStackAssociation objects. // // UserStackAssociations is a required field UserStackAssociations []*UserStackAssociation `min:"1" type:"list" required:"true"` } // String returns the string representation func (s BatchDisassociateUserStackInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s BatchDisassociateUserStackInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *BatchDisassociateUserStackInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "BatchDisassociateUserStackInput"} if s.UserStackAssociations == nil { invalidParams.Add(request.NewErrParamRequired("UserStackAssociations")) } if s.UserStackAssociations != nil && len(s.UserStackAssociations) < 1 { invalidParams.Add(request.NewErrParamMinLen("UserStackAssociations", 1)) } if s.UserStackAssociations != nil { for i, v := range s.UserStackAssociations { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UserStackAssociations", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetUserStackAssociations sets the UserStackAssociations field's value. func (s *BatchDisassociateUserStackInput) SetUserStackAssociations(v []*UserStackAssociation) *BatchDisassociateUserStackInput { s.UserStackAssociations = v return s } type BatchDisassociateUserStackOutput struct { _ struct{} `type:"structure"` // The list of UserStackAssociationError objects. Errors []*UserStackAssociationError `locationName:"errors" type:"list"` } // String returns the string representation func (s BatchDisassociateUserStackOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s BatchDisassociateUserStackOutput) GoString() string { return s.String() } // SetErrors sets the Errors field's value. func (s *BatchDisassociateUserStackOutput) SetErrors(v []*UserStackAssociationError) *BatchDisassociateUserStackOutput { s.Errors = v return s } // Describes the capacity for a fleet. type ComputeCapacity struct { _ struct{} `type:"structure"` // The desired number of streaming instances. // // DesiredInstances is a required field DesiredInstances *int64 `type:"integer" required:"true"` } // String returns the string representation func (s ComputeCapacity) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ComputeCapacity) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ComputeCapacity) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ComputeCapacity"} if s.DesiredInstances == nil { invalidParams.Add(request.NewErrParamRequired("DesiredInstances")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDesiredInstances sets the DesiredInstances field's value. func (s *ComputeCapacity) SetDesiredInstances(v int64) *ComputeCapacity { s.DesiredInstances = &v return s } // Describes the capacity status for a fleet. type ComputeCapacityStatus struct { _ struct{} `type:"structure"` // The number of currently available instances that can be used to stream sessions. Available *int64 `type:"integer"` // The desired number of streaming instances. // // Desired is a required field Desired *int64 `type:"integer" required:"true"` // The number of instances in use for streaming. InUse *int64 `type:"integer"` // The total number of simultaneous streaming instances that are running. Running *int64 `type:"integer"` } // String returns the string representation func (s ComputeCapacityStatus) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ComputeCapacityStatus) GoString() string { return s.String() } // SetAvailable sets the Available field's value. func (s *ComputeCapacityStatus) SetAvailable(v int64) *ComputeCapacityStatus { s.Available = &v return s } // SetDesired sets the Desired field's value. func (s *ComputeCapacityStatus) SetDesired(v int64) *ComputeCapacityStatus { s.Desired = &v return s } // SetInUse sets the InUse field's value. func (s *ComputeCapacityStatus) SetInUse(v int64) *ComputeCapacityStatus { s.InUse = &v return s } // SetRunning sets the Running field's value. func (s *ComputeCapacityStatus) SetRunning(v int64) *ComputeCapacityStatus { s.Running = &v return s } // An API error occurred. Wait a few minutes and try again. type ConcurrentModificationException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` // The error message in the exception. Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s ConcurrentModificationException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ConcurrentModificationException) GoString() string { return s.String() } func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error { return &ConcurrentModificationException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ConcurrentModificationException) Code() string { return "ConcurrentModificationException" } // Message returns the exception's message. func (s *ConcurrentModificationException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ConcurrentModificationException) OrigErr() error { return nil } func (s *ConcurrentModificationException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ConcurrentModificationException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ConcurrentModificationException) RequestID() string { return s.RespMetadata.RequestID } type CopyImageInput struct { _ struct{} `type:"structure"` // The description that the image will have when it is copied to the destination. DestinationImageDescription *string `type:"string"` // The name that the image will have when it is copied to the destination. // // DestinationImageName is a required field DestinationImageName *string `type:"string" required:"true"` // The destination region to which the image will be copied. This parameter // is required, even if you are copying an image within the same region. // // DestinationRegion is a required field DestinationRegion *string `min:"1" type:"string" required:"true"` // The name of the image to copy. // // SourceImageName is a required field SourceImageName *string `type:"string" required:"true"` } // String returns the string representation func (s CopyImageInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CopyImageInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CopyImageInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CopyImageInput"} if s.DestinationImageName == nil { invalidParams.Add(request.NewErrParamRequired("DestinationImageName")) } if s.DestinationRegion == nil { invalidParams.Add(request.NewErrParamRequired("DestinationRegion")) } if s.DestinationRegion != nil && len(*s.DestinationRegion) < 1 { invalidParams.Add(request.NewErrParamMinLen("DestinationRegion", 1)) } if s.SourceImageName == nil { invalidParams.Add(request.NewErrParamRequired("SourceImageName")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDestinationImageDescription sets the DestinationImageDescription field's value. func (s *CopyImageInput) SetDestinationImageDescription(v string) *CopyImageInput { s.DestinationImageDescription = &v return s } // SetDestinationImageName sets the DestinationImageName field's value. func (s *CopyImageInput) SetDestinationImageName(v string) *CopyImageInput { s.DestinationImageName = &v return s } // SetDestinationRegion sets the DestinationRegion field's value. func (s *CopyImageInput) SetDestinationRegion(v string) *CopyImageInput { s.DestinationRegion = &v return s } // SetSourceImageName sets the SourceImageName field's value. func (s *CopyImageInput) SetSourceImageName(v string) *CopyImageInput { s.SourceImageName = &v return s } type CopyImageOutput struct { _ struct{} `type:"structure"` // The name of the destination image. DestinationImageName *string `type:"string"` } // String returns the string representation func (s CopyImageOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CopyImageOutput) GoString() string { return s.String() } // SetDestinationImageName sets the DestinationImageName field's value. func (s *CopyImageOutput) SetDestinationImageName(v string) *CopyImageOutput { s.DestinationImageName = &v return s } type CreateDirectoryConfigInput struct { _ struct{} `type:"structure"` // The fully qualified name of the directory (for example, corp.example.com). // // DirectoryName is a required field DirectoryName *string `type:"string" required:"true"` // The distinguished names of the organizational units for computer accounts. // // OrganizationalUnitDistinguishedNames is a required field OrganizationalUnitDistinguishedNames []*string `type:"list" required:"true"` // The credentials for the service account used by the fleet or image builder // to connect to the directory. ServiceAccountCredentials *ServiceAccountCredentials `type:"structure"` } // String returns the string representation func (s CreateDirectoryConfigInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateDirectoryConfigInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateDirectoryConfigInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateDirectoryConfigInput"} if s.DirectoryName == nil { invalidParams.Add(request.NewErrParamRequired("DirectoryName")) } if s.OrganizationalUnitDistinguishedNames == nil { invalidParams.Add(request.NewErrParamRequired("OrganizationalUnitDistinguishedNames")) } if s.ServiceAccountCredentials != nil { if err := s.ServiceAccountCredentials.Validate(); err != nil { invalidParams.AddNested("ServiceAccountCredentials", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDirectoryName sets the DirectoryName field's value. func (s *CreateDirectoryConfigInput) SetDirectoryName(v string) *CreateDirectoryConfigInput { s.DirectoryName = &v return s } // SetOrganizationalUnitDistinguishedNames sets the OrganizationalUnitDistinguishedNames field's value. func (s *CreateDirectoryConfigInput) SetOrganizationalUnitDistinguishedNames(v []*string) *CreateDirectoryConfigInput { s.OrganizationalUnitDistinguishedNames = v return s } // SetServiceAccountCredentials sets the ServiceAccountCredentials field's value. func (s *CreateDirectoryConfigInput) SetServiceAccountCredentials(v *ServiceAccountCredentials) *CreateDirectoryConfigInput { s.ServiceAccountCredentials = v return s } type CreateDirectoryConfigOutput struct { _ struct{} `type:"structure"` // Information about the directory configuration. DirectoryConfig *DirectoryConfig `type:"structure"` } // String returns the string representation func (s CreateDirectoryConfigOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateDirectoryConfigOutput) GoString() string { return s.String() } // SetDirectoryConfig sets the DirectoryConfig field's value. func (s *CreateDirectoryConfigOutput) SetDirectoryConfig(v *DirectoryConfig) *CreateDirectoryConfigOutput { s.DirectoryConfig = v return s } type CreateFleetInput struct { _ struct{} `type:"structure"` // The desired capacity for the fleet. // // ComputeCapacity is a required field ComputeCapacity *ComputeCapacity `type:"structure" required:"true"` // The description to display. Description *string `type:"string"` // The amount of time that a streaming session remains active after users disconnect. // If users try to reconnect to the streaming session after a disconnection // or network interruption within this time interval, they are connected to // their previous session. Otherwise, they are connected to a new session with // a new streaming instance. // // Specify a value between 60 and 360000. DisconnectTimeoutInSeconds *int64 `type:"integer"` // The fleet name to display. DisplayName *string `type:"string"` // The name of the directory and organizational unit (OU) to use to join the // fleet to a Microsoft Active Directory domain. DomainJoinInfo *DomainJoinInfo `type:"structure"` // Enables or disables default internet access for the fleet. EnableDefaultInternetAccess *bool `type:"boolean"` // The fleet type. // // ALWAYS_ON // // Provides users with instant-on access to their apps. You are charged for // all running instances in your fleet, even if no users are streaming apps. // // ON_DEMAND // // Provide users with access to applications after they connect, which takes // one to two minutes. You are charged for instance streaming when users are // connected and a small hourly fee for instances that are not streaming apps. FleetType *string `type:"string" enum:"FleetType"` // The Amazon Resource Name (ARN) of the IAM role to apply to the fleet. To // assume a role, a fleet instance calls the AWS Security Token Service (STS) // AssumeRole API operation and passes the ARN of the role to use. The operation // creates a new session with temporary credentials. AppStream 2.0 retrieves // the temporary credentials and creates the appstream_machine_role credential // profile on the instance. // // For more information, see Using an IAM Role to Grant Permissions to Applications // and Scripts Running on AppStream 2.0 Streaming Instances (https://docs.aws.amazon.com/appstream2/latest/developerguide/using-iam-roles-to-grant-permissions-to-applications-scripts-streaming-instances.html) // in the Amazon AppStream 2.0 Administration Guide. IamRoleArn *string `type:"string"` // The amount of time that users can be idle (inactive) before they are disconnected // from their streaming session and the DisconnectTimeoutInSeconds time interval // begins. Users are notified before they are disconnected due to inactivity. // If they try to reconnect to the streaming session before the time interval // specified in DisconnectTimeoutInSeconds elapses, they are connected to their // previous session. Users are considered idle when they stop providing keyboard // or mouse input during their streaming session. File uploads and downloads, // audio in, audio out, and pixels changing do not qualify as user activity. // If users continue to be idle after the time interval in IdleDisconnectTimeoutInSeconds // elapses, they are disconnected. // // To prevent users from being disconnected due to inactivity, specify a value // of 0. Otherwise, specify a value between 60 and 3600. The default value is // 0. // // If you enable this feature, we recommend that you specify a value that corresponds // exactly to a whole number of minutes (for example, 60, 120, and 180). If // you don't do this, the value is rounded to the nearest minute. For example, // if you specify a value of 70, users are disconnected after 1 minute of inactivity. // If you specify a value that is at the midpoint between two different minutes, // the value is rounded up. For example, if you specify a value of 90, users // are disconnected after 2 minutes of inactivity. IdleDisconnectTimeoutInSeconds *int64 `type:"integer"` // The ARN of the public, private, or shared image to use. ImageArn *string `type:"string"` // The name of the image used to create the fleet. ImageName *string `min:"1" type:"string"` // The instance type to use when launching fleet instances. The following instance // types are available: // // * stream.standard.small // // * stream.standard.medium // // * stream.standard.large // // * stream.compute.large // // * stream.compute.xlarge // // * stream.compute.2xlarge // // * stream.compute.4xlarge // // * stream.compute.8xlarge // // * stream.memory.large // // * stream.memory.xlarge // // * stream.memory.2xlarge // // * stream.memory.4xlarge // // * stream.memory.8xlarge // // * stream.memory.z1d.large // // * stream.memory.z1d.xlarge // // * stream.memory.z1d.2xlarge // // * stream.memory.z1d.3xlarge // // * stream.memory.z1d.6xlarge // // * stream.memory.z1d.12xlarge // // * stream.graphics-design.large // // * stream.graphics-design.xlarge // // * stream.graphics-design.2xlarge // // * stream.graphics-design.4xlarge // // * stream.graphics-desktop.2xlarge // // * stream.graphics.g4dn.xlarge // // * stream.graphics.g4dn.2xlarge // // * stream.graphics.g4dn.4xlarge // // * stream.graphics.g4dn.8xlarge // // * stream.graphics.g4dn.12xlarge // // * stream.graphics.g4dn.16xlarge // // * stream.graphics-pro.4xlarge // // * stream.graphics-pro.8xlarge // // * stream.graphics-pro.16xlarge // // InstanceType is a required field InstanceType *string `min:"1" type:"string" required:"true"` // The maximum amount of time that a streaming session can remain active, in // seconds. If users are still connected to a streaming instance five minutes // before this limit is reached, they are prompted to save any open documents // before being disconnected. After this time elapses, the instance is terminated // and replaced by a new instance. // // Specify a value between 600 and 360000. MaxUserDurationInSeconds *int64 `type:"integer"` // A unique name for the fleet. // // Name is a required field Name *string `type:"string" required:"true"` // The AppStream 2.0 view that is displayed to your users when they stream from // the fleet. When APP is specified, only the windows of applications opened // by users display. When DESKTOP is specified, the standard desktop that is // provided by the operating system displays. // // The default value is APP. StreamView *string `type:"string" enum:"StreamView"` // The tags to associate with the fleet. A tag is a key-value pair, and the // value is optional. For example, Environment=Test. If you do not specify a // value, Environment=. // // If you do not specify a value, the value is set to an empty string. // // Generally allowed characters are: letters, numbers, and spaces representable // in UTF-8, and the following special characters: // // _ . : / = + \ - @ // // For more information, see Tagging Your Resources (https://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic.html) // in the Amazon AppStream 2.0 Administration Guide. Tags map[string]*string `min:"1" type:"map"` // The VPC configuration for the fleet. VpcConfig *VpcConfig `type:"structure"` } // String returns the string representation func (s CreateFleetInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateFleetInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateFleetInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateFleetInput"} if s.ComputeCapacity == nil { invalidParams.Add(request.NewErrParamRequired("ComputeCapacity")) } if s.ImageName != nil && len(*s.ImageName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ImageName", 1)) } if s.InstanceType == nil { invalidParams.Add(request.NewErrParamRequired("InstanceType")) } if s.InstanceType != nil && len(*s.InstanceType) < 1 { invalidParams.Add(request.NewErrParamMinLen("InstanceType", 1)) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Tags != nil && len(s.Tags) < 1 { invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) } if s.ComputeCapacity != nil { if err := s.ComputeCapacity.Validate(); err != nil { invalidParams.AddNested("ComputeCapacity", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetComputeCapacity sets the ComputeCapacity field's value. func (s *CreateFleetInput) SetComputeCapacity(v *ComputeCapacity) *CreateFleetInput { s.ComputeCapacity = v return s } // SetDescription sets the Description field's value. func (s *CreateFleetInput) SetDescription(v string) *CreateFleetInput { s.Description = &v return s } // SetDisconnectTimeoutInSeconds sets the DisconnectTimeoutInSeconds field's value. func (s *CreateFleetInput) SetDisconnectTimeoutInSeconds(v int64) *CreateFleetInput { s.DisconnectTimeoutInSeconds = &v return s } // SetDisplayName sets the DisplayName field's value. func (s *CreateFleetInput) SetDisplayName(v string) *CreateFleetInput { s.DisplayName = &v return s } // SetDomainJoinInfo sets the DomainJoinInfo field's value. func (s *CreateFleetInput) SetDomainJoinInfo(v *DomainJoinInfo) *CreateFleetInput { s.DomainJoinInfo = v return s } // SetEnableDefaultInternetAccess sets the EnableDefaultInternetAccess field's value. func (s *CreateFleetInput) SetEnableDefaultInternetAccess(v bool) *CreateFleetInput { s.EnableDefaultInternetAccess = &v return s } // SetFleetType sets the FleetType field's value. func (s *CreateFleetInput) SetFleetType(v string) *CreateFleetInput { s.FleetType = &v return s } // SetIamRoleArn sets the IamRoleArn field's value. func (s *CreateFleetInput) SetIamRoleArn(v string) *CreateFleetInput { s.IamRoleArn = &v return s } // SetIdleDisconnectTimeoutInSeconds sets the IdleDisconnectTimeoutInSeconds field's value. func (s *CreateFleetInput) SetIdleDisconnectTimeoutInSeconds(v int64) *CreateFleetInput { s.IdleDisconnectTimeoutInSeconds = &v return s } // SetImageArn sets the ImageArn field's value. func (s *CreateFleetInput) SetImageArn(v string) *CreateFleetInput { s.ImageArn = &v return s } // SetImageName sets the ImageName field's value. func (s *CreateFleetInput) SetImageName(v string) *CreateFleetInput { s.ImageName = &v return s } // SetInstanceType sets the InstanceType field's value. func (s *CreateFleetInput) SetInstanceType(v string) *CreateFleetInput { s.InstanceType = &v return s } // SetMaxUserDurationInSeconds sets the MaxUserDurationInSeconds field's value. func (s *CreateFleetInput) SetMaxUserDurationInSeconds(v int64) *CreateFleetInput { s.MaxUserDurationInSeconds = &v return s } // SetName sets the Name field's value. func (s *CreateFleetInput) SetName(v string) *CreateFleetInput { s.Name = &v return s } // SetStreamView sets the StreamView field's value. func (s *CreateFleetInput) SetStreamView(v string) *CreateFleetInput { s.StreamView = &v return s } // SetTags sets the Tags field's value. func (s *CreateFleetInput) SetTags(v map[string]*string) *CreateFleetInput { s.Tags = v return s } // SetVpcConfig sets the VpcConfig field's value. func (s *CreateFleetInput) SetVpcConfig(v *VpcConfig) *CreateFleetInput { s.VpcConfig = v return s } type CreateFleetOutput struct { _ struct{} `type:"structure"` // Information about the fleet. Fleet *Fleet `type:"structure"` } // String returns the string representation func (s CreateFleetOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateFleetOutput) GoString() string { return s.String() } // SetFleet sets the Fleet field's value. func (s *CreateFleetOutput) SetFleet(v *Fleet) *CreateFleetOutput { s.Fleet = v return s } type CreateImageBuilderInput struct { _ struct{} `type:"structure"` // The list of interface VPC endpoint (interface endpoint) objects. Administrators // can connect to the image builder only through the specified endpoints. AccessEndpoints []*AccessEndpoint `min:"1" type:"list"` // The version of the AppStream 2.0 agent to use for this image builder. To // use the latest version of the AppStream 2.0 agent, specify [LATEST]. AppstreamAgentVersion *string `min:"1" type:"string"` // The description to display. Description *string `type:"string"` // The image builder name to display. DisplayName *string `type:"string"` // The name of the directory and organizational unit (OU) to use to join the // image builder to a Microsoft Active Directory domain. DomainJoinInfo *DomainJoinInfo `type:"structure"` // Enables or disables default internet access for the image builder. EnableDefaultInternetAccess *bool `type:"boolean"` // The Amazon Resource Name (ARN) of the IAM role to apply to the image builder. // To assume a role, the image builder calls the AWS Security Token Service // (STS) AssumeRole API operation and passes the ARN of the role to use. The // operation creates a new session with temporary credentials. AppStream 2.0 // retrieves the temporary credentials and creates the appstream_machine_role // credential profile on the instance. // // For more information, see Using an IAM Role to Grant Permissions to Applications // and Scripts Running on AppStream 2.0 Streaming Instances (https://docs.aws.amazon.com/appstream2/latest/developerguide/using-iam-roles-to-grant-permissions-to-applications-scripts-streaming-instances.html) // in the Amazon AppStream 2.0 Administration Guide. IamRoleArn *string `type:"string"` // The ARN of the public, private, or shared image to use. ImageArn *string `type:"string"` // The name of the image used to create the image builder. ImageName *string `min:"1" type:"string"` // The instance type to use when launching the image builder. The following // instance types are available: // // * stream.standard.small // // * stream.standard.medium // // * stream.standard.large // // * stream.compute.large // // * stream.compute.xlarge // // * stream.compute.2xlarge // // * stream.compute.4xlarge // // * stream.compute.8xlarge // // * stream.memory.large // // * stream.memory.xlarge // // * stream.memory.2xlarge // // * stream.memory.4xlarge // // * stream.memory.8xlarge // // * stream.memory.z1d.large // // * stream.memory.z1d.xlarge // // * stream.memory.z1d.2xlarge // // * stream.memory.z1d.3xlarge // // * stream.memory.z1d.6xlarge // // * stream.memory.z1d.12xlarge // // * stream.graphics-design.large // // * stream.graphics-design.xlarge // // * stream.graphics-design.2xlarge // // * stream.graphics-design.4xlarge // // * stream.graphics-desktop.2xlarge // // * stream.graphics.g4dn.xlarge // // * stream.graphics.g4dn.2xlarge // // * stream.graphics.g4dn.4xlarge // // * stream.graphics.g4dn.8xlarge // // * stream.graphics.g4dn.12xlarge // // * stream.graphics.g4dn.16xlarge // // * stream.graphics-pro.4xlarge // // * stream.graphics-pro.8xlarge // // * stream.graphics-pro.16xlarge // // InstanceType is a required field InstanceType *string `min:"1" type:"string" required:"true"` // A unique name for the image builder. // // Name is a required field Name *string `type:"string" required:"true"` // The tags to associate with the image builder. A tag is a key-value pair, // and the value is optional. For example, Environment=Test. If you do not specify // a value, Environment=. // // Generally allowed characters are: letters, numbers, and spaces representable // in UTF-8, and the following special characters: // // _ . : / = + \ - @ // // If you do not specify a value, the value is set to an empty string. // // For more information about tags, see Tagging Your Resources (https://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic.html) // in the Amazon AppStream 2.0 Administration Guide. Tags map[string]*string `min:"1" type:"map"` // The VPC configuration for the image builder. You can specify only one subnet. VpcConfig *VpcConfig `type:"structure"` } // String returns the string representation func (s CreateImageBuilderInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateImageBuilderInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateImageBuilderInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateImageBuilderInput"} if s.AccessEndpoints != nil && len(s.AccessEndpoints) < 1 { invalidParams.Add(request.NewErrParamMinLen("AccessEndpoints", 1)) } if s.AppstreamAgentVersion != nil && len(*s.AppstreamAgentVersion) < 1 { invalidParams.Add(request.NewErrParamMinLen("AppstreamAgentVersion", 1)) } if s.ImageName != nil && len(*s.ImageName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ImageName", 1)) } if s.InstanceType == nil { invalidParams.Add(request.NewErrParamRequired("InstanceType")) } if s.InstanceType != nil && len(*s.InstanceType) < 1 { invalidParams.Add(request.NewErrParamMinLen("InstanceType", 1)) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Tags != nil && len(s.Tags) < 1 { invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) } if s.AccessEndpoints != nil { for i, v := range s.AccessEndpoints { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AccessEndpoints", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAccessEndpoints sets the AccessEndpoints field's value. func (s *CreateImageBuilderInput) SetAccessEndpoints(v []*AccessEndpoint) *CreateImageBuilderInput { s.AccessEndpoints = v return s } // SetAppstreamAgentVersion sets the AppstreamAgentVersion field's value. func (s *CreateImageBuilderInput) SetAppstreamAgentVersion(v string) *CreateImageBuilderInput { s.AppstreamAgentVersion = &v return s } // SetDescription sets the Description field's value. func (s *CreateImageBuilderInput) SetDescription(v string) *CreateImageBuilderInput { s.Description = &v return s } // SetDisplayName sets the DisplayName field's value. func (s *CreateImageBuilderInput) SetDisplayName(v string) *CreateImageBuilderInput { s.DisplayName = &v return s } // SetDomainJoinInfo sets the DomainJoinInfo field's value. func (s *CreateImageBuilderInput) SetDomainJoinInfo(v *DomainJoinInfo) *CreateImageBuilderInput { s.DomainJoinInfo = v return s } // SetEnableDefaultInternetAccess sets the EnableDefaultInternetAccess field's value. func (s *CreateImageBuilderInput) SetEnableDefaultInternetAccess(v bool) *CreateImageBuilderInput { s.EnableDefaultInternetAccess = &v return s } // SetIamRoleArn sets the IamRoleArn field's value. func (s *CreateImageBuilderInput) SetIamRoleArn(v string) *CreateImageBuilderInput { s.IamRoleArn = &v return s } // SetImageArn sets the ImageArn field's value. func (s *CreateImageBuilderInput) SetImageArn(v string) *CreateImageBuilderInput { s.ImageArn = &v return s } // SetImageName sets the ImageName field's value. func (s *CreateImageBuilderInput) SetImageName(v string) *CreateImageBuilderInput { s.ImageName = &v return s } // SetInstanceType sets the InstanceType field's value. func (s *CreateImageBuilderInput) SetInstanceType(v string) *CreateImageBuilderInput { s.InstanceType = &v return s } // SetName sets the Name field's value. func (s *CreateImageBuilderInput) SetName(v string) *CreateImageBuilderInput { s.Name = &v return s } // SetTags sets the Tags field's value. func (s *CreateImageBuilderInput) SetTags(v map[string]*string) *CreateImageBuilderInput { s.Tags = v return s } // SetVpcConfig sets the VpcConfig field's value. func (s *CreateImageBuilderInput) SetVpcConfig(v *VpcConfig) *CreateImageBuilderInput { s.VpcConfig = v return s } type CreateImageBuilderOutput struct { _ struct{} `type:"structure"` // Information about the image builder. ImageBuilder *ImageBuilder `type:"structure"` } // String returns the string representation func (s CreateImageBuilderOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateImageBuilderOutput) GoString() string { return s.String() } // SetImageBuilder sets the ImageBuilder field's value. func (s *CreateImageBuilderOutput) SetImageBuilder(v *ImageBuilder) *CreateImageBuilderOutput { s.ImageBuilder = v return s } type CreateImageBuilderStreamingURLInput struct { _ struct{} `type:"structure"` // The name of the image builder. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // The time that the streaming URL will be valid, in seconds. Specify a value // between 1 and 604800 seconds. The default is 3600 seconds. Validity *int64 `type:"long"` } // String returns the string representation func (s CreateImageBuilderStreamingURLInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateImageBuilderStreamingURLInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateImageBuilderStreamingURLInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateImageBuilderStreamingURLInput"} if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetName sets the Name field's value. func (s *CreateImageBuilderStreamingURLInput) SetName(v string) *CreateImageBuilderStreamingURLInput { s.Name = &v return s } // SetValidity sets the Validity field's value. func (s *CreateImageBuilderStreamingURLInput) SetValidity(v int64) *CreateImageBuilderStreamingURLInput { s.Validity = &v return s } type CreateImageBuilderStreamingURLOutput struct { _ struct{} `type:"structure"` // The elapsed time, in seconds after the Unix epoch, when this URL expires. Expires *time.Time `type:"timestamp"` // The URL to start the AppStream 2.0 streaming session. StreamingURL *string `min:"1" type:"string"` } // String returns the string representation func (s CreateImageBuilderStreamingURLOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateImageBuilderStreamingURLOutput) GoString() string { return s.String() } // SetExpires sets the Expires field's value. func (s *CreateImageBuilderStreamingURLOutput) SetExpires(v time.Time) *CreateImageBuilderStreamingURLOutput { s.Expires = &v return s } // SetStreamingURL sets the StreamingURL field's value. func (s *CreateImageBuilderStreamingURLOutput) SetStreamingURL(v string) *CreateImageBuilderStreamingURLOutput { s.StreamingURL = &v return s } type CreateStackInput struct { _ struct{} `type:"structure"` // The list of interface VPC endpoint (interface endpoint) objects. Users of // the stack can connect to AppStream 2.0 only through the specified endpoints. AccessEndpoints []*AccessEndpoint `min:"1" type:"list"` // The persistent application settings for users of a stack. When these settings // are enabled, changes that users make to applications and Windows settings // are automatically saved after each session and applied to the next session. ApplicationSettings *ApplicationSettings `type:"structure"` // The description to display. Description *string `type:"string"` // The stack name to display. DisplayName *string `type:"string"` // The domains where AppStream 2.0 streaming sessions can be embedded in an // iframe. You must approve the domains that you want to host embedded AppStream // 2.0 streaming sessions. EmbedHostDomains []*string `min:"1" type:"list"` // The URL that users are redirected to after they click the Send Feedback link. // If no URL is specified, no Send Feedback link is displayed. FeedbackURL *string `type:"string"` // The name of the stack. // // Name is a required field Name *string `type:"string" required:"true"` // The URL that users are redirected to after their streaming session ends. RedirectURL *string `type:"string"` // The storage connectors to enable. StorageConnectors []*StorageConnector `type:"list"` // The tags to associate with the stack. A tag is a key-value pair, and the // value is optional. For example, Environment=Test. If you do not specify a // value, Environment=. // // If you do not specify a value, the value is set to an empty string. // // Generally allowed characters are: letters, numbers, and spaces representable // in UTF-8, and the following special characters: // // _ . : / = + \ - @ // // For more information about tags, see Tagging Your Resources (https://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic.html) // in the Amazon AppStream 2.0 Administration Guide. Tags map[string]*string `min:"1" type:"map"` // The actions that are enabled or disabled for users during their streaming // sessions. By default, these actions are enabled. UserSettings []*UserSetting `min:"1" type:"list"` } // String returns the string representation func (s CreateStackInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateStackInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateStackInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateStackInput"} if s.AccessEndpoints != nil && len(s.AccessEndpoints) < 1 { invalidParams.Add(request.NewErrParamMinLen("AccessEndpoints", 1)) } if s.EmbedHostDomains != nil && len(s.EmbedHostDomains) < 1 { invalidParams.Add(request.NewErrParamMinLen("EmbedHostDomains", 1)) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Tags != nil && len(s.Tags) < 1 { invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) } if s.UserSettings != nil && len(s.UserSettings) < 1 { invalidParams.Add(request.NewErrParamMinLen("UserSettings", 1)) } if s.AccessEndpoints != nil { for i, v := range s.AccessEndpoints { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AccessEndpoints", i), err.(request.ErrInvalidParams)) } } } if s.ApplicationSettings != nil { if err := s.ApplicationSettings.Validate(); err != nil { invalidParams.AddNested("ApplicationSettings", err.(request.ErrInvalidParams)) } } if s.StorageConnectors != nil { for i, v := range s.StorageConnectors { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "StorageConnectors", i), err.(request.ErrInvalidParams)) } } } if s.UserSettings != nil { for i, v := range s.UserSettings { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UserSettings", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAccessEndpoints sets the AccessEndpoints field's value. func (s *CreateStackInput) SetAccessEndpoints(v []*AccessEndpoint) *CreateStackInput { s.AccessEndpoints = v return s } // SetApplicationSettings sets the ApplicationSettings field's value. func (s *CreateStackInput) SetApplicationSettings(v *ApplicationSettings) *CreateStackInput { s.ApplicationSettings = v return s } // SetDescription sets the Description field's value. func (s *CreateStackInput) SetDescription(v string) *CreateStackInput { s.Description = &v return s } // SetDisplayName sets the DisplayName field's value. func (s *CreateStackInput) SetDisplayName(v string) *CreateStackInput { s.DisplayName = &v return s } // SetEmbedHostDomains sets the EmbedHostDomains field's value. func (s *CreateStackInput) SetEmbedHostDomains(v []*string) *CreateStackInput { s.EmbedHostDomains = v return s } // SetFeedbackURL sets the FeedbackURL field's value. func (s *CreateStackInput) SetFeedbackURL(v string) *CreateStackInput { s.FeedbackURL = &v return s } // SetName sets the Name field's value. func (s *CreateStackInput) SetName(v string) *CreateStackInput { s.Name = &v return s } // SetRedirectURL sets the RedirectURL field's value. func (s *CreateStackInput) SetRedirectURL(v string) *CreateStackInput { s.RedirectURL = &v return s } // SetStorageConnectors sets the StorageConnectors field's value. func (s *CreateStackInput) SetStorageConnectors(v []*StorageConnector) *CreateStackInput { s.StorageConnectors = v return s } // SetTags sets the Tags field's value. func (s *CreateStackInput) SetTags(v map[string]*string) *CreateStackInput { s.Tags = v return s } // SetUserSettings sets the UserSettings field's value. func (s *CreateStackInput) SetUserSettings(v []*UserSetting) *CreateStackInput { s.UserSettings = v return s } type CreateStackOutput struct { _ struct{} `type:"structure"` // Information about the stack. Stack *Stack `type:"structure"` } // String returns the string representation func (s CreateStackOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateStackOutput) GoString() string { return s.String() } // SetStack sets the Stack field's value. func (s *CreateStackOutput) SetStack(v *Stack) *CreateStackOutput { s.Stack = v return s } type CreateStreamingURLInput struct { _ struct{} `type:"structure"` // The name of the application to launch after the session starts. This is the // name that you specified as Name in the Image Assistant. If your fleet is // enabled for the Desktop stream view, you can also choose to launch directly // to the operating system desktop. To do so, specify Desktop. ApplicationId *string `min:"1" type:"string"` // The name of the fleet. // // FleetName is a required field FleetName *string `min:"1" type:"string" required:"true"` // The session context. For more information, see Session Context (https://docs.aws.amazon.com/appstream2/latest/developerguide/managing-stacks-fleets.html#managing-stacks-fleets-parameters) // in the Amazon AppStream 2.0 Administration Guide. SessionContext *string `min:"1" type:"string"` // The name of the stack. // // StackName is a required field StackName *string `min:"1" type:"string" required:"true"` // The identifier of the user. // // UserId is a required field UserId *string `min:"2" type:"string" required:"true"` // The time that the streaming URL will be valid, in seconds. Specify a value // between 1 and 604800 seconds. The default is 60 seconds. Validity *int64 `type:"long"` } // String returns the string representation func (s CreateStreamingURLInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateStreamingURLInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateStreamingURLInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateStreamingURLInput"} if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) } if s.FleetName == nil { invalidParams.Add(request.NewErrParamRequired("FleetName")) } if s.FleetName != nil && len(*s.FleetName) < 1 { invalidParams.Add(request.NewErrParamMinLen("FleetName", 1)) } if s.SessionContext != nil && len(*s.SessionContext) < 1 { invalidParams.Add(request.NewErrParamMinLen("SessionContext", 1)) } if s.StackName == nil { invalidParams.Add(request.NewErrParamRequired("StackName")) } if s.StackName != nil && len(*s.StackName) < 1 { invalidParams.Add(request.NewErrParamMinLen("StackName", 1)) } if s.UserId == nil { invalidParams.Add(request.NewErrParamRequired("UserId")) } if s.UserId != nil && len(*s.UserId) < 2 { invalidParams.Add(request.NewErrParamMinLen("UserId", 2)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApplicationId sets the ApplicationId field's value. func (s *CreateStreamingURLInput) SetApplicationId(v string) *CreateStreamingURLInput { s.ApplicationId = &v return s } // SetFleetName sets the FleetName field's value. func (s *CreateStreamingURLInput) SetFleetName(v string) *CreateStreamingURLInput { s.FleetName = &v return s } // SetSessionContext sets the SessionContext field's value. func (s *CreateStreamingURLInput) SetSessionContext(v string) *CreateStreamingURLInput { s.SessionContext = &v return s } // SetStackName sets the StackName field's value. func (s *CreateStreamingURLInput) SetStackName(v string) *CreateStreamingURLInput { s.StackName = &v return s } // SetUserId sets the UserId field's value. func (s *CreateStreamingURLInput) SetUserId(v string) *CreateStreamingURLInput { s.UserId = &v return s } // SetValidity sets the Validity field's value. func (s *CreateStreamingURLInput) SetValidity(v int64) *CreateStreamingURLInput { s.Validity = &v return s } type CreateStreamingURLOutput struct { _ struct{} `type:"structure"` // The elapsed time, in seconds after the Unix epoch, when this URL expires. Expires *time.Time `type:"timestamp"` // The URL to start the AppStream 2.0 streaming session. StreamingURL *string `min:"1" type:"string"` } // String returns the string representation func (s CreateStreamingURLOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateStreamingURLOutput) GoString() string { return s.String() } // SetExpires sets the Expires field's value. func (s *CreateStreamingURLOutput) SetExpires(v time.Time) *CreateStreamingURLOutput { s.Expires = &v return s } // SetStreamingURL sets the StreamingURL field's value. func (s *CreateStreamingURLOutput) SetStreamingURL(v string) *CreateStreamingURLOutput { s.StreamingURL = &v return s } type CreateUpdatedImageInput struct { _ struct{} `type:"structure"` // Indicates whether to display the status of image update availability before // AppStream 2.0 initiates the process of creating a new updated image. If this // value is set to true, AppStream 2.0 displays whether image updates are available. // If this value is set to false, AppStream 2.0 initiates the process of creating // a new updated image without displaying whether image updates are available. DryRun *bool `locationName:"dryRun" type:"boolean"` // The name of the image to update. // // ExistingImageName is a required field ExistingImageName *string `locationName:"existingImageName" type:"string" required:"true"` // The description to display for the new image. NewImageDescription *string `locationName:"newImageDescription" type:"string"` // The name to display for the new image. NewImageDisplayName *string `locationName:"newImageDisplayName" type:"string"` // The name of the new image. The name must be unique within the AWS account // and Region. // // NewImageName is a required field NewImageName *string `locationName:"newImageName" type:"string" required:"true"` // The tags to associate with the new image. A tag is a key-value pair, and // the value is optional. For example, Environment=Test. If you do not specify // a value, Environment=. // // Generally allowed characters are: letters, numbers, and spaces representable // in UTF-8, and the following special characters: // // _ . : / = + \ - @ // // If you do not specify a value, the value is set to an empty string. // // For more information about tags, see Tagging Your Resources (https://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic.html) // in the Amazon AppStream 2.0 Administration Guide. NewImageTags map[string]*string `locationName:"newImageTags" min:"1" type:"map"` } // String returns the string representation func (s CreateUpdatedImageInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateUpdatedImageInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateUpdatedImageInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateUpdatedImageInput"} if s.ExistingImageName == nil { invalidParams.Add(request.NewErrParamRequired("ExistingImageName")) } if s.NewImageName == nil { invalidParams.Add(request.NewErrParamRequired("NewImageName")) } if s.NewImageTags != nil && len(s.NewImageTags) < 1 { invalidParams.Add(request.NewErrParamMinLen("NewImageTags", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDryRun sets the DryRun field's value. func (s *CreateUpdatedImageInput) SetDryRun(v bool) *CreateUpdatedImageInput { s.DryRun = &v return s } // SetExistingImageName sets the ExistingImageName field's value. func (s *CreateUpdatedImageInput) SetExistingImageName(v string) *CreateUpdatedImageInput { s.ExistingImageName = &v return s } // SetNewImageDescription sets the NewImageDescription field's value. func (s *CreateUpdatedImageInput) SetNewImageDescription(v string) *CreateUpdatedImageInput { s.NewImageDescription = &v return s } // SetNewImageDisplayName sets the NewImageDisplayName field's value. func (s *CreateUpdatedImageInput) SetNewImageDisplayName(v string) *CreateUpdatedImageInput { s.NewImageDisplayName = &v return s } // SetNewImageName sets the NewImageName field's value. func (s *CreateUpdatedImageInput) SetNewImageName(v string) *CreateUpdatedImageInput { s.NewImageName = &v return s } // SetNewImageTags sets the NewImageTags field's value. func (s *CreateUpdatedImageInput) SetNewImageTags(v map[string]*string) *CreateUpdatedImageInput { s.NewImageTags = v return s } type CreateUpdatedImageOutput struct { _ struct{} `type:"structure"` // Indicates whether a new image can be created. CanUpdateImage *bool `locationName:"canUpdateImage" type:"boolean"` // Describes an image. Image *Image `locationName:"image" type:"structure"` } // String returns the string representation func (s CreateUpdatedImageOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateUpdatedImageOutput) GoString() string { return s.String() } // SetCanUpdateImage sets the CanUpdateImage field's value. func (s *CreateUpdatedImageOutput) SetCanUpdateImage(v bool) *CreateUpdatedImageOutput { s.CanUpdateImage = &v return s } // SetImage sets the Image field's value. func (s *CreateUpdatedImageOutput) SetImage(v *Image) *CreateUpdatedImageOutput { s.Image = v return s } type CreateUsageReportSubscriptionInput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s CreateUsageReportSubscriptionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateUsageReportSubscriptionInput) GoString() string { return s.String() } type CreateUsageReportSubscriptionOutput struct { _ struct{} `type:"structure"` // The Amazon S3 bucket where generated reports are stored. // // If you enabled on-instance session scripts and Amazon S3 logging for your // session script configuration, AppStream 2.0 created an S3 bucket to store // the script output. The bucket is unique to your account and Region. When // you enable usage reporting in this case, AppStream 2.0 uses the same bucket // to store your usage reports. If you haven't already enabled on-instance session // scripts, when you enable usage reports, AppStream 2.0 creates a new S3 bucket. S3BucketName *string `min:"1" type:"string"` // The schedule for generating usage reports. Schedule *string `type:"string" enum:"UsageReportSchedule"` } // String returns the string representation func (s CreateUsageReportSubscriptionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateUsageReportSubscriptionOutput) GoString() string { return s.String() } // SetS3BucketName sets the S3BucketName field's value. func (s *CreateUsageReportSubscriptionOutput) SetS3BucketName(v string) *CreateUsageReportSubscriptionOutput { s.S3BucketName = &v return s } // SetSchedule sets the Schedule field's value. func (s *CreateUsageReportSubscriptionOutput) SetSchedule(v string) *CreateUsageReportSubscriptionOutput { s.Schedule = &v return s } type CreateUserInput struct { _ struct{} `type:"structure"` // The authentication type for the user. You must specify USERPOOL. // // AuthenticationType is a required field AuthenticationType *string `type:"string" required:"true" enum:"AuthenticationType"` // The first name, or given name, of the user. FirstName *string `type:"string" sensitive:"true"` // The last name, or surname, of the user. LastName *string `type:"string" sensitive:"true"` // The action to take for the welcome email that is sent to a user after the // user is created in the user pool. If you specify SUPPRESS, no email is sent. // If you specify RESEND, do not specify the first name or last name of the // user. If the value is null, the email is sent. // // The temporary password in the welcome email is valid for only 7 days. If // users don’t set their passwords within 7 days, you must send them a new // welcome email. MessageAction *string `type:"string" enum:"MessageAction"` // The email address of the user. // // Users' email addresses are case-sensitive. During login, if they specify // an email address that doesn't use the same capitalization as the email address // specified when their user pool account was created, a "user does not exist" // error message displays. // // UserName is a required field UserName *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation func (s CreateUserInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateUserInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateUserInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateUserInput"} if s.AuthenticationType == nil { invalidParams.Add(request.NewErrParamRequired("AuthenticationType")) } if s.UserName == nil { invalidParams.Add(request.NewErrParamRequired("UserName")) } if s.UserName != nil && len(*s.UserName) < 1 { invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAuthenticationType sets the AuthenticationType field's value. func (s *CreateUserInput) SetAuthenticationType(v string) *CreateUserInput { s.AuthenticationType = &v return s } // SetFirstName sets the FirstName field's value. func (s *CreateUserInput) SetFirstName(v string) *CreateUserInput { s.FirstName = &v return s } // SetLastName sets the LastName field's value. func (s *CreateUserInput) SetLastName(v string) *CreateUserInput { s.LastName = &v return s } // SetMessageAction sets the MessageAction field's value. func (s *CreateUserInput) SetMessageAction(v string) *CreateUserInput { s.MessageAction = &v return s } // SetUserName sets the UserName field's value. func (s *CreateUserInput) SetUserName(v string) *CreateUserInput { s.UserName = &v return s } type CreateUserOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s CreateUserOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateUserOutput) GoString() string { return s.String() } type DeleteDirectoryConfigInput struct { _ struct{} `type:"structure"` // The name of the directory configuration. // // DirectoryName is a required field DirectoryName *string `type:"string" required:"true"` } // String returns the string representation func (s DeleteDirectoryConfigInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteDirectoryConfigInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteDirectoryConfigInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteDirectoryConfigInput"} if s.DirectoryName == nil { invalidParams.Add(request.NewErrParamRequired("DirectoryName")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDirectoryName sets the DirectoryName field's value. func (s *DeleteDirectoryConfigInput) SetDirectoryName(v string) *DeleteDirectoryConfigInput { s.DirectoryName = &v return s } type DeleteDirectoryConfigOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteDirectoryConfigOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteDirectoryConfigOutput) GoString() string { return s.String() } type DeleteFleetInput struct { _ struct{} `type:"structure"` // The name of the fleet. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DeleteFleetInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteFleetInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteFleetInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteFleetInput"} if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetName sets the Name field's value. func (s *DeleteFleetInput) SetName(v string) *DeleteFleetInput { s.Name = &v return s } type DeleteFleetOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteFleetOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteFleetOutput) GoString() string { return s.String() } type DeleteImageBuilderInput struct { _ struct{} `type:"structure"` // The name of the image builder. // // Name is a required field Name *string `type:"string" required:"true"` } // String returns the string representation func (s DeleteImageBuilderInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteImageBuilderInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteImageBuilderInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteImageBuilderInput"} if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetName sets the Name field's value. func (s *DeleteImageBuilderInput) SetName(v string) *DeleteImageBuilderInput { s.Name = &v return s } type DeleteImageBuilderOutput struct { _ struct{} `type:"structure"` // Information about the image builder. ImageBuilder *ImageBuilder `type:"structure"` } // String returns the string representation func (s DeleteImageBuilderOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteImageBuilderOutput) GoString() string { return s.String() } // SetImageBuilder sets the ImageBuilder field's value. func (s *DeleteImageBuilderOutput) SetImageBuilder(v *ImageBuilder) *DeleteImageBuilderOutput { s.ImageBuilder = v return s } type DeleteImageInput struct { _ struct{} `type:"structure"` // The name of the image. // // Name is a required field Name *string `type:"string" required:"true"` } // String returns the string representation func (s DeleteImageInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteImageInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteImageInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteImageInput"} if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetName sets the Name field's value. func (s *DeleteImageInput) SetName(v string) *DeleteImageInput { s.Name = &v return s } type DeleteImageOutput struct { _ struct{} `type:"structure"` // Information about the image. Image *Image `type:"structure"` } // String returns the string representation func (s DeleteImageOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteImageOutput) GoString() string { return s.String() } // SetImage sets the Image field's value. func (s *DeleteImageOutput) SetImage(v *Image) *DeleteImageOutput { s.Image = v return s } type DeleteImagePermissionsInput struct { _ struct{} `type:"structure"` // The name of the private image. // // Name is a required field Name *string `type:"string" required:"true"` // The 12-digit identifier of the AWS account for which to delete image permissions. // // SharedAccountId is a required field SharedAccountId *string `type:"string" required:"true"` } // String returns the string representation func (s DeleteImagePermissionsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteImagePermissionsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteImagePermissionsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteImagePermissionsInput"} if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.SharedAccountId == nil { invalidParams.Add(request.NewErrParamRequired("SharedAccountId")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetName sets the Name field's value. func (s *DeleteImagePermissionsInput) SetName(v string) *DeleteImagePermissionsInput { s.Name = &v return s } // SetSharedAccountId sets the SharedAccountId field's value. func (s *DeleteImagePermissionsInput) SetSharedAccountId(v string) *DeleteImagePermissionsInput { s.SharedAccountId = &v return s } type DeleteImagePermissionsOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteImagePermissionsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteImagePermissionsOutput) GoString() string { return s.String() } type DeleteStackInput struct { _ struct{} `type:"structure"` // The name of the stack. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DeleteStackInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteStackInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteStackInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteStackInput"} if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetName sets the Name field's value. func (s *DeleteStackInput) SetName(v string) *DeleteStackInput { s.Name = &v return s } type DeleteStackOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteStackOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteStackOutput) GoString() string { return s.String() } type DeleteUsageReportSubscriptionInput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteUsageReportSubscriptionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteUsageReportSubscriptionInput) GoString() string { return s.String() } type DeleteUsageReportSubscriptionOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteUsageReportSubscriptionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteUsageReportSubscriptionOutput) GoString() string { return s.String() } type DeleteUserInput struct { _ struct{} `type:"structure"` // The authentication type for the user. You must specify USERPOOL. // // AuthenticationType is a required field AuthenticationType *string `type:"string" required:"true" enum:"AuthenticationType"` // The email address of the user. // // Users' email addresses are case-sensitive. // // UserName is a required field UserName *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation func (s DeleteUserInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteUserInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteUserInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteUserInput"} if s.AuthenticationType == nil { invalidParams.Add(request.NewErrParamRequired("AuthenticationType")) } if s.UserName == nil { invalidParams.Add(request.NewErrParamRequired("UserName")) } if s.UserName != nil && len(*s.UserName) < 1 { invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAuthenticationType sets the AuthenticationType field's value. func (s *DeleteUserInput) SetAuthenticationType(v string) *DeleteUserInput { s.AuthenticationType = &v return s } // SetUserName sets the UserName field's value. func (s *DeleteUserInput) SetUserName(v string) *DeleteUserInput { s.UserName = &v return s } type DeleteUserOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteUserOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteUserOutput) GoString() string { return s.String() } type DescribeDirectoryConfigsInput struct { _ struct{} `type:"structure"` // The directory names. DirectoryNames []*string `type:"list"` // The maximum size of each page of results. MaxResults *int64 `type:"integer"` // The pagination token to use to retrieve the next page of results for this // operation. If this value is null, it retrieves the first page. NextToken *string `min:"1" type:"string"` } // String returns the string representation func (s DescribeDirectoryConfigsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeDirectoryConfigsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeDirectoryConfigsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeDirectoryConfigsInput"} if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDirectoryNames sets the DirectoryNames field's value. func (s *DescribeDirectoryConfigsInput) SetDirectoryNames(v []*string) *DescribeDirectoryConfigsInput { s.DirectoryNames = v return s } // SetMaxResults sets the MaxResults field's value. func (s *DescribeDirectoryConfigsInput) SetMaxResults(v int64) *DescribeDirectoryConfigsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeDirectoryConfigsInput) SetNextToken(v string) *DescribeDirectoryConfigsInput { s.NextToken = &v return s } type DescribeDirectoryConfigsOutput struct { _ struct{} `type:"structure"` // Information about the directory configurations. Note that although the response // syntax in this topic includes the account password, this password is not // returned in the actual response. DirectoryConfigs []*DirectoryConfig `type:"list"` // The pagination token to use to retrieve the next page of results for this // operation. If there are no more pages, this value is null. NextToken *string `min:"1" type:"string"` } // String returns the string representation func (s DescribeDirectoryConfigsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeDirectoryConfigsOutput) GoString() string { return s.String() } // SetDirectoryConfigs sets the DirectoryConfigs field's value. func (s *DescribeDirectoryConfigsOutput) SetDirectoryConfigs(v []*DirectoryConfig) *DescribeDirectoryConfigsOutput { s.DirectoryConfigs = v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeDirectoryConfigsOutput) SetNextToken(v string) *DescribeDirectoryConfigsOutput { s.NextToken = &v return s } type DescribeFleetsInput struct { _ struct{} `type:"structure"` // The names of the fleets to describe. Names []*string `type:"list"` // The pagination token to use to retrieve the next page of results for this // operation. If this value is null, it retrieves the first page. NextToken *string `min:"1" type:"string"` } // String returns the string representation func (s DescribeFleetsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeFleetsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeFleetsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeFleetsInput"} if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetNames sets the Names field's value. func (s *DescribeFleetsInput) SetNames(v []*string) *DescribeFleetsInput { s.Names = v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeFleetsInput) SetNextToken(v string) *DescribeFleetsInput { s.NextToken = &v return s } type DescribeFleetsOutput struct { _ struct{} `type:"structure"` // Information about the fleets. Fleets []*Fleet `type:"list"` // The pagination token to use to retrieve the next page of results for this // operation. If there are no more pages, this value is null. NextToken *string `min:"1" type:"string"` } // String returns the string representation func (s DescribeFleetsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeFleetsOutput) GoString() string { return s.String() } // SetFleets sets the Fleets field's value. func (s *DescribeFleetsOutput) SetFleets(v []*Fleet) *DescribeFleetsOutput { s.Fleets = v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeFleetsOutput) SetNextToken(v string) *DescribeFleetsOutput { s.NextToken = &v return s } type DescribeImageBuildersInput struct { _ struct{} `type:"structure"` // The maximum size of each page of results. MaxResults *int64 `type:"integer"` // The names of the image builders to describe. Names []*string `type:"list"` // The pagination token to use to retrieve the next page of results for this // operation. If this value is null, it retrieves the first page. NextToken *string `min:"1" type:"string"` } // String returns the string representation func (s DescribeImageBuildersInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeImageBuildersInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeImageBuildersInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeImageBuildersInput"} if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxResults sets the MaxResults field's value. func (s *DescribeImageBuildersInput) SetMaxResults(v int64) *DescribeImageBuildersInput { s.MaxResults = &v return s } // SetNames sets the Names field's value. func (s *DescribeImageBuildersInput) SetNames(v []*string) *DescribeImageBuildersInput { s.Names = v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeImageBuildersInput) SetNextToken(v string) *DescribeImageBuildersInput { s.NextToken = &v return s } type DescribeImageBuildersOutput struct { _ struct{} `type:"structure"` // Information about the image builders. ImageBuilders []*ImageBuilder `type:"list"` // The pagination token to use to retrieve the next page of results for this // operation. If there are no more pages, this value is null. NextToken *string `min:"1" type:"string"` } // String returns the string representation func (s DescribeImageBuildersOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeImageBuildersOutput) GoString() string { return s.String() } // SetImageBuilders sets the ImageBuilders field's value. func (s *DescribeImageBuildersOutput) SetImageBuilders(v []*ImageBuilder) *DescribeImageBuildersOutput { s.ImageBuilders = v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeImageBuildersOutput) SetNextToken(v string) *DescribeImageBuildersOutput { s.NextToken = &v return s } type DescribeImagePermissionsInput struct { _ struct{} `type:"structure"` // The maximum size of each page of results. MaxResults *int64 `type:"integer"` // The name of the private image for which to describe permissions. The image // must be one that you own. // // Name is a required field Name *string `type:"string" required:"true"` // The pagination token to use to retrieve the next page of results for this // operation. If this value is null, it retrieves the first page. NextToken *string `min:"1" type:"string"` // The 12-digit identifier of one or more AWS accounts with which the image // is shared. SharedAwsAccountIds []*string `min:"1" type:"list"` } // String returns the string representation func (s DescribeImagePermissionsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeImagePermissionsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeImagePermissionsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeImagePermissionsInput"} if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if s.SharedAwsAccountIds != nil && len(s.SharedAwsAccountIds) < 1 { invalidParams.Add(request.NewErrParamMinLen("SharedAwsAccountIds", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxResults sets the MaxResults field's value. func (s *DescribeImagePermissionsInput) SetMaxResults(v int64) *DescribeImagePermissionsInput { s.MaxResults = &v return s } // SetName sets the Name field's value. func (s *DescribeImagePermissionsInput) SetName(v string) *DescribeImagePermissionsInput { s.Name = &v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeImagePermissionsInput) SetNextToken(v string) *DescribeImagePermissionsInput { s.NextToken = &v return s } // SetSharedAwsAccountIds sets the SharedAwsAccountIds field's value. func (s *DescribeImagePermissionsInput) SetSharedAwsAccountIds(v []*string) *DescribeImagePermissionsInput { s.SharedAwsAccountIds = v return s } type DescribeImagePermissionsOutput struct { _ struct{} `type:"structure"` // The name of the private image. Name *string `type:"string"` // The pagination token to use to retrieve the next page of results for this // operation. If there are no more pages, this value is null. NextToken *string `min:"1" type:"string"` // The permissions for a private image that you own. SharedImagePermissionsList []*SharedImagePermissions `type:"list"` } // String returns the string representation func (s DescribeImagePermissionsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeImagePermissionsOutput) GoString() string { return s.String() } // SetName sets the Name field's value. func (s *DescribeImagePermissionsOutput) SetName(v string) *DescribeImagePermissionsOutput { s.Name = &v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeImagePermissionsOutput) SetNextToken(v string) *DescribeImagePermissionsOutput { s.NextToken = &v return s } // SetSharedImagePermissionsList sets the SharedImagePermissionsList field's value. func (s *DescribeImagePermissionsOutput) SetSharedImagePermissionsList(v []*SharedImagePermissions) *DescribeImagePermissionsOutput { s.SharedImagePermissionsList = v return s } type DescribeImagesInput struct { _ struct{} `type:"structure"` // The ARNs of the public, private, and shared images to describe. Arns []*string `type:"list"` // The maximum size of each page of results. MaxResults *int64 `type:"integer"` // The names of the public or private images to describe. Names []*string `type:"list"` // The pagination token to use to retrieve the next page of results for this // operation. If this value is null, it retrieves the first page. NextToken *string `min:"1" type:"string"` // The type of image (public, private, or shared) to describe. Type *string `type:"string" enum:"VisibilityType"` } // String returns the string representation func (s DescribeImagesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeImagesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeImagesInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeImagesInput"} if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetArns sets the Arns field's value. func (s *DescribeImagesInput) SetArns(v []*string) *DescribeImagesInput { s.Arns = v return s } // SetMaxResults sets the MaxResults field's value. func (s *DescribeImagesInput) SetMaxResults(v int64) *DescribeImagesInput { s.MaxResults = &v return s } // SetNames sets the Names field's value. func (s *DescribeImagesInput) SetNames(v []*string) *DescribeImagesInput { s.Names = v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeImagesInput) SetNextToken(v string) *DescribeImagesInput { s.NextToken = &v return s } // SetType sets the Type field's value. func (s *DescribeImagesInput) SetType(v string) *DescribeImagesInput { s.Type = &v return s } type DescribeImagesOutput struct { _ struct{} `type:"structure"` // Information about the images. Images []*Image `type:"list"` // The pagination token to use to retrieve the next page of results for this // operation. If there are no more pages, this value is null. NextToken *string `min:"1" type:"string"` } // String returns the string representation func (s DescribeImagesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeImagesOutput) GoString() string { return s.String() } // SetImages sets the Images field's value. func (s *DescribeImagesOutput) SetImages(v []*Image) *DescribeImagesOutput { s.Images = v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeImagesOutput) SetNextToken(v string) *DescribeImagesOutput { s.NextToken = &v return s } type DescribeSessionsInput struct { _ struct{} `type:"structure"` // The authentication method. Specify API for a user authenticated using a streaming // URL or SAML for a SAML federated user. The default is to authenticate users // using a streaming URL. AuthenticationType *string `type:"string" enum:"AuthenticationType"` // The name of the fleet. This value is case-sensitive. // // FleetName is a required field FleetName *string `min:"1" type:"string" required:"true"` // The size of each page of results. The default value is 20 and the maximum // value is 50. Limit *int64 `type:"integer"` // The pagination token to use to retrieve the next page of results for this // operation. If this value is null, it retrieves the first page. NextToken *string `min:"1" type:"string"` // The name of the stack. This value is case-sensitive. // // StackName is a required field StackName *string `min:"1" type:"string" required:"true"` // The user identifier (ID). If you specify a user ID, you must also specify // the authentication type. UserId *string `min:"2" type:"string"` } // String returns the string representation func (s DescribeSessionsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeSessionsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeSessionsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeSessionsInput"} if s.FleetName == nil { invalidParams.Add(request.NewErrParamRequired("FleetName")) } if s.FleetName != nil && len(*s.FleetName) < 1 { invalidParams.Add(request.NewErrParamMinLen("FleetName", 1)) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if s.StackName == nil { invalidParams.Add(request.NewErrParamRequired("StackName")) } if s.StackName != nil && len(*s.StackName) < 1 { invalidParams.Add(request.NewErrParamMinLen("StackName", 1)) } if s.UserId != nil && len(*s.UserId) < 2 { invalidParams.Add(request.NewErrParamMinLen("UserId", 2)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAuthenticationType sets the AuthenticationType field's value. func (s *DescribeSessionsInput) SetAuthenticationType(v string) *DescribeSessionsInput { s.AuthenticationType = &v return s } // SetFleetName sets the FleetName field's value. func (s *DescribeSessionsInput) SetFleetName(v string) *DescribeSessionsInput { s.FleetName = &v return s } // SetLimit sets the Limit field's value. func (s *DescribeSessionsInput) SetLimit(v int64) *DescribeSessionsInput { s.Limit = &v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeSessionsInput) SetNextToken(v string) *DescribeSessionsInput { s.NextToken = &v return s } // SetStackName sets the StackName field's value. func (s *DescribeSessionsInput) SetStackName(v string) *DescribeSessionsInput { s.StackName = &v return s } // SetUserId sets the UserId field's value. func (s *DescribeSessionsInput) SetUserId(v string) *DescribeSessionsInput { s.UserId = &v return s } type DescribeSessionsOutput struct { _ struct{} `type:"structure"` // The pagination token to use to retrieve the next page of results for this // operation. If there are no more pages, this value is null. NextToken *string `min:"1" type:"string"` // Information about the streaming sessions. Sessions []*Session `type:"list"` } // String returns the string representation func (s DescribeSessionsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeSessionsOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *DescribeSessionsOutput) SetNextToken(v string) *DescribeSessionsOutput { s.NextToken = &v return s } // SetSessions sets the Sessions field's value. func (s *DescribeSessionsOutput) SetSessions(v []*Session) *DescribeSessionsOutput { s.Sessions = v return s } type DescribeStacksInput struct { _ struct{} `type:"structure"` // The names of the stacks to describe. Names []*string `type:"list"` // The pagination token to use to retrieve the next page of results for this // operation. If this value is null, it retrieves the first page. NextToken *string `min:"1" type:"string"` } // String returns the string representation func (s DescribeStacksInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeStacksInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeStacksInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeStacksInput"} if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetNames sets the Names field's value. func (s *DescribeStacksInput) SetNames(v []*string) *DescribeStacksInput { s.Names = v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeStacksInput) SetNextToken(v string) *DescribeStacksInput { s.NextToken = &v return s } type DescribeStacksOutput struct { _ struct{} `type:"structure"` // The pagination token to use to retrieve the next page of results for this // operation. If there are no more pages, this value is null. NextToken *string `min:"1" type:"string"` // Information about the stacks. Stacks []*Stack `type:"list"` } // String returns the string representation func (s DescribeStacksOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeStacksOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *DescribeStacksOutput) SetNextToken(v string) *DescribeStacksOutput { s.NextToken = &v return s } // SetStacks sets the Stacks field's value. func (s *DescribeStacksOutput) SetStacks(v []*Stack) *DescribeStacksOutput { s.Stacks = v return s } type DescribeUsageReportSubscriptionsInput struct { _ struct{} `type:"structure"` // The maximum size of each page of results. MaxResults *int64 `type:"integer"` // The pagination token to use to retrieve the next page of results for this // operation. If this value is null, it retrieves the first page. NextToken *string `min:"1" type:"string"` } // String returns the string representation func (s DescribeUsageReportSubscriptionsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeUsageReportSubscriptionsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeUsageReportSubscriptionsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeUsageReportSubscriptionsInput"} if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxResults sets the MaxResults field's value. func (s *DescribeUsageReportSubscriptionsInput) SetMaxResults(v int64) *DescribeUsageReportSubscriptionsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeUsageReportSubscriptionsInput) SetNextToken(v string) *DescribeUsageReportSubscriptionsInput { s.NextToken = &v return s } type DescribeUsageReportSubscriptionsOutput struct { _ struct{} `type:"structure"` // The pagination token to use to retrieve the next page of results for this // operation. If there are no more pages, this value is null. NextToken *string `min:"1" type:"string"` // Information about the usage report subscription. UsageReportSubscriptions []*UsageReportSubscription `type:"list"` } // String returns the string representation func (s DescribeUsageReportSubscriptionsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeUsageReportSubscriptionsOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *DescribeUsageReportSubscriptionsOutput) SetNextToken(v string) *DescribeUsageReportSubscriptionsOutput { s.NextToken = &v return s } // SetUsageReportSubscriptions sets the UsageReportSubscriptions field's value. func (s *DescribeUsageReportSubscriptionsOutput) SetUsageReportSubscriptions(v []*UsageReportSubscription) *DescribeUsageReportSubscriptionsOutput { s.UsageReportSubscriptions = v return s } type DescribeUserStackAssociationsInput struct { _ struct{} `type:"structure"` // The authentication type for the user who is associated with the stack. You // must specify USERPOOL. AuthenticationType *string `type:"string" enum:"AuthenticationType"` // The maximum size of each page of results. MaxResults *int64 `type:"integer"` // The pagination token to use to retrieve the next page of results for this // operation. If this value is null, it retrieves the first page. NextToken *string `min:"1" type:"string"` // The name of the stack that is associated with the user. StackName *string `min:"1" type:"string"` // The email address of the user who is associated with the stack. // // Users' email addresses are case-sensitive. UserName *string `min:"1" type:"string" sensitive:"true"` } // String returns the string representation func (s DescribeUserStackAssociationsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeUserStackAssociationsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeUserStackAssociationsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeUserStackAssociationsInput"} if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if s.StackName != nil && len(*s.StackName) < 1 { invalidParams.Add(request.NewErrParamMinLen("StackName", 1)) } if s.UserName != nil && len(*s.UserName) < 1 { invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAuthenticationType sets the AuthenticationType field's value. func (s *DescribeUserStackAssociationsInput) SetAuthenticationType(v string) *DescribeUserStackAssociationsInput { s.AuthenticationType = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *DescribeUserStackAssociationsInput) SetMaxResults(v int64) *DescribeUserStackAssociationsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeUserStackAssociationsInput) SetNextToken(v string) *DescribeUserStackAssociationsInput { s.NextToken = &v return s } // SetStackName sets the StackName field's value. func (s *DescribeUserStackAssociationsInput) SetStackName(v string) *DescribeUserStackAssociationsInput { s.StackName = &v return s } // SetUserName sets the UserName field's value. func (s *DescribeUserStackAssociationsInput) SetUserName(v string) *DescribeUserStackAssociationsInput { s.UserName = &v return s } type DescribeUserStackAssociationsOutput struct { _ struct{} `type:"structure"` // The pagination token to use to retrieve the next page of results for this // operation. If there are no more pages, this value is null. NextToken *string `min:"1" type:"string"` // The UserStackAssociation objects. UserStackAssociations []*UserStackAssociation `min:"1" type:"list"` } // String returns the string representation func (s DescribeUserStackAssociationsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeUserStackAssociationsOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *DescribeUserStackAssociationsOutput) SetNextToken(v string) *DescribeUserStackAssociationsOutput { s.NextToken = &v return s } // SetUserStackAssociations sets the UserStackAssociations field's value. func (s *DescribeUserStackAssociationsOutput) SetUserStackAssociations(v []*UserStackAssociation) *DescribeUserStackAssociationsOutput { s.UserStackAssociations = v return s } type DescribeUsersInput struct { _ struct{} `type:"structure"` // The authentication type for the users in the user pool to describe. You must // specify USERPOOL. // // AuthenticationType is a required field AuthenticationType *string `type:"string" required:"true" enum:"AuthenticationType"` // The maximum size of each page of results. MaxResults *int64 `type:"integer"` // The pagination token to use to retrieve the next page of results for this // operation. If this value is null, it retrieves the first page. NextToken *string `min:"1" type:"string"` } // String returns the string representation func (s DescribeUsersInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeUsersInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeUsersInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeUsersInput"} if s.AuthenticationType == nil { invalidParams.Add(request.NewErrParamRequired("AuthenticationType")) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAuthenticationType sets the AuthenticationType field's value. func (s *DescribeUsersInput) SetAuthenticationType(v string) *DescribeUsersInput { s.AuthenticationType = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *DescribeUsersInput) SetMaxResults(v int64) *DescribeUsersInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeUsersInput) SetNextToken(v string) *DescribeUsersInput { s.NextToken = &v return s } type DescribeUsersOutput struct { _ struct{} `type:"structure"` // The pagination token to use to retrieve the next page of results for this // operation. If there are no more pages, this value is null. NextToken *string `min:"1" type:"string"` // Information about users in the user pool. Users []*User `type:"list"` } // String returns the string representation func (s DescribeUsersOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeUsersOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *DescribeUsersOutput) SetNextToken(v string) *DescribeUsersOutput { s.NextToken = &v return s } // SetUsers sets the Users field's value. func (s *DescribeUsersOutput) SetUsers(v []*User) *DescribeUsersOutput { s.Users = v return s } // Describes the configuration information required to join fleets and image // builders to Microsoft Active Directory domains. type DirectoryConfig struct { _ struct{} `type:"structure"` // The time the directory configuration was created. CreatedTime *time.Time `type:"timestamp"` // The fully qualified name of the directory (for example, corp.example.com). // // DirectoryName is a required field DirectoryName *string `type:"string" required:"true"` // The distinguished names of the organizational units for computer accounts. OrganizationalUnitDistinguishedNames []*string `type:"list"` // The credentials for the service account used by the fleet or image builder // to connect to the directory. ServiceAccountCredentials *ServiceAccountCredentials `type:"structure"` } // String returns the string representation func (s DirectoryConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DirectoryConfig) GoString() string { return s.String() } // SetCreatedTime sets the CreatedTime field's value. func (s *DirectoryConfig) SetCreatedTime(v time.Time) *DirectoryConfig { s.CreatedTime = &v return s } // SetDirectoryName sets the DirectoryName field's value. func (s *DirectoryConfig) SetDirectoryName(v string) *DirectoryConfig { s.DirectoryName = &v return s } // SetOrganizationalUnitDistinguishedNames sets the OrganizationalUnitDistinguishedNames field's value. func (s *DirectoryConfig) SetOrganizationalUnitDistinguishedNames(v []*string) *DirectoryConfig { s.OrganizationalUnitDistinguishedNames = v return s } // SetServiceAccountCredentials sets the ServiceAccountCredentials field's value. func (s *DirectoryConfig) SetServiceAccountCredentials(v *ServiceAccountCredentials) *DirectoryConfig { s.ServiceAccountCredentials = v return s } type DisableUserInput struct { _ struct{} `type:"structure"` // The authentication type for the user. You must specify USERPOOL. // // AuthenticationType is a required field AuthenticationType *string `type:"string" required:"true" enum:"AuthenticationType"` // The email address of the user. // // Users' email addresses are case-sensitive. // // UserName is a required field UserName *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation func (s DisableUserInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DisableUserInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DisableUserInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DisableUserInput"} if s.AuthenticationType == nil { invalidParams.Add(request.NewErrParamRequired("AuthenticationType")) } if s.UserName == nil { invalidParams.Add(request.NewErrParamRequired("UserName")) } if s.UserName != nil && len(*s.UserName) < 1 { invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAuthenticationType sets the AuthenticationType field's value. func (s *DisableUserInput) SetAuthenticationType(v string) *DisableUserInput { s.AuthenticationType = &v return s } // SetUserName sets the UserName field's value. func (s *DisableUserInput) SetUserName(v string) *DisableUserInput { s.UserName = &v return s } type DisableUserOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DisableUserOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DisableUserOutput) GoString() string { return s.String() } type DisassociateFleetInput struct { _ struct{} `type:"structure"` // The name of the fleet. // // FleetName is a required field FleetName *string `min:"1" type:"string" required:"true"` // The name of the stack. // // StackName is a required field StackName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DisassociateFleetInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DisassociateFleetInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DisassociateFleetInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DisassociateFleetInput"} if s.FleetName == nil { invalidParams.Add(request.NewErrParamRequired("FleetName")) } if s.FleetName != nil && len(*s.FleetName) < 1 { invalidParams.Add(request.NewErrParamMinLen("FleetName", 1)) } if s.StackName == nil { invalidParams.Add(request.NewErrParamRequired("StackName")) } if s.StackName != nil && len(*s.StackName) < 1 { invalidParams.Add(request.NewErrParamMinLen("StackName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetFleetName sets the FleetName field's value. func (s *DisassociateFleetInput) SetFleetName(v string) *DisassociateFleetInput { s.FleetName = &v return s } // SetStackName sets the StackName field's value. func (s *DisassociateFleetInput) SetStackName(v string) *DisassociateFleetInput { s.StackName = &v return s } type DisassociateFleetOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DisassociateFleetOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DisassociateFleetOutput) GoString() string { return s.String() } // Describes the configuration information required to join fleets and image // builders to Microsoft Active Directory domains. type DomainJoinInfo struct { _ struct{} `type:"structure"` // The fully qualified name of the directory (for example, corp.example.com). DirectoryName *string `type:"string"` // The distinguished name of the organizational unit for computer accounts. OrganizationalUnitDistinguishedName *string `type:"string"` } // String returns the string representation func (s DomainJoinInfo) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DomainJoinInfo) GoString() string { return s.String() } // SetDirectoryName sets the DirectoryName field's value. func (s *DomainJoinInfo) SetDirectoryName(v string) *DomainJoinInfo { s.DirectoryName = &v return s } // SetOrganizationalUnitDistinguishedName sets the OrganizationalUnitDistinguishedName field's value. func (s *DomainJoinInfo) SetOrganizationalUnitDistinguishedName(v string) *DomainJoinInfo { s.OrganizationalUnitDistinguishedName = &v return s } type EnableUserInput struct { _ struct{} `type:"structure"` // The authentication type for the user. You must specify USERPOOL. // // AuthenticationType is a required field AuthenticationType *string `type:"string" required:"true" enum:"AuthenticationType"` // The email address of the user. // // Users' email addresses are case-sensitive. During login, if they specify // an email address that doesn't use the same capitalization as the email address // specified when their user pool account was created, a "user does not exist" // error message displays. // // UserName is a required field UserName *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation func (s EnableUserInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s EnableUserInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *EnableUserInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "EnableUserInput"} if s.AuthenticationType == nil { invalidParams.Add(request.NewErrParamRequired("AuthenticationType")) } if s.UserName == nil { invalidParams.Add(request.NewErrParamRequired("UserName")) } if s.UserName != nil && len(*s.UserName) < 1 { invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAuthenticationType sets the AuthenticationType field's value. func (s *EnableUserInput) SetAuthenticationType(v string) *EnableUserInput { s.AuthenticationType = &v return s } // SetUserName sets the UserName field's value. func (s *EnableUserInput) SetUserName(v string) *EnableUserInput { s.UserName = &v return s } type EnableUserOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s EnableUserOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s EnableUserOutput) GoString() string { return s.String() } type ExpireSessionInput struct { _ struct{} `type:"structure"` // The identifier of the streaming session. // // SessionId is a required field SessionId *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s ExpireSessionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ExpireSessionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ExpireSessionInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ExpireSessionInput"} if s.SessionId == nil { invalidParams.Add(request.NewErrParamRequired("SessionId")) } if s.SessionId != nil && len(*s.SessionId) < 1 { invalidParams.Add(request.NewErrParamMinLen("SessionId", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetSessionId sets the SessionId field's value. func (s *ExpireSessionInput) SetSessionId(v string) *ExpireSessionInput { s.SessionId = &v return s } type ExpireSessionOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s ExpireSessionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ExpireSessionOutput) GoString() string { return s.String() } // Describes a fleet. type Fleet struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) for the fleet. // // Arn is a required field Arn *string `type:"string" required:"true"` // The capacity status for the fleet. // // ComputeCapacityStatus is a required field ComputeCapacityStatus *ComputeCapacityStatus `type:"structure" required:"true"` // The time the fleet was created. CreatedTime *time.Time `type:"timestamp"` // The description to display. Description *string `min:"1" type:"string"` // The amount of time that a streaming session remains active after users disconnect. // If they try to reconnect to the streaming session after a disconnection or // network interruption within this time interval, they are connected to their // previous session. Otherwise, they are connected to a new session with a new // streaming instance. // // Specify a value between 60 and 360000. DisconnectTimeoutInSeconds *int64 `type:"integer"` // The fleet name to display. DisplayName *string `min:"1" type:"string"` // The name of the directory and organizational unit (OU) to use to join the // fleet to a Microsoft Active Directory domain. DomainJoinInfo *DomainJoinInfo `type:"structure"` // Indicates whether default internet access is enabled for the fleet. EnableDefaultInternetAccess *bool `type:"boolean"` // The fleet errors. FleetErrors []*FleetError `type:"list"` // The fleet type. // // ALWAYS_ON // // Provides users with instant-on access to their apps. You are charged for // all running instances in your fleet, even if no users are streaming apps. // // ON_DEMAND // // Provide users with access to applications after they connect, which takes // one to two minutes. You are charged for instance streaming when users are // connected and a small hourly fee for instances that are not streaming apps. FleetType *string `type:"string" enum:"FleetType"` // The ARN of the IAM role that is applied to the fleet. To assume a role, the // fleet instance calls the AWS Security Token Service (STS) AssumeRole API // operation and passes the ARN of the role to use. The operation creates a // new session with temporary credentials. AppStream 2.0 retrieves the temporary // credentials and creates the appstream_machine_role credential profile on // the instance. // // For more information, see Using an IAM Role to Grant Permissions to Applications // and Scripts Running on AppStream 2.0 Streaming Instances (https://docs.aws.amazon.com/appstream2/latest/developerguide/using-iam-roles-to-grant-permissions-to-applications-scripts-streaming-instances.html) // in the Amazon AppStream 2.0 Administration Guide. IamRoleArn *string `type:"string"` // The amount of time that users can be idle (inactive) before they are disconnected // from their streaming session and the DisconnectTimeoutInSeconds time interval // begins. Users are notified before they are disconnected due to inactivity. // If users try to reconnect to the streaming session before the time interval // specified in DisconnectTimeoutInSeconds elapses, they are connected to their // previous session. Users are considered idle when they stop providing keyboard // or mouse input during their streaming session. File uploads and downloads, // audio in, audio out, and pixels changing do not qualify as user activity. // If users continue to be idle after the time interval in IdleDisconnectTimeoutInSeconds // elapses, they are disconnected. // // To prevent users from being disconnected due to inactivity, specify a value // of 0. Otherwise, specify a value between 60 and 3600. The default value is // 0. // // If you enable this feature, we recommend that you specify a value that corresponds // exactly to a whole number of minutes (for example, 60, 120, and 180). If // you don't do this, the value is rounded to the nearest minute. For example, // if you specify a value of 70, users are disconnected after 1 minute of inactivity. // If you specify a value that is at the midpoint between two different minutes, // the value is rounded up. For example, if you specify a value of 90, users // are disconnected after 2 minutes of inactivity. IdleDisconnectTimeoutInSeconds *int64 `type:"integer"` // The ARN for the public, private, or shared image. ImageArn *string `type:"string"` // The name of the image used to create the fleet. ImageName *string `min:"1" type:"string"` // The instance type to use when launching fleet instances. The following instance // types are available: // // * stream.standard.small // // * stream.standard.medium // // * stream.standard.large // // * stream.compute.large // // * stream.compute.xlarge // // * stream.compute.2xlarge // // * stream.compute.4xlarge // // * stream.compute.8xlarge // // * stream.memory.large // // * stream.memory.xlarge // // * stream.memory.2xlarge // // * stream.memory.4xlarge // // * stream.memory.8xlarge // // * stream.memory.z1d.large // // * stream.memory.z1d.xlarge // // * stream.memory.z1d.2xlarge // // * stream.memory.z1d.3xlarge // // * stream.memory.z1d.6xlarge // // * stream.memory.z1d.12xlarge // // * stream.graphics-design.large // // * stream.graphics-design.xlarge // // * stream.graphics-design.2xlarge // // * stream.graphics-design.4xlarge // // * stream.graphics-desktop.2xlarge // // * stream.graphics.g4dn.xlarge // // * stream.graphics.g4dn.2xlarge // // * stream.graphics.g4dn.4xlarge // // * stream.graphics.g4dn.8xlarge // // * stream.graphics.g4dn.12xlarge // // * stream.graphics.g4dn.16xlarge // // * stream.graphics-pro.4xlarge // // * stream.graphics-pro.8xlarge // // * stream.graphics-pro.16xlarge // // InstanceType is a required field InstanceType *string `min:"1" type:"string" required:"true"` // The maximum amount of time that a streaming session can remain active, in // seconds. If users are still connected to a streaming instance five minutes // before this limit is reached, they are prompted to save any open documents // before being disconnected. After this time elapses, the instance is terminated // and replaced by a new instance. // // Specify a value between 600 and 360000. MaxUserDurationInSeconds *int64 `type:"integer"` // The name of the fleet. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // The current state for the fleet. // // State is a required field State *string `type:"string" required:"true" enum:"FleetState"` // The AppStream 2.0 view that is displayed to your users when they stream from // the fleet. When APP is specified, only the windows of applications opened // by users display. When DESKTOP is specified, the standard desktop that is // provided by the operating system displays. // // The default value is APP. StreamView *string `type:"string" enum:"StreamView"` // The VPC configuration for the fleet. VpcConfig *VpcConfig `type:"structure"` } // String returns the string representation func (s Fleet) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Fleet) GoString() string { return s.String() } // SetArn sets the Arn field's value. func (s *Fleet) SetArn(v string) *Fleet { s.Arn = &v return s } // SetComputeCapacityStatus sets the ComputeCapacityStatus field's value. func (s *Fleet) SetComputeCapacityStatus(v *ComputeCapacityStatus) *Fleet { s.ComputeCapacityStatus = v return s } // SetCreatedTime sets the CreatedTime field's value. func (s *Fleet) SetCreatedTime(v time.Time) *Fleet { s.CreatedTime = &v return s } // SetDescription sets the Description field's value. func (s *Fleet) SetDescription(v string) *Fleet { s.Description = &v return s } // SetDisconnectTimeoutInSeconds sets the DisconnectTimeoutInSeconds field's value. func (s *Fleet) SetDisconnectTimeoutInSeconds(v int64) *Fleet { s.DisconnectTimeoutInSeconds = &v return s } // SetDisplayName sets the DisplayName field's value. func (s *Fleet) SetDisplayName(v string) *Fleet { s.DisplayName = &v return s } // SetDomainJoinInfo sets the DomainJoinInfo field's value. func (s *Fleet) SetDomainJoinInfo(v *DomainJoinInfo) *Fleet { s.DomainJoinInfo = v return s } // SetEnableDefaultInternetAccess sets the EnableDefaultInternetAccess field's value. func (s *Fleet) SetEnableDefaultInternetAccess(v bool) *Fleet { s.EnableDefaultInternetAccess = &v return s } // SetFleetErrors sets the FleetErrors field's value. func (s *Fleet) SetFleetErrors(v []*FleetError) *Fleet { s.FleetErrors = v return s } // SetFleetType sets the FleetType field's value. func (s *Fleet) SetFleetType(v string) *Fleet { s.FleetType = &v return s } // SetIamRoleArn sets the IamRoleArn field's value. func (s *Fleet) SetIamRoleArn(v string) *Fleet { s.IamRoleArn = &v return s } // SetIdleDisconnectTimeoutInSeconds sets the IdleDisconnectTimeoutInSeconds field's value. func (s *Fleet) SetIdleDisconnectTimeoutInSeconds(v int64) *Fleet { s.IdleDisconnectTimeoutInSeconds = &v return s } // SetImageArn sets the ImageArn field's value. func (s *Fleet) SetImageArn(v string) *Fleet { s.ImageArn = &v return s } // SetImageName sets the ImageName field's value. func (s *Fleet) SetImageName(v string) *Fleet { s.ImageName = &v return s } // SetInstanceType sets the InstanceType field's value. func (s *Fleet) SetInstanceType(v string) *Fleet { s.InstanceType = &v return s } // SetMaxUserDurationInSeconds sets the MaxUserDurationInSeconds field's value. func (s *Fleet) SetMaxUserDurationInSeconds(v int64) *Fleet { s.MaxUserDurationInSeconds = &v return s } // SetName sets the Name field's value. func (s *Fleet) SetName(v string) *Fleet { s.Name = &v return s } // SetState sets the State field's value. func (s *Fleet) SetState(v string) *Fleet { s.State = &v return s } // SetStreamView sets the StreamView field's value. func (s *Fleet) SetStreamView(v string) *Fleet { s.StreamView = &v return s } // SetVpcConfig sets the VpcConfig field's value. func (s *Fleet) SetVpcConfig(v *VpcConfig) *Fleet { s.VpcConfig = v return s } // Describes a fleet error. type FleetError struct { _ struct{} `type:"structure"` // The error code. ErrorCode *string `type:"string" enum:"FleetErrorCode"` // The error message. ErrorMessage *string `min:"1" type:"string"` } // String returns the string representation func (s FleetError) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s FleetError) GoString() string { return s.String() } // SetErrorCode sets the ErrorCode field's value. func (s *FleetError) SetErrorCode(v string) *FleetError { s.ErrorCode = &v return s } // SetErrorMessage sets the ErrorMessage field's value. func (s *FleetError) SetErrorMessage(v string) *FleetError { s.ErrorMessage = &v return s } // Describes an image. type Image struct { _ struct{} `type:"structure"` // The applications associated with the image. Applications []*Application `type:"list"` // The version of the AppStream 2.0 agent to use for instances that are launched // from this image. AppstreamAgentVersion *string `min:"1" type:"string"` // The ARN of the image. Arn *string `type:"string"` // The ARN of the image from which this image was created. BaseImageArn *string `type:"string"` // The time the image was created. CreatedTime *time.Time `type:"timestamp"` // The description to display. Description *string `min:"1" type:"string"` // The image name to display. DisplayName *string `min:"1" type:"string"` // The name of the image builder that was used to create the private image. // If the image is shared, this value is null. ImageBuilderName *string `min:"1" type:"string"` // Indicates whether an image builder can be launched from this image. ImageBuilderSupported *bool `type:"boolean"` // Describes the errors that are returned when a new image can't be created. ImageErrors []*ResourceError `type:"list"` // The permissions to provide to the destination AWS account for the specified // image. ImagePermissions *ImagePermissions `type:"structure"` // The name of the image. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // The operating system platform of the image. Platform *string `type:"string" enum:"PlatformType"` // The release date of the public base image. For private images, this date // is the release date of the base image from which the image was created. PublicBaseImageReleasedDate *time.Time `type:"timestamp"` // The image starts in the PENDING state. If image creation succeeds, the state // is AVAILABLE. If image creation fails, the state is FAILED. State *string `type:"string" enum:"ImageState"` // The reason why the last state change occurred. StateChangeReason *ImageStateChangeReason `type:"structure"` // Indicates whether the image is public or private. Visibility *string `type:"string" enum:"VisibilityType"` } // String returns the string representation func (s Image) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Image) GoString() string { return s.String() } // SetApplications sets the Applications field's value. func (s *Image) SetApplications(v []*Application) *Image { s.Applications = v return s } // SetAppstreamAgentVersion sets the AppstreamAgentVersion field's value. func (s *Image) SetAppstreamAgentVersion(v string) *Image { s.AppstreamAgentVersion = &v return s } // SetArn sets the Arn field's value. func (s *Image) SetArn(v string) *Image { s.Arn = &v return s } // SetBaseImageArn sets the BaseImageArn field's value. func (s *Image) SetBaseImageArn(v string) *Image { s.BaseImageArn = &v return s } // SetCreatedTime sets the CreatedTime field's value. func (s *Image) SetCreatedTime(v time.Time) *Image { s.CreatedTime = &v return s } // SetDescription sets the Description field's value. func (s *Image) SetDescription(v string) *Image { s.Description = &v return s } // SetDisplayName sets the DisplayName field's value. func (s *Image) SetDisplayName(v string) *Image { s.DisplayName = &v return s } // SetImageBuilderName sets the ImageBuilderName field's value. func (s *Image) SetImageBuilderName(v string) *Image { s.ImageBuilderName = &v return s } // SetImageBuilderSupported sets the ImageBuilderSupported field's value. func (s *Image) SetImageBuilderSupported(v bool) *Image { s.ImageBuilderSupported = &v return s } // SetImageErrors sets the ImageErrors field's value. func (s *Image) SetImageErrors(v []*ResourceError) *Image { s.ImageErrors = v return s } // SetImagePermissions sets the ImagePermissions field's value. func (s *Image) SetImagePermissions(v *ImagePermissions) *Image { s.ImagePermissions = v return s } // SetName sets the Name field's value. func (s *Image) SetName(v string) *Image { s.Name = &v return s } // SetPlatform sets the Platform field's value. func (s *Image) SetPlatform(v string) *Image { s.Platform = &v return s } // SetPublicBaseImageReleasedDate sets the PublicBaseImageReleasedDate field's value. func (s *Image) SetPublicBaseImageReleasedDate(v time.Time) *Image { s.PublicBaseImageReleasedDate = &v return s } // SetState sets the State field's value. func (s *Image) SetState(v string) *Image { s.State = &v return s } // SetStateChangeReason sets the StateChangeReason field's value. func (s *Image) SetStateChangeReason(v *ImageStateChangeReason) *Image { s.StateChangeReason = v return s } // SetVisibility sets the Visibility field's value. func (s *Image) SetVisibility(v string) *Image { s.Visibility = &v return s } // Describes a virtual machine that is used to create an image. type ImageBuilder struct { _ struct{} `type:"structure"` // The list of virtual private cloud (VPC) interface endpoint objects. Administrators // can connect to the image builder only through the specified endpoints. AccessEndpoints []*AccessEndpoint `min:"1" type:"list"` // The version of the AppStream 2.0 agent that is currently being used by the // image builder. AppstreamAgentVersion *string `min:"1" type:"string"` // The ARN for the image builder. Arn *string `type:"string"` // The time stamp when the image builder was created. CreatedTime *time.Time `type:"timestamp"` // The description to display. Description *string `min:"1" type:"string"` // The image builder name to display. DisplayName *string `min:"1" type:"string"` // The name of the directory and organizational unit (OU) to use to join the // image builder to a Microsoft Active Directory domain. DomainJoinInfo *DomainJoinInfo `type:"structure"` // Enables or disables default internet access for the image builder. EnableDefaultInternetAccess *bool `type:"boolean"` // The ARN of the IAM role that is applied to the image builder. To assume a // role, the image builder calls the AWS Security Token Service (STS) AssumeRole // API operation and passes the ARN of the role to use. The operation creates // a new session with temporary credentials. AppStream 2.0 retrieves the temporary // credentials and creates the appstream_machine_role credential profile on // the instance. // // For more information, see Using an IAM Role to Grant Permissions to Applications // and Scripts Running on AppStream 2.0 Streaming Instances (https://docs.aws.amazon.com/appstream2/latest/developerguide/using-iam-roles-to-grant-permissions-to-applications-scripts-streaming-instances.html) // in the Amazon AppStream 2.0 Administration Guide. IamRoleArn *string `type:"string"` // The ARN of the image from which this builder was created. ImageArn *string `type:"string"` // The image builder errors. ImageBuilderErrors []*ResourceError `type:"list"` // The instance type for the image builder. The following instance types are // available: // // * stream.standard.small // // * stream.standard.medium // // * stream.standard.large // // * stream.compute.large // // * stream.compute.xlarge // // * stream.compute.2xlarge // // * stream.compute.4xlarge // // * stream.compute.8xlarge // // * stream.memory.large // // * stream.memory.xlarge // // * stream.memory.2xlarge // // * stream.memory.4xlarge // // * stream.memory.8xlarge // // * stream.memory.z1d.large // // * stream.memory.z1d.xlarge // // * stream.memory.z1d.2xlarge // // * stream.memory.z1d.3xlarge // // * stream.memory.z1d.6xlarge // // * stream.memory.z1d.12xlarge // // * stream.graphics-design.large // // * stream.graphics-design.xlarge // // * stream.graphics-design.2xlarge // // * stream.graphics-design.4xlarge // // * stream.graphics-desktop.2xlarge // // * stream.graphics.g4dn.xlarge // // * stream.graphics.g4dn.2xlarge // // * stream.graphics.g4dn.4xlarge // // * stream.graphics.g4dn.8xlarge // // * stream.graphics.g4dn.12xlarge // // * stream.graphics.g4dn.16xlarge // // * stream.graphics-pro.4xlarge // // * stream.graphics-pro.8xlarge // // * stream.graphics-pro.16xlarge InstanceType *string `min:"1" type:"string"` // The name of the image builder. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // Describes the network details of the fleet or image builder instance. NetworkAccessConfiguration *NetworkAccessConfiguration `type:"structure"` // The operating system platform of the image builder. Platform *string `type:"string" enum:"PlatformType"` // The state of the image builder. State *string `type:"string" enum:"ImageBuilderState"` // The reason why the last state change occurred. StateChangeReason *ImageBuilderStateChangeReason `type:"structure"` // The VPC configuration of the image builder. VpcConfig *VpcConfig `type:"structure"` } // String returns the string representation func (s ImageBuilder) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ImageBuilder) GoString() string { return s.String() } // SetAccessEndpoints sets the AccessEndpoints field's value. func (s *ImageBuilder) SetAccessEndpoints(v []*AccessEndpoint) *ImageBuilder { s.AccessEndpoints = v return s } // SetAppstreamAgentVersion sets the AppstreamAgentVersion field's value. func (s *ImageBuilder) SetAppstreamAgentVersion(v string) *ImageBuilder { s.AppstreamAgentVersion = &v return s } // SetArn sets the Arn field's value. func (s *ImageBuilder) SetArn(v string) *ImageBuilder { s.Arn = &v return s } // SetCreatedTime sets the CreatedTime field's value. func (s *ImageBuilder) SetCreatedTime(v time.Time) *ImageBuilder { s.CreatedTime = &v return s } // SetDescription sets the Description field's value. func (s *ImageBuilder) SetDescription(v string) *ImageBuilder { s.Description = &v return s } // SetDisplayName sets the DisplayName field's value. func (s *ImageBuilder) SetDisplayName(v string) *ImageBuilder { s.DisplayName = &v return s } // SetDomainJoinInfo sets the DomainJoinInfo field's value. func (s *ImageBuilder) SetDomainJoinInfo(v *DomainJoinInfo) *ImageBuilder { s.DomainJoinInfo = v return s } // SetEnableDefaultInternetAccess sets the EnableDefaultInternetAccess field's value. func (s *ImageBuilder) SetEnableDefaultInternetAccess(v bool) *ImageBuilder { s.EnableDefaultInternetAccess = &v return s } // SetIamRoleArn sets the IamRoleArn field's value. func (s *ImageBuilder) SetIamRoleArn(v string) *ImageBuilder { s.IamRoleArn = &v return s } // SetImageArn sets the ImageArn field's value. func (s *ImageBuilder) SetImageArn(v string) *ImageBuilder { s.ImageArn = &v return s } // SetImageBuilderErrors sets the ImageBuilderErrors field's value. func (s *ImageBuilder) SetImageBuilderErrors(v []*ResourceError) *ImageBuilder { s.ImageBuilderErrors = v return s } // SetInstanceType sets the InstanceType field's value. func (s *ImageBuilder) SetInstanceType(v string) *ImageBuilder { s.InstanceType = &v return s } // SetName sets the Name field's value. func (s *ImageBuilder) SetName(v string) *ImageBuilder { s.Name = &v return s } // SetNetworkAccessConfiguration sets the NetworkAccessConfiguration field's value. func (s *ImageBuilder) SetNetworkAccessConfiguration(v *NetworkAccessConfiguration) *ImageBuilder { s.NetworkAccessConfiguration = v return s } // SetPlatform sets the Platform field's value. func (s *ImageBuilder) SetPlatform(v string) *ImageBuilder { s.Platform = &v return s } // SetState sets the State field's value. func (s *ImageBuilder) SetState(v string) *ImageBuilder { s.State = &v return s } // SetStateChangeReason sets the StateChangeReason field's value. func (s *ImageBuilder) SetStateChangeReason(v *ImageBuilderStateChangeReason) *ImageBuilder { s.StateChangeReason = v return s } // SetVpcConfig sets the VpcConfig field's value. func (s *ImageBuilder) SetVpcConfig(v *VpcConfig) *ImageBuilder { s.VpcConfig = v return s } // Describes the reason why the last image builder state change occurred. type ImageBuilderStateChangeReason struct { _ struct{} `type:"structure"` // The state change reason code. Code *string `type:"string" enum:"ImageBuilderStateChangeReasonCode"` // The state change reason message. Message *string `min:"1" type:"string"` } // String returns the string representation func (s ImageBuilderStateChangeReason) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ImageBuilderStateChangeReason) GoString() string { return s.String() } // SetCode sets the Code field's value. func (s *ImageBuilderStateChangeReason) SetCode(v string) *ImageBuilderStateChangeReason { s.Code = &v return s } // SetMessage sets the Message field's value. func (s *ImageBuilderStateChangeReason) SetMessage(v string) *ImageBuilderStateChangeReason { s.Message = &v return s } // Describes the permissions for an image. type ImagePermissions struct { _ struct{} `type:"structure"` // Indicates whether the image can be used for a fleet. AllowFleet *bool `locationName:"allowFleet" type:"boolean"` // Indicates whether the image can be used for an image builder. AllowImageBuilder *bool `locationName:"allowImageBuilder" type:"boolean"` } // String returns the string representation func (s ImagePermissions) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ImagePermissions) GoString() string { return s.String() } // SetAllowFleet sets the AllowFleet field's value. func (s *ImagePermissions) SetAllowFleet(v bool) *ImagePermissions { s.AllowFleet = &v return s } // SetAllowImageBuilder sets the AllowImageBuilder field's value. func (s *ImagePermissions) SetAllowImageBuilder(v bool) *ImagePermissions { s.AllowImageBuilder = &v return s } // Describes the reason why the last image state change occurred. type ImageStateChangeReason struct { _ struct{} `type:"structure"` // The state change reason code. Code *string `type:"string" enum:"ImageStateChangeReasonCode"` // The state change reason message. Message *string `min:"1" type:"string"` } // String returns the string representation func (s ImageStateChangeReason) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ImageStateChangeReason) GoString() string { return s.String() } // SetCode sets the Code field's value. func (s *ImageStateChangeReason) SetCode(v string) *ImageStateChangeReason { s.Code = &v return s } // SetMessage sets the Message field's value. func (s *ImageStateChangeReason) SetMessage(v string) *ImageStateChangeReason { s.Message = &v return s } // The image can't be updated because it's not compatible for updates. type IncompatibleImageException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` // The error message in the exception. Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s IncompatibleImageException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s IncompatibleImageException) GoString() string { return s.String() } func newErrorIncompatibleImageException(v protocol.ResponseMetadata) error { return &IncompatibleImageException{ RespMetadata: v, } } // Code returns the exception type name. func (s *IncompatibleImageException) Code() string { return "IncompatibleImageException" } // Message returns the exception's message. func (s *IncompatibleImageException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *IncompatibleImageException) OrigErr() error { return nil } func (s *IncompatibleImageException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *IncompatibleImageException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *IncompatibleImageException) RequestID() string { return s.RespMetadata.RequestID } // The resource cannot be created because your AWS account is suspended. For // assistance, contact AWS Support. type InvalidAccountStatusException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` // The error message in the exception. Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s InvalidAccountStatusException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s InvalidAccountStatusException) GoString() string { return s.String() } func newErrorInvalidAccountStatusException(v protocol.ResponseMetadata) error { return &InvalidAccountStatusException{ RespMetadata: v, } } // Code returns the exception type name. func (s *InvalidAccountStatusException) Code() string { return "InvalidAccountStatusException" } // Message returns the exception's message. func (s *InvalidAccountStatusException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *InvalidAccountStatusException) OrigErr() error { return nil } func (s *InvalidAccountStatusException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *InvalidAccountStatusException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *InvalidAccountStatusException) RequestID() string { return s.RespMetadata.RequestID } // Indicates an incorrect combination of parameters, or a missing parameter. type InvalidParameterCombinationException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` // The error message in the exception. Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s InvalidParameterCombinationException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s InvalidParameterCombinationException) GoString() string { return s.String() } func newErrorInvalidParameterCombinationException(v protocol.ResponseMetadata) error { return &InvalidParameterCombinationException{ RespMetadata: v, } } // Code returns the exception type name. func (s *InvalidParameterCombinationException) Code() string { return "InvalidParameterCombinationException" } // Message returns the exception's message. func (s *InvalidParameterCombinationException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *InvalidParameterCombinationException) OrigErr() error { return nil } func (s *InvalidParameterCombinationException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *InvalidParameterCombinationException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *InvalidParameterCombinationException) RequestID() string { return s.RespMetadata.RequestID } // The specified role is invalid. type InvalidRoleException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` // The error message in the exception. Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s InvalidRoleException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s InvalidRoleException) GoString() string { return s.String() } func newErrorInvalidRoleException(v protocol.ResponseMetadata) error { return &InvalidRoleException{ RespMetadata: v, } } // Code returns the exception type name. func (s *InvalidRoleException) Code() string { return "InvalidRoleException" } // Message returns the exception's message. func (s *InvalidRoleException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *InvalidRoleException) OrigErr() error { return nil } func (s *InvalidRoleException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *InvalidRoleException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *InvalidRoleException) RequestID() string { return s.RespMetadata.RequestID } // Describes the error that is returned when a usage report can't be generated. type LastReportGenerationExecutionError struct { _ struct{} `type:"structure"` // The error code for the error that is returned when a usage report can't be // generated. ErrorCode *string `type:"string" enum:"UsageReportExecutionErrorCode"` // The error message for the error that is returned when a usage report can't // be generated. ErrorMessage *string `min:"1" type:"string"` } // String returns the string representation func (s LastReportGenerationExecutionError) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s LastReportGenerationExecutionError) GoString() string { return s.String() } // SetErrorCode sets the ErrorCode field's value. func (s *LastReportGenerationExecutionError) SetErrorCode(v string) *LastReportGenerationExecutionError { s.ErrorCode = &v return s } // SetErrorMessage sets the ErrorMessage field's value. func (s *LastReportGenerationExecutionError) SetErrorMessage(v string) *LastReportGenerationExecutionError { s.ErrorMessage = &v return s } // The requested limit exceeds the permitted limit for an account. type LimitExceededException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` // The error message in the exception. Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s LimitExceededException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s LimitExceededException) GoString() string { return s.String() } func newErrorLimitExceededException(v protocol.ResponseMetadata) error { return &LimitExceededException{ RespMetadata: v, } } // Code returns the exception type name. func (s *LimitExceededException) Code() string { return "LimitExceededException" } // Message returns the exception's message. func (s *LimitExceededException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *LimitExceededException) OrigErr() error { return nil } func (s *LimitExceededException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *LimitExceededException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *LimitExceededException) RequestID() string { return s.RespMetadata.RequestID } type ListAssociatedFleetsInput struct { _ struct{} `type:"structure"` // The pagination token to use to retrieve the next page of results for this // operation. If this value is null, it retrieves the first page. NextToken *string `min:"1" type:"string"` // The name of the stack. // // StackName is a required field StackName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s ListAssociatedFleetsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListAssociatedFleetsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListAssociatedFleetsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListAssociatedFleetsInput"} if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if s.StackName == nil { invalidParams.Add(request.NewErrParamRequired("StackName")) } if s.StackName != nil && len(*s.StackName) < 1 { invalidParams.Add(request.NewErrParamMinLen("StackName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetNextToken sets the NextToken field's value. func (s *ListAssociatedFleetsInput) SetNextToken(v string) *ListAssociatedFleetsInput { s.NextToken = &v return s } // SetStackName sets the StackName field's value. func (s *ListAssociatedFleetsInput) SetStackName(v string) *ListAssociatedFleetsInput { s.StackName = &v return s } type ListAssociatedFleetsOutput struct { _ struct{} `type:"structure"` // The name of the fleet. Names []*string `type:"list"` // The pagination token to use to retrieve the next page of results for this // operation. If there are no more pages, this value is null. NextToken *string `min:"1" type:"string"` } // String returns the string representation func (s ListAssociatedFleetsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListAssociatedFleetsOutput) GoString() string { return s.String() } // SetNames sets the Names field's value. func (s *ListAssociatedFleetsOutput) SetNames(v []*string) *ListAssociatedFleetsOutput { s.Names = v return s } // SetNextToken sets the NextToken field's value. func (s *ListAssociatedFleetsOutput) SetNextToken(v string) *ListAssociatedFleetsOutput { s.NextToken = &v return s } type ListAssociatedStacksInput struct { _ struct{} `type:"structure"` // The name of the fleet. // // FleetName is a required field FleetName *string `min:"1" type:"string" required:"true"` // The pagination token to use to retrieve the next page of results for this // operation. If this value is null, it retrieves the first page. NextToken *string `min:"1" type:"string"` } // String returns the string representation func (s ListAssociatedStacksInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListAssociatedStacksInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListAssociatedStacksInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListAssociatedStacksInput"} if s.FleetName == nil { invalidParams.Add(request.NewErrParamRequired("FleetName")) } if s.FleetName != nil && len(*s.FleetName) < 1 { invalidParams.Add(request.NewErrParamMinLen("FleetName", 1)) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetFleetName sets the FleetName field's value. func (s *ListAssociatedStacksInput) SetFleetName(v string) *ListAssociatedStacksInput { s.FleetName = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListAssociatedStacksInput) SetNextToken(v string) *ListAssociatedStacksInput { s.NextToken = &v return s } type ListAssociatedStacksOutput struct { _ struct{} `type:"structure"` // The name of the stack. Names []*string `type:"list"` // The pagination token to use to retrieve the next page of results for this // operation. If there are no more pages, this value is null. NextToken *string `min:"1" type:"string"` } // String returns the string representation func (s ListAssociatedStacksOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListAssociatedStacksOutput) GoString() string { return s.String() } // SetNames sets the Names field's value. func (s *ListAssociatedStacksOutput) SetNames(v []*string) *ListAssociatedStacksOutput { s.Names = v return s } // SetNextToken sets the NextToken field's value. func (s *ListAssociatedStacksOutput) SetNextToken(v string) *ListAssociatedStacksOutput { s.NextToken = &v return s } type ListTagsForResourceInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the resource. // // ResourceArn is a required field ResourceArn *string `type:"string" required:"true"` } // String returns the string representation func (s ListTagsForResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListTagsForResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListTagsForResourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} if s.ResourceArn == nil { invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetResourceArn sets the ResourceArn field's value. func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { s.ResourceArn = &v return s } type ListTagsForResourceOutput struct { _ struct{} `type:"structure"` // The information about the tags. Tags map[string]*string `min:"1" type:"map"` } // String returns the string representation func (s ListTagsForResourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListTagsForResourceOutput) GoString() string { return s.String() } // SetTags sets the Tags field's value. func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput { s.Tags = v return s } // Describes the network details of the fleet or image builder instance. type NetworkAccessConfiguration struct { _ struct{} `type:"structure"` // The resource identifier of the elastic network interface that is attached // to instances in your VPC. All network interfaces have the eni-xxxxxxxx resource // identifier. EniId *string `min:"1" type:"string"` // The private IP address of the elastic network interface that is attached // to instances in your VPC. EniPrivateIpAddress *string `min:"1" type:"string"` } // String returns the string representation func (s NetworkAccessConfiguration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s NetworkAccessConfiguration) GoString() string { return s.String() } // SetEniId sets the EniId field's value. func (s *NetworkAccessConfiguration) SetEniId(v string) *NetworkAccessConfiguration { s.EniId = &v return s } // SetEniPrivateIpAddress sets the EniPrivateIpAddress field's value. func (s *NetworkAccessConfiguration) SetEniPrivateIpAddress(v string) *NetworkAccessConfiguration { s.EniPrivateIpAddress = &v return s } // The attempted operation is not permitted. type OperationNotPermittedException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` // The error message in the exception. Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s OperationNotPermittedException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s OperationNotPermittedException) GoString() string { return s.String() } func newErrorOperationNotPermittedException(v protocol.ResponseMetadata) error { return &OperationNotPermittedException{ RespMetadata: v, } } // Code returns the exception type name. func (s *OperationNotPermittedException) Code() string { return "OperationNotPermittedException" } // Message returns the exception's message. func (s *OperationNotPermittedException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *OperationNotPermittedException) OrigErr() error { return nil } func (s *OperationNotPermittedException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *OperationNotPermittedException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *OperationNotPermittedException) RequestID() string { return s.RespMetadata.RequestID } // AppStream 2.0 can’t process the request right now because the Describe // calls from your AWS account are being throttled by Amazon EC2. Try again // later. type RequestLimitExceededException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` // The error message in the exception. Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s RequestLimitExceededException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s RequestLimitExceededException) GoString() string { return s.String() } func newErrorRequestLimitExceededException(v protocol.ResponseMetadata) error { return &RequestLimitExceededException{ RespMetadata: v, } } // Code returns the exception type name. func (s *RequestLimitExceededException) Code() string { return "RequestLimitExceededException" } // Message returns the exception's message. func (s *RequestLimitExceededException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *RequestLimitExceededException) OrigErr() error { return nil } func (s *RequestLimitExceededException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *RequestLimitExceededException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *RequestLimitExceededException) RequestID() string { return s.RespMetadata.RequestID } // The specified resource already exists. type ResourceAlreadyExistsException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` // The error message in the exception. Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s ResourceAlreadyExistsException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ResourceAlreadyExistsException) GoString() string { return s.String() } func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error { return &ResourceAlreadyExistsException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ResourceAlreadyExistsException) Code() string { return "ResourceAlreadyExistsException" } // Message returns the exception's message. func (s *ResourceAlreadyExistsException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ResourceAlreadyExistsException) OrigErr() error { return nil } func (s *ResourceAlreadyExistsException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ResourceAlreadyExistsException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ResourceAlreadyExistsException) RequestID() string { return s.RespMetadata.RequestID } // Describes a resource error. type ResourceError struct { _ struct{} `type:"structure"` // The error code. ErrorCode *string `type:"string" enum:"FleetErrorCode"` // The error message. ErrorMessage *string `min:"1" type:"string"` // The time the error occurred. ErrorTimestamp *time.Time `type:"timestamp"` } // String returns the string representation func (s ResourceError) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ResourceError) GoString() string { return s.String() } // SetErrorCode sets the ErrorCode field's value. func (s *ResourceError) SetErrorCode(v string) *ResourceError { s.ErrorCode = &v return s } // SetErrorMessage sets the ErrorMessage field's value. func (s *ResourceError) SetErrorMessage(v string) *ResourceError { s.ErrorMessage = &v return s } // SetErrorTimestamp sets the ErrorTimestamp field's value. func (s *ResourceError) SetErrorTimestamp(v time.Time) *ResourceError { s.ErrorTimestamp = &v return s } // The specified resource is in use. type ResourceInUseException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` // The error message in the exception. Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s ResourceInUseException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ResourceInUseException) GoString() string { return s.String() } func newErrorResourceInUseException(v protocol.ResponseMetadata) error { return &ResourceInUseException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ResourceInUseException) Code() string { return "ResourceInUseException" } // Message returns the exception's message. func (s *ResourceInUseException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ResourceInUseException) OrigErr() error { return nil } func (s *ResourceInUseException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ResourceInUseException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ResourceInUseException) RequestID() string { return s.RespMetadata.RequestID } // The specified resource exists and is not in use, but isn't available. type ResourceNotAvailableException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` // The error message in the exception. Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s ResourceNotAvailableException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ResourceNotAvailableException) GoString() string { return s.String() } func newErrorResourceNotAvailableException(v protocol.ResponseMetadata) error { return &ResourceNotAvailableException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ResourceNotAvailableException) Code() string { return "ResourceNotAvailableException" } // Message returns the exception's message. func (s *ResourceNotAvailableException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ResourceNotAvailableException) OrigErr() error { return nil } func (s *ResourceNotAvailableException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ResourceNotAvailableException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ResourceNotAvailableException) RequestID() string { return s.RespMetadata.RequestID } // The specified resource was not found. type ResourceNotFoundException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` // The error message in the exception. Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s ResourceNotFoundException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ResourceNotFoundException) GoString() string { return s.String() } func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { return &ResourceNotFoundException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ResourceNotFoundException) Code() string { return "ResourceNotFoundException" } // Message returns the exception's message. func (s *ResourceNotFoundException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ResourceNotFoundException) OrigErr() error { return nil } func (s *ResourceNotFoundException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ResourceNotFoundException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ResourceNotFoundException) RequestID() string { return s.RespMetadata.RequestID } // Describes the credentials for the service account used by the fleet or image // builder to connect to the directory. type ServiceAccountCredentials struct { _ struct{} `type:"structure"` // The user name of the account. This account must have the following privileges: // create computer objects, join computers to the domain, and change/reset the // password on descendant computer objects for the organizational units specified. // // AccountName is a required field AccountName *string `min:"1" type:"string" required:"true" sensitive:"true"` // The password for the account. // // AccountPassword is a required field AccountPassword *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation func (s ServiceAccountCredentials) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ServiceAccountCredentials) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ServiceAccountCredentials) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ServiceAccountCredentials"} if s.AccountName == nil { invalidParams.Add(request.NewErrParamRequired("AccountName")) } if s.AccountName != nil && len(*s.AccountName) < 1 { invalidParams.Add(request.NewErrParamMinLen("AccountName", 1)) } if s.AccountPassword == nil { invalidParams.Add(request.NewErrParamRequired("AccountPassword")) } if s.AccountPassword != nil && len(*s.AccountPassword) < 1 { invalidParams.Add(request.NewErrParamMinLen("AccountPassword", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAccountName sets the AccountName field's value. func (s *ServiceAccountCredentials) SetAccountName(v string) *ServiceAccountCredentials { s.AccountName = &v return s } // SetAccountPassword sets the AccountPassword field's value. func (s *ServiceAccountCredentials) SetAccountPassword(v string) *ServiceAccountCredentials { s.AccountPassword = &v return s } // Describes a streaming session. type Session struct { _ struct{} `type:"structure"` // The authentication method. The user is authenticated using a streaming URL // (API) or SAML 2.0 federation (SAML). AuthenticationType *string `type:"string" enum:"AuthenticationType"` // Specifies whether a user is connected to the streaming session. ConnectionState *string `type:"string" enum:"SessionConnectionState"` // The name of the fleet for the streaming session. // // FleetName is a required field FleetName *string `min:"1" type:"string" required:"true"` // The identifier of the streaming session. // // Id is a required field Id *string `min:"1" type:"string" required:"true"` // The time when the streaming session is set to expire. This time is based // on the MaxUserDurationinSeconds value, which determines the maximum length // of time that a streaming session can run. A streaming session might end earlier // than the time specified in SessionMaxExpirationTime, when the DisconnectTimeOutInSeconds // elapses or the user chooses to end his or her session. If the DisconnectTimeOutInSeconds // elapses, or the user chooses to end his or her session, the streaming instance // is terminated and the streaming session ends. MaxExpirationTime *time.Time `type:"timestamp"` // The network details for the streaming session. NetworkAccessConfiguration *NetworkAccessConfiguration `type:"structure"` // The name of the stack for the streaming session. // // StackName is a required field StackName *string `min:"1" type:"string" required:"true"` // The time when a streaming instance is dedicated for the user. StartTime *time.Time `type:"timestamp"` // The current state of the streaming session. // // State is a required field State *string `type:"string" required:"true" enum:"SessionState"` // The identifier of the user for whom the session was created. // // UserId is a required field UserId *string `min:"2" type:"string" required:"true"` } // String returns the string representation func (s Session) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Session) GoString() string { return s.String() } // SetAuthenticationType sets the AuthenticationType field's value. func (s *Session) SetAuthenticationType(v string) *Session { s.AuthenticationType = &v return s } // SetConnectionState sets the ConnectionState field's value. func (s *Session) SetConnectionState(v string) *Session { s.ConnectionState = &v return s } // SetFleetName sets the FleetName field's value. func (s *Session) SetFleetName(v string) *Session { s.FleetName = &v return s } // SetId sets the Id field's value. func (s *Session) SetId(v string) *Session { s.Id = &v return s } // SetMaxExpirationTime sets the MaxExpirationTime field's value. func (s *Session) SetMaxExpirationTime(v time.Time) *Session { s.MaxExpirationTime = &v return s } // SetNetworkAccessConfiguration sets the NetworkAccessConfiguration field's value. func (s *Session) SetNetworkAccessConfiguration(v *NetworkAccessConfiguration) *Session { s.NetworkAccessConfiguration = v return s } // SetStackName sets the StackName field's value. func (s *Session) SetStackName(v string) *Session { s.StackName = &v return s } // SetStartTime sets the StartTime field's value. func (s *Session) SetStartTime(v time.Time) *Session { s.StartTime = &v return s } // SetState sets the State field's value. func (s *Session) SetState(v string) *Session { s.State = &v return s } // SetUserId sets the UserId field's value. func (s *Session) SetUserId(v string) *Session { s.UserId = &v return s } // Describes the permissions that are available to the specified AWS account // for a shared image. type SharedImagePermissions struct { _ struct{} `type:"structure"` // Describes the permissions for a shared image. // // ImagePermissions is a required field ImagePermissions *ImagePermissions `locationName:"imagePermissions" type:"structure" required:"true"` // The 12-digit identifier of the AWS account with which the image is shared. // // SharedAccountId is a required field SharedAccountId *string `locationName:"sharedAccountId" type:"string" required:"true"` } // String returns the string representation func (s SharedImagePermissions) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s SharedImagePermissions) GoString() string { return s.String() } // SetImagePermissions sets the ImagePermissions field's value. func (s *SharedImagePermissions) SetImagePermissions(v *ImagePermissions) *SharedImagePermissions { s.ImagePermissions = v return s } // SetSharedAccountId sets the SharedAccountId field's value. func (s *SharedImagePermissions) SetSharedAccountId(v string) *SharedImagePermissions { s.SharedAccountId = &v return s } // Describes a stack. type Stack struct { _ struct{} `type:"structure"` // The list of virtual private cloud (VPC) interface endpoint objects. Users // of the stack can connect to AppStream 2.0 only through the specified endpoints. AccessEndpoints []*AccessEndpoint `min:"1" type:"list"` // The persistent application settings for users of the stack. ApplicationSettings *ApplicationSettingsResponse `type:"structure"` // The ARN of the stack. Arn *string `type:"string"` // The time the stack was created. CreatedTime *time.Time `type:"timestamp"` // The description to display. Description *string `min:"1" type:"string"` // The stack name to display. DisplayName *string `min:"1" type:"string"` // The domains where AppStream 2.0 streaming sessions can be embedded in an // iframe. You must approve the domains that you want to host embedded AppStream // 2.0 streaming sessions. EmbedHostDomains []*string `min:"1" type:"list"` // The URL that users are redirected to after they click the Send Feedback link. // If no URL is specified, no Send Feedback link is displayed. FeedbackURL *string `type:"string"` // The name of the stack. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // The URL that users are redirected to after their streaming session ends. RedirectURL *string `type:"string"` // The errors for the stack. StackErrors []*StackError `type:"list"` // The storage connectors to enable. StorageConnectors []*StorageConnector `type:"list"` // The actions that are enabled or disabled for users during their streaming // sessions. By default these actions are enabled. UserSettings []*UserSetting `min:"1" type:"list"` } // String returns the string representation func (s Stack) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Stack) GoString() string { return s.String() } // SetAccessEndpoints sets the AccessEndpoints field's value. func (s *Stack) SetAccessEndpoints(v []*AccessEndpoint) *Stack { s.AccessEndpoints = v return s } // SetApplicationSettings sets the ApplicationSettings field's value. func (s *Stack) SetApplicationSettings(v *ApplicationSettingsResponse) *Stack { s.ApplicationSettings = v return s } // SetArn sets the Arn field's value. func (s *Stack) SetArn(v string) *Stack { s.Arn = &v return s } // SetCreatedTime sets the CreatedTime field's value. func (s *Stack) SetCreatedTime(v time.Time) *Stack { s.CreatedTime = &v return s } // SetDescription sets the Description field's value. func (s *Stack) SetDescription(v string) *Stack { s.Description = &v return s } // SetDisplayName sets the DisplayName field's value. func (s *Stack) SetDisplayName(v string) *Stack { s.DisplayName = &v return s } // SetEmbedHostDomains sets the EmbedHostDomains field's value. func (s *Stack) SetEmbedHostDomains(v []*string) *Stack { s.EmbedHostDomains = v return s } // SetFeedbackURL sets the FeedbackURL field's value. func (s *Stack) SetFeedbackURL(v string) *Stack { s.FeedbackURL = &v return s } // SetName sets the Name field's value. func (s *Stack) SetName(v string) *Stack { s.Name = &v return s } // SetRedirectURL sets the RedirectURL field's value. func (s *Stack) SetRedirectURL(v string) *Stack { s.RedirectURL = &v return s } // SetStackErrors sets the StackErrors field's value. func (s *Stack) SetStackErrors(v []*StackError) *Stack { s.StackErrors = v return s } // SetStorageConnectors sets the StorageConnectors field's value. func (s *Stack) SetStorageConnectors(v []*StorageConnector) *Stack { s.StorageConnectors = v return s } // SetUserSettings sets the UserSettings field's value. func (s *Stack) SetUserSettings(v []*UserSetting) *Stack { s.UserSettings = v return s } // Describes a stack error. type StackError struct { _ struct{} `type:"structure"` // The error code. ErrorCode *string `type:"string" enum:"StackErrorCode"` // The error message. ErrorMessage *string `min:"1" type:"string"` } // String returns the string representation func (s StackError) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StackError) GoString() string { return s.String() } // SetErrorCode sets the ErrorCode field's value. func (s *StackError) SetErrorCode(v string) *StackError { s.ErrorCode = &v return s } // SetErrorMessage sets the ErrorMessage field's value. func (s *StackError) SetErrorMessage(v string) *StackError { s.ErrorMessage = &v return s } type StartFleetInput struct { _ struct{} `type:"structure"` // The name of the fleet. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s StartFleetInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StartFleetInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *StartFleetInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "StartFleetInput"} if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetName sets the Name field's value. func (s *StartFleetInput) SetName(v string) *StartFleetInput { s.Name = &v return s } type StartFleetOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s StartFleetOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StartFleetOutput) GoString() string { return s.String() } type StartImageBuilderInput struct { _ struct{} `type:"structure"` // The version of the AppStream 2.0 agent to use for this image builder. To // use the latest version of the AppStream 2.0 agent, specify [LATEST]. AppstreamAgentVersion *string `min:"1" type:"string"` // The name of the image builder. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s StartImageBuilderInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StartImageBuilderInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *StartImageBuilderInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "StartImageBuilderInput"} if s.AppstreamAgentVersion != nil && len(*s.AppstreamAgentVersion) < 1 { invalidParams.Add(request.NewErrParamMinLen("AppstreamAgentVersion", 1)) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAppstreamAgentVersion sets the AppstreamAgentVersion field's value. func (s *StartImageBuilderInput) SetAppstreamAgentVersion(v string) *StartImageBuilderInput { s.AppstreamAgentVersion = &v return s } // SetName sets the Name field's value. func (s *StartImageBuilderInput) SetName(v string) *StartImageBuilderInput { s.Name = &v return s } type StartImageBuilderOutput struct { _ struct{} `type:"structure"` // Information about the image builder. ImageBuilder *ImageBuilder `type:"structure"` } // String returns the string representation func (s StartImageBuilderOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StartImageBuilderOutput) GoString() string { return s.String() } // SetImageBuilder sets the ImageBuilder field's value. func (s *StartImageBuilderOutput) SetImageBuilder(v *ImageBuilder) *StartImageBuilderOutput { s.ImageBuilder = v return s } type StopFleetInput struct { _ struct{} `type:"structure"` // The name of the fleet. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s StopFleetInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StopFleetInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *StopFleetInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "StopFleetInput"} if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetName sets the Name field's value. func (s *StopFleetInput) SetName(v string) *StopFleetInput { s.Name = &v return s } type StopFleetOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s StopFleetOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StopFleetOutput) GoString() string { return s.String() } type StopImageBuilderInput struct { _ struct{} `type:"structure"` // The name of the image builder. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s StopImageBuilderInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StopImageBuilderInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *StopImageBuilderInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "StopImageBuilderInput"} if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetName sets the Name field's value. func (s *StopImageBuilderInput) SetName(v string) *StopImageBuilderInput { s.Name = &v return s } type StopImageBuilderOutput struct { _ struct{} `type:"structure"` // Information about the image builder. ImageBuilder *ImageBuilder `type:"structure"` } // String returns the string representation func (s StopImageBuilderOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StopImageBuilderOutput) GoString() string { return s.String() } // SetImageBuilder sets the ImageBuilder field's value. func (s *StopImageBuilderOutput) SetImageBuilder(v *ImageBuilder) *StopImageBuilderOutput { s.ImageBuilder = v return s } // Describes a connector that enables persistent storage for users. type StorageConnector struct { _ struct{} `type:"structure"` // The type of storage connector. // // ConnectorType is a required field ConnectorType *string `type:"string" required:"true" enum:"StorageConnectorType"` // The names of the domains for the account. Domains []*string `type:"list"` // The ARN of the storage connector. ResourceIdentifier *string `min:"1" type:"string"` } // String returns the string representation func (s StorageConnector) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StorageConnector) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *StorageConnector) Validate() error { invalidParams := request.ErrInvalidParams{Context: "StorageConnector"} if s.ConnectorType == nil { invalidParams.Add(request.NewErrParamRequired("ConnectorType")) } if s.ResourceIdentifier != nil && len(*s.ResourceIdentifier) < 1 { invalidParams.Add(request.NewErrParamMinLen("ResourceIdentifier", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetConnectorType sets the ConnectorType field's value. func (s *StorageConnector) SetConnectorType(v string) *StorageConnector { s.ConnectorType = &v return s } // SetDomains sets the Domains field's value. func (s *StorageConnector) SetDomains(v []*string) *StorageConnector { s.Domains = v return s } // SetResourceIdentifier sets the ResourceIdentifier field's value. func (s *StorageConnector) SetResourceIdentifier(v string) *StorageConnector { s.ResourceIdentifier = &v return s } type TagResourceInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the resource. // // ResourceArn is a required field ResourceArn *string `type:"string" required:"true"` // The tags to associate. A tag is a key-value pair, and the value is optional. // For example, Environment=Test. If you do not specify a value, Environment=. // // If you do not specify a value, the value is set to an empty string. // // Generally allowed characters are: letters, numbers, and spaces representable // in UTF-8, and the following special characters: // // _ . : / = + \ - @ // // Tags is a required field Tags map[string]*string `min:"1" type:"map" required:"true"` } // String returns the string representation func (s TagResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TagResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *TagResourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} if s.ResourceArn == nil { invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } if s.Tags == nil { invalidParams.Add(request.NewErrParamRequired("Tags")) } if s.Tags != nil && len(s.Tags) < 1 { invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetResourceArn sets the ResourceArn field's value. func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { s.ResourceArn = &v return s } // SetTags sets the Tags field's value. func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput { s.Tags = v return s } type TagResourceOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s TagResourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TagResourceOutput) GoString() string { return s.String() } type UntagResourceInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the resource. // // ResourceArn is a required field ResourceArn *string `type:"string" required:"true"` // The tag keys for the tags to disassociate. // // TagKeys is a required field TagKeys []*string `min:"1" type:"list" required:"true"` } // String returns the string representation func (s UntagResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UntagResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UntagResourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} if s.ResourceArn == nil { invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } if s.TagKeys == nil { invalidParams.Add(request.NewErrParamRequired("TagKeys")) } if s.TagKeys != nil && len(s.TagKeys) < 1 { invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetResourceArn sets the ResourceArn field's value. func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { s.ResourceArn = &v return s } // SetTagKeys sets the TagKeys field's value. func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { s.TagKeys = v return s } type UntagResourceOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s UntagResourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UntagResourceOutput) GoString() string { return s.String() } type UpdateDirectoryConfigInput struct { _ struct{} `type:"structure"` // The name of the Directory Config object. // // DirectoryName is a required field DirectoryName *string `type:"string" required:"true"` // The distinguished names of the organizational units for computer accounts. OrganizationalUnitDistinguishedNames []*string `type:"list"` // The credentials for the service account used by the fleet or image builder // to connect to the directory. ServiceAccountCredentials *ServiceAccountCredentials `type:"structure"` } // String returns the string representation func (s UpdateDirectoryConfigInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateDirectoryConfigInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateDirectoryConfigInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateDirectoryConfigInput"} if s.DirectoryName == nil { invalidParams.Add(request.NewErrParamRequired("DirectoryName")) } if s.ServiceAccountCredentials != nil { if err := s.ServiceAccountCredentials.Validate(); err != nil { invalidParams.AddNested("ServiceAccountCredentials", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDirectoryName sets the DirectoryName field's value. func (s *UpdateDirectoryConfigInput) SetDirectoryName(v string) *UpdateDirectoryConfigInput { s.DirectoryName = &v return s } // SetOrganizationalUnitDistinguishedNames sets the OrganizationalUnitDistinguishedNames field's value. func (s *UpdateDirectoryConfigInput) SetOrganizationalUnitDistinguishedNames(v []*string) *UpdateDirectoryConfigInput { s.OrganizationalUnitDistinguishedNames = v return s } // SetServiceAccountCredentials sets the ServiceAccountCredentials field's value. func (s *UpdateDirectoryConfigInput) SetServiceAccountCredentials(v *ServiceAccountCredentials) *UpdateDirectoryConfigInput { s.ServiceAccountCredentials = v return s } type UpdateDirectoryConfigOutput struct { _ struct{} `type:"structure"` // Information about the Directory Config object. DirectoryConfig *DirectoryConfig `type:"structure"` } // String returns the string representation func (s UpdateDirectoryConfigOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateDirectoryConfigOutput) GoString() string { return s.String() } // SetDirectoryConfig sets the DirectoryConfig field's value. func (s *UpdateDirectoryConfigOutput) SetDirectoryConfig(v *DirectoryConfig) *UpdateDirectoryConfigOutput { s.DirectoryConfig = v return s } type UpdateFleetInput struct { _ struct{} `type:"structure"` // The fleet attributes to delete. AttributesToDelete []*string `type:"list"` // The desired capacity for the fleet. ComputeCapacity *ComputeCapacity `type:"structure"` // Deletes the VPC association for the specified fleet. // // Deprecated: DeleteVpcConfig has been deprecated DeleteVpcConfig *bool `deprecated:"true" type:"boolean"` // The description to display. Description *string `type:"string"` // The amount of time that a streaming session remains active after users disconnect. // If users try to reconnect to the streaming session after a disconnection // or network interruption within this time interval, they are connected to // their previous session. Otherwise, they are connected to a new session with // a new streaming instance. // // Specify a value between 60 and 360000. DisconnectTimeoutInSeconds *int64 `type:"integer"` // The fleet name to display. DisplayName *string `type:"string"` // The name of the directory and organizational unit (OU) to use to join the // fleet to a Microsoft Active Directory domain. DomainJoinInfo *DomainJoinInfo `type:"structure"` // Enables or disables default internet access for the fleet. EnableDefaultInternetAccess *bool `type:"boolean"` // The Amazon Resource Name (ARN) of the IAM role to apply to the fleet. To // assume a role, a fleet instance calls the AWS Security Token Service (STS) // AssumeRole API operation and passes the ARN of the role to use. The operation // creates a new session with temporary credentials. AppStream 2.0 retrieves // the temporary credentials and creates the appstream_machine_role credential // profile on the instance. // // For more information, see Using an IAM Role to Grant Permissions to Applications // and Scripts Running on AppStream 2.0 Streaming Instances (https://docs.aws.amazon.com/appstream2/latest/developerguide/using-iam-roles-to-grant-permissions-to-applications-scripts-streaming-instances.html) // in the Amazon AppStream 2.0 Administration Guide. IamRoleArn *string `type:"string"` // The amount of time that users can be idle (inactive) before they are disconnected // from their streaming session and the DisconnectTimeoutInSeconds time interval // begins. Users are notified before they are disconnected due to inactivity. // If users try to reconnect to the streaming session before the time interval // specified in DisconnectTimeoutInSeconds elapses, they are connected to their // previous session. Users are considered idle when they stop providing keyboard // or mouse input during their streaming session. File uploads and downloads, // audio in, audio out, and pixels changing do not qualify as user activity. // If users continue to be idle after the time interval in IdleDisconnectTimeoutInSeconds // elapses, they are disconnected. // // To prevent users from being disconnected due to inactivity, specify a value // of 0. Otherwise, specify a value between 60 and 3600. The default value is // 0. // // If you enable this feature, we recommend that you specify a value that corresponds // exactly to a whole number of minutes (for example, 60, 120, and 180). If // you don't do this, the value is rounded to the nearest minute. For example, // if you specify a value of 70, users are disconnected after 1 minute of inactivity. // If you specify a value that is at the midpoint between two different minutes, // the value is rounded up. For example, if you specify a value of 90, users // are disconnected after 2 minutes of inactivity. IdleDisconnectTimeoutInSeconds *int64 `type:"integer"` // The ARN of the public, private, or shared image to use. ImageArn *string `type:"string"` // The name of the image used to create the fleet. ImageName *string `min:"1" type:"string"` // The instance type to use when launching fleet instances. The following instance // types are available: // // * stream.standard.small // // * stream.standard.medium // // * stream.standard.large // // * stream.compute.large // // * stream.compute.xlarge // // * stream.compute.2xlarge // // * stream.compute.4xlarge // // * stream.compute.8xlarge // // * stream.memory.large // // * stream.memory.xlarge // // * stream.memory.2xlarge // // * stream.memory.4xlarge // // * stream.memory.8xlarge // // * stream.memory.z1d.large // // * stream.memory.z1d.xlarge // // * stream.memory.z1d.2xlarge // // * stream.memory.z1d.3xlarge // // * stream.memory.z1d.6xlarge // // * stream.memory.z1d.12xlarge // // * stream.graphics-design.large // // * stream.graphics-design.xlarge // // * stream.graphics-design.2xlarge // // * stream.graphics-design.4xlarge // // * stream.graphics-desktop.2xlarge // // * stream.graphics.g4dn.xlarge // // * stream.graphics.g4dn.2xlarge // // * stream.graphics.g4dn.4xlarge // // * stream.graphics.g4dn.8xlarge // // * stream.graphics.g4dn.12xlarge // // * stream.graphics.g4dn.16xlarge // // * stream.graphics-pro.4xlarge // // * stream.graphics-pro.8xlarge // // * stream.graphics-pro.16xlarge InstanceType *string `min:"1" type:"string"` // The maximum amount of time that a streaming session can remain active, in // seconds. If users are still connected to a streaming instance five minutes // before this limit is reached, they are prompted to save any open documents // before being disconnected. After this time elapses, the instance is terminated // and replaced by a new instance. // // Specify a value between 600 and 360000. MaxUserDurationInSeconds *int64 `type:"integer"` // A unique name for the fleet. Name *string `min:"1" type:"string"` // The AppStream 2.0 view that is displayed to your users when they stream from // the fleet. When APP is specified, only the windows of applications opened // by users display. When DESKTOP is specified, the standard desktop that is // provided by the operating system displays. // // The default value is APP. StreamView *string `type:"string" enum:"StreamView"` // The VPC configuration for the fleet. VpcConfig *VpcConfig `type:"structure"` } // String returns the string representation func (s UpdateFleetInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateFleetInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateFleetInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateFleetInput"} if s.ImageName != nil && len(*s.ImageName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ImageName", 1)) } if s.InstanceType != nil && len(*s.InstanceType) < 1 { invalidParams.Add(request.NewErrParamMinLen("InstanceType", 1)) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if s.ComputeCapacity != nil { if err := s.ComputeCapacity.Validate(); err != nil { invalidParams.AddNested("ComputeCapacity", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAttributesToDelete sets the AttributesToDelete field's value. func (s *UpdateFleetInput) SetAttributesToDelete(v []*string) *UpdateFleetInput { s.AttributesToDelete = v return s } // SetComputeCapacity sets the ComputeCapacity field's value. func (s *UpdateFleetInput) SetComputeCapacity(v *ComputeCapacity) *UpdateFleetInput { s.ComputeCapacity = v return s } // SetDeleteVpcConfig sets the DeleteVpcConfig field's value. func (s *UpdateFleetInput) SetDeleteVpcConfig(v bool) *UpdateFleetInput { s.DeleteVpcConfig = &v return s } // SetDescription sets the Description field's value. func (s *UpdateFleetInput) SetDescription(v string) *UpdateFleetInput { s.Description = &v return s } // SetDisconnectTimeoutInSeconds sets the DisconnectTimeoutInSeconds field's value. func (s *UpdateFleetInput) SetDisconnectTimeoutInSeconds(v int64) *UpdateFleetInput { s.DisconnectTimeoutInSeconds = &v return s } // SetDisplayName sets the DisplayName field's value. func (s *UpdateFleetInput) SetDisplayName(v string) *UpdateFleetInput { s.DisplayName = &v return s } // SetDomainJoinInfo sets the DomainJoinInfo field's value. func (s *UpdateFleetInput) SetDomainJoinInfo(v *DomainJoinInfo) *UpdateFleetInput { s.DomainJoinInfo = v return s } // SetEnableDefaultInternetAccess sets the EnableDefaultInternetAccess field's value. func (s *UpdateFleetInput) SetEnableDefaultInternetAccess(v bool) *UpdateFleetInput { s.EnableDefaultInternetAccess = &v return s } // SetIamRoleArn sets the IamRoleArn field's value. func (s *UpdateFleetInput) SetIamRoleArn(v string) *UpdateFleetInput { s.IamRoleArn = &v return s } // SetIdleDisconnectTimeoutInSeconds sets the IdleDisconnectTimeoutInSeconds field's value. func (s *UpdateFleetInput) SetIdleDisconnectTimeoutInSeconds(v int64) *UpdateFleetInput { s.IdleDisconnectTimeoutInSeconds = &v return s } // SetImageArn sets the ImageArn field's value. func (s *UpdateFleetInput) SetImageArn(v string) *UpdateFleetInput { s.ImageArn = &v return s } // SetImageName sets the ImageName field's value. func (s *UpdateFleetInput) SetImageName(v string) *UpdateFleetInput { s.ImageName = &v return s } // SetInstanceType sets the InstanceType field's value. func (s *UpdateFleetInput) SetInstanceType(v string) *UpdateFleetInput { s.InstanceType = &v return s } // SetMaxUserDurationInSeconds sets the MaxUserDurationInSeconds field's value. func (s *UpdateFleetInput) SetMaxUserDurationInSeconds(v int64) *UpdateFleetInput { s.MaxUserDurationInSeconds = &v return s } // SetName sets the Name field's value. func (s *UpdateFleetInput) SetName(v string) *UpdateFleetInput { s.Name = &v return s } // SetStreamView sets the StreamView field's value. func (s *UpdateFleetInput) SetStreamView(v string) *UpdateFleetInput { s.StreamView = &v return s } // SetVpcConfig sets the VpcConfig field's value. func (s *UpdateFleetInput) SetVpcConfig(v *VpcConfig) *UpdateFleetInput { s.VpcConfig = v return s } type UpdateFleetOutput struct { _ struct{} `type:"structure"` // Information about the fleet. Fleet *Fleet `type:"structure"` } // String returns the string representation func (s UpdateFleetOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateFleetOutput) GoString() string { return s.String() } // SetFleet sets the Fleet field's value. func (s *UpdateFleetOutput) SetFleet(v *Fleet) *UpdateFleetOutput { s.Fleet = v return s } type UpdateImagePermissionsInput struct { _ struct{} `type:"structure"` // The permissions for the image. // // ImagePermissions is a required field ImagePermissions *ImagePermissions `type:"structure" required:"true"` // The name of the private image. // // Name is a required field Name *string `type:"string" required:"true"` // The 12-digit identifier of the AWS account for which you want add or update // image permissions. // // SharedAccountId is a required field SharedAccountId *string `type:"string" required:"true"` } // String returns the string representation func (s UpdateImagePermissionsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateImagePermissionsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateImagePermissionsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateImagePermissionsInput"} if s.ImagePermissions == nil { invalidParams.Add(request.NewErrParamRequired("ImagePermissions")) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.SharedAccountId == nil { invalidParams.Add(request.NewErrParamRequired("SharedAccountId")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetImagePermissions sets the ImagePermissions field's value. func (s *UpdateImagePermissionsInput) SetImagePermissions(v *ImagePermissions) *UpdateImagePermissionsInput { s.ImagePermissions = v return s } // SetName sets the Name field's value. func (s *UpdateImagePermissionsInput) SetName(v string) *UpdateImagePermissionsInput { s.Name = &v return s } // SetSharedAccountId sets the SharedAccountId field's value. func (s *UpdateImagePermissionsInput) SetSharedAccountId(v string) *UpdateImagePermissionsInput { s.SharedAccountId = &v return s } type UpdateImagePermissionsOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s UpdateImagePermissionsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateImagePermissionsOutput) GoString() string { return s.String() } type UpdateStackInput struct { _ struct{} `type:"structure"` // The list of interface VPC endpoint (interface endpoint) objects. Users of // the stack can connect to AppStream 2.0 only through the specified endpoints. AccessEndpoints []*AccessEndpoint `min:"1" type:"list"` // The persistent application settings for users of a stack. When these settings // are enabled, changes that users make to applications and Windows settings // are automatically saved after each session and applied to the next session. ApplicationSettings *ApplicationSettings `type:"structure"` // The stack attributes to delete. AttributesToDelete []*string `type:"list"` // Deletes the storage connectors currently enabled for the stack. // // Deprecated: DeleteStorageConnectors has been deprecated DeleteStorageConnectors *bool `deprecated:"true" type:"boolean"` // The description to display. Description *string `type:"string"` // The stack name to display. DisplayName *string `type:"string"` // The domains where AppStream 2.0 streaming sessions can be embedded in an // iframe. You must approve the domains that you want to host embedded AppStream // 2.0 streaming sessions. EmbedHostDomains []*string `min:"1" type:"list"` // The URL that users are redirected to after they choose the Send Feedback // link. If no URL is specified, no Send Feedback link is displayed. FeedbackURL *string `type:"string"` // The name of the stack. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // The URL that users are redirected to after their streaming session ends. RedirectURL *string `type:"string"` // The storage connectors to enable. StorageConnectors []*StorageConnector `type:"list"` // The actions that are enabled or disabled for users during their streaming // sessions. By default, these actions are enabled. UserSettings []*UserSetting `min:"1" type:"list"` } // String returns the string representation func (s UpdateStackInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateStackInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateStackInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateStackInput"} if s.AccessEndpoints != nil && len(s.AccessEndpoints) < 1 { invalidParams.Add(request.NewErrParamMinLen("AccessEndpoints", 1)) } if s.EmbedHostDomains != nil && len(s.EmbedHostDomains) < 1 { invalidParams.Add(request.NewErrParamMinLen("EmbedHostDomains", 1)) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if s.UserSettings != nil && len(s.UserSettings) < 1 { invalidParams.Add(request.NewErrParamMinLen("UserSettings", 1)) } if s.AccessEndpoints != nil { for i, v := range s.AccessEndpoints { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AccessEndpoints", i), err.(request.ErrInvalidParams)) } } } if s.ApplicationSettings != nil { if err := s.ApplicationSettings.Validate(); err != nil { invalidParams.AddNested("ApplicationSettings", err.(request.ErrInvalidParams)) } } if s.StorageConnectors != nil { for i, v := range s.StorageConnectors { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "StorageConnectors", i), err.(request.ErrInvalidParams)) } } } if s.UserSettings != nil { for i, v := range s.UserSettings { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UserSettings", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAccessEndpoints sets the AccessEndpoints field's value. func (s *UpdateStackInput) SetAccessEndpoints(v []*AccessEndpoint) *UpdateStackInput { s.AccessEndpoints = v return s } // SetApplicationSettings sets the ApplicationSettings field's value. func (s *UpdateStackInput) SetApplicationSettings(v *ApplicationSettings) *UpdateStackInput { s.ApplicationSettings = v return s } // SetAttributesToDelete sets the AttributesToDelete field's value. func (s *UpdateStackInput) SetAttributesToDelete(v []*string) *UpdateStackInput { s.AttributesToDelete = v return s } // SetDeleteStorageConnectors sets the DeleteStorageConnectors field's value. func (s *UpdateStackInput) SetDeleteStorageConnectors(v bool) *UpdateStackInput { s.DeleteStorageConnectors = &v return s } // SetDescription sets the Description field's value. func (s *UpdateStackInput) SetDescription(v string) *UpdateStackInput { s.Description = &v return s } // SetDisplayName sets the DisplayName field's value. func (s *UpdateStackInput) SetDisplayName(v string) *UpdateStackInput { s.DisplayName = &v return s } // SetEmbedHostDomains sets the EmbedHostDomains field's value. func (s *UpdateStackInput) SetEmbedHostDomains(v []*string) *UpdateStackInput { s.EmbedHostDomains = v return s } // SetFeedbackURL sets the FeedbackURL field's value. func (s *UpdateStackInput) SetFeedbackURL(v string) *UpdateStackInput { s.FeedbackURL = &v return s } // SetName sets the Name field's value. func (s *UpdateStackInput) SetName(v string) *UpdateStackInput { s.Name = &v return s } // SetRedirectURL sets the RedirectURL field's value. func (s *UpdateStackInput) SetRedirectURL(v string) *UpdateStackInput { s.RedirectURL = &v return s } // SetStorageConnectors sets the StorageConnectors field's value. func (s *UpdateStackInput) SetStorageConnectors(v []*StorageConnector) *UpdateStackInput { s.StorageConnectors = v return s } // SetUserSettings sets the UserSettings field's value. func (s *UpdateStackInput) SetUserSettings(v []*UserSetting) *UpdateStackInput { s.UserSettings = v return s } type UpdateStackOutput struct { _ struct{} `type:"structure"` // Information about the stack. Stack *Stack `type:"structure"` } // String returns the string representation func (s UpdateStackOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateStackOutput) GoString() string { return s.String() } // SetStack sets the Stack field's value. func (s *UpdateStackOutput) SetStack(v *Stack) *UpdateStackOutput { s.Stack = v return s } // Describes information about the usage report subscription. type UsageReportSubscription struct { _ struct{} `type:"structure"` // The time when the last usage report was generated. LastGeneratedReportDate *time.Time `type:"timestamp"` // The Amazon S3 bucket where generated reports are stored. // // If you enabled on-instance session scripts and Amazon S3 logging for your // session script configuration, AppStream 2.0 created an S3 bucket to store // the script output. The bucket is unique to your account and Region. When // you enable usage reporting in this case, AppStream 2.0 uses the same bucket // to store your usage reports. If you haven't already enabled on-instance session // scripts, when you enable usage reports, AppStream 2.0 creates a new S3 bucket. S3BucketName *string `min:"1" type:"string"` // The schedule for generating usage reports. Schedule *string `type:"string" enum:"UsageReportSchedule"` // The errors that were returned if usage reports couldn't be generated. SubscriptionErrors []*LastReportGenerationExecutionError `type:"list"` } // String returns the string representation func (s UsageReportSubscription) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UsageReportSubscription) GoString() string { return s.String() } // SetLastGeneratedReportDate sets the LastGeneratedReportDate field's value. func (s *UsageReportSubscription) SetLastGeneratedReportDate(v time.Time) *UsageReportSubscription { s.LastGeneratedReportDate = &v return s } // SetS3BucketName sets the S3BucketName field's value. func (s *UsageReportSubscription) SetS3BucketName(v string) *UsageReportSubscription { s.S3BucketName = &v return s } // SetSchedule sets the Schedule field's value. func (s *UsageReportSubscription) SetSchedule(v string) *UsageReportSubscription { s.Schedule = &v return s } // SetSubscriptionErrors sets the SubscriptionErrors field's value. func (s *UsageReportSubscription) SetSubscriptionErrors(v []*LastReportGenerationExecutionError) *UsageReportSubscription { s.SubscriptionErrors = v return s } // Describes a user in the user pool. type User struct { _ struct{} `type:"structure"` // The ARN of the user. Arn *string `type:"string"` // The authentication type for the user. // // AuthenticationType is a required field AuthenticationType *string `type:"string" required:"true" enum:"AuthenticationType"` // The date and time the user was created in the user pool. CreatedTime *time.Time `type:"timestamp"` // Specifies whether the user in the user pool is enabled. Enabled *bool `type:"boolean"` // The first name, or given name, of the user. FirstName *string `type:"string" sensitive:"true"` // The last name, or surname, of the user. LastName *string `type:"string" sensitive:"true"` // The status of the user in the user pool. The status can be one of the following: // // * UNCONFIRMED – The user is created but not confirmed. // // * CONFIRMED – The user is confirmed. // // * ARCHIVED – The user is no longer active. // // * COMPROMISED – The user is disabled because of a potential security // threat. // // * UNKNOWN – The user status is not known. Status *string `min:"1" type:"string"` // The email address of the user. // // Users' email addresses are case-sensitive. UserName *string `min:"1" type:"string" sensitive:"true"` } // String returns the string representation func (s User) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s User) GoString() string { return s.String() } // SetArn sets the Arn field's value. func (s *User) SetArn(v string) *User { s.Arn = &v return s } // SetAuthenticationType sets the AuthenticationType field's value. func (s *User) SetAuthenticationType(v string) *User { s.AuthenticationType = &v return s } // SetCreatedTime sets the CreatedTime field's value. func (s *User) SetCreatedTime(v time.Time) *User { s.CreatedTime = &v return s } // SetEnabled sets the Enabled field's value. func (s *User) SetEnabled(v bool) *User { s.Enabled = &v return s } // SetFirstName sets the FirstName field's value. func (s *User) SetFirstName(v string) *User { s.FirstName = &v return s } // SetLastName sets the LastName field's value. func (s *User) SetLastName(v string) *User { s.LastName = &v return s } // SetStatus sets the Status field's value. func (s *User) SetStatus(v string) *User { s.Status = &v return s } // SetUserName sets the UserName field's value. func (s *User) SetUserName(v string) *User { s.UserName = &v return s } // Describes an action and whether the action is enabled or disabled for users // during their streaming sessions. type UserSetting struct { _ struct{} `type:"structure"` // The action that is enabled or disabled. // // Action is a required field Action *string `type:"string" required:"true" enum:"Action"` // Indicates whether the action is enabled or disabled. // // Permission is a required field Permission *string `type:"string" required:"true" enum:"Permission"` } // String returns the string representation func (s UserSetting) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UserSetting) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UserSetting) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UserSetting"} if s.Action == nil { invalidParams.Add(request.NewErrParamRequired("Action")) } if s.Permission == nil { invalidParams.Add(request.NewErrParamRequired("Permission")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAction sets the Action field's value. func (s *UserSetting) SetAction(v string) *UserSetting { s.Action = &v return s } // SetPermission sets the Permission field's value. func (s *UserSetting) SetPermission(v string) *UserSetting { s.Permission = &v return s } // Describes a user in the user pool and the associated stack. type UserStackAssociation struct { _ struct{} `type:"structure"` // The authentication type for the user. // // AuthenticationType is a required field AuthenticationType *string `type:"string" required:"true" enum:"AuthenticationType"` // Specifies whether a welcome email is sent to a user after the user is created // in the user pool. SendEmailNotification *bool `type:"boolean"` // The name of the stack that is associated with the user. // // StackName is a required field StackName *string `min:"1" type:"string" required:"true"` // The email address of the user who is associated with the stack. // // Users' email addresses are case-sensitive. // // UserName is a required field UserName *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation func (s UserStackAssociation) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UserStackAssociation) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UserStackAssociation) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UserStackAssociation"} if s.AuthenticationType == nil { invalidParams.Add(request.NewErrParamRequired("AuthenticationType")) } if s.StackName == nil { invalidParams.Add(request.NewErrParamRequired("StackName")) } if s.StackName != nil && len(*s.StackName) < 1 { invalidParams.Add(request.NewErrParamMinLen("StackName", 1)) } if s.UserName == nil { invalidParams.Add(request.NewErrParamRequired("UserName")) } if s.UserName != nil && len(*s.UserName) < 1 { invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAuthenticationType sets the AuthenticationType field's value. func (s *UserStackAssociation) SetAuthenticationType(v string) *UserStackAssociation { s.AuthenticationType = &v return s } // SetSendEmailNotification sets the SendEmailNotification field's value. func (s *UserStackAssociation) SetSendEmailNotification(v bool) *UserStackAssociation { s.SendEmailNotification = &v return s } // SetStackName sets the StackName field's value. func (s *UserStackAssociation) SetStackName(v string) *UserStackAssociation { s.StackName = &v return s } // SetUserName sets the UserName field's value. func (s *UserStackAssociation) SetUserName(v string) *UserStackAssociation { s.UserName = &v return s } // Describes the error that is returned when a user can’t be associated with // or disassociated from a stack. type UserStackAssociationError struct { _ struct{} `type:"structure"` // The error code for the error that is returned when a user can’t be associated // with or disassociated from a stack. ErrorCode *string `type:"string" enum:"UserStackAssociationErrorCode"` // The error message for the error that is returned when a user can’t be associated // with or disassociated from a stack. ErrorMessage *string `min:"1" type:"string"` // Information about the user and associated stack. UserStackAssociation *UserStackAssociation `type:"structure"` } // String returns the string representation func (s UserStackAssociationError) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UserStackAssociationError) GoString() string { return s.String() } // SetErrorCode sets the ErrorCode field's value. func (s *UserStackAssociationError) SetErrorCode(v string) *UserStackAssociationError { s.ErrorCode = &v return s } // SetErrorMessage sets the ErrorMessage field's value. func (s *UserStackAssociationError) SetErrorMessage(v string) *UserStackAssociationError { s.ErrorMessage = &v return s } // SetUserStackAssociation sets the UserStackAssociation field's value. func (s *UserStackAssociationError) SetUserStackAssociation(v *UserStackAssociation) *UserStackAssociationError { s.UserStackAssociation = v return s } // Describes VPC configuration information for fleets and image builders. type VpcConfig struct { _ struct{} `type:"structure"` // The identifiers of the security groups for the fleet or image builder. SecurityGroupIds []*string `type:"list"` // The identifiers of the subnets to which a network interface is attached from // the fleet instance or image builder instance. Fleet instances use one or // more subnets. Image builder instances use one subnet. SubnetIds []*string `type:"list"` } // String returns the string representation func (s VpcConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s VpcConfig) GoString() string { return s.String() } // SetSecurityGroupIds sets the SecurityGroupIds field's value. func (s *VpcConfig) SetSecurityGroupIds(v []*string) *VpcConfig { s.SecurityGroupIds = v return s } // SetSubnetIds sets the SubnetIds field's value. func (s *VpcConfig) SetSubnetIds(v []*string) *VpcConfig { s.SubnetIds = v return s } const ( // AccessEndpointTypeStreaming is a AccessEndpointType enum value AccessEndpointTypeStreaming = "STREAMING" ) // AccessEndpointType_Values returns all elements of the AccessEndpointType enum func AccessEndpointType_Values() []string { return []string{ AccessEndpointTypeStreaming, } } const ( // ActionClipboardCopyFromLocalDevice is a Action enum value ActionClipboardCopyFromLocalDevice = "CLIPBOARD_COPY_FROM_LOCAL_DEVICE" // ActionClipboardCopyToLocalDevice is a Action enum value ActionClipboardCopyToLocalDevice = "CLIPBOARD_COPY_TO_LOCAL_DEVICE" // ActionFileUpload is a Action enum value ActionFileUpload = "FILE_UPLOAD" // ActionFileDownload is a Action enum value ActionFileDownload = "FILE_DOWNLOAD" // ActionPrintingToLocalDevice is a Action enum value ActionPrintingToLocalDevice = "PRINTING_TO_LOCAL_DEVICE" // ActionDomainPasswordSignin is a Action enum value ActionDomainPasswordSignin = "DOMAIN_PASSWORD_SIGNIN" // ActionDomainSmartCardSignin is a Action enum value ActionDomainSmartCardSignin = "DOMAIN_SMART_CARD_SIGNIN" ) // Action_Values returns all elements of the Action enum func Action_Values() []string { return []string{ ActionClipboardCopyFromLocalDevice, ActionClipboardCopyToLocalDevice, ActionFileUpload, ActionFileDownload, ActionPrintingToLocalDevice, ActionDomainPasswordSignin, ActionDomainSmartCardSignin, } } const ( // AuthenticationTypeApi is a AuthenticationType enum value AuthenticationTypeApi = "API" // AuthenticationTypeSaml is a AuthenticationType enum value AuthenticationTypeSaml = "SAML" // AuthenticationTypeUserpool is a AuthenticationType enum value AuthenticationTypeUserpool = "USERPOOL" ) // AuthenticationType_Values returns all elements of the AuthenticationType enum func AuthenticationType_Values() []string { return []string{ AuthenticationTypeApi, AuthenticationTypeSaml, AuthenticationTypeUserpool, } } // The fleet attribute. const ( // FleetAttributeVpcConfiguration is a FleetAttribute enum value FleetAttributeVpcConfiguration = "VPC_CONFIGURATION" // FleetAttributeVpcConfigurationSecurityGroupIds is a FleetAttribute enum value FleetAttributeVpcConfigurationSecurityGroupIds = "VPC_CONFIGURATION_SECURITY_GROUP_IDS" // FleetAttributeDomainJoinInfo is a FleetAttribute enum value FleetAttributeDomainJoinInfo = "DOMAIN_JOIN_INFO" // FleetAttributeIamRoleArn is a FleetAttribute enum value FleetAttributeIamRoleArn = "IAM_ROLE_ARN" ) // FleetAttribute_Values returns all elements of the FleetAttribute enum func FleetAttribute_Values() []string { return []string{ FleetAttributeVpcConfiguration, FleetAttributeVpcConfigurationSecurityGroupIds, FleetAttributeDomainJoinInfo, FleetAttributeIamRoleArn, } } const ( // FleetErrorCodeIamServiceRoleMissingEniDescribeAction is a FleetErrorCode enum value FleetErrorCodeIamServiceRoleMissingEniDescribeAction = "IAM_SERVICE_ROLE_MISSING_ENI_DESCRIBE_ACTION" // FleetErrorCodeIamServiceRoleMissingEniCreateAction is a FleetErrorCode enum value FleetErrorCodeIamServiceRoleMissingEniCreateAction = "IAM_SERVICE_ROLE_MISSING_ENI_CREATE_ACTION" // FleetErrorCodeIamServiceRoleMissingEniDeleteAction is a FleetErrorCode enum value FleetErrorCodeIamServiceRoleMissingEniDeleteAction = "IAM_SERVICE_ROLE_MISSING_ENI_DELETE_ACTION" // FleetErrorCodeNetworkInterfaceLimitExceeded is a FleetErrorCode enum value FleetErrorCodeNetworkInterfaceLimitExceeded = "NETWORK_INTERFACE_LIMIT_EXCEEDED" // FleetErrorCodeInternalServiceError is a FleetErrorCode enum value FleetErrorCodeInternalServiceError = "INTERNAL_SERVICE_ERROR" // FleetErrorCodeIamServiceRoleIsMissing is a FleetErrorCode enum value FleetErrorCodeIamServiceRoleIsMissing = "IAM_SERVICE_ROLE_IS_MISSING" // FleetErrorCodeMachineRoleIsMissing is a FleetErrorCode enum value FleetErrorCodeMachineRoleIsMissing = "MACHINE_ROLE_IS_MISSING" // FleetErrorCodeStsDisabledInRegion is a FleetErrorCode enum value FleetErrorCodeStsDisabledInRegion = "STS_DISABLED_IN_REGION" // FleetErrorCodeSubnetHasInsufficientIpAddresses is a FleetErrorCode enum value FleetErrorCodeSubnetHasInsufficientIpAddresses = "SUBNET_HAS_INSUFFICIENT_IP_ADDRESSES" // FleetErrorCodeIamServiceRoleMissingDescribeSubnetAction is a FleetErrorCode enum value FleetErrorCodeIamServiceRoleMissingDescribeSubnetAction = "IAM_SERVICE_ROLE_MISSING_DESCRIBE_SUBNET_ACTION" // FleetErrorCodeSubnetNotFound is a FleetErrorCode enum value FleetErrorCodeSubnetNotFound = "SUBNET_NOT_FOUND" // FleetErrorCodeImageNotFound is a FleetErrorCode enum value FleetErrorCodeImageNotFound = "IMAGE_NOT_FOUND" // FleetErrorCodeInvalidSubnetConfiguration is a FleetErrorCode enum value FleetErrorCodeInvalidSubnetConfiguration = "INVALID_SUBNET_CONFIGURATION" // FleetErrorCodeSecurityGroupsNotFound is a FleetErrorCode enum value FleetErrorCodeSecurityGroupsNotFound = "SECURITY_GROUPS_NOT_FOUND" // FleetErrorCodeIgwNotAttached is a FleetErrorCode enum value FleetErrorCodeIgwNotAttached = "IGW_NOT_ATTACHED" // FleetErrorCodeIamServiceRoleMissingDescribeSecurityGroupsAction is a FleetErrorCode enum value FleetErrorCodeIamServiceRoleMissingDescribeSecurityGroupsAction = "IAM_SERVICE_ROLE_MISSING_DESCRIBE_SECURITY_GROUPS_ACTION" // FleetErrorCodeFleetStopped is a FleetErrorCode enum value FleetErrorCodeFleetStopped = "FLEET_STOPPED" // FleetErrorCodeFleetInstanceProvisioningFailure is a FleetErrorCode enum value FleetErrorCodeFleetInstanceProvisioningFailure = "FLEET_INSTANCE_PROVISIONING_FAILURE" // FleetErrorCodeDomainJoinErrorFileNotFound is a FleetErrorCode enum value FleetErrorCodeDomainJoinErrorFileNotFound = "DOMAIN_JOIN_ERROR_FILE_NOT_FOUND" // FleetErrorCodeDomainJoinErrorAccessDenied is a FleetErrorCode enum value FleetErrorCodeDomainJoinErrorAccessDenied = "DOMAIN_JOIN_ERROR_ACCESS_DENIED" // FleetErrorCodeDomainJoinErrorLogonFailure is a FleetErrorCode enum value FleetErrorCodeDomainJoinErrorLogonFailure = "DOMAIN_JOIN_ERROR_LOGON_FAILURE" // FleetErrorCodeDomainJoinErrorInvalidParameter is a FleetErrorCode enum value FleetErrorCodeDomainJoinErrorInvalidParameter = "DOMAIN_JOIN_ERROR_INVALID_PARAMETER" // FleetErrorCodeDomainJoinErrorMoreData is a FleetErrorCode enum value FleetErrorCodeDomainJoinErrorMoreData = "DOMAIN_JOIN_ERROR_MORE_DATA" // FleetErrorCodeDomainJoinErrorNoSuchDomain is a FleetErrorCode enum value FleetErrorCodeDomainJoinErrorNoSuchDomain = "DOMAIN_JOIN_ERROR_NO_SUCH_DOMAIN" // FleetErrorCodeDomainJoinErrorNotSupported is a FleetErrorCode enum value FleetErrorCodeDomainJoinErrorNotSupported = "DOMAIN_JOIN_ERROR_NOT_SUPPORTED" // FleetErrorCodeDomainJoinNerrInvalidWorkgroupName is a FleetErrorCode enum value FleetErrorCodeDomainJoinNerrInvalidWorkgroupName = "DOMAIN_JOIN_NERR_INVALID_WORKGROUP_NAME" // FleetErrorCodeDomainJoinNerrWorkstationNotStarted is a FleetErrorCode enum value FleetErrorCodeDomainJoinNerrWorkstationNotStarted = "DOMAIN_JOIN_NERR_WORKSTATION_NOT_STARTED" // FleetErrorCodeDomainJoinErrorDsMachineAccountQuotaExceeded is a FleetErrorCode enum value FleetErrorCodeDomainJoinErrorDsMachineAccountQuotaExceeded = "DOMAIN_JOIN_ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED" // FleetErrorCodeDomainJoinNerrPasswordExpired is a FleetErrorCode enum value FleetErrorCodeDomainJoinNerrPasswordExpired = "DOMAIN_JOIN_NERR_PASSWORD_EXPIRED" // FleetErrorCodeDomainJoinInternalServiceError is a FleetErrorCode enum value FleetErrorCodeDomainJoinInternalServiceError = "DOMAIN_JOIN_INTERNAL_SERVICE_ERROR" ) // FleetErrorCode_Values returns all elements of the FleetErrorCode enum func FleetErrorCode_Values() []string { return []string{ FleetErrorCodeIamServiceRoleMissingEniDescribeAction, FleetErrorCodeIamServiceRoleMissingEniCreateAction, FleetErrorCodeIamServiceRoleMissingEniDeleteAction, FleetErrorCodeNetworkInterfaceLimitExceeded, FleetErrorCodeInternalServiceError, FleetErrorCodeIamServiceRoleIsMissing, FleetErrorCodeMachineRoleIsMissing, FleetErrorCodeStsDisabledInRegion, FleetErrorCodeSubnetHasInsufficientIpAddresses, FleetErrorCodeIamServiceRoleMissingDescribeSubnetAction, FleetErrorCodeSubnetNotFound, FleetErrorCodeImageNotFound, FleetErrorCodeInvalidSubnetConfiguration, FleetErrorCodeSecurityGroupsNotFound, FleetErrorCodeIgwNotAttached, FleetErrorCodeIamServiceRoleMissingDescribeSecurityGroupsAction, FleetErrorCodeFleetStopped, FleetErrorCodeFleetInstanceProvisioningFailure, FleetErrorCodeDomainJoinErrorFileNotFound, FleetErrorCodeDomainJoinErrorAccessDenied, FleetErrorCodeDomainJoinErrorLogonFailure, FleetErrorCodeDomainJoinErrorInvalidParameter, FleetErrorCodeDomainJoinErrorMoreData, FleetErrorCodeDomainJoinErrorNoSuchDomain, FleetErrorCodeDomainJoinErrorNotSupported, FleetErrorCodeDomainJoinNerrInvalidWorkgroupName, FleetErrorCodeDomainJoinNerrWorkstationNotStarted, FleetErrorCodeDomainJoinErrorDsMachineAccountQuotaExceeded, FleetErrorCodeDomainJoinNerrPasswordExpired, FleetErrorCodeDomainJoinInternalServiceError, } } const ( // FleetStateStarting is a FleetState enum value FleetStateStarting = "STARTING" // FleetStateRunning is a FleetState enum value FleetStateRunning = "RUNNING" // FleetStateStopping is a FleetState enum value FleetStateStopping = "STOPPING" // FleetStateStopped is a FleetState enum value FleetStateStopped = "STOPPED" ) // FleetState_Values returns all elements of the FleetState enum func FleetState_Values() []string { return []string{ FleetStateStarting, FleetStateRunning, FleetStateStopping, FleetStateStopped, } } const ( // FleetTypeAlwaysOn is a FleetType enum value FleetTypeAlwaysOn = "ALWAYS_ON" // FleetTypeOnDemand is a FleetType enum value FleetTypeOnDemand = "ON_DEMAND" ) // FleetType_Values returns all elements of the FleetType enum func FleetType_Values() []string { return []string{ FleetTypeAlwaysOn, FleetTypeOnDemand, } } const ( // ImageBuilderStatePending is a ImageBuilderState enum value ImageBuilderStatePending = "PENDING" // ImageBuilderStateUpdatingAgent is a ImageBuilderState enum value ImageBuilderStateUpdatingAgent = "UPDATING_AGENT" // ImageBuilderStateRunning is a ImageBuilderState enum value ImageBuilderStateRunning = "RUNNING" // ImageBuilderStateStopping is a ImageBuilderState enum value ImageBuilderStateStopping = "STOPPING" // ImageBuilderStateStopped is a ImageBuilderState enum value ImageBuilderStateStopped = "STOPPED" // ImageBuilderStateRebooting is a ImageBuilderState enum value ImageBuilderStateRebooting = "REBOOTING" // ImageBuilderStateSnapshotting is a ImageBuilderState enum value ImageBuilderStateSnapshotting = "SNAPSHOTTING" // ImageBuilderStateDeleting is a ImageBuilderState enum value ImageBuilderStateDeleting = "DELETING" // ImageBuilderStateFailed is a ImageBuilderState enum value ImageBuilderStateFailed = "FAILED" // ImageBuilderStateUpdating is a ImageBuilderState enum value ImageBuilderStateUpdating = "UPDATING" // ImageBuilderStatePendingQualification is a ImageBuilderState enum value ImageBuilderStatePendingQualification = "PENDING_QUALIFICATION" ) // ImageBuilderState_Values returns all elements of the ImageBuilderState enum func ImageBuilderState_Values() []string { return []string{ ImageBuilderStatePending, ImageBuilderStateUpdatingAgent, ImageBuilderStateRunning, ImageBuilderStateStopping, ImageBuilderStateStopped, ImageBuilderStateRebooting, ImageBuilderStateSnapshotting, ImageBuilderStateDeleting, ImageBuilderStateFailed, ImageBuilderStateUpdating, ImageBuilderStatePendingQualification, } } const ( // ImageBuilderStateChangeReasonCodeInternalError is a ImageBuilderStateChangeReasonCode enum value ImageBuilderStateChangeReasonCodeInternalError = "INTERNAL_ERROR" // ImageBuilderStateChangeReasonCodeImageUnavailable is a ImageBuilderStateChangeReasonCode enum value ImageBuilderStateChangeReasonCodeImageUnavailable = "IMAGE_UNAVAILABLE" ) // ImageBuilderStateChangeReasonCode_Values returns all elements of the ImageBuilderStateChangeReasonCode enum func ImageBuilderStateChangeReasonCode_Values() []string { return []string{ ImageBuilderStateChangeReasonCodeInternalError, ImageBuilderStateChangeReasonCodeImageUnavailable, } } const ( // ImageStatePending is a ImageState enum value ImageStatePending = "PENDING" // ImageStateAvailable is a ImageState enum value ImageStateAvailable = "AVAILABLE" // ImageStateFailed is a ImageState enum value ImageStateFailed = "FAILED" // ImageStateCopying is a ImageState enum value ImageStateCopying = "COPYING" // ImageStateDeleting is a ImageState enum value ImageStateDeleting = "DELETING" // ImageStateCreating is a ImageState enum value ImageStateCreating = "CREATING" // ImageStateImporting is a ImageState enum value ImageStateImporting = "IMPORTING" ) // ImageState_Values returns all elements of the ImageState enum func ImageState_Values() []string { return []string{ ImageStatePending, ImageStateAvailable, ImageStateFailed, ImageStateCopying, ImageStateDeleting, ImageStateCreating, ImageStateImporting, } } const ( // ImageStateChangeReasonCodeInternalError is a ImageStateChangeReasonCode enum value ImageStateChangeReasonCodeInternalError = "INTERNAL_ERROR" // ImageStateChangeReasonCodeImageBuilderNotAvailable is a ImageStateChangeReasonCode enum value ImageStateChangeReasonCodeImageBuilderNotAvailable = "IMAGE_BUILDER_NOT_AVAILABLE" // ImageStateChangeReasonCodeImageCopyFailure is a ImageStateChangeReasonCode enum value ImageStateChangeReasonCodeImageCopyFailure = "IMAGE_COPY_FAILURE" ) // ImageStateChangeReasonCode_Values returns all elements of the ImageStateChangeReasonCode enum func ImageStateChangeReasonCode_Values() []string { return []string{ ImageStateChangeReasonCodeInternalError, ImageStateChangeReasonCodeImageBuilderNotAvailable, ImageStateChangeReasonCodeImageCopyFailure, } } const ( // MessageActionSuppress is a MessageAction enum value MessageActionSuppress = "SUPPRESS" // MessageActionResend is a MessageAction enum value MessageActionResend = "RESEND" ) // MessageAction_Values returns all elements of the MessageAction enum func MessageAction_Values() []string { return []string{ MessageActionSuppress, MessageActionResend, } } const ( // PermissionEnabled is a Permission enum value PermissionEnabled = "ENABLED" // PermissionDisabled is a Permission enum value PermissionDisabled = "DISABLED" ) // Permission_Values returns all elements of the Permission enum func Permission_Values() []string { return []string{ PermissionEnabled, PermissionDisabled, } } const ( // PlatformTypeWindows is a PlatformType enum value PlatformTypeWindows = "WINDOWS" // PlatformTypeWindowsServer2016 is a PlatformType enum value PlatformTypeWindowsServer2016 = "WINDOWS_SERVER_2016" // PlatformTypeWindowsServer2019 is a PlatformType enum value PlatformTypeWindowsServer2019 = "WINDOWS_SERVER_2019" ) // PlatformType_Values returns all elements of the PlatformType enum func PlatformType_Values() []string { return []string{ PlatformTypeWindows, PlatformTypeWindowsServer2016, PlatformTypeWindowsServer2019, } } const ( // SessionConnectionStateConnected is a SessionConnectionState enum value SessionConnectionStateConnected = "CONNECTED" // SessionConnectionStateNotConnected is a SessionConnectionState enum value SessionConnectionStateNotConnected = "NOT_CONNECTED" ) // SessionConnectionState_Values returns all elements of the SessionConnectionState enum func SessionConnectionState_Values() []string { return []string{ SessionConnectionStateConnected, SessionConnectionStateNotConnected, } } // Possible values for the state of a streaming session. const ( // SessionStateActive is a SessionState enum value SessionStateActive = "ACTIVE" // SessionStatePending is a SessionState enum value SessionStatePending = "PENDING" // SessionStateExpired is a SessionState enum value SessionStateExpired = "EXPIRED" ) // SessionState_Values returns all elements of the SessionState enum func SessionState_Values() []string { return []string{ SessionStateActive, SessionStatePending, SessionStateExpired, } } const ( // StackAttributeStorageConnectors is a StackAttribute enum value StackAttributeStorageConnectors = "STORAGE_CONNECTORS" // StackAttributeStorageConnectorHomefolders is a StackAttribute enum value StackAttributeStorageConnectorHomefolders = "STORAGE_CONNECTOR_HOMEFOLDERS" // StackAttributeStorageConnectorGoogleDrive is a StackAttribute enum value StackAttributeStorageConnectorGoogleDrive = "STORAGE_CONNECTOR_GOOGLE_DRIVE" // StackAttributeStorageConnectorOneDrive is a StackAttribute enum value StackAttributeStorageConnectorOneDrive = "STORAGE_CONNECTOR_ONE_DRIVE" // StackAttributeRedirectUrl is a StackAttribute enum value StackAttributeRedirectUrl = "REDIRECT_URL" // StackAttributeFeedbackUrl is a StackAttribute enum value StackAttributeFeedbackUrl = "FEEDBACK_URL" // StackAttributeThemeName is a StackAttribute enum value StackAttributeThemeName = "THEME_NAME" // StackAttributeUserSettings is a StackAttribute enum value StackAttributeUserSettings = "USER_SETTINGS" // StackAttributeEmbedHostDomains is a StackAttribute enum value StackAttributeEmbedHostDomains = "EMBED_HOST_DOMAINS" // StackAttributeIamRoleArn is a StackAttribute enum value StackAttributeIamRoleArn = "IAM_ROLE_ARN" // StackAttributeAccessEndpoints is a StackAttribute enum value StackAttributeAccessEndpoints = "ACCESS_ENDPOINTS" ) // StackAttribute_Values returns all elements of the StackAttribute enum func StackAttribute_Values() []string { return []string{ StackAttributeStorageConnectors, StackAttributeStorageConnectorHomefolders, StackAttributeStorageConnectorGoogleDrive, StackAttributeStorageConnectorOneDrive, StackAttributeRedirectUrl, StackAttributeFeedbackUrl, StackAttributeThemeName, StackAttributeUserSettings, StackAttributeEmbedHostDomains, StackAttributeIamRoleArn, StackAttributeAccessEndpoints, } } const ( // StackErrorCodeStorageConnectorError is a StackErrorCode enum value StackErrorCodeStorageConnectorError = "STORAGE_CONNECTOR_ERROR" // StackErrorCodeInternalServiceError is a StackErrorCode enum value StackErrorCodeInternalServiceError = "INTERNAL_SERVICE_ERROR" ) // StackErrorCode_Values returns all elements of the StackErrorCode enum func StackErrorCode_Values() []string { return []string{ StackErrorCodeStorageConnectorError, StackErrorCodeInternalServiceError, } } // The type of storage connector. const ( // StorageConnectorTypeHomefolders is a StorageConnectorType enum value StorageConnectorTypeHomefolders = "HOMEFOLDERS" // StorageConnectorTypeGoogleDrive is a StorageConnectorType enum value StorageConnectorTypeGoogleDrive = "GOOGLE_DRIVE" // StorageConnectorTypeOneDrive is a StorageConnectorType enum value StorageConnectorTypeOneDrive = "ONE_DRIVE" ) // StorageConnectorType_Values returns all elements of the StorageConnectorType enum func StorageConnectorType_Values() []string { return []string{ StorageConnectorTypeHomefolders, StorageConnectorTypeGoogleDrive, StorageConnectorTypeOneDrive, } } const ( // StreamViewApp is a StreamView enum value StreamViewApp = "APP" // StreamViewDesktop is a StreamView enum value StreamViewDesktop = "DESKTOP" ) // StreamView_Values returns all elements of the StreamView enum func StreamView_Values() []string { return []string{ StreamViewApp, StreamViewDesktop, } } const ( // UsageReportExecutionErrorCodeResourceNotFound is a UsageReportExecutionErrorCode enum value UsageReportExecutionErrorCodeResourceNotFound = "RESOURCE_NOT_FOUND" // UsageReportExecutionErrorCodeAccessDenied is a UsageReportExecutionErrorCode enum value UsageReportExecutionErrorCodeAccessDenied = "ACCESS_DENIED" // UsageReportExecutionErrorCodeInternalServiceError is a UsageReportExecutionErrorCode enum value UsageReportExecutionErrorCodeInternalServiceError = "INTERNAL_SERVICE_ERROR" ) // UsageReportExecutionErrorCode_Values returns all elements of the UsageReportExecutionErrorCode enum func UsageReportExecutionErrorCode_Values() []string { return []string{ UsageReportExecutionErrorCodeResourceNotFound, UsageReportExecutionErrorCodeAccessDenied, UsageReportExecutionErrorCodeInternalServiceError, } } const ( // UsageReportScheduleDaily is a UsageReportSchedule enum value UsageReportScheduleDaily = "DAILY" ) // UsageReportSchedule_Values returns all elements of the UsageReportSchedule enum func UsageReportSchedule_Values() []string { return []string{ UsageReportScheduleDaily, } } const ( // UserStackAssociationErrorCodeStackNotFound is a UserStackAssociationErrorCode enum value UserStackAssociationErrorCodeStackNotFound = "STACK_NOT_FOUND" // UserStackAssociationErrorCodeUserNameNotFound is a UserStackAssociationErrorCode enum value UserStackAssociationErrorCodeUserNameNotFound = "USER_NAME_NOT_FOUND" // UserStackAssociationErrorCodeDirectoryNotFound is a UserStackAssociationErrorCode enum value UserStackAssociationErrorCodeDirectoryNotFound = "DIRECTORY_NOT_FOUND" // UserStackAssociationErrorCodeInternalError is a UserStackAssociationErrorCode enum value UserStackAssociationErrorCodeInternalError = "INTERNAL_ERROR" ) // UserStackAssociationErrorCode_Values returns all elements of the UserStackAssociationErrorCode enum func UserStackAssociationErrorCode_Values() []string { return []string{ UserStackAssociationErrorCodeStackNotFound, UserStackAssociationErrorCodeUserNameNotFound, UserStackAssociationErrorCodeDirectoryNotFound, UserStackAssociationErrorCodeInternalError, } } const ( // VisibilityTypePublic is a VisibilityType enum value VisibilityTypePublic = "PUBLIC" // VisibilityTypePrivate is a VisibilityType enum value VisibilityTypePrivate = "PRIVATE" // VisibilityTypeShared is a VisibilityType enum value VisibilityTypeShared = "SHARED" ) // VisibilityType_Values returns all elements of the VisibilityType enum func VisibilityType_Values() []string { return []string{ VisibilityTypePublic, VisibilityTypePrivate, VisibilityTypeShared, } }
12,849
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package appstream provides the client and types for making API // requests to Amazon AppStream. // // This is the Amazon AppStream 2.0 API Reference. This documentation provides // descriptions and syntax for each of the actions and data types in AppStream // 2.0. AppStream 2.0 is a fully managed, secure application streaming service // that lets you stream desktop applications to users without rewriting applications. // AppStream 2.0 manages the AWS resources that are required to host and run // your applications, scales automatically, and provides access to your users // on demand. // // You can call the AppStream 2.0 API operations by using an interface VPC endpoint // (interface endpoint). For more information, see Access AppStream 2.0 API // Operations and CLI Commands Through an Interface VPC Endpoint (https://docs.aws.amazon.com/appstream2/latest/developerguide/access-api-cli-through-interface-vpc-endpoint.html) // in the Amazon AppStream 2.0 Administration Guide. // // To learn more about AppStream 2.0, see the following resources: // // * Amazon AppStream 2.0 product page (http://aws.amazon.com/appstream2) // // * Amazon AppStream 2.0 documentation (http://aws.amazon.com/documentation/appstream2) // // See https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01 for more information on this service. // // See appstream package documentation for more information. // https://docs.aws.amazon.com/sdk-for-go/api/service/appstream/ // // Using the Client // // To contact Amazon AppStream 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 Amazon AppStream client AppStream for more // information on creating client for this service. // https://docs.aws.amazon.com/sdk-for-go/api/service/appstream/#New package appstream
46
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package appstream import ( "github.com/aws/aws-sdk-go/private/protocol" ) const ( // ErrCodeConcurrentModificationException for service response error code // "ConcurrentModificationException". // // An API error occurred. Wait a few minutes and try again. ErrCodeConcurrentModificationException = "ConcurrentModificationException" // ErrCodeIncompatibleImageException for service response error code // "IncompatibleImageException". // // The image can't be updated because it's not compatible for updates. ErrCodeIncompatibleImageException = "IncompatibleImageException" // ErrCodeInvalidAccountStatusException for service response error code // "InvalidAccountStatusException". // // The resource cannot be created because your AWS account is suspended. For // assistance, contact AWS Support. ErrCodeInvalidAccountStatusException = "InvalidAccountStatusException" // ErrCodeInvalidParameterCombinationException for service response error code // "InvalidParameterCombinationException". // // Indicates an incorrect combination of parameters, or a missing parameter. ErrCodeInvalidParameterCombinationException = "InvalidParameterCombinationException" // ErrCodeInvalidRoleException for service response error code // "InvalidRoleException". // // The specified role is invalid. ErrCodeInvalidRoleException = "InvalidRoleException" // ErrCodeLimitExceededException for service response error code // "LimitExceededException". // // The requested limit exceeds the permitted limit for an account. ErrCodeLimitExceededException = "LimitExceededException" // ErrCodeOperationNotPermittedException for service response error code // "OperationNotPermittedException". // // The attempted operation is not permitted. ErrCodeOperationNotPermittedException = "OperationNotPermittedException" // ErrCodeRequestLimitExceededException for service response error code // "RequestLimitExceededException". // // AppStream 2.0 can’t process the request right now because the Describe // calls from your AWS account are being throttled by Amazon EC2. Try again // later. ErrCodeRequestLimitExceededException = "RequestLimitExceededException" // ErrCodeResourceAlreadyExistsException for service response error code // "ResourceAlreadyExistsException". // // The specified resource already exists. ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException" // ErrCodeResourceInUseException for service response error code // "ResourceInUseException". // // The specified resource is in use. ErrCodeResourceInUseException = "ResourceInUseException" // ErrCodeResourceNotAvailableException for service response error code // "ResourceNotAvailableException". // // The specified resource exists and is not in use, but isn't available. ErrCodeResourceNotAvailableException = "ResourceNotAvailableException" // ErrCodeResourceNotFoundException for service response error code // "ResourceNotFoundException". // // The specified resource was not found. ErrCodeResourceNotFoundException = "ResourceNotFoundException" ) var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "ConcurrentModificationException": newErrorConcurrentModificationException, "IncompatibleImageException": newErrorIncompatibleImageException, "InvalidAccountStatusException": newErrorInvalidAccountStatusException, "InvalidParameterCombinationException": newErrorInvalidParameterCombinationException, "InvalidRoleException": newErrorInvalidRoleException, "LimitExceededException": newErrorLimitExceededException, "OperationNotPermittedException": newErrorOperationNotPermittedException, "RequestLimitExceededException": newErrorRequestLimitExceededException, "ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException, "ResourceInUseException": newErrorResourceInUseException, "ResourceNotAvailableException": newErrorResourceNotAvailableException, "ResourceNotFoundException": newErrorResourceNotFoundException, }
101
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // +build go1.15,integration package appstream_test import ( "context" "testing" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/awstesting/integration" "github.com/aws/aws-sdk-go/service/appstream" ) var _ aws.Config var _ awserr.Error var _ request.Request func TestInteg_00_DescribeStacks(t *testing.T) { ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) defer cancelFn() sess := integration.SessionWithDefaultRegion("us-west-2") svc := appstream.New(sess) params := &appstream.DescribeStacksInput{} _, err := svc.DescribeStacksWithContext(ctx, params, func(r *request.Request) { r.Handlers.Validate.RemoveByName("core.ValidateParametersHandler") }) if err != nil { t.Errorf("expect no error, got %v", err) } }
37
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package appstream 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" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) // AppStream provides the API operation methods for making requests to // Amazon AppStream. See this package's package overview docs // for details on the service. // // AppStream methods are safe to use concurrently. It is not safe to // modify mutate any of the struct's properties though. type AppStream 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 = "appstream2" // Name of service. EndpointsID = ServiceName // ID to lookup a service endpoint with. ServiceID = "AppStream" // ServiceID is a unique identifier of a specific service. ) // New creates a new instance of the AppStream 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: // mySession := session.Must(session.NewSession()) // // // Create a AppStream client from just a session. // svc := appstream.New(mySession) // // // Create a AppStream client with additional configuration // svc := appstream.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *AppStream { c := p.ClientConfig(EndpointsID, cfgs...) if c.SigningNameDerived || len(c.SigningName) == 0 { c.SigningName = "appstream" } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *AppStream { svc := &AppStream{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, ServiceID: ServiceID, SigningName: signingName, SigningRegion: signingRegion, PartitionID: partitionID, Endpoint: endpoint, APIVersion: "2016-12-01", JSONVersion: "1.1", TargetPrefix: "PhotonAdminProxyService", }, handlers, ), } // Handlers svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) svc.Handlers.UnmarshalError.PushBackNamed( protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), ) // Run custom client initialization if present if initClient != nil { initClient(svc.Client) } return svc } // newRequest creates a new request for a AppStream operation and runs any // custom request initialization. func (c *AppStream) 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 }
107
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package appstream import ( "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/request" ) // WaitUntilFleetStarted uses the Amazon AppStream API operation // DescribeFleets to wait for a condition to be met before returning. // If the condition is not met within the max attempt window, an error will // be returned. func (c *AppStream) WaitUntilFleetStarted(input *DescribeFleetsInput) error { return c.WaitUntilFleetStartedWithContext(aws.BackgroundContext(), input) } // WaitUntilFleetStartedWithContext is an extended version of WaitUntilFleetStarted. // With the support for passing in a context and options to configure the // Waiter and the underlying request options. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) WaitUntilFleetStartedWithContext(ctx aws.Context, input *DescribeFleetsInput, opts ...request.WaiterOption) error { w := request.Waiter{ Name: "WaitUntilFleetStarted", MaxAttempts: 40, Delay: request.ConstantWaiterDelay(30 * time.Second), Acceptors: []request.WaiterAcceptor{ { State: request.SuccessWaiterState, Matcher: request.PathAllWaiterMatch, Argument: "Fleets[].State", Expected: "ACTIVE", }, { State: request.FailureWaiterState, Matcher: request.PathAnyWaiterMatch, Argument: "Fleets[].State", Expected: "PENDING_DEACTIVATE", }, { State: request.FailureWaiterState, Matcher: request.PathAnyWaiterMatch, Argument: "Fleets[].State", Expected: "INACTIVE", }, }, Logger: c.Config.Logger, NewRequest: func(opts []request.Option) (*request.Request, error) { var inCpy *DescribeFleetsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.DescribeFleetsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } w.ApplyOptions(opts...) return w.WaitWithContext(ctx) } // WaitUntilFleetStopped uses the Amazon AppStream API operation // DescribeFleets to wait for a condition to be met before returning. // If the condition is not met within the max attempt window, an error will // be returned. func (c *AppStream) WaitUntilFleetStopped(input *DescribeFleetsInput) error { return c.WaitUntilFleetStoppedWithContext(aws.BackgroundContext(), input) } // WaitUntilFleetStoppedWithContext is an extended version of WaitUntilFleetStopped. // With the support for passing in a context and options to configure the // Waiter and the underlying request options. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppStream) WaitUntilFleetStoppedWithContext(ctx aws.Context, input *DescribeFleetsInput, opts ...request.WaiterOption) error { w := request.Waiter{ Name: "WaitUntilFleetStopped", MaxAttempts: 40, Delay: request.ConstantWaiterDelay(30 * time.Second), Acceptors: []request.WaiterAcceptor{ { State: request.SuccessWaiterState, Matcher: request.PathAllWaiterMatch, Argument: "Fleets[].State", Expected: "INACTIVE", }, { State: request.FailureWaiterState, Matcher: request.PathAnyWaiterMatch, Argument: "Fleets[].State", Expected: "PENDING_ACTIVATE", }, { State: request.FailureWaiterState, Matcher: request.PathAnyWaiterMatch, Argument: "Fleets[].State", Expected: "ACTIVE", }, }, Logger: c.Config.Logger, NewRequest: func(opts []request.Option) (*request.Request, error) { var inCpy *DescribeFleetsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.DescribeFleetsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } w.ApplyOptions(opts...) return w.WaitWithContext(ctx) }
123
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package appstreamiface provides an interface to enable mocking the Amazon AppStream 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 appstreamiface import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/service/appstream" ) // AppStreamAPI provides an interface to enable mocking the // appstream.AppStream 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 // // Amazon AppStream. // func myFunc(svc appstreamiface.AppStreamAPI) bool { // // Make svc.AssociateFleet request // } // // func main() { // sess := session.New() // svc := appstream.New(sess) // // myFunc(svc) // } // // In your _test.go file: // // // Define a mock struct to be used in your unit tests of myFunc. // type mockAppStreamClient struct { // appstreamiface.AppStreamAPI // } // func (m *mockAppStreamClient) AssociateFleet(input *appstream.AssociateFleetInput) (*appstream.AssociateFleetOutput, error) { // // mock response/functionality // } // // func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockAppStreamClient{} // // 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 AppStreamAPI interface { AssociateFleet(*appstream.AssociateFleetInput) (*appstream.AssociateFleetOutput, error) AssociateFleetWithContext(aws.Context, *appstream.AssociateFleetInput, ...request.Option) (*appstream.AssociateFleetOutput, error) AssociateFleetRequest(*appstream.AssociateFleetInput) (*request.Request, *appstream.AssociateFleetOutput) BatchAssociateUserStack(*appstream.BatchAssociateUserStackInput) (*appstream.BatchAssociateUserStackOutput, error) BatchAssociateUserStackWithContext(aws.Context, *appstream.BatchAssociateUserStackInput, ...request.Option) (*appstream.BatchAssociateUserStackOutput, error) BatchAssociateUserStackRequest(*appstream.BatchAssociateUserStackInput) (*request.Request, *appstream.BatchAssociateUserStackOutput) BatchDisassociateUserStack(*appstream.BatchDisassociateUserStackInput) (*appstream.BatchDisassociateUserStackOutput, error) BatchDisassociateUserStackWithContext(aws.Context, *appstream.BatchDisassociateUserStackInput, ...request.Option) (*appstream.BatchDisassociateUserStackOutput, error) BatchDisassociateUserStackRequest(*appstream.BatchDisassociateUserStackInput) (*request.Request, *appstream.BatchDisassociateUserStackOutput) CopyImage(*appstream.CopyImageInput) (*appstream.CopyImageOutput, error) CopyImageWithContext(aws.Context, *appstream.CopyImageInput, ...request.Option) (*appstream.CopyImageOutput, error) CopyImageRequest(*appstream.CopyImageInput) (*request.Request, *appstream.CopyImageOutput) CreateDirectoryConfig(*appstream.CreateDirectoryConfigInput) (*appstream.CreateDirectoryConfigOutput, error) CreateDirectoryConfigWithContext(aws.Context, *appstream.CreateDirectoryConfigInput, ...request.Option) (*appstream.CreateDirectoryConfigOutput, error) CreateDirectoryConfigRequest(*appstream.CreateDirectoryConfigInput) (*request.Request, *appstream.CreateDirectoryConfigOutput) CreateFleet(*appstream.CreateFleetInput) (*appstream.CreateFleetOutput, error) CreateFleetWithContext(aws.Context, *appstream.CreateFleetInput, ...request.Option) (*appstream.CreateFleetOutput, error) CreateFleetRequest(*appstream.CreateFleetInput) (*request.Request, *appstream.CreateFleetOutput) CreateImageBuilder(*appstream.CreateImageBuilderInput) (*appstream.CreateImageBuilderOutput, error) CreateImageBuilderWithContext(aws.Context, *appstream.CreateImageBuilderInput, ...request.Option) (*appstream.CreateImageBuilderOutput, error) CreateImageBuilderRequest(*appstream.CreateImageBuilderInput) (*request.Request, *appstream.CreateImageBuilderOutput) CreateImageBuilderStreamingURL(*appstream.CreateImageBuilderStreamingURLInput) (*appstream.CreateImageBuilderStreamingURLOutput, error) CreateImageBuilderStreamingURLWithContext(aws.Context, *appstream.CreateImageBuilderStreamingURLInput, ...request.Option) (*appstream.CreateImageBuilderStreamingURLOutput, error) CreateImageBuilderStreamingURLRequest(*appstream.CreateImageBuilderStreamingURLInput) (*request.Request, *appstream.CreateImageBuilderStreamingURLOutput) CreateStack(*appstream.CreateStackInput) (*appstream.CreateStackOutput, error) CreateStackWithContext(aws.Context, *appstream.CreateStackInput, ...request.Option) (*appstream.CreateStackOutput, error) CreateStackRequest(*appstream.CreateStackInput) (*request.Request, *appstream.CreateStackOutput) CreateStreamingURL(*appstream.CreateStreamingURLInput) (*appstream.CreateStreamingURLOutput, error) CreateStreamingURLWithContext(aws.Context, *appstream.CreateStreamingURLInput, ...request.Option) (*appstream.CreateStreamingURLOutput, error) CreateStreamingURLRequest(*appstream.CreateStreamingURLInput) (*request.Request, *appstream.CreateStreamingURLOutput) CreateUpdatedImage(*appstream.CreateUpdatedImageInput) (*appstream.CreateUpdatedImageOutput, error) CreateUpdatedImageWithContext(aws.Context, *appstream.CreateUpdatedImageInput, ...request.Option) (*appstream.CreateUpdatedImageOutput, error) CreateUpdatedImageRequest(*appstream.CreateUpdatedImageInput) (*request.Request, *appstream.CreateUpdatedImageOutput) CreateUsageReportSubscription(*appstream.CreateUsageReportSubscriptionInput) (*appstream.CreateUsageReportSubscriptionOutput, error) CreateUsageReportSubscriptionWithContext(aws.Context, *appstream.CreateUsageReportSubscriptionInput, ...request.Option) (*appstream.CreateUsageReportSubscriptionOutput, error) CreateUsageReportSubscriptionRequest(*appstream.CreateUsageReportSubscriptionInput) (*request.Request, *appstream.CreateUsageReportSubscriptionOutput) CreateUser(*appstream.CreateUserInput) (*appstream.CreateUserOutput, error) CreateUserWithContext(aws.Context, *appstream.CreateUserInput, ...request.Option) (*appstream.CreateUserOutput, error) CreateUserRequest(*appstream.CreateUserInput) (*request.Request, *appstream.CreateUserOutput) DeleteDirectoryConfig(*appstream.DeleteDirectoryConfigInput) (*appstream.DeleteDirectoryConfigOutput, error) DeleteDirectoryConfigWithContext(aws.Context, *appstream.DeleteDirectoryConfigInput, ...request.Option) (*appstream.DeleteDirectoryConfigOutput, error) DeleteDirectoryConfigRequest(*appstream.DeleteDirectoryConfigInput) (*request.Request, *appstream.DeleteDirectoryConfigOutput) DeleteFleet(*appstream.DeleteFleetInput) (*appstream.DeleteFleetOutput, error) DeleteFleetWithContext(aws.Context, *appstream.DeleteFleetInput, ...request.Option) (*appstream.DeleteFleetOutput, error) DeleteFleetRequest(*appstream.DeleteFleetInput) (*request.Request, *appstream.DeleteFleetOutput) DeleteImage(*appstream.DeleteImageInput) (*appstream.DeleteImageOutput, error) DeleteImageWithContext(aws.Context, *appstream.DeleteImageInput, ...request.Option) (*appstream.DeleteImageOutput, error) DeleteImageRequest(*appstream.DeleteImageInput) (*request.Request, *appstream.DeleteImageOutput) DeleteImageBuilder(*appstream.DeleteImageBuilderInput) (*appstream.DeleteImageBuilderOutput, error) DeleteImageBuilderWithContext(aws.Context, *appstream.DeleteImageBuilderInput, ...request.Option) (*appstream.DeleteImageBuilderOutput, error) DeleteImageBuilderRequest(*appstream.DeleteImageBuilderInput) (*request.Request, *appstream.DeleteImageBuilderOutput) DeleteImagePermissions(*appstream.DeleteImagePermissionsInput) (*appstream.DeleteImagePermissionsOutput, error) DeleteImagePermissionsWithContext(aws.Context, *appstream.DeleteImagePermissionsInput, ...request.Option) (*appstream.DeleteImagePermissionsOutput, error) DeleteImagePermissionsRequest(*appstream.DeleteImagePermissionsInput) (*request.Request, *appstream.DeleteImagePermissionsOutput) DeleteStack(*appstream.DeleteStackInput) (*appstream.DeleteStackOutput, error) DeleteStackWithContext(aws.Context, *appstream.DeleteStackInput, ...request.Option) (*appstream.DeleteStackOutput, error) DeleteStackRequest(*appstream.DeleteStackInput) (*request.Request, *appstream.DeleteStackOutput) DeleteUsageReportSubscription(*appstream.DeleteUsageReportSubscriptionInput) (*appstream.DeleteUsageReportSubscriptionOutput, error) DeleteUsageReportSubscriptionWithContext(aws.Context, *appstream.DeleteUsageReportSubscriptionInput, ...request.Option) (*appstream.DeleteUsageReportSubscriptionOutput, error) DeleteUsageReportSubscriptionRequest(*appstream.DeleteUsageReportSubscriptionInput) (*request.Request, *appstream.DeleteUsageReportSubscriptionOutput) DeleteUser(*appstream.DeleteUserInput) (*appstream.DeleteUserOutput, error) DeleteUserWithContext(aws.Context, *appstream.DeleteUserInput, ...request.Option) (*appstream.DeleteUserOutput, error) DeleteUserRequest(*appstream.DeleteUserInput) (*request.Request, *appstream.DeleteUserOutput) DescribeDirectoryConfigs(*appstream.DescribeDirectoryConfigsInput) (*appstream.DescribeDirectoryConfigsOutput, error) DescribeDirectoryConfigsWithContext(aws.Context, *appstream.DescribeDirectoryConfigsInput, ...request.Option) (*appstream.DescribeDirectoryConfigsOutput, error) DescribeDirectoryConfigsRequest(*appstream.DescribeDirectoryConfigsInput) (*request.Request, *appstream.DescribeDirectoryConfigsOutput) DescribeFleets(*appstream.DescribeFleetsInput) (*appstream.DescribeFleetsOutput, error) DescribeFleetsWithContext(aws.Context, *appstream.DescribeFleetsInput, ...request.Option) (*appstream.DescribeFleetsOutput, error) DescribeFleetsRequest(*appstream.DescribeFleetsInput) (*request.Request, *appstream.DescribeFleetsOutput) DescribeImageBuilders(*appstream.DescribeImageBuildersInput) (*appstream.DescribeImageBuildersOutput, error) DescribeImageBuildersWithContext(aws.Context, *appstream.DescribeImageBuildersInput, ...request.Option) (*appstream.DescribeImageBuildersOutput, error) DescribeImageBuildersRequest(*appstream.DescribeImageBuildersInput) (*request.Request, *appstream.DescribeImageBuildersOutput) DescribeImagePermissions(*appstream.DescribeImagePermissionsInput) (*appstream.DescribeImagePermissionsOutput, error) DescribeImagePermissionsWithContext(aws.Context, *appstream.DescribeImagePermissionsInput, ...request.Option) (*appstream.DescribeImagePermissionsOutput, error) DescribeImagePermissionsRequest(*appstream.DescribeImagePermissionsInput) (*request.Request, *appstream.DescribeImagePermissionsOutput) DescribeImagePermissionsPages(*appstream.DescribeImagePermissionsInput, func(*appstream.DescribeImagePermissionsOutput, bool) bool) error DescribeImagePermissionsPagesWithContext(aws.Context, *appstream.DescribeImagePermissionsInput, func(*appstream.DescribeImagePermissionsOutput, bool) bool, ...request.Option) error DescribeImages(*appstream.DescribeImagesInput) (*appstream.DescribeImagesOutput, error) DescribeImagesWithContext(aws.Context, *appstream.DescribeImagesInput, ...request.Option) (*appstream.DescribeImagesOutput, error) DescribeImagesRequest(*appstream.DescribeImagesInput) (*request.Request, *appstream.DescribeImagesOutput) DescribeImagesPages(*appstream.DescribeImagesInput, func(*appstream.DescribeImagesOutput, bool) bool) error DescribeImagesPagesWithContext(aws.Context, *appstream.DescribeImagesInput, func(*appstream.DescribeImagesOutput, bool) bool, ...request.Option) error DescribeSessions(*appstream.DescribeSessionsInput) (*appstream.DescribeSessionsOutput, error) DescribeSessionsWithContext(aws.Context, *appstream.DescribeSessionsInput, ...request.Option) (*appstream.DescribeSessionsOutput, error) DescribeSessionsRequest(*appstream.DescribeSessionsInput) (*request.Request, *appstream.DescribeSessionsOutput) DescribeStacks(*appstream.DescribeStacksInput) (*appstream.DescribeStacksOutput, error) DescribeStacksWithContext(aws.Context, *appstream.DescribeStacksInput, ...request.Option) (*appstream.DescribeStacksOutput, error) DescribeStacksRequest(*appstream.DescribeStacksInput) (*request.Request, *appstream.DescribeStacksOutput) DescribeUsageReportSubscriptions(*appstream.DescribeUsageReportSubscriptionsInput) (*appstream.DescribeUsageReportSubscriptionsOutput, error) DescribeUsageReportSubscriptionsWithContext(aws.Context, *appstream.DescribeUsageReportSubscriptionsInput, ...request.Option) (*appstream.DescribeUsageReportSubscriptionsOutput, error) DescribeUsageReportSubscriptionsRequest(*appstream.DescribeUsageReportSubscriptionsInput) (*request.Request, *appstream.DescribeUsageReportSubscriptionsOutput) DescribeUserStackAssociations(*appstream.DescribeUserStackAssociationsInput) (*appstream.DescribeUserStackAssociationsOutput, error) DescribeUserStackAssociationsWithContext(aws.Context, *appstream.DescribeUserStackAssociationsInput, ...request.Option) (*appstream.DescribeUserStackAssociationsOutput, error) DescribeUserStackAssociationsRequest(*appstream.DescribeUserStackAssociationsInput) (*request.Request, *appstream.DescribeUserStackAssociationsOutput) DescribeUsers(*appstream.DescribeUsersInput) (*appstream.DescribeUsersOutput, error) DescribeUsersWithContext(aws.Context, *appstream.DescribeUsersInput, ...request.Option) (*appstream.DescribeUsersOutput, error) DescribeUsersRequest(*appstream.DescribeUsersInput) (*request.Request, *appstream.DescribeUsersOutput) DisableUser(*appstream.DisableUserInput) (*appstream.DisableUserOutput, error) DisableUserWithContext(aws.Context, *appstream.DisableUserInput, ...request.Option) (*appstream.DisableUserOutput, error) DisableUserRequest(*appstream.DisableUserInput) (*request.Request, *appstream.DisableUserOutput) DisassociateFleet(*appstream.DisassociateFleetInput) (*appstream.DisassociateFleetOutput, error) DisassociateFleetWithContext(aws.Context, *appstream.DisassociateFleetInput, ...request.Option) (*appstream.DisassociateFleetOutput, error) DisassociateFleetRequest(*appstream.DisassociateFleetInput) (*request.Request, *appstream.DisassociateFleetOutput) EnableUser(*appstream.EnableUserInput) (*appstream.EnableUserOutput, error) EnableUserWithContext(aws.Context, *appstream.EnableUserInput, ...request.Option) (*appstream.EnableUserOutput, error) EnableUserRequest(*appstream.EnableUserInput) (*request.Request, *appstream.EnableUserOutput) ExpireSession(*appstream.ExpireSessionInput) (*appstream.ExpireSessionOutput, error) ExpireSessionWithContext(aws.Context, *appstream.ExpireSessionInput, ...request.Option) (*appstream.ExpireSessionOutput, error) ExpireSessionRequest(*appstream.ExpireSessionInput) (*request.Request, *appstream.ExpireSessionOutput) ListAssociatedFleets(*appstream.ListAssociatedFleetsInput) (*appstream.ListAssociatedFleetsOutput, error) ListAssociatedFleetsWithContext(aws.Context, *appstream.ListAssociatedFleetsInput, ...request.Option) (*appstream.ListAssociatedFleetsOutput, error) ListAssociatedFleetsRequest(*appstream.ListAssociatedFleetsInput) (*request.Request, *appstream.ListAssociatedFleetsOutput) ListAssociatedStacks(*appstream.ListAssociatedStacksInput) (*appstream.ListAssociatedStacksOutput, error) ListAssociatedStacksWithContext(aws.Context, *appstream.ListAssociatedStacksInput, ...request.Option) (*appstream.ListAssociatedStacksOutput, error) ListAssociatedStacksRequest(*appstream.ListAssociatedStacksInput) (*request.Request, *appstream.ListAssociatedStacksOutput) ListTagsForResource(*appstream.ListTagsForResourceInput) (*appstream.ListTagsForResourceOutput, error) ListTagsForResourceWithContext(aws.Context, *appstream.ListTagsForResourceInput, ...request.Option) (*appstream.ListTagsForResourceOutput, error) ListTagsForResourceRequest(*appstream.ListTagsForResourceInput) (*request.Request, *appstream.ListTagsForResourceOutput) StartFleet(*appstream.StartFleetInput) (*appstream.StartFleetOutput, error) StartFleetWithContext(aws.Context, *appstream.StartFleetInput, ...request.Option) (*appstream.StartFleetOutput, error) StartFleetRequest(*appstream.StartFleetInput) (*request.Request, *appstream.StartFleetOutput) StartImageBuilder(*appstream.StartImageBuilderInput) (*appstream.StartImageBuilderOutput, error) StartImageBuilderWithContext(aws.Context, *appstream.StartImageBuilderInput, ...request.Option) (*appstream.StartImageBuilderOutput, error) StartImageBuilderRequest(*appstream.StartImageBuilderInput) (*request.Request, *appstream.StartImageBuilderOutput) StopFleet(*appstream.StopFleetInput) (*appstream.StopFleetOutput, error) StopFleetWithContext(aws.Context, *appstream.StopFleetInput, ...request.Option) (*appstream.StopFleetOutput, error) StopFleetRequest(*appstream.StopFleetInput) (*request.Request, *appstream.StopFleetOutput) StopImageBuilder(*appstream.StopImageBuilderInput) (*appstream.StopImageBuilderOutput, error) StopImageBuilderWithContext(aws.Context, *appstream.StopImageBuilderInput, ...request.Option) (*appstream.StopImageBuilderOutput, error) StopImageBuilderRequest(*appstream.StopImageBuilderInput) (*request.Request, *appstream.StopImageBuilderOutput) TagResource(*appstream.TagResourceInput) (*appstream.TagResourceOutput, error) TagResourceWithContext(aws.Context, *appstream.TagResourceInput, ...request.Option) (*appstream.TagResourceOutput, error) TagResourceRequest(*appstream.TagResourceInput) (*request.Request, *appstream.TagResourceOutput) UntagResource(*appstream.UntagResourceInput) (*appstream.UntagResourceOutput, error) UntagResourceWithContext(aws.Context, *appstream.UntagResourceInput, ...request.Option) (*appstream.UntagResourceOutput, error) UntagResourceRequest(*appstream.UntagResourceInput) (*request.Request, *appstream.UntagResourceOutput) UpdateDirectoryConfig(*appstream.UpdateDirectoryConfigInput) (*appstream.UpdateDirectoryConfigOutput, error) UpdateDirectoryConfigWithContext(aws.Context, *appstream.UpdateDirectoryConfigInput, ...request.Option) (*appstream.UpdateDirectoryConfigOutput, error) UpdateDirectoryConfigRequest(*appstream.UpdateDirectoryConfigInput) (*request.Request, *appstream.UpdateDirectoryConfigOutput) UpdateFleet(*appstream.UpdateFleetInput) (*appstream.UpdateFleetOutput, error) UpdateFleetWithContext(aws.Context, *appstream.UpdateFleetInput, ...request.Option) (*appstream.UpdateFleetOutput, error) UpdateFleetRequest(*appstream.UpdateFleetInput) (*request.Request, *appstream.UpdateFleetOutput) UpdateImagePermissions(*appstream.UpdateImagePermissionsInput) (*appstream.UpdateImagePermissionsOutput, error) UpdateImagePermissionsWithContext(aws.Context, *appstream.UpdateImagePermissionsInput, ...request.Option) (*appstream.UpdateImagePermissionsOutput, error) UpdateImagePermissionsRequest(*appstream.UpdateImagePermissionsInput) (*request.Request, *appstream.UpdateImagePermissionsOutput) UpdateStack(*appstream.UpdateStackInput) (*appstream.UpdateStackOutput, error) UpdateStackWithContext(aws.Context, *appstream.UpdateStackInput, ...request.Option) (*appstream.UpdateStackOutput, error) UpdateStackRequest(*appstream.UpdateStackInput) (*request.Request, *appstream.UpdateStackOutput) WaitUntilFleetStarted(*appstream.DescribeFleetsInput) error WaitUntilFleetStartedWithContext(aws.Context, *appstream.DescribeFleetsInput, ...request.WaiterOption) error WaitUntilFleetStopped(*appstream.DescribeFleetsInput) error WaitUntilFleetStoppedWithContext(aws.Context, *appstream.DescribeFleetsInput, ...request.WaiterOption) error } var _ AppStreamAPI = (*appstream.AppStream)(nil)
269
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package appsync import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) const opCreateApiCache = "CreateApiCache" // CreateApiCacheRequest generates a "aws/request.Request" representing the // client's request for the CreateApiCache operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateApiCache for more information on using the CreateApiCache // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateApiCacheRequest method. // req, resp := client.CreateApiCacheRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiCache func (c *AppSync) CreateApiCacheRequest(input *CreateApiCacheInput) (req *request.Request, output *CreateApiCacheOutput) { op := &request.Operation{ Name: opCreateApiCache, HTTPMethod: "POST", HTTPPath: "/v1/apis/{apiId}/ApiCaches", } if input == nil { input = &CreateApiCacheInput{} } output = &CreateApiCacheOutput{} req = c.newRequest(op, input, output) return } // CreateApiCache API operation for AWS AppSync. // // Creates a cache for the GraphQL API. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation CreateApiCache for usage and error information. // // Returned Error Types: // * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // // * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // * UnauthorizedException // You are not authorized to perform this operation. // // * InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiCache func (c *AppSync) CreateApiCache(input *CreateApiCacheInput) (*CreateApiCacheOutput, error) { req, out := c.CreateApiCacheRequest(input) return out, req.Send() } // CreateApiCacheWithContext is the same as CreateApiCache with the addition of // the ability to pass a context and additional request options. // // See CreateApiCache for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) CreateApiCacheWithContext(ctx aws.Context, input *CreateApiCacheInput, opts ...request.Option) (*CreateApiCacheOutput, error) { req, out := c.CreateApiCacheRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateApiKey = "CreateApiKey" // CreateApiKeyRequest generates a "aws/request.Request" representing the // client's request for the CreateApiKey operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateApiKey for more information on using the CreateApiKey // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateApiKeyRequest method. // req, resp := client.CreateApiKeyRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiKey func (c *AppSync) CreateApiKeyRequest(input *CreateApiKeyInput) (req *request.Request, output *CreateApiKeyOutput) { op := &request.Operation{ Name: opCreateApiKey, HTTPMethod: "POST", HTTPPath: "/v1/apis/{apiId}/apikeys", } if input == nil { input = &CreateApiKeyInput{} } output = &CreateApiKeyOutput{} req = c.newRequest(op, input, output) return } // CreateApiKey API operation for AWS AppSync. // // Creates a unique key that you can distribute to clients who are executing // your API. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation CreateApiKey for usage and error information. // // Returned Error Types: // * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // // * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // * LimitExceededException // The request exceeded a limit. Try your request again. // // * UnauthorizedException // You are not authorized to perform this operation. // // * LimitExceededException // The request exceeded a limit. Try your request again. // // * InternalFailureException // An internal AppSync error occurred. Try your request again. // // * ApiKeyLimitExceededException // The API key exceeded a limit. Try your request again. // // * ApiKeyValidityOutOfBoundsException // The API key expiration must be set to a value between 1 and 365 days from // creation (for CreateApiKey) or from update (for UpdateApiKey). // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiKey func (c *AppSync) CreateApiKey(input *CreateApiKeyInput) (*CreateApiKeyOutput, error) { req, out := c.CreateApiKeyRequest(input) return out, req.Send() } // CreateApiKeyWithContext is the same as CreateApiKey with the addition of // the ability to pass a context and additional request options. // // See CreateApiKey for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) CreateApiKeyWithContext(ctx aws.Context, input *CreateApiKeyInput, opts ...request.Option) (*CreateApiKeyOutput, error) { req, out := c.CreateApiKeyRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateDataSource = "CreateDataSource" // CreateDataSourceRequest generates a "aws/request.Request" representing the // client's request for the CreateDataSource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateDataSource for more information on using the CreateDataSource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateDataSourceRequest method. // req, resp := client.CreateDataSourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDataSource func (c *AppSync) CreateDataSourceRequest(input *CreateDataSourceInput) (req *request.Request, output *CreateDataSourceOutput) { op := &request.Operation{ Name: opCreateDataSource, HTTPMethod: "POST", HTTPPath: "/v1/apis/{apiId}/datasources", } if input == nil { input = &CreateDataSourceInput{} } output = &CreateDataSourceOutput{} req = c.newRequest(op, input, output) return } // CreateDataSource API operation for AWS AppSync. // // Creates a DataSource object. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation CreateDataSource for usage and error information. // // Returned Error Types: // * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // // * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // * UnauthorizedException // You are not authorized to perform this operation. // // * InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDataSource func (c *AppSync) CreateDataSource(input *CreateDataSourceInput) (*CreateDataSourceOutput, error) { req, out := c.CreateDataSourceRequest(input) return out, req.Send() } // CreateDataSourceWithContext is the same as CreateDataSource with the addition of // the ability to pass a context and additional request options. // // See CreateDataSource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) CreateDataSourceWithContext(ctx aws.Context, input *CreateDataSourceInput, opts ...request.Option) (*CreateDataSourceOutput, error) { req, out := c.CreateDataSourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateFunction = "CreateFunction" // CreateFunctionRequest generates a "aws/request.Request" representing the // client's request for the CreateFunction operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateFunction for more information on using the CreateFunction // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateFunctionRequest method. // req, resp := client.CreateFunctionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateFunction func (c *AppSync) CreateFunctionRequest(input *CreateFunctionInput) (req *request.Request, output *CreateFunctionOutput) { op := &request.Operation{ Name: opCreateFunction, HTTPMethod: "POST", HTTPPath: "/v1/apis/{apiId}/functions", } if input == nil { input = &CreateFunctionInput{} } output = &CreateFunctionOutput{} req = c.newRequest(op, input, output) return } // CreateFunction API operation for AWS AppSync. // // Creates a Function object. // // A function is a reusable entity. Multiple functions can be used to compose // the resolver logic. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation CreateFunction for usage and error information. // // Returned Error Types: // * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // * UnauthorizedException // You are not authorized to perform this operation. // // * InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateFunction func (c *AppSync) CreateFunction(input *CreateFunctionInput) (*CreateFunctionOutput, error) { req, out := c.CreateFunctionRequest(input) return out, req.Send() } // CreateFunctionWithContext is the same as CreateFunction with the addition of // the ability to pass a context and additional request options. // // See CreateFunction for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) CreateFunctionWithContext(ctx aws.Context, input *CreateFunctionInput, opts ...request.Option) (*CreateFunctionOutput, error) { req, out := c.CreateFunctionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateGraphqlApi = "CreateGraphqlApi" // CreateGraphqlApiRequest generates a "aws/request.Request" representing the // client's request for the CreateGraphqlApi operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateGraphqlApi for more information on using the CreateGraphqlApi // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateGraphqlApiRequest method. // req, resp := client.CreateGraphqlApiRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateGraphqlApi func (c *AppSync) CreateGraphqlApiRequest(input *CreateGraphqlApiInput) (req *request.Request, output *CreateGraphqlApiOutput) { op := &request.Operation{ Name: opCreateGraphqlApi, HTTPMethod: "POST", HTTPPath: "/v1/apis", } if input == nil { input = &CreateGraphqlApiInput{} } output = &CreateGraphqlApiOutput{} req = c.newRequest(op, input, output) return } // CreateGraphqlApi API operation for AWS AppSync. // // Creates a GraphqlApi object. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation CreateGraphqlApi for usage and error information. // // Returned Error Types: // * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // // * LimitExceededException // The request exceeded a limit. Try your request again. // // * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // * UnauthorizedException // You are not authorized to perform this operation. // // * InternalFailureException // An internal AppSync error occurred. Try your request again. // // * ApiLimitExceededException // The GraphQL API exceeded a limit. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateGraphqlApi func (c *AppSync) CreateGraphqlApi(input *CreateGraphqlApiInput) (*CreateGraphqlApiOutput, error) { req, out := c.CreateGraphqlApiRequest(input) return out, req.Send() } // CreateGraphqlApiWithContext is the same as CreateGraphqlApi with the addition of // the ability to pass a context and additional request options. // // See CreateGraphqlApi for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) CreateGraphqlApiWithContext(ctx aws.Context, input *CreateGraphqlApiInput, opts ...request.Option) (*CreateGraphqlApiOutput, error) { req, out := c.CreateGraphqlApiRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateResolver = "CreateResolver" // CreateResolverRequest generates a "aws/request.Request" representing the // client's request for the CreateResolver operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateResolver for more information on using the CreateResolver // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateResolverRequest method. // req, resp := client.CreateResolverRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateResolver func (c *AppSync) CreateResolverRequest(input *CreateResolverInput) (req *request.Request, output *CreateResolverOutput) { op := &request.Operation{ Name: opCreateResolver, HTTPMethod: "POST", HTTPPath: "/v1/apis/{apiId}/types/{typeName}/resolvers", } if input == nil { input = &CreateResolverInput{} } output = &CreateResolverOutput{} req = c.newRequest(op, input, output) return } // CreateResolver API operation for AWS AppSync. // // Creates a Resolver object. // // A resolver converts incoming requests into a format that a data source can // understand and converts the data source's responses into GraphQL. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation CreateResolver for usage and error information. // // Returned Error Types: // * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // * UnauthorizedException // You are not authorized to perform this operation. // // * InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateResolver func (c *AppSync) CreateResolver(input *CreateResolverInput) (*CreateResolverOutput, error) { req, out := c.CreateResolverRequest(input) return out, req.Send() } // CreateResolverWithContext is the same as CreateResolver with the addition of // the ability to pass a context and additional request options. // // See CreateResolver for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) CreateResolverWithContext(ctx aws.Context, input *CreateResolverInput, opts ...request.Option) (*CreateResolverOutput, error) { req, out := c.CreateResolverRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateType = "CreateType" // CreateTypeRequest generates a "aws/request.Request" representing the // client's request for the CreateType operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateType for more information on using the CreateType // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateTypeRequest method. // req, resp := client.CreateTypeRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateType func (c *AppSync) CreateTypeRequest(input *CreateTypeInput) (req *request.Request, output *CreateTypeOutput) { op := &request.Operation{ Name: opCreateType, HTTPMethod: "POST", HTTPPath: "/v1/apis/{apiId}/types", } if input == nil { input = &CreateTypeInput{} } output = &CreateTypeOutput{} req = c.newRequest(op, input, output) return } // CreateType API operation for AWS AppSync. // // Creates a Type object. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation CreateType for usage and error information. // // Returned Error Types: // * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // // * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // * UnauthorizedException // You are not authorized to perform this operation. // // * InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateType func (c *AppSync) CreateType(input *CreateTypeInput) (*CreateTypeOutput, error) { req, out := c.CreateTypeRequest(input) return out, req.Send() } // CreateTypeWithContext is the same as CreateType with the addition of // the ability to pass a context and additional request options. // // See CreateType for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) CreateTypeWithContext(ctx aws.Context, input *CreateTypeInput, opts ...request.Option) (*CreateTypeOutput, error) { req, out := c.CreateTypeRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteApiCache = "DeleteApiCache" // DeleteApiCacheRequest generates a "aws/request.Request" representing the // client's request for the DeleteApiCache operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteApiCache for more information on using the DeleteApiCache // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteApiCacheRequest method. // req, resp := client.DeleteApiCacheRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiCache func (c *AppSync) DeleteApiCacheRequest(input *DeleteApiCacheInput) (req *request.Request, output *DeleteApiCacheOutput) { op := &request.Operation{ Name: opDeleteApiCache, HTTPMethod: "DELETE", HTTPPath: "/v1/apis/{apiId}/ApiCaches", } if input == nil { input = &DeleteApiCacheInput{} } output = &DeleteApiCacheOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteApiCache API operation for AWS AppSync. // // Deletes an ApiCache object. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation DeleteApiCache for usage and error information. // // Returned Error Types: // * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // // * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // * UnauthorizedException // You are not authorized to perform this operation. // // * InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiCache func (c *AppSync) DeleteApiCache(input *DeleteApiCacheInput) (*DeleteApiCacheOutput, error) { req, out := c.DeleteApiCacheRequest(input) return out, req.Send() } // DeleteApiCacheWithContext is the same as DeleteApiCache with the addition of // the ability to pass a context and additional request options. // // See DeleteApiCache for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) DeleteApiCacheWithContext(ctx aws.Context, input *DeleteApiCacheInput, opts ...request.Option) (*DeleteApiCacheOutput, error) { req, out := c.DeleteApiCacheRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteApiKey = "DeleteApiKey" // DeleteApiKeyRequest generates a "aws/request.Request" representing the // client's request for the DeleteApiKey operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteApiKey for more information on using the DeleteApiKey // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteApiKeyRequest method. // req, resp := client.DeleteApiKeyRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiKey func (c *AppSync) DeleteApiKeyRequest(input *DeleteApiKeyInput) (req *request.Request, output *DeleteApiKeyOutput) { op := &request.Operation{ Name: opDeleteApiKey, HTTPMethod: "DELETE", HTTPPath: "/v1/apis/{apiId}/apikeys/{id}", } if input == nil { input = &DeleteApiKeyInput{} } output = &DeleteApiKeyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteApiKey API operation for AWS AppSync. // // Deletes an API key. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation DeleteApiKey for usage and error information. // // Returned Error Types: // * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // // * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // * UnauthorizedException // You are not authorized to perform this operation. // // * InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiKey func (c *AppSync) DeleteApiKey(input *DeleteApiKeyInput) (*DeleteApiKeyOutput, error) { req, out := c.DeleteApiKeyRequest(input) return out, req.Send() } // DeleteApiKeyWithContext is the same as DeleteApiKey with the addition of // the ability to pass a context and additional request options. // // See DeleteApiKey for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) DeleteApiKeyWithContext(ctx aws.Context, input *DeleteApiKeyInput, opts ...request.Option) (*DeleteApiKeyOutput, error) { req, out := c.DeleteApiKeyRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteDataSource = "DeleteDataSource" // DeleteDataSourceRequest generates a "aws/request.Request" representing the // client's request for the DeleteDataSource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteDataSource for more information on using the DeleteDataSource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteDataSourceRequest method. // req, resp := client.DeleteDataSourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteDataSource func (c *AppSync) DeleteDataSourceRequest(input *DeleteDataSourceInput) (req *request.Request, output *DeleteDataSourceOutput) { op := &request.Operation{ Name: opDeleteDataSource, HTTPMethod: "DELETE", HTTPPath: "/v1/apis/{apiId}/datasources/{name}", } if input == nil { input = &DeleteDataSourceInput{} } output = &DeleteDataSourceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteDataSource API operation for AWS AppSync. // // Deletes a DataSource object. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation DeleteDataSource for usage and error information. // // Returned Error Types: // * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // // * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // * UnauthorizedException // You are not authorized to perform this operation. // // * InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteDataSource func (c *AppSync) DeleteDataSource(input *DeleteDataSourceInput) (*DeleteDataSourceOutput, error) { req, out := c.DeleteDataSourceRequest(input) return out, req.Send() } // DeleteDataSourceWithContext is the same as DeleteDataSource with the addition of // the ability to pass a context and additional request options. // // See DeleteDataSource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) DeleteDataSourceWithContext(ctx aws.Context, input *DeleteDataSourceInput, opts ...request.Option) (*DeleteDataSourceOutput, error) { req, out := c.DeleteDataSourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteFunction = "DeleteFunction" // DeleteFunctionRequest generates a "aws/request.Request" representing the // client's request for the DeleteFunction operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteFunction for more information on using the DeleteFunction // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteFunctionRequest method. // req, resp := client.DeleteFunctionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteFunction func (c *AppSync) DeleteFunctionRequest(input *DeleteFunctionInput) (req *request.Request, output *DeleteFunctionOutput) { op := &request.Operation{ Name: opDeleteFunction, HTTPMethod: "DELETE", HTTPPath: "/v1/apis/{apiId}/functions/{functionId}", } if input == nil { input = &DeleteFunctionInput{} } output = &DeleteFunctionOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteFunction API operation for AWS AppSync. // // Deletes a Function. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation DeleteFunction for usage and error information. // // Returned Error Types: // * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // * UnauthorizedException // You are not authorized to perform this operation. // // * InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteFunction func (c *AppSync) DeleteFunction(input *DeleteFunctionInput) (*DeleteFunctionOutput, error) { req, out := c.DeleteFunctionRequest(input) return out, req.Send() } // DeleteFunctionWithContext is the same as DeleteFunction with the addition of // the ability to pass a context and additional request options. // // See DeleteFunction for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) DeleteFunctionWithContext(ctx aws.Context, input *DeleteFunctionInput, opts ...request.Option) (*DeleteFunctionOutput, error) { req, out := c.DeleteFunctionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteGraphqlApi = "DeleteGraphqlApi" // DeleteGraphqlApiRequest generates a "aws/request.Request" representing the // client's request for the DeleteGraphqlApi operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteGraphqlApi for more information on using the DeleteGraphqlApi // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteGraphqlApiRequest method. // req, resp := client.DeleteGraphqlApiRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteGraphqlApi func (c *AppSync) DeleteGraphqlApiRequest(input *DeleteGraphqlApiInput) (req *request.Request, output *DeleteGraphqlApiOutput) { op := &request.Operation{ Name: opDeleteGraphqlApi, HTTPMethod: "DELETE", HTTPPath: "/v1/apis/{apiId}", } if input == nil { input = &DeleteGraphqlApiInput{} } output = &DeleteGraphqlApiOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteGraphqlApi API operation for AWS AppSync. // // Deletes a GraphqlApi object. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation DeleteGraphqlApi for usage and error information. // // Returned Error Types: // * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // // * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // * UnauthorizedException // You are not authorized to perform this operation. // // * InternalFailureException // An internal AppSync error occurred. Try your request again. // // * AccessDeniedException // You do not have access to perform this operation on this resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteGraphqlApi func (c *AppSync) DeleteGraphqlApi(input *DeleteGraphqlApiInput) (*DeleteGraphqlApiOutput, error) { req, out := c.DeleteGraphqlApiRequest(input) return out, req.Send() } // DeleteGraphqlApiWithContext is the same as DeleteGraphqlApi with the addition of // the ability to pass a context and additional request options. // // See DeleteGraphqlApi for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) DeleteGraphqlApiWithContext(ctx aws.Context, input *DeleteGraphqlApiInput, opts ...request.Option) (*DeleteGraphqlApiOutput, error) { req, out := c.DeleteGraphqlApiRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteResolver = "DeleteResolver" // DeleteResolverRequest generates a "aws/request.Request" representing the // client's request for the DeleteResolver operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteResolver for more information on using the DeleteResolver // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteResolverRequest method. // req, resp := client.DeleteResolverRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteResolver func (c *AppSync) DeleteResolverRequest(input *DeleteResolverInput) (req *request.Request, output *DeleteResolverOutput) { op := &request.Operation{ Name: opDeleteResolver, HTTPMethod: "DELETE", HTTPPath: "/v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}", } if input == nil { input = &DeleteResolverInput{} } output = &DeleteResolverOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteResolver API operation for AWS AppSync. // // Deletes a Resolver object. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation DeleteResolver for usage and error information. // // Returned Error Types: // * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // * UnauthorizedException // You are not authorized to perform this operation. // // * InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteResolver func (c *AppSync) DeleteResolver(input *DeleteResolverInput) (*DeleteResolverOutput, error) { req, out := c.DeleteResolverRequest(input) return out, req.Send() } // DeleteResolverWithContext is the same as DeleteResolver with the addition of // the ability to pass a context and additional request options. // // See DeleteResolver for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) DeleteResolverWithContext(ctx aws.Context, input *DeleteResolverInput, opts ...request.Option) (*DeleteResolverOutput, error) { req, out := c.DeleteResolverRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteType = "DeleteType" // DeleteTypeRequest generates a "aws/request.Request" representing the // client's request for the DeleteType operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteType for more information on using the DeleteType // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteTypeRequest method. // req, resp := client.DeleteTypeRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteType func (c *AppSync) DeleteTypeRequest(input *DeleteTypeInput) (req *request.Request, output *DeleteTypeOutput) { op := &request.Operation{ Name: opDeleteType, HTTPMethod: "DELETE", HTTPPath: "/v1/apis/{apiId}/types/{typeName}", } if input == nil { input = &DeleteTypeInput{} } output = &DeleteTypeOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteType API operation for AWS AppSync. // // Deletes a Type object. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation DeleteType for usage and error information. // // Returned Error Types: // * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // // * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // * UnauthorizedException // You are not authorized to perform this operation. // // * InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteType func (c *AppSync) DeleteType(input *DeleteTypeInput) (*DeleteTypeOutput, error) { req, out := c.DeleteTypeRequest(input) return out, req.Send() } // DeleteTypeWithContext is the same as DeleteType with the addition of // the ability to pass a context and additional request options. // // See DeleteType for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) DeleteTypeWithContext(ctx aws.Context, input *DeleteTypeInput, opts ...request.Option) (*DeleteTypeOutput, error) { req, out := c.DeleteTypeRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opFlushApiCache = "FlushApiCache" // FlushApiCacheRequest generates a "aws/request.Request" representing the // client's request for the FlushApiCache operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See FlushApiCache for more information on using the FlushApiCache // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the FlushApiCacheRequest method. // req, resp := client.FlushApiCacheRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/FlushApiCache func (c *AppSync) FlushApiCacheRequest(input *FlushApiCacheInput) (req *request.Request, output *FlushApiCacheOutput) { op := &request.Operation{ Name: opFlushApiCache, HTTPMethod: "DELETE", HTTPPath: "/v1/apis/{apiId}/FlushCache", } if input == nil { input = &FlushApiCacheInput{} } output = &FlushApiCacheOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // FlushApiCache API operation for AWS AppSync. // // Flushes an ApiCache object. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation FlushApiCache for usage and error information. // // Returned Error Types: // * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // // * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // * UnauthorizedException // You are not authorized to perform this operation. // // * InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/FlushApiCache func (c *AppSync) FlushApiCache(input *FlushApiCacheInput) (*FlushApiCacheOutput, error) { req, out := c.FlushApiCacheRequest(input) return out, req.Send() } // FlushApiCacheWithContext is the same as FlushApiCache with the addition of // the ability to pass a context and additional request options. // // See FlushApiCache for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) FlushApiCacheWithContext(ctx aws.Context, input *FlushApiCacheInput, opts ...request.Option) (*FlushApiCacheOutput, error) { req, out := c.FlushApiCacheRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetApiCache = "GetApiCache" // GetApiCacheRequest generates a "aws/request.Request" representing the // client's request for the GetApiCache operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetApiCache for more information on using the GetApiCache // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetApiCacheRequest method. // req, resp := client.GetApiCacheRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetApiCache func (c *AppSync) GetApiCacheRequest(input *GetApiCacheInput) (req *request.Request, output *GetApiCacheOutput) { op := &request.Operation{ Name: opGetApiCache, HTTPMethod: "GET", HTTPPath: "/v1/apis/{apiId}/ApiCaches", } if input == nil { input = &GetApiCacheInput{} } output = &GetApiCacheOutput{} req = c.newRequest(op, input, output) return } // GetApiCache API operation for AWS AppSync. // // Retrieves an ApiCache object. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation GetApiCache for usage and error information. // // Returned Error Types: // * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // // * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // * UnauthorizedException // You are not authorized to perform this operation. // // * InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetApiCache func (c *AppSync) GetApiCache(input *GetApiCacheInput) (*GetApiCacheOutput, error) { req, out := c.GetApiCacheRequest(input) return out, req.Send() } // GetApiCacheWithContext is the same as GetApiCache with the addition of // the ability to pass a context and additional request options. // // See GetApiCache for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) GetApiCacheWithContext(ctx aws.Context, input *GetApiCacheInput, opts ...request.Option) (*GetApiCacheOutput, error) { req, out := c.GetApiCacheRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetDataSource = "GetDataSource" // GetDataSourceRequest generates a "aws/request.Request" representing the // client's request for the GetDataSource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetDataSource for more information on using the GetDataSource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetDataSourceRequest method. // req, resp := client.GetDataSourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDataSource func (c *AppSync) GetDataSourceRequest(input *GetDataSourceInput) (req *request.Request, output *GetDataSourceOutput) { op := &request.Operation{ Name: opGetDataSource, HTTPMethod: "GET", HTTPPath: "/v1/apis/{apiId}/datasources/{name}", } if input == nil { input = &GetDataSourceInput{} } output = &GetDataSourceOutput{} req = c.newRequest(op, input, output) return } // GetDataSource API operation for AWS AppSync. // // Retrieves a DataSource object. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation GetDataSource for usage and error information. // // Returned Error Types: // * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // // * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // * UnauthorizedException // You are not authorized to perform this operation. // // * InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDataSource func (c *AppSync) GetDataSource(input *GetDataSourceInput) (*GetDataSourceOutput, error) { req, out := c.GetDataSourceRequest(input) return out, req.Send() } // GetDataSourceWithContext is the same as GetDataSource with the addition of // the ability to pass a context and additional request options. // // See GetDataSource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) GetDataSourceWithContext(ctx aws.Context, input *GetDataSourceInput, opts ...request.Option) (*GetDataSourceOutput, error) { req, out := c.GetDataSourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetFunction = "GetFunction" // GetFunctionRequest generates a "aws/request.Request" representing the // client's request for the GetFunction operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetFunction for more information on using the GetFunction // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetFunctionRequest method. // req, resp := client.GetFunctionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetFunction func (c *AppSync) GetFunctionRequest(input *GetFunctionInput) (req *request.Request, output *GetFunctionOutput) { op := &request.Operation{ Name: opGetFunction, HTTPMethod: "GET", HTTPPath: "/v1/apis/{apiId}/functions/{functionId}", } if input == nil { input = &GetFunctionInput{} } output = &GetFunctionOutput{} req = c.newRequest(op, input, output) return } // GetFunction API operation for AWS AppSync. // // Get a Function. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation GetFunction for usage and error information. // // Returned Error Types: // * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // * UnauthorizedException // You are not authorized to perform this operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetFunction func (c *AppSync) GetFunction(input *GetFunctionInput) (*GetFunctionOutput, error) { req, out := c.GetFunctionRequest(input) return out, req.Send() } // GetFunctionWithContext is the same as GetFunction with the addition of // the ability to pass a context and additional request options. // // See GetFunction for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) GetFunctionWithContext(ctx aws.Context, input *GetFunctionInput, opts ...request.Option) (*GetFunctionOutput, error) { req, out := c.GetFunctionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetGraphqlApi = "GetGraphqlApi" // GetGraphqlApiRequest generates a "aws/request.Request" representing the // client's request for the GetGraphqlApi operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetGraphqlApi for more information on using the GetGraphqlApi // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetGraphqlApiRequest method. // req, resp := client.GetGraphqlApiRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetGraphqlApi func (c *AppSync) GetGraphqlApiRequest(input *GetGraphqlApiInput) (req *request.Request, output *GetGraphqlApiOutput) { op := &request.Operation{ Name: opGetGraphqlApi, HTTPMethod: "GET", HTTPPath: "/v1/apis/{apiId}", } if input == nil { input = &GetGraphqlApiInput{} } output = &GetGraphqlApiOutput{} req = c.newRequest(op, input, output) return } // GetGraphqlApi API operation for AWS AppSync. // // Retrieves a GraphqlApi object. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation GetGraphqlApi for usage and error information. // // Returned Error Types: // * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // // * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // * UnauthorizedException // You are not authorized to perform this operation. // // * InternalFailureException // An internal AppSync error occurred. Try your request again. // // * AccessDeniedException // You do not have access to perform this operation on this resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetGraphqlApi func (c *AppSync) GetGraphqlApi(input *GetGraphqlApiInput) (*GetGraphqlApiOutput, error) { req, out := c.GetGraphqlApiRequest(input) return out, req.Send() } // GetGraphqlApiWithContext is the same as GetGraphqlApi with the addition of // the ability to pass a context and additional request options. // // See GetGraphqlApi for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) GetGraphqlApiWithContext(ctx aws.Context, input *GetGraphqlApiInput, opts ...request.Option) (*GetGraphqlApiOutput, error) { req, out := c.GetGraphqlApiRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetIntrospectionSchema = "GetIntrospectionSchema" // GetIntrospectionSchemaRequest generates a "aws/request.Request" representing the // client's request for the GetIntrospectionSchema operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetIntrospectionSchema for more information on using the GetIntrospectionSchema // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetIntrospectionSchemaRequest method. // req, resp := client.GetIntrospectionSchemaRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetIntrospectionSchema func (c *AppSync) GetIntrospectionSchemaRequest(input *GetIntrospectionSchemaInput) (req *request.Request, output *GetIntrospectionSchemaOutput) { op := &request.Operation{ Name: opGetIntrospectionSchema, HTTPMethod: "GET", HTTPPath: "/v1/apis/{apiId}/schema", } if input == nil { input = &GetIntrospectionSchemaInput{} } output = &GetIntrospectionSchemaOutput{} req = c.newRequest(op, input, output) return } // GetIntrospectionSchema API operation for AWS AppSync. // // Retrieves the introspection schema for a GraphQL API. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation GetIntrospectionSchema for usage and error information. // // Returned Error Types: // * GraphQLSchemaException // The GraphQL schema is not valid. // // * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // * UnauthorizedException // You are not authorized to perform this operation. // // * InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetIntrospectionSchema func (c *AppSync) GetIntrospectionSchema(input *GetIntrospectionSchemaInput) (*GetIntrospectionSchemaOutput, error) { req, out := c.GetIntrospectionSchemaRequest(input) return out, req.Send() } // GetIntrospectionSchemaWithContext is the same as GetIntrospectionSchema with the addition of // the ability to pass a context and additional request options. // // See GetIntrospectionSchema for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) GetIntrospectionSchemaWithContext(ctx aws.Context, input *GetIntrospectionSchemaInput, opts ...request.Option) (*GetIntrospectionSchemaOutput, error) { req, out := c.GetIntrospectionSchemaRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetResolver = "GetResolver" // GetResolverRequest generates a "aws/request.Request" representing the // client's request for the GetResolver operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetResolver for more information on using the GetResolver // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetResolverRequest method. // req, resp := client.GetResolverRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetResolver func (c *AppSync) GetResolverRequest(input *GetResolverInput) (req *request.Request, output *GetResolverOutput) { op := &request.Operation{ Name: opGetResolver, HTTPMethod: "GET", HTTPPath: "/v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}", } if input == nil { input = &GetResolverInput{} } output = &GetResolverOutput{} req = c.newRequest(op, input, output) return } // GetResolver API operation for AWS AppSync. // // Retrieves a Resolver object. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation GetResolver for usage and error information. // // Returned Error Types: // * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // * UnauthorizedException // You are not authorized to perform this operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetResolver func (c *AppSync) GetResolver(input *GetResolverInput) (*GetResolverOutput, error) { req, out := c.GetResolverRequest(input) return out, req.Send() } // GetResolverWithContext is the same as GetResolver with the addition of // the ability to pass a context and additional request options. // // See GetResolver for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) GetResolverWithContext(ctx aws.Context, input *GetResolverInput, opts ...request.Option) (*GetResolverOutput, error) { req, out := c.GetResolverRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetSchemaCreationStatus = "GetSchemaCreationStatus" // GetSchemaCreationStatusRequest generates a "aws/request.Request" representing the // client's request for the GetSchemaCreationStatus operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetSchemaCreationStatus for more information on using the GetSchemaCreationStatus // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetSchemaCreationStatusRequest method. // req, resp := client.GetSchemaCreationStatusRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetSchemaCreationStatus func (c *AppSync) GetSchemaCreationStatusRequest(input *GetSchemaCreationStatusInput) (req *request.Request, output *GetSchemaCreationStatusOutput) { op := &request.Operation{ Name: opGetSchemaCreationStatus, HTTPMethod: "GET", HTTPPath: "/v1/apis/{apiId}/schemacreation", } if input == nil { input = &GetSchemaCreationStatusInput{} } output = &GetSchemaCreationStatusOutput{} req = c.newRequest(op, input, output) return } // GetSchemaCreationStatus API operation for AWS AppSync. // // Retrieves the current status of a schema creation operation. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation GetSchemaCreationStatus for usage and error information. // // Returned Error Types: // * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // // * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // * UnauthorizedException // You are not authorized to perform this operation. // // * InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetSchemaCreationStatus func (c *AppSync) GetSchemaCreationStatus(input *GetSchemaCreationStatusInput) (*GetSchemaCreationStatusOutput, error) { req, out := c.GetSchemaCreationStatusRequest(input) return out, req.Send() } // GetSchemaCreationStatusWithContext is the same as GetSchemaCreationStatus with the addition of // the ability to pass a context and additional request options. // // See GetSchemaCreationStatus for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) GetSchemaCreationStatusWithContext(ctx aws.Context, input *GetSchemaCreationStatusInput, opts ...request.Option) (*GetSchemaCreationStatusOutput, error) { req, out := c.GetSchemaCreationStatusRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetType = "GetType" // GetTypeRequest generates a "aws/request.Request" representing the // client's request for the GetType operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetType for more information on using the GetType // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetTypeRequest method. // req, resp := client.GetTypeRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetType func (c *AppSync) GetTypeRequest(input *GetTypeInput) (req *request.Request, output *GetTypeOutput) { op := &request.Operation{ Name: opGetType, HTTPMethod: "GET", HTTPPath: "/v1/apis/{apiId}/types/{typeName}", } if input == nil { input = &GetTypeInput{} } output = &GetTypeOutput{} req = c.newRequest(op, input, output) return } // GetType API operation for AWS AppSync. // // Retrieves a Type object. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation GetType for usage and error information. // // Returned Error Types: // * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // // * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // * UnauthorizedException // You are not authorized to perform this operation. // // * InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetType func (c *AppSync) GetType(input *GetTypeInput) (*GetTypeOutput, error) { req, out := c.GetTypeRequest(input) return out, req.Send() } // GetTypeWithContext is the same as GetType with the addition of // the ability to pass a context and additional request options. // // See GetType for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) GetTypeWithContext(ctx aws.Context, input *GetTypeInput, opts ...request.Option) (*GetTypeOutput, error) { req, out := c.GetTypeRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opListApiKeys = "ListApiKeys" // ListApiKeysRequest generates a "aws/request.Request" representing the // client's request for the ListApiKeys operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListApiKeys for more information on using the ListApiKeys // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListApiKeysRequest method. // req, resp := client.ListApiKeysRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListApiKeys func (c *AppSync) ListApiKeysRequest(input *ListApiKeysInput) (req *request.Request, output *ListApiKeysOutput) { op := &request.Operation{ Name: opListApiKeys, HTTPMethod: "GET", HTTPPath: "/v1/apis/{apiId}/apikeys", } if input == nil { input = &ListApiKeysInput{} } output = &ListApiKeysOutput{} req = c.newRequest(op, input, output) return } // ListApiKeys API operation for AWS AppSync. // // Lists the API keys for a given API. // // API keys are deleted automatically 60 days after they expire. However, they // may still be included in the response until they have actually been deleted. // You can safely call DeleteApiKey to manually delete a key before it's automatically // deleted. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation ListApiKeys for usage and error information. // // Returned Error Types: // * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // // * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // * UnauthorizedException // You are not authorized to perform this operation. // // * InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListApiKeys func (c *AppSync) ListApiKeys(input *ListApiKeysInput) (*ListApiKeysOutput, error) { req, out := c.ListApiKeysRequest(input) return out, req.Send() } // ListApiKeysWithContext is the same as ListApiKeys with the addition of // the ability to pass a context and additional request options. // // See ListApiKeys for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) ListApiKeysWithContext(ctx aws.Context, input *ListApiKeysInput, opts ...request.Option) (*ListApiKeysOutput, error) { req, out := c.ListApiKeysRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opListDataSources = "ListDataSources" // ListDataSourcesRequest generates a "aws/request.Request" representing the // client's request for the ListDataSources operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListDataSources for more information on using the ListDataSources // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListDataSourcesRequest method. // req, resp := client.ListDataSourcesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDataSources func (c *AppSync) ListDataSourcesRequest(input *ListDataSourcesInput) (req *request.Request, output *ListDataSourcesOutput) { op := &request.Operation{ Name: opListDataSources, HTTPMethod: "GET", HTTPPath: "/v1/apis/{apiId}/datasources", } if input == nil { input = &ListDataSourcesInput{} } output = &ListDataSourcesOutput{} req = c.newRequest(op, input, output) return } // ListDataSources API operation for AWS AppSync. // // Lists the data sources for a given API. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation ListDataSources for usage and error information. // // Returned Error Types: // * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // // * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // * UnauthorizedException // You are not authorized to perform this operation. // // * InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDataSources func (c *AppSync) ListDataSources(input *ListDataSourcesInput) (*ListDataSourcesOutput, error) { req, out := c.ListDataSourcesRequest(input) return out, req.Send() } // ListDataSourcesWithContext is the same as ListDataSources with the addition of // the ability to pass a context and additional request options. // // See ListDataSources for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) ListDataSourcesWithContext(ctx aws.Context, input *ListDataSourcesInput, opts ...request.Option) (*ListDataSourcesOutput, error) { req, out := c.ListDataSourcesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opListFunctions = "ListFunctions" // ListFunctionsRequest generates a "aws/request.Request" representing the // client's request for the ListFunctions operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListFunctions for more information on using the ListFunctions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListFunctionsRequest method. // req, resp := client.ListFunctionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListFunctions func (c *AppSync) ListFunctionsRequest(input *ListFunctionsInput) (req *request.Request, output *ListFunctionsOutput) { op := &request.Operation{ Name: opListFunctions, HTTPMethod: "GET", HTTPPath: "/v1/apis/{apiId}/functions", } if input == nil { input = &ListFunctionsInput{} } output = &ListFunctionsOutput{} req = c.newRequest(op, input, output) return } // ListFunctions API operation for AWS AppSync. // // List multiple functions. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation ListFunctions for usage and error information. // // Returned Error Types: // * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // // * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // * UnauthorizedException // You are not authorized to perform this operation. // // * InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListFunctions func (c *AppSync) ListFunctions(input *ListFunctionsInput) (*ListFunctionsOutput, error) { req, out := c.ListFunctionsRequest(input) return out, req.Send() } // ListFunctionsWithContext is the same as ListFunctions with the addition of // the ability to pass a context and additional request options. // // See ListFunctions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) ListFunctionsWithContext(ctx aws.Context, input *ListFunctionsInput, opts ...request.Option) (*ListFunctionsOutput, error) { req, out := c.ListFunctionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opListGraphqlApis = "ListGraphqlApis" // ListGraphqlApisRequest generates a "aws/request.Request" representing the // client's request for the ListGraphqlApis operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListGraphqlApis for more information on using the ListGraphqlApis // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListGraphqlApisRequest method. // req, resp := client.ListGraphqlApisRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListGraphqlApis func (c *AppSync) ListGraphqlApisRequest(input *ListGraphqlApisInput) (req *request.Request, output *ListGraphqlApisOutput) { op := &request.Operation{ Name: opListGraphqlApis, HTTPMethod: "GET", HTTPPath: "/v1/apis", } if input == nil { input = &ListGraphqlApisInput{} } output = &ListGraphqlApisOutput{} req = c.newRequest(op, input, output) return } // ListGraphqlApis API operation for AWS AppSync. // // Lists your GraphQL APIs. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation ListGraphqlApis for usage and error information. // // Returned Error Types: // * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // // * UnauthorizedException // You are not authorized to perform this operation. // // * InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListGraphqlApis func (c *AppSync) ListGraphqlApis(input *ListGraphqlApisInput) (*ListGraphqlApisOutput, error) { req, out := c.ListGraphqlApisRequest(input) return out, req.Send() } // ListGraphqlApisWithContext is the same as ListGraphqlApis with the addition of // the ability to pass a context and additional request options. // // See ListGraphqlApis for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) ListGraphqlApisWithContext(ctx aws.Context, input *ListGraphqlApisInput, opts ...request.Option) (*ListGraphqlApisOutput, error) { req, out := c.ListGraphqlApisRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opListResolvers = "ListResolvers" // ListResolversRequest generates a "aws/request.Request" representing the // client's request for the ListResolvers operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListResolvers for more information on using the ListResolvers // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListResolversRequest method. // req, resp := client.ListResolversRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolvers func (c *AppSync) ListResolversRequest(input *ListResolversInput) (req *request.Request, output *ListResolversOutput) { op := &request.Operation{ Name: opListResolvers, HTTPMethod: "GET", HTTPPath: "/v1/apis/{apiId}/types/{typeName}/resolvers", } if input == nil { input = &ListResolversInput{} } output = &ListResolversOutput{} req = c.newRequest(op, input, output) return } // ListResolvers API operation for AWS AppSync. // // Lists the resolvers for a given API and type. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation ListResolvers for usage and error information. // // Returned Error Types: // * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // // * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // * UnauthorizedException // You are not authorized to perform this operation. // // * InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolvers func (c *AppSync) ListResolvers(input *ListResolversInput) (*ListResolversOutput, error) { req, out := c.ListResolversRequest(input) return out, req.Send() } // ListResolversWithContext is the same as ListResolvers with the addition of // the ability to pass a context and additional request options. // // See ListResolvers for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) ListResolversWithContext(ctx aws.Context, input *ListResolversInput, opts ...request.Option) (*ListResolversOutput, error) { req, out := c.ListResolversRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opListResolversByFunction = "ListResolversByFunction" // ListResolversByFunctionRequest generates a "aws/request.Request" representing the // client's request for the ListResolversByFunction operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListResolversByFunction for more information on using the ListResolversByFunction // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListResolversByFunctionRequest method. // req, resp := client.ListResolversByFunctionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolversByFunction func (c *AppSync) ListResolversByFunctionRequest(input *ListResolversByFunctionInput) (req *request.Request, output *ListResolversByFunctionOutput) { op := &request.Operation{ Name: opListResolversByFunction, HTTPMethod: "GET", HTTPPath: "/v1/apis/{apiId}/functions/{functionId}/resolvers", } if input == nil { input = &ListResolversByFunctionInput{} } output = &ListResolversByFunctionOutput{} req = c.newRequest(op, input, output) return } // ListResolversByFunction API operation for AWS AppSync. // // List the resolvers that are associated with a specific function. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation ListResolversByFunction for usage and error information. // // Returned Error Types: // * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // // * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // * UnauthorizedException // You are not authorized to perform this operation. // // * InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolversByFunction func (c *AppSync) ListResolversByFunction(input *ListResolversByFunctionInput) (*ListResolversByFunctionOutput, error) { req, out := c.ListResolversByFunctionRequest(input) return out, req.Send() } // ListResolversByFunctionWithContext is the same as ListResolversByFunction with the addition of // the ability to pass a context and additional request options. // // See ListResolversByFunction for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) ListResolversByFunctionWithContext(ctx aws.Context, input *ListResolversByFunctionInput, opts ...request.Option) (*ListResolversByFunctionOutput, error) { req, out := c.ListResolversByFunctionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opListTagsForResource = "ListTagsForResource" // ListTagsForResourceRequest generates a "aws/request.Request" representing the // client's request for the ListTagsForResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListTagsForResource for more information on using the ListTagsForResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListTagsForResourceRequest method. // req, resp := client.ListTagsForResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTagsForResource func (c *AppSync) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { op := &request.Operation{ Name: opListTagsForResource, HTTPMethod: "GET", HTTPPath: "/v1/tags/{resourceArn}", } if input == nil { input = &ListTagsForResourceInput{} } output = &ListTagsForResourceOutput{} req = c.newRequest(op, input, output) return } // ListTagsForResource API operation for AWS AppSync. // // Lists the tags for a resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation ListTagsForResource for usage and error information. // // Returned Error Types: // * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // // * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // * LimitExceededException // The request exceeded a limit. Try your request again. // // * UnauthorizedException // You are not authorized to perform this operation. // // * InternalFailureException // An internal AppSync error occurred. Try your request again. // // * AccessDeniedException // You do not have access to perform this operation on this resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTagsForResource func (c *AppSync) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) return out, req.Send() } // ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of // the ability to pass a context and additional request options. // // See ListTagsForResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opListTypes = "ListTypes" // ListTypesRequest generates a "aws/request.Request" representing the // client's request for the ListTypes operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListTypes for more information on using the ListTypes // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListTypesRequest method. // req, resp := client.ListTypesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTypes func (c *AppSync) ListTypesRequest(input *ListTypesInput) (req *request.Request, output *ListTypesOutput) { op := &request.Operation{ Name: opListTypes, HTTPMethod: "GET", HTTPPath: "/v1/apis/{apiId}/types", } if input == nil { input = &ListTypesInput{} } output = &ListTypesOutput{} req = c.newRequest(op, input, output) return } // ListTypes API operation for AWS AppSync. // // Lists the types for a given API. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation ListTypes for usage and error information. // // Returned Error Types: // * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // // * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // * UnauthorizedException // You are not authorized to perform this operation. // // * InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTypes func (c *AppSync) ListTypes(input *ListTypesInput) (*ListTypesOutput, error) { req, out := c.ListTypesRequest(input) return out, req.Send() } // ListTypesWithContext is the same as ListTypes with the addition of // the ability to pass a context and additional request options. // // See ListTypes for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) ListTypesWithContext(ctx aws.Context, input *ListTypesInput, opts ...request.Option) (*ListTypesOutput, error) { req, out := c.ListTypesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opStartSchemaCreation = "StartSchemaCreation" // StartSchemaCreationRequest generates a "aws/request.Request" representing the // client's request for the StartSchemaCreation operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See StartSchemaCreation for more information on using the StartSchemaCreation // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the StartSchemaCreationRequest method. // req, resp := client.StartSchemaCreationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/StartSchemaCreation func (c *AppSync) StartSchemaCreationRequest(input *StartSchemaCreationInput) (req *request.Request, output *StartSchemaCreationOutput) { op := &request.Operation{ Name: opStartSchemaCreation, HTTPMethod: "POST", HTTPPath: "/v1/apis/{apiId}/schemacreation", } if input == nil { input = &StartSchemaCreationInput{} } output = &StartSchemaCreationOutput{} req = c.newRequest(op, input, output) return } // StartSchemaCreation API operation for AWS AppSync. // // Adds a new schema to your GraphQL API. // // This operation is asynchronous. Use to determine when it has completed. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation StartSchemaCreation for usage and error information. // // Returned Error Types: // * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // // * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // * UnauthorizedException // You are not authorized to perform this operation. // // * InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/StartSchemaCreation func (c *AppSync) StartSchemaCreation(input *StartSchemaCreationInput) (*StartSchemaCreationOutput, error) { req, out := c.StartSchemaCreationRequest(input) return out, req.Send() } // StartSchemaCreationWithContext is the same as StartSchemaCreation with the addition of // the ability to pass a context and additional request options. // // See StartSchemaCreation for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) StartSchemaCreationWithContext(ctx aws.Context, input *StartSchemaCreationInput, opts ...request.Option) (*StartSchemaCreationOutput, error) { req, out := c.StartSchemaCreationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opTagResource = "TagResource" // TagResourceRequest generates a "aws/request.Request" representing the // client's request for the TagResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See TagResource for more information on using the TagResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the TagResourceRequest method. // req, resp := client.TagResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/TagResource func (c *AppSync) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { op := &request.Operation{ Name: opTagResource, HTTPMethod: "POST", HTTPPath: "/v1/tags/{resourceArn}", } if input == nil { input = &TagResourceInput{} } output = &TagResourceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // TagResource API operation for AWS AppSync. // // Tags a resource with user-supplied tags. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation TagResource for usage and error information. // // Returned Error Types: // * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // // * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // * LimitExceededException // The request exceeded a limit. Try your request again. // // * UnauthorizedException // You are not authorized to perform this operation. // // * InternalFailureException // An internal AppSync error occurred. Try your request again. // // * AccessDeniedException // You do not have access to perform this operation on this resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/TagResource func (c *AppSync) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { req, out := c.TagResourceRequest(input) return out, req.Send() } // TagResourceWithContext is the same as TagResource with the addition of // the ability to pass a context and additional request options. // // See TagResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { req, out := c.TagResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUntagResource = "UntagResource" // UntagResourceRequest generates a "aws/request.Request" representing the // client's request for the UntagResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UntagResource for more information on using the UntagResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UntagResourceRequest method. // req, resp := client.UntagResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UntagResource func (c *AppSync) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { op := &request.Operation{ Name: opUntagResource, HTTPMethod: "DELETE", HTTPPath: "/v1/tags/{resourceArn}", } if input == nil { input = &UntagResourceInput{} } output = &UntagResourceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // UntagResource API operation for AWS AppSync. // // Untags a resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation UntagResource for usage and error information. // // Returned Error Types: // * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // // * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // * LimitExceededException // The request exceeded a limit. Try your request again. // // * UnauthorizedException // You are not authorized to perform this operation. // // * InternalFailureException // An internal AppSync error occurred. Try your request again. // // * AccessDeniedException // You do not have access to perform this operation on this resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UntagResource func (c *AppSync) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { req, out := c.UntagResourceRequest(input) return out, req.Send() } // UntagResourceWithContext is the same as UntagResource with the addition of // the ability to pass a context and additional request options. // // See UntagResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { req, out := c.UntagResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateApiCache = "UpdateApiCache" // UpdateApiCacheRequest generates a "aws/request.Request" representing the // client's request for the UpdateApiCache operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateApiCache for more information on using the UpdateApiCache // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateApiCacheRequest method. // req, resp := client.UpdateApiCacheRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiCache func (c *AppSync) UpdateApiCacheRequest(input *UpdateApiCacheInput) (req *request.Request, output *UpdateApiCacheOutput) { op := &request.Operation{ Name: opUpdateApiCache, HTTPMethod: "POST", HTTPPath: "/v1/apis/{apiId}/ApiCaches/update", } if input == nil { input = &UpdateApiCacheInput{} } output = &UpdateApiCacheOutput{} req = c.newRequest(op, input, output) return } // UpdateApiCache API operation for AWS AppSync. // // Updates the cache for the GraphQL API. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation UpdateApiCache for usage and error information. // // Returned Error Types: // * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // // * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // * UnauthorizedException // You are not authorized to perform this operation. // // * InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiCache func (c *AppSync) UpdateApiCache(input *UpdateApiCacheInput) (*UpdateApiCacheOutput, error) { req, out := c.UpdateApiCacheRequest(input) return out, req.Send() } // UpdateApiCacheWithContext is the same as UpdateApiCache with the addition of // the ability to pass a context and additional request options. // // See UpdateApiCache for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) UpdateApiCacheWithContext(ctx aws.Context, input *UpdateApiCacheInput, opts ...request.Option) (*UpdateApiCacheOutput, error) { req, out := c.UpdateApiCacheRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateApiKey = "UpdateApiKey" // UpdateApiKeyRequest generates a "aws/request.Request" representing the // client's request for the UpdateApiKey operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateApiKey for more information on using the UpdateApiKey // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateApiKeyRequest method. // req, resp := client.UpdateApiKeyRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiKey func (c *AppSync) UpdateApiKeyRequest(input *UpdateApiKeyInput) (req *request.Request, output *UpdateApiKeyOutput) { op := &request.Operation{ Name: opUpdateApiKey, HTTPMethod: "POST", HTTPPath: "/v1/apis/{apiId}/apikeys/{id}", } if input == nil { input = &UpdateApiKeyInput{} } output = &UpdateApiKeyOutput{} req = c.newRequest(op, input, output) return } // UpdateApiKey API operation for AWS AppSync. // // Updates an API key. The key can be updated while it is not deleted. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation UpdateApiKey for usage and error information. // // Returned Error Types: // * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // // * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // * UnauthorizedException // You are not authorized to perform this operation. // // * LimitExceededException // The request exceeded a limit. Try your request again. // // * InternalFailureException // An internal AppSync error occurred. Try your request again. // // * ApiKeyValidityOutOfBoundsException // The API key expiration must be set to a value between 1 and 365 days from // creation (for CreateApiKey) or from update (for UpdateApiKey). // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiKey func (c *AppSync) UpdateApiKey(input *UpdateApiKeyInput) (*UpdateApiKeyOutput, error) { req, out := c.UpdateApiKeyRequest(input) return out, req.Send() } // UpdateApiKeyWithContext is the same as UpdateApiKey with the addition of // the ability to pass a context and additional request options. // // See UpdateApiKey for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) UpdateApiKeyWithContext(ctx aws.Context, input *UpdateApiKeyInput, opts ...request.Option) (*UpdateApiKeyOutput, error) { req, out := c.UpdateApiKeyRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateDataSource = "UpdateDataSource" // UpdateDataSourceRequest generates a "aws/request.Request" representing the // client's request for the UpdateDataSource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateDataSource for more information on using the UpdateDataSource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateDataSourceRequest method. // req, resp := client.UpdateDataSourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDataSource func (c *AppSync) UpdateDataSourceRequest(input *UpdateDataSourceInput) (req *request.Request, output *UpdateDataSourceOutput) { op := &request.Operation{ Name: opUpdateDataSource, HTTPMethod: "POST", HTTPPath: "/v1/apis/{apiId}/datasources/{name}", } if input == nil { input = &UpdateDataSourceInput{} } output = &UpdateDataSourceOutput{} req = c.newRequest(op, input, output) return } // UpdateDataSource API operation for AWS AppSync. // // Updates a DataSource object. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation UpdateDataSource for usage and error information. // // Returned Error Types: // * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // // * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // * UnauthorizedException // You are not authorized to perform this operation. // // * InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDataSource func (c *AppSync) UpdateDataSource(input *UpdateDataSourceInput) (*UpdateDataSourceOutput, error) { req, out := c.UpdateDataSourceRequest(input) return out, req.Send() } // UpdateDataSourceWithContext is the same as UpdateDataSource with the addition of // the ability to pass a context and additional request options. // // See UpdateDataSource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) UpdateDataSourceWithContext(ctx aws.Context, input *UpdateDataSourceInput, opts ...request.Option) (*UpdateDataSourceOutput, error) { req, out := c.UpdateDataSourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateFunction = "UpdateFunction" // UpdateFunctionRequest generates a "aws/request.Request" representing the // client's request for the UpdateFunction operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateFunction for more information on using the UpdateFunction // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateFunctionRequest method. // req, resp := client.UpdateFunctionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateFunction func (c *AppSync) UpdateFunctionRequest(input *UpdateFunctionInput) (req *request.Request, output *UpdateFunctionOutput) { op := &request.Operation{ Name: opUpdateFunction, HTTPMethod: "POST", HTTPPath: "/v1/apis/{apiId}/functions/{functionId}", } if input == nil { input = &UpdateFunctionInput{} } output = &UpdateFunctionOutput{} req = c.newRequest(op, input, output) return } // UpdateFunction API operation for AWS AppSync. // // Updates a Function object. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation UpdateFunction for usage and error information. // // Returned Error Types: // * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // * UnauthorizedException // You are not authorized to perform this operation. // // * InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateFunction func (c *AppSync) UpdateFunction(input *UpdateFunctionInput) (*UpdateFunctionOutput, error) { req, out := c.UpdateFunctionRequest(input) return out, req.Send() } // UpdateFunctionWithContext is the same as UpdateFunction with the addition of // the ability to pass a context and additional request options. // // See UpdateFunction for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) UpdateFunctionWithContext(ctx aws.Context, input *UpdateFunctionInput, opts ...request.Option) (*UpdateFunctionOutput, error) { req, out := c.UpdateFunctionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateGraphqlApi = "UpdateGraphqlApi" // UpdateGraphqlApiRequest generates a "aws/request.Request" representing the // client's request for the UpdateGraphqlApi operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateGraphqlApi for more information on using the UpdateGraphqlApi // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateGraphqlApiRequest method. // req, resp := client.UpdateGraphqlApiRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateGraphqlApi func (c *AppSync) UpdateGraphqlApiRequest(input *UpdateGraphqlApiInput) (req *request.Request, output *UpdateGraphqlApiOutput) { op := &request.Operation{ Name: opUpdateGraphqlApi, HTTPMethod: "POST", HTTPPath: "/v1/apis/{apiId}", } if input == nil { input = &UpdateGraphqlApiInput{} } output = &UpdateGraphqlApiOutput{} req = c.newRequest(op, input, output) return } // UpdateGraphqlApi API operation for AWS AppSync. // // Updates a GraphqlApi object. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation UpdateGraphqlApi for usage and error information. // // Returned Error Types: // * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // // * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // * UnauthorizedException // You are not authorized to perform this operation. // // * InternalFailureException // An internal AppSync error occurred. Try your request again. // // * AccessDeniedException // You do not have access to perform this operation on this resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateGraphqlApi func (c *AppSync) UpdateGraphqlApi(input *UpdateGraphqlApiInput) (*UpdateGraphqlApiOutput, error) { req, out := c.UpdateGraphqlApiRequest(input) return out, req.Send() } // UpdateGraphqlApiWithContext is the same as UpdateGraphqlApi with the addition of // the ability to pass a context and additional request options. // // See UpdateGraphqlApi for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) UpdateGraphqlApiWithContext(ctx aws.Context, input *UpdateGraphqlApiInput, opts ...request.Option) (*UpdateGraphqlApiOutput, error) { req, out := c.UpdateGraphqlApiRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateResolver = "UpdateResolver" // UpdateResolverRequest generates a "aws/request.Request" representing the // client's request for the UpdateResolver operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateResolver for more information on using the UpdateResolver // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateResolverRequest method. // req, resp := client.UpdateResolverRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateResolver func (c *AppSync) UpdateResolverRequest(input *UpdateResolverInput) (req *request.Request, output *UpdateResolverOutput) { op := &request.Operation{ Name: opUpdateResolver, HTTPMethod: "POST", HTTPPath: "/v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}", } if input == nil { input = &UpdateResolverInput{} } output = &UpdateResolverOutput{} req = c.newRequest(op, input, output) return } // UpdateResolver API operation for AWS AppSync. // // Updates a Resolver object. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation UpdateResolver for usage and error information. // // Returned Error Types: // * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // * UnauthorizedException // You are not authorized to perform this operation. // // * InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateResolver func (c *AppSync) UpdateResolver(input *UpdateResolverInput) (*UpdateResolverOutput, error) { req, out := c.UpdateResolverRequest(input) return out, req.Send() } // UpdateResolverWithContext is the same as UpdateResolver with the addition of // the ability to pass a context and additional request options. // // See UpdateResolver for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) UpdateResolverWithContext(ctx aws.Context, input *UpdateResolverInput, opts ...request.Option) (*UpdateResolverOutput, error) { req, out := c.UpdateResolverRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateType = "UpdateType" // UpdateTypeRequest generates a "aws/request.Request" representing the // client's request for the UpdateType operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateType for more information on using the UpdateType // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateTypeRequest method. // req, resp := client.UpdateTypeRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateType func (c *AppSync) UpdateTypeRequest(input *UpdateTypeInput) (req *request.Request, output *UpdateTypeOutput) { op := &request.Operation{ Name: opUpdateType, HTTPMethod: "POST", HTTPPath: "/v1/apis/{apiId}/types/{typeName}", } if input == nil { input = &UpdateTypeInput{} } output = &UpdateTypeOutput{} req = c.newRequest(op, input, output) return } // UpdateType API operation for AWS AppSync. // // Updates a Type object. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS AppSync's // API operation UpdateType for usage and error information. // // Returned Error Types: // * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // // * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // * UnauthorizedException // You are not authorized to perform this operation. // // * InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateType func (c *AppSync) UpdateType(input *UpdateTypeInput) (*UpdateTypeOutput, error) { req, out := c.UpdateTypeRequest(input) return out, req.Send() } // UpdateTypeWithContext is the same as UpdateType with the addition of // the ability to pass a context and additional request options. // // See UpdateType for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AppSync) UpdateTypeWithContext(ctx aws.Context, input *UpdateTypeInput, opts ...request.Option) (*UpdateTypeOutput, error) { req, out := c.UpdateTypeRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // You do not have access to perform this operation on this resource. type AccessDeniedException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s AccessDeniedException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AccessDeniedException) GoString() string { return s.String() } func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { return &AccessDeniedException{ RespMetadata: v, } } // Code returns the exception type name. func (s *AccessDeniedException) Code() string { return "AccessDeniedException" } // Message returns the exception's message. func (s *AccessDeniedException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *AccessDeniedException) OrigErr() error { return nil } func (s *AccessDeniedException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *AccessDeniedException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *AccessDeniedException) RequestID() string { return s.RespMetadata.RequestID } // Describes an additional authentication provider. type AdditionalAuthenticationProvider struct { _ struct{} `type:"structure"` // The authentication type: API key, Identity and Access Management, OIDC, or // Amazon Cognito user pools. AuthenticationType *string `locationName:"authenticationType" type:"string" enum:"AuthenticationType"` // Configuration for AWS Lambda function authorization. LambdaAuthorizerConfig *LambdaAuthorizerConfig `locationName:"lambdaAuthorizerConfig" type:"structure"` // The OpenID Connect configuration. OpenIDConnectConfig *OpenIDConnectConfig `locationName:"openIDConnectConfig" type:"structure"` // The Amazon Cognito user pool configuration. UserPoolConfig *CognitoUserPoolConfig `locationName:"userPoolConfig" type:"structure"` } // String returns the string representation func (s AdditionalAuthenticationProvider) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AdditionalAuthenticationProvider) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *AdditionalAuthenticationProvider) Validate() error { invalidParams := request.ErrInvalidParams{Context: "AdditionalAuthenticationProvider"} if s.LambdaAuthorizerConfig != nil { if err := s.LambdaAuthorizerConfig.Validate(); err != nil { invalidParams.AddNested("LambdaAuthorizerConfig", err.(request.ErrInvalidParams)) } } if s.OpenIDConnectConfig != nil { if err := s.OpenIDConnectConfig.Validate(); err != nil { invalidParams.AddNested("OpenIDConnectConfig", err.(request.ErrInvalidParams)) } } if s.UserPoolConfig != nil { if err := s.UserPoolConfig.Validate(); err != nil { invalidParams.AddNested("UserPoolConfig", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAuthenticationType sets the AuthenticationType field's value. func (s *AdditionalAuthenticationProvider) SetAuthenticationType(v string) *AdditionalAuthenticationProvider { s.AuthenticationType = &v return s } // SetLambdaAuthorizerConfig sets the LambdaAuthorizerConfig field's value. func (s *AdditionalAuthenticationProvider) SetLambdaAuthorizerConfig(v *LambdaAuthorizerConfig) *AdditionalAuthenticationProvider { s.LambdaAuthorizerConfig = v return s } // SetOpenIDConnectConfig sets the OpenIDConnectConfig field's value. func (s *AdditionalAuthenticationProvider) SetOpenIDConnectConfig(v *OpenIDConnectConfig) *AdditionalAuthenticationProvider { s.OpenIDConnectConfig = v return s } // SetUserPoolConfig sets the UserPoolConfig field's value. func (s *AdditionalAuthenticationProvider) SetUserPoolConfig(v *CognitoUserPoolConfig) *AdditionalAuthenticationProvider { s.UserPoolConfig = v return s } // The ApiCache object. type ApiCache struct { _ struct{} `type:"structure"` // Caching behavior. // // * FULL_REQUEST_CACHING: All requests are fully cached. // // * PER_RESOLVER_CACHING: Individual resolvers that you specify are cached. ApiCachingBehavior *string `locationName:"apiCachingBehavior" type:"string" enum:"ApiCachingBehavior"` // At rest encryption flag for cache. This setting cannot be updated after creation. AtRestEncryptionEnabled *bool `locationName:"atRestEncryptionEnabled" type:"boolean"` // The cache instance status. // // * AVAILABLE: The instance is available for use. // // * CREATING: The instance is currently creating. // // * DELETING: The instance is currently deleting. // // * MODIFYING: The instance is currently modifying. // // * FAILED: The instance has failed creation. Status *string `locationName:"status" type:"string" enum:"ApiCacheStatus"` // Transit encryption flag when connecting to cache. This setting cannot be // updated after creation. TransitEncryptionEnabled *bool `locationName:"transitEncryptionEnabled" type:"boolean"` // TTL in seconds for cache entries. // // Valid values are between 1 and 3600 seconds. Ttl *int64 `locationName:"ttl" type:"long"` // The cache instance type. Valid values are // // * SMALL // // * MEDIUM // // * LARGE // // * XLARGE // // * LARGE_2X // // * LARGE_4X // // * LARGE_8X (not available in all regions) // // * LARGE_12X // // Historically, instance types were identified by an EC2-style value. As of // July 2020, this is deprecated, and the generic identifiers above should be // used. // // The following legacy instance types are available, but their use is discouraged: // // * T2_SMALL: A t2.small instance type. // // * T2_MEDIUM: A t2.medium instance type. // // * R4_LARGE: A r4.large instance type. // // * R4_XLARGE: A r4.xlarge instance type. // // * R4_2XLARGE: A r4.2xlarge instance type. // // * R4_4XLARGE: A r4.4xlarge instance type. // // * R4_8XLARGE: A r4.8xlarge instance type. Type *string `locationName:"type" type:"string" enum:"ApiCacheType"` } // String returns the string representation func (s ApiCache) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ApiCache) GoString() string { return s.String() } // SetApiCachingBehavior sets the ApiCachingBehavior field's value. func (s *ApiCache) SetApiCachingBehavior(v string) *ApiCache { s.ApiCachingBehavior = &v return s } // SetAtRestEncryptionEnabled sets the AtRestEncryptionEnabled field's value. func (s *ApiCache) SetAtRestEncryptionEnabled(v bool) *ApiCache { s.AtRestEncryptionEnabled = &v return s } // SetStatus sets the Status field's value. func (s *ApiCache) SetStatus(v string) *ApiCache { s.Status = &v return s } // SetTransitEncryptionEnabled sets the TransitEncryptionEnabled field's value. func (s *ApiCache) SetTransitEncryptionEnabled(v bool) *ApiCache { s.TransitEncryptionEnabled = &v return s } // SetTtl sets the Ttl field's value. func (s *ApiCache) SetTtl(v int64) *ApiCache { s.Ttl = &v return s } // SetType sets the Type field's value. func (s *ApiCache) SetType(v string) *ApiCache { s.Type = &v return s } // Describes an API key. // // Customers invoke AppSync GraphQL API operations with API keys as an identity // mechanism. There are two key versions: // // da1: This version was introduced at launch in November 2017. These keys always // expire after 7 days. Key expiration is managed by Amazon DynamoDB TTL. The // keys ceased to be valid after February 21, 2018 and should not be used after // that date. // // * ListApiKeys returns the expiration time in milliseconds. // // * CreateApiKey returns the expiration time in milliseconds. // // * UpdateApiKey is not available for this key version. // // * DeleteApiKey deletes the item from the table. // // * Expiration is stored in Amazon DynamoDB as milliseconds. This results // in a bug where keys are not automatically deleted because DynamoDB expects // the TTL to be stored in seconds. As a one-time action, we will delete // these keys from the table after February 21, 2018. // // da2: This version was introduced in February 2018 when AppSync added support // to extend key expiration. // // * ListApiKeys returns the expiration time and deletion time in seconds. // // * CreateApiKey returns the expiration time and deletion time in seconds // and accepts a user-provided expiration time in seconds. // // * UpdateApiKey returns the expiration time and and deletion time in seconds // and accepts a user-provided expiration time in seconds. Expired API keys // are kept for 60 days after the expiration time. Key expiration time can // be updated while the key is not deleted. // // * DeleteApiKey deletes the item from the table. // // * Expiration is stored in Amazon DynamoDB as seconds. After the expiration // time, using the key to authenticate will fail. But the key can be reinstated // before deletion. // // * Deletion is stored in Amazon DynamoDB as seconds. The key will be deleted // after deletion time. type ApiKey struct { _ struct{} `type:"structure"` // The time after which the API key is deleted. The date is represented as seconds // since the epoch, rounded down to the nearest hour. Deletes *int64 `locationName:"deletes" type:"long"` // A description of the purpose of the API key. Description *string `locationName:"description" type:"string"` // The time after which the API key expires. The date is represented as seconds // since the epoch, rounded down to the nearest hour. Expires *int64 `locationName:"expires" type:"long"` // The API key ID. Id *string `locationName:"id" type:"string"` } // String returns the string representation func (s ApiKey) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ApiKey) GoString() string { return s.String() } // SetDeletes sets the Deletes field's value. func (s *ApiKey) SetDeletes(v int64) *ApiKey { s.Deletes = &v return s } // SetDescription sets the Description field's value. func (s *ApiKey) SetDescription(v string) *ApiKey { s.Description = &v return s } // SetExpires sets the Expires field's value. func (s *ApiKey) SetExpires(v int64) *ApiKey { s.Expires = &v return s } // SetId sets the Id field's value. func (s *ApiKey) SetId(v string) *ApiKey { s.Id = &v return s } // The API key exceeded a limit. Try your request again. type ApiKeyLimitExceededException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s ApiKeyLimitExceededException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ApiKeyLimitExceededException) GoString() string { return s.String() } func newErrorApiKeyLimitExceededException(v protocol.ResponseMetadata) error { return &ApiKeyLimitExceededException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ApiKeyLimitExceededException) Code() string { return "ApiKeyLimitExceededException" } // Message returns the exception's message. func (s *ApiKeyLimitExceededException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ApiKeyLimitExceededException) OrigErr() error { return nil } func (s *ApiKeyLimitExceededException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ApiKeyLimitExceededException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ApiKeyLimitExceededException) RequestID() string { return s.RespMetadata.RequestID } // The API key expiration must be set to a value between 1 and 365 days from // creation (for CreateApiKey) or from update (for UpdateApiKey). type ApiKeyValidityOutOfBoundsException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s ApiKeyValidityOutOfBoundsException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ApiKeyValidityOutOfBoundsException) GoString() string { return s.String() } func newErrorApiKeyValidityOutOfBoundsException(v protocol.ResponseMetadata) error { return &ApiKeyValidityOutOfBoundsException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ApiKeyValidityOutOfBoundsException) Code() string { return "ApiKeyValidityOutOfBoundsException" } // Message returns the exception's message. func (s *ApiKeyValidityOutOfBoundsException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ApiKeyValidityOutOfBoundsException) OrigErr() error { return nil } func (s *ApiKeyValidityOutOfBoundsException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ApiKeyValidityOutOfBoundsException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ApiKeyValidityOutOfBoundsException) RequestID() string { return s.RespMetadata.RequestID } // The GraphQL API exceeded a limit. Try your request again. type ApiLimitExceededException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s ApiLimitExceededException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ApiLimitExceededException) GoString() string { return s.String() } func newErrorApiLimitExceededException(v protocol.ResponseMetadata) error { return &ApiLimitExceededException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ApiLimitExceededException) Code() string { return "ApiLimitExceededException" } // Message returns the exception's message. func (s *ApiLimitExceededException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ApiLimitExceededException) OrigErr() error { return nil } func (s *ApiLimitExceededException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ApiLimitExceededException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ApiLimitExceededException) RequestID() string { return s.RespMetadata.RequestID } // The authorization config in case the HTTP endpoint requires authorization. type AuthorizationConfig struct { _ struct{} `type:"structure"` // The authorization type required by the HTTP endpoint. // // * AWS_IAM: The authorization type is Sigv4. // // AuthorizationType is a required field AuthorizationType *string `locationName:"authorizationType" type:"string" required:"true" enum:"AuthorizationType"` // The Identity and Access Management settings. AwsIamConfig *AwsIamConfig `locationName:"awsIamConfig" type:"structure"` } // String returns the string representation func (s AuthorizationConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AuthorizationConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *AuthorizationConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "AuthorizationConfig"} if s.AuthorizationType == nil { invalidParams.Add(request.NewErrParamRequired("AuthorizationType")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAuthorizationType sets the AuthorizationType field's value. func (s *AuthorizationConfig) SetAuthorizationType(v string) *AuthorizationConfig { s.AuthorizationType = &v return s } // SetAwsIamConfig sets the AwsIamConfig field's value. func (s *AuthorizationConfig) SetAwsIamConfig(v *AwsIamConfig) *AuthorizationConfig { s.AwsIamConfig = v return s } // The Identity and Access Management configuration. type AwsIamConfig struct { _ struct{} `type:"structure"` // The signing region for Identity and Access Management authorization. SigningRegion *string `locationName:"signingRegion" type:"string"` // The signing service name for Identity and Access Management authorization. SigningServiceName *string `locationName:"signingServiceName" type:"string"` } // String returns the string representation func (s AwsIamConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AwsIamConfig) GoString() string { return s.String() } // SetSigningRegion sets the SigningRegion field's value. func (s *AwsIamConfig) SetSigningRegion(v string) *AwsIamConfig { s.SigningRegion = &v return s } // SetSigningServiceName sets the SigningServiceName field's value. func (s *AwsIamConfig) SetSigningServiceName(v string) *AwsIamConfig { s.SigningServiceName = &v return s } // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. type BadRequestException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s BadRequestException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s BadRequestException) GoString() string { return s.String() } func newErrorBadRequestException(v protocol.ResponseMetadata) error { return &BadRequestException{ RespMetadata: v, } } // Code returns the exception type name. func (s *BadRequestException) Code() string { return "BadRequestException" } // Message returns the exception's message. func (s *BadRequestException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *BadRequestException) OrigErr() error { return nil } func (s *BadRequestException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *BadRequestException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *BadRequestException) RequestID() string { return s.RespMetadata.RequestID } // The caching configuration for a resolver that has caching enabled. type CachingConfig struct { _ struct{} `type:"structure"` // The caching keys for a resolver that has caching enabled. // // Valid values are entries from the $context.arguments, $context.source, and // $context.identity maps. CachingKeys []*string `locationName:"cachingKeys" type:"list"` // The TTL in seconds for a resolver that has caching enabled. // // Valid values are between 1 and 3600 seconds. Ttl *int64 `locationName:"ttl" type:"long"` } // String returns the string representation func (s CachingConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CachingConfig) GoString() string { return s.String() } // SetCachingKeys sets the CachingKeys field's value. func (s *CachingConfig) SetCachingKeys(v []*string) *CachingConfig { s.CachingKeys = v return s } // SetTtl sets the Ttl field's value. func (s *CachingConfig) SetTtl(v int64) *CachingConfig { s.Ttl = &v return s } // Describes an Amazon Cognito user pool configuration. type CognitoUserPoolConfig struct { _ struct{} `type:"structure"` // A regular expression for validating the incoming Amazon Cognito user pool // app client ID. AppIdClientRegex *string `locationName:"appIdClientRegex" type:"string"` // The Amazon Web Services Region in which the user pool was created. // // AwsRegion is a required field AwsRegion *string `locationName:"awsRegion" type:"string" required:"true"` // The user pool ID. // // UserPoolId is a required field UserPoolId *string `locationName:"userPoolId" type:"string" required:"true"` } // String returns the string representation func (s CognitoUserPoolConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CognitoUserPoolConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CognitoUserPoolConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CognitoUserPoolConfig"} if s.AwsRegion == nil { invalidParams.Add(request.NewErrParamRequired("AwsRegion")) } if s.UserPoolId == nil { invalidParams.Add(request.NewErrParamRequired("UserPoolId")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAppIdClientRegex sets the AppIdClientRegex field's value. func (s *CognitoUserPoolConfig) SetAppIdClientRegex(v string) *CognitoUserPoolConfig { s.AppIdClientRegex = &v return s } // SetAwsRegion sets the AwsRegion field's value. func (s *CognitoUserPoolConfig) SetAwsRegion(v string) *CognitoUserPoolConfig { s.AwsRegion = &v return s } // SetUserPoolId sets the UserPoolId field's value. func (s *CognitoUserPoolConfig) SetUserPoolId(v string) *CognitoUserPoolConfig { s.UserPoolId = &v return s } // Another modification is in progress at this time and it must complete before // you can make your change. type ConcurrentModificationException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s ConcurrentModificationException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ConcurrentModificationException) GoString() string { return s.String() } func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error { return &ConcurrentModificationException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ConcurrentModificationException) Code() string { return "ConcurrentModificationException" } // Message returns the exception's message. func (s *ConcurrentModificationException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ConcurrentModificationException) OrigErr() error { return nil } func (s *ConcurrentModificationException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ConcurrentModificationException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ConcurrentModificationException) RequestID() string { return s.RespMetadata.RequestID } // Represents the input of a CreateApiCache operation. type CreateApiCacheInput struct { _ struct{} `type:"structure"` // Caching behavior. // // * FULL_REQUEST_CACHING: All requests are fully cached. // // * PER_RESOLVER_CACHING: Individual resolvers that you specify are cached. // // ApiCachingBehavior is a required field ApiCachingBehavior *string `locationName:"apiCachingBehavior" type:"string" required:"true" enum:"ApiCachingBehavior"` // The GraphQL API Id. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // At rest encryption flag for cache. This setting cannot be updated after creation. AtRestEncryptionEnabled *bool `locationName:"atRestEncryptionEnabled" type:"boolean"` // Transit encryption flag when connecting to cache. This setting cannot be // updated after creation. TransitEncryptionEnabled *bool `locationName:"transitEncryptionEnabled" type:"boolean"` // TTL in seconds for cache entries. // // Valid values are between 1 and 3600 seconds. // // Ttl is a required field Ttl *int64 `locationName:"ttl" type:"long" required:"true"` // The cache instance type. Valid values are // // * SMALL // // * MEDIUM // // * LARGE // // * XLARGE // // * LARGE_2X // // * LARGE_4X // // * LARGE_8X (not available in all regions) // // * LARGE_12X // // Historically, instance types were identified by an EC2-style value. As of // July 2020, this is deprecated, and the generic identifiers above should be // used. // // The following legacy instance types are available, but their use is discouraged: // // * T2_SMALL: A t2.small instance type. // // * T2_MEDIUM: A t2.medium instance type. // // * R4_LARGE: A r4.large instance type. // // * R4_XLARGE: A r4.xlarge instance type. // // * R4_2XLARGE: A r4.2xlarge instance type. // // * R4_4XLARGE: A r4.4xlarge instance type. // // * R4_8XLARGE: A r4.8xlarge instance type. // // Type is a required field Type *string `locationName:"type" type:"string" required:"true" enum:"ApiCacheType"` } // String returns the string representation func (s CreateApiCacheInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateApiCacheInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateApiCacheInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateApiCacheInput"} if s.ApiCachingBehavior == nil { invalidParams.Add(request.NewErrParamRequired("ApiCachingBehavior")) } if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if s.Ttl == nil { invalidParams.Add(request.NewErrParamRequired("Ttl")) } if s.Type == nil { invalidParams.Add(request.NewErrParamRequired("Type")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiCachingBehavior sets the ApiCachingBehavior field's value. func (s *CreateApiCacheInput) SetApiCachingBehavior(v string) *CreateApiCacheInput { s.ApiCachingBehavior = &v return s } // SetApiId sets the ApiId field's value. func (s *CreateApiCacheInput) SetApiId(v string) *CreateApiCacheInput { s.ApiId = &v return s } // SetAtRestEncryptionEnabled sets the AtRestEncryptionEnabled field's value. func (s *CreateApiCacheInput) SetAtRestEncryptionEnabled(v bool) *CreateApiCacheInput { s.AtRestEncryptionEnabled = &v return s } // SetTransitEncryptionEnabled sets the TransitEncryptionEnabled field's value. func (s *CreateApiCacheInput) SetTransitEncryptionEnabled(v bool) *CreateApiCacheInput { s.TransitEncryptionEnabled = &v return s } // SetTtl sets the Ttl field's value. func (s *CreateApiCacheInput) SetTtl(v int64) *CreateApiCacheInput { s.Ttl = &v return s } // SetType sets the Type field's value. func (s *CreateApiCacheInput) SetType(v string) *CreateApiCacheInput { s.Type = &v return s } // Represents the output of a CreateApiCache operation. type CreateApiCacheOutput struct { _ struct{} `type:"structure"` // The ApiCache object. ApiCache *ApiCache `locationName:"apiCache" type:"structure"` } // String returns the string representation func (s CreateApiCacheOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateApiCacheOutput) GoString() string { return s.String() } // SetApiCache sets the ApiCache field's value. func (s *CreateApiCacheOutput) SetApiCache(v *ApiCache) *CreateApiCacheOutput { s.ApiCache = v return s } type CreateApiKeyInput struct { _ struct{} `type:"structure"` // The ID for your GraphQL API. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // A description of the purpose of the API key. Description *string `locationName:"description" type:"string"` // The time from creation time after which the API key expires. The date is // represented as seconds since the epoch, rounded down to the nearest hour. // The default value for this parameter is 7 days from creation time. For more // information, see . Expires *int64 `locationName:"expires" type:"long"` } // String returns the string representation func (s CreateApiKeyInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateApiKeyInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateApiKeyInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateApiKeyInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *CreateApiKeyInput) SetApiId(v string) *CreateApiKeyInput { s.ApiId = &v return s } // SetDescription sets the Description field's value. func (s *CreateApiKeyInput) SetDescription(v string) *CreateApiKeyInput { s.Description = &v return s } // SetExpires sets the Expires field's value. func (s *CreateApiKeyInput) SetExpires(v int64) *CreateApiKeyInput { s.Expires = &v return s } type CreateApiKeyOutput struct { _ struct{} `type:"structure"` // The API key. ApiKey *ApiKey `locationName:"apiKey" type:"structure"` } // String returns the string representation func (s CreateApiKeyOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateApiKeyOutput) GoString() string { return s.String() } // SetApiKey sets the ApiKey field's value. func (s *CreateApiKeyOutput) SetApiKey(v *ApiKey) *CreateApiKeyOutput { s.ApiKey = v return s } type CreateDataSourceInput struct { _ struct{} `type:"structure"` // The API ID for the GraphQL API for the DataSource. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // A description of the DataSource. Description *string `locationName:"description" type:"string"` // Amazon DynamoDB settings. DynamodbConfig *DynamodbDataSourceConfig `locationName:"dynamodbConfig" type:"structure"` // Amazon Elasticsearch Service settings. ElasticsearchConfig *ElasticsearchDataSourceConfig `locationName:"elasticsearchConfig" type:"structure"` // HTTP endpoint settings. HttpConfig *HttpDataSourceConfig `locationName:"httpConfig" type:"structure"` // Amazon Web Services Lambda settings. LambdaConfig *LambdaDataSourceConfig `locationName:"lambdaConfig" type:"structure"` // A user-supplied name for the DataSource. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` // Relational database settings. RelationalDatabaseConfig *RelationalDatabaseDataSourceConfig `locationName:"relationalDatabaseConfig" type:"structure"` // The Identity and Access Management service role ARN for the data source. // The system assumes this role when accessing the data source. ServiceRoleArn *string `locationName:"serviceRoleArn" type:"string"` // The type of the DataSource. // // Type is a required field Type *string `locationName:"type" type:"string" required:"true" enum:"DataSourceType"` } // String returns the string representation func (s CreateDataSourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateDataSourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateDataSourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateDataSourceInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if s.Type == nil { invalidParams.Add(request.NewErrParamRequired("Type")) } if s.DynamodbConfig != nil { if err := s.DynamodbConfig.Validate(); err != nil { invalidParams.AddNested("DynamodbConfig", err.(request.ErrInvalidParams)) } } if s.ElasticsearchConfig != nil { if err := s.ElasticsearchConfig.Validate(); err != nil { invalidParams.AddNested("ElasticsearchConfig", err.(request.ErrInvalidParams)) } } if s.HttpConfig != nil { if err := s.HttpConfig.Validate(); err != nil { invalidParams.AddNested("HttpConfig", err.(request.ErrInvalidParams)) } } if s.LambdaConfig != nil { if err := s.LambdaConfig.Validate(); err != nil { invalidParams.AddNested("LambdaConfig", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *CreateDataSourceInput) SetApiId(v string) *CreateDataSourceInput { s.ApiId = &v return s } // SetDescription sets the Description field's value. func (s *CreateDataSourceInput) SetDescription(v string) *CreateDataSourceInput { s.Description = &v return s } // SetDynamodbConfig sets the DynamodbConfig field's value. func (s *CreateDataSourceInput) SetDynamodbConfig(v *DynamodbDataSourceConfig) *CreateDataSourceInput { s.DynamodbConfig = v return s } // SetElasticsearchConfig sets the ElasticsearchConfig field's value. func (s *CreateDataSourceInput) SetElasticsearchConfig(v *ElasticsearchDataSourceConfig) *CreateDataSourceInput { s.ElasticsearchConfig = v return s } // SetHttpConfig sets the HttpConfig field's value. func (s *CreateDataSourceInput) SetHttpConfig(v *HttpDataSourceConfig) *CreateDataSourceInput { s.HttpConfig = v return s } // SetLambdaConfig sets the LambdaConfig field's value. func (s *CreateDataSourceInput) SetLambdaConfig(v *LambdaDataSourceConfig) *CreateDataSourceInput { s.LambdaConfig = v return s } // SetName sets the Name field's value. func (s *CreateDataSourceInput) SetName(v string) *CreateDataSourceInput { s.Name = &v return s } // SetRelationalDatabaseConfig sets the RelationalDatabaseConfig field's value. func (s *CreateDataSourceInput) SetRelationalDatabaseConfig(v *RelationalDatabaseDataSourceConfig) *CreateDataSourceInput { s.RelationalDatabaseConfig = v return s } // SetServiceRoleArn sets the ServiceRoleArn field's value. func (s *CreateDataSourceInput) SetServiceRoleArn(v string) *CreateDataSourceInput { s.ServiceRoleArn = &v return s } // SetType sets the Type field's value. func (s *CreateDataSourceInput) SetType(v string) *CreateDataSourceInput { s.Type = &v return s } type CreateDataSourceOutput struct { _ struct{} `type:"structure"` // The DataSource object. DataSource *DataSource `locationName:"dataSource" type:"structure"` } // String returns the string representation func (s CreateDataSourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateDataSourceOutput) GoString() string { return s.String() } // SetDataSource sets the DataSource field's value. func (s *CreateDataSourceOutput) SetDataSource(v *DataSource) *CreateDataSourceOutput { s.DataSource = v return s } type CreateFunctionInput struct { _ struct{} `type:"structure"` // The GraphQL API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The Function DataSource name. // // DataSourceName is a required field DataSourceName *string `locationName:"dataSourceName" min:"1" type:"string" required:"true"` // The Function description. Description *string `locationName:"description" type:"string"` // The version of the request mapping template. Currently the supported value // is 2018-05-29. // // FunctionVersion is a required field FunctionVersion *string `locationName:"functionVersion" type:"string" required:"true"` // The Function name. The function name does not have to be unique. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` // The Function request mapping template. Functions support only the 2018-05-29 // version of the request mapping template. RequestMappingTemplate *string `locationName:"requestMappingTemplate" min:"1" type:"string"` // The Function response mapping template. ResponseMappingTemplate *string `locationName:"responseMappingTemplate" min:"1" type:"string"` // Describes a Sync configuration for a resolver. // // Contains information on which Conflict Detection as well as Resolution strategy // should be performed when the resolver is invoked. SyncConfig *SyncConfig `locationName:"syncConfig" type:"structure"` } // String returns the string representation func (s CreateFunctionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateFunctionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateFunctionInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateFunctionInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if s.DataSourceName == nil { invalidParams.Add(request.NewErrParamRequired("DataSourceName")) } if s.DataSourceName != nil && len(*s.DataSourceName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DataSourceName", 1)) } if s.FunctionVersion == nil { invalidParams.Add(request.NewErrParamRequired("FunctionVersion")) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if s.RequestMappingTemplate != nil && len(*s.RequestMappingTemplate) < 1 { invalidParams.Add(request.NewErrParamMinLen("RequestMappingTemplate", 1)) } if s.ResponseMappingTemplate != nil && len(*s.ResponseMappingTemplate) < 1 { invalidParams.Add(request.NewErrParamMinLen("ResponseMappingTemplate", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *CreateFunctionInput) SetApiId(v string) *CreateFunctionInput { s.ApiId = &v return s } // SetDataSourceName sets the DataSourceName field's value. func (s *CreateFunctionInput) SetDataSourceName(v string) *CreateFunctionInput { s.DataSourceName = &v return s } // SetDescription sets the Description field's value. func (s *CreateFunctionInput) SetDescription(v string) *CreateFunctionInput { s.Description = &v return s } // SetFunctionVersion sets the FunctionVersion field's value. func (s *CreateFunctionInput) SetFunctionVersion(v string) *CreateFunctionInput { s.FunctionVersion = &v return s } // SetName sets the Name field's value. func (s *CreateFunctionInput) SetName(v string) *CreateFunctionInput { s.Name = &v return s } // SetRequestMappingTemplate sets the RequestMappingTemplate field's value. func (s *CreateFunctionInput) SetRequestMappingTemplate(v string) *CreateFunctionInput { s.RequestMappingTemplate = &v return s } // SetResponseMappingTemplate sets the ResponseMappingTemplate field's value. func (s *CreateFunctionInput) SetResponseMappingTemplate(v string) *CreateFunctionInput { s.ResponseMappingTemplate = &v return s } // SetSyncConfig sets the SyncConfig field's value. func (s *CreateFunctionInput) SetSyncConfig(v *SyncConfig) *CreateFunctionInput { s.SyncConfig = v return s } type CreateFunctionOutput struct { _ struct{} `type:"structure"` // The Function object. FunctionConfiguration *FunctionConfiguration `locationName:"functionConfiguration" type:"structure"` } // String returns the string representation func (s CreateFunctionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateFunctionOutput) GoString() string { return s.String() } // SetFunctionConfiguration sets the FunctionConfiguration field's value. func (s *CreateFunctionOutput) SetFunctionConfiguration(v *FunctionConfiguration) *CreateFunctionOutput { s.FunctionConfiguration = v return s } type CreateGraphqlApiInput struct { _ struct{} `type:"structure"` // A list of additional authentication providers for the GraphqlApi API. AdditionalAuthenticationProviders []*AdditionalAuthenticationProvider `locationName:"additionalAuthenticationProviders" type:"list"` // The authentication type: API key, Identity and Access Management, OIDC, or // Amazon Cognito user pools. // // AuthenticationType is a required field AuthenticationType *string `locationName:"authenticationType" type:"string" required:"true" enum:"AuthenticationType"` // Configuration for AWS Lambda function authorization. LambdaAuthorizerConfig *LambdaAuthorizerConfig `locationName:"lambdaAuthorizerConfig" type:"structure"` // The Amazon CloudWatch Logs configuration. LogConfig *LogConfig `locationName:"logConfig" type:"structure"` // A user-supplied name for the GraphqlApi. // // Name is a required field Name *string `locationName:"name" type:"string" required:"true"` // The OpenID Connect configuration. OpenIDConnectConfig *OpenIDConnectConfig `locationName:"openIDConnectConfig" type:"structure"` // A TagMap object. Tags map[string]*string `locationName:"tags" min:"1" type:"map"` // The Amazon Cognito user pool configuration. UserPoolConfig *UserPoolConfig `locationName:"userPoolConfig" type:"structure"` // A flag indicating whether to enable X-Ray tracing for the GraphqlApi. XrayEnabled *bool `locationName:"xrayEnabled" type:"boolean"` } // String returns the string representation func (s CreateGraphqlApiInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateGraphqlApiInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateGraphqlApiInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateGraphqlApiInput"} if s.AuthenticationType == nil { invalidParams.Add(request.NewErrParamRequired("AuthenticationType")) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Tags != nil && len(s.Tags) < 1 { invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) } if s.AdditionalAuthenticationProviders != nil { for i, v := range s.AdditionalAuthenticationProviders { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AdditionalAuthenticationProviders", i), err.(request.ErrInvalidParams)) } } } if s.LambdaAuthorizerConfig != nil { if err := s.LambdaAuthorizerConfig.Validate(); err != nil { invalidParams.AddNested("LambdaAuthorizerConfig", err.(request.ErrInvalidParams)) } } if s.LogConfig != nil { if err := s.LogConfig.Validate(); err != nil { invalidParams.AddNested("LogConfig", err.(request.ErrInvalidParams)) } } if s.OpenIDConnectConfig != nil { if err := s.OpenIDConnectConfig.Validate(); err != nil { invalidParams.AddNested("OpenIDConnectConfig", err.(request.ErrInvalidParams)) } } if s.UserPoolConfig != nil { if err := s.UserPoolConfig.Validate(); err != nil { invalidParams.AddNested("UserPoolConfig", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAdditionalAuthenticationProviders sets the AdditionalAuthenticationProviders field's value. func (s *CreateGraphqlApiInput) SetAdditionalAuthenticationProviders(v []*AdditionalAuthenticationProvider) *CreateGraphqlApiInput { s.AdditionalAuthenticationProviders = v return s } // SetAuthenticationType sets the AuthenticationType field's value. func (s *CreateGraphqlApiInput) SetAuthenticationType(v string) *CreateGraphqlApiInput { s.AuthenticationType = &v return s } // SetLambdaAuthorizerConfig sets the LambdaAuthorizerConfig field's value. func (s *CreateGraphqlApiInput) SetLambdaAuthorizerConfig(v *LambdaAuthorizerConfig) *CreateGraphqlApiInput { s.LambdaAuthorizerConfig = v return s } // SetLogConfig sets the LogConfig field's value. func (s *CreateGraphqlApiInput) SetLogConfig(v *LogConfig) *CreateGraphqlApiInput { s.LogConfig = v return s } // SetName sets the Name field's value. func (s *CreateGraphqlApiInput) SetName(v string) *CreateGraphqlApiInput { s.Name = &v return s } // SetOpenIDConnectConfig sets the OpenIDConnectConfig field's value. func (s *CreateGraphqlApiInput) SetOpenIDConnectConfig(v *OpenIDConnectConfig) *CreateGraphqlApiInput { s.OpenIDConnectConfig = v return s } // SetTags sets the Tags field's value. func (s *CreateGraphqlApiInput) SetTags(v map[string]*string) *CreateGraphqlApiInput { s.Tags = v return s } // SetUserPoolConfig sets the UserPoolConfig field's value. func (s *CreateGraphqlApiInput) SetUserPoolConfig(v *UserPoolConfig) *CreateGraphqlApiInput { s.UserPoolConfig = v return s } // SetXrayEnabled sets the XrayEnabled field's value. func (s *CreateGraphqlApiInput) SetXrayEnabled(v bool) *CreateGraphqlApiInput { s.XrayEnabled = &v return s } type CreateGraphqlApiOutput struct { _ struct{} `type:"structure"` // The GraphqlApi. GraphqlApi *GraphqlApi `locationName:"graphqlApi" type:"structure"` } // String returns the string representation func (s CreateGraphqlApiOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateGraphqlApiOutput) GoString() string { return s.String() } // SetGraphqlApi sets the GraphqlApi field's value. func (s *CreateGraphqlApiOutput) SetGraphqlApi(v *GraphqlApi) *CreateGraphqlApiOutput { s.GraphqlApi = v return s } type CreateResolverInput struct { _ struct{} `type:"structure"` // The ID for the GraphQL API for which the resolver is being created. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The caching configuration for the resolver. CachingConfig *CachingConfig `locationName:"cachingConfig" type:"structure"` // The name of the data source for which the resolver is being created. DataSourceName *string `locationName:"dataSourceName" min:"1" type:"string"` // The name of the field to attach the resolver to. // // FieldName is a required field FieldName *string `locationName:"fieldName" min:"1" type:"string" required:"true"` // The resolver type. // // * UNIT: A UNIT resolver type. A UNIT resolver is the default resolver // type. A UNIT resolver enables you to execute a GraphQL query against a // single data source. // // * PIPELINE: A PIPELINE resolver type. A PIPELINE resolver enables you // to execute a series of Function in a serial manner. You can use a pipeline // resolver to execute a GraphQL query against multiple data sources. Kind *string `locationName:"kind" type:"string" enum:"ResolverKind"` // The PipelineConfig. PipelineConfig *PipelineConfig `locationName:"pipelineConfig" type:"structure"` // The mapping template to be used for requests. // // A resolver uses a request mapping template to convert a GraphQL expression // into a format that a data source can understand. Mapping templates are written // in Apache Velocity Template Language (VTL). // // VTL request mapping templates are optional when using a Lambda data source. // For all other data sources, VTL request and response mapping templates are // required. RequestMappingTemplate *string `locationName:"requestMappingTemplate" min:"1" type:"string"` // The mapping template to be used for responses from the data source. ResponseMappingTemplate *string `locationName:"responseMappingTemplate" min:"1" type:"string"` // The SyncConfig for a resolver attached to a versioned datasource. SyncConfig *SyncConfig `locationName:"syncConfig" type:"structure"` // The name of the Type. // // TypeName is a required field TypeName *string `location:"uri" locationName:"typeName" min:"1" type:"string" required:"true"` } // String returns the string representation func (s CreateResolverInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateResolverInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateResolverInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateResolverInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if s.DataSourceName != nil && len(*s.DataSourceName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DataSourceName", 1)) } if s.FieldName == nil { invalidParams.Add(request.NewErrParamRequired("FieldName")) } if s.FieldName != nil && len(*s.FieldName) < 1 { invalidParams.Add(request.NewErrParamMinLen("FieldName", 1)) } if s.RequestMappingTemplate != nil && len(*s.RequestMappingTemplate) < 1 { invalidParams.Add(request.NewErrParamMinLen("RequestMappingTemplate", 1)) } if s.ResponseMappingTemplate != nil && len(*s.ResponseMappingTemplate) < 1 { invalidParams.Add(request.NewErrParamMinLen("ResponseMappingTemplate", 1)) } if s.TypeName == nil { invalidParams.Add(request.NewErrParamRequired("TypeName")) } if s.TypeName != nil && len(*s.TypeName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TypeName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *CreateResolverInput) SetApiId(v string) *CreateResolverInput { s.ApiId = &v return s } // SetCachingConfig sets the CachingConfig field's value. func (s *CreateResolverInput) SetCachingConfig(v *CachingConfig) *CreateResolverInput { s.CachingConfig = v return s } // SetDataSourceName sets the DataSourceName field's value. func (s *CreateResolverInput) SetDataSourceName(v string) *CreateResolverInput { s.DataSourceName = &v return s } // SetFieldName sets the FieldName field's value. func (s *CreateResolverInput) SetFieldName(v string) *CreateResolverInput { s.FieldName = &v return s } // SetKind sets the Kind field's value. func (s *CreateResolverInput) SetKind(v string) *CreateResolverInput { s.Kind = &v return s } // SetPipelineConfig sets the PipelineConfig field's value. func (s *CreateResolverInput) SetPipelineConfig(v *PipelineConfig) *CreateResolverInput { s.PipelineConfig = v return s } // SetRequestMappingTemplate sets the RequestMappingTemplate field's value. func (s *CreateResolverInput) SetRequestMappingTemplate(v string) *CreateResolverInput { s.RequestMappingTemplate = &v return s } // SetResponseMappingTemplate sets the ResponseMappingTemplate field's value. func (s *CreateResolverInput) SetResponseMappingTemplate(v string) *CreateResolverInput { s.ResponseMappingTemplate = &v return s } // SetSyncConfig sets the SyncConfig field's value. func (s *CreateResolverInput) SetSyncConfig(v *SyncConfig) *CreateResolverInput { s.SyncConfig = v return s } // SetTypeName sets the TypeName field's value. func (s *CreateResolverInput) SetTypeName(v string) *CreateResolverInput { s.TypeName = &v return s } type CreateResolverOutput struct { _ struct{} `type:"structure"` // The Resolver object. Resolver *Resolver `locationName:"resolver" type:"structure"` } // String returns the string representation func (s CreateResolverOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateResolverOutput) GoString() string { return s.String() } // SetResolver sets the Resolver field's value. func (s *CreateResolverOutput) SetResolver(v *Resolver) *CreateResolverOutput { s.Resolver = v return s } type CreateTypeInput struct { _ struct{} `type:"structure"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The type definition, in GraphQL Schema Definition Language (SDL) format. // // For more information, see the GraphQL SDL documentation (http://graphql.org/learn/schema/). // // Definition is a required field Definition *string `locationName:"definition" type:"string" required:"true"` // The type format: SDL or JSON. // // Format is a required field Format *string `locationName:"format" type:"string" required:"true" enum:"TypeDefinitionFormat"` } // String returns the string representation func (s CreateTypeInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateTypeInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateTypeInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateTypeInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if s.Definition == nil { invalidParams.Add(request.NewErrParamRequired("Definition")) } if s.Format == nil { invalidParams.Add(request.NewErrParamRequired("Format")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *CreateTypeInput) SetApiId(v string) *CreateTypeInput { s.ApiId = &v return s } // SetDefinition sets the Definition field's value. func (s *CreateTypeInput) SetDefinition(v string) *CreateTypeInput { s.Definition = &v return s } // SetFormat sets the Format field's value. func (s *CreateTypeInput) SetFormat(v string) *CreateTypeInput { s.Format = &v return s } type CreateTypeOutput struct { _ struct{} `type:"structure"` // The Type object. Type *Type `locationName:"type" type:"structure"` } // String returns the string representation func (s CreateTypeOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateTypeOutput) GoString() string { return s.String() } // SetType sets the Type field's value. func (s *CreateTypeOutput) SetType(v *Type) *CreateTypeOutput { s.Type = v return s } // Describes a data source. type DataSource struct { _ struct{} `type:"structure"` // The data source ARN. DataSourceArn *string `locationName:"dataSourceArn" type:"string"` // The description of the data source. Description *string `locationName:"description" type:"string"` // Amazon DynamoDB settings. DynamodbConfig *DynamodbDataSourceConfig `locationName:"dynamodbConfig" type:"structure"` // Amazon Elasticsearch Service settings. ElasticsearchConfig *ElasticsearchDataSourceConfig `locationName:"elasticsearchConfig" type:"structure"` // HTTP endpoint settings. HttpConfig *HttpDataSourceConfig `locationName:"httpConfig" type:"structure"` // Amazon Web Services Lambda settings. LambdaConfig *LambdaDataSourceConfig `locationName:"lambdaConfig" type:"structure"` // The name of the data source. Name *string `locationName:"name" min:"1" type:"string"` // Relational database settings. RelationalDatabaseConfig *RelationalDatabaseDataSourceConfig `locationName:"relationalDatabaseConfig" type:"structure"` // The Identity and Access Management service role ARN for the data source. // The system assumes this role when accessing the data source. ServiceRoleArn *string `locationName:"serviceRoleArn" type:"string"` // The type of the data source. // // * AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table. // // * AMAZON_ELASTICSEARCH: The data source is an Amazon Elasticsearch Service // domain. // // * AWS_LAMBDA: The data source is an Amazon Web Services Lambda function. // // * NONE: There is no data source. This type is used when you wish to invoke // a GraphQL operation without connecting to a data source, such as performing // data transformation with resolvers or triggering a subscription to be // invoked from a mutation. // // * HTTP: The data source is an HTTP endpoint. // // * RELATIONAL_DATABASE: The data source is a relational database. Type *string `locationName:"type" type:"string" enum:"DataSourceType"` } // String returns the string representation func (s DataSource) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DataSource) GoString() string { return s.String() } // SetDataSourceArn sets the DataSourceArn field's value. func (s *DataSource) SetDataSourceArn(v string) *DataSource { s.DataSourceArn = &v return s } // SetDescription sets the Description field's value. func (s *DataSource) SetDescription(v string) *DataSource { s.Description = &v return s } // SetDynamodbConfig sets the DynamodbConfig field's value. func (s *DataSource) SetDynamodbConfig(v *DynamodbDataSourceConfig) *DataSource { s.DynamodbConfig = v return s } // SetElasticsearchConfig sets the ElasticsearchConfig field's value. func (s *DataSource) SetElasticsearchConfig(v *ElasticsearchDataSourceConfig) *DataSource { s.ElasticsearchConfig = v return s } // SetHttpConfig sets the HttpConfig field's value. func (s *DataSource) SetHttpConfig(v *HttpDataSourceConfig) *DataSource { s.HttpConfig = v return s } // SetLambdaConfig sets the LambdaConfig field's value. func (s *DataSource) SetLambdaConfig(v *LambdaDataSourceConfig) *DataSource { s.LambdaConfig = v return s } // SetName sets the Name field's value. func (s *DataSource) SetName(v string) *DataSource { s.Name = &v return s } // SetRelationalDatabaseConfig sets the RelationalDatabaseConfig field's value. func (s *DataSource) SetRelationalDatabaseConfig(v *RelationalDatabaseDataSourceConfig) *DataSource { s.RelationalDatabaseConfig = v return s } // SetServiceRoleArn sets the ServiceRoleArn field's value. func (s *DataSource) SetServiceRoleArn(v string) *DataSource { s.ServiceRoleArn = &v return s } // SetType sets the Type field's value. func (s *DataSource) SetType(v string) *DataSource { s.Type = &v return s } // Represents the input of a DeleteApiCache operation. type DeleteApiCacheInput struct { _ struct{} `type:"structure"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` } // String returns the string representation func (s DeleteApiCacheInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteApiCacheInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteApiCacheInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteApiCacheInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *DeleteApiCacheInput) SetApiId(v string) *DeleteApiCacheInput { s.ApiId = &v return s } // Represents the output of a DeleteApiCache operation. type DeleteApiCacheOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteApiCacheOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteApiCacheOutput) GoString() string { return s.String() } type DeleteApiKeyInput struct { _ struct{} `type:"structure"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The ID for the API key. // // Id is a required field Id *string `location:"uri" locationName:"id" type:"string" required:"true"` } // String returns the string representation func (s DeleteApiKeyInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteApiKeyInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteApiKeyInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteApiKeyInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } if s.Id != nil && len(*s.Id) < 1 { invalidParams.Add(request.NewErrParamMinLen("Id", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *DeleteApiKeyInput) SetApiId(v string) *DeleteApiKeyInput { s.ApiId = &v return s } // SetId sets the Id field's value. func (s *DeleteApiKeyInput) SetId(v string) *DeleteApiKeyInput { s.Id = &v return s } type DeleteApiKeyOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteApiKeyOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteApiKeyOutput) GoString() string { return s.String() } type DeleteDataSourceInput struct { _ struct{} `type:"structure"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The name of the data source. // // Name is a required field Name *string `location:"uri" locationName:"name" min:"1" type:"string" required:"true"` } // String returns the string representation func (s DeleteDataSourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteDataSourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteDataSourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteDataSourceInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *DeleteDataSourceInput) SetApiId(v string) *DeleteDataSourceInput { s.ApiId = &v return s } // SetName sets the Name field's value. func (s *DeleteDataSourceInput) SetName(v string) *DeleteDataSourceInput { s.Name = &v return s } type DeleteDataSourceOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteDataSourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteDataSourceOutput) GoString() string { return s.String() } type DeleteFunctionInput struct { _ struct{} `type:"structure"` // The GraphQL API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The Function ID. // // FunctionId is a required field FunctionId *string `location:"uri" locationName:"functionId" min:"1" type:"string" required:"true"` } // String returns the string representation func (s DeleteFunctionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteFunctionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteFunctionInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteFunctionInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if s.FunctionId == nil { invalidParams.Add(request.NewErrParamRequired("FunctionId")) } if s.FunctionId != nil && len(*s.FunctionId) < 1 { invalidParams.Add(request.NewErrParamMinLen("FunctionId", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *DeleteFunctionInput) SetApiId(v string) *DeleteFunctionInput { s.ApiId = &v return s } // SetFunctionId sets the FunctionId field's value. func (s *DeleteFunctionInput) SetFunctionId(v string) *DeleteFunctionInput { s.FunctionId = &v return s } type DeleteFunctionOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteFunctionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteFunctionOutput) GoString() string { return s.String() } type DeleteGraphqlApiInput struct { _ struct{} `type:"structure"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` } // String returns the string representation func (s DeleteGraphqlApiInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteGraphqlApiInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteGraphqlApiInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteGraphqlApiInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *DeleteGraphqlApiInput) SetApiId(v string) *DeleteGraphqlApiInput { s.ApiId = &v return s } type DeleteGraphqlApiOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteGraphqlApiOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteGraphqlApiOutput) GoString() string { return s.String() } type DeleteResolverInput struct { _ struct{} `type:"structure"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The resolver field name. // // FieldName is a required field FieldName *string `location:"uri" locationName:"fieldName" min:"1" type:"string" required:"true"` // The name of the resolver type. // // TypeName is a required field TypeName *string `location:"uri" locationName:"typeName" min:"1" type:"string" required:"true"` } // String returns the string representation func (s DeleteResolverInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteResolverInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteResolverInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteResolverInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if s.FieldName == nil { invalidParams.Add(request.NewErrParamRequired("FieldName")) } if s.FieldName != nil && len(*s.FieldName) < 1 { invalidParams.Add(request.NewErrParamMinLen("FieldName", 1)) } if s.TypeName == nil { invalidParams.Add(request.NewErrParamRequired("TypeName")) } if s.TypeName != nil && len(*s.TypeName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TypeName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *DeleteResolverInput) SetApiId(v string) *DeleteResolverInput { s.ApiId = &v return s } // SetFieldName sets the FieldName field's value. func (s *DeleteResolverInput) SetFieldName(v string) *DeleteResolverInput { s.FieldName = &v return s } // SetTypeName sets the TypeName field's value. func (s *DeleteResolverInput) SetTypeName(v string) *DeleteResolverInput { s.TypeName = &v return s } type DeleteResolverOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteResolverOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteResolverOutput) GoString() string { return s.String() } type DeleteTypeInput struct { _ struct{} `type:"structure"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The type name. // // TypeName is a required field TypeName *string `location:"uri" locationName:"typeName" min:"1" type:"string" required:"true"` } // String returns the string representation func (s DeleteTypeInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteTypeInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteTypeInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteTypeInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if s.TypeName == nil { invalidParams.Add(request.NewErrParamRequired("TypeName")) } if s.TypeName != nil && len(*s.TypeName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TypeName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *DeleteTypeInput) SetApiId(v string) *DeleteTypeInput { s.ApiId = &v return s } // SetTypeName sets the TypeName field's value. func (s *DeleteTypeInput) SetTypeName(v string) *DeleteTypeInput { s.TypeName = &v return s } type DeleteTypeOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteTypeOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteTypeOutput) GoString() string { return s.String() } // Describes a Delta Sync configuration. type DeltaSyncConfig struct { _ struct{} `type:"structure"` // The number of minutes an Item is stored in the datasource. BaseTableTTL *int64 `locationName:"baseTableTTL" type:"long"` // The Delta Sync table name. DeltaSyncTableName *string `locationName:"deltaSyncTableName" type:"string"` // The number of minutes a Delta Sync log entry is stored in the Delta Sync // table. DeltaSyncTableTTL *int64 `locationName:"deltaSyncTableTTL" type:"long"` } // String returns the string representation func (s DeltaSyncConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeltaSyncConfig) GoString() string { return s.String() } // SetBaseTableTTL sets the BaseTableTTL field's value. func (s *DeltaSyncConfig) SetBaseTableTTL(v int64) *DeltaSyncConfig { s.BaseTableTTL = &v return s } // SetDeltaSyncTableName sets the DeltaSyncTableName field's value. func (s *DeltaSyncConfig) SetDeltaSyncTableName(v string) *DeltaSyncConfig { s.DeltaSyncTableName = &v return s } // SetDeltaSyncTableTTL sets the DeltaSyncTableTTL field's value. func (s *DeltaSyncConfig) SetDeltaSyncTableTTL(v int64) *DeltaSyncConfig { s.DeltaSyncTableTTL = &v return s } // Describes an Amazon DynamoDB data source configuration. type DynamodbDataSourceConfig struct { _ struct{} `type:"structure"` // The Amazon Web Services Region. // // AwsRegion is a required field AwsRegion *string `locationName:"awsRegion" type:"string" required:"true"` // The DeltaSyncConfig for a versioned datasource. DeltaSyncConfig *DeltaSyncConfig `locationName:"deltaSyncConfig" type:"structure"` // The table name. // // TableName is a required field TableName *string `locationName:"tableName" type:"string" required:"true"` // Set to TRUE to use Amazon Cognito credentials with this data source. UseCallerCredentials *bool `locationName:"useCallerCredentials" type:"boolean"` // Set to TRUE to use Conflict Detection and Resolution with this data source. Versioned *bool `locationName:"versioned" type:"boolean"` } // String returns the string representation func (s DynamodbDataSourceConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DynamodbDataSourceConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DynamodbDataSourceConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DynamodbDataSourceConfig"} if s.AwsRegion == nil { invalidParams.Add(request.NewErrParamRequired("AwsRegion")) } if s.TableName == nil { invalidParams.Add(request.NewErrParamRequired("TableName")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAwsRegion sets the AwsRegion field's value. func (s *DynamodbDataSourceConfig) SetAwsRegion(v string) *DynamodbDataSourceConfig { s.AwsRegion = &v return s } // SetDeltaSyncConfig sets the DeltaSyncConfig field's value. func (s *DynamodbDataSourceConfig) SetDeltaSyncConfig(v *DeltaSyncConfig) *DynamodbDataSourceConfig { s.DeltaSyncConfig = v return s } // SetTableName sets the TableName field's value. func (s *DynamodbDataSourceConfig) SetTableName(v string) *DynamodbDataSourceConfig { s.TableName = &v return s } // SetUseCallerCredentials sets the UseCallerCredentials field's value. func (s *DynamodbDataSourceConfig) SetUseCallerCredentials(v bool) *DynamodbDataSourceConfig { s.UseCallerCredentials = &v return s } // SetVersioned sets the Versioned field's value. func (s *DynamodbDataSourceConfig) SetVersioned(v bool) *DynamodbDataSourceConfig { s.Versioned = &v return s } // Describes an Elasticsearch data source configuration. type ElasticsearchDataSourceConfig struct { _ struct{} `type:"structure"` // The Amazon Web Services Region. // // AwsRegion is a required field AwsRegion *string `locationName:"awsRegion" type:"string" required:"true"` // The endpoint. // // Endpoint is a required field Endpoint *string `locationName:"endpoint" type:"string" required:"true"` } // String returns the string representation func (s ElasticsearchDataSourceConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ElasticsearchDataSourceConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ElasticsearchDataSourceConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ElasticsearchDataSourceConfig"} if s.AwsRegion == nil { invalidParams.Add(request.NewErrParamRequired("AwsRegion")) } if s.Endpoint == nil { invalidParams.Add(request.NewErrParamRequired("Endpoint")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAwsRegion sets the AwsRegion field's value. func (s *ElasticsearchDataSourceConfig) SetAwsRegion(v string) *ElasticsearchDataSourceConfig { s.AwsRegion = &v return s } // SetEndpoint sets the Endpoint field's value. func (s *ElasticsearchDataSourceConfig) SetEndpoint(v string) *ElasticsearchDataSourceConfig { s.Endpoint = &v return s } // Represents the input of a FlushApiCache operation. type FlushApiCacheInput struct { _ struct{} `type:"structure"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` } // String returns the string representation func (s FlushApiCacheInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s FlushApiCacheInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *FlushApiCacheInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "FlushApiCacheInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *FlushApiCacheInput) SetApiId(v string) *FlushApiCacheInput { s.ApiId = &v return s } // Represents the output of a FlushApiCache operation. type FlushApiCacheOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s FlushApiCacheOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s FlushApiCacheOutput) GoString() string { return s.String() } // A function is a reusable entity. Multiple functions can be used to compose // the resolver logic. type FunctionConfiguration struct { _ struct{} `type:"structure"` // The name of the DataSource. DataSourceName *string `locationName:"dataSourceName" min:"1" type:"string"` // The Function description. Description *string `locationName:"description" type:"string"` // The ARN of the Function object. FunctionArn *string `locationName:"functionArn" type:"string"` // A unique ID representing the Function object. FunctionId *string `locationName:"functionId" type:"string"` // The version of the request mapping template. Currently only the 2018-05-29 // version of the template is supported. FunctionVersion *string `locationName:"functionVersion" type:"string"` // The name of the Function object. Name *string `locationName:"name" min:"1" type:"string"` // The Function request mapping template. Functions support only the 2018-05-29 // version of the request mapping template. RequestMappingTemplate *string `locationName:"requestMappingTemplate" min:"1" type:"string"` // The Function response mapping template. ResponseMappingTemplate *string `locationName:"responseMappingTemplate" min:"1" type:"string"` // Describes a Sync configuration for a resolver. // // Contains information on which Conflict Detection as well as Resolution strategy // should be performed when the resolver is invoked. SyncConfig *SyncConfig `locationName:"syncConfig" type:"structure"` } // String returns the string representation func (s FunctionConfiguration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s FunctionConfiguration) GoString() string { return s.String() } // SetDataSourceName sets the DataSourceName field's value. func (s *FunctionConfiguration) SetDataSourceName(v string) *FunctionConfiguration { s.DataSourceName = &v return s } // SetDescription sets the Description field's value. func (s *FunctionConfiguration) SetDescription(v string) *FunctionConfiguration { s.Description = &v return s } // SetFunctionArn sets the FunctionArn field's value. func (s *FunctionConfiguration) SetFunctionArn(v string) *FunctionConfiguration { s.FunctionArn = &v return s } // SetFunctionId sets the FunctionId field's value. func (s *FunctionConfiguration) SetFunctionId(v string) *FunctionConfiguration { s.FunctionId = &v return s } // SetFunctionVersion sets the FunctionVersion field's value. func (s *FunctionConfiguration) SetFunctionVersion(v string) *FunctionConfiguration { s.FunctionVersion = &v return s } // SetName sets the Name field's value. func (s *FunctionConfiguration) SetName(v string) *FunctionConfiguration { s.Name = &v return s } // SetRequestMappingTemplate sets the RequestMappingTemplate field's value. func (s *FunctionConfiguration) SetRequestMappingTemplate(v string) *FunctionConfiguration { s.RequestMappingTemplate = &v return s } // SetResponseMappingTemplate sets the ResponseMappingTemplate field's value. func (s *FunctionConfiguration) SetResponseMappingTemplate(v string) *FunctionConfiguration { s.ResponseMappingTemplate = &v return s } // SetSyncConfig sets the SyncConfig field's value. func (s *FunctionConfiguration) SetSyncConfig(v *SyncConfig) *FunctionConfiguration { s.SyncConfig = v return s } // Represents the input of a GetApiCache operation. type GetApiCacheInput struct { _ struct{} `type:"structure"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` } // String returns the string representation func (s GetApiCacheInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetApiCacheInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetApiCacheInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetApiCacheInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *GetApiCacheInput) SetApiId(v string) *GetApiCacheInput { s.ApiId = &v return s } // Represents the output of a GetApiCache operation. type GetApiCacheOutput struct { _ struct{} `type:"structure"` // The ApiCache object. ApiCache *ApiCache `locationName:"apiCache" type:"structure"` } // String returns the string representation func (s GetApiCacheOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetApiCacheOutput) GoString() string { return s.String() } // SetApiCache sets the ApiCache field's value. func (s *GetApiCacheOutput) SetApiCache(v *ApiCache) *GetApiCacheOutput { s.ApiCache = v return s } type GetDataSourceInput struct { _ struct{} `type:"structure"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The name of the data source. // // Name is a required field Name *string `location:"uri" locationName:"name" min:"1" type:"string" required:"true"` } // String returns the string representation func (s GetDataSourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetDataSourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetDataSourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetDataSourceInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *GetDataSourceInput) SetApiId(v string) *GetDataSourceInput { s.ApiId = &v return s } // SetName sets the Name field's value. func (s *GetDataSourceInput) SetName(v string) *GetDataSourceInput { s.Name = &v return s } type GetDataSourceOutput struct { _ struct{} `type:"structure"` // The DataSource object. DataSource *DataSource `locationName:"dataSource" type:"structure"` } // String returns the string representation func (s GetDataSourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetDataSourceOutput) GoString() string { return s.String() } // SetDataSource sets the DataSource field's value. func (s *GetDataSourceOutput) SetDataSource(v *DataSource) *GetDataSourceOutput { s.DataSource = v return s } type GetFunctionInput struct { _ struct{} `type:"structure"` // The GraphQL API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The Function ID. // // FunctionId is a required field FunctionId *string `location:"uri" locationName:"functionId" min:"1" type:"string" required:"true"` } // String returns the string representation func (s GetFunctionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetFunctionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetFunctionInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetFunctionInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if s.FunctionId == nil { invalidParams.Add(request.NewErrParamRequired("FunctionId")) } if s.FunctionId != nil && len(*s.FunctionId) < 1 { invalidParams.Add(request.NewErrParamMinLen("FunctionId", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *GetFunctionInput) SetApiId(v string) *GetFunctionInput { s.ApiId = &v return s } // SetFunctionId sets the FunctionId field's value. func (s *GetFunctionInput) SetFunctionId(v string) *GetFunctionInput { s.FunctionId = &v return s } type GetFunctionOutput struct { _ struct{} `type:"structure"` // The Function object. FunctionConfiguration *FunctionConfiguration `locationName:"functionConfiguration" type:"structure"` } // String returns the string representation func (s GetFunctionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetFunctionOutput) GoString() string { return s.String() } // SetFunctionConfiguration sets the FunctionConfiguration field's value. func (s *GetFunctionOutput) SetFunctionConfiguration(v *FunctionConfiguration) *GetFunctionOutput { s.FunctionConfiguration = v return s } type GetGraphqlApiInput struct { _ struct{} `type:"structure"` // The API ID for the GraphQL API. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` } // String returns the string representation func (s GetGraphqlApiInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetGraphqlApiInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetGraphqlApiInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetGraphqlApiInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *GetGraphqlApiInput) SetApiId(v string) *GetGraphqlApiInput { s.ApiId = &v return s } type GetGraphqlApiOutput struct { _ struct{} `type:"structure"` // The GraphqlApi object. GraphqlApi *GraphqlApi `locationName:"graphqlApi" type:"structure"` } // String returns the string representation func (s GetGraphqlApiOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetGraphqlApiOutput) GoString() string { return s.String() } // SetGraphqlApi sets the GraphqlApi field's value. func (s *GetGraphqlApiOutput) SetGraphqlApi(v *GraphqlApi) *GetGraphqlApiOutput { s.GraphqlApi = v return s } type GetIntrospectionSchemaInput struct { _ struct{} `type:"structure"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The schema format: SDL or JSON. // // Format is a required field Format *string `location:"querystring" locationName:"format" type:"string" required:"true" enum:"OutputType"` // A flag that specifies whether the schema introspection should contain directives. IncludeDirectives *bool `location:"querystring" locationName:"includeDirectives" type:"boolean"` } // String returns the string representation func (s GetIntrospectionSchemaInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetIntrospectionSchemaInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetIntrospectionSchemaInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetIntrospectionSchemaInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if s.Format == nil { invalidParams.Add(request.NewErrParamRequired("Format")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *GetIntrospectionSchemaInput) SetApiId(v string) *GetIntrospectionSchemaInput { s.ApiId = &v return s } // SetFormat sets the Format field's value. func (s *GetIntrospectionSchemaInput) SetFormat(v string) *GetIntrospectionSchemaInput { s.Format = &v return s } // SetIncludeDirectives sets the IncludeDirectives field's value. func (s *GetIntrospectionSchemaInput) SetIncludeDirectives(v bool) *GetIntrospectionSchemaInput { s.IncludeDirectives = &v return s } type GetIntrospectionSchemaOutput struct { _ struct{} `type:"structure" payload:"Schema"` // The schema, in GraphQL Schema Definition Language (SDL) format. // // For more information, see the GraphQL SDL documentation (http://graphql.org/learn/schema/). Schema []byte `locationName:"schema" type:"blob"` } // String returns the string representation func (s GetIntrospectionSchemaOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetIntrospectionSchemaOutput) GoString() string { return s.String() } // SetSchema sets the Schema field's value. func (s *GetIntrospectionSchemaOutput) SetSchema(v []byte) *GetIntrospectionSchemaOutput { s.Schema = v return s } type GetResolverInput struct { _ struct{} `type:"structure"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The resolver field name. // // FieldName is a required field FieldName *string `location:"uri" locationName:"fieldName" min:"1" type:"string" required:"true"` // The resolver type name. // // TypeName is a required field TypeName *string `location:"uri" locationName:"typeName" min:"1" type:"string" required:"true"` } // String returns the string representation func (s GetResolverInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetResolverInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetResolverInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetResolverInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if s.FieldName == nil { invalidParams.Add(request.NewErrParamRequired("FieldName")) } if s.FieldName != nil && len(*s.FieldName) < 1 { invalidParams.Add(request.NewErrParamMinLen("FieldName", 1)) } if s.TypeName == nil { invalidParams.Add(request.NewErrParamRequired("TypeName")) } if s.TypeName != nil && len(*s.TypeName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TypeName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *GetResolverInput) SetApiId(v string) *GetResolverInput { s.ApiId = &v return s } // SetFieldName sets the FieldName field's value. func (s *GetResolverInput) SetFieldName(v string) *GetResolverInput { s.FieldName = &v return s } // SetTypeName sets the TypeName field's value. func (s *GetResolverInput) SetTypeName(v string) *GetResolverInput { s.TypeName = &v return s } type GetResolverOutput struct { _ struct{} `type:"structure"` // The Resolver object. Resolver *Resolver `locationName:"resolver" type:"structure"` } // String returns the string representation func (s GetResolverOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetResolverOutput) GoString() string { return s.String() } // SetResolver sets the Resolver field's value. func (s *GetResolverOutput) SetResolver(v *Resolver) *GetResolverOutput { s.Resolver = v return s } type GetSchemaCreationStatusInput struct { _ struct{} `type:"structure"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` } // String returns the string representation func (s GetSchemaCreationStatusInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetSchemaCreationStatusInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetSchemaCreationStatusInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetSchemaCreationStatusInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *GetSchemaCreationStatusInput) SetApiId(v string) *GetSchemaCreationStatusInput { s.ApiId = &v return s } type GetSchemaCreationStatusOutput struct { _ struct{} `type:"structure"` // Detailed information about the status of the schema creation operation. Details *string `locationName:"details" type:"string"` // The current state of the schema (PROCESSING, FAILED, SUCCESS, or NOT_APPLICABLE). // When the schema is in the ACTIVE state, you can add data. Status *string `locationName:"status" type:"string" enum:"SchemaStatus"` } // String returns the string representation func (s GetSchemaCreationStatusOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetSchemaCreationStatusOutput) GoString() string { return s.String() } // SetDetails sets the Details field's value. func (s *GetSchemaCreationStatusOutput) SetDetails(v string) *GetSchemaCreationStatusOutput { s.Details = &v return s } // SetStatus sets the Status field's value. func (s *GetSchemaCreationStatusOutput) SetStatus(v string) *GetSchemaCreationStatusOutput { s.Status = &v return s } type GetTypeInput struct { _ struct{} `type:"structure"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The type format: SDL or JSON. // // Format is a required field Format *string `location:"querystring" locationName:"format" type:"string" required:"true" enum:"TypeDefinitionFormat"` // The type name. // // TypeName is a required field TypeName *string `location:"uri" locationName:"typeName" min:"1" type:"string" required:"true"` } // String returns the string representation func (s GetTypeInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetTypeInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetTypeInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetTypeInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if s.Format == nil { invalidParams.Add(request.NewErrParamRequired("Format")) } if s.TypeName == nil { invalidParams.Add(request.NewErrParamRequired("TypeName")) } if s.TypeName != nil && len(*s.TypeName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TypeName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *GetTypeInput) SetApiId(v string) *GetTypeInput { s.ApiId = &v return s } // SetFormat sets the Format field's value. func (s *GetTypeInput) SetFormat(v string) *GetTypeInput { s.Format = &v return s } // SetTypeName sets the TypeName field's value. func (s *GetTypeInput) SetTypeName(v string) *GetTypeInput { s.TypeName = &v return s } type GetTypeOutput struct { _ struct{} `type:"structure"` // The Type object. Type *Type `locationName:"type" type:"structure"` } // String returns the string representation func (s GetTypeOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetTypeOutput) GoString() string { return s.String() } // SetType sets the Type field's value. func (s *GetTypeOutput) SetType(v *Type) *GetTypeOutput { s.Type = v return s } // The GraphQL schema is not valid. type GraphQLSchemaException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s GraphQLSchemaException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GraphQLSchemaException) GoString() string { return s.String() } func newErrorGraphQLSchemaException(v protocol.ResponseMetadata) error { return &GraphQLSchemaException{ RespMetadata: v, } } // Code returns the exception type name. func (s *GraphQLSchemaException) Code() string { return "GraphQLSchemaException" } // Message returns the exception's message. func (s *GraphQLSchemaException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *GraphQLSchemaException) OrigErr() error { return nil } func (s *GraphQLSchemaException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *GraphQLSchemaException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *GraphQLSchemaException) RequestID() string { return s.RespMetadata.RequestID } // Describes a GraphQL API. type GraphqlApi struct { _ struct{} `type:"structure"` // A list of additional authentication providers for the GraphqlApi API. AdditionalAuthenticationProviders []*AdditionalAuthenticationProvider `locationName:"additionalAuthenticationProviders" type:"list"` // The API ID. ApiId *string `locationName:"apiId" type:"string"` // The ARN. Arn *string `locationName:"arn" type:"string"` // The authentication type. AuthenticationType *string `locationName:"authenticationType" type:"string" enum:"AuthenticationType"` // Configuration for AWS Lambda function authorization. LambdaAuthorizerConfig *LambdaAuthorizerConfig `locationName:"lambdaAuthorizerConfig" type:"structure"` // The Amazon CloudWatch Logs configuration. LogConfig *LogConfig `locationName:"logConfig" type:"structure"` // The API name. Name *string `locationName:"name" min:"1" type:"string"` // The OpenID Connect configuration. OpenIDConnectConfig *OpenIDConnectConfig `locationName:"openIDConnectConfig" type:"structure"` // The tags. Tags map[string]*string `locationName:"tags" min:"1" type:"map"` // The URIs. Uris map[string]*string `locationName:"uris" type:"map"` // The Amazon Cognito user pool configuration. UserPoolConfig *UserPoolConfig `locationName:"userPoolConfig" type:"structure"` // The ARN of the WAF ACL associated with this GraphqlApi, if one exists. WafWebAclArn *string `locationName:"wafWebAclArn" type:"string"` // A flag representing whether X-Ray tracing is enabled for this GraphqlApi. XrayEnabled *bool `locationName:"xrayEnabled" type:"boolean"` } // String returns the string representation func (s GraphqlApi) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GraphqlApi) GoString() string { return s.String() } // SetAdditionalAuthenticationProviders sets the AdditionalAuthenticationProviders field's value. func (s *GraphqlApi) SetAdditionalAuthenticationProviders(v []*AdditionalAuthenticationProvider) *GraphqlApi { s.AdditionalAuthenticationProviders = v return s } // SetApiId sets the ApiId field's value. func (s *GraphqlApi) SetApiId(v string) *GraphqlApi { s.ApiId = &v return s } // SetArn sets the Arn field's value. func (s *GraphqlApi) SetArn(v string) *GraphqlApi { s.Arn = &v return s } // SetAuthenticationType sets the AuthenticationType field's value. func (s *GraphqlApi) SetAuthenticationType(v string) *GraphqlApi { s.AuthenticationType = &v return s } // SetLambdaAuthorizerConfig sets the LambdaAuthorizerConfig field's value. func (s *GraphqlApi) SetLambdaAuthorizerConfig(v *LambdaAuthorizerConfig) *GraphqlApi { s.LambdaAuthorizerConfig = v return s } // SetLogConfig sets the LogConfig field's value. func (s *GraphqlApi) SetLogConfig(v *LogConfig) *GraphqlApi { s.LogConfig = v return s } // SetName sets the Name field's value. func (s *GraphqlApi) SetName(v string) *GraphqlApi { s.Name = &v return s } // SetOpenIDConnectConfig sets the OpenIDConnectConfig field's value. func (s *GraphqlApi) SetOpenIDConnectConfig(v *OpenIDConnectConfig) *GraphqlApi { s.OpenIDConnectConfig = v return s } // SetTags sets the Tags field's value. func (s *GraphqlApi) SetTags(v map[string]*string) *GraphqlApi { s.Tags = v return s } // SetUris sets the Uris field's value. func (s *GraphqlApi) SetUris(v map[string]*string) *GraphqlApi { s.Uris = v return s } // SetUserPoolConfig sets the UserPoolConfig field's value. func (s *GraphqlApi) SetUserPoolConfig(v *UserPoolConfig) *GraphqlApi { s.UserPoolConfig = v return s } // SetWafWebAclArn sets the WafWebAclArn field's value. func (s *GraphqlApi) SetWafWebAclArn(v string) *GraphqlApi { s.WafWebAclArn = &v return s } // SetXrayEnabled sets the XrayEnabled field's value. func (s *GraphqlApi) SetXrayEnabled(v bool) *GraphqlApi { s.XrayEnabled = &v return s } // Describes an HTTP data source configuration. type HttpDataSourceConfig struct { _ struct{} `type:"structure"` // The authorization config in case the HTTP endpoint requires authorization. AuthorizationConfig *AuthorizationConfig `locationName:"authorizationConfig" type:"structure"` // The HTTP URL endpoint. You can either specify the domain name or IP, and // port combination, and the URL scheme must be HTTP or HTTPS. If the port is // not specified, AppSync uses the default port 80 for the HTTP endpoint and // port 443 for HTTPS endpoints. Endpoint *string `locationName:"endpoint" type:"string"` } // String returns the string representation func (s HttpDataSourceConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s HttpDataSourceConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *HttpDataSourceConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "HttpDataSourceConfig"} if s.AuthorizationConfig != nil { if err := s.AuthorizationConfig.Validate(); err != nil { invalidParams.AddNested("AuthorizationConfig", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAuthorizationConfig sets the AuthorizationConfig field's value. func (s *HttpDataSourceConfig) SetAuthorizationConfig(v *AuthorizationConfig) *HttpDataSourceConfig { s.AuthorizationConfig = v return s } // SetEndpoint sets the Endpoint field's value. func (s *HttpDataSourceConfig) SetEndpoint(v string) *HttpDataSourceConfig { s.Endpoint = &v return s } // An internal AppSync error occurred. Try your request again. type InternalFailureException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s InternalFailureException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s InternalFailureException) GoString() string { return s.String() } func newErrorInternalFailureException(v protocol.ResponseMetadata) error { return &InternalFailureException{ RespMetadata: v, } } // Code returns the exception type name. func (s *InternalFailureException) Code() string { return "InternalFailureException" } // Message returns the exception's message. func (s *InternalFailureException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *InternalFailureException) OrigErr() error { return nil } func (s *InternalFailureException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *InternalFailureException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *InternalFailureException) RequestID() string { return s.RespMetadata.RequestID } // A LambdaAuthorizerConfig holds configuration on how to authorize AppSync // API access when using the AWS_LAMBDA authorizer mode. Be aware that an AppSync // API may have only one Lambda authorizer configured at a time. type LambdaAuthorizerConfig struct { _ struct{} `type:"structure"` // The number of seconds a response should be cached for. The default is 5 minutes // (300 seconds). The Lambda function can override this by returning a ttlOverride // key in its response. A value of 0 disables caching of responses. AuthorizerResultTtlInSeconds *int64 `locationName:"authorizerResultTtlInSeconds" type:"integer"` // The ARN of the lambda function to be called for authorization. This may be // a standard Lambda ARN, a version ARN (.../v3) or alias ARN. // // Note: This Lambda function must have the following resource-based policy // assigned to it. When configuring Lambda authorizers in the Console, this // is done for you. To do so with the AWS CLI, run the following: // // aws lambda add-permission --function-name "arn:aws:lambda:us-east-2:111122223333:function:my-function" // --statement-id "appsync" --principal appsync.amazonaws.com --action lambda:InvokeFunction // // AuthorizerUri is a required field AuthorizerUri *string `locationName:"authorizerUri" type:"string" required:"true"` // A regular expression for validation of tokens before the Lambda Function // is called. IdentityValidationExpression *string `locationName:"identityValidationExpression" type:"string"` } // String returns the string representation func (s LambdaAuthorizerConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s LambdaAuthorizerConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *LambdaAuthorizerConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "LambdaAuthorizerConfig"} if s.AuthorizerUri == nil { invalidParams.Add(request.NewErrParamRequired("AuthorizerUri")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAuthorizerResultTtlInSeconds sets the AuthorizerResultTtlInSeconds field's value. func (s *LambdaAuthorizerConfig) SetAuthorizerResultTtlInSeconds(v int64) *LambdaAuthorizerConfig { s.AuthorizerResultTtlInSeconds = &v return s } // SetAuthorizerUri sets the AuthorizerUri field's value. func (s *LambdaAuthorizerConfig) SetAuthorizerUri(v string) *LambdaAuthorizerConfig { s.AuthorizerUri = &v return s } // SetIdentityValidationExpression sets the IdentityValidationExpression field's value. func (s *LambdaAuthorizerConfig) SetIdentityValidationExpression(v string) *LambdaAuthorizerConfig { s.IdentityValidationExpression = &v return s } // The LambdaConflictHandlerConfig object when configuring LAMBDA as the Conflict // Handler. type LambdaConflictHandlerConfig struct { _ struct{} `type:"structure"` // The Arn for the Lambda function to use as the Conflict Handler. LambdaConflictHandlerArn *string `locationName:"lambdaConflictHandlerArn" type:"string"` } // String returns the string representation func (s LambdaConflictHandlerConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s LambdaConflictHandlerConfig) GoString() string { return s.String() } // SetLambdaConflictHandlerArn sets the LambdaConflictHandlerArn field's value. func (s *LambdaConflictHandlerConfig) SetLambdaConflictHandlerArn(v string) *LambdaConflictHandlerConfig { s.LambdaConflictHandlerArn = &v return s } // Describes an Amazon Web Services Lambda data source configuration. type LambdaDataSourceConfig struct { _ struct{} `type:"structure"` // The ARN for the Lambda function. // // LambdaFunctionArn is a required field LambdaFunctionArn *string `locationName:"lambdaFunctionArn" type:"string" required:"true"` } // String returns the string representation func (s LambdaDataSourceConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s LambdaDataSourceConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *LambdaDataSourceConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "LambdaDataSourceConfig"} if s.LambdaFunctionArn == nil { invalidParams.Add(request.NewErrParamRequired("LambdaFunctionArn")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetLambdaFunctionArn sets the LambdaFunctionArn field's value. func (s *LambdaDataSourceConfig) SetLambdaFunctionArn(v string) *LambdaDataSourceConfig { s.LambdaFunctionArn = &v return s } // The request exceeded a limit. Try your request again. type LimitExceededException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s LimitExceededException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s LimitExceededException) GoString() string { return s.String() } func newErrorLimitExceededException(v protocol.ResponseMetadata) error { return &LimitExceededException{ RespMetadata: v, } } // Code returns the exception type name. func (s *LimitExceededException) Code() string { return "LimitExceededException" } // Message returns the exception's message. func (s *LimitExceededException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *LimitExceededException) OrigErr() error { return nil } func (s *LimitExceededException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *LimitExceededException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *LimitExceededException) RequestID() string { return s.RespMetadata.RequestID } type ListApiKeysInput struct { _ struct{} `type:"structure"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The maximum number of results you want the request to return. MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` // An identifier that was returned from the previous call to this operation, // which can be used to return the next set of items in the list. NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation func (s ListApiKeysInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListApiKeysInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListApiKeysInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListApiKeysInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *ListApiKeysInput) SetApiId(v string) *ListApiKeysInput { s.ApiId = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListApiKeysInput) SetMaxResults(v int64) *ListApiKeysInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListApiKeysInput) SetNextToken(v string) *ListApiKeysInput { s.NextToken = &v return s } type ListApiKeysOutput struct { _ struct{} `type:"structure"` // The ApiKey objects. ApiKeys []*ApiKey `locationName:"apiKeys" type:"list"` // An identifier to be passed in the next request to this operation to return // the next set of items in the list. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation func (s ListApiKeysOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListApiKeysOutput) GoString() string { return s.String() } // SetApiKeys sets the ApiKeys field's value. func (s *ListApiKeysOutput) SetApiKeys(v []*ApiKey) *ListApiKeysOutput { s.ApiKeys = v return s } // SetNextToken sets the NextToken field's value. func (s *ListApiKeysOutput) SetNextToken(v string) *ListApiKeysOutput { s.NextToken = &v return s } type ListDataSourcesInput struct { _ struct{} `type:"structure"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The maximum number of results you want the request to return. MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` // An identifier that was returned from the previous call to this operation, // which can be used to return the next set of items in the list. NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation func (s ListDataSourcesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListDataSourcesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListDataSourcesInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListDataSourcesInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *ListDataSourcesInput) SetApiId(v string) *ListDataSourcesInput { s.ApiId = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListDataSourcesInput) SetMaxResults(v int64) *ListDataSourcesInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListDataSourcesInput) SetNextToken(v string) *ListDataSourcesInput { s.NextToken = &v return s } type ListDataSourcesOutput struct { _ struct{} `type:"structure"` // The DataSource objects. DataSources []*DataSource `locationName:"dataSources" type:"list"` // An identifier to be passed in the next request to this operation to return // the next set of items in the list. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation func (s ListDataSourcesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListDataSourcesOutput) GoString() string { return s.String() } // SetDataSources sets the DataSources field's value. func (s *ListDataSourcesOutput) SetDataSources(v []*DataSource) *ListDataSourcesOutput { s.DataSources = v return s } // SetNextToken sets the NextToken field's value. func (s *ListDataSourcesOutput) SetNextToken(v string) *ListDataSourcesOutput { s.NextToken = &v return s } type ListFunctionsInput struct { _ struct{} `type:"structure"` // The GraphQL API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The maximum number of results you want the request to return. MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` // An identifier that was returned from the previous call to this operation, // which can be used to return the next set of items in the list. NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation func (s ListFunctionsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListFunctionsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListFunctionsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListFunctionsInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *ListFunctionsInput) SetApiId(v string) *ListFunctionsInput { s.ApiId = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListFunctionsInput) SetMaxResults(v int64) *ListFunctionsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListFunctionsInput) SetNextToken(v string) *ListFunctionsInput { s.NextToken = &v return s } type ListFunctionsOutput struct { _ struct{} `type:"structure"` // A list of Function objects. Functions []*FunctionConfiguration `locationName:"functions" type:"list"` // An identifier that was returned from the previous call to this operation, // which can be used to return the next set of items in the list. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation func (s ListFunctionsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListFunctionsOutput) GoString() string { return s.String() } // SetFunctions sets the Functions field's value. func (s *ListFunctionsOutput) SetFunctions(v []*FunctionConfiguration) *ListFunctionsOutput { s.Functions = v return s } // SetNextToken sets the NextToken field's value. func (s *ListFunctionsOutput) SetNextToken(v string) *ListFunctionsOutput { s.NextToken = &v return s } type ListGraphqlApisInput struct { _ struct{} `type:"structure"` // The maximum number of results you want the request to return. MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` // An identifier that was returned from the previous call to this operation, // which can be used to return the next set of items in the list. NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation func (s ListGraphqlApisInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListGraphqlApisInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListGraphqlApisInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListGraphqlApisInput"} if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxResults sets the MaxResults field's value. func (s *ListGraphqlApisInput) SetMaxResults(v int64) *ListGraphqlApisInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListGraphqlApisInput) SetNextToken(v string) *ListGraphqlApisInput { s.NextToken = &v return s } type ListGraphqlApisOutput struct { _ struct{} `type:"structure"` // The GraphqlApi objects. GraphqlApis []*GraphqlApi `locationName:"graphqlApis" type:"list"` // An identifier to be passed in the next request to this operation to return // the next set of items in the list. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation func (s ListGraphqlApisOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListGraphqlApisOutput) GoString() string { return s.String() } // SetGraphqlApis sets the GraphqlApis field's value. func (s *ListGraphqlApisOutput) SetGraphqlApis(v []*GraphqlApi) *ListGraphqlApisOutput { s.GraphqlApis = v return s } // SetNextToken sets the NextToken field's value. func (s *ListGraphqlApisOutput) SetNextToken(v string) *ListGraphqlApisOutput { s.NextToken = &v return s } type ListResolversByFunctionInput struct { _ struct{} `type:"structure"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The Function ID. // // FunctionId is a required field FunctionId *string `location:"uri" locationName:"functionId" type:"string" required:"true"` // The maximum number of results you want the request to return. MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` // An identifier that was returned from the previous call to this operation, // which you can use to return the next set of items in the list. NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation func (s ListResolversByFunctionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListResolversByFunctionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListResolversByFunctionInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListResolversByFunctionInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if s.FunctionId == nil { invalidParams.Add(request.NewErrParamRequired("FunctionId")) } if s.FunctionId != nil && len(*s.FunctionId) < 1 { invalidParams.Add(request.NewErrParamMinLen("FunctionId", 1)) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *ListResolversByFunctionInput) SetApiId(v string) *ListResolversByFunctionInput { s.ApiId = &v return s } // SetFunctionId sets the FunctionId field's value. func (s *ListResolversByFunctionInput) SetFunctionId(v string) *ListResolversByFunctionInput { s.FunctionId = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListResolversByFunctionInput) SetMaxResults(v int64) *ListResolversByFunctionInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListResolversByFunctionInput) SetNextToken(v string) *ListResolversByFunctionInput { s.NextToken = &v return s } type ListResolversByFunctionOutput struct { _ struct{} `type:"structure"` // An identifier that can be used to return the next set of items in the list. NextToken *string `locationName:"nextToken" min:"1" type:"string"` // The list of resolvers. Resolvers []*Resolver `locationName:"resolvers" type:"list"` } // String returns the string representation func (s ListResolversByFunctionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListResolversByFunctionOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *ListResolversByFunctionOutput) SetNextToken(v string) *ListResolversByFunctionOutput { s.NextToken = &v return s } // SetResolvers sets the Resolvers field's value. func (s *ListResolversByFunctionOutput) SetResolvers(v []*Resolver) *ListResolversByFunctionOutput { s.Resolvers = v return s } type ListResolversInput struct { _ struct{} `type:"structure"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The maximum number of results you want the request to return. MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` // An identifier that was returned from the previous call to this operation, // which can be used to return the next set of items in the list. NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` // The type name. // // TypeName is a required field TypeName *string `location:"uri" locationName:"typeName" type:"string" required:"true"` } // String returns the string representation func (s ListResolversInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListResolversInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListResolversInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListResolversInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if s.TypeName == nil { invalidParams.Add(request.NewErrParamRequired("TypeName")) } if s.TypeName != nil && len(*s.TypeName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TypeName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *ListResolversInput) SetApiId(v string) *ListResolversInput { s.ApiId = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListResolversInput) SetMaxResults(v int64) *ListResolversInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListResolversInput) SetNextToken(v string) *ListResolversInput { s.NextToken = &v return s } // SetTypeName sets the TypeName field's value. func (s *ListResolversInput) SetTypeName(v string) *ListResolversInput { s.TypeName = &v return s } type ListResolversOutput struct { _ struct{} `type:"structure"` // An identifier to be passed in the next request to this operation to return // the next set of items in the list. NextToken *string `locationName:"nextToken" min:"1" type:"string"` // The Resolver objects. Resolvers []*Resolver `locationName:"resolvers" type:"list"` } // String returns the string representation func (s ListResolversOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListResolversOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *ListResolversOutput) SetNextToken(v string) *ListResolversOutput { s.NextToken = &v return s } // SetResolvers sets the Resolvers field's value. func (s *ListResolversOutput) SetResolvers(v []*Resolver) *ListResolversOutput { s.Resolvers = v return s } type ListTagsForResourceInput struct { _ struct{} `type:"structure"` // The GraphqlApi ARN. // // ResourceArn is a required field ResourceArn *string `location:"uri" locationName:"resourceArn" min:"70" type:"string" required:"true"` } // String returns the string representation func (s ListTagsForResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListTagsForResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListTagsForResourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} if s.ResourceArn == nil { invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } if s.ResourceArn != nil && len(*s.ResourceArn) < 70 { invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 70)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetResourceArn sets the ResourceArn field's value. func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { s.ResourceArn = &v return s } type ListTagsForResourceOutput struct { _ struct{} `type:"structure"` // A TagMap object. Tags map[string]*string `locationName:"tags" min:"1" type:"map"` } // String returns the string representation func (s ListTagsForResourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListTagsForResourceOutput) GoString() string { return s.String() } // SetTags sets the Tags field's value. func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput { s.Tags = v return s } type ListTypesInput struct { _ struct{} `type:"structure"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The type format: SDL or JSON. // // Format is a required field Format *string `location:"querystring" locationName:"format" type:"string" required:"true" enum:"TypeDefinitionFormat"` // The maximum number of results you want the request to return. MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` // An identifier that was returned from the previous call to this operation, // which can be used to return the next set of items in the list. NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation func (s ListTypesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListTypesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListTypesInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListTypesInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if s.Format == nil { invalidParams.Add(request.NewErrParamRequired("Format")) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *ListTypesInput) SetApiId(v string) *ListTypesInput { s.ApiId = &v return s } // SetFormat sets the Format field's value. func (s *ListTypesInput) SetFormat(v string) *ListTypesInput { s.Format = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListTypesInput) SetMaxResults(v int64) *ListTypesInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListTypesInput) SetNextToken(v string) *ListTypesInput { s.NextToken = &v return s } type ListTypesOutput struct { _ struct{} `type:"structure"` // An identifier to be passed in the next request to this operation to return // the next set of items in the list. NextToken *string `locationName:"nextToken" min:"1" type:"string"` // The Type objects. Types []*Type `locationName:"types" type:"list"` } // String returns the string representation func (s ListTypesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListTypesOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *ListTypesOutput) SetNextToken(v string) *ListTypesOutput { s.NextToken = &v return s } // SetTypes sets the Types field's value. func (s *ListTypesOutput) SetTypes(v []*Type) *ListTypesOutput { s.Types = v return s } // The CloudWatch Logs configuration. type LogConfig struct { _ struct{} `type:"structure"` // The service role that AppSync will assume to publish to Amazon CloudWatch // logs in your account. // // CloudWatchLogsRoleArn is a required field CloudWatchLogsRoleArn *string `locationName:"cloudWatchLogsRoleArn" type:"string" required:"true"` // Set to TRUE to exclude sections that contain information such as headers, // context, and evaluated mapping templates, regardless of logging level. ExcludeVerboseContent *bool `locationName:"excludeVerboseContent" type:"boolean"` // The field logging level. Values can be NONE, ERROR, or ALL. // // * NONE: No field-level logs are captured. // // * ERROR: Logs the following information only for the fields that are in // error: The error section in the server response. Field-level errors. The // generated request/response functions that got resolved for error fields. // // * ALL: The following information is logged for all fields in the query: // Field-level tracing information. The generated request/response functions // that got resolved for each field. // // FieldLogLevel is a required field FieldLogLevel *string `locationName:"fieldLogLevel" type:"string" required:"true" enum:"FieldLogLevel"` } // String returns the string representation func (s LogConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s LogConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *LogConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "LogConfig"} if s.CloudWatchLogsRoleArn == nil { invalidParams.Add(request.NewErrParamRequired("CloudWatchLogsRoleArn")) } if s.FieldLogLevel == nil { invalidParams.Add(request.NewErrParamRequired("FieldLogLevel")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCloudWatchLogsRoleArn sets the CloudWatchLogsRoleArn field's value. func (s *LogConfig) SetCloudWatchLogsRoleArn(v string) *LogConfig { s.CloudWatchLogsRoleArn = &v return s } // SetExcludeVerboseContent sets the ExcludeVerboseContent field's value. func (s *LogConfig) SetExcludeVerboseContent(v bool) *LogConfig { s.ExcludeVerboseContent = &v return s } // SetFieldLogLevel sets the FieldLogLevel field's value. func (s *LogConfig) SetFieldLogLevel(v string) *LogConfig { s.FieldLogLevel = &v return s } // The resource specified in the request was not found. Check the resource, // and then try again. type NotFoundException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s NotFoundException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s NotFoundException) GoString() string { return s.String() } func newErrorNotFoundException(v protocol.ResponseMetadata) error { return &NotFoundException{ RespMetadata: v, } } // Code returns the exception type name. func (s *NotFoundException) Code() string { return "NotFoundException" } // Message returns the exception's message. func (s *NotFoundException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *NotFoundException) OrigErr() error { return nil } func (s *NotFoundException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *NotFoundException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *NotFoundException) RequestID() string { return s.RespMetadata.RequestID } // Describes an OpenID Connect configuration. type OpenIDConnectConfig struct { _ struct{} `type:"structure"` // The number of milliseconds a token is valid after being authenticated. AuthTTL *int64 `locationName:"authTTL" type:"long"` // The client identifier of the Relying party at the OpenID identity provider. // This identifier is typically obtained when the Relying party is registered // with the OpenID identity provider. You can specify a regular expression so // the AppSync can validate against multiple client identifiers at a time. ClientId *string `locationName:"clientId" type:"string"` // The number of milliseconds a token is valid after being issued to a user. IatTTL *int64 `locationName:"iatTTL" type:"long"` // The issuer for the OpenID Connect configuration. The issuer returned by discovery // must exactly match the value of iss in the ID token. // // Issuer is a required field Issuer *string `locationName:"issuer" type:"string" required:"true"` } // String returns the string representation func (s OpenIDConnectConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s OpenIDConnectConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *OpenIDConnectConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "OpenIDConnectConfig"} if s.Issuer == nil { invalidParams.Add(request.NewErrParamRequired("Issuer")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAuthTTL sets the AuthTTL field's value. func (s *OpenIDConnectConfig) SetAuthTTL(v int64) *OpenIDConnectConfig { s.AuthTTL = &v return s } // SetClientId sets the ClientId field's value. func (s *OpenIDConnectConfig) SetClientId(v string) *OpenIDConnectConfig { s.ClientId = &v return s } // SetIatTTL sets the IatTTL field's value. func (s *OpenIDConnectConfig) SetIatTTL(v int64) *OpenIDConnectConfig { s.IatTTL = &v return s } // SetIssuer sets the Issuer field's value. func (s *OpenIDConnectConfig) SetIssuer(v string) *OpenIDConnectConfig { s.Issuer = &v return s } // The pipeline configuration for a resolver of kind PIPELINE. type PipelineConfig struct { _ struct{} `type:"structure"` // A list of Function objects. Functions []*string `locationName:"functions" type:"list"` } // String returns the string representation func (s PipelineConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s PipelineConfig) GoString() string { return s.String() } // SetFunctions sets the Functions field's value. func (s *PipelineConfig) SetFunctions(v []*string) *PipelineConfig { s.Functions = v return s } // The Amazon RDS HTTP endpoint configuration. type RdsHttpEndpointConfig struct { _ struct{} `type:"structure"` // Amazon Web Services Region for RDS HTTP endpoint. AwsRegion *string `locationName:"awsRegion" type:"string"` // Amazon Web Services secret store ARN for database credentials. AwsSecretStoreArn *string `locationName:"awsSecretStoreArn" type:"string"` // Logical database name. DatabaseName *string `locationName:"databaseName" type:"string"` // Amazon RDS cluster ARN. DbClusterIdentifier *string `locationName:"dbClusterIdentifier" type:"string"` // Logical schema name. Schema *string `locationName:"schema" type:"string"` } // String returns the string representation func (s RdsHttpEndpointConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s RdsHttpEndpointConfig) GoString() string { return s.String() } // SetAwsRegion sets the AwsRegion field's value. func (s *RdsHttpEndpointConfig) SetAwsRegion(v string) *RdsHttpEndpointConfig { s.AwsRegion = &v return s } // SetAwsSecretStoreArn sets the AwsSecretStoreArn field's value. func (s *RdsHttpEndpointConfig) SetAwsSecretStoreArn(v string) *RdsHttpEndpointConfig { s.AwsSecretStoreArn = &v return s } // SetDatabaseName sets the DatabaseName field's value. func (s *RdsHttpEndpointConfig) SetDatabaseName(v string) *RdsHttpEndpointConfig { s.DatabaseName = &v return s } // SetDbClusterIdentifier sets the DbClusterIdentifier field's value. func (s *RdsHttpEndpointConfig) SetDbClusterIdentifier(v string) *RdsHttpEndpointConfig { s.DbClusterIdentifier = &v return s } // SetSchema sets the Schema field's value. func (s *RdsHttpEndpointConfig) SetSchema(v string) *RdsHttpEndpointConfig { s.Schema = &v return s } // Describes a relational database data source configuration. type RelationalDatabaseDataSourceConfig struct { _ struct{} `type:"structure"` // Amazon RDS HTTP endpoint settings. RdsHttpEndpointConfig *RdsHttpEndpointConfig `locationName:"rdsHttpEndpointConfig" type:"structure"` // Source type for the relational database. // // * RDS_HTTP_ENDPOINT: The relational database source type is an Amazon // RDS HTTP endpoint. RelationalDatabaseSourceType *string `locationName:"relationalDatabaseSourceType" type:"string" enum:"RelationalDatabaseSourceType"` } // String returns the string representation func (s RelationalDatabaseDataSourceConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s RelationalDatabaseDataSourceConfig) GoString() string { return s.String() } // SetRdsHttpEndpointConfig sets the RdsHttpEndpointConfig field's value. func (s *RelationalDatabaseDataSourceConfig) SetRdsHttpEndpointConfig(v *RdsHttpEndpointConfig) *RelationalDatabaseDataSourceConfig { s.RdsHttpEndpointConfig = v return s } // SetRelationalDatabaseSourceType sets the RelationalDatabaseSourceType field's value. func (s *RelationalDatabaseDataSourceConfig) SetRelationalDatabaseSourceType(v string) *RelationalDatabaseDataSourceConfig { s.RelationalDatabaseSourceType = &v return s } // Describes a resolver. type Resolver struct { _ struct{} `type:"structure"` // The caching configuration for the resolver. CachingConfig *CachingConfig `locationName:"cachingConfig" type:"structure"` // The resolver data source name. DataSourceName *string `locationName:"dataSourceName" min:"1" type:"string"` // The resolver field name. FieldName *string `locationName:"fieldName" min:"1" type:"string"` // The resolver type. // // * UNIT: A UNIT resolver type. A UNIT resolver is the default resolver // type. A UNIT resolver enables you to execute a GraphQL query against a // single data source. // // * PIPELINE: A PIPELINE resolver type. A PIPELINE resolver enables you // to execute a series of Function in a serial manner. You can use a pipeline // resolver to execute a GraphQL query against multiple data sources. Kind *string `locationName:"kind" type:"string" enum:"ResolverKind"` // The PipelineConfig. PipelineConfig *PipelineConfig `locationName:"pipelineConfig" type:"structure"` // The request mapping template. RequestMappingTemplate *string `locationName:"requestMappingTemplate" min:"1" type:"string"` // The resolver ARN. ResolverArn *string `locationName:"resolverArn" type:"string"` // The response mapping template. ResponseMappingTemplate *string `locationName:"responseMappingTemplate" min:"1" type:"string"` // The SyncConfig for a resolver attached to a versioned datasource. SyncConfig *SyncConfig `locationName:"syncConfig" type:"structure"` // The resolver type name. TypeName *string `locationName:"typeName" min:"1" type:"string"` } // String returns the string representation func (s Resolver) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Resolver) GoString() string { return s.String() } // SetCachingConfig sets the CachingConfig field's value. func (s *Resolver) SetCachingConfig(v *CachingConfig) *Resolver { s.CachingConfig = v return s } // SetDataSourceName sets the DataSourceName field's value. func (s *Resolver) SetDataSourceName(v string) *Resolver { s.DataSourceName = &v return s } // SetFieldName sets the FieldName field's value. func (s *Resolver) SetFieldName(v string) *Resolver { s.FieldName = &v return s } // SetKind sets the Kind field's value. func (s *Resolver) SetKind(v string) *Resolver { s.Kind = &v return s } // SetPipelineConfig sets the PipelineConfig field's value. func (s *Resolver) SetPipelineConfig(v *PipelineConfig) *Resolver { s.PipelineConfig = v return s } // SetRequestMappingTemplate sets the RequestMappingTemplate field's value. func (s *Resolver) SetRequestMappingTemplate(v string) *Resolver { s.RequestMappingTemplate = &v return s } // SetResolverArn sets the ResolverArn field's value. func (s *Resolver) SetResolverArn(v string) *Resolver { s.ResolverArn = &v return s } // SetResponseMappingTemplate sets the ResponseMappingTemplate field's value. func (s *Resolver) SetResponseMappingTemplate(v string) *Resolver { s.ResponseMappingTemplate = &v return s } // SetSyncConfig sets the SyncConfig field's value. func (s *Resolver) SetSyncConfig(v *SyncConfig) *Resolver { s.SyncConfig = v return s } // SetTypeName sets the TypeName field's value. func (s *Resolver) SetTypeName(v string) *Resolver { s.TypeName = &v return s } type StartSchemaCreationInput struct { _ struct{} `type:"structure"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The schema definition, in GraphQL schema language format. // // Definition is automatically base64 encoded/decoded by the SDK. // // Definition is a required field Definition []byte `locationName:"definition" type:"blob" required:"true"` } // String returns the string representation func (s StartSchemaCreationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StartSchemaCreationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *StartSchemaCreationInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "StartSchemaCreationInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if s.Definition == nil { invalidParams.Add(request.NewErrParamRequired("Definition")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *StartSchemaCreationInput) SetApiId(v string) *StartSchemaCreationInput { s.ApiId = &v return s } // SetDefinition sets the Definition field's value. func (s *StartSchemaCreationInput) SetDefinition(v []byte) *StartSchemaCreationInput { s.Definition = v return s } type StartSchemaCreationOutput struct { _ struct{} `type:"structure"` // The current state of the schema (PROCESSING, FAILED, SUCCESS, or NOT_APPLICABLE). // When the schema is in the ACTIVE state, you can add data. Status *string `locationName:"status" type:"string" enum:"SchemaStatus"` } // String returns the string representation func (s StartSchemaCreationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StartSchemaCreationOutput) GoString() string { return s.String() } // SetStatus sets the Status field's value. func (s *StartSchemaCreationOutput) SetStatus(v string) *StartSchemaCreationOutput { s.Status = &v return s } // Describes a Sync configuration for a resolver. // // Contains information on which Conflict Detection as well as Resolution strategy // should be performed when the resolver is invoked. type SyncConfig struct { _ struct{} `type:"structure"` // The Conflict Detection strategy to use. // // * VERSION: Detect conflicts based on object versions for this resolver. // // * NONE: Do not detect conflicts when executing this resolver. ConflictDetection *string `locationName:"conflictDetection" type:"string" enum:"ConflictDetectionType"` // The Conflict Resolution strategy to perform in the event of a conflict. // // * OPTIMISTIC_CONCURRENCY: Resolve conflicts by rejecting mutations when // versions do not match the latest version at the server. // // * AUTOMERGE: Resolve conflicts with the Automerge conflict resolution // strategy. // // * LAMBDA: Resolve conflicts with a Lambda function supplied in the LambdaConflictHandlerConfig. ConflictHandler *string `locationName:"conflictHandler" type:"string" enum:"ConflictHandlerType"` // The LambdaConflictHandlerConfig when configuring LAMBDA as the Conflict Handler. LambdaConflictHandlerConfig *LambdaConflictHandlerConfig `locationName:"lambdaConflictHandlerConfig" type:"structure"` } // String returns the string representation func (s SyncConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s SyncConfig) GoString() string { return s.String() } // SetConflictDetection sets the ConflictDetection field's value. func (s *SyncConfig) SetConflictDetection(v string) *SyncConfig { s.ConflictDetection = &v return s } // SetConflictHandler sets the ConflictHandler field's value. func (s *SyncConfig) SetConflictHandler(v string) *SyncConfig { s.ConflictHandler = &v return s } // SetLambdaConflictHandlerConfig sets the LambdaConflictHandlerConfig field's value. func (s *SyncConfig) SetLambdaConflictHandlerConfig(v *LambdaConflictHandlerConfig) *SyncConfig { s.LambdaConflictHandlerConfig = v return s } type TagResourceInput struct { _ struct{} `type:"structure"` // The GraphqlApi ARN. // // ResourceArn is a required field ResourceArn *string `location:"uri" locationName:"resourceArn" min:"70" type:"string" required:"true"` // A TagMap object. // // Tags is a required field Tags map[string]*string `locationName:"tags" min:"1" type:"map" required:"true"` } // String returns the string representation func (s TagResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TagResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *TagResourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} if s.ResourceArn == nil { invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } if s.ResourceArn != nil && len(*s.ResourceArn) < 70 { invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 70)) } if s.Tags == nil { invalidParams.Add(request.NewErrParamRequired("Tags")) } if s.Tags != nil && len(s.Tags) < 1 { invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetResourceArn sets the ResourceArn field's value. func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { s.ResourceArn = &v return s } // SetTags sets the Tags field's value. func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput { s.Tags = v return s } type TagResourceOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s TagResourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TagResourceOutput) GoString() string { return s.String() } // Describes a type. type Type struct { _ struct{} `type:"structure"` // The type ARN. Arn *string `locationName:"arn" type:"string"` // The type definition. Definition *string `locationName:"definition" type:"string"` // The type description. Description *string `locationName:"description" type:"string"` // The type format: SDL or JSON. Format *string `locationName:"format" type:"string" enum:"TypeDefinitionFormat"` // The type name. Name *string `locationName:"name" min:"1" type:"string"` } // String returns the string representation func (s Type) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Type) GoString() string { return s.String() } // SetArn sets the Arn field's value. func (s *Type) SetArn(v string) *Type { s.Arn = &v return s } // SetDefinition sets the Definition field's value. func (s *Type) SetDefinition(v string) *Type { s.Definition = &v return s } // SetDescription sets the Description field's value. func (s *Type) SetDescription(v string) *Type { s.Description = &v return s } // SetFormat sets the Format field's value. func (s *Type) SetFormat(v string) *Type { s.Format = &v return s } // SetName sets the Name field's value. func (s *Type) SetName(v string) *Type { s.Name = &v return s } // You are not authorized to perform this operation. type UnauthorizedException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s UnauthorizedException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UnauthorizedException) GoString() string { return s.String() } func newErrorUnauthorizedException(v protocol.ResponseMetadata) error { return &UnauthorizedException{ RespMetadata: v, } } // Code returns the exception type name. func (s *UnauthorizedException) Code() string { return "UnauthorizedException" } // Message returns the exception's message. func (s *UnauthorizedException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *UnauthorizedException) OrigErr() error { return nil } func (s *UnauthorizedException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *UnauthorizedException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *UnauthorizedException) RequestID() string { return s.RespMetadata.RequestID } type UntagResourceInput struct { _ struct{} `type:"structure"` // The GraphqlApi ARN. // // ResourceArn is a required field ResourceArn *string `location:"uri" locationName:"resourceArn" min:"70" type:"string" required:"true"` // A list of TagKey objects. // // TagKeys is a required field TagKeys []*string `location:"querystring" locationName:"tagKeys" min:"1" type:"list" required:"true"` } // String returns the string representation func (s UntagResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UntagResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UntagResourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} if s.ResourceArn == nil { invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } if s.ResourceArn != nil && len(*s.ResourceArn) < 70 { invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 70)) } if s.TagKeys == nil { invalidParams.Add(request.NewErrParamRequired("TagKeys")) } if s.TagKeys != nil && len(s.TagKeys) < 1 { invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetResourceArn sets the ResourceArn field's value. func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { s.ResourceArn = &v return s } // SetTagKeys sets the TagKeys field's value. func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { s.TagKeys = v return s } type UntagResourceOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s UntagResourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UntagResourceOutput) GoString() string { return s.String() } // Represents the input of a UpdateApiCache operation. type UpdateApiCacheInput struct { _ struct{} `type:"structure"` // Caching behavior. // // * FULL_REQUEST_CACHING: All requests are fully cached. // // * PER_RESOLVER_CACHING: Individual resolvers that you specify are cached. // // ApiCachingBehavior is a required field ApiCachingBehavior *string `locationName:"apiCachingBehavior" type:"string" required:"true" enum:"ApiCachingBehavior"` // The GraphQL API Id. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // TTL in seconds for cache entries. // // Valid values are between 1 and 3600 seconds. // // Ttl is a required field Ttl *int64 `locationName:"ttl" type:"long" required:"true"` // The cache instance type. Valid values are // // * SMALL // // * MEDIUM // // * LARGE // // * XLARGE // // * LARGE_2X // // * LARGE_4X // // * LARGE_8X (not available in all regions) // // * LARGE_12X // // Historically, instance types were identified by an EC2-style value. As of // July 2020, this is deprecated, and the generic identifiers above should be // used. // // The following legacy instance types are available, but their use is discouraged: // // * T2_SMALL: A t2.small instance type. // // * T2_MEDIUM: A t2.medium instance type. // // * R4_LARGE: A r4.large instance type. // // * R4_XLARGE: A r4.xlarge instance type. // // * R4_2XLARGE: A r4.2xlarge instance type. // // * R4_4XLARGE: A r4.4xlarge instance type. // // * R4_8XLARGE: A r4.8xlarge instance type. // // Type is a required field Type *string `locationName:"type" type:"string" required:"true" enum:"ApiCacheType"` } // String returns the string representation func (s UpdateApiCacheInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateApiCacheInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateApiCacheInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateApiCacheInput"} if s.ApiCachingBehavior == nil { invalidParams.Add(request.NewErrParamRequired("ApiCachingBehavior")) } if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if s.Ttl == nil { invalidParams.Add(request.NewErrParamRequired("Ttl")) } if s.Type == nil { invalidParams.Add(request.NewErrParamRequired("Type")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiCachingBehavior sets the ApiCachingBehavior field's value. func (s *UpdateApiCacheInput) SetApiCachingBehavior(v string) *UpdateApiCacheInput { s.ApiCachingBehavior = &v return s } // SetApiId sets the ApiId field's value. func (s *UpdateApiCacheInput) SetApiId(v string) *UpdateApiCacheInput { s.ApiId = &v return s } // SetTtl sets the Ttl field's value. func (s *UpdateApiCacheInput) SetTtl(v int64) *UpdateApiCacheInput { s.Ttl = &v return s } // SetType sets the Type field's value. func (s *UpdateApiCacheInput) SetType(v string) *UpdateApiCacheInput { s.Type = &v return s } // Represents the output of a UpdateApiCache operation. type UpdateApiCacheOutput struct { _ struct{} `type:"structure"` // The ApiCache object. ApiCache *ApiCache `locationName:"apiCache" type:"structure"` } // String returns the string representation func (s UpdateApiCacheOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateApiCacheOutput) GoString() string { return s.String() } // SetApiCache sets the ApiCache field's value. func (s *UpdateApiCacheOutput) SetApiCache(v *ApiCache) *UpdateApiCacheOutput { s.ApiCache = v return s } type UpdateApiKeyInput struct { _ struct{} `type:"structure"` // The ID for the GraphQL API. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // A description of the purpose of the API key. Description *string `locationName:"description" type:"string"` // The time from update time after which the API key expires. The date is represented // as seconds since the epoch. For more information, see . Expires *int64 `locationName:"expires" type:"long"` // The API key ID. // // Id is a required field Id *string `location:"uri" locationName:"id" type:"string" required:"true"` } // String returns the string representation func (s UpdateApiKeyInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateApiKeyInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateApiKeyInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateApiKeyInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } if s.Id != nil && len(*s.Id) < 1 { invalidParams.Add(request.NewErrParamMinLen("Id", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *UpdateApiKeyInput) SetApiId(v string) *UpdateApiKeyInput { s.ApiId = &v return s } // SetDescription sets the Description field's value. func (s *UpdateApiKeyInput) SetDescription(v string) *UpdateApiKeyInput { s.Description = &v return s } // SetExpires sets the Expires field's value. func (s *UpdateApiKeyInput) SetExpires(v int64) *UpdateApiKeyInput { s.Expires = &v return s } // SetId sets the Id field's value. func (s *UpdateApiKeyInput) SetId(v string) *UpdateApiKeyInput { s.Id = &v return s } type UpdateApiKeyOutput struct { _ struct{} `type:"structure"` // The API key. ApiKey *ApiKey `locationName:"apiKey" type:"structure"` } // String returns the string representation func (s UpdateApiKeyOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateApiKeyOutput) GoString() string { return s.String() } // SetApiKey sets the ApiKey field's value. func (s *UpdateApiKeyOutput) SetApiKey(v *ApiKey) *UpdateApiKeyOutput { s.ApiKey = v return s } type UpdateDataSourceInput struct { _ struct{} `type:"structure"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The new description for the data source. Description *string `locationName:"description" type:"string"` // The new Amazon DynamoDB configuration. DynamodbConfig *DynamodbDataSourceConfig `locationName:"dynamodbConfig" type:"structure"` // The new Elasticsearch Service configuration. ElasticsearchConfig *ElasticsearchDataSourceConfig `locationName:"elasticsearchConfig" type:"structure"` // The new HTTP endpoint configuration. HttpConfig *HttpDataSourceConfig `locationName:"httpConfig" type:"structure"` // The new Amazon Web Services Lambda configuration. LambdaConfig *LambdaDataSourceConfig `locationName:"lambdaConfig" type:"structure"` // The new name for the data source. // // Name is a required field Name *string `location:"uri" locationName:"name" min:"1" type:"string" required:"true"` // The new relational database configuration. RelationalDatabaseConfig *RelationalDatabaseDataSourceConfig `locationName:"relationalDatabaseConfig" type:"structure"` // The new service role ARN for the data source. ServiceRoleArn *string `locationName:"serviceRoleArn" type:"string"` // The new data source type. // // Type is a required field Type *string `locationName:"type" type:"string" required:"true" enum:"DataSourceType"` } // String returns the string representation func (s UpdateDataSourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateDataSourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateDataSourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateDataSourceInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if s.Type == nil { invalidParams.Add(request.NewErrParamRequired("Type")) } if s.DynamodbConfig != nil { if err := s.DynamodbConfig.Validate(); err != nil { invalidParams.AddNested("DynamodbConfig", err.(request.ErrInvalidParams)) } } if s.ElasticsearchConfig != nil { if err := s.ElasticsearchConfig.Validate(); err != nil { invalidParams.AddNested("ElasticsearchConfig", err.(request.ErrInvalidParams)) } } if s.HttpConfig != nil { if err := s.HttpConfig.Validate(); err != nil { invalidParams.AddNested("HttpConfig", err.(request.ErrInvalidParams)) } } if s.LambdaConfig != nil { if err := s.LambdaConfig.Validate(); err != nil { invalidParams.AddNested("LambdaConfig", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *UpdateDataSourceInput) SetApiId(v string) *UpdateDataSourceInput { s.ApiId = &v return s } // SetDescription sets the Description field's value. func (s *UpdateDataSourceInput) SetDescription(v string) *UpdateDataSourceInput { s.Description = &v return s } // SetDynamodbConfig sets the DynamodbConfig field's value. func (s *UpdateDataSourceInput) SetDynamodbConfig(v *DynamodbDataSourceConfig) *UpdateDataSourceInput { s.DynamodbConfig = v return s } // SetElasticsearchConfig sets the ElasticsearchConfig field's value. func (s *UpdateDataSourceInput) SetElasticsearchConfig(v *ElasticsearchDataSourceConfig) *UpdateDataSourceInput { s.ElasticsearchConfig = v return s } // SetHttpConfig sets the HttpConfig field's value. func (s *UpdateDataSourceInput) SetHttpConfig(v *HttpDataSourceConfig) *UpdateDataSourceInput { s.HttpConfig = v return s } // SetLambdaConfig sets the LambdaConfig field's value. func (s *UpdateDataSourceInput) SetLambdaConfig(v *LambdaDataSourceConfig) *UpdateDataSourceInput { s.LambdaConfig = v return s } // SetName sets the Name field's value. func (s *UpdateDataSourceInput) SetName(v string) *UpdateDataSourceInput { s.Name = &v return s } // SetRelationalDatabaseConfig sets the RelationalDatabaseConfig field's value. func (s *UpdateDataSourceInput) SetRelationalDatabaseConfig(v *RelationalDatabaseDataSourceConfig) *UpdateDataSourceInput { s.RelationalDatabaseConfig = v return s } // SetServiceRoleArn sets the ServiceRoleArn field's value. func (s *UpdateDataSourceInput) SetServiceRoleArn(v string) *UpdateDataSourceInput { s.ServiceRoleArn = &v return s } // SetType sets the Type field's value. func (s *UpdateDataSourceInput) SetType(v string) *UpdateDataSourceInput { s.Type = &v return s } type UpdateDataSourceOutput struct { _ struct{} `type:"structure"` // The updated DataSource object. DataSource *DataSource `locationName:"dataSource" type:"structure"` } // String returns the string representation func (s UpdateDataSourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateDataSourceOutput) GoString() string { return s.String() } // SetDataSource sets the DataSource field's value. func (s *UpdateDataSourceOutput) SetDataSource(v *DataSource) *UpdateDataSourceOutput { s.DataSource = v return s } type UpdateFunctionInput struct { _ struct{} `type:"structure"` // The GraphQL API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The Function DataSource name. // // DataSourceName is a required field DataSourceName *string `locationName:"dataSourceName" min:"1" type:"string" required:"true"` // The Function description. Description *string `locationName:"description" type:"string"` // The function ID. // // FunctionId is a required field FunctionId *string `location:"uri" locationName:"functionId" min:"1" type:"string" required:"true"` // The version of the request mapping template. Currently the supported value // is 2018-05-29. // // FunctionVersion is a required field FunctionVersion *string `locationName:"functionVersion" type:"string" required:"true"` // The Function name. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` // The Function request mapping template. Functions support only the 2018-05-29 // version of the request mapping template. RequestMappingTemplate *string `locationName:"requestMappingTemplate" min:"1" type:"string"` // The Function request mapping template. ResponseMappingTemplate *string `locationName:"responseMappingTemplate" min:"1" type:"string"` // Describes a Sync configuration for a resolver. // // Contains information on which Conflict Detection as well as Resolution strategy // should be performed when the resolver is invoked. SyncConfig *SyncConfig `locationName:"syncConfig" type:"structure"` } // String returns the string representation func (s UpdateFunctionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateFunctionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateFunctionInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateFunctionInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if s.DataSourceName == nil { invalidParams.Add(request.NewErrParamRequired("DataSourceName")) } if s.DataSourceName != nil && len(*s.DataSourceName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DataSourceName", 1)) } if s.FunctionId == nil { invalidParams.Add(request.NewErrParamRequired("FunctionId")) } if s.FunctionId != nil && len(*s.FunctionId) < 1 { invalidParams.Add(request.NewErrParamMinLen("FunctionId", 1)) } if s.FunctionVersion == nil { invalidParams.Add(request.NewErrParamRequired("FunctionVersion")) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if s.RequestMappingTemplate != nil && len(*s.RequestMappingTemplate) < 1 { invalidParams.Add(request.NewErrParamMinLen("RequestMappingTemplate", 1)) } if s.ResponseMappingTemplate != nil && len(*s.ResponseMappingTemplate) < 1 { invalidParams.Add(request.NewErrParamMinLen("ResponseMappingTemplate", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *UpdateFunctionInput) SetApiId(v string) *UpdateFunctionInput { s.ApiId = &v return s } // SetDataSourceName sets the DataSourceName field's value. func (s *UpdateFunctionInput) SetDataSourceName(v string) *UpdateFunctionInput { s.DataSourceName = &v return s } // SetDescription sets the Description field's value. func (s *UpdateFunctionInput) SetDescription(v string) *UpdateFunctionInput { s.Description = &v return s } // SetFunctionId sets the FunctionId field's value. func (s *UpdateFunctionInput) SetFunctionId(v string) *UpdateFunctionInput { s.FunctionId = &v return s } // SetFunctionVersion sets the FunctionVersion field's value. func (s *UpdateFunctionInput) SetFunctionVersion(v string) *UpdateFunctionInput { s.FunctionVersion = &v return s } // SetName sets the Name field's value. func (s *UpdateFunctionInput) SetName(v string) *UpdateFunctionInput { s.Name = &v return s } // SetRequestMappingTemplate sets the RequestMappingTemplate field's value. func (s *UpdateFunctionInput) SetRequestMappingTemplate(v string) *UpdateFunctionInput { s.RequestMappingTemplate = &v return s } // SetResponseMappingTemplate sets the ResponseMappingTemplate field's value. func (s *UpdateFunctionInput) SetResponseMappingTemplate(v string) *UpdateFunctionInput { s.ResponseMappingTemplate = &v return s } // SetSyncConfig sets the SyncConfig field's value. func (s *UpdateFunctionInput) SetSyncConfig(v *SyncConfig) *UpdateFunctionInput { s.SyncConfig = v return s } type UpdateFunctionOutput struct { _ struct{} `type:"structure"` // The Function object. FunctionConfiguration *FunctionConfiguration `locationName:"functionConfiguration" type:"structure"` } // String returns the string representation func (s UpdateFunctionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateFunctionOutput) GoString() string { return s.String() } // SetFunctionConfiguration sets the FunctionConfiguration field's value. func (s *UpdateFunctionOutput) SetFunctionConfiguration(v *FunctionConfiguration) *UpdateFunctionOutput { s.FunctionConfiguration = v return s } type UpdateGraphqlApiInput struct { _ struct{} `type:"structure"` // A list of additional authentication providers for the GraphqlApi API. AdditionalAuthenticationProviders []*AdditionalAuthenticationProvider `locationName:"additionalAuthenticationProviders" type:"list"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The new authentication type for the GraphqlApi object. AuthenticationType *string `locationName:"authenticationType" type:"string" enum:"AuthenticationType"` // Configuration for AWS Lambda function authorization. LambdaAuthorizerConfig *LambdaAuthorizerConfig `locationName:"lambdaAuthorizerConfig" type:"structure"` // The Amazon CloudWatch Logs configuration for the GraphqlApi object. LogConfig *LogConfig `locationName:"logConfig" type:"structure"` // The new name for the GraphqlApi object. // // Name is a required field Name *string `locationName:"name" type:"string" required:"true"` // The OpenID Connect configuration for the GraphqlApi object. OpenIDConnectConfig *OpenIDConnectConfig `locationName:"openIDConnectConfig" type:"structure"` // The new Amazon Cognito user pool configuration for the GraphqlApi object. UserPoolConfig *UserPoolConfig `locationName:"userPoolConfig" type:"structure"` // A flag indicating whether to enable X-Ray tracing for the GraphqlApi. XrayEnabled *bool `locationName:"xrayEnabled" type:"boolean"` } // String returns the string representation func (s UpdateGraphqlApiInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateGraphqlApiInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateGraphqlApiInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateGraphqlApiInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.AdditionalAuthenticationProviders != nil { for i, v := range s.AdditionalAuthenticationProviders { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AdditionalAuthenticationProviders", i), err.(request.ErrInvalidParams)) } } } if s.LambdaAuthorizerConfig != nil { if err := s.LambdaAuthorizerConfig.Validate(); err != nil { invalidParams.AddNested("LambdaAuthorizerConfig", err.(request.ErrInvalidParams)) } } if s.LogConfig != nil { if err := s.LogConfig.Validate(); err != nil { invalidParams.AddNested("LogConfig", err.(request.ErrInvalidParams)) } } if s.OpenIDConnectConfig != nil { if err := s.OpenIDConnectConfig.Validate(); err != nil { invalidParams.AddNested("OpenIDConnectConfig", err.(request.ErrInvalidParams)) } } if s.UserPoolConfig != nil { if err := s.UserPoolConfig.Validate(); err != nil { invalidParams.AddNested("UserPoolConfig", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAdditionalAuthenticationProviders sets the AdditionalAuthenticationProviders field's value. func (s *UpdateGraphqlApiInput) SetAdditionalAuthenticationProviders(v []*AdditionalAuthenticationProvider) *UpdateGraphqlApiInput { s.AdditionalAuthenticationProviders = v return s } // SetApiId sets the ApiId field's value. func (s *UpdateGraphqlApiInput) SetApiId(v string) *UpdateGraphqlApiInput { s.ApiId = &v return s } // SetAuthenticationType sets the AuthenticationType field's value. func (s *UpdateGraphqlApiInput) SetAuthenticationType(v string) *UpdateGraphqlApiInput { s.AuthenticationType = &v return s } // SetLambdaAuthorizerConfig sets the LambdaAuthorizerConfig field's value. func (s *UpdateGraphqlApiInput) SetLambdaAuthorizerConfig(v *LambdaAuthorizerConfig) *UpdateGraphqlApiInput { s.LambdaAuthorizerConfig = v return s } // SetLogConfig sets the LogConfig field's value. func (s *UpdateGraphqlApiInput) SetLogConfig(v *LogConfig) *UpdateGraphqlApiInput { s.LogConfig = v return s } // SetName sets the Name field's value. func (s *UpdateGraphqlApiInput) SetName(v string) *UpdateGraphqlApiInput { s.Name = &v return s } // SetOpenIDConnectConfig sets the OpenIDConnectConfig field's value. func (s *UpdateGraphqlApiInput) SetOpenIDConnectConfig(v *OpenIDConnectConfig) *UpdateGraphqlApiInput { s.OpenIDConnectConfig = v return s } // SetUserPoolConfig sets the UserPoolConfig field's value. func (s *UpdateGraphqlApiInput) SetUserPoolConfig(v *UserPoolConfig) *UpdateGraphqlApiInput { s.UserPoolConfig = v return s } // SetXrayEnabled sets the XrayEnabled field's value. func (s *UpdateGraphqlApiInput) SetXrayEnabled(v bool) *UpdateGraphqlApiInput { s.XrayEnabled = &v return s } type UpdateGraphqlApiOutput struct { _ struct{} `type:"structure"` // The updated GraphqlApi object. GraphqlApi *GraphqlApi `locationName:"graphqlApi" type:"structure"` } // String returns the string representation func (s UpdateGraphqlApiOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateGraphqlApiOutput) GoString() string { return s.String() } // SetGraphqlApi sets the GraphqlApi field's value. func (s *UpdateGraphqlApiOutput) SetGraphqlApi(v *GraphqlApi) *UpdateGraphqlApiOutput { s.GraphqlApi = v return s } type UpdateResolverInput struct { _ struct{} `type:"structure"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The caching configuration for the resolver. CachingConfig *CachingConfig `locationName:"cachingConfig" type:"structure"` // The new data source name. DataSourceName *string `locationName:"dataSourceName" min:"1" type:"string"` // The new field name. // // FieldName is a required field FieldName *string `location:"uri" locationName:"fieldName" min:"1" type:"string" required:"true"` // The resolver type. // // * UNIT: A UNIT resolver type. A UNIT resolver is the default resolver // type. A UNIT resolver enables you to execute a GraphQL query against a // single data source. // // * PIPELINE: A PIPELINE resolver type. A PIPELINE resolver enables you // to execute a series of Function in a serial manner. You can use a pipeline // resolver to execute a GraphQL query against multiple data sources. Kind *string `locationName:"kind" type:"string" enum:"ResolverKind"` // The PipelineConfig. PipelineConfig *PipelineConfig `locationName:"pipelineConfig" type:"structure"` // The new request mapping template. // // A resolver uses a request mapping template to convert a GraphQL expression // into a format that a data source can understand. Mapping templates are written // in Apache Velocity Template Language (VTL). // // VTL request mapping templates are optional when using a Lambda data source. // For all other data sources, VTL request and response mapping templates are // required. RequestMappingTemplate *string `locationName:"requestMappingTemplate" min:"1" type:"string"` // The new response mapping template. ResponseMappingTemplate *string `locationName:"responseMappingTemplate" min:"1" type:"string"` // The SyncConfig for a resolver attached to a versioned datasource. SyncConfig *SyncConfig `locationName:"syncConfig" type:"structure"` // The new type name. // // TypeName is a required field TypeName *string `location:"uri" locationName:"typeName" min:"1" type:"string" required:"true"` } // String returns the string representation func (s UpdateResolverInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateResolverInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateResolverInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateResolverInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if s.DataSourceName != nil && len(*s.DataSourceName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DataSourceName", 1)) } if s.FieldName == nil { invalidParams.Add(request.NewErrParamRequired("FieldName")) } if s.FieldName != nil && len(*s.FieldName) < 1 { invalidParams.Add(request.NewErrParamMinLen("FieldName", 1)) } if s.RequestMappingTemplate != nil && len(*s.RequestMappingTemplate) < 1 { invalidParams.Add(request.NewErrParamMinLen("RequestMappingTemplate", 1)) } if s.ResponseMappingTemplate != nil && len(*s.ResponseMappingTemplate) < 1 { invalidParams.Add(request.NewErrParamMinLen("ResponseMappingTemplate", 1)) } if s.TypeName == nil { invalidParams.Add(request.NewErrParamRequired("TypeName")) } if s.TypeName != nil && len(*s.TypeName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TypeName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *UpdateResolverInput) SetApiId(v string) *UpdateResolverInput { s.ApiId = &v return s } // SetCachingConfig sets the CachingConfig field's value. func (s *UpdateResolverInput) SetCachingConfig(v *CachingConfig) *UpdateResolverInput { s.CachingConfig = v return s } // SetDataSourceName sets the DataSourceName field's value. func (s *UpdateResolverInput) SetDataSourceName(v string) *UpdateResolverInput { s.DataSourceName = &v return s } // SetFieldName sets the FieldName field's value. func (s *UpdateResolverInput) SetFieldName(v string) *UpdateResolverInput { s.FieldName = &v return s } // SetKind sets the Kind field's value. func (s *UpdateResolverInput) SetKind(v string) *UpdateResolverInput { s.Kind = &v return s } // SetPipelineConfig sets the PipelineConfig field's value. func (s *UpdateResolverInput) SetPipelineConfig(v *PipelineConfig) *UpdateResolverInput { s.PipelineConfig = v return s } // SetRequestMappingTemplate sets the RequestMappingTemplate field's value. func (s *UpdateResolverInput) SetRequestMappingTemplate(v string) *UpdateResolverInput { s.RequestMappingTemplate = &v return s } // SetResponseMappingTemplate sets the ResponseMappingTemplate field's value. func (s *UpdateResolverInput) SetResponseMappingTemplate(v string) *UpdateResolverInput { s.ResponseMappingTemplate = &v return s } // SetSyncConfig sets the SyncConfig field's value. func (s *UpdateResolverInput) SetSyncConfig(v *SyncConfig) *UpdateResolverInput { s.SyncConfig = v return s } // SetTypeName sets the TypeName field's value. func (s *UpdateResolverInput) SetTypeName(v string) *UpdateResolverInput { s.TypeName = &v return s } type UpdateResolverOutput struct { _ struct{} `type:"structure"` // The updated Resolver object. Resolver *Resolver `locationName:"resolver" type:"structure"` } // String returns the string representation func (s UpdateResolverOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateResolverOutput) GoString() string { return s.String() } // SetResolver sets the Resolver field's value. func (s *UpdateResolverOutput) SetResolver(v *Resolver) *UpdateResolverOutput { s.Resolver = v return s } type UpdateTypeInput struct { _ struct{} `type:"structure"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The new definition. Definition *string `locationName:"definition" type:"string"` // The new type format: SDL or JSON. // // Format is a required field Format *string `locationName:"format" type:"string" required:"true" enum:"TypeDefinitionFormat"` // The new type name. // // TypeName is a required field TypeName *string `location:"uri" locationName:"typeName" min:"1" type:"string" required:"true"` } // String returns the string representation func (s UpdateTypeInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateTypeInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateTypeInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateTypeInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if s.Format == nil { invalidParams.Add(request.NewErrParamRequired("Format")) } if s.TypeName == nil { invalidParams.Add(request.NewErrParamRequired("TypeName")) } if s.TypeName != nil && len(*s.TypeName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TypeName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *UpdateTypeInput) SetApiId(v string) *UpdateTypeInput { s.ApiId = &v return s } // SetDefinition sets the Definition field's value. func (s *UpdateTypeInput) SetDefinition(v string) *UpdateTypeInput { s.Definition = &v return s } // SetFormat sets the Format field's value. func (s *UpdateTypeInput) SetFormat(v string) *UpdateTypeInput { s.Format = &v return s } // SetTypeName sets the TypeName field's value. func (s *UpdateTypeInput) SetTypeName(v string) *UpdateTypeInput { s.TypeName = &v return s } type UpdateTypeOutput struct { _ struct{} `type:"structure"` // The updated Type object. Type *Type `locationName:"type" type:"structure"` } // String returns the string representation func (s UpdateTypeOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateTypeOutput) GoString() string { return s.String() } // SetType sets the Type field's value. func (s *UpdateTypeOutput) SetType(v *Type) *UpdateTypeOutput { s.Type = v return s } // Describes an Amazon Cognito user pool configuration. type UserPoolConfig struct { _ struct{} `type:"structure"` // A regular expression for validating the incoming Amazon Cognito user pool // app client ID. AppIdClientRegex *string `locationName:"appIdClientRegex" type:"string"` // The Amazon Web Services Region in which the user pool was created. // // AwsRegion is a required field AwsRegion *string `locationName:"awsRegion" type:"string" required:"true"` // The action that you want your GraphQL API to take when a request that uses // Amazon Cognito user pool authentication doesn't match the Amazon Cognito // user pool configuration. // // DefaultAction is a required field DefaultAction *string `locationName:"defaultAction" type:"string" required:"true" enum:"DefaultAction"` // The user pool ID. // // UserPoolId is a required field UserPoolId *string `locationName:"userPoolId" type:"string" required:"true"` } // String returns the string representation func (s UserPoolConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UserPoolConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UserPoolConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UserPoolConfig"} if s.AwsRegion == nil { invalidParams.Add(request.NewErrParamRequired("AwsRegion")) } if s.DefaultAction == nil { invalidParams.Add(request.NewErrParamRequired("DefaultAction")) } if s.UserPoolId == nil { invalidParams.Add(request.NewErrParamRequired("UserPoolId")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAppIdClientRegex sets the AppIdClientRegex field's value. func (s *UserPoolConfig) SetAppIdClientRegex(v string) *UserPoolConfig { s.AppIdClientRegex = &v return s } // SetAwsRegion sets the AwsRegion field's value. func (s *UserPoolConfig) SetAwsRegion(v string) *UserPoolConfig { s.AwsRegion = &v return s } // SetDefaultAction sets the DefaultAction field's value. func (s *UserPoolConfig) SetDefaultAction(v string) *UserPoolConfig { s.DefaultAction = &v return s } // SetUserPoolId sets the UserPoolId field's value. func (s *UserPoolConfig) SetUserPoolId(v string) *UserPoolConfig { s.UserPoolId = &v return s } const ( // ApiCacheStatusAvailable is a ApiCacheStatus enum value ApiCacheStatusAvailable = "AVAILABLE" // ApiCacheStatusCreating is a ApiCacheStatus enum value ApiCacheStatusCreating = "CREATING" // ApiCacheStatusDeleting is a ApiCacheStatus enum value ApiCacheStatusDeleting = "DELETING" // ApiCacheStatusModifying is a ApiCacheStatus enum value ApiCacheStatusModifying = "MODIFYING" // ApiCacheStatusFailed is a ApiCacheStatus enum value ApiCacheStatusFailed = "FAILED" ) // ApiCacheStatus_Values returns all elements of the ApiCacheStatus enum func ApiCacheStatus_Values() []string { return []string{ ApiCacheStatusAvailable, ApiCacheStatusCreating, ApiCacheStatusDeleting, ApiCacheStatusModifying, ApiCacheStatusFailed, } } const ( // ApiCacheTypeT2Small is a ApiCacheType enum value ApiCacheTypeT2Small = "T2_SMALL" // ApiCacheTypeT2Medium is a ApiCacheType enum value ApiCacheTypeT2Medium = "T2_MEDIUM" // ApiCacheTypeR4Large is a ApiCacheType enum value ApiCacheTypeR4Large = "R4_LARGE" // ApiCacheTypeR4Xlarge is a ApiCacheType enum value ApiCacheTypeR4Xlarge = "R4_XLARGE" // ApiCacheTypeR42xlarge is a ApiCacheType enum value ApiCacheTypeR42xlarge = "R4_2XLARGE" // ApiCacheTypeR44xlarge is a ApiCacheType enum value ApiCacheTypeR44xlarge = "R4_4XLARGE" // ApiCacheTypeR48xlarge is a ApiCacheType enum value ApiCacheTypeR48xlarge = "R4_8XLARGE" // ApiCacheTypeSmall is a ApiCacheType enum value ApiCacheTypeSmall = "SMALL" // ApiCacheTypeMedium is a ApiCacheType enum value ApiCacheTypeMedium = "MEDIUM" // ApiCacheTypeLarge is a ApiCacheType enum value ApiCacheTypeLarge = "LARGE" // ApiCacheTypeXlarge is a ApiCacheType enum value ApiCacheTypeXlarge = "XLARGE" // ApiCacheTypeLarge2x is a ApiCacheType enum value ApiCacheTypeLarge2x = "LARGE_2X" // ApiCacheTypeLarge4x is a ApiCacheType enum value ApiCacheTypeLarge4x = "LARGE_4X" // ApiCacheTypeLarge8x is a ApiCacheType enum value ApiCacheTypeLarge8x = "LARGE_8X" // ApiCacheTypeLarge12x is a ApiCacheType enum value ApiCacheTypeLarge12x = "LARGE_12X" ) // ApiCacheType_Values returns all elements of the ApiCacheType enum func ApiCacheType_Values() []string { return []string{ ApiCacheTypeT2Small, ApiCacheTypeT2Medium, ApiCacheTypeR4Large, ApiCacheTypeR4Xlarge, ApiCacheTypeR42xlarge, ApiCacheTypeR44xlarge, ApiCacheTypeR48xlarge, ApiCacheTypeSmall, ApiCacheTypeMedium, ApiCacheTypeLarge, ApiCacheTypeXlarge, ApiCacheTypeLarge2x, ApiCacheTypeLarge4x, ApiCacheTypeLarge8x, ApiCacheTypeLarge12x, } } const ( // ApiCachingBehaviorFullRequestCaching is a ApiCachingBehavior enum value ApiCachingBehaviorFullRequestCaching = "FULL_REQUEST_CACHING" // ApiCachingBehaviorPerResolverCaching is a ApiCachingBehavior enum value ApiCachingBehaviorPerResolverCaching = "PER_RESOLVER_CACHING" ) // ApiCachingBehavior_Values returns all elements of the ApiCachingBehavior enum func ApiCachingBehavior_Values() []string { return []string{ ApiCachingBehaviorFullRequestCaching, ApiCachingBehaviorPerResolverCaching, } } const ( // AuthenticationTypeApiKey is a AuthenticationType enum value AuthenticationTypeApiKey = "API_KEY" // AuthenticationTypeAwsIam is a AuthenticationType enum value AuthenticationTypeAwsIam = "AWS_IAM" // AuthenticationTypeAmazonCognitoUserPools is a AuthenticationType enum value AuthenticationTypeAmazonCognitoUserPools = "AMAZON_COGNITO_USER_POOLS" // AuthenticationTypeOpenidConnect is a AuthenticationType enum value AuthenticationTypeOpenidConnect = "OPENID_CONNECT" // AuthenticationTypeAwsLambda is a AuthenticationType enum value AuthenticationTypeAwsLambda = "AWS_LAMBDA" ) // AuthenticationType_Values returns all elements of the AuthenticationType enum func AuthenticationType_Values() []string { return []string{ AuthenticationTypeApiKey, AuthenticationTypeAwsIam, AuthenticationTypeAmazonCognitoUserPools, AuthenticationTypeOpenidConnect, AuthenticationTypeAwsLambda, } } const ( // AuthorizationTypeAwsIam is a AuthorizationType enum value AuthorizationTypeAwsIam = "AWS_IAM" ) // AuthorizationType_Values returns all elements of the AuthorizationType enum func AuthorizationType_Values() []string { return []string{ AuthorizationTypeAwsIam, } } const ( // ConflictDetectionTypeVersion is a ConflictDetectionType enum value ConflictDetectionTypeVersion = "VERSION" // ConflictDetectionTypeNone is a ConflictDetectionType enum value ConflictDetectionTypeNone = "NONE" ) // ConflictDetectionType_Values returns all elements of the ConflictDetectionType enum func ConflictDetectionType_Values() []string { return []string{ ConflictDetectionTypeVersion, ConflictDetectionTypeNone, } } const ( // ConflictHandlerTypeOptimisticConcurrency is a ConflictHandlerType enum value ConflictHandlerTypeOptimisticConcurrency = "OPTIMISTIC_CONCURRENCY" // ConflictHandlerTypeLambda is a ConflictHandlerType enum value ConflictHandlerTypeLambda = "LAMBDA" // ConflictHandlerTypeAutomerge is a ConflictHandlerType enum value ConflictHandlerTypeAutomerge = "AUTOMERGE" // ConflictHandlerTypeNone is a ConflictHandlerType enum value ConflictHandlerTypeNone = "NONE" ) // ConflictHandlerType_Values returns all elements of the ConflictHandlerType enum func ConflictHandlerType_Values() []string { return []string{ ConflictHandlerTypeOptimisticConcurrency, ConflictHandlerTypeLambda, ConflictHandlerTypeAutomerge, ConflictHandlerTypeNone, } } const ( // DataSourceTypeAwsLambda is a DataSourceType enum value DataSourceTypeAwsLambda = "AWS_LAMBDA" // DataSourceTypeAmazonDynamodb is a DataSourceType enum value DataSourceTypeAmazonDynamodb = "AMAZON_DYNAMODB" // DataSourceTypeAmazonElasticsearch is a DataSourceType enum value DataSourceTypeAmazonElasticsearch = "AMAZON_ELASTICSEARCH" // DataSourceTypeNone is a DataSourceType enum value DataSourceTypeNone = "NONE" // DataSourceTypeHttp is a DataSourceType enum value DataSourceTypeHttp = "HTTP" // DataSourceTypeRelationalDatabase is a DataSourceType enum value DataSourceTypeRelationalDatabase = "RELATIONAL_DATABASE" ) // DataSourceType_Values returns all elements of the DataSourceType enum func DataSourceType_Values() []string { return []string{ DataSourceTypeAwsLambda, DataSourceTypeAmazonDynamodb, DataSourceTypeAmazonElasticsearch, DataSourceTypeNone, DataSourceTypeHttp, DataSourceTypeRelationalDatabase, } } const ( // DefaultActionAllow is a DefaultAction enum value DefaultActionAllow = "ALLOW" // DefaultActionDeny is a DefaultAction enum value DefaultActionDeny = "DENY" ) // DefaultAction_Values returns all elements of the DefaultAction enum func DefaultAction_Values() []string { return []string{ DefaultActionAllow, DefaultActionDeny, } } const ( // FieldLogLevelNone is a FieldLogLevel enum value FieldLogLevelNone = "NONE" // FieldLogLevelError is a FieldLogLevel enum value FieldLogLevelError = "ERROR" // FieldLogLevelAll is a FieldLogLevel enum value FieldLogLevelAll = "ALL" ) // FieldLogLevel_Values returns all elements of the FieldLogLevel enum func FieldLogLevel_Values() []string { return []string{ FieldLogLevelNone, FieldLogLevelError, FieldLogLevelAll, } } const ( // OutputTypeSdl is a OutputType enum value OutputTypeSdl = "SDL" // OutputTypeJson is a OutputType enum value OutputTypeJson = "JSON" ) // OutputType_Values returns all elements of the OutputType enum func OutputType_Values() []string { return []string{ OutputTypeSdl, OutputTypeJson, } } const ( // RelationalDatabaseSourceTypeRdsHttpEndpoint is a RelationalDatabaseSourceType enum value RelationalDatabaseSourceTypeRdsHttpEndpoint = "RDS_HTTP_ENDPOINT" ) // RelationalDatabaseSourceType_Values returns all elements of the RelationalDatabaseSourceType enum func RelationalDatabaseSourceType_Values() []string { return []string{ RelationalDatabaseSourceTypeRdsHttpEndpoint, } } const ( // ResolverKindUnit is a ResolverKind enum value ResolverKindUnit = "UNIT" // ResolverKindPipeline is a ResolverKind enum value ResolverKindPipeline = "PIPELINE" ) // ResolverKind_Values returns all elements of the ResolverKind enum func ResolverKind_Values() []string { return []string{ ResolverKindUnit, ResolverKindPipeline, } } const ( // SchemaStatusProcessing is a SchemaStatus enum value SchemaStatusProcessing = "PROCESSING" // SchemaStatusActive is a SchemaStatus enum value SchemaStatusActive = "ACTIVE" // SchemaStatusDeleting is a SchemaStatus enum value SchemaStatusDeleting = "DELETING" // SchemaStatusFailed is a SchemaStatus enum value SchemaStatusFailed = "FAILED" // SchemaStatusSuccess is a SchemaStatus enum value SchemaStatusSuccess = "SUCCESS" // SchemaStatusNotApplicable is a SchemaStatus enum value SchemaStatusNotApplicable = "NOT_APPLICABLE" ) // SchemaStatus_Values returns all elements of the SchemaStatus enum func SchemaStatus_Values() []string { return []string{ SchemaStatusProcessing, SchemaStatusActive, SchemaStatusDeleting, SchemaStatusFailed, SchemaStatusSuccess, SchemaStatusNotApplicable, } } const ( // TypeDefinitionFormatSdl is a TypeDefinitionFormat enum value TypeDefinitionFormatSdl = "SDL" // TypeDefinitionFormatJson is a TypeDefinitionFormat enum value TypeDefinitionFormatJson = "JSON" ) // TypeDefinitionFormat_Values returns all elements of the TypeDefinitionFormat enum func TypeDefinitionFormat_Values() []string { return []string{ TypeDefinitionFormatSdl, TypeDefinitionFormatJson, } }
10,873
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package appsync provides the client and types for making API // requests to AWS AppSync. // // AppSync provides API actions for creating and interacting with data sources // using GraphQL from your application. // // See https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25 for more information on this service. // // See appsync package documentation for more information. // https://docs.aws.amazon.com/sdk-for-go/api/service/appsync/ // // Using the Client // // To contact AWS AppSync 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 AppSync client AppSync for more // information on creating client for this service. // https://docs.aws.amazon.com/sdk-for-go/api/service/appsync/#New package appsync
30
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package appsync import ( "github.com/aws/aws-sdk-go/private/protocol" ) const ( // ErrCodeAccessDeniedException for service response error code // "AccessDeniedException". // // You do not have access to perform this operation on this resource. ErrCodeAccessDeniedException = "AccessDeniedException" // ErrCodeApiKeyLimitExceededException for service response error code // "ApiKeyLimitExceededException". // // The API key exceeded a limit. Try your request again. ErrCodeApiKeyLimitExceededException = "ApiKeyLimitExceededException" // ErrCodeApiKeyValidityOutOfBoundsException for service response error code // "ApiKeyValidityOutOfBoundsException". // // The API key expiration must be set to a value between 1 and 365 days from // creation (for CreateApiKey) or from update (for UpdateApiKey). ErrCodeApiKeyValidityOutOfBoundsException = "ApiKeyValidityOutOfBoundsException" // ErrCodeApiLimitExceededException for service response error code // "ApiLimitExceededException". // // The GraphQL API exceeded a limit. Try your request again. ErrCodeApiLimitExceededException = "ApiLimitExceededException" // ErrCodeBadRequestException for service response error code // "BadRequestException". // // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. ErrCodeBadRequestException = "BadRequestException" // ErrCodeConcurrentModificationException for service response error code // "ConcurrentModificationException". // // Another modification is in progress at this time and it must complete before // you can make your change. ErrCodeConcurrentModificationException = "ConcurrentModificationException" // ErrCodeGraphQLSchemaException for service response error code // "GraphQLSchemaException". // // The GraphQL schema is not valid. ErrCodeGraphQLSchemaException = "GraphQLSchemaException" // ErrCodeInternalFailureException for service response error code // "InternalFailureException". // // An internal AppSync error occurred. Try your request again. ErrCodeInternalFailureException = "InternalFailureException" // ErrCodeLimitExceededException for service response error code // "LimitExceededException". // // The request exceeded a limit. Try your request again. ErrCodeLimitExceededException = "LimitExceededException" // ErrCodeNotFoundException for service response error code // "NotFoundException". // // The resource specified in the request was not found. Check the resource, // and then try again. ErrCodeNotFoundException = "NotFoundException" // ErrCodeUnauthorizedException for service response error code // "UnauthorizedException". // // You are not authorized to perform this operation. ErrCodeUnauthorizedException = "UnauthorizedException" ) var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "AccessDeniedException": newErrorAccessDeniedException, "ApiKeyLimitExceededException": newErrorApiKeyLimitExceededException, "ApiKeyValidityOutOfBoundsException": newErrorApiKeyValidityOutOfBoundsException, "ApiLimitExceededException": newErrorApiLimitExceededException, "BadRequestException": newErrorBadRequestException, "ConcurrentModificationException": newErrorConcurrentModificationException, "GraphQLSchemaException": newErrorGraphQLSchemaException, "InternalFailureException": newErrorInternalFailureException, "LimitExceededException": newErrorLimitExceededException, "NotFoundException": newErrorNotFoundException, "UnauthorizedException": newErrorUnauthorizedException, }
95
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package appsync 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" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) // AppSync provides the API operation methods for making requests to // AWS AppSync. See this package's package overview docs // for details on the service. // // AppSync methods are safe to use concurrently. It is not safe to // modify mutate any of the struct's properties though. type AppSync 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 = "appsync" // Name of service. EndpointsID = ServiceName // ID to lookup a service endpoint with. ServiceID = "AppSync" // ServiceID is a unique identifier of a specific service. ) // New creates a new instance of the AppSync 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: // mySession := session.Must(session.NewSession()) // // // Create a AppSync client from just a session. // svc := appsync.New(mySession) // // // Create a AppSync client with additional configuration // svc := appsync.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *AppSync { c := p.ClientConfig(EndpointsID, cfgs...) if c.SigningNameDerived || len(c.SigningName) == 0 { c.SigningName = "appsync" } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *AppSync { svc := &AppSync{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, ServiceID: ServiceID, SigningName: signingName, SigningRegion: signingRegion, PartitionID: partitionID, Endpoint: endpoint, APIVersion: "2017-07-25", }, 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( protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), ) // Run custom client initialization if present if initClient != nil { initClient(svc.Client) } return svc } // newRequest creates a new request for a AppSync operation and runs any // custom request initialization. func (c *AppSync) 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 }
105
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package appsynciface provides an interface to enable mocking the AWS AppSync 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 appsynciface import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/service/appsync" ) // AppSyncAPI provides an interface to enable mocking the // appsync.AppSync 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 AppSync. // func myFunc(svc appsynciface.AppSyncAPI) bool { // // Make svc.CreateApiCache request // } // // func main() { // sess := session.New() // svc := appsync.New(sess) // // myFunc(svc) // } // // In your _test.go file: // // // Define a mock struct to be used in your unit tests of myFunc. // type mockAppSyncClient struct { // appsynciface.AppSyncAPI // } // func (m *mockAppSyncClient) CreateApiCache(input *appsync.CreateApiCacheInput) (*appsync.CreateApiCacheOutput, error) { // // mock response/functionality // } // // func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockAppSyncClient{} // // 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 AppSyncAPI interface { CreateApiCache(*appsync.CreateApiCacheInput) (*appsync.CreateApiCacheOutput, error) CreateApiCacheWithContext(aws.Context, *appsync.CreateApiCacheInput, ...request.Option) (*appsync.CreateApiCacheOutput, error) CreateApiCacheRequest(*appsync.CreateApiCacheInput) (*request.Request, *appsync.CreateApiCacheOutput) CreateApiKey(*appsync.CreateApiKeyInput) (*appsync.CreateApiKeyOutput, error) CreateApiKeyWithContext(aws.Context, *appsync.CreateApiKeyInput, ...request.Option) (*appsync.CreateApiKeyOutput, error) CreateApiKeyRequest(*appsync.CreateApiKeyInput) (*request.Request, *appsync.CreateApiKeyOutput) CreateDataSource(*appsync.CreateDataSourceInput) (*appsync.CreateDataSourceOutput, error) CreateDataSourceWithContext(aws.Context, *appsync.CreateDataSourceInput, ...request.Option) (*appsync.CreateDataSourceOutput, error) CreateDataSourceRequest(*appsync.CreateDataSourceInput) (*request.Request, *appsync.CreateDataSourceOutput) CreateFunction(*appsync.CreateFunctionInput) (*appsync.CreateFunctionOutput, error) CreateFunctionWithContext(aws.Context, *appsync.CreateFunctionInput, ...request.Option) (*appsync.CreateFunctionOutput, error) CreateFunctionRequest(*appsync.CreateFunctionInput) (*request.Request, *appsync.CreateFunctionOutput) CreateGraphqlApi(*appsync.CreateGraphqlApiInput) (*appsync.CreateGraphqlApiOutput, error) CreateGraphqlApiWithContext(aws.Context, *appsync.CreateGraphqlApiInput, ...request.Option) (*appsync.CreateGraphqlApiOutput, error) CreateGraphqlApiRequest(*appsync.CreateGraphqlApiInput) (*request.Request, *appsync.CreateGraphqlApiOutput) CreateResolver(*appsync.CreateResolverInput) (*appsync.CreateResolverOutput, error) CreateResolverWithContext(aws.Context, *appsync.CreateResolverInput, ...request.Option) (*appsync.CreateResolverOutput, error) CreateResolverRequest(*appsync.CreateResolverInput) (*request.Request, *appsync.CreateResolverOutput) CreateType(*appsync.CreateTypeInput) (*appsync.CreateTypeOutput, error) CreateTypeWithContext(aws.Context, *appsync.CreateTypeInput, ...request.Option) (*appsync.CreateTypeOutput, error) CreateTypeRequest(*appsync.CreateTypeInput) (*request.Request, *appsync.CreateTypeOutput) DeleteApiCache(*appsync.DeleteApiCacheInput) (*appsync.DeleteApiCacheOutput, error) DeleteApiCacheWithContext(aws.Context, *appsync.DeleteApiCacheInput, ...request.Option) (*appsync.DeleteApiCacheOutput, error) DeleteApiCacheRequest(*appsync.DeleteApiCacheInput) (*request.Request, *appsync.DeleteApiCacheOutput) DeleteApiKey(*appsync.DeleteApiKeyInput) (*appsync.DeleteApiKeyOutput, error) DeleteApiKeyWithContext(aws.Context, *appsync.DeleteApiKeyInput, ...request.Option) (*appsync.DeleteApiKeyOutput, error) DeleteApiKeyRequest(*appsync.DeleteApiKeyInput) (*request.Request, *appsync.DeleteApiKeyOutput) DeleteDataSource(*appsync.DeleteDataSourceInput) (*appsync.DeleteDataSourceOutput, error) DeleteDataSourceWithContext(aws.Context, *appsync.DeleteDataSourceInput, ...request.Option) (*appsync.DeleteDataSourceOutput, error) DeleteDataSourceRequest(*appsync.DeleteDataSourceInput) (*request.Request, *appsync.DeleteDataSourceOutput) DeleteFunction(*appsync.DeleteFunctionInput) (*appsync.DeleteFunctionOutput, error) DeleteFunctionWithContext(aws.Context, *appsync.DeleteFunctionInput, ...request.Option) (*appsync.DeleteFunctionOutput, error) DeleteFunctionRequest(*appsync.DeleteFunctionInput) (*request.Request, *appsync.DeleteFunctionOutput) DeleteGraphqlApi(*appsync.DeleteGraphqlApiInput) (*appsync.DeleteGraphqlApiOutput, error) DeleteGraphqlApiWithContext(aws.Context, *appsync.DeleteGraphqlApiInput, ...request.Option) (*appsync.DeleteGraphqlApiOutput, error) DeleteGraphqlApiRequest(*appsync.DeleteGraphqlApiInput) (*request.Request, *appsync.DeleteGraphqlApiOutput) DeleteResolver(*appsync.DeleteResolverInput) (*appsync.DeleteResolverOutput, error) DeleteResolverWithContext(aws.Context, *appsync.DeleteResolverInput, ...request.Option) (*appsync.DeleteResolverOutput, error) DeleteResolverRequest(*appsync.DeleteResolverInput) (*request.Request, *appsync.DeleteResolverOutput) DeleteType(*appsync.DeleteTypeInput) (*appsync.DeleteTypeOutput, error) DeleteTypeWithContext(aws.Context, *appsync.DeleteTypeInput, ...request.Option) (*appsync.DeleteTypeOutput, error) DeleteTypeRequest(*appsync.DeleteTypeInput) (*request.Request, *appsync.DeleteTypeOutput) FlushApiCache(*appsync.FlushApiCacheInput) (*appsync.FlushApiCacheOutput, error) FlushApiCacheWithContext(aws.Context, *appsync.FlushApiCacheInput, ...request.Option) (*appsync.FlushApiCacheOutput, error) FlushApiCacheRequest(*appsync.FlushApiCacheInput) (*request.Request, *appsync.FlushApiCacheOutput) GetApiCache(*appsync.GetApiCacheInput) (*appsync.GetApiCacheOutput, error) GetApiCacheWithContext(aws.Context, *appsync.GetApiCacheInput, ...request.Option) (*appsync.GetApiCacheOutput, error) GetApiCacheRequest(*appsync.GetApiCacheInput) (*request.Request, *appsync.GetApiCacheOutput) GetDataSource(*appsync.GetDataSourceInput) (*appsync.GetDataSourceOutput, error) GetDataSourceWithContext(aws.Context, *appsync.GetDataSourceInput, ...request.Option) (*appsync.GetDataSourceOutput, error) GetDataSourceRequest(*appsync.GetDataSourceInput) (*request.Request, *appsync.GetDataSourceOutput) GetFunction(*appsync.GetFunctionInput) (*appsync.GetFunctionOutput, error) GetFunctionWithContext(aws.Context, *appsync.GetFunctionInput, ...request.Option) (*appsync.GetFunctionOutput, error) GetFunctionRequest(*appsync.GetFunctionInput) (*request.Request, *appsync.GetFunctionOutput) GetGraphqlApi(*appsync.GetGraphqlApiInput) (*appsync.GetGraphqlApiOutput, error) GetGraphqlApiWithContext(aws.Context, *appsync.GetGraphqlApiInput, ...request.Option) (*appsync.GetGraphqlApiOutput, error) GetGraphqlApiRequest(*appsync.GetGraphqlApiInput) (*request.Request, *appsync.GetGraphqlApiOutput) GetIntrospectionSchema(*appsync.GetIntrospectionSchemaInput) (*appsync.GetIntrospectionSchemaOutput, error) GetIntrospectionSchemaWithContext(aws.Context, *appsync.GetIntrospectionSchemaInput, ...request.Option) (*appsync.GetIntrospectionSchemaOutput, error) GetIntrospectionSchemaRequest(*appsync.GetIntrospectionSchemaInput) (*request.Request, *appsync.GetIntrospectionSchemaOutput) GetResolver(*appsync.GetResolverInput) (*appsync.GetResolverOutput, error) GetResolverWithContext(aws.Context, *appsync.GetResolverInput, ...request.Option) (*appsync.GetResolverOutput, error) GetResolverRequest(*appsync.GetResolverInput) (*request.Request, *appsync.GetResolverOutput) GetSchemaCreationStatus(*appsync.GetSchemaCreationStatusInput) (*appsync.GetSchemaCreationStatusOutput, error) GetSchemaCreationStatusWithContext(aws.Context, *appsync.GetSchemaCreationStatusInput, ...request.Option) (*appsync.GetSchemaCreationStatusOutput, error) GetSchemaCreationStatusRequest(*appsync.GetSchemaCreationStatusInput) (*request.Request, *appsync.GetSchemaCreationStatusOutput) GetType(*appsync.GetTypeInput) (*appsync.GetTypeOutput, error) GetTypeWithContext(aws.Context, *appsync.GetTypeInput, ...request.Option) (*appsync.GetTypeOutput, error) GetTypeRequest(*appsync.GetTypeInput) (*request.Request, *appsync.GetTypeOutput) ListApiKeys(*appsync.ListApiKeysInput) (*appsync.ListApiKeysOutput, error) ListApiKeysWithContext(aws.Context, *appsync.ListApiKeysInput, ...request.Option) (*appsync.ListApiKeysOutput, error) ListApiKeysRequest(*appsync.ListApiKeysInput) (*request.Request, *appsync.ListApiKeysOutput) ListDataSources(*appsync.ListDataSourcesInput) (*appsync.ListDataSourcesOutput, error) ListDataSourcesWithContext(aws.Context, *appsync.ListDataSourcesInput, ...request.Option) (*appsync.ListDataSourcesOutput, error) ListDataSourcesRequest(*appsync.ListDataSourcesInput) (*request.Request, *appsync.ListDataSourcesOutput) ListFunctions(*appsync.ListFunctionsInput) (*appsync.ListFunctionsOutput, error) ListFunctionsWithContext(aws.Context, *appsync.ListFunctionsInput, ...request.Option) (*appsync.ListFunctionsOutput, error) ListFunctionsRequest(*appsync.ListFunctionsInput) (*request.Request, *appsync.ListFunctionsOutput) ListGraphqlApis(*appsync.ListGraphqlApisInput) (*appsync.ListGraphqlApisOutput, error) ListGraphqlApisWithContext(aws.Context, *appsync.ListGraphqlApisInput, ...request.Option) (*appsync.ListGraphqlApisOutput, error) ListGraphqlApisRequest(*appsync.ListGraphqlApisInput) (*request.Request, *appsync.ListGraphqlApisOutput) ListResolvers(*appsync.ListResolversInput) (*appsync.ListResolversOutput, error) ListResolversWithContext(aws.Context, *appsync.ListResolversInput, ...request.Option) (*appsync.ListResolversOutput, error) ListResolversRequest(*appsync.ListResolversInput) (*request.Request, *appsync.ListResolversOutput) ListResolversByFunction(*appsync.ListResolversByFunctionInput) (*appsync.ListResolversByFunctionOutput, error) ListResolversByFunctionWithContext(aws.Context, *appsync.ListResolversByFunctionInput, ...request.Option) (*appsync.ListResolversByFunctionOutput, error) ListResolversByFunctionRequest(*appsync.ListResolversByFunctionInput) (*request.Request, *appsync.ListResolversByFunctionOutput) ListTagsForResource(*appsync.ListTagsForResourceInput) (*appsync.ListTagsForResourceOutput, error) ListTagsForResourceWithContext(aws.Context, *appsync.ListTagsForResourceInput, ...request.Option) (*appsync.ListTagsForResourceOutput, error) ListTagsForResourceRequest(*appsync.ListTagsForResourceInput) (*request.Request, *appsync.ListTagsForResourceOutput) ListTypes(*appsync.ListTypesInput) (*appsync.ListTypesOutput, error) ListTypesWithContext(aws.Context, *appsync.ListTypesInput, ...request.Option) (*appsync.ListTypesOutput, error) ListTypesRequest(*appsync.ListTypesInput) (*request.Request, *appsync.ListTypesOutput) StartSchemaCreation(*appsync.StartSchemaCreationInput) (*appsync.StartSchemaCreationOutput, error) StartSchemaCreationWithContext(aws.Context, *appsync.StartSchemaCreationInput, ...request.Option) (*appsync.StartSchemaCreationOutput, error) StartSchemaCreationRequest(*appsync.StartSchemaCreationInput) (*request.Request, *appsync.StartSchemaCreationOutput) TagResource(*appsync.TagResourceInput) (*appsync.TagResourceOutput, error) TagResourceWithContext(aws.Context, *appsync.TagResourceInput, ...request.Option) (*appsync.TagResourceOutput, error) TagResourceRequest(*appsync.TagResourceInput) (*request.Request, *appsync.TagResourceOutput) UntagResource(*appsync.UntagResourceInput) (*appsync.UntagResourceOutput, error) UntagResourceWithContext(aws.Context, *appsync.UntagResourceInput, ...request.Option) (*appsync.UntagResourceOutput, error) UntagResourceRequest(*appsync.UntagResourceInput) (*request.Request, *appsync.UntagResourceOutput) UpdateApiCache(*appsync.UpdateApiCacheInput) (*appsync.UpdateApiCacheOutput, error) UpdateApiCacheWithContext(aws.Context, *appsync.UpdateApiCacheInput, ...request.Option) (*appsync.UpdateApiCacheOutput, error) UpdateApiCacheRequest(*appsync.UpdateApiCacheInput) (*request.Request, *appsync.UpdateApiCacheOutput) UpdateApiKey(*appsync.UpdateApiKeyInput) (*appsync.UpdateApiKeyOutput, error) UpdateApiKeyWithContext(aws.Context, *appsync.UpdateApiKeyInput, ...request.Option) (*appsync.UpdateApiKeyOutput, error) UpdateApiKeyRequest(*appsync.UpdateApiKeyInput) (*request.Request, *appsync.UpdateApiKeyOutput) UpdateDataSource(*appsync.UpdateDataSourceInput) (*appsync.UpdateDataSourceOutput, error) UpdateDataSourceWithContext(aws.Context, *appsync.UpdateDataSourceInput, ...request.Option) (*appsync.UpdateDataSourceOutput, error) UpdateDataSourceRequest(*appsync.UpdateDataSourceInput) (*request.Request, *appsync.UpdateDataSourceOutput) UpdateFunction(*appsync.UpdateFunctionInput) (*appsync.UpdateFunctionOutput, error) UpdateFunctionWithContext(aws.Context, *appsync.UpdateFunctionInput, ...request.Option) (*appsync.UpdateFunctionOutput, error) UpdateFunctionRequest(*appsync.UpdateFunctionInput) (*request.Request, *appsync.UpdateFunctionOutput) UpdateGraphqlApi(*appsync.UpdateGraphqlApiInput) (*appsync.UpdateGraphqlApiOutput, error) UpdateGraphqlApiWithContext(aws.Context, *appsync.UpdateGraphqlApiInput, ...request.Option) (*appsync.UpdateGraphqlApiOutput, error) UpdateGraphqlApiRequest(*appsync.UpdateGraphqlApiInput) (*request.Request, *appsync.UpdateGraphqlApiOutput) UpdateResolver(*appsync.UpdateResolverInput) (*appsync.UpdateResolverOutput, error) UpdateResolverWithContext(aws.Context, *appsync.UpdateResolverInput, ...request.Option) (*appsync.UpdateResolverOutput, error) UpdateResolverRequest(*appsync.UpdateResolverInput) (*request.Request, *appsync.UpdateResolverOutput) UpdateType(*appsync.UpdateTypeInput) (*appsync.UpdateTypeOutput, error) UpdateTypeWithContext(aws.Context, *appsync.UpdateTypeInput, ...request.Option) (*appsync.UpdateTypeOutput, error) UpdateTypeRequest(*appsync.UpdateTypeInput) (*request.Request, *appsync.UpdateTypeOutput) } var _ AppSyncAPI = (*appsync.AppSync)(nil)
229
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package athena import ( "fmt" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) const opBatchGetNamedQuery = "BatchGetNamedQuery" // BatchGetNamedQueryRequest generates a "aws/request.Request" representing the // client's request for the BatchGetNamedQuery operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See BatchGetNamedQuery for more information on using the BatchGetNamedQuery // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the BatchGetNamedQueryRequest method. // req, resp := client.BatchGetNamedQueryRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetNamedQuery func (c *Athena) BatchGetNamedQueryRequest(input *BatchGetNamedQueryInput) (req *request.Request, output *BatchGetNamedQueryOutput) { op := &request.Operation{ Name: opBatchGetNamedQuery, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &BatchGetNamedQueryInput{} } output = &BatchGetNamedQueryOutput{} req = c.newRequest(op, input, output) return } // BatchGetNamedQuery API operation for Amazon Athena. // // Returns the details of a single named query or a list of up to 50 queries, // which you provide as an array of query ID strings. Requires you to have access // to the workgroup in which the queries were saved. Use ListNamedQueriesInput // to get the list of named query IDs in the specified workgroup. If information // could not be retrieved for a submitted query ID, information about the query // ID submitted is listed under UnprocessedNamedQueryId. Named queries differ // from executed queries. Use BatchGetQueryExecutionInput to get details about // each unique query execution, and ListQueryExecutionsInput to get a list of // query execution IDs. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Athena's // API operation BatchGetNamedQuery for usage and error information. // // Returned Error Types: // * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // // * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetNamedQuery func (c *Athena) BatchGetNamedQuery(input *BatchGetNamedQueryInput) (*BatchGetNamedQueryOutput, error) { req, out := c.BatchGetNamedQueryRequest(input) return out, req.Send() } // BatchGetNamedQueryWithContext is the same as BatchGetNamedQuery with the addition of // the ability to pass a context and additional request options. // // See BatchGetNamedQuery for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) BatchGetNamedQueryWithContext(ctx aws.Context, input *BatchGetNamedQueryInput, opts ...request.Option) (*BatchGetNamedQueryOutput, error) { req, out := c.BatchGetNamedQueryRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opBatchGetQueryExecution = "BatchGetQueryExecution" // BatchGetQueryExecutionRequest generates a "aws/request.Request" representing the // client's request for the BatchGetQueryExecution operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See BatchGetQueryExecution for more information on using the BatchGetQueryExecution // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the BatchGetQueryExecutionRequest method. // req, resp := client.BatchGetQueryExecutionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetQueryExecution func (c *Athena) BatchGetQueryExecutionRequest(input *BatchGetQueryExecutionInput) (req *request.Request, output *BatchGetQueryExecutionOutput) { op := &request.Operation{ Name: opBatchGetQueryExecution, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &BatchGetQueryExecutionInput{} } output = &BatchGetQueryExecutionOutput{} req = c.newRequest(op, input, output) return } // BatchGetQueryExecution API operation for Amazon Athena. // // Returns the details of a single query execution or a list of up to 50 query // executions, which you provide as an array of query execution ID strings. // Requires you to have access to the workgroup in which the queries ran. To // get a list of query execution IDs, use ListQueryExecutionsInput$WorkGroup. // Query executions differ from named (saved) queries. Use BatchGetNamedQueryInput // to get details about named queries. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Athena's // API operation BatchGetQueryExecution for usage and error information. // // Returned Error Types: // * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // // * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetQueryExecution func (c *Athena) BatchGetQueryExecution(input *BatchGetQueryExecutionInput) (*BatchGetQueryExecutionOutput, error) { req, out := c.BatchGetQueryExecutionRequest(input) return out, req.Send() } // BatchGetQueryExecutionWithContext is the same as BatchGetQueryExecution with the addition of // the ability to pass a context and additional request options. // // See BatchGetQueryExecution for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) BatchGetQueryExecutionWithContext(ctx aws.Context, input *BatchGetQueryExecutionInput, opts ...request.Option) (*BatchGetQueryExecutionOutput, error) { req, out := c.BatchGetQueryExecutionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateDataCatalog = "CreateDataCatalog" // CreateDataCatalogRequest generates a "aws/request.Request" representing the // client's request for the CreateDataCatalog operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateDataCatalog for more information on using the CreateDataCatalog // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateDataCatalogRequest method. // req, resp := client.CreateDataCatalogRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateDataCatalog func (c *Athena) CreateDataCatalogRequest(input *CreateDataCatalogInput) (req *request.Request, output *CreateDataCatalogOutput) { op := &request.Operation{ Name: opCreateDataCatalog, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateDataCatalogInput{} } output = &CreateDataCatalogOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // CreateDataCatalog API operation for Amazon Athena. // // Creates (registers) a data catalog with the specified name and properties. // Catalogs created are visible to all users of the same Amazon Web Services // account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Athena's // API operation CreateDataCatalog for usage and error information. // // Returned Error Types: // * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // // * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateDataCatalog func (c *Athena) CreateDataCatalog(input *CreateDataCatalogInput) (*CreateDataCatalogOutput, error) { req, out := c.CreateDataCatalogRequest(input) return out, req.Send() } // CreateDataCatalogWithContext is the same as CreateDataCatalog with the addition of // the ability to pass a context and additional request options. // // See CreateDataCatalog for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) CreateDataCatalogWithContext(ctx aws.Context, input *CreateDataCatalogInput, opts ...request.Option) (*CreateDataCatalogOutput, error) { req, out := c.CreateDataCatalogRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateNamedQuery = "CreateNamedQuery" // CreateNamedQueryRequest generates a "aws/request.Request" representing the // client's request for the CreateNamedQuery operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateNamedQuery for more information on using the CreateNamedQuery // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateNamedQueryRequest method. // req, resp := client.CreateNamedQueryRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateNamedQuery func (c *Athena) CreateNamedQueryRequest(input *CreateNamedQueryInput) (req *request.Request, output *CreateNamedQueryOutput) { op := &request.Operation{ Name: opCreateNamedQuery, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateNamedQueryInput{} } output = &CreateNamedQueryOutput{} req = c.newRequest(op, input, output) return } // CreateNamedQuery API operation for Amazon Athena. // // Creates a named query in the specified workgroup. Requires that you have // access to the workgroup. // // For code samples using the Amazon Web Services SDK for Java, see Examples // and Code Samples (http://docs.aws.amazon.com/athena/latest/ug/code-samples.html) // in the Amazon Athena User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Athena's // API operation CreateNamedQuery for usage and error information. // // Returned Error Types: // * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // // * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateNamedQuery func (c *Athena) CreateNamedQuery(input *CreateNamedQueryInput) (*CreateNamedQueryOutput, error) { req, out := c.CreateNamedQueryRequest(input) return out, req.Send() } // CreateNamedQueryWithContext is the same as CreateNamedQuery with the addition of // the ability to pass a context and additional request options. // // See CreateNamedQuery for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) CreateNamedQueryWithContext(ctx aws.Context, input *CreateNamedQueryInput, opts ...request.Option) (*CreateNamedQueryOutput, error) { req, out := c.CreateNamedQueryRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreatePreparedStatement = "CreatePreparedStatement" // CreatePreparedStatementRequest generates a "aws/request.Request" representing the // client's request for the CreatePreparedStatement operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreatePreparedStatement for more information on using the CreatePreparedStatement // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreatePreparedStatementRequest method. // req, resp := client.CreatePreparedStatementRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreatePreparedStatement func (c *Athena) CreatePreparedStatementRequest(input *CreatePreparedStatementInput) (req *request.Request, output *CreatePreparedStatementOutput) { op := &request.Operation{ Name: opCreatePreparedStatement, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreatePreparedStatementInput{} } output = &CreatePreparedStatementOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // CreatePreparedStatement API operation for Amazon Athena. // // Creates a prepared statement for use with SQL queries in Athena. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Athena's // API operation CreatePreparedStatement for usage and error information. // // Returned Error Types: // * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // // * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreatePreparedStatement func (c *Athena) CreatePreparedStatement(input *CreatePreparedStatementInput) (*CreatePreparedStatementOutput, error) { req, out := c.CreatePreparedStatementRequest(input) return out, req.Send() } // CreatePreparedStatementWithContext is the same as CreatePreparedStatement with the addition of // the ability to pass a context and additional request options. // // See CreatePreparedStatement for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) CreatePreparedStatementWithContext(ctx aws.Context, input *CreatePreparedStatementInput, opts ...request.Option) (*CreatePreparedStatementOutput, error) { req, out := c.CreatePreparedStatementRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateWorkGroup = "CreateWorkGroup" // CreateWorkGroupRequest generates a "aws/request.Request" representing the // client's request for the CreateWorkGroup operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateWorkGroup for more information on using the CreateWorkGroup // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateWorkGroupRequest method. // req, resp := client.CreateWorkGroupRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateWorkGroup func (c *Athena) CreateWorkGroupRequest(input *CreateWorkGroupInput) (req *request.Request, output *CreateWorkGroupOutput) { op := &request.Operation{ Name: opCreateWorkGroup, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateWorkGroupInput{} } output = &CreateWorkGroupOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // CreateWorkGroup API operation for Amazon Athena. // // Creates a workgroup with the specified name. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Athena's // API operation CreateWorkGroup for usage and error information. // // Returned Error Types: // * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // // * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateWorkGroup func (c *Athena) CreateWorkGroup(input *CreateWorkGroupInput) (*CreateWorkGroupOutput, error) { req, out := c.CreateWorkGroupRequest(input) return out, req.Send() } // CreateWorkGroupWithContext is the same as CreateWorkGroup with the addition of // the ability to pass a context and additional request options. // // See CreateWorkGroup for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) CreateWorkGroupWithContext(ctx aws.Context, input *CreateWorkGroupInput, opts ...request.Option) (*CreateWorkGroupOutput, error) { req, out := c.CreateWorkGroupRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteDataCatalog = "DeleteDataCatalog" // DeleteDataCatalogRequest generates a "aws/request.Request" representing the // client's request for the DeleteDataCatalog operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteDataCatalog for more information on using the DeleteDataCatalog // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteDataCatalogRequest method. // req, resp := client.DeleteDataCatalogRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteDataCatalog func (c *Athena) DeleteDataCatalogRequest(input *DeleteDataCatalogInput) (req *request.Request, output *DeleteDataCatalogOutput) { op := &request.Operation{ Name: opDeleteDataCatalog, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteDataCatalogInput{} } output = &DeleteDataCatalogOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteDataCatalog API operation for Amazon Athena. // // Deletes a data catalog. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Athena's // API operation DeleteDataCatalog for usage and error information. // // Returned Error Types: // * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // // * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteDataCatalog func (c *Athena) DeleteDataCatalog(input *DeleteDataCatalogInput) (*DeleteDataCatalogOutput, error) { req, out := c.DeleteDataCatalogRequest(input) return out, req.Send() } // DeleteDataCatalogWithContext is the same as DeleteDataCatalog with the addition of // the ability to pass a context and additional request options. // // See DeleteDataCatalog for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) DeleteDataCatalogWithContext(ctx aws.Context, input *DeleteDataCatalogInput, opts ...request.Option) (*DeleteDataCatalogOutput, error) { req, out := c.DeleteDataCatalogRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteNamedQuery = "DeleteNamedQuery" // DeleteNamedQueryRequest generates a "aws/request.Request" representing the // client's request for the DeleteNamedQuery operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteNamedQuery for more information on using the DeleteNamedQuery // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteNamedQueryRequest method. // req, resp := client.DeleteNamedQueryRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteNamedQuery func (c *Athena) DeleteNamedQueryRequest(input *DeleteNamedQueryInput) (req *request.Request, output *DeleteNamedQueryOutput) { op := &request.Operation{ Name: opDeleteNamedQuery, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteNamedQueryInput{} } output = &DeleteNamedQueryOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteNamedQuery API operation for Amazon Athena. // // Deletes the named query if you have access to the workgroup in which the // query was saved. // // For code samples using the Amazon Web Services SDK for Java, see Examples // and Code Samples (http://docs.aws.amazon.com/athena/latest/ug/code-samples.html) // in the Amazon Athena User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Athena's // API operation DeleteNamedQuery for usage and error information. // // Returned Error Types: // * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // // * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteNamedQuery func (c *Athena) DeleteNamedQuery(input *DeleteNamedQueryInput) (*DeleteNamedQueryOutput, error) { req, out := c.DeleteNamedQueryRequest(input) return out, req.Send() } // DeleteNamedQueryWithContext is the same as DeleteNamedQuery with the addition of // the ability to pass a context and additional request options. // // See DeleteNamedQuery for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) DeleteNamedQueryWithContext(ctx aws.Context, input *DeleteNamedQueryInput, opts ...request.Option) (*DeleteNamedQueryOutput, error) { req, out := c.DeleteNamedQueryRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeletePreparedStatement = "DeletePreparedStatement" // DeletePreparedStatementRequest generates a "aws/request.Request" representing the // client's request for the DeletePreparedStatement operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeletePreparedStatement for more information on using the DeletePreparedStatement // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeletePreparedStatementRequest method. // req, resp := client.DeletePreparedStatementRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeletePreparedStatement func (c *Athena) DeletePreparedStatementRequest(input *DeletePreparedStatementInput) (req *request.Request, output *DeletePreparedStatementOutput) { op := &request.Operation{ Name: opDeletePreparedStatement, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeletePreparedStatementInput{} } output = &DeletePreparedStatementOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeletePreparedStatement API operation for Amazon Athena. // // Deletes the prepared statement with the specified name from the specified // workgroup. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Athena's // API operation DeletePreparedStatement for usage and error information. // // Returned Error Types: // * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // // * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // // * ResourceNotFoundException // A resource, such as a workgroup, was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeletePreparedStatement func (c *Athena) DeletePreparedStatement(input *DeletePreparedStatementInput) (*DeletePreparedStatementOutput, error) { req, out := c.DeletePreparedStatementRequest(input) return out, req.Send() } // DeletePreparedStatementWithContext is the same as DeletePreparedStatement with the addition of // the ability to pass a context and additional request options. // // See DeletePreparedStatement for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) DeletePreparedStatementWithContext(ctx aws.Context, input *DeletePreparedStatementInput, opts ...request.Option) (*DeletePreparedStatementOutput, error) { req, out := c.DeletePreparedStatementRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteWorkGroup = "DeleteWorkGroup" // DeleteWorkGroupRequest generates a "aws/request.Request" representing the // client's request for the DeleteWorkGroup operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteWorkGroup for more information on using the DeleteWorkGroup // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteWorkGroupRequest method. // req, resp := client.DeleteWorkGroupRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteWorkGroup func (c *Athena) DeleteWorkGroupRequest(input *DeleteWorkGroupInput) (req *request.Request, output *DeleteWorkGroupOutput) { op := &request.Operation{ Name: opDeleteWorkGroup, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteWorkGroupInput{} } output = &DeleteWorkGroupOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteWorkGroup API operation for Amazon Athena. // // Deletes the workgroup with the specified name. The primary workgroup cannot // be deleted. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Athena's // API operation DeleteWorkGroup for usage and error information. // // Returned Error Types: // * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // // * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteWorkGroup func (c *Athena) DeleteWorkGroup(input *DeleteWorkGroupInput) (*DeleteWorkGroupOutput, error) { req, out := c.DeleteWorkGroupRequest(input) return out, req.Send() } // DeleteWorkGroupWithContext is the same as DeleteWorkGroup with the addition of // the ability to pass a context and additional request options. // // See DeleteWorkGroup for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) DeleteWorkGroupWithContext(ctx aws.Context, input *DeleteWorkGroupInput, opts ...request.Option) (*DeleteWorkGroupOutput, error) { req, out := c.DeleteWorkGroupRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetDataCatalog = "GetDataCatalog" // GetDataCatalogRequest generates a "aws/request.Request" representing the // client's request for the GetDataCatalog operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetDataCatalog for more information on using the GetDataCatalog // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetDataCatalogRequest method. // req, resp := client.GetDataCatalogRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetDataCatalog func (c *Athena) GetDataCatalogRequest(input *GetDataCatalogInput) (req *request.Request, output *GetDataCatalogOutput) { op := &request.Operation{ Name: opGetDataCatalog, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &GetDataCatalogInput{} } output = &GetDataCatalogOutput{} req = c.newRequest(op, input, output) return } // GetDataCatalog API operation for Amazon Athena. // // Returns the specified data catalog. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Athena's // API operation GetDataCatalog for usage and error information. // // Returned Error Types: // * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // // * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetDataCatalog func (c *Athena) GetDataCatalog(input *GetDataCatalogInput) (*GetDataCatalogOutput, error) { req, out := c.GetDataCatalogRequest(input) return out, req.Send() } // GetDataCatalogWithContext is the same as GetDataCatalog with the addition of // the ability to pass a context and additional request options. // // See GetDataCatalog for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) GetDataCatalogWithContext(ctx aws.Context, input *GetDataCatalogInput, opts ...request.Option) (*GetDataCatalogOutput, error) { req, out := c.GetDataCatalogRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetDatabase = "GetDatabase" // GetDatabaseRequest generates a "aws/request.Request" representing the // client's request for the GetDatabase operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetDatabase for more information on using the GetDatabase // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetDatabaseRequest method. // req, resp := client.GetDatabaseRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetDatabase func (c *Athena) GetDatabaseRequest(input *GetDatabaseInput) (req *request.Request, output *GetDatabaseOutput) { op := &request.Operation{ Name: opGetDatabase, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &GetDatabaseInput{} } output = &GetDatabaseOutput{} req = c.newRequest(op, input, output) return } // GetDatabase API operation for Amazon Athena. // // Returns a database object for the specified database and data catalog. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Athena's // API operation GetDatabase for usage and error information. // // Returned Error Types: // * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // // * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // // * MetadataException // An exception that Athena received when it called a custom metastore. Occurs // if the error is not caused by user input (InvalidRequestException) or from // the Athena platform (InternalServerException). For example, if a user-created // Lambda function is missing permissions, the Lambda 4XX exception is returned // in a MetadataException. // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetDatabase func (c *Athena) GetDatabase(input *GetDatabaseInput) (*GetDatabaseOutput, error) { req, out := c.GetDatabaseRequest(input) return out, req.Send() } // GetDatabaseWithContext is the same as GetDatabase with the addition of // the ability to pass a context and additional request options. // // See GetDatabase for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) GetDatabaseWithContext(ctx aws.Context, input *GetDatabaseInput, opts ...request.Option) (*GetDatabaseOutput, error) { req, out := c.GetDatabaseRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetNamedQuery = "GetNamedQuery" // GetNamedQueryRequest generates a "aws/request.Request" representing the // client's request for the GetNamedQuery operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetNamedQuery for more information on using the GetNamedQuery // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetNamedQueryRequest method. // req, resp := client.GetNamedQueryRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetNamedQuery func (c *Athena) GetNamedQueryRequest(input *GetNamedQueryInput) (req *request.Request, output *GetNamedQueryOutput) { op := &request.Operation{ Name: opGetNamedQuery, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &GetNamedQueryInput{} } output = &GetNamedQueryOutput{} req = c.newRequest(op, input, output) return } // GetNamedQuery API operation for Amazon Athena. // // Returns information about a single query. Requires that you have access to // the workgroup in which the query was saved. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Athena's // API operation GetNamedQuery for usage and error information. // // Returned Error Types: // * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // // * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetNamedQuery func (c *Athena) GetNamedQuery(input *GetNamedQueryInput) (*GetNamedQueryOutput, error) { req, out := c.GetNamedQueryRequest(input) return out, req.Send() } // GetNamedQueryWithContext is the same as GetNamedQuery with the addition of // the ability to pass a context and additional request options. // // See GetNamedQuery for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) GetNamedQueryWithContext(ctx aws.Context, input *GetNamedQueryInput, opts ...request.Option) (*GetNamedQueryOutput, error) { req, out := c.GetNamedQueryRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetPreparedStatement = "GetPreparedStatement" // GetPreparedStatementRequest generates a "aws/request.Request" representing the // client's request for the GetPreparedStatement operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetPreparedStatement for more information on using the GetPreparedStatement // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetPreparedStatementRequest method. // req, resp := client.GetPreparedStatementRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetPreparedStatement func (c *Athena) GetPreparedStatementRequest(input *GetPreparedStatementInput) (req *request.Request, output *GetPreparedStatementOutput) { op := &request.Operation{ Name: opGetPreparedStatement, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &GetPreparedStatementInput{} } output = &GetPreparedStatementOutput{} req = c.newRequest(op, input, output) return } // GetPreparedStatement API operation for Amazon Athena. // // Retrieves the prepared statement with the specified name from the specified // workgroup. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Athena's // API operation GetPreparedStatement for usage and error information. // // Returned Error Types: // * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // // * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // // * ResourceNotFoundException // A resource, such as a workgroup, was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetPreparedStatement func (c *Athena) GetPreparedStatement(input *GetPreparedStatementInput) (*GetPreparedStatementOutput, error) { req, out := c.GetPreparedStatementRequest(input) return out, req.Send() } // GetPreparedStatementWithContext is the same as GetPreparedStatement with the addition of // the ability to pass a context and additional request options. // // See GetPreparedStatement for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) GetPreparedStatementWithContext(ctx aws.Context, input *GetPreparedStatementInput, opts ...request.Option) (*GetPreparedStatementOutput, error) { req, out := c.GetPreparedStatementRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetQueryExecution = "GetQueryExecution" // GetQueryExecutionRequest generates a "aws/request.Request" representing the // client's request for the GetQueryExecution operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetQueryExecution for more information on using the GetQueryExecution // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetQueryExecutionRequest method. // req, resp := client.GetQueryExecutionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryExecution func (c *Athena) GetQueryExecutionRequest(input *GetQueryExecutionInput) (req *request.Request, output *GetQueryExecutionOutput) { op := &request.Operation{ Name: opGetQueryExecution, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &GetQueryExecutionInput{} } output = &GetQueryExecutionOutput{} req = c.newRequest(op, input, output) return } // GetQueryExecution API operation for Amazon Athena. // // Returns information about a single execution of a query if you have access // to the workgroup in which the query ran. Each time a query executes, information // about the query execution is saved with a unique ID. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Athena's // API operation GetQueryExecution for usage and error information. // // Returned Error Types: // * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // // * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryExecution func (c *Athena) GetQueryExecution(input *GetQueryExecutionInput) (*GetQueryExecutionOutput, error) { req, out := c.GetQueryExecutionRequest(input) return out, req.Send() } // GetQueryExecutionWithContext is the same as GetQueryExecution with the addition of // the ability to pass a context and additional request options. // // See GetQueryExecution for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) GetQueryExecutionWithContext(ctx aws.Context, input *GetQueryExecutionInput, opts ...request.Option) (*GetQueryExecutionOutput, error) { req, out := c.GetQueryExecutionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetQueryResults = "GetQueryResults" // GetQueryResultsRequest generates a "aws/request.Request" representing the // client's request for the GetQueryResults operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetQueryResults for more information on using the GetQueryResults // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetQueryResultsRequest method. // req, resp := client.GetQueryResultsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryResults func (c *Athena) GetQueryResultsRequest(input *GetQueryResultsInput) (req *request.Request, output *GetQueryResultsOutput) { op := &request.Operation{ Name: opGetQueryResults, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &GetQueryResultsInput{} } output = &GetQueryResultsOutput{} req = c.newRequest(op, input, output) return } // GetQueryResults API operation for Amazon Athena. // // Streams the results of a single query execution specified by QueryExecutionId // from the Athena query results location in Amazon S3. For more information, // see Query Results (https://docs.aws.amazon.com/athena/latest/ug/querying.html) // in the Amazon Athena User Guide. This request does not execute the query // but returns results. Use StartQueryExecution to run a query. // // To stream query results successfully, the IAM principal with permission to // call GetQueryResults also must have permissions to the Amazon S3 GetObject // action for the Athena query results location. // // IAM principals with permission to the Amazon S3 GetObject action for the // query results location are able to retrieve query results from Amazon S3 // even if permission to the GetQueryResults action is denied. To restrict user // or role access, ensure that Amazon S3 permissions to the Athena query location // are denied. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Athena's // API operation GetQueryResults for usage and error information. // // Returned Error Types: // * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // // * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryResults func (c *Athena) GetQueryResults(input *GetQueryResultsInput) (*GetQueryResultsOutput, error) { req, out := c.GetQueryResultsRequest(input) return out, req.Send() } // GetQueryResultsWithContext is the same as GetQueryResults with the addition of // the ability to pass a context and additional request options. // // See GetQueryResults for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) GetQueryResultsWithContext(ctx aws.Context, input *GetQueryResultsInput, opts ...request.Option) (*GetQueryResultsOutput, error) { req, out := c.GetQueryResultsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // GetQueryResultsPages iterates over the pages of a GetQueryResults operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See GetQueryResults method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a GetQueryResults operation. // pageNum := 0 // err := client.GetQueryResultsPages(params, // func(page *athena.GetQueryResultsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *Athena) GetQueryResultsPages(input *GetQueryResultsInput, fn func(*GetQueryResultsOutput, bool) bool) error { return c.GetQueryResultsPagesWithContext(aws.BackgroundContext(), input, fn) } // GetQueryResultsPagesWithContext same as GetQueryResultsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) GetQueryResultsPagesWithContext(ctx aws.Context, input *GetQueryResultsInput, fn func(*GetQueryResultsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *GetQueryResultsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.GetQueryResultsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*GetQueryResultsOutput), !p.HasNextPage()) { break } } return p.Err() } const opGetTableMetadata = "GetTableMetadata" // GetTableMetadataRequest generates a "aws/request.Request" representing the // client's request for the GetTableMetadata operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetTableMetadata for more information on using the GetTableMetadata // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetTableMetadataRequest method. // req, resp := client.GetTableMetadataRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetTableMetadata func (c *Athena) GetTableMetadataRequest(input *GetTableMetadataInput) (req *request.Request, output *GetTableMetadataOutput) { op := &request.Operation{ Name: opGetTableMetadata, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &GetTableMetadataInput{} } output = &GetTableMetadataOutput{} req = c.newRequest(op, input, output) return } // GetTableMetadata API operation for Amazon Athena. // // Returns table metadata for the specified catalog, database, and table. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Athena's // API operation GetTableMetadata for usage and error information. // // Returned Error Types: // * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // // * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // // * MetadataException // An exception that Athena received when it called a custom metastore. Occurs // if the error is not caused by user input (InvalidRequestException) or from // the Athena platform (InternalServerException). For example, if a user-created // Lambda function is missing permissions, the Lambda 4XX exception is returned // in a MetadataException. // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetTableMetadata func (c *Athena) GetTableMetadata(input *GetTableMetadataInput) (*GetTableMetadataOutput, error) { req, out := c.GetTableMetadataRequest(input) return out, req.Send() } // GetTableMetadataWithContext is the same as GetTableMetadata with the addition of // the ability to pass a context and additional request options. // // See GetTableMetadata for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) GetTableMetadataWithContext(ctx aws.Context, input *GetTableMetadataInput, opts ...request.Option) (*GetTableMetadataOutput, error) { req, out := c.GetTableMetadataRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetWorkGroup = "GetWorkGroup" // GetWorkGroupRequest generates a "aws/request.Request" representing the // client's request for the GetWorkGroup operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetWorkGroup for more information on using the GetWorkGroup // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetWorkGroupRequest method. // req, resp := client.GetWorkGroupRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetWorkGroup func (c *Athena) GetWorkGroupRequest(input *GetWorkGroupInput) (req *request.Request, output *GetWorkGroupOutput) { op := &request.Operation{ Name: opGetWorkGroup, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &GetWorkGroupInput{} } output = &GetWorkGroupOutput{} req = c.newRequest(op, input, output) return } // GetWorkGroup API operation for Amazon Athena. // // Returns information about the workgroup with the specified name. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Athena's // API operation GetWorkGroup for usage and error information. // // Returned Error Types: // * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // // * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetWorkGroup func (c *Athena) GetWorkGroup(input *GetWorkGroupInput) (*GetWorkGroupOutput, error) { req, out := c.GetWorkGroupRequest(input) return out, req.Send() } // GetWorkGroupWithContext is the same as GetWorkGroup with the addition of // the ability to pass a context and additional request options. // // See GetWorkGroup for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) GetWorkGroupWithContext(ctx aws.Context, input *GetWorkGroupInput, opts ...request.Option) (*GetWorkGroupOutput, error) { req, out := c.GetWorkGroupRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opListDataCatalogs = "ListDataCatalogs" // ListDataCatalogsRequest generates a "aws/request.Request" representing the // client's request for the ListDataCatalogs operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListDataCatalogs for more information on using the ListDataCatalogs // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListDataCatalogsRequest method. // req, resp := client.ListDataCatalogsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListDataCatalogs func (c *Athena) ListDataCatalogsRequest(input *ListDataCatalogsInput) (req *request.Request, output *ListDataCatalogsOutput) { op := &request.Operation{ Name: opListDataCatalogs, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListDataCatalogsInput{} } output = &ListDataCatalogsOutput{} req = c.newRequest(op, input, output) return } // ListDataCatalogs API operation for Amazon Athena. // // Lists the data catalogs in the current Amazon Web Services account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Athena's // API operation ListDataCatalogs for usage and error information. // // Returned Error Types: // * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // // * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListDataCatalogs func (c *Athena) ListDataCatalogs(input *ListDataCatalogsInput) (*ListDataCatalogsOutput, error) { req, out := c.ListDataCatalogsRequest(input) return out, req.Send() } // ListDataCatalogsWithContext is the same as ListDataCatalogs with the addition of // the ability to pass a context and additional request options. // // See ListDataCatalogs for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) ListDataCatalogsWithContext(ctx aws.Context, input *ListDataCatalogsInput, opts ...request.Option) (*ListDataCatalogsOutput, error) { req, out := c.ListDataCatalogsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListDataCatalogsPages iterates over the pages of a ListDataCatalogs operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListDataCatalogs method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListDataCatalogs operation. // pageNum := 0 // err := client.ListDataCatalogsPages(params, // func(page *athena.ListDataCatalogsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *Athena) ListDataCatalogsPages(input *ListDataCatalogsInput, fn func(*ListDataCatalogsOutput, bool) bool) error { return c.ListDataCatalogsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListDataCatalogsPagesWithContext same as ListDataCatalogsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) ListDataCatalogsPagesWithContext(ctx aws.Context, input *ListDataCatalogsInput, fn func(*ListDataCatalogsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListDataCatalogsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListDataCatalogsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListDataCatalogsOutput), !p.HasNextPage()) { break } } return p.Err() } const opListDatabases = "ListDatabases" // ListDatabasesRequest generates a "aws/request.Request" representing the // client's request for the ListDatabases operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListDatabases for more information on using the ListDatabases // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListDatabasesRequest method. // req, resp := client.ListDatabasesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListDatabases func (c *Athena) ListDatabasesRequest(input *ListDatabasesInput) (req *request.Request, output *ListDatabasesOutput) { op := &request.Operation{ Name: opListDatabases, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListDatabasesInput{} } output = &ListDatabasesOutput{} req = c.newRequest(op, input, output) return } // ListDatabases API operation for Amazon Athena. // // Lists the databases in the specified data catalog. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Athena's // API operation ListDatabases for usage and error information. // // Returned Error Types: // * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // // * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // // * MetadataException // An exception that Athena received when it called a custom metastore. Occurs // if the error is not caused by user input (InvalidRequestException) or from // the Athena platform (InternalServerException). For example, if a user-created // Lambda function is missing permissions, the Lambda 4XX exception is returned // in a MetadataException. // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListDatabases func (c *Athena) ListDatabases(input *ListDatabasesInput) (*ListDatabasesOutput, error) { req, out := c.ListDatabasesRequest(input) return out, req.Send() } // ListDatabasesWithContext is the same as ListDatabases with the addition of // the ability to pass a context and additional request options. // // See ListDatabases for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) ListDatabasesWithContext(ctx aws.Context, input *ListDatabasesInput, opts ...request.Option) (*ListDatabasesOutput, error) { req, out := c.ListDatabasesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListDatabasesPages iterates over the pages of a ListDatabases operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListDatabases method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListDatabases operation. // pageNum := 0 // err := client.ListDatabasesPages(params, // func(page *athena.ListDatabasesOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *Athena) ListDatabasesPages(input *ListDatabasesInput, fn func(*ListDatabasesOutput, bool) bool) error { return c.ListDatabasesPagesWithContext(aws.BackgroundContext(), input, fn) } // ListDatabasesPagesWithContext same as ListDatabasesPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) ListDatabasesPagesWithContext(ctx aws.Context, input *ListDatabasesInput, fn func(*ListDatabasesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListDatabasesInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListDatabasesRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListDatabasesOutput), !p.HasNextPage()) { break } } return p.Err() } const opListEngineVersions = "ListEngineVersions" // ListEngineVersionsRequest generates a "aws/request.Request" representing the // client's request for the ListEngineVersions operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListEngineVersions for more information on using the ListEngineVersions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListEngineVersionsRequest method. // req, resp := client.ListEngineVersionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListEngineVersions func (c *Athena) ListEngineVersionsRequest(input *ListEngineVersionsInput) (req *request.Request, output *ListEngineVersionsOutput) { op := &request.Operation{ Name: opListEngineVersions, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &ListEngineVersionsInput{} } output = &ListEngineVersionsOutput{} req = c.newRequest(op, input, output) return } // ListEngineVersions API operation for Amazon Athena. // // Returns a list of engine versions that are available to choose from, including // the Auto option. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Athena's // API operation ListEngineVersions for usage and error information. // // Returned Error Types: // * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // // * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListEngineVersions func (c *Athena) ListEngineVersions(input *ListEngineVersionsInput) (*ListEngineVersionsOutput, error) { req, out := c.ListEngineVersionsRequest(input) return out, req.Send() } // ListEngineVersionsWithContext is the same as ListEngineVersions with the addition of // the ability to pass a context and additional request options. // // See ListEngineVersions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) ListEngineVersionsWithContext(ctx aws.Context, input *ListEngineVersionsInput, opts ...request.Option) (*ListEngineVersionsOutput, error) { req, out := c.ListEngineVersionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opListNamedQueries = "ListNamedQueries" // ListNamedQueriesRequest generates a "aws/request.Request" representing the // client's request for the ListNamedQueries operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListNamedQueries for more information on using the ListNamedQueries // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListNamedQueriesRequest method. // req, resp := client.ListNamedQueriesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNamedQueries func (c *Athena) ListNamedQueriesRequest(input *ListNamedQueriesInput) (req *request.Request, output *ListNamedQueriesOutput) { op := &request.Operation{ Name: opListNamedQueries, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListNamedQueriesInput{} } output = &ListNamedQueriesOutput{} req = c.newRequest(op, input, output) return } // ListNamedQueries API operation for Amazon Athena. // // Provides a list of available query IDs only for queries saved in the specified // workgroup. Requires that you have access to the specified workgroup. If a // workgroup is not specified, lists the saved queries for the primary workgroup. // // For code samples using the Amazon Web Services SDK for Java, see Examples // and Code Samples (http://docs.aws.amazon.com/athena/latest/ug/code-samples.html) // in the Amazon Athena User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Athena's // API operation ListNamedQueries for usage and error information. // // Returned Error Types: // * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // // * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNamedQueries func (c *Athena) ListNamedQueries(input *ListNamedQueriesInput) (*ListNamedQueriesOutput, error) { req, out := c.ListNamedQueriesRequest(input) return out, req.Send() } // ListNamedQueriesWithContext is the same as ListNamedQueries with the addition of // the ability to pass a context and additional request options. // // See ListNamedQueries for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) ListNamedQueriesWithContext(ctx aws.Context, input *ListNamedQueriesInput, opts ...request.Option) (*ListNamedQueriesOutput, error) { req, out := c.ListNamedQueriesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListNamedQueriesPages iterates over the pages of a ListNamedQueries operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListNamedQueries method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListNamedQueries operation. // pageNum := 0 // err := client.ListNamedQueriesPages(params, // func(page *athena.ListNamedQueriesOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *Athena) ListNamedQueriesPages(input *ListNamedQueriesInput, fn func(*ListNamedQueriesOutput, bool) bool) error { return c.ListNamedQueriesPagesWithContext(aws.BackgroundContext(), input, fn) } // ListNamedQueriesPagesWithContext same as ListNamedQueriesPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) ListNamedQueriesPagesWithContext(ctx aws.Context, input *ListNamedQueriesInput, fn func(*ListNamedQueriesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListNamedQueriesInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListNamedQueriesRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListNamedQueriesOutput), !p.HasNextPage()) { break } } return p.Err() } const opListPreparedStatements = "ListPreparedStatements" // ListPreparedStatementsRequest generates a "aws/request.Request" representing the // client's request for the ListPreparedStatements operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListPreparedStatements for more information on using the ListPreparedStatements // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListPreparedStatementsRequest method. // req, resp := client.ListPreparedStatementsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListPreparedStatements func (c *Athena) ListPreparedStatementsRequest(input *ListPreparedStatementsInput) (req *request.Request, output *ListPreparedStatementsOutput) { op := &request.Operation{ Name: opListPreparedStatements, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListPreparedStatementsInput{} } output = &ListPreparedStatementsOutput{} req = c.newRequest(op, input, output) return } // ListPreparedStatements API operation for Amazon Athena. // // Lists the prepared statements in the specfied workgroup. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Athena's // API operation ListPreparedStatements for usage and error information. // // Returned Error Types: // * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // // * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListPreparedStatements func (c *Athena) ListPreparedStatements(input *ListPreparedStatementsInput) (*ListPreparedStatementsOutput, error) { req, out := c.ListPreparedStatementsRequest(input) return out, req.Send() } // ListPreparedStatementsWithContext is the same as ListPreparedStatements with the addition of // the ability to pass a context and additional request options. // // See ListPreparedStatements for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) ListPreparedStatementsWithContext(ctx aws.Context, input *ListPreparedStatementsInput, opts ...request.Option) (*ListPreparedStatementsOutput, error) { req, out := c.ListPreparedStatementsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListPreparedStatementsPages iterates over the pages of a ListPreparedStatements operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListPreparedStatements method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListPreparedStatements operation. // pageNum := 0 // err := client.ListPreparedStatementsPages(params, // func(page *athena.ListPreparedStatementsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *Athena) ListPreparedStatementsPages(input *ListPreparedStatementsInput, fn func(*ListPreparedStatementsOutput, bool) bool) error { return c.ListPreparedStatementsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListPreparedStatementsPagesWithContext same as ListPreparedStatementsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) ListPreparedStatementsPagesWithContext(ctx aws.Context, input *ListPreparedStatementsInput, fn func(*ListPreparedStatementsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListPreparedStatementsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListPreparedStatementsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListPreparedStatementsOutput), !p.HasNextPage()) { break } } return p.Err() } const opListQueryExecutions = "ListQueryExecutions" // ListQueryExecutionsRequest generates a "aws/request.Request" representing the // client's request for the ListQueryExecutions operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListQueryExecutions for more information on using the ListQueryExecutions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListQueryExecutionsRequest method. // req, resp := client.ListQueryExecutionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListQueryExecutions func (c *Athena) ListQueryExecutionsRequest(input *ListQueryExecutionsInput) (req *request.Request, output *ListQueryExecutionsOutput) { op := &request.Operation{ Name: opListQueryExecutions, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListQueryExecutionsInput{} } output = &ListQueryExecutionsOutput{} req = c.newRequest(op, input, output) return } // ListQueryExecutions API operation for Amazon Athena. // // Provides a list of available query execution IDs for the queries in the specified // workgroup. If a workgroup is not specified, returns a list of query execution // IDs for the primary workgroup. Requires you to have access to the workgroup // in which the queries ran. // // For code samples using the Amazon Web Services SDK for Java, see Examples // and Code Samples (http://docs.aws.amazon.com/athena/latest/ug/code-samples.html) // in the Amazon Athena User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Athena's // API operation ListQueryExecutions for usage and error information. // // Returned Error Types: // * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // // * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListQueryExecutions func (c *Athena) ListQueryExecutions(input *ListQueryExecutionsInput) (*ListQueryExecutionsOutput, error) { req, out := c.ListQueryExecutionsRequest(input) return out, req.Send() } // ListQueryExecutionsWithContext is the same as ListQueryExecutions with the addition of // the ability to pass a context and additional request options. // // See ListQueryExecutions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) ListQueryExecutionsWithContext(ctx aws.Context, input *ListQueryExecutionsInput, opts ...request.Option) (*ListQueryExecutionsOutput, error) { req, out := c.ListQueryExecutionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListQueryExecutionsPages iterates over the pages of a ListQueryExecutions operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListQueryExecutions method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListQueryExecutions operation. // pageNum := 0 // err := client.ListQueryExecutionsPages(params, // func(page *athena.ListQueryExecutionsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *Athena) ListQueryExecutionsPages(input *ListQueryExecutionsInput, fn func(*ListQueryExecutionsOutput, bool) bool) error { return c.ListQueryExecutionsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListQueryExecutionsPagesWithContext same as ListQueryExecutionsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) ListQueryExecutionsPagesWithContext(ctx aws.Context, input *ListQueryExecutionsInput, fn func(*ListQueryExecutionsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListQueryExecutionsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListQueryExecutionsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListQueryExecutionsOutput), !p.HasNextPage()) { break } } return p.Err() } const opListTableMetadata = "ListTableMetadata" // ListTableMetadataRequest generates a "aws/request.Request" representing the // client's request for the ListTableMetadata operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListTableMetadata for more information on using the ListTableMetadata // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListTableMetadataRequest method. // req, resp := client.ListTableMetadataRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListTableMetadata func (c *Athena) ListTableMetadataRequest(input *ListTableMetadataInput) (req *request.Request, output *ListTableMetadataOutput) { op := &request.Operation{ Name: opListTableMetadata, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListTableMetadataInput{} } output = &ListTableMetadataOutput{} req = c.newRequest(op, input, output) return } // ListTableMetadata API operation for Amazon Athena. // // Lists the metadata for the tables in the specified data catalog database. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Athena's // API operation ListTableMetadata for usage and error information. // // Returned Error Types: // * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // // * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // // * MetadataException // An exception that Athena received when it called a custom metastore. Occurs // if the error is not caused by user input (InvalidRequestException) or from // the Athena platform (InternalServerException). For example, if a user-created // Lambda function is missing permissions, the Lambda 4XX exception is returned // in a MetadataException. // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListTableMetadata func (c *Athena) ListTableMetadata(input *ListTableMetadataInput) (*ListTableMetadataOutput, error) { req, out := c.ListTableMetadataRequest(input) return out, req.Send() } // ListTableMetadataWithContext is the same as ListTableMetadata with the addition of // the ability to pass a context and additional request options. // // See ListTableMetadata for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) ListTableMetadataWithContext(ctx aws.Context, input *ListTableMetadataInput, opts ...request.Option) (*ListTableMetadataOutput, error) { req, out := c.ListTableMetadataRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListTableMetadataPages iterates over the pages of a ListTableMetadata operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListTableMetadata method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListTableMetadata operation. // pageNum := 0 // err := client.ListTableMetadataPages(params, // func(page *athena.ListTableMetadataOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *Athena) ListTableMetadataPages(input *ListTableMetadataInput, fn func(*ListTableMetadataOutput, bool) bool) error { return c.ListTableMetadataPagesWithContext(aws.BackgroundContext(), input, fn) } // ListTableMetadataPagesWithContext same as ListTableMetadataPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) ListTableMetadataPagesWithContext(ctx aws.Context, input *ListTableMetadataInput, fn func(*ListTableMetadataOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListTableMetadataInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListTableMetadataRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListTableMetadataOutput), !p.HasNextPage()) { break } } return p.Err() } const opListTagsForResource = "ListTagsForResource" // ListTagsForResourceRequest generates a "aws/request.Request" representing the // client's request for the ListTagsForResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListTagsForResource for more information on using the ListTagsForResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListTagsForResourceRequest method. // req, resp := client.ListTagsForResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListTagsForResource func (c *Athena) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { op := &request.Operation{ Name: opListTagsForResource, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListTagsForResourceInput{} } output = &ListTagsForResourceOutput{} req = c.newRequest(op, input, output) return } // ListTagsForResource API operation for Amazon Athena. // // Lists the tags associated with an Athena workgroup or data catalog resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Athena's // API operation ListTagsForResource for usage and error information. // // Returned Error Types: // * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // // * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // // * ResourceNotFoundException // A resource, such as a workgroup, was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListTagsForResource func (c *Athena) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) return out, req.Send() } // ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of // the ability to pass a context and additional request options. // // See ListTagsForResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListTagsForResourcePages iterates over the pages of a ListTagsForResource operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListTagsForResource method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListTagsForResource operation. // pageNum := 0 // err := client.ListTagsForResourcePages(params, // func(page *athena.ListTagsForResourceOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *Athena) ListTagsForResourcePages(input *ListTagsForResourceInput, fn func(*ListTagsForResourceOutput, bool) bool) error { return c.ListTagsForResourcePagesWithContext(aws.BackgroundContext(), input, fn) } // ListTagsForResourcePagesWithContext same as ListTagsForResourcePages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) ListTagsForResourcePagesWithContext(ctx aws.Context, input *ListTagsForResourceInput, fn func(*ListTagsForResourceOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListTagsForResourceInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListTagsForResourceRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListTagsForResourceOutput), !p.HasNextPage()) { break } } return p.Err() } const opListWorkGroups = "ListWorkGroups" // ListWorkGroupsRequest generates a "aws/request.Request" representing the // client's request for the ListWorkGroups operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListWorkGroups for more information on using the ListWorkGroups // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListWorkGroupsRequest method. // req, resp := client.ListWorkGroupsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListWorkGroups func (c *Athena) ListWorkGroupsRequest(input *ListWorkGroupsInput) (req *request.Request, output *ListWorkGroupsOutput) { op := &request.Operation{ Name: opListWorkGroups, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListWorkGroupsInput{} } output = &ListWorkGroupsOutput{} req = c.newRequest(op, input, output) return } // ListWorkGroups API operation for Amazon Athena. // // Lists available workgroups for the account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Athena's // API operation ListWorkGroups for usage and error information. // // Returned Error Types: // * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // // * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListWorkGroups func (c *Athena) ListWorkGroups(input *ListWorkGroupsInput) (*ListWorkGroupsOutput, error) { req, out := c.ListWorkGroupsRequest(input) return out, req.Send() } // ListWorkGroupsWithContext is the same as ListWorkGroups with the addition of // the ability to pass a context and additional request options. // // See ListWorkGroups for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) ListWorkGroupsWithContext(ctx aws.Context, input *ListWorkGroupsInput, opts ...request.Option) (*ListWorkGroupsOutput, error) { req, out := c.ListWorkGroupsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListWorkGroupsPages iterates over the pages of a ListWorkGroups operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListWorkGroups method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListWorkGroups operation. // pageNum := 0 // err := client.ListWorkGroupsPages(params, // func(page *athena.ListWorkGroupsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *Athena) ListWorkGroupsPages(input *ListWorkGroupsInput, fn func(*ListWorkGroupsOutput, bool) bool) error { return c.ListWorkGroupsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListWorkGroupsPagesWithContext same as ListWorkGroupsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) ListWorkGroupsPagesWithContext(ctx aws.Context, input *ListWorkGroupsInput, fn func(*ListWorkGroupsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListWorkGroupsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListWorkGroupsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListWorkGroupsOutput), !p.HasNextPage()) { break } } return p.Err() } const opStartQueryExecution = "StartQueryExecution" // StartQueryExecutionRequest generates a "aws/request.Request" representing the // client's request for the StartQueryExecution operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See StartQueryExecution for more information on using the StartQueryExecution // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the StartQueryExecutionRequest method. // req, resp := client.StartQueryExecutionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartQueryExecution func (c *Athena) StartQueryExecutionRequest(input *StartQueryExecutionInput) (req *request.Request, output *StartQueryExecutionOutput) { op := &request.Operation{ Name: opStartQueryExecution, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &StartQueryExecutionInput{} } output = &StartQueryExecutionOutput{} req = c.newRequest(op, input, output) return } // StartQueryExecution API operation for Amazon Athena. // // Runs the SQL query statements contained in the Query. Requires you to have // access to the workgroup in which the query ran. Running queries against an // external catalog requires GetDataCatalog permission to the catalog. For code // samples using the Amazon Web Services SDK for Java, see Examples and Code // Samples (http://docs.aws.amazon.com/athena/latest/ug/code-samples.html) in // the Amazon Athena User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Athena's // API operation StartQueryExecution for usage and error information. // // Returned Error Types: // * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // // * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // // * TooManyRequestsException // Indicates that the request was throttled. // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartQueryExecution func (c *Athena) StartQueryExecution(input *StartQueryExecutionInput) (*StartQueryExecutionOutput, error) { req, out := c.StartQueryExecutionRequest(input) return out, req.Send() } // StartQueryExecutionWithContext is the same as StartQueryExecution with the addition of // the ability to pass a context and additional request options. // // See StartQueryExecution for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) StartQueryExecutionWithContext(ctx aws.Context, input *StartQueryExecutionInput, opts ...request.Option) (*StartQueryExecutionOutput, error) { req, out := c.StartQueryExecutionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opStopQueryExecution = "StopQueryExecution" // StopQueryExecutionRequest generates a "aws/request.Request" representing the // client's request for the StopQueryExecution operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See StopQueryExecution for more information on using the StopQueryExecution // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the StopQueryExecutionRequest method. // req, resp := client.StopQueryExecutionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StopQueryExecution func (c *Athena) StopQueryExecutionRequest(input *StopQueryExecutionInput) (req *request.Request, output *StopQueryExecutionOutput) { op := &request.Operation{ Name: opStopQueryExecution, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &StopQueryExecutionInput{} } output = &StopQueryExecutionOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // StopQueryExecution API operation for Amazon Athena. // // Stops a query execution. Requires you to have access to the workgroup in // which the query ran. // // For code samples using the Amazon Web Services SDK for Java, see Examples // and Code Samples (http://docs.aws.amazon.com/athena/latest/ug/code-samples.html) // in the Amazon Athena User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Athena's // API operation StopQueryExecution for usage and error information. // // Returned Error Types: // * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // // * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StopQueryExecution func (c *Athena) StopQueryExecution(input *StopQueryExecutionInput) (*StopQueryExecutionOutput, error) { req, out := c.StopQueryExecutionRequest(input) return out, req.Send() } // StopQueryExecutionWithContext is the same as StopQueryExecution with the addition of // the ability to pass a context and additional request options. // // See StopQueryExecution for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) StopQueryExecutionWithContext(ctx aws.Context, input *StopQueryExecutionInput, opts ...request.Option) (*StopQueryExecutionOutput, error) { req, out := c.StopQueryExecutionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opTagResource = "TagResource" // TagResourceRequest generates a "aws/request.Request" representing the // client's request for the TagResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See TagResource for more information on using the TagResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the TagResourceRequest method. // req, resp := client.TagResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/TagResource func (c *Athena) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { op := &request.Operation{ Name: opTagResource, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &TagResourceInput{} } output = &TagResourceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // TagResource API operation for Amazon Athena. // // Adds one or more tags to an Athena resource. A tag is a label that you assign // to a resource. In Athena, a resource can be a workgroup or data catalog. // Each tag consists of a key and an optional value, both of which you define. // For example, you can use tags to categorize Athena workgroups or data catalogs // by purpose, owner, or environment. Use a consistent set of tag keys to make // it easier to search and filter workgroups or data catalogs in your account. // For best practices, see Tagging Best Practices (https://aws.amazon.com/answers/account-management/aws-tagging-strategies/). // Tag keys can be from 1 to 128 UTF-8 Unicode characters, and tag values can // be from 0 to 256 UTF-8 Unicode characters. Tags can use letters and numbers // representable in UTF-8, and the following characters: + - = . _ : / @. Tag // keys and values are case-sensitive. Tag keys must be unique per resource. // If you specify more than one tag, separate them by commas. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Athena's // API operation TagResource for usage and error information. // // Returned Error Types: // * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // // * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // // * ResourceNotFoundException // A resource, such as a workgroup, was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/TagResource func (c *Athena) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { req, out := c.TagResourceRequest(input) return out, req.Send() } // TagResourceWithContext is the same as TagResource with the addition of // the ability to pass a context and additional request options. // // See TagResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { req, out := c.TagResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUntagResource = "UntagResource" // UntagResourceRequest generates a "aws/request.Request" representing the // client's request for the UntagResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UntagResource for more information on using the UntagResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UntagResourceRequest method. // req, resp := client.UntagResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UntagResource func (c *Athena) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { op := &request.Operation{ Name: opUntagResource, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &UntagResourceInput{} } output = &UntagResourceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // UntagResource API operation for Amazon Athena. // // Removes one or more tags from a data catalog or workgroup resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Athena's // API operation UntagResource for usage and error information. // // Returned Error Types: // * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // // * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // // * ResourceNotFoundException // A resource, such as a workgroup, was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UntagResource func (c *Athena) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { req, out := c.UntagResourceRequest(input) return out, req.Send() } // UntagResourceWithContext is the same as UntagResource with the addition of // the ability to pass a context and additional request options. // // See UntagResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { req, out := c.UntagResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateDataCatalog = "UpdateDataCatalog" // UpdateDataCatalogRequest generates a "aws/request.Request" representing the // client's request for the UpdateDataCatalog operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateDataCatalog for more information on using the UpdateDataCatalog // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateDataCatalogRequest method. // req, resp := client.UpdateDataCatalogRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateDataCatalog func (c *Athena) UpdateDataCatalogRequest(input *UpdateDataCatalogInput) (req *request.Request, output *UpdateDataCatalogOutput) { op := &request.Operation{ Name: opUpdateDataCatalog, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &UpdateDataCatalogInput{} } output = &UpdateDataCatalogOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // UpdateDataCatalog API operation for Amazon Athena. // // Updates the data catalog that has the specified name. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Athena's // API operation UpdateDataCatalog for usage and error information. // // Returned Error Types: // * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // // * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateDataCatalog func (c *Athena) UpdateDataCatalog(input *UpdateDataCatalogInput) (*UpdateDataCatalogOutput, error) { req, out := c.UpdateDataCatalogRequest(input) return out, req.Send() } // UpdateDataCatalogWithContext is the same as UpdateDataCatalog with the addition of // the ability to pass a context and additional request options. // // See UpdateDataCatalog for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) UpdateDataCatalogWithContext(ctx aws.Context, input *UpdateDataCatalogInput, opts ...request.Option) (*UpdateDataCatalogOutput, error) { req, out := c.UpdateDataCatalogRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdatePreparedStatement = "UpdatePreparedStatement" // UpdatePreparedStatementRequest generates a "aws/request.Request" representing the // client's request for the UpdatePreparedStatement operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdatePreparedStatement for more information on using the UpdatePreparedStatement // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdatePreparedStatementRequest method. // req, resp := client.UpdatePreparedStatementRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdatePreparedStatement func (c *Athena) UpdatePreparedStatementRequest(input *UpdatePreparedStatementInput) (req *request.Request, output *UpdatePreparedStatementOutput) { op := &request.Operation{ Name: opUpdatePreparedStatement, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &UpdatePreparedStatementInput{} } output = &UpdatePreparedStatementOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // UpdatePreparedStatement API operation for Amazon Athena. // // Updates a prepared statement. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Athena's // API operation UpdatePreparedStatement for usage and error information. // // Returned Error Types: // * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // // * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // // * ResourceNotFoundException // A resource, such as a workgroup, was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdatePreparedStatement func (c *Athena) UpdatePreparedStatement(input *UpdatePreparedStatementInput) (*UpdatePreparedStatementOutput, error) { req, out := c.UpdatePreparedStatementRequest(input) return out, req.Send() } // UpdatePreparedStatementWithContext is the same as UpdatePreparedStatement with the addition of // the ability to pass a context and additional request options. // // See UpdatePreparedStatement for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) UpdatePreparedStatementWithContext(ctx aws.Context, input *UpdatePreparedStatementInput, opts ...request.Option) (*UpdatePreparedStatementOutput, error) { req, out := c.UpdatePreparedStatementRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateWorkGroup = "UpdateWorkGroup" // UpdateWorkGroupRequest generates a "aws/request.Request" representing the // client's request for the UpdateWorkGroup operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateWorkGroup for more information on using the UpdateWorkGroup // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateWorkGroupRequest method. // req, resp := client.UpdateWorkGroupRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateWorkGroup func (c *Athena) UpdateWorkGroupRequest(input *UpdateWorkGroupInput) (req *request.Request, output *UpdateWorkGroupOutput) { op := &request.Operation{ Name: opUpdateWorkGroup, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &UpdateWorkGroupInput{} } output = &UpdateWorkGroupOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // UpdateWorkGroup API operation for Amazon Athena. // // Updates the workgroup with the specified name. The workgroup's name cannot // be changed. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Athena's // API operation UpdateWorkGroup for usage and error information. // // Returned Error Types: // * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // // * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateWorkGroup func (c *Athena) UpdateWorkGroup(input *UpdateWorkGroupInput) (*UpdateWorkGroupOutput, error) { req, out := c.UpdateWorkGroupRequest(input) return out, req.Send() } // UpdateWorkGroupWithContext is the same as UpdateWorkGroup with the addition of // the ability to pass a context and additional request options. // // See UpdateWorkGroup for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Athena) UpdateWorkGroupWithContext(ctx aws.Context, input *UpdateWorkGroupInput, opts ...request.Option) (*UpdateWorkGroupOutput, error) { req, out := c.UpdateWorkGroupRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } type BatchGetNamedQueryInput struct { _ struct{} `type:"structure"` // An array of query IDs. // // NamedQueryIds is a required field NamedQueryIds []*string `min:"1" type:"list" required:"true"` } // String returns the string representation func (s BatchGetNamedQueryInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s BatchGetNamedQueryInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *BatchGetNamedQueryInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "BatchGetNamedQueryInput"} if s.NamedQueryIds == nil { invalidParams.Add(request.NewErrParamRequired("NamedQueryIds")) } if s.NamedQueryIds != nil && len(s.NamedQueryIds) < 1 { invalidParams.Add(request.NewErrParamMinLen("NamedQueryIds", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetNamedQueryIds sets the NamedQueryIds field's value. func (s *BatchGetNamedQueryInput) SetNamedQueryIds(v []*string) *BatchGetNamedQueryInput { s.NamedQueryIds = v return s } type BatchGetNamedQueryOutput struct { _ struct{} `type:"structure"` // Information about the named query IDs submitted. NamedQueries []*NamedQuery `type:"list"` // Information about provided query IDs. UnprocessedNamedQueryIds []*UnprocessedNamedQueryId `type:"list"` } // String returns the string representation func (s BatchGetNamedQueryOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s BatchGetNamedQueryOutput) GoString() string { return s.String() } // SetNamedQueries sets the NamedQueries field's value. func (s *BatchGetNamedQueryOutput) SetNamedQueries(v []*NamedQuery) *BatchGetNamedQueryOutput { s.NamedQueries = v return s } // SetUnprocessedNamedQueryIds sets the UnprocessedNamedQueryIds field's value. func (s *BatchGetNamedQueryOutput) SetUnprocessedNamedQueryIds(v []*UnprocessedNamedQueryId) *BatchGetNamedQueryOutput { s.UnprocessedNamedQueryIds = v return s } type BatchGetQueryExecutionInput struct { _ struct{} `type:"structure"` // An array of query execution IDs. // // QueryExecutionIds is a required field QueryExecutionIds []*string `min:"1" type:"list" required:"true"` } // String returns the string representation func (s BatchGetQueryExecutionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s BatchGetQueryExecutionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *BatchGetQueryExecutionInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "BatchGetQueryExecutionInput"} if s.QueryExecutionIds == nil { invalidParams.Add(request.NewErrParamRequired("QueryExecutionIds")) } if s.QueryExecutionIds != nil && len(s.QueryExecutionIds) < 1 { invalidParams.Add(request.NewErrParamMinLen("QueryExecutionIds", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetQueryExecutionIds sets the QueryExecutionIds field's value. func (s *BatchGetQueryExecutionInput) SetQueryExecutionIds(v []*string) *BatchGetQueryExecutionInput { s.QueryExecutionIds = v return s } type BatchGetQueryExecutionOutput struct { _ struct{} `type:"structure"` // Information about a query execution. QueryExecutions []*QueryExecution `type:"list"` // Information about the query executions that failed to run. UnprocessedQueryExecutionIds []*UnprocessedQueryExecutionId `type:"list"` } // String returns the string representation func (s BatchGetQueryExecutionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s BatchGetQueryExecutionOutput) GoString() string { return s.String() } // SetQueryExecutions sets the QueryExecutions field's value. func (s *BatchGetQueryExecutionOutput) SetQueryExecutions(v []*QueryExecution) *BatchGetQueryExecutionOutput { s.QueryExecutions = v return s } // SetUnprocessedQueryExecutionIds sets the UnprocessedQueryExecutionIds field's value. func (s *BatchGetQueryExecutionOutput) SetUnprocessedQueryExecutionIds(v []*UnprocessedQueryExecutionId) *BatchGetQueryExecutionOutput { s.UnprocessedQueryExecutionIds = v return s } // Contains metadata for a column in a table. type Column struct { _ struct{} `type:"structure"` // Optional information about the column. Comment *string `type:"string"` // The name of the column. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // The data type of the column. Type *string `type:"string"` } // String returns the string representation func (s Column) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Column) GoString() string { return s.String() } // SetComment sets the Comment field's value. func (s *Column) SetComment(v string) *Column { s.Comment = &v return s } // SetName sets the Name field's value. func (s *Column) SetName(v string) *Column { s.Name = &v return s } // SetType sets the Type field's value. func (s *Column) SetType(v string) *Column { s.Type = &v return s } // Information about the columns in a query execution result. type ColumnInfo struct { _ struct{} `type:"structure"` // Indicates whether values in the column are case-sensitive. CaseSensitive *bool `type:"boolean"` // The catalog to which the query results belong. CatalogName *string `type:"string"` // A column label. Label *string `type:"string"` // The name of the column. // // Name is a required field Name *string `type:"string" required:"true"` // Indicates the column's nullable status. Nullable *string `type:"string" enum:"ColumnNullable"` // For DECIMAL data types, specifies the total number of digits, up to 38. For // performance reasons, we recommend up to 18 digits. Precision *int64 `type:"integer"` // For DECIMAL data types, specifies the total number of digits in the fractional // part of the value. Defaults to 0. Scale *int64 `type:"integer"` // The schema name (database name) to which the query results belong. SchemaName *string `type:"string"` // The table name for the query results. TableName *string `type:"string"` // The data type of the column. // // Type is a required field Type *string `type:"string" required:"true"` } // String returns the string representation func (s ColumnInfo) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ColumnInfo) GoString() string { return s.String() } // SetCaseSensitive sets the CaseSensitive field's value. func (s *ColumnInfo) SetCaseSensitive(v bool) *ColumnInfo { s.CaseSensitive = &v return s } // SetCatalogName sets the CatalogName field's value. func (s *ColumnInfo) SetCatalogName(v string) *ColumnInfo { s.CatalogName = &v return s } // SetLabel sets the Label field's value. func (s *ColumnInfo) SetLabel(v string) *ColumnInfo { s.Label = &v return s } // SetName sets the Name field's value. func (s *ColumnInfo) SetName(v string) *ColumnInfo { s.Name = &v return s } // SetNullable sets the Nullable field's value. func (s *ColumnInfo) SetNullable(v string) *ColumnInfo { s.Nullable = &v return s } // SetPrecision sets the Precision field's value. func (s *ColumnInfo) SetPrecision(v int64) *ColumnInfo { s.Precision = &v return s } // SetScale sets the Scale field's value. func (s *ColumnInfo) SetScale(v int64) *ColumnInfo { s.Scale = &v return s } // SetSchemaName sets the SchemaName field's value. func (s *ColumnInfo) SetSchemaName(v string) *ColumnInfo { s.SchemaName = &v return s } // SetTableName sets the TableName field's value. func (s *ColumnInfo) SetTableName(v string) *ColumnInfo { s.TableName = &v return s } // SetType sets the Type field's value. func (s *ColumnInfo) SetType(v string) *ColumnInfo { s.Type = &v return s } type CreateDataCatalogInput struct { _ struct{} `type:"structure"` // A description of the data catalog to be created. Description *string `min:"1" type:"string"` // The name of the data catalog to create. The catalog name must be unique for // the Amazon Web Services account and can use a maximum of 128 alphanumeric, // underscore, at sign, or hyphen characters. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // Specifies the Lambda function or functions to use for creating the data catalog. // This is a mapping whose values depend on the catalog type. // // * For the HIVE data catalog type, use the following syntax. The metadata-function // parameter is required. The sdk-version parameter is optional and defaults // to the currently supported version. metadata-function=lambda_arn, sdk-version=version_number // // * For the LAMBDA data catalog type, use one of the following sets of required // parameters, but not both. If you have one Lambda function that processes // metadata and another for reading the actual data, use the following syntax. // Both parameters are required. metadata-function=lambda_arn, record-function=lambda_arn // If you have a composite Lambda function that processes both metadata and // data, use the following syntax to specify your Lambda function. function=lambda_arn // // * The GLUE type takes a catalog ID parameter and is required. The catalog_id // is the account ID of the Amazon Web Services account to which the Glue // Data Catalog belongs. catalog-id=catalog_id The GLUE data catalog type // also applies to the default AwsDataCatalog that already exists in your // account, of which you can have only one and cannot modify. Queries that // specify a Glue Data Catalog other than the default AwsDataCatalog must // be run on Athena engine version 2. In Regions where Athena engine version // 2 is not available, creating new Glue data catalogs results in an INVALID_INPUT // error. Parameters map[string]*string `type:"map"` // A list of comma separated tags to add to the data catalog that is created. Tags []*Tag `type:"list"` // The type of data catalog to create: LAMBDA for a federated catalog, HIVE // for an external hive metastore, or GLUE for an Glue Data Catalog. // // Type is a required field Type *string `type:"string" required:"true" enum:"DataCatalogType"` } // String returns the string representation func (s CreateDataCatalogInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateDataCatalogInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateDataCatalogInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateDataCatalogInput"} if s.Description != nil && len(*s.Description) < 1 { invalidParams.Add(request.NewErrParamMinLen("Description", 1)) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if s.Type == nil { invalidParams.Add(request.NewErrParamRequired("Type")) } if s.Tags != nil { for i, v := range s.Tags { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDescription sets the Description field's value. func (s *CreateDataCatalogInput) SetDescription(v string) *CreateDataCatalogInput { s.Description = &v return s } // SetName sets the Name field's value. func (s *CreateDataCatalogInput) SetName(v string) *CreateDataCatalogInput { s.Name = &v return s } // SetParameters sets the Parameters field's value. func (s *CreateDataCatalogInput) SetParameters(v map[string]*string) *CreateDataCatalogInput { s.Parameters = v return s } // SetTags sets the Tags field's value. func (s *CreateDataCatalogInput) SetTags(v []*Tag) *CreateDataCatalogInput { s.Tags = v return s } // SetType sets the Type field's value. func (s *CreateDataCatalogInput) SetType(v string) *CreateDataCatalogInput { s.Type = &v return s } type CreateDataCatalogOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s CreateDataCatalogOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateDataCatalogOutput) GoString() string { return s.String() } type CreateNamedQueryInput struct { _ struct{} `type:"structure"` // A unique case-sensitive string used to ensure the request to create the query // is idempotent (executes only once). If another CreateNamedQuery request is // received, the same response is returned and another query is not created. // If a parameter has changed, for example, the QueryString, an error is returned. // // This token is listed as not required because Amazon Web Services SDKs (for // example the Amazon Web Services SDK for Java) auto-generate the token for // users. If you are not using the Amazon Web Services SDK or the Amazon Web // Services CLI, you must provide this token or the action will fail. ClientRequestToken *string `min:"32" type:"string" idempotencyToken:"true"` // The database to which the query belongs. // // Database is a required field Database *string `min:"1" type:"string" required:"true"` // The query description. Description *string `min:"1" type:"string"` // The query name. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // The contents of the query with all query statements. // // QueryString is a required field QueryString *string `min:"1" type:"string" required:"true"` // The name of the workgroup in which the named query is being created. WorkGroup *string `type:"string"` } // String returns the string representation func (s CreateNamedQueryInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateNamedQueryInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateNamedQueryInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateNamedQueryInput"} if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 32 { invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 32)) } if s.Database == nil { invalidParams.Add(request.NewErrParamRequired("Database")) } if s.Database != nil && len(*s.Database) < 1 { invalidParams.Add(request.NewErrParamMinLen("Database", 1)) } if s.Description != nil && len(*s.Description) < 1 { invalidParams.Add(request.NewErrParamMinLen("Description", 1)) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if s.QueryString == nil { invalidParams.Add(request.NewErrParamRequired("QueryString")) } if s.QueryString != nil && len(*s.QueryString) < 1 { invalidParams.Add(request.NewErrParamMinLen("QueryString", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetClientRequestToken sets the ClientRequestToken field's value. func (s *CreateNamedQueryInput) SetClientRequestToken(v string) *CreateNamedQueryInput { s.ClientRequestToken = &v return s } // SetDatabase sets the Database field's value. func (s *CreateNamedQueryInput) SetDatabase(v string) *CreateNamedQueryInput { s.Database = &v return s } // SetDescription sets the Description field's value. func (s *CreateNamedQueryInput) SetDescription(v string) *CreateNamedQueryInput { s.Description = &v return s } // SetName sets the Name field's value. func (s *CreateNamedQueryInput) SetName(v string) *CreateNamedQueryInput { s.Name = &v return s } // SetQueryString sets the QueryString field's value. func (s *CreateNamedQueryInput) SetQueryString(v string) *CreateNamedQueryInput { s.QueryString = &v return s } // SetWorkGroup sets the WorkGroup field's value. func (s *CreateNamedQueryInput) SetWorkGroup(v string) *CreateNamedQueryInput { s.WorkGroup = &v return s } type CreateNamedQueryOutput struct { _ struct{} `type:"structure"` // The unique ID of the query. NamedQueryId *string `type:"string"` } // String returns the string representation func (s CreateNamedQueryOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateNamedQueryOutput) GoString() string { return s.String() } // SetNamedQueryId sets the NamedQueryId field's value. func (s *CreateNamedQueryOutput) SetNamedQueryId(v string) *CreateNamedQueryOutput { s.NamedQueryId = &v return s } type CreatePreparedStatementInput struct { _ struct{} `type:"structure"` // The description of the prepared statement. Description *string `min:"1" type:"string"` // The query string for the prepared statement. // // QueryStatement is a required field QueryStatement *string `min:"1" type:"string" required:"true"` // The name of the prepared statement. // // StatementName is a required field StatementName *string `min:"1" type:"string" required:"true"` // The name of the workgroup to which the prepared statement belongs. // // WorkGroup is a required field WorkGroup *string `type:"string" required:"true"` } // String returns the string representation func (s CreatePreparedStatementInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreatePreparedStatementInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreatePreparedStatementInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreatePreparedStatementInput"} if s.Description != nil && len(*s.Description) < 1 { invalidParams.Add(request.NewErrParamMinLen("Description", 1)) } if s.QueryStatement == nil { invalidParams.Add(request.NewErrParamRequired("QueryStatement")) } if s.QueryStatement != nil && len(*s.QueryStatement) < 1 { invalidParams.Add(request.NewErrParamMinLen("QueryStatement", 1)) } if s.StatementName == nil { invalidParams.Add(request.NewErrParamRequired("StatementName")) } if s.StatementName != nil && len(*s.StatementName) < 1 { invalidParams.Add(request.NewErrParamMinLen("StatementName", 1)) } if s.WorkGroup == nil { invalidParams.Add(request.NewErrParamRequired("WorkGroup")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDescription sets the Description field's value. func (s *CreatePreparedStatementInput) SetDescription(v string) *CreatePreparedStatementInput { s.Description = &v return s } // SetQueryStatement sets the QueryStatement field's value. func (s *CreatePreparedStatementInput) SetQueryStatement(v string) *CreatePreparedStatementInput { s.QueryStatement = &v return s } // SetStatementName sets the StatementName field's value. func (s *CreatePreparedStatementInput) SetStatementName(v string) *CreatePreparedStatementInput { s.StatementName = &v return s } // SetWorkGroup sets the WorkGroup field's value. func (s *CreatePreparedStatementInput) SetWorkGroup(v string) *CreatePreparedStatementInput { s.WorkGroup = &v return s } type CreatePreparedStatementOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s CreatePreparedStatementOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreatePreparedStatementOutput) GoString() string { return s.String() } type CreateWorkGroupInput struct { _ struct{} `type:"structure"` // The configuration for the workgroup, which includes the location in Amazon // S3 where query results are stored, the encryption configuration, if any, // used for encrypting query results, whether the Amazon CloudWatch Metrics // are enabled for the workgroup, the limit for the amount of bytes scanned // (cutoff) per query, if it is specified, and whether workgroup's settings // (specified with EnforceWorkGroupConfiguration) in the WorkGroupConfiguration // override client-side settings. See WorkGroupConfiguration$EnforceWorkGroupConfiguration. Configuration *WorkGroupConfiguration `type:"structure"` // The workgroup description. Description *string `type:"string"` // The workgroup name. // // Name is a required field Name *string `type:"string" required:"true"` // A list of comma separated tags to add to the workgroup that is created. Tags []*Tag `type:"list"` } // String returns the string representation func (s CreateWorkGroupInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateWorkGroupInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateWorkGroupInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateWorkGroupInput"} if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Configuration != nil { if err := s.Configuration.Validate(); err != nil { invalidParams.AddNested("Configuration", err.(request.ErrInvalidParams)) } } if s.Tags != nil { for i, v := range s.Tags { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetConfiguration sets the Configuration field's value. func (s *CreateWorkGroupInput) SetConfiguration(v *WorkGroupConfiguration) *CreateWorkGroupInput { s.Configuration = v return s } // SetDescription sets the Description field's value. func (s *CreateWorkGroupInput) SetDescription(v string) *CreateWorkGroupInput { s.Description = &v return s } // SetName sets the Name field's value. func (s *CreateWorkGroupInput) SetName(v string) *CreateWorkGroupInput { s.Name = &v return s } // SetTags sets the Tags field's value. func (s *CreateWorkGroupInput) SetTags(v []*Tag) *CreateWorkGroupInput { s.Tags = v return s } type CreateWorkGroupOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s CreateWorkGroupOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateWorkGroupOutput) GoString() string { return s.String() } // Contains information about a data catalog in an Amazon Web Services account. type DataCatalog struct { _ struct{} `type:"structure"` // An optional description of the data catalog. Description *string `min:"1" type:"string"` // The name of the data catalog. The catalog name must be unique for the Amazon // Web Services account and can use a maximum of 128 alphanumeric, underscore, // at sign, or hyphen characters. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // Specifies the Lambda function or functions to use for the data catalog. This // is a mapping whose values depend on the catalog type. // // * For the HIVE data catalog type, use the following syntax. The metadata-function // parameter is required. The sdk-version parameter is optional and defaults // to the currently supported version. metadata-function=lambda_arn, sdk-version=version_number // // * For the LAMBDA data catalog type, use one of the following sets of required // parameters, but not both. If you have one Lambda function that processes // metadata and another for reading the actual data, use the following syntax. // Both parameters are required. metadata-function=lambda_arn, record-function=lambda_arn // If you have a composite Lambda function that processes both metadata and // data, use the following syntax to specify your Lambda function. function=lambda_arn // // * The GLUE type takes a catalog ID parameter and is required. The catalog_id // is the account ID of the Amazon Web Services account to which the Glue // catalog belongs. catalog-id=catalog_id The GLUE data catalog type also // applies to the default AwsDataCatalog that already exists in your account, // of which you can have only one and cannot modify. Queries that specify // a Glue Data Catalog other than the default AwsDataCatalog must be run // on Athena engine version 2. Parameters map[string]*string `type:"map"` // The type of data catalog to create: LAMBDA for a federated catalog, HIVE // for an external hive metastore, or GLUE for an Glue Data Catalog. // // Type is a required field Type *string `type:"string" required:"true" enum:"DataCatalogType"` } // String returns the string representation func (s DataCatalog) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DataCatalog) GoString() string { return s.String() } // SetDescription sets the Description field's value. func (s *DataCatalog) SetDescription(v string) *DataCatalog { s.Description = &v return s } // SetName sets the Name field's value. func (s *DataCatalog) SetName(v string) *DataCatalog { s.Name = &v return s } // SetParameters sets the Parameters field's value. func (s *DataCatalog) SetParameters(v map[string]*string) *DataCatalog { s.Parameters = v return s } // SetType sets the Type field's value. func (s *DataCatalog) SetType(v string) *DataCatalog { s.Type = &v return s } // The summary information for the data catalog, which includes its name and // type. type DataCatalogSummary struct { _ struct{} `type:"structure"` // The name of the data catalog. CatalogName *string `min:"1" type:"string"` // The data catalog type. Type *string `type:"string" enum:"DataCatalogType"` } // String returns the string representation func (s DataCatalogSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DataCatalogSummary) GoString() string { return s.String() } // SetCatalogName sets the CatalogName field's value. func (s *DataCatalogSummary) SetCatalogName(v string) *DataCatalogSummary { s.CatalogName = &v return s } // SetType sets the Type field's value. func (s *DataCatalogSummary) SetType(v string) *DataCatalogSummary { s.Type = &v return s } // Contains metadata information for a database in a data catalog. type Database struct { _ struct{} `type:"structure"` // An optional description of the database. Description *string `min:"1" type:"string"` // The name of the database. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // A set of custom key/value pairs. Parameters map[string]*string `type:"map"` } // String returns the string representation func (s Database) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Database) GoString() string { return s.String() } // SetDescription sets the Description field's value. func (s *Database) SetDescription(v string) *Database { s.Description = &v return s } // SetName sets the Name field's value. func (s *Database) SetName(v string) *Database { s.Name = &v return s } // SetParameters sets the Parameters field's value. func (s *Database) SetParameters(v map[string]*string) *Database { s.Parameters = v return s } // A piece of data (a field in the table). type Datum struct { _ struct{} `type:"structure"` // The value of the datum. VarCharValue *string `type:"string"` } // String returns the string representation func (s Datum) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Datum) GoString() string { return s.String() } // SetVarCharValue sets the VarCharValue field's value. func (s *Datum) SetVarCharValue(v string) *Datum { s.VarCharValue = &v return s } type DeleteDataCatalogInput struct { _ struct{} `type:"structure"` // The name of the data catalog to delete. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DeleteDataCatalogInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteDataCatalogInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteDataCatalogInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteDataCatalogInput"} if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetName sets the Name field's value. func (s *DeleteDataCatalogInput) SetName(v string) *DeleteDataCatalogInput { s.Name = &v return s } type DeleteDataCatalogOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteDataCatalogOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteDataCatalogOutput) GoString() string { return s.String() } type DeleteNamedQueryInput struct { _ struct{} `type:"structure"` // The unique ID of the query to delete. NamedQueryId *string `type:"string" idempotencyToken:"true"` } // String returns the string representation func (s DeleteNamedQueryInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteNamedQueryInput) GoString() string { return s.String() } // SetNamedQueryId sets the NamedQueryId field's value. func (s *DeleteNamedQueryInput) SetNamedQueryId(v string) *DeleteNamedQueryInput { s.NamedQueryId = &v return s } type DeleteNamedQueryOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteNamedQueryOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteNamedQueryOutput) GoString() string { return s.String() } type DeletePreparedStatementInput struct { _ struct{} `type:"structure"` // The name of the prepared statement to delete. // // StatementName is a required field StatementName *string `min:"1" type:"string" required:"true"` // The workgroup to which the statement to be deleted belongs. // // WorkGroup is a required field WorkGroup *string `type:"string" required:"true"` } // String returns the string representation func (s DeletePreparedStatementInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeletePreparedStatementInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeletePreparedStatementInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeletePreparedStatementInput"} if s.StatementName == nil { invalidParams.Add(request.NewErrParamRequired("StatementName")) } if s.StatementName != nil && len(*s.StatementName) < 1 { invalidParams.Add(request.NewErrParamMinLen("StatementName", 1)) } if s.WorkGroup == nil { invalidParams.Add(request.NewErrParamRequired("WorkGroup")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetStatementName sets the StatementName field's value. func (s *DeletePreparedStatementInput) SetStatementName(v string) *DeletePreparedStatementInput { s.StatementName = &v return s } // SetWorkGroup sets the WorkGroup field's value. func (s *DeletePreparedStatementInput) SetWorkGroup(v string) *DeletePreparedStatementInput { s.WorkGroup = &v return s } type DeletePreparedStatementOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeletePreparedStatementOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeletePreparedStatementOutput) GoString() string { return s.String() } type DeleteWorkGroupInput struct { _ struct{} `type:"structure"` // The option to delete the workgroup and its contents even if the workgroup // contains any named queries or query executions. RecursiveDeleteOption *bool `type:"boolean"` // The unique name of the workgroup to delete. // // WorkGroup is a required field WorkGroup *string `type:"string" required:"true"` } // String returns the string representation func (s DeleteWorkGroupInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteWorkGroupInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteWorkGroupInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteWorkGroupInput"} if s.WorkGroup == nil { invalidParams.Add(request.NewErrParamRequired("WorkGroup")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetRecursiveDeleteOption sets the RecursiveDeleteOption field's value. func (s *DeleteWorkGroupInput) SetRecursiveDeleteOption(v bool) *DeleteWorkGroupInput { s.RecursiveDeleteOption = &v return s } // SetWorkGroup sets the WorkGroup field's value. func (s *DeleteWorkGroupInput) SetWorkGroup(v string) *DeleteWorkGroupInput { s.WorkGroup = &v return s } type DeleteWorkGroupOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteWorkGroupOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteWorkGroupOutput) GoString() string { return s.String() } // If query results are encrypted in Amazon S3, indicates the encryption option // used (for example, SSE-KMS or CSE-KMS) and key information. type EncryptionConfiguration struct { _ struct{} `type:"structure"` // Indicates whether Amazon S3 server-side encryption with Amazon S3-managed // keys (SSE-S3), server-side encryption with KMS-managed keys (SSE-KMS), or // client-side encryption with KMS-managed keys (CSE-KMS) is used. // // If a query runs in a workgroup and the workgroup overrides client-side settings, // then the workgroup's setting for encryption is used. It specifies whether // query results must be encrypted, for all queries that run in this workgroup. // // EncryptionOption is a required field EncryptionOption *string `type:"string" required:"true" enum:"EncryptionOption"` // For SSE-KMS and CSE-KMS, this is the KMS key ARN or ID. KmsKey *string `type:"string"` } // String returns the string representation func (s EncryptionConfiguration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s EncryptionConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *EncryptionConfiguration) Validate() error { invalidParams := request.ErrInvalidParams{Context: "EncryptionConfiguration"} if s.EncryptionOption == nil { invalidParams.Add(request.NewErrParamRequired("EncryptionOption")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetEncryptionOption sets the EncryptionOption field's value. func (s *EncryptionConfiguration) SetEncryptionOption(v string) *EncryptionConfiguration { s.EncryptionOption = &v return s } // SetKmsKey sets the KmsKey field's value. func (s *EncryptionConfiguration) SetKmsKey(v string) *EncryptionConfiguration { s.KmsKey = &v return s } // The Athena engine version for running queries. type EngineVersion struct { _ struct{} `type:"structure"` // Read only. The engine version on which the query runs. If the user requests // a valid engine version other than Auto, the effective engine version is the // same as the engine version that the user requested. If the user requests // Auto, the effective engine version is chosen by Athena. When a request to // update the engine version is made by a CreateWorkGroup or UpdateWorkGroup // operation, the EffectiveEngineVersion field is ignored. EffectiveEngineVersion *string `min:"1" type:"string"` // The engine version requested by the user. Possible values are determined // by the output of ListEngineVersions, including Auto. The default is Auto. SelectedEngineVersion *string `min:"1" type:"string"` } // String returns the string representation func (s EngineVersion) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s EngineVersion) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *EngineVersion) Validate() error { invalidParams := request.ErrInvalidParams{Context: "EngineVersion"} if s.EffectiveEngineVersion != nil && len(*s.EffectiveEngineVersion) < 1 { invalidParams.Add(request.NewErrParamMinLen("EffectiveEngineVersion", 1)) } if s.SelectedEngineVersion != nil && len(*s.SelectedEngineVersion) < 1 { invalidParams.Add(request.NewErrParamMinLen("SelectedEngineVersion", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetEffectiveEngineVersion sets the EffectiveEngineVersion field's value. func (s *EngineVersion) SetEffectiveEngineVersion(v string) *EngineVersion { s.EffectiveEngineVersion = &v return s } // SetSelectedEngineVersion sets the SelectedEngineVersion field's value. func (s *EngineVersion) SetSelectedEngineVersion(v string) *EngineVersion { s.SelectedEngineVersion = &v return s } type GetDataCatalogInput struct { _ struct{} `type:"structure"` // The name of the data catalog to return. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s GetDataCatalogInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetDataCatalogInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetDataCatalogInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetDataCatalogInput"} if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetName sets the Name field's value. func (s *GetDataCatalogInput) SetName(v string) *GetDataCatalogInput { s.Name = &v return s } type GetDataCatalogOutput struct { _ struct{} `type:"structure"` // The data catalog returned. DataCatalog *DataCatalog `type:"structure"` } // String returns the string representation func (s GetDataCatalogOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetDataCatalogOutput) GoString() string { return s.String() } // SetDataCatalog sets the DataCatalog field's value. func (s *GetDataCatalogOutput) SetDataCatalog(v *DataCatalog) *GetDataCatalogOutput { s.DataCatalog = v return s } type GetDatabaseInput struct { _ struct{} `type:"structure"` // The name of the data catalog that contains the database to return. // // CatalogName is a required field CatalogName *string `min:"1" type:"string" required:"true"` // The name of the database to return. // // DatabaseName is a required field DatabaseName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s GetDatabaseInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetDatabaseInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetDatabaseInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetDatabaseInput"} if s.CatalogName == nil { invalidParams.Add(request.NewErrParamRequired("CatalogName")) } if s.CatalogName != nil && len(*s.CatalogName) < 1 { invalidParams.Add(request.NewErrParamMinLen("CatalogName", 1)) } if s.DatabaseName == nil { invalidParams.Add(request.NewErrParamRequired("DatabaseName")) } if s.DatabaseName != nil && len(*s.DatabaseName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DatabaseName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCatalogName sets the CatalogName field's value. func (s *GetDatabaseInput) SetCatalogName(v string) *GetDatabaseInput { s.CatalogName = &v return s } // SetDatabaseName sets the DatabaseName field's value. func (s *GetDatabaseInput) SetDatabaseName(v string) *GetDatabaseInput { s.DatabaseName = &v return s } type GetDatabaseOutput struct { _ struct{} `type:"structure"` // The database returned. Database *Database `type:"structure"` } // String returns the string representation func (s GetDatabaseOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetDatabaseOutput) GoString() string { return s.String() } // SetDatabase sets the Database field's value. func (s *GetDatabaseOutput) SetDatabase(v *Database) *GetDatabaseOutput { s.Database = v return s } type GetNamedQueryInput struct { _ struct{} `type:"structure"` // The unique ID of the query. Use ListNamedQueries to get query IDs. // // NamedQueryId is a required field NamedQueryId *string `type:"string" required:"true"` } // String returns the string representation func (s GetNamedQueryInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetNamedQueryInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetNamedQueryInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetNamedQueryInput"} if s.NamedQueryId == nil { invalidParams.Add(request.NewErrParamRequired("NamedQueryId")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetNamedQueryId sets the NamedQueryId field's value. func (s *GetNamedQueryInput) SetNamedQueryId(v string) *GetNamedQueryInput { s.NamedQueryId = &v return s } type GetNamedQueryOutput struct { _ struct{} `type:"structure"` // Information about the query. NamedQuery *NamedQuery `type:"structure"` } // String returns the string representation func (s GetNamedQueryOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetNamedQueryOutput) GoString() string { return s.String() } // SetNamedQuery sets the NamedQuery field's value. func (s *GetNamedQueryOutput) SetNamedQuery(v *NamedQuery) *GetNamedQueryOutput { s.NamedQuery = v return s } type GetPreparedStatementInput struct { _ struct{} `type:"structure"` // The name of the prepared statement to retrieve. // // StatementName is a required field StatementName *string `min:"1" type:"string" required:"true"` // The workgroup to which the statement to be retrieved belongs. // // WorkGroup is a required field WorkGroup *string `type:"string" required:"true"` } // String returns the string representation func (s GetPreparedStatementInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetPreparedStatementInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetPreparedStatementInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetPreparedStatementInput"} if s.StatementName == nil { invalidParams.Add(request.NewErrParamRequired("StatementName")) } if s.StatementName != nil && len(*s.StatementName) < 1 { invalidParams.Add(request.NewErrParamMinLen("StatementName", 1)) } if s.WorkGroup == nil { invalidParams.Add(request.NewErrParamRequired("WorkGroup")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetStatementName sets the StatementName field's value. func (s *GetPreparedStatementInput) SetStatementName(v string) *GetPreparedStatementInput { s.StatementName = &v return s } // SetWorkGroup sets the WorkGroup field's value. func (s *GetPreparedStatementInput) SetWorkGroup(v string) *GetPreparedStatementInput { s.WorkGroup = &v return s } type GetPreparedStatementOutput struct { _ struct{} `type:"structure"` // The name of the prepared statement that was retrieved. PreparedStatement *PreparedStatement `type:"structure"` } // String returns the string representation func (s GetPreparedStatementOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetPreparedStatementOutput) GoString() string { return s.String() } // SetPreparedStatement sets the PreparedStatement field's value. func (s *GetPreparedStatementOutput) SetPreparedStatement(v *PreparedStatement) *GetPreparedStatementOutput { s.PreparedStatement = v return s } type GetQueryExecutionInput struct { _ struct{} `type:"structure"` // The unique ID of the query execution. // // QueryExecutionId is a required field QueryExecutionId *string `type:"string" required:"true"` } // String returns the string representation func (s GetQueryExecutionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetQueryExecutionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetQueryExecutionInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetQueryExecutionInput"} if s.QueryExecutionId == nil { invalidParams.Add(request.NewErrParamRequired("QueryExecutionId")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetQueryExecutionId sets the QueryExecutionId field's value. func (s *GetQueryExecutionInput) SetQueryExecutionId(v string) *GetQueryExecutionInput { s.QueryExecutionId = &v return s } type GetQueryExecutionOutput struct { _ struct{} `type:"structure"` // Information about the query execution. QueryExecution *QueryExecution `type:"structure"` } // String returns the string representation func (s GetQueryExecutionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetQueryExecutionOutput) GoString() string { return s.String() } // SetQueryExecution sets the QueryExecution field's value. func (s *GetQueryExecutionOutput) SetQueryExecution(v *QueryExecution) *GetQueryExecutionOutput { s.QueryExecution = v return s } type GetQueryResultsInput struct { _ struct{} `type:"structure"` // The maximum number of results (rows) to return in this request. MaxResults *int64 `min:"1" type:"integer"` // A token generated by the Athena service that specifies where to continue // pagination if a previous request was truncated. To obtain the next set of // pages, pass in the NextToken from the response object of the previous page // call. NextToken *string `min:"1" type:"string"` // The unique ID of the query execution. // // QueryExecutionId is a required field QueryExecutionId *string `type:"string" required:"true"` } // String returns the string representation func (s GetQueryResultsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetQueryResultsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetQueryResultsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetQueryResultsInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if s.QueryExecutionId == nil { invalidParams.Add(request.NewErrParamRequired("QueryExecutionId")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxResults sets the MaxResults field's value. func (s *GetQueryResultsInput) SetMaxResults(v int64) *GetQueryResultsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *GetQueryResultsInput) SetNextToken(v string) *GetQueryResultsInput { s.NextToken = &v return s } // SetQueryExecutionId sets the QueryExecutionId field's value. func (s *GetQueryResultsInput) SetQueryExecutionId(v string) *GetQueryResultsInput { s.QueryExecutionId = &v return s } type GetQueryResultsOutput struct { _ struct{} `type:"structure"` // A token generated by the Athena service that specifies where to continue // pagination if a previous request was truncated. To obtain the next set of // pages, pass in the NextToken from the response object of the previous page // call. NextToken *string `min:"1" type:"string"` // The results of the query execution. ResultSet *ResultSet `type:"structure"` // The number of rows inserted with a CREATE TABLE AS SELECT statement. UpdateCount *int64 `type:"long"` } // String returns the string representation func (s GetQueryResultsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetQueryResultsOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *GetQueryResultsOutput) SetNextToken(v string) *GetQueryResultsOutput { s.NextToken = &v return s } // SetResultSet sets the ResultSet field's value. func (s *GetQueryResultsOutput) SetResultSet(v *ResultSet) *GetQueryResultsOutput { s.ResultSet = v return s } // SetUpdateCount sets the UpdateCount field's value. func (s *GetQueryResultsOutput) SetUpdateCount(v int64) *GetQueryResultsOutput { s.UpdateCount = &v return s } type GetTableMetadataInput struct { _ struct{} `type:"structure"` // The name of the data catalog that contains the database and table metadata // to return. // // CatalogName is a required field CatalogName *string `min:"1" type:"string" required:"true"` // The name of the database that contains the table metadata to return. // // DatabaseName is a required field DatabaseName *string `min:"1" type:"string" required:"true"` // The name of the table for which metadata is returned. // // TableName is a required field TableName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s GetTableMetadataInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetTableMetadataInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetTableMetadataInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetTableMetadataInput"} if s.CatalogName == nil { invalidParams.Add(request.NewErrParamRequired("CatalogName")) } if s.CatalogName != nil && len(*s.CatalogName) < 1 { invalidParams.Add(request.NewErrParamMinLen("CatalogName", 1)) } if s.DatabaseName == nil { invalidParams.Add(request.NewErrParamRequired("DatabaseName")) } if s.DatabaseName != nil && len(*s.DatabaseName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DatabaseName", 1)) } if s.TableName == nil { invalidParams.Add(request.NewErrParamRequired("TableName")) } if s.TableName != nil && len(*s.TableName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TableName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCatalogName sets the CatalogName field's value. func (s *GetTableMetadataInput) SetCatalogName(v string) *GetTableMetadataInput { s.CatalogName = &v return s } // SetDatabaseName sets the DatabaseName field's value. func (s *GetTableMetadataInput) SetDatabaseName(v string) *GetTableMetadataInput { s.DatabaseName = &v return s } // SetTableName sets the TableName field's value. func (s *GetTableMetadataInput) SetTableName(v string) *GetTableMetadataInput { s.TableName = &v return s } type GetTableMetadataOutput struct { _ struct{} `type:"structure"` // An object that contains table metadata. TableMetadata *TableMetadata `type:"structure"` } // String returns the string representation func (s GetTableMetadataOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetTableMetadataOutput) GoString() string { return s.String() } // SetTableMetadata sets the TableMetadata field's value. func (s *GetTableMetadataOutput) SetTableMetadata(v *TableMetadata) *GetTableMetadataOutput { s.TableMetadata = v return s } type GetWorkGroupInput struct { _ struct{} `type:"structure"` // The name of the workgroup. // // WorkGroup is a required field WorkGroup *string `type:"string" required:"true"` } // String returns the string representation func (s GetWorkGroupInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetWorkGroupInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetWorkGroupInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetWorkGroupInput"} if s.WorkGroup == nil { invalidParams.Add(request.NewErrParamRequired("WorkGroup")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetWorkGroup sets the WorkGroup field's value. func (s *GetWorkGroupInput) SetWorkGroup(v string) *GetWorkGroupInput { s.WorkGroup = &v return s } type GetWorkGroupOutput struct { _ struct{} `type:"structure"` // Information about the workgroup. WorkGroup *WorkGroup `type:"structure"` } // String returns the string representation func (s GetWorkGroupOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetWorkGroupOutput) GoString() string { return s.String() } // SetWorkGroup sets the WorkGroup field's value. func (s *GetWorkGroupOutput) SetWorkGroup(v *WorkGroup) *GetWorkGroupOutput { s.WorkGroup = v return s } // Indicates a platform issue, which may be due to a transient condition or // outage. type InternalServerException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s InternalServerException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s InternalServerException) GoString() string { return s.String() } func newErrorInternalServerException(v protocol.ResponseMetadata) error { return &InternalServerException{ RespMetadata: v, } } // Code returns the exception type name. func (s *InternalServerException) Code() string { return "InternalServerException" } // Message returns the exception's message. func (s *InternalServerException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *InternalServerException) OrigErr() error { return nil } func (s *InternalServerException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *InternalServerException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *InternalServerException) RequestID() string { return s.RespMetadata.RequestID } // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. type InvalidRequestException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` // The error code returned when the query execution failed to process, or when // the processing request for the named query failed. AthenaErrorCode *string `min:"1" type:"string"` Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s InvalidRequestException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s InvalidRequestException) GoString() string { return s.String() } func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { return &InvalidRequestException{ RespMetadata: v, } } // Code returns the exception type name. func (s *InvalidRequestException) Code() string { return "InvalidRequestException" } // Message returns the exception's message. func (s *InvalidRequestException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *InvalidRequestException) OrigErr() error { return nil } func (s *InvalidRequestException) Error() string { return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } // Status code returns the HTTP status code for the request's response error. func (s *InvalidRequestException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *InvalidRequestException) RequestID() string { return s.RespMetadata.RequestID } type ListDataCatalogsInput struct { _ struct{} `type:"structure"` // Specifies the maximum number of data catalogs to return. MaxResults *int64 `min:"2" type:"integer"` // A token generated by the Athena service that specifies where to continue // pagination if a previous request was truncated. To obtain the next set of // pages, pass in the NextToken from the response object of the previous page // call. NextToken *string `min:"1" type:"string"` } // String returns the string representation func (s ListDataCatalogsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListDataCatalogsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListDataCatalogsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListDataCatalogsInput"} if s.MaxResults != nil && *s.MaxResults < 2 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 2)) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxResults sets the MaxResults field's value. func (s *ListDataCatalogsInput) SetMaxResults(v int64) *ListDataCatalogsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListDataCatalogsInput) SetNextToken(v string) *ListDataCatalogsInput { s.NextToken = &v return s } type ListDataCatalogsOutput struct { _ struct{} `type:"structure"` // A summary list of data catalogs. DataCatalogsSummary []*DataCatalogSummary `type:"list"` // A token generated by the Athena service that specifies where to continue // pagination if a previous request was truncated. To obtain the next set of // pages, pass in the NextToken from the response object of the previous page // call. NextToken *string `min:"1" type:"string"` } // String returns the string representation func (s ListDataCatalogsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListDataCatalogsOutput) GoString() string { return s.String() } // SetDataCatalogsSummary sets the DataCatalogsSummary field's value. func (s *ListDataCatalogsOutput) SetDataCatalogsSummary(v []*DataCatalogSummary) *ListDataCatalogsOutput { s.DataCatalogsSummary = v return s } // SetNextToken sets the NextToken field's value. func (s *ListDataCatalogsOutput) SetNextToken(v string) *ListDataCatalogsOutput { s.NextToken = &v return s } type ListDatabasesInput struct { _ struct{} `type:"structure"` // The name of the data catalog that contains the databases to return. // // CatalogName is a required field CatalogName *string `min:"1" type:"string" required:"true"` // Specifies the maximum number of results to return. MaxResults *int64 `min:"1" type:"integer"` // A token generated by the Athena service that specifies where to continue // pagination if a previous request was truncated. To obtain the next set of // pages, pass in the NextToken from the response object of the previous page // call. NextToken *string `min:"1" type:"string"` } // String returns the string representation func (s ListDatabasesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListDatabasesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListDatabasesInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListDatabasesInput"} if s.CatalogName == nil { invalidParams.Add(request.NewErrParamRequired("CatalogName")) } if s.CatalogName != nil && len(*s.CatalogName) < 1 { invalidParams.Add(request.NewErrParamMinLen("CatalogName", 1)) } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCatalogName sets the CatalogName field's value. func (s *ListDatabasesInput) SetCatalogName(v string) *ListDatabasesInput { s.CatalogName = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListDatabasesInput) SetMaxResults(v int64) *ListDatabasesInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListDatabasesInput) SetNextToken(v string) *ListDatabasesInput { s.NextToken = &v return s } type ListDatabasesOutput struct { _ struct{} `type:"structure"` // A list of databases from a data catalog. DatabaseList []*Database `type:"list"` // A token generated by the Athena service that specifies where to continue // pagination if a previous request was truncated. To obtain the next set of // pages, pass in the NextToken from the response object of the previous page // call. NextToken *string `min:"1" type:"string"` } // String returns the string representation func (s ListDatabasesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListDatabasesOutput) GoString() string { return s.String() } // SetDatabaseList sets the DatabaseList field's value. func (s *ListDatabasesOutput) SetDatabaseList(v []*Database) *ListDatabasesOutput { s.DatabaseList = v return s } // SetNextToken sets the NextToken field's value. func (s *ListDatabasesOutput) SetNextToken(v string) *ListDatabasesOutput { s.NextToken = &v return s } type ListEngineVersionsInput struct { _ struct{} `type:"structure"` // The maximum number of engine versions to return in this request. MaxResults *int64 `min:"1" type:"integer"` // A token generated by the Athena service that specifies where to continue // pagination if a previous request was truncated. To obtain the next set of // pages, pass in the NextToken from the response object of the previous page // call. NextToken *string `min:"1" type:"string"` } // String returns the string representation func (s ListEngineVersionsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListEngineVersionsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListEngineVersionsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListEngineVersionsInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxResults sets the MaxResults field's value. func (s *ListEngineVersionsInput) SetMaxResults(v int64) *ListEngineVersionsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListEngineVersionsInput) SetNextToken(v string) *ListEngineVersionsInput { s.NextToken = &v return s } type ListEngineVersionsOutput struct { _ struct{} `type:"structure"` // A list of engine versions that are available to choose from. EngineVersions []*EngineVersion `type:"list"` // A token generated by the Athena service that specifies where to continue // pagination if a previous request was truncated. To obtain the next set of // pages, pass in the NextToken from the response object of the previous page // call. NextToken *string `min:"1" type:"string"` } // String returns the string representation func (s ListEngineVersionsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListEngineVersionsOutput) GoString() string { return s.String() } // SetEngineVersions sets the EngineVersions field's value. func (s *ListEngineVersionsOutput) SetEngineVersions(v []*EngineVersion) *ListEngineVersionsOutput { s.EngineVersions = v return s } // SetNextToken sets the NextToken field's value. func (s *ListEngineVersionsOutput) SetNextToken(v string) *ListEngineVersionsOutput { s.NextToken = &v return s } type ListNamedQueriesInput struct { _ struct{} `type:"structure"` // The maximum number of queries to return in this request. MaxResults *int64 `type:"integer"` // A token generated by the Athena service that specifies where to continue // pagination if a previous request was truncated. To obtain the next set of // pages, pass in the NextToken from the response object of the previous page // call. NextToken *string `min:"1" type:"string"` // The name of the workgroup from which the named queries are being returned. // If a workgroup is not specified, the saved queries for the primary workgroup // are returned. WorkGroup *string `type:"string"` } // String returns the string representation func (s ListNamedQueriesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListNamedQueriesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListNamedQueriesInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListNamedQueriesInput"} if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxResults sets the MaxResults field's value. func (s *ListNamedQueriesInput) SetMaxResults(v int64) *ListNamedQueriesInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListNamedQueriesInput) SetNextToken(v string) *ListNamedQueriesInput { s.NextToken = &v return s } // SetWorkGroup sets the WorkGroup field's value. func (s *ListNamedQueriesInput) SetWorkGroup(v string) *ListNamedQueriesInput { s.WorkGroup = &v return s } type ListNamedQueriesOutput struct { _ struct{} `type:"structure"` // The list of unique query IDs. NamedQueryIds []*string `min:"1" type:"list"` // A token generated by the Athena service that specifies where to continue // pagination if a previous request was truncated. To obtain the next set of // pages, pass in the NextToken from the response object of the previous page // call. NextToken *string `min:"1" type:"string"` } // String returns the string representation func (s ListNamedQueriesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListNamedQueriesOutput) GoString() string { return s.String() } // SetNamedQueryIds sets the NamedQueryIds field's value. func (s *ListNamedQueriesOutput) SetNamedQueryIds(v []*string) *ListNamedQueriesOutput { s.NamedQueryIds = v return s } // SetNextToken sets the NextToken field's value. func (s *ListNamedQueriesOutput) SetNextToken(v string) *ListNamedQueriesOutput { s.NextToken = &v return s } type ListPreparedStatementsInput struct { _ struct{} `type:"structure"` // The maximum number of results to return in this request. MaxResults *int64 `min:"1" type:"integer"` // A token generated by the Athena service that specifies where to continue // pagination if a previous request was truncated. To obtain the next set of // pages, pass in the NextToken from the response object of the previous page // call. NextToken *string `min:"1" type:"string"` // The workgroup to list the prepared statements for. // // WorkGroup is a required field WorkGroup *string `type:"string" required:"true"` } // String returns the string representation func (s ListPreparedStatementsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListPreparedStatementsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListPreparedStatementsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListPreparedStatementsInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if s.WorkGroup == nil { invalidParams.Add(request.NewErrParamRequired("WorkGroup")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxResults sets the MaxResults field's value. func (s *ListPreparedStatementsInput) SetMaxResults(v int64) *ListPreparedStatementsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListPreparedStatementsInput) SetNextToken(v string) *ListPreparedStatementsInput { s.NextToken = &v return s } // SetWorkGroup sets the WorkGroup field's value. func (s *ListPreparedStatementsInput) SetWorkGroup(v string) *ListPreparedStatementsInput { s.WorkGroup = &v return s } type ListPreparedStatementsOutput struct { _ struct{} `type:"structure"` // A token generated by the Athena service that specifies where to continue // pagination if a previous request was truncated. To obtain the next set of // pages, pass in the NextToken from the response object of the previous page // call. NextToken *string `min:"1" type:"string"` // The list of prepared statements for the workgroup. PreparedStatements []*PreparedStatementSummary `type:"list"` } // String returns the string representation func (s ListPreparedStatementsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListPreparedStatementsOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *ListPreparedStatementsOutput) SetNextToken(v string) *ListPreparedStatementsOutput { s.NextToken = &v return s } // SetPreparedStatements sets the PreparedStatements field's value. func (s *ListPreparedStatementsOutput) SetPreparedStatements(v []*PreparedStatementSummary) *ListPreparedStatementsOutput { s.PreparedStatements = v return s } type ListQueryExecutionsInput struct { _ struct{} `type:"structure"` // The maximum number of query executions to return in this request. MaxResults *int64 `type:"integer"` // A token generated by the Athena service that specifies where to continue // pagination if a previous request was truncated. To obtain the next set of // pages, pass in the NextToken from the response object of the previous page // call. NextToken *string `min:"1" type:"string"` // The name of the workgroup from which queries are being returned. If a workgroup // is not specified, a list of available query execution IDs for the queries // in the primary workgroup is returned. WorkGroup *string `type:"string"` } // String returns the string representation func (s ListQueryExecutionsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListQueryExecutionsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListQueryExecutionsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListQueryExecutionsInput"} if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxResults sets the MaxResults field's value. func (s *ListQueryExecutionsInput) SetMaxResults(v int64) *ListQueryExecutionsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListQueryExecutionsInput) SetNextToken(v string) *ListQueryExecutionsInput { s.NextToken = &v return s } // SetWorkGroup sets the WorkGroup field's value. func (s *ListQueryExecutionsInput) SetWorkGroup(v string) *ListQueryExecutionsInput { s.WorkGroup = &v return s } type ListQueryExecutionsOutput struct { _ struct{} `type:"structure"` // A token to be used by the next request if this request is truncated. NextToken *string `min:"1" type:"string"` // The unique IDs of each query execution as an array of strings. QueryExecutionIds []*string `min:"1" type:"list"` } // String returns the string representation func (s ListQueryExecutionsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListQueryExecutionsOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *ListQueryExecutionsOutput) SetNextToken(v string) *ListQueryExecutionsOutput { s.NextToken = &v return s } // SetQueryExecutionIds sets the QueryExecutionIds field's value. func (s *ListQueryExecutionsOutput) SetQueryExecutionIds(v []*string) *ListQueryExecutionsOutput { s.QueryExecutionIds = v return s } type ListTableMetadataInput struct { _ struct{} `type:"structure"` // The name of the data catalog for which table metadata should be returned. // // CatalogName is a required field CatalogName *string `min:"1" type:"string" required:"true"` // The name of the database for which table metadata should be returned. // // DatabaseName is a required field DatabaseName *string `min:"1" type:"string" required:"true"` // A regex filter that pattern-matches table names. If no expression is supplied, // metadata for all tables are listed. Expression *string `type:"string"` // Specifies the maximum number of results to return. MaxResults *int64 `min:"1" type:"integer"` // A token generated by the Athena service that specifies where to continue // pagination if a previous request was truncated. To obtain the next set of // pages, pass in the NextToken from the response object of the previous page // call. NextToken *string `min:"1" type:"string"` } // String returns the string representation func (s ListTableMetadataInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListTableMetadataInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListTableMetadataInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListTableMetadataInput"} if s.CatalogName == nil { invalidParams.Add(request.NewErrParamRequired("CatalogName")) } if s.CatalogName != nil && len(*s.CatalogName) < 1 { invalidParams.Add(request.NewErrParamMinLen("CatalogName", 1)) } if s.DatabaseName == nil { invalidParams.Add(request.NewErrParamRequired("DatabaseName")) } if s.DatabaseName != nil && len(*s.DatabaseName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DatabaseName", 1)) } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCatalogName sets the CatalogName field's value. func (s *ListTableMetadataInput) SetCatalogName(v string) *ListTableMetadataInput { s.CatalogName = &v return s } // SetDatabaseName sets the DatabaseName field's value. func (s *ListTableMetadataInput) SetDatabaseName(v string) *ListTableMetadataInput { s.DatabaseName = &v return s } // SetExpression sets the Expression field's value. func (s *ListTableMetadataInput) SetExpression(v string) *ListTableMetadataInput { s.Expression = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListTableMetadataInput) SetMaxResults(v int64) *ListTableMetadataInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListTableMetadataInput) SetNextToken(v string) *ListTableMetadataInput { s.NextToken = &v return s } type ListTableMetadataOutput struct { _ struct{} `type:"structure"` // A token generated by the Athena service that specifies where to continue // pagination if a previous request was truncated. To obtain the next set of // pages, pass in the NextToken from the response object of the previous page // call. NextToken *string `min:"1" type:"string"` // A list of table metadata. TableMetadataList []*TableMetadata `type:"list"` } // String returns the string representation func (s ListTableMetadataOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListTableMetadataOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *ListTableMetadataOutput) SetNextToken(v string) *ListTableMetadataOutput { s.NextToken = &v return s } // SetTableMetadataList sets the TableMetadataList field's value. func (s *ListTableMetadataOutput) SetTableMetadataList(v []*TableMetadata) *ListTableMetadataOutput { s.TableMetadataList = v return s } type ListTagsForResourceInput struct { _ struct{} `type:"structure"` // The maximum number of results to be returned per request that lists the tags // for the resource. MaxResults *int64 `min:"75" type:"integer"` // The token for the next set of results, or null if there are no additional // results for this request, where the request lists the tags for the resource // with the specified ARN. NextToken *string `min:"1" type:"string"` // Lists the tags for the resource with the specified ARN. // // ResourceARN is a required field ResourceARN *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s ListTagsForResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListTagsForResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListTagsForResourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} if s.MaxResults != nil && *s.MaxResults < 75 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 75)) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if s.ResourceARN == nil { invalidParams.Add(request.NewErrParamRequired("ResourceARN")) } if s.ResourceARN != nil && len(*s.ResourceARN) < 1 { invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxResults sets the MaxResults field's value. func (s *ListTagsForResourceInput) SetMaxResults(v int64) *ListTagsForResourceInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListTagsForResourceInput) SetNextToken(v string) *ListTagsForResourceInput { s.NextToken = &v return s } // SetResourceARN sets the ResourceARN field's value. func (s *ListTagsForResourceInput) SetResourceARN(v string) *ListTagsForResourceInput { s.ResourceARN = &v return s } type ListTagsForResourceOutput struct { _ struct{} `type:"structure"` // A token to be used by the next request if this request is truncated. NextToken *string `min:"1" type:"string"` // The list of tags associated with the specified resource. Tags []*Tag `type:"list"` } // String returns the string representation func (s ListTagsForResourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListTagsForResourceOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *ListTagsForResourceOutput) SetNextToken(v string) *ListTagsForResourceOutput { s.NextToken = &v return s } // SetTags sets the Tags field's value. func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { s.Tags = v return s } type ListWorkGroupsInput struct { _ struct{} `type:"structure"` // The maximum number of workgroups to return in this request. MaxResults *int64 `min:"1" type:"integer"` // A token generated by the Athena service that specifies where to continue // pagination if a previous request was truncated. To obtain the next set of // pages, pass in the NextToken from the response object of the previous page // call. NextToken *string `min:"1" type:"string"` } // String returns the string representation func (s ListWorkGroupsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListWorkGroupsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListWorkGroupsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListWorkGroupsInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxResults sets the MaxResults field's value. func (s *ListWorkGroupsInput) SetMaxResults(v int64) *ListWorkGroupsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListWorkGroupsInput) SetNextToken(v string) *ListWorkGroupsInput { s.NextToken = &v return s } type ListWorkGroupsOutput struct { _ struct{} `type:"structure"` // A token generated by the Athena service that specifies where to continue // pagination if a previous request was truncated. To obtain the next set of // pages, pass in the NextToken from the response object of the previous page // call. NextToken *string `min:"1" type:"string"` // A list of WorkGroupSummary objects that include the names, descriptions, // creation times, and states for each workgroup. WorkGroups []*WorkGroupSummary `type:"list"` } // String returns the string representation func (s ListWorkGroupsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListWorkGroupsOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *ListWorkGroupsOutput) SetNextToken(v string) *ListWorkGroupsOutput { s.NextToken = &v return s } // SetWorkGroups sets the WorkGroups field's value. func (s *ListWorkGroupsOutput) SetWorkGroups(v []*WorkGroupSummary) *ListWorkGroupsOutput { s.WorkGroups = v return s } // An exception that Athena received when it called a custom metastore. Occurs // if the error is not caused by user input (InvalidRequestException) or from // the Athena platform (InternalServerException). For example, if a user-created // Lambda function is missing permissions, the Lambda 4XX exception is returned // in a MetadataException. type MetadataException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s MetadataException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s MetadataException) GoString() string { return s.String() } func newErrorMetadataException(v protocol.ResponseMetadata) error { return &MetadataException{ RespMetadata: v, } } // Code returns the exception type name. func (s *MetadataException) Code() string { return "MetadataException" } // Message returns the exception's message. func (s *MetadataException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *MetadataException) OrigErr() error { return nil } func (s *MetadataException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *MetadataException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *MetadataException) RequestID() string { return s.RespMetadata.RequestID } // A query, where QueryString is the list of SQL query statements that comprise // the query. type NamedQuery struct { _ struct{} `type:"structure"` // The database to which the query belongs. // // Database is a required field Database *string `min:"1" type:"string" required:"true"` // The query description. Description *string `min:"1" type:"string"` // The query name. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // The unique identifier of the query. NamedQueryId *string `type:"string"` // The SQL query statements that comprise the query. // // QueryString is a required field QueryString *string `min:"1" type:"string" required:"true"` // The name of the workgroup that contains the named query. WorkGroup *string `type:"string"` } // String returns the string representation func (s NamedQuery) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s NamedQuery) GoString() string { return s.String() } // SetDatabase sets the Database field's value. func (s *NamedQuery) SetDatabase(v string) *NamedQuery { s.Database = &v return s } // SetDescription sets the Description field's value. func (s *NamedQuery) SetDescription(v string) *NamedQuery { s.Description = &v return s } // SetName sets the Name field's value. func (s *NamedQuery) SetName(v string) *NamedQuery { s.Name = &v return s } // SetNamedQueryId sets the NamedQueryId field's value. func (s *NamedQuery) SetNamedQueryId(v string) *NamedQuery { s.NamedQueryId = &v return s } // SetQueryString sets the QueryString field's value. func (s *NamedQuery) SetQueryString(v string) *NamedQuery { s.QueryString = &v return s } // SetWorkGroup sets the WorkGroup field's value. func (s *NamedQuery) SetWorkGroup(v string) *NamedQuery { s.WorkGroup = &v return s } // A prepared SQL statement for use with Athena. type PreparedStatement struct { _ struct{} `type:"structure"` // The description of the prepared statement. Description *string `min:"1" type:"string"` // The last modified time of the prepared statement. LastModifiedTime *time.Time `type:"timestamp"` // The query string for the prepared statement. QueryStatement *string `min:"1" type:"string"` // The name of the prepared statement. StatementName *string `min:"1" type:"string"` // The name of the workgroup to which the prepared statement belongs. WorkGroupName *string `type:"string"` } // String returns the string representation func (s PreparedStatement) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s PreparedStatement) GoString() string { return s.String() } // SetDescription sets the Description field's value. func (s *PreparedStatement) SetDescription(v string) *PreparedStatement { s.Description = &v return s } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *PreparedStatement) SetLastModifiedTime(v time.Time) *PreparedStatement { s.LastModifiedTime = &v return s } // SetQueryStatement sets the QueryStatement field's value. func (s *PreparedStatement) SetQueryStatement(v string) *PreparedStatement { s.QueryStatement = &v return s } // SetStatementName sets the StatementName field's value. func (s *PreparedStatement) SetStatementName(v string) *PreparedStatement { s.StatementName = &v return s } // SetWorkGroupName sets the WorkGroupName field's value. func (s *PreparedStatement) SetWorkGroupName(v string) *PreparedStatement { s.WorkGroupName = &v return s } // The name and last modified time of the prepared statement. type PreparedStatementSummary struct { _ struct{} `type:"structure"` // The last modified time of the prepared statement. LastModifiedTime *time.Time `type:"timestamp"` // The name of the prepared statement. StatementName *string `min:"1" type:"string"` } // String returns the string representation func (s PreparedStatementSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s PreparedStatementSummary) GoString() string { return s.String() } // SetLastModifiedTime sets the LastModifiedTime field's value. func (s *PreparedStatementSummary) SetLastModifiedTime(v time.Time) *PreparedStatementSummary { s.LastModifiedTime = &v return s } // SetStatementName sets the StatementName field's value. func (s *PreparedStatementSummary) SetStatementName(v string) *PreparedStatementSummary { s.StatementName = &v return s } // Information about a single instance of a query execution. type QueryExecution struct { _ struct{} `type:"structure"` // The engine version that executed the query. EngineVersion *EngineVersion `type:"structure"` // The SQL query statements which the query execution ran. Query *string `min:"1" type:"string"` // The database in which the query execution occurred. QueryExecutionContext *QueryExecutionContext `type:"structure"` // The unique identifier for each query execution. QueryExecutionId *string `type:"string"` // The location in Amazon S3 where query results were stored and the encryption // option, if any, used for query results. These are known as "client-side settings". // If workgroup settings override client-side settings, then the query uses // the location for the query results and the encryption configuration that // are specified for the workgroup. ResultConfiguration *ResultConfiguration `type:"structure"` // The type of query statement that was run. DDL indicates DDL query statements. // DML indicates DML (Data Manipulation Language) query statements, such as // CREATE TABLE AS SELECT. UTILITY indicates query statements other than DDL // and DML, such as SHOW CREATE TABLE, or DESCRIBE TABLE. StatementType *string `type:"string" enum:"StatementType"` // Query execution statistics, such as the amount of data scanned, the amount // of time that the query took to process, and the type of statement that was // run. Statistics *QueryExecutionStatistics `type:"structure"` // The completion date, current state, submission time, and state change reason // (if applicable) for the query execution. Status *QueryExecutionStatus `type:"structure"` // The name of the workgroup in which the query ran. WorkGroup *string `type:"string"` } // String returns the string representation func (s QueryExecution) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s QueryExecution) GoString() string { return s.String() } // SetEngineVersion sets the EngineVersion field's value. func (s *QueryExecution) SetEngineVersion(v *EngineVersion) *QueryExecution { s.EngineVersion = v return s } // SetQuery sets the Query field's value. func (s *QueryExecution) SetQuery(v string) *QueryExecution { s.Query = &v return s } // SetQueryExecutionContext sets the QueryExecutionContext field's value. func (s *QueryExecution) SetQueryExecutionContext(v *QueryExecutionContext) *QueryExecution { s.QueryExecutionContext = v return s } // SetQueryExecutionId sets the QueryExecutionId field's value. func (s *QueryExecution) SetQueryExecutionId(v string) *QueryExecution { s.QueryExecutionId = &v return s } // SetResultConfiguration sets the ResultConfiguration field's value. func (s *QueryExecution) SetResultConfiguration(v *ResultConfiguration) *QueryExecution { s.ResultConfiguration = v return s } // SetStatementType sets the StatementType field's value. func (s *QueryExecution) SetStatementType(v string) *QueryExecution { s.StatementType = &v return s } // SetStatistics sets the Statistics field's value. func (s *QueryExecution) SetStatistics(v *QueryExecutionStatistics) *QueryExecution { s.Statistics = v return s } // SetStatus sets the Status field's value. func (s *QueryExecution) SetStatus(v *QueryExecutionStatus) *QueryExecution { s.Status = v return s } // SetWorkGroup sets the WorkGroup field's value. func (s *QueryExecution) SetWorkGroup(v string) *QueryExecution { s.WorkGroup = &v return s } // The database and data catalog context in which the query execution occurs. type QueryExecutionContext struct { _ struct{} `type:"structure"` // The name of the data catalog used in the query execution. Catalog *string `min:"1" type:"string"` // The name of the database used in the query execution. The database must exist // in the catalog. Database *string `min:"1" type:"string"` } // String returns the string representation func (s QueryExecutionContext) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s QueryExecutionContext) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *QueryExecutionContext) Validate() error { invalidParams := request.ErrInvalidParams{Context: "QueryExecutionContext"} if s.Catalog != nil && len(*s.Catalog) < 1 { invalidParams.Add(request.NewErrParamMinLen("Catalog", 1)) } if s.Database != nil && len(*s.Database) < 1 { invalidParams.Add(request.NewErrParamMinLen("Database", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCatalog sets the Catalog field's value. func (s *QueryExecutionContext) SetCatalog(v string) *QueryExecutionContext { s.Catalog = &v return s } // SetDatabase sets the Database field's value. func (s *QueryExecutionContext) SetDatabase(v string) *QueryExecutionContext { s.Database = &v return s } // The amount of data scanned during the query execution and the amount of time // that it took to execute, and the type of statement that was run. type QueryExecutionStatistics struct { _ struct{} `type:"structure"` // The location and file name of a data manifest file. The manifest file is // saved to the Athena query results location in Amazon S3. The manifest file // tracks files that the query wrote to Amazon S3. If the query fails, the manifest // file also tracks files that the query intended to write. The manifest is // useful for identifying orphaned files resulting from a failed query. For // more information, see Working with Query Results, Output Files, and Query // History (https://docs.aws.amazon.com/athena/latest/ug/querying.html) in the // Amazon Athena User Guide. DataManifestLocation *string `type:"string"` // The number of bytes in the data that was queried. DataScannedInBytes *int64 `type:"long"` // The number of milliseconds that the query took to execute. EngineExecutionTimeInMillis *int64 `type:"long"` // The number of milliseconds that Athena took to plan the query processing // flow. This includes the time spent retrieving table partitions from the data // source. Note that because the query engine performs the query planning, query // planning time is a subset of engine processing time. QueryPlanningTimeInMillis *int64 `type:"long"` // The number of milliseconds that the query was in your query queue waiting // for resources. Note that if transient errors occur, Athena might automatically // add the query back to the queue. QueryQueueTimeInMillis *int64 `type:"long"` // The number of milliseconds that Athena took to finalize and publish the query // results after the query engine finished running the query. ServiceProcessingTimeInMillis *int64 `type:"long"` // The number of milliseconds that Athena took to run the query. TotalExecutionTimeInMillis *int64 `type:"long"` } // String returns the string representation func (s QueryExecutionStatistics) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s QueryExecutionStatistics) GoString() string { return s.String() } // SetDataManifestLocation sets the DataManifestLocation field's value. func (s *QueryExecutionStatistics) SetDataManifestLocation(v string) *QueryExecutionStatistics { s.DataManifestLocation = &v return s } // SetDataScannedInBytes sets the DataScannedInBytes field's value. func (s *QueryExecutionStatistics) SetDataScannedInBytes(v int64) *QueryExecutionStatistics { s.DataScannedInBytes = &v return s } // SetEngineExecutionTimeInMillis sets the EngineExecutionTimeInMillis field's value. func (s *QueryExecutionStatistics) SetEngineExecutionTimeInMillis(v int64) *QueryExecutionStatistics { s.EngineExecutionTimeInMillis = &v return s } // SetQueryPlanningTimeInMillis sets the QueryPlanningTimeInMillis field's value. func (s *QueryExecutionStatistics) SetQueryPlanningTimeInMillis(v int64) *QueryExecutionStatistics { s.QueryPlanningTimeInMillis = &v return s } // SetQueryQueueTimeInMillis sets the QueryQueueTimeInMillis field's value. func (s *QueryExecutionStatistics) SetQueryQueueTimeInMillis(v int64) *QueryExecutionStatistics { s.QueryQueueTimeInMillis = &v return s } // SetServiceProcessingTimeInMillis sets the ServiceProcessingTimeInMillis field's value. func (s *QueryExecutionStatistics) SetServiceProcessingTimeInMillis(v int64) *QueryExecutionStatistics { s.ServiceProcessingTimeInMillis = &v return s } // SetTotalExecutionTimeInMillis sets the TotalExecutionTimeInMillis field's value. func (s *QueryExecutionStatistics) SetTotalExecutionTimeInMillis(v int64) *QueryExecutionStatistics { s.TotalExecutionTimeInMillis = &v return s } // The completion date, current state, submission time, and state change reason // (if applicable) for the query execution. type QueryExecutionStatus struct { _ struct{} `type:"structure"` // The date and time that the query completed. CompletionDateTime *time.Time `type:"timestamp"` // The state of query execution. QUEUED indicates that the query has been submitted // to the service, and Athena will execute the query as soon as resources are // available. RUNNING indicates that the query is in execution phase. SUCCEEDED // indicates that the query completed without errors. FAILED indicates that // the query experienced an error and did not complete processing. CANCELLED // indicates that a user input interrupted query execution. // // Athena automatically retries your queries in cases of certain transient errors. // As a result, you may see the query state transition from RUNNING or FAILED // to QUEUED. State *string `type:"string" enum:"QueryExecutionState"` // Further detail about the status of the query. StateChangeReason *string `type:"string"` // The date and time that the query was submitted. SubmissionDateTime *time.Time `type:"timestamp"` } // String returns the string representation func (s QueryExecutionStatus) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s QueryExecutionStatus) GoString() string { return s.String() } // SetCompletionDateTime sets the CompletionDateTime field's value. func (s *QueryExecutionStatus) SetCompletionDateTime(v time.Time) *QueryExecutionStatus { s.CompletionDateTime = &v return s } // SetState sets the State field's value. func (s *QueryExecutionStatus) SetState(v string) *QueryExecutionStatus { s.State = &v return s } // SetStateChangeReason sets the StateChangeReason field's value. func (s *QueryExecutionStatus) SetStateChangeReason(v string) *QueryExecutionStatus { s.StateChangeReason = &v return s } // SetSubmissionDateTime sets the SubmissionDateTime field's value. func (s *QueryExecutionStatus) SetSubmissionDateTime(v time.Time) *QueryExecutionStatus { s.SubmissionDateTime = &v return s } // A resource, such as a workgroup, was not found. type ResourceNotFoundException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` ResourceName *string `min:"1" type:"string"` } // String returns the string representation func (s ResourceNotFoundException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ResourceNotFoundException) GoString() string { return s.String() } func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { return &ResourceNotFoundException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ResourceNotFoundException) Code() string { return "ResourceNotFoundException" } // Message returns the exception's message. func (s *ResourceNotFoundException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ResourceNotFoundException) OrigErr() error { return nil } func (s *ResourceNotFoundException) Error() string { return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } // Status code returns the HTTP status code for the request's response error. func (s *ResourceNotFoundException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ResourceNotFoundException) RequestID() string { return s.RespMetadata.RequestID } // The location in Amazon S3 where query results are stored and the encryption // option, if any, used for query results. These are known as "client-side settings". // If workgroup settings override client-side settings, then the query uses // the workgroup settings. type ResultConfiguration struct { _ struct{} `type:"structure"` // If query results are encrypted in Amazon S3, indicates the encryption option // used (for example, SSE-KMS or CSE-KMS) and key information. This is a client-side // setting. If workgroup settings override client-side settings, then the query // uses the encryption configuration that is specified for the workgroup, and // also uses the location for storing query results specified in the workgroup. // See WorkGroupConfiguration$EnforceWorkGroupConfiguration and Workgroup Settings // Override Client-Side Settings (https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html). EncryptionConfiguration *EncryptionConfiguration `type:"structure"` // The location in Amazon S3 where your query results are stored, such as s3://path/to/query/bucket/. // To run the query, you must specify the query results location using one of // the ways: either for individual queries using either this setting (client-side), // or in the workgroup, using WorkGroupConfiguration. If none of them is set, // Athena issues an error that no output location is provided. For more information, // see Query Results (https://docs.aws.amazon.com/athena/latest/ug/querying.html). // If workgroup settings override client-side settings, then the query uses // the settings specified for the workgroup. See WorkGroupConfiguration$EnforceWorkGroupConfiguration. OutputLocation *string `type:"string"` } // String returns the string representation func (s ResultConfiguration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ResultConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ResultConfiguration) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ResultConfiguration"} if s.EncryptionConfiguration != nil { if err := s.EncryptionConfiguration.Validate(); err != nil { invalidParams.AddNested("EncryptionConfiguration", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetEncryptionConfiguration sets the EncryptionConfiguration field's value. func (s *ResultConfiguration) SetEncryptionConfiguration(v *EncryptionConfiguration) *ResultConfiguration { s.EncryptionConfiguration = v return s } // SetOutputLocation sets the OutputLocation field's value. func (s *ResultConfiguration) SetOutputLocation(v string) *ResultConfiguration { s.OutputLocation = &v return s } // The information about the updates in the query results, such as output location // and encryption configuration for the query results. type ResultConfigurationUpdates struct { _ struct{} `type:"structure"` // The encryption configuration for the query results. EncryptionConfiguration *EncryptionConfiguration `type:"structure"` // The location in Amazon S3 where your query results are stored, such as s3://path/to/query/bucket/. // For more information, see Query Results (https://docs.aws.amazon.com/athena/latest/ug/querying.html) // If workgroup settings override client-side settings, then the query uses // the location for the query results and the encryption configuration that // are specified for the workgroup. The "workgroup settings override" is specified // in EnforceWorkGroupConfiguration (true/false) in the WorkGroupConfiguration. // See WorkGroupConfiguration$EnforceWorkGroupConfiguration. OutputLocation *string `type:"string"` // If set to "true", indicates that the previously-specified encryption configuration // (also known as the client-side setting) for queries in this workgroup should // be ignored and set to null. If set to "false" or not set, and a value is // present in the EncryptionConfiguration in ResultConfigurationUpdates (the // client-side setting), the EncryptionConfiguration in the workgroup's ResultConfiguration // will be updated with the new value. For more information, see Workgroup Settings // Override Client-Side Settings (https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html). RemoveEncryptionConfiguration *bool `type:"boolean"` // If set to "true", indicates that the previously-specified query results location // (also known as a client-side setting) for queries in this workgroup should // be ignored and set to null. If set to "false" or not set, and a value is // present in the OutputLocation in ResultConfigurationUpdates (the client-side // setting), the OutputLocation in the workgroup's ResultConfiguration will // be updated with the new value. For more information, see Workgroup Settings // Override Client-Side Settings (https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html). RemoveOutputLocation *bool `type:"boolean"` } // String returns the string representation func (s ResultConfigurationUpdates) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ResultConfigurationUpdates) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ResultConfigurationUpdates) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ResultConfigurationUpdates"} if s.EncryptionConfiguration != nil { if err := s.EncryptionConfiguration.Validate(); err != nil { invalidParams.AddNested("EncryptionConfiguration", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetEncryptionConfiguration sets the EncryptionConfiguration field's value. func (s *ResultConfigurationUpdates) SetEncryptionConfiguration(v *EncryptionConfiguration) *ResultConfigurationUpdates { s.EncryptionConfiguration = v return s } // SetOutputLocation sets the OutputLocation field's value. func (s *ResultConfigurationUpdates) SetOutputLocation(v string) *ResultConfigurationUpdates { s.OutputLocation = &v return s } // SetRemoveEncryptionConfiguration sets the RemoveEncryptionConfiguration field's value. func (s *ResultConfigurationUpdates) SetRemoveEncryptionConfiguration(v bool) *ResultConfigurationUpdates { s.RemoveEncryptionConfiguration = &v return s } // SetRemoveOutputLocation sets the RemoveOutputLocation field's value. func (s *ResultConfigurationUpdates) SetRemoveOutputLocation(v bool) *ResultConfigurationUpdates { s.RemoveOutputLocation = &v return s } // The metadata and rows that comprise a query result set. The metadata describes // the column structure and data types. To return a ResultSet object, use GetQueryResults. type ResultSet struct { _ struct{} `type:"structure"` // The metadata that describes the column structure and data types of a table // of query results. ResultSetMetadata *ResultSetMetadata `type:"structure"` // The rows in the table. Rows []*Row `type:"list"` } // String returns the string representation func (s ResultSet) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ResultSet) GoString() string { return s.String() } // SetResultSetMetadata sets the ResultSetMetadata field's value. func (s *ResultSet) SetResultSetMetadata(v *ResultSetMetadata) *ResultSet { s.ResultSetMetadata = v return s } // SetRows sets the Rows field's value. func (s *ResultSet) SetRows(v []*Row) *ResultSet { s.Rows = v return s } // The metadata that describes the column structure and data types of a table // of query results. To return a ResultSetMetadata object, use GetQueryResults. type ResultSetMetadata struct { _ struct{} `type:"structure"` // Information about the columns returned in a query result metadata. ColumnInfo []*ColumnInfo `type:"list"` } // String returns the string representation func (s ResultSetMetadata) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ResultSetMetadata) GoString() string { return s.String() } // SetColumnInfo sets the ColumnInfo field's value. func (s *ResultSetMetadata) SetColumnInfo(v []*ColumnInfo) *ResultSetMetadata { s.ColumnInfo = v return s } // The rows that comprise a query result table. type Row struct { _ struct{} `type:"structure"` // The data that populates a row in a query result table. Data []*Datum `type:"list"` } // String returns the string representation func (s Row) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Row) GoString() string { return s.String() } // SetData sets the Data field's value. func (s *Row) SetData(v []*Datum) *Row { s.Data = v return s } type StartQueryExecutionInput struct { _ struct{} `type:"structure"` // A unique case-sensitive string used to ensure the request to create the query // is idempotent (executes only once). If another StartQueryExecution request // is received, the same response is returned and another query is not created. // If a parameter has changed, for example, the QueryString, an error is returned. // // This token is listed as not required because Amazon Web Services SDKs (for // example the Amazon Web Services SDK for Java) auto-generate the token for // users. If you are not using the Amazon Web Services SDK or the Amazon Web // Services CLI, you must provide this token or the action will fail. ClientRequestToken *string `min:"32" type:"string" idempotencyToken:"true"` // The database within which the query executes. QueryExecutionContext *QueryExecutionContext `type:"structure"` // The SQL query statements to be executed. // // QueryString is a required field QueryString *string `min:"1" type:"string" required:"true"` // Specifies information about where and how to save the results of the query // execution. If the query runs in a workgroup, then workgroup's settings may // override query settings. This affects the query results location. The workgroup // settings override is specified in EnforceWorkGroupConfiguration (true/false) // in the WorkGroupConfiguration. See WorkGroupConfiguration$EnforceWorkGroupConfiguration. ResultConfiguration *ResultConfiguration `type:"structure"` // The name of the workgroup in which the query is being started. WorkGroup *string `type:"string"` } // String returns the string representation func (s StartQueryExecutionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StartQueryExecutionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *StartQueryExecutionInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "StartQueryExecutionInput"} if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 32 { invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 32)) } if s.QueryString == nil { invalidParams.Add(request.NewErrParamRequired("QueryString")) } if s.QueryString != nil && len(*s.QueryString) < 1 { invalidParams.Add(request.NewErrParamMinLen("QueryString", 1)) } if s.QueryExecutionContext != nil { if err := s.QueryExecutionContext.Validate(); err != nil { invalidParams.AddNested("QueryExecutionContext", err.(request.ErrInvalidParams)) } } if s.ResultConfiguration != nil { if err := s.ResultConfiguration.Validate(); err != nil { invalidParams.AddNested("ResultConfiguration", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetClientRequestToken sets the ClientRequestToken field's value. func (s *StartQueryExecutionInput) SetClientRequestToken(v string) *StartQueryExecutionInput { s.ClientRequestToken = &v return s } // SetQueryExecutionContext sets the QueryExecutionContext field's value. func (s *StartQueryExecutionInput) SetQueryExecutionContext(v *QueryExecutionContext) *StartQueryExecutionInput { s.QueryExecutionContext = v return s } // SetQueryString sets the QueryString field's value. func (s *StartQueryExecutionInput) SetQueryString(v string) *StartQueryExecutionInput { s.QueryString = &v return s } // SetResultConfiguration sets the ResultConfiguration field's value. func (s *StartQueryExecutionInput) SetResultConfiguration(v *ResultConfiguration) *StartQueryExecutionInput { s.ResultConfiguration = v return s } // SetWorkGroup sets the WorkGroup field's value. func (s *StartQueryExecutionInput) SetWorkGroup(v string) *StartQueryExecutionInput { s.WorkGroup = &v return s } type StartQueryExecutionOutput struct { _ struct{} `type:"structure"` // The unique ID of the query that ran as a result of this request. QueryExecutionId *string `type:"string"` } // String returns the string representation func (s StartQueryExecutionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StartQueryExecutionOutput) GoString() string { return s.String() } // SetQueryExecutionId sets the QueryExecutionId field's value. func (s *StartQueryExecutionOutput) SetQueryExecutionId(v string) *StartQueryExecutionOutput { s.QueryExecutionId = &v return s } type StopQueryExecutionInput struct { _ struct{} `type:"structure"` // The unique ID of the query execution to stop. QueryExecutionId *string `type:"string" idempotencyToken:"true"` } // String returns the string representation func (s StopQueryExecutionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StopQueryExecutionInput) GoString() string { return s.String() } // SetQueryExecutionId sets the QueryExecutionId field's value. func (s *StopQueryExecutionInput) SetQueryExecutionId(v string) *StopQueryExecutionInput { s.QueryExecutionId = &v return s } type StopQueryExecutionOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s StopQueryExecutionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StopQueryExecutionOutput) GoString() string { return s.String() } // Contains metadata for a table. type TableMetadata struct { _ struct{} `type:"structure"` // A list of the columns in the table. Columns []*Column `type:"list"` // The time that the table was created. CreateTime *time.Time `type:"timestamp"` // The last time the table was accessed. LastAccessTime *time.Time `type:"timestamp"` // The name of the table. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // A set of custom key/value pairs for table properties. Parameters map[string]*string `type:"map"` // A list of the partition keys in the table. PartitionKeys []*Column `type:"list"` // The type of table. In Athena, only EXTERNAL_TABLE is supported. TableType *string `type:"string"` } // String returns the string representation func (s TableMetadata) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TableMetadata) GoString() string { return s.String() } // SetColumns sets the Columns field's value. func (s *TableMetadata) SetColumns(v []*Column) *TableMetadata { s.Columns = v return s } // SetCreateTime sets the CreateTime field's value. func (s *TableMetadata) SetCreateTime(v time.Time) *TableMetadata { s.CreateTime = &v return s } // SetLastAccessTime sets the LastAccessTime field's value. func (s *TableMetadata) SetLastAccessTime(v time.Time) *TableMetadata { s.LastAccessTime = &v return s } // SetName sets the Name field's value. func (s *TableMetadata) SetName(v string) *TableMetadata { s.Name = &v return s } // SetParameters sets the Parameters field's value. func (s *TableMetadata) SetParameters(v map[string]*string) *TableMetadata { s.Parameters = v return s } // SetPartitionKeys sets the PartitionKeys field's value. func (s *TableMetadata) SetPartitionKeys(v []*Column) *TableMetadata { s.PartitionKeys = v return s } // SetTableType sets the TableType field's value. func (s *TableMetadata) SetTableType(v string) *TableMetadata { s.TableType = &v return s } // A label that you assign to a resource. In Athena, a resource can be a workgroup // or data catalog. Each tag consists of a key and an optional value, both of // which you define. For example, you can use tags to categorize Athena workgroups // or data catalogs by purpose, owner, or environment. Use a consistent set // of tag keys to make it easier to search and filter workgroups or data catalogs // in your account. For best practices, see Tagging Best Practices (https://aws.amazon.com/answers/account-management/aws-tagging-strategies/). // Tag keys can be from 1 to 128 UTF-8 Unicode characters, and tag values can // be from 0 to 256 UTF-8 Unicode characters. Tags can use letters and numbers // representable in UTF-8, and the following characters: + - = . _ : / @. Tag // keys and values are case-sensitive. Tag keys must be unique per resource. // If you specify more than one tag, separate them by commas. type Tag struct { _ struct{} `type:"structure"` // A tag key. The tag key length is from 1 to 128 Unicode characters in UTF-8. // You can use letters and numbers representable in UTF-8, and the following // characters: + - = . _ : / @. Tag keys are case-sensitive and must be unique // per resource. Key *string `min:"1" type:"string"` // A tag value. The tag value length is from 0 to 256 Unicode characters in // UTF-8. You can use letters and numbers representable in UTF-8, and the following // characters: + - = . _ : / @. Tag values are case-sensitive. Value *string `type:"string"` } // String returns the string representation func (s Tag) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Tag) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *Tag) Validate() error { invalidParams := request.ErrInvalidParams{Context: "Tag"} if s.Key != nil && len(*s.Key) < 1 { invalidParams.Add(request.NewErrParamMinLen("Key", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetKey sets the Key field's value. func (s *Tag) SetKey(v string) *Tag { s.Key = &v return s } // SetValue sets the Value field's value. func (s *Tag) SetValue(v string) *Tag { s.Value = &v return s } type TagResourceInput struct { _ struct{} `type:"structure"` // Specifies the ARN of the Athena resource (workgroup or data catalog) to which // tags are to be added. // // ResourceARN is a required field ResourceARN *string `min:"1" type:"string" required:"true"` // A collection of one or more tags, separated by commas, to be added to an // Athena workgroup or data catalog resource. // // Tags is a required field Tags []*Tag `type:"list" required:"true"` } // String returns the string representation func (s TagResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TagResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *TagResourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} if s.ResourceARN == nil { invalidParams.Add(request.NewErrParamRequired("ResourceARN")) } if s.ResourceARN != nil && len(*s.ResourceARN) < 1 { invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1)) } if s.Tags == nil { invalidParams.Add(request.NewErrParamRequired("Tags")) } if s.Tags != nil { for i, v := range s.Tags { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetResourceARN sets the ResourceARN field's value. func (s *TagResourceInput) SetResourceARN(v string) *TagResourceInput { s.ResourceARN = &v return s } // SetTags sets the Tags field's value. func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput { s.Tags = v return s } type TagResourceOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s TagResourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TagResourceOutput) GoString() string { return s.String() } // Indicates that the request was throttled. type TooManyRequestsException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` // The reason for the query throttling, for example, when it exceeds the concurrent // query limit. Reason *string `type:"string" enum:"ThrottleReason"` } // String returns the string representation func (s TooManyRequestsException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TooManyRequestsException) GoString() string { return s.String() } func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error { return &TooManyRequestsException{ RespMetadata: v, } } // Code returns the exception type name. func (s *TooManyRequestsException) Code() string { return "TooManyRequestsException" } // Message returns the exception's message. func (s *TooManyRequestsException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *TooManyRequestsException) OrigErr() error { return nil } func (s *TooManyRequestsException) Error() string { return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } // Status code returns the HTTP status code for the request's response error. func (s *TooManyRequestsException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *TooManyRequestsException) RequestID() string { return s.RespMetadata.RequestID } // Information about a named query ID that could not be processed. type UnprocessedNamedQueryId struct { _ struct{} `type:"structure"` // The error code returned when the processing request for the named query failed, // if applicable. ErrorCode *string `min:"1" type:"string"` // The error message returned when the processing request for the named query // failed, if applicable. ErrorMessage *string `type:"string"` // The unique identifier of the named query. NamedQueryId *string `type:"string"` } // String returns the string representation func (s UnprocessedNamedQueryId) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UnprocessedNamedQueryId) GoString() string { return s.String() } // SetErrorCode sets the ErrorCode field's value. func (s *UnprocessedNamedQueryId) SetErrorCode(v string) *UnprocessedNamedQueryId { s.ErrorCode = &v return s } // SetErrorMessage sets the ErrorMessage field's value. func (s *UnprocessedNamedQueryId) SetErrorMessage(v string) *UnprocessedNamedQueryId { s.ErrorMessage = &v return s } // SetNamedQueryId sets the NamedQueryId field's value. func (s *UnprocessedNamedQueryId) SetNamedQueryId(v string) *UnprocessedNamedQueryId { s.NamedQueryId = &v return s } // Describes a query execution that failed to process. type UnprocessedQueryExecutionId struct { _ struct{} `type:"structure"` // The error code returned when the query execution failed to process, if applicable. ErrorCode *string `min:"1" type:"string"` // The error message returned when the query execution failed to process, if // applicable. ErrorMessage *string `type:"string"` // The unique identifier of the query execution. QueryExecutionId *string `type:"string"` } // String returns the string representation func (s UnprocessedQueryExecutionId) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UnprocessedQueryExecutionId) GoString() string { return s.String() } // SetErrorCode sets the ErrorCode field's value. func (s *UnprocessedQueryExecutionId) SetErrorCode(v string) *UnprocessedQueryExecutionId { s.ErrorCode = &v return s } // SetErrorMessage sets the ErrorMessage field's value. func (s *UnprocessedQueryExecutionId) SetErrorMessage(v string) *UnprocessedQueryExecutionId { s.ErrorMessage = &v return s } // SetQueryExecutionId sets the QueryExecutionId field's value. func (s *UnprocessedQueryExecutionId) SetQueryExecutionId(v string) *UnprocessedQueryExecutionId { s.QueryExecutionId = &v return s } type UntagResourceInput struct { _ struct{} `type:"structure"` // Specifies the ARN of the resource from which tags are to be removed. // // ResourceARN is a required field ResourceARN *string `min:"1" type:"string" required:"true"` // A comma-separated list of one or more tag keys whose tags are to be removed // from the specified resource. // // TagKeys is a required field TagKeys []*string `type:"list" required:"true"` } // String returns the string representation func (s UntagResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UntagResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UntagResourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} if s.ResourceARN == nil { invalidParams.Add(request.NewErrParamRequired("ResourceARN")) } if s.ResourceARN != nil && len(*s.ResourceARN) < 1 { invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1)) } if s.TagKeys == nil { invalidParams.Add(request.NewErrParamRequired("TagKeys")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetResourceARN sets the ResourceARN field's value. func (s *UntagResourceInput) SetResourceARN(v string) *UntagResourceInput { s.ResourceARN = &v return s } // SetTagKeys sets the TagKeys field's value. func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { s.TagKeys = v return s } type UntagResourceOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s UntagResourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UntagResourceOutput) GoString() string { return s.String() } type UpdateDataCatalogInput struct { _ struct{} `type:"structure"` // New or modified text that describes the data catalog. Description *string `min:"1" type:"string"` // The name of the data catalog to update. The catalog name must be unique for // the Amazon Web Services account and can use a maximum of 128 alphanumeric, // underscore, at sign, or hyphen characters. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // Specifies the Lambda function or functions to use for updating the data catalog. // This is a mapping whose values depend on the catalog type. // // * For the HIVE data catalog type, use the following syntax. The metadata-function // parameter is required. The sdk-version parameter is optional and defaults // to the currently supported version. metadata-function=lambda_arn, sdk-version=version_number // // * For the LAMBDA data catalog type, use one of the following sets of required // parameters, but not both. If you have one Lambda function that processes // metadata and another for reading the actual data, use the following syntax. // Both parameters are required. metadata-function=lambda_arn, record-function=lambda_arn // If you have a composite Lambda function that processes both metadata and // data, use the following syntax to specify your Lambda function. function=lambda_arn Parameters map[string]*string `type:"map"` // Specifies the type of data catalog to update. Specify LAMBDA for a federated // catalog, HIVE for an external hive metastore, or GLUE for an Glue Data Catalog. // // Type is a required field Type *string `type:"string" required:"true" enum:"DataCatalogType"` } // String returns the string representation func (s UpdateDataCatalogInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateDataCatalogInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateDataCatalogInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateDataCatalogInput"} if s.Description != nil && len(*s.Description) < 1 { invalidParams.Add(request.NewErrParamMinLen("Description", 1)) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if s.Type == nil { invalidParams.Add(request.NewErrParamRequired("Type")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDescription sets the Description field's value. func (s *UpdateDataCatalogInput) SetDescription(v string) *UpdateDataCatalogInput { s.Description = &v return s } // SetName sets the Name field's value. func (s *UpdateDataCatalogInput) SetName(v string) *UpdateDataCatalogInput { s.Name = &v return s } // SetParameters sets the Parameters field's value. func (s *UpdateDataCatalogInput) SetParameters(v map[string]*string) *UpdateDataCatalogInput { s.Parameters = v return s } // SetType sets the Type field's value. func (s *UpdateDataCatalogInput) SetType(v string) *UpdateDataCatalogInput { s.Type = &v return s } type UpdateDataCatalogOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s UpdateDataCatalogOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateDataCatalogOutput) GoString() string { return s.String() } type UpdatePreparedStatementInput struct { _ struct{} `type:"structure"` // The description of the prepared statement. Description *string `min:"1" type:"string"` // The query string for the prepared statement. // // QueryStatement is a required field QueryStatement *string `min:"1" type:"string" required:"true"` // The name of the prepared statement. // // StatementName is a required field StatementName *string `min:"1" type:"string" required:"true"` // The workgroup for the prepared statement. // // WorkGroup is a required field WorkGroup *string `type:"string" required:"true"` } // String returns the string representation func (s UpdatePreparedStatementInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdatePreparedStatementInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdatePreparedStatementInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdatePreparedStatementInput"} if s.Description != nil && len(*s.Description) < 1 { invalidParams.Add(request.NewErrParamMinLen("Description", 1)) } if s.QueryStatement == nil { invalidParams.Add(request.NewErrParamRequired("QueryStatement")) } if s.QueryStatement != nil && len(*s.QueryStatement) < 1 { invalidParams.Add(request.NewErrParamMinLen("QueryStatement", 1)) } if s.StatementName == nil { invalidParams.Add(request.NewErrParamRequired("StatementName")) } if s.StatementName != nil && len(*s.StatementName) < 1 { invalidParams.Add(request.NewErrParamMinLen("StatementName", 1)) } if s.WorkGroup == nil { invalidParams.Add(request.NewErrParamRequired("WorkGroup")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDescription sets the Description field's value. func (s *UpdatePreparedStatementInput) SetDescription(v string) *UpdatePreparedStatementInput { s.Description = &v return s } // SetQueryStatement sets the QueryStatement field's value. func (s *UpdatePreparedStatementInput) SetQueryStatement(v string) *UpdatePreparedStatementInput { s.QueryStatement = &v return s } // SetStatementName sets the StatementName field's value. func (s *UpdatePreparedStatementInput) SetStatementName(v string) *UpdatePreparedStatementInput { s.StatementName = &v return s } // SetWorkGroup sets the WorkGroup field's value. func (s *UpdatePreparedStatementInput) SetWorkGroup(v string) *UpdatePreparedStatementInput { s.WorkGroup = &v return s } type UpdatePreparedStatementOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s UpdatePreparedStatementOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdatePreparedStatementOutput) GoString() string { return s.String() } type UpdateWorkGroupInput struct { _ struct{} `type:"structure"` // The workgroup configuration that will be updated for the given workgroup. ConfigurationUpdates *WorkGroupConfigurationUpdates `type:"structure"` // The workgroup description. Description *string `type:"string"` // The workgroup state that will be updated for the given workgroup. State *string `type:"string" enum:"WorkGroupState"` // The specified workgroup that will be updated. // // WorkGroup is a required field WorkGroup *string `type:"string" required:"true"` } // String returns the string representation func (s UpdateWorkGroupInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateWorkGroupInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateWorkGroupInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateWorkGroupInput"} if s.WorkGroup == nil { invalidParams.Add(request.NewErrParamRequired("WorkGroup")) } if s.ConfigurationUpdates != nil { if err := s.ConfigurationUpdates.Validate(); err != nil { invalidParams.AddNested("ConfigurationUpdates", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetConfigurationUpdates sets the ConfigurationUpdates field's value. func (s *UpdateWorkGroupInput) SetConfigurationUpdates(v *WorkGroupConfigurationUpdates) *UpdateWorkGroupInput { s.ConfigurationUpdates = v return s } // SetDescription sets the Description field's value. func (s *UpdateWorkGroupInput) SetDescription(v string) *UpdateWorkGroupInput { s.Description = &v return s } // SetState sets the State field's value. func (s *UpdateWorkGroupInput) SetState(v string) *UpdateWorkGroupInput { s.State = &v return s } // SetWorkGroup sets the WorkGroup field's value. func (s *UpdateWorkGroupInput) SetWorkGroup(v string) *UpdateWorkGroupInput { s.WorkGroup = &v return s } type UpdateWorkGroupOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s UpdateWorkGroupOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateWorkGroupOutput) GoString() string { return s.String() } // A workgroup, which contains a name, description, creation time, state, and // other configuration, listed under WorkGroup$Configuration. Each workgroup // enables you to isolate queries for you or your group of users from other // queries in the same account, to configure the query results location and // the encryption configuration (known as workgroup settings), to enable sending // query metrics to Amazon CloudWatch, and to establish per-query data usage // control limits for all queries in a workgroup. The workgroup settings override // is specified in EnforceWorkGroupConfiguration (true/false) in the WorkGroupConfiguration. // See WorkGroupConfiguration$EnforceWorkGroupConfiguration. type WorkGroup struct { _ struct{} `type:"structure"` // The configuration of the workgroup, which includes the location in Amazon // S3 where query results are stored, the encryption configuration, if any, // used for query results; whether the Amazon CloudWatch Metrics are enabled // for the workgroup; whether workgroup settings override client-side settings; // and the data usage limits for the amount of data scanned per query or per // workgroup. The workgroup settings override is specified in EnforceWorkGroupConfiguration // (true/false) in the WorkGroupConfiguration. See WorkGroupConfiguration$EnforceWorkGroupConfiguration. Configuration *WorkGroupConfiguration `type:"structure"` // The date and time the workgroup was created. CreationTime *time.Time `type:"timestamp"` // The workgroup description. Description *string `type:"string"` // The workgroup name. // // Name is a required field Name *string `type:"string" required:"true"` // The state of the workgroup: ENABLED or DISABLED. State *string `type:"string" enum:"WorkGroupState"` } // String returns the string representation func (s WorkGroup) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s WorkGroup) GoString() string { return s.String() } // SetConfiguration sets the Configuration field's value. func (s *WorkGroup) SetConfiguration(v *WorkGroupConfiguration) *WorkGroup { s.Configuration = v return s } // SetCreationTime sets the CreationTime field's value. func (s *WorkGroup) SetCreationTime(v time.Time) *WorkGroup { s.CreationTime = &v return s } // SetDescription sets the Description field's value. func (s *WorkGroup) SetDescription(v string) *WorkGroup { s.Description = &v return s } // SetName sets the Name field's value. func (s *WorkGroup) SetName(v string) *WorkGroup { s.Name = &v return s } // SetState sets the State field's value. func (s *WorkGroup) SetState(v string) *WorkGroup { s.State = &v return s } // The configuration of the workgroup, which includes the location in Amazon // S3 where query results are stored, the encryption option, if any, used for // query results, whether the Amazon CloudWatch Metrics are enabled for the // workgroup and whether workgroup settings override query settings, and the // data usage limits for the amount of data scanned per query or per workgroup. // The workgroup settings override is specified in EnforceWorkGroupConfiguration // (true/false) in the WorkGroupConfiguration. See WorkGroupConfiguration$EnforceWorkGroupConfiguration. type WorkGroupConfiguration struct { _ struct{} `type:"structure"` // The upper data usage limit (cutoff) for the amount of bytes a single query // in a workgroup is allowed to scan. BytesScannedCutoffPerQuery *int64 `min:"1e+07" type:"long"` // If set to "true", the settings for the workgroup override client-side settings. // If set to "false", client-side settings are used. For more information, see // Workgroup Settings Override Client-Side Settings (https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html). EnforceWorkGroupConfiguration *bool `type:"boolean"` // The engine version that all queries running on the workgroup use. Queries // on the AmazonAthenaPreviewFunctionality workgroup run on the preview engine // regardless of this setting. EngineVersion *EngineVersion `type:"structure"` // Indicates that the Amazon CloudWatch metrics are enabled for the workgroup. PublishCloudWatchMetricsEnabled *bool `type:"boolean"` // If set to true, allows members assigned to a workgroup to reference Amazon // S3 Requester Pays buckets in queries. If set to false, workgroup members // cannot query data from Requester Pays buckets, and queries that retrieve // data from Requester Pays buckets cause an error. The default is false. For // more information about Requester Pays buckets, see Requester Pays Buckets // (https://docs.aws.amazon.com/AmazonS3/latest/dev/RequesterPaysBuckets.html) // in the Amazon Simple Storage Service Developer Guide. RequesterPaysEnabled *bool `type:"boolean"` // The configuration for the workgroup, which includes the location in Amazon // S3 where query results are stored and the encryption option, if any, used // for query results. To run the query, you must specify the query results location // using one of the ways: either in the workgroup using this setting, or for // individual queries (client-side), using ResultConfiguration$OutputLocation. // If none of them is set, Athena issues an error that no output location is // provided. For more information, see Query Results (https://docs.aws.amazon.com/athena/latest/ug/querying.html). ResultConfiguration *ResultConfiguration `type:"structure"` } // String returns the string representation func (s WorkGroupConfiguration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s WorkGroupConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *WorkGroupConfiguration) Validate() error { invalidParams := request.ErrInvalidParams{Context: "WorkGroupConfiguration"} if s.BytesScannedCutoffPerQuery != nil && *s.BytesScannedCutoffPerQuery < 1e+07 { invalidParams.Add(request.NewErrParamMinValue("BytesScannedCutoffPerQuery", 1e+07)) } if s.EngineVersion != nil { if err := s.EngineVersion.Validate(); err != nil { invalidParams.AddNested("EngineVersion", err.(request.ErrInvalidParams)) } } if s.ResultConfiguration != nil { if err := s.ResultConfiguration.Validate(); err != nil { invalidParams.AddNested("ResultConfiguration", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetBytesScannedCutoffPerQuery sets the BytesScannedCutoffPerQuery field's value. func (s *WorkGroupConfiguration) SetBytesScannedCutoffPerQuery(v int64) *WorkGroupConfiguration { s.BytesScannedCutoffPerQuery = &v return s } // SetEnforceWorkGroupConfiguration sets the EnforceWorkGroupConfiguration field's value. func (s *WorkGroupConfiguration) SetEnforceWorkGroupConfiguration(v bool) *WorkGroupConfiguration { s.EnforceWorkGroupConfiguration = &v return s } // SetEngineVersion sets the EngineVersion field's value. func (s *WorkGroupConfiguration) SetEngineVersion(v *EngineVersion) *WorkGroupConfiguration { s.EngineVersion = v return s } // SetPublishCloudWatchMetricsEnabled sets the PublishCloudWatchMetricsEnabled field's value. func (s *WorkGroupConfiguration) SetPublishCloudWatchMetricsEnabled(v bool) *WorkGroupConfiguration { s.PublishCloudWatchMetricsEnabled = &v return s } // SetRequesterPaysEnabled sets the RequesterPaysEnabled field's value. func (s *WorkGroupConfiguration) SetRequesterPaysEnabled(v bool) *WorkGroupConfiguration { s.RequesterPaysEnabled = &v return s } // SetResultConfiguration sets the ResultConfiguration field's value. func (s *WorkGroupConfiguration) SetResultConfiguration(v *ResultConfiguration) *WorkGroupConfiguration { s.ResultConfiguration = v return s } // The configuration information that will be updated for this workgroup, which // includes the location in Amazon S3 where query results are stored, the encryption // option, if any, used for query results, whether the Amazon CloudWatch Metrics // are enabled for the workgroup, whether the workgroup settings override the // client-side settings, and the data usage limit for the amount of bytes scanned // per query, if it is specified. type WorkGroupConfigurationUpdates struct { _ struct{} `type:"structure"` // The upper limit (cutoff) for the amount of bytes a single query in a workgroup // is allowed to scan. BytesScannedCutoffPerQuery *int64 `min:"1e+07" type:"long"` // If set to "true", the settings for the workgroup override client-side settings. // If set to "false" client-side settings are used. For more information, see // Workgroup Settings Override Client-Side Settings (https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html). EnforceWorkGroupConfiguration *bool `type:"boolean"` // The engine version requested when a workgroup is updated. After the update, // all queries on the workgroup run on the requested engine version. If no value // was previously set, the default is Auto. Queries on the AmazonAthenaPreviewFunctionality // workgroup run on the preview engine regardless of this setting. EngineVersion *EngineVersion `type:"structure"` // Indicates whether this workgroup enables publishing metrics to Amazon CloudWatch. PublishCloudWatchMetricsEnabled *bool `type:"boolean"` // Indicates that the data usage control limit per query is removed. WorkGroupConfiguration$BytesScannedCutoffPerQuery RemoveBytesScannedCutoffPerQuery *bool `type:"boolean"` // If set to true, allows members assigned to a workgroup to specify Amazon // S3 Requester Pays buckets in queries. If set to false, workgroup members // cannot query data from Requester Pays buckets, and queries that retrieve // data from Requester Pays buckets cause an error. The default is false. For // more information about Requester Pays buckets, see Requester Pays Buckets // (https://docs.aws.amazon.com/AmazonS3/latest/dev/RequesterPaysBuckets.html) // in the Amazon Simple Storage Service Developer Guide. RequesterPaysEnabled *bool `type:"boolean"` // The result configuration information about the queries in this workgroup // that will be updated. Includes the updated results location and an updated // option for encrypting query results. ResultConfigurationUpdates *ResultConfigurationUpdates `type:"structure"` } // String returns the string representation func (s WorkGroupConfigurationUpdates) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s WorkGroupConfigurationUpdates) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *WorkGroupConfigurationUpdates) Validate() error { invalidParams := request.ErrInvalidParams{Context: "WorkGroupConfigurationUpdates"} if s.BytesScannedCutoffPerQuery != nil && *s.BytesScannedCutoffPerQuery < 1e+07 { invalidParams.Add(request.NewErrParamMinValue("BytesScannedCutoffPerQuery", 1e+07)) } if s.EngineVersion != nil { if err := s.EngineVersion.Validate(); err != nil { invalidParams.AddNested("EngineVersion", err.(request.ErrInvalidParams)) } } if s.ResultConfigurationUpdates != nil { if err := s.ResultConfigurationUpdates.Validate(); err != nil { invalidParams.AddNested("ResultConfigurationUpdates", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetBytesScannedCutoffPerQuery sets the BytesScannedCutoffPerQuery field's value. func (s *WorkGroupConfigurationUpdates) SetBytesScannedCutoffPerQuery(v int64) *WorkGroupConfigurationUpdates { s.BytesScannedCutoffPerQuery = &v return s } // SetEnforceWorkGroupConfiguration sets the EnforceWorkGroupConfiguration field's value. func (s *WorkGroupConfigurationUpdates) SetEnforceWorkGroupConfiguration(v bool) *WorkGroupConfigurationUpdates { s.EnforceWorkGroupConfiguration = &v return s } // SetEngineVersion sets the EngineVersion field's value. func (s *WorkGroupConfigurationUpdates) SetEngineVersion(v *EngineVersion) *WorkGroupConfigurationUpdates { s.EngineVersion = v return s } // SetPublishCloudWatchMetricsEnabled sets the PublishCloudWatchMetricsEnabled field's value. func (s *WorkGroupConfigurationUpdates) SetPublishCloudWatchMetricsEnabled(v bool) *WorkGroupConfigurationUpdates { s.PublishCloudWatchMetricsEnabled = &v return s } // SetRemoveBytesScannedCutoffPerQuery sets the RemoveBytesScannedCutoffPerQuery field's value. func (s *WorkGroupConfigurationUpdates) SetRemoveBytesScannedCutoffPerQuery(v bool) *WorkGroupConfigurationUpdates { s.RemoveBytesScannedCutoffPerQuery = &v return s } // SetRequesterPaysEnabled sets the RequesterPaysEnabled field's value. func (s *WorkGroupConfigurationUpdates) SetRequesterPaysEnabled(v bool) *WorkGroupConfigurationUpdates { s.RequesterPaysEnabled = &v return s } // SetResultConfigurationUpdates sets the ResultConfigurationUpdates field's value. func (s *WorkGroupConfigurationUpdates) SetResultConfigurationUpdates(v *ResultConfigurationUpdates) *WorkGroupConfigurationUpdates { s.ResultConfigurationUpdates = v return s } // The summary information for the workgroup, which includes its name, state, // description, and the date and time it was created. type WorkGroupSummary struct { _ struct{} `type:"structure"` // The workgroup creation date and time. CreationTime *time.Time `type:"timestamp"` // The workgroup description. Description *string `type:"string"` // The engine version setting for all queries on the workgroup. Queries on the // AmazonAthenaPreviewFunctionality workgroup run on the preview engine regardless // of this setting. EngineVersion *EngineVersion `type:"structure"` // The name of the workgroup. Name *string `type:"string"` // The state of the workgroup. State *string `type:"string" enum:"WorkGroupState"` } // String returns the string representation func (s WorkGroupSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s WorkGroupSummary) GoString() string { return s.String() } // SetCreationTime sets the CreationTime field's value. func (s *WorkGroupSummary) SetCreationTime(v time.Time) *WorkGroupSummary { s.CreationTime = &v return s } // SetDescription sets the Description field's value. func (s *WorkGroupSummary) SetDescription(v string) *WorkGroupSummary { s.Description = &v return s } // SetEngineVersion sets the EngineVersion field's value. func (s *WorkGroupSummary) SetEngineVersion(v *EngineVersion) *WorkGroupSummary { s.EngineVersion = v return s } // SetName sets the Name field's value. func (s *WorkGroupSummary) SetName(v string) *WorkGroupSummary { s.Name = &v return s } // SetState sets the State field's value. func (s *WorkGroupSummary) SetState(v string) *WorkGroupSummary { s.State = &v return s } const ( // ColumnNullableNotNull is a ColumnNullable enum value ColumnNullableNotNull = "NOT_NULL" // ColumnNullableNullable is a ColumnNullable enum value ColumnNullableNullable = "NULLABLE" // ColumnNullableUnknown is a ColumnNullable enum value ColumnNullableUnknown = "UNKNOWN" ) // ColumnNullable_Values returns all elements of the ColumnNullable enum func ColumnNullable_Values() []string { return []string{ ColumnNullableNotNull, ColumnNullableNullable, ColumnNullableUnknown, } } const ( // DataCatalogTypeLambda is a DataCatalogType enum value DataCatalogTypeLambda = "LAMBDA" // DataCatalogTypeGlue is a DataCatalogType enum value DataCatalogTypeGlue = "GLUE" // DataCatalogTypeHive is a DataCatalogType enum value DataCatalogTypeHive = "HIVE" ) // DataCatalogType_Values returns all elements of the DataCatalogType enum func DataCatalogType_Values() []string { return []string{ DataCatalogTypeLambda, DataCatalogTypeGlue, DataCatalogTypeHive, } } const ( // EncryptionOptionSseS3 is a EncryptionOption enum value EncryptionOptionSseS3 = "SSE_S3" // EncryptionOptionSseKms is a EncryptionOption enum value EncryptionOptionSseKms = "SSE_KMS" // EncryptionOptionCseKms is a EncryptionOption enum value EncryptionOptionCseKms = "CSE_KMS" ) // EncryptionOption_Values returns all elements of the EncryptionOption enum func EncryptionOption_Values() []string { return []string{ EncryptionOptionSseS3, EncryptionOptionSseKms, EncryptionOptionCseKms, } } const ( // QueryExecutionStateQueued is a QueryExecutionState enum value QueryExecutionStateQueued = "QUEUED" // QueryExecutionStateRunning is a QueryExecutionState enum value QueryExecutionStateRunning = "RUNNING" // QueryExecutionStateSucceeded is a QueryExecutionState enum value QueryExecutionStateSucceeded = "SUCCEEDED" // QueryExecutionStateFailed is a QueryExecutionState enum value QueryExecutionStateFailed = "FAILED" // QueryExecutionStateCancelled is a QueryExecutionState enum value QueryExecutionStateCancelled = "CANCELLED" ) // QueryExecutionState_Values returns all elements of the QueryExecutionState enum func QueryExecutionState_Values() []string { return []string{ QueryExecutionStateQueued, QueryExecutionStateRunning, QueryExecutionStateSucceeded, QueryExecutionStateFailed, QueryExecutionStateCancelled, } } const ( // StatementTypeDdl is a StatementType enum value StatementTypeDdl = "DDL" // StatementTypeDml is a StatementType enum value StatementTypeDml = "DML" // StatementTypeUtility is a StatementType enum value StatementTypeUtility = "UTILITY" ) // StatementType_Values returns all elements of the StatementType enum func StatementType_Values() []string { return []string{ StatementTypeDdl, StatementTypeDml, StatementTypeUtility, } } // The reason for the query throttling, for example, when it exceeds the concurrent // query limit. const ( // ThrottleReasonConcurrentQueryLimitExceeded is a ThrottleReason enum value ThrottleReasonConcurrentQueryLimitExceeded = "CONCURRENT_QUERY_LIMIT_EXCEEDED" ) // ThrottleReason_Values returns all elements of the ThrottleReason enum func ThrottleReason_Values() []string { return []string{ ThrottleReasonConcurrentQueryLimitExceeded, } } const ( // WorkGroupStateEnabled is a WorkGroupState enum value WorkGroupStateEnabled = "ENABLED" // WorkGroupStateDisabled is a WorkGroupState enum value WorkGroupStateDisabled = "DISABLED" ) // WorkGroupState_Values returns all elements of the WorkGroupState enum func WorkGroupState_Values() []string { return []string{ WorkGroupStateEnabled, WorkGroupStateDisabled, } }
8,659
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package athena provides the client and types for making API // requests to Amazon Athena. // // Amazon Athena is an interactive query service that lets you use standard // SQL to analyze data directly in Amazon S3. You can point Athena at your data // in Amazon S3 and run ad-hoc queries and get results in seconds. Athena is // serverless, so there is no infrastructure to set up or manage. You pay only // for the queries you run. Athena scales automatically—executing queries // in parallel—so results are fast, even with large datasets and complex queries. // For more information, see What is Amazon Athena (http://docs.aws.amazon.com/athena/latest/ug/what-is.html) // in the Amazon Athena User Guide. // // If you connect to Athena using the JDBC driver, use version 1.1.0 of the // driver or later with the Amazon Athena API. Earlier version drivers do not // support the API. For more information and to download the driver, see Accessing // Amazon Athena with JDBC (https://docs.aws.amazon.com/athena/latest/ug/connect-with-jdbc.html). // // For code samples using the Amazon Web Services SDK for Java, see Examples // and Code Samples (https://docs.aws.amazon.com/athena/latest/ug/code-samples.html) // in the Amazon Athena User Guide. // // See https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18 for more information on this service. // // See athena package documentation for more information. // https://docs.aws.amazon.com/sdk-for-go/api/service/athena/ // // Using the Client // // To contact Amazon Athena 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 Amazon Athena client Athena for more // information on creating client for this service. // https://docs.aws.amazon.com/sdk-for-go/api/service/athena/#New package athena
45
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package athena import ( "github.com/aws/aws-sdk-go/private/protocol" ) const ( // ErrCodeInternalServerException for service response error code // "InternalServerException". // // Indicates a platform issue, which may be due to a transient condition or // outage. ErrCodeInternalServerException = "InternalServerException" // ErrCodeInvalidRequestException for service response error code // "InvalidRequestException". // // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. ErrCodeInvalidRequestException = "InvalidRequestException" // ErrCodeMetadataException for service response error code // "MetadataException". // // An exception that Athena received when it called a custom metastore. Occurs // if the error is not caused by user input (InvalidRequestException) or from // the Athena platform (InternalServerException). For example, if a user-created // Lambda function is missing permissions, the Lambda 4XX exception is returned // in a MetadataException. ErrCodeMetadataException = "MetadataException" // ErrCodeResourceNotFoundException for service response error code // "ResourceNotFoundException". // // A resource, such as a workgroup, was not found. ErrCodeResourceNotFoundException = "ResourceNotFoundException" // ErrCodeTooManyRequestsException for service response error code // "TooManyRequestsException". // // Indicates that the request was throttled. ErrCodeTooManyRequestsException = "TooManyRequestsException" ) var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "InternalServerException": newErrorInternalServerException, "InvalidRequestException": newErrorInvalidRequestException, "MetadataException": newErrorMetadataException, "ResourceNotFoundException": newErrorResourceNotFoundException, "TooManyRequestsException": newErrorTooManyRequestsException, }
55
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // +build go1.15,integration package athena_test import ( "context" "testing" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/awstesting/integration" "github.com/aws/aws-sdk-go/service/athena" ) var _ aws.Config var _ awserr.Error var _ request.Request func TestInteg_00_ListNamedQueries(t *testing.T) { ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) defer cancelFn() sess := integration.SessionWithDefaultRegion("us-west-2") svc := athena.New(sess) params := &athena.ListNamedQueriesInput{} _, err := svc.ListNamedQueriesWithContext(ctx, params, func(r *request.Request) { r.Handlers.Validate.RemoveByName("core.ValidateParametersHandler") }) if err != nil { t.Errorf("expect no error, got %v", err) } }
37
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package athena 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" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) // Athena provides the API operation methods for making requests to // Amazon Athena. See this package's package overview docs // for details on the service. // // Athena methods are safe to use concurrently. It is not safe to // modify mutate any of the struct's properties though. type Athena 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 = "athena" // Name of service. EndpointsID = ServiceName // ID to lookup a service endpoint with. ServiceID = "Athena" // ServiceID is a unique identifier of a specific service. ) // New creates a new instance of the Athena 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: // mySession := session.Must(session.NewSession()) // // // Create a Athena client from just a session. // svc := athena.New(mySession) // // // Create a Athena client with additional configuration // svc := athena.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Athena { c := p.ClientConfig(EndpointsID, cfgs...) return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *Athena { svc := &Athena{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, ServiceID: ServiceID, SigningName: signingName, SigningRegion: signingRegion, PartitionID: partitionID, Endpoint: endpoint, APIVersion: "2017-05-18", JSONVersion: "1.1", TargetPrefix: "AmazonAthena", }, handlers, ), } // Handlers svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) svc.Handlers.UnmarshalError.PushBackNamed( protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), ) // Run custom client initialization if present if initClient != nil { initClient(svc.Client) } return svc } // newRequest creates a new request for a Athena operation and runs any // custom request initialization. func (c *Athena) 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 }
104
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package athenaiface provides an interface to enable mocking the Amazon Athena 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 athenaiface import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/service/athena" ) // AthenaAPI provides an interface to enable mocking the // athena.Athena 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 // // Amazon Athena. // func myFunc(svc athenaiface.AthenaAPI) bool { // // Make svc.BatchGetNamedQuery request // } // // func main() { // sess := session.New() // svc := athena.New(sess) // // myFunc(svc) // } // // In your _test.go file: // // // Define a mock struct to be used in your unit tests of myFunc. // type mockAthenaClient struct { // athenaiface.AthenaAPI // } // func (m *mockAthenaClient) BatchGetNamedQuery(input *athena.BatchGetNamedQueryInput) (*athena.BatchGetNamedQueryOutput, error) { // // mock response/functionality // } // // func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockAthenaClient{} // // 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 AthenaAPI interface { BatchGetNamedQuery(*athena.BatchGetNamedQueryInput) (*athena.BatchGetNamedQueryOutput, error) BatchGetNamedQueryWithContext(aws.Context, *athena.BatchGetNamedQueryInput, ...request.Option) (*athena.BatchGetNamedQueryOutput, error) BatchGetNamedQueryRequest(*athena.BatchGetNamedQueryInput) (*request.Request, *athena.BatchGetNamedQueryOutput) BatchGetQueryExecution(*athena.BatchGetQueryExecutionInput) (*athena.BatchGetQueryExecutionOutput, error) BatchGetQueryExecutionWithContext(aws.Context, *athena.BatchGetQueryExecutionInput, ...request.Option) (*athena.BatchGetQueryExecutionOutput, error) BatchGetQueryExecutionRequest(*athena.BatchGetQueryExecutionInput) (*request.Request, *athena.BatchGetQueryExecutionOutput) CreateDataCatalog(*athena.CreateDataCatalogInput) (*athena.CreateDataCatalogOutput, error) CreateDataCatalogWithContext(aws.Context, *athena.CreateDataCatalogInput, ...request.Option) (*athena.CreateDataCatalogOutput, error) CreateDataCatalogRequest(*athena.CreateDataCatalogInput) (*request.Request, *athena.CreateDataCatalogOutput) CreateNamedQuery(*athena.CreateNamedQueryInput) (*athena.CreateNamedQueryOutput, error) CreateNamedQueryWithContext(aws.Context, *athena.CreateNamedQueryInput, ...request.Option) (*athena.CreateNamedQueryOutput, error) CreateNamedQueryRequest(*athena.CreateNamedQueryInput) (*request.Request, *athena.CreateNamedQueryOutput) CreatePreparedStatement(*athena.CreatePreparedStatementInput) (*athena.CreatePreparedStatementOutput, error) CreatePreparedStatementWithContext(aws.Context, *athena.CreatePreparedStatementInput, ...request.Option) (*athena.CreatePreparedStatementOutput, error) CreatePreparedStatementRequest(*athena.CreatePreparedStatementInput) (*request.Request, *athena.CreatePreparedStatementOutput) CreateWorkGroup(*athena.CreateWorkGroupInput) (*athena.CreateWorkGroupOutput, error) CreateWorkGroupWithContext(aws.Context, *athena.CreateWorkGroupInput, ...request.Option) (*athena.CreateWorkGroupOutput, error) CreateWorkGroupRequest(*athena.CreateWorkGroupInput) (*request.Request, *athena.CreateWorkGroupOutput) DeleteDataCatalog(*athena.DeleteDataCatalogInput) (*athena.DeleteDataCatalogOutput, error) DeleteDataCatalogWithContext(aws.Context, *athena.DeleteDataCatalogInput, ...request.Option) (*athena.DeleteDataCatalogOutput, error) DeleteDataCatalogRequest(*athena.DeleteDataCatalogInput) (*request.Request, *athena.DeleteDataCatalogOutput) DeleteNamedQuery(*athena.DeleteNamedQueryInput) (*athena.DeleteNamedQueryOutput, error) DeleteNamedQueryWithContext(aws.Context, *athena.DeleteNamedQueryInput, ...request.Option) (*athena.DeleteNamedQueryOutput, error) DeleteNamedQueryRequest(*athena.DeleteNamedQueryInput) (*request.Request, *athena.DeleteNamedQueryOutput) DeletePreparedStatement(*athena.DeletePreparedStatementInput) (*athena.DeletePreparedStatementOutput, error) DeletePreparedStatementWithContext(aws.Context, *athena.DeletePreparedStatementInput, ...request.Option) (*athena.DeletePreparedStatementOutput, error) DeletePreparedStatementRequest(*athena.DeletePreparedStatementInput) (*request.Request, *athena.DeletePreparedStatementOutput) DeleteWorkGroup(*athena.DeleteWorkGroupInput) (*athena.DeleteWorkGroupOutput, error) DeleteWorkGroupWithContext(aws.Context, *athena.DeleteWorkGroupInput, ...request.Option) (*athena.DeleteWorkGroupOutput, error) DeleteWorkGroupRequest(*athena.DeleteWorkGroupInput) (*request.Request, *athena.DeleteWorkGroupOutput) GetDataCatalog(*athena.GetDataCatalogInput) (*athena.GetDataCatalogOutput, error) GetDataCatalogWithContext(aws.Context, *athena.GetDataCatalogInput, ...request.Option) (*athena.GetDataCatalogOutput, error) GetDataCatalogRequest(*athena.GetDataCatalogInput) (*request.Request, *athena.GetDataCatalogOutput) GetDatabase(*athena.GetDatabaseInput) (*athena.GetDatabaseOutput, error) GetDatabaseWithContext(aws.Context, *athena.GetDatabaseInput, ...request.Option) (*athena.GetDatabaseOutput, error) GetDatabaseRequest(*athena.GetDatabaseInput) (*request.Request, *athena.GetDatabaseOutput) GetNamedQuery(*athena.GetNamedQueryInput) (*athena.GetNamedQueryOutput, error) GetNamedQueryWithContext(aws.Context, *athena.GetNamedQueryInput, ...request.Option) (*athena.GetNamedQueryOutput, error) GetNamedQueryRequest(*athena.GetNamedQueryInput) (*request.Request, *athena.GetNamedQueryOutput) GetPreparedStatement(*athena.GetPreparedStatementInput) (*athena.GetPreparedStatementOutput, error) GetPreparedStatementWithContext(aws.Context, *athena.GetPreparedStatementInput, ...request.Option) (*athena.GetPreparedStatementOutput, error) GetPreparedStatementRequest(*athena.GetPreparedStatementInput) (*request.Request, *athena.GetPreparedStatementOutput) GetQueryExecution(*athena.GetQueryExecutionInput) (*athena.GetQueryExecutionOutput, error) GetQueryExecutionWithContext(aws.Context, *athena.GetQueryExecutionInput, ...request.Option) (*athena.GetQueryExecutionOutput, error) GetQueryExecutionRequest(*athena.GetQueryExecutionInput) (*request.Request, *athena.GetQueryExecutionOutput) GetQueryResults(*athena.GetQueryResultsInput) (*athena.GetQueryResultsOutput, error) GetQueryResultsWithContext(aws.Context, *athena.GetQueryResultsInput, ...request.Option) (*athena.GetQueryResultsOutput, error) GetQueryResultsRequest(*athena.GetQueryResultsInput) (*request.Request, *athena.GetQueryResultsOutput) GetQueryResultsPages(*athena.GetQueryResultsInput, func(*athena.GetQueryResultsOutput, bool) bool) error GetQueryResultsPagesWithContext(aws.Context, *athena.GetQueryResultsInput, func(*athena.GetQueryResultsOutput, bool) bool, ...request.Option) error GetTableMetadata(*athena.GetTableMetadataInput) (*athena.GetTableMetadataOutput, error) GetTableMetadataWithContext(aws.Context, *athena.GetTableMetadataInput, ...request.Option) (*athena.GetTableMetadataOutput, error) GetTableMetadataRequest(*athena.GetTableMetadataInput) (*request.Request, *athena.GetTableMetadataOutput) GetWorkGroup(*athena.GetWorkGroupInput) (*athena.GetWorkGroupOutput, error) GetWorkGroupWithContext(aws.Context, *athena.GetWorkGroupInput, ...request.Option) (*athena.GetWorkGroupOutput, error) GetWorkGroupRequest(*athena.GetWorkGroupInput) (*request.Request, *athena.GetWorkGroupOutput) ListDataCatalogs(*athena.ListDataCatalogsInput) (*athena.ListDataCatalogsOutput, error) ListDataCatalogsWithContext(aws.Context, *athena.ListDataCatalogsInput, ...request.Option) (*athena.ListDataCatalogsOutput, error) ListDataCatalogsRequest(*athena.ListDataCatalogsInput) (*request.Request, *athena.ListDataCatalogsOutput) ListDataCatalogsPages(*athena.ListDataCatalogsInput, func(*athena.ListDataCatalogsOutput, bool) bool) error ListDataCatalogsPagesWithContext(aws.Context, *athena.ListDataCatalogsInput, func(*athena.ListDataCatalogsOutput, bool) bool, ...request.Option) error ListDatabases(*athena.ListDatabasesInput) (*athena.ListDatabasesOutput, error) ListDatabasesWithContext(aws.Context, *athena.ListDatabasesInput, ...request.Option) (*athena.ListDatabasesOutput, error) ListDatabasesRequest(*athena.ListDatabasesInput) (*request.Request, *athena.ListDatabasesOutput) ListDatabasesPages(*athena.ListDatabasesInput, func(*athena.ListDatabasesOutput, bool) bool) error ListDatabasesPagesWithContext(aws.Context, *athena.ListDatabasesInput, func(*athena.ListDatabasesOutput, bool) bool, ...request.Option) error ListEngineVersions(*athena.ListEngineVersionsInput) (*athena.ListEngineVersionsOutput, error) ListEngineVersionsWithContext(aws.Context, *athena.ListEngineVersionsInput, ...request.Option) (*athena.ListEngineVersionsOutput, error) ListEngineVersionsRequest(*athena.ListEngineVersionsInput) (*request.Request, *athena.ListEngineVersionsOutput) ListNamedQueries(*athena.ListNamedQueriesInput) (*athena.ListNamedQueriesOutput, error) ListNamedQueriesWithContext(aws.Context, *athena.ListNamedQueriesInput, ...request.Option) (*athena.ListNamedQueriesOutput, error) ListNamedQueriesRequest(*athena.ListNamedQueriesInput) (*request.Request, *athena.ListNamedQueriesOutput) ListNamedQueriesPages(*athena.ListNamedQueriesInput, func(*athena.ListNamedQueriesOutput, bool) bool) error ListNamedQueriesPagesWithContext(aws.Context, *athena.ListNamedQueriesInput, func(*athena.ListNamedQueriesOutput, bool) bool, ...request.Option) error ListPreparedStatements(*athena.ListPreparedStatementsInput) (*athena.ListPreparedStatementsOutput, error) ListPreparedStatementsWithContext(aws.Context, *athena.ListPreparedStatementsInput, ...request.Option) (*athena.ListPreparedStatementsOutput, error) ListPreparedStatementsRequest(*athena.ListPreparedStatementsInput) (*request.Request, *athena.ListPreparedStatementsOutput) ListPreparedStatementsPages(*athena.ListPreparedStatementsInput, func(*athena.ListPreparedStatementsOutput, bool) bool) error ListPreparedStatementsPagesWithContext(aws.Context, *athena.ListPreparedStatementsInput, func(*athena.ListPreparedStatementsOutput, bool) bool, ...request.Option) error ListQueryExecutions(*athena.ListQueryExecutionsInput) (*athena.ListQueryExecutionsOutput, error) ListQueryExecutionsWithContext(aws.Context, *athena.ListQueryExecutionsInput, ...request.Option) (*athena.ListQueryExecutionsOutput, error) ListQueryExecutionsRequest(*athena.ListQueryExecutionsInput) (*request.Request, *athena.ListQueryExecutionsOutput) ListQueryExecutionsPages(*athena.ListQueryExecutionsInput, func(*athena.ListQueryExecutionsOutput, bool) bool) error ListQueryExecutionsPagesWithContext(aws.Context, *athena.ListQueryExecutionsInput, func(*athena.ListQueryExecutionsOutput, bool) bool, ...request.Option) error ListTableMetadata(*athena.ListTableMetadataInput) (*athena.ListTableMetadataOutput, error) ListTableMetadataWithContext(aws.Context, *athena.ListTableMetadataInput, ...request.Option) (*athena.ListTableMetadataOutput, error) ListTableMetadataRequest(*athena.ListTableMetadataInput) (*request.Request, *athena.ListTableMetadataOutput) ListTableMetadataPages(*athena.ListTableMetadataInput, func(*athena.ListTableMetadataOutput, bool) bool) error ListTableMetadataPagesWithContext(aws.Context, *athena.ListTableMetadataInput, func(*athena.ListTableMetadataOutput, bool) bool, ...request.Option) error ListTagsForResource(*athena.ListTagsForResourceInput) (*athena.ListTagsForResourceOutput, error) ListTagsForResourceWithContext(aws.Context, *athena.ListTagsForResourceInput, ...request.Option) (*athena.ListTagsForResourceOutput, error) ListTagsForResourceRequest(*athena.ListTagsForResourceInput) (*request.Request, *athena.ListTagsForResourceOutput) ListTagsForResourcePages(*athena.ListTagsForResourceInput, func(*athena.ListTagsForResourceOutput, bool) bool) error ListTagsForResourcePagesWithContext(aws.Context, *athena.ListTagsForResourceInput, func(*athena.ListTagsForResourceOutput, bool) bool, ...request.Option) error ListWorkGroups(*athena.ListWorkGroupsInput) (*athena.ListWorkGroupsOutput, error) ListWorkGroupsWithContext(aws.Context, *athena.ListWorkGroupsInput, ...request.Option) (*athena.ListWorkGroupsOutput, error) ListWorkGroupsRequest(*athena.ListWorkGroupsInput) (*request.Request, *athena.ListWorkGroupsOutput) ListWorkGroupsPages(*athena.ListWorkGroupsInput, func(*athena.ListWorkGroupsOutput, bool) bool) error ListWorkGroupsPagesWithContext(aws.Context, *athena.ListWorkGroupsInput, func(*athena.ListWorkGroupsOutput, bool) bool, ...request.Option) error StartQueryExecution(*athena.StartQueryExecutionInput) (*athena.StartQueryExecutionOutput, error) StartQueryExecutionWithContext(aws.Context, *athena.StartQueryExecutionInput, ...request.Option) (*athena.StartQueryExecutionOutput, error) StartQueryExecutionRequest(*athena.StartQueryExecutionInput) (*request.Request, *athena.StartQueryExecutionOutput) StopQueryExecution(*athena.StopQueryExecutionInput) (*athena.StopQueryExecutionOutput, error) StopQueryExecutionWithContext(aws.Context, *athena.StopQueryExecutionInput, ...request.Option) (*athena.StopQueryExecutionOutput, error) StopQueryExecutionRequest(*athena.StopQueryExecutionInput) (*request.Request, *athena.StopQueryExecutionOutput) TagResource(*athena.TagResourceInput) (*athena.TagResourceOutput, error) TagResourceWithContext(aws.Context, *athena.TagResourceInput, ...request.Option) (*athena.TagResourceOutput, error) TagResourceRequest(*athena.TagResourceInput) (*request.Request, *athena.TagResourceOutput) UntagResource(*athena.UntagResourceInput) (*athena.UntagResourceOutput, error) UntagResourceWithContext(aws.Context, *athena.UntagResourceInput, ...request.Option) (*athena.UntagResourceOutput, error) UntagResourceRequest(*athena.UntagResourceInput) (*request.Request, *athena.UntagResourceOutput) UpdateDataCatalog(*athena.UpdateDataCatalogInput) (*athena.UpdateDataCatalogOutput, error) UpdateDataCatalogWithContext(aws.Context, *athena.UpdateDataCatalogInput, ...request.Option) (*athena.UpdateDataCatalogOutput, error) UpdateDataCatalogRequest(*athena.UpdateDataCatalogInput) (*request.Request, *athena.UpdateDataCatalogOutput) UpdatePreparedStatement(*athena.UpdatePreparedStatementInput) (*athena.UpdatePreparedStatementOutput, error) UpdatePreparedStatementWithContext(aws.Context, *athena.UpdatePreparedStatementInput, ...request.Option) (*athena.UpdatePreparedStatementOutput, error) UpdatePreparedStatementRequest(*athena.UpdatePreparedStatementInput) (*request.Request, *athena.UpdatePreparedStatementOutput) UpdateWorkGroup(*athena.UpdateWorkGroupInput) (*athena.UpdateWorkGroupOutput, error) UpdateWorkGroupWithContext(aws.Context, *athena.UpdateWorkGroupInput, ...request.Option) (*athena.UpdateWorkGroupOutput, error) UpdateWorkGroupRequest(*athena.UpdateWorkGroupInput) (*request.Request, *athena.UpdateWorkGroupOutput) } var _ AthenaAPI = (*athena.Athena)(nil)
228
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package auditmanager import ( "fmt" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) const opAssociateAssessmentReportEvidenceFolder = "AssociateAssessmentReportEvidenceFolder" // AssociateAssessmentReportEvidenceFolderRequest generates a "aws/request.Request" representing the // client's request for the AssociateAssessmentReportEvidenceFolder operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See AssociateAssessmentReportEvidenceFolder for more information on using the AssociateAssessmentReportEvidenceFolder // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the AssociateAssessmentReportEvidenceFolderRequest method. // req, resp := client.AssociateAssessmentReportEvidenceFolderRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/AssociateAssessmentReportEvidenceFolder func (c *AuditManager) AssociateAssessmentReportEvidenceFolderRequest(input *AssociateAssessmentReportEvidenceFolderInput) (req *request.Request, output *AssociateAssessmentReportEvidenceFolderOutput) { op := &request.Operation{ Name: opAssociateAssessmentReportEvidenceFolder, HTTPMethod: "PUT", HTTPPath: "/assessments/{assessmentId}/associateToAssessmentReport", } if input == nil { input = &AssociateAssessmentReportEvidenceFolderInput{} } output = &AssociateAssessmentReportEvidenceFolderOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // AssociateAssessmentReportEvidenceFolder API operation for AWS Audit Manager. // // Associates an evidence folder to the specified assessment report in Audit // Manager. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation AssociateAssessmentReportEvidenceFolder for usage and error information. // // Returned Error Types: // * ValidationException // The request has invalid or missing parameters. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // * ResourceNotFoundException // The resource specified in the request cannot be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/AssociateAssessmentReportEvidenceFolder func (c *AuditManager) AssociateAssessmentReportEvidenceFolder(input *AssociateAssessmentReportEvidenceFolderInput) (*AssociateAssessmentReportEvidenceFolderOutput, error) { req, out := c.AssociateAssessmentReportEvidenceFolderRequest(input) return out, req.Send() } // AssociateAssessmentReportEvidenceFolderWithContext is the same as AssociateAssessmentReportEvidenceFolder with the addition of // the ability to pass a context and additional request options. // // See AssociateAssessmentReportEvidenceFolder for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) AssociateAssessmentReportEvidenceFolderWithContext(ctx aws.Context, input *AssociateAssessmentReportEvidenceFolderInput, opts ...request.Option) (*AssociateAssessmentReportEvidenceFolderOutput, error) { req, out := c.AssociateAssessmentReportEvidenceFolderRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opBatchAssociateAssessmentReportEvidence = "BatchAssociateAssessmentReportEvidence" // BatchAssociateAssessmentReportEvidenceRequest generates a "aws/request.Request" representing the // client's request for the BatchAssociateAssessmentReportEvidence operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See BatchAssociateAssessmentReportEvidence for more information on using the BatchAssociateAssessmentReportEvidence // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the BatchAssociateAssessmentReportEvidenceRequest method. // req, resp := client.BatchAssociateAssessmentReportEvidenceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/BatchAssociateAssessmentReportEvidence func (c *AuditManager) BatchAssociateAssessmentReportEvidenceRequest(input *BatchAssociateAssessmentReportEvidenceInput) (req *request.Request, output *BatchAssociateAssessmentReportEvidenceOutput) { op := &request.Operation{ Name: opBatchAssociateAssessmentReportEvidence, HTTPMethod: "PUT", HTTPPath: "/assessments/{assessmentId}/batchAssociateToAssessmentReport", } if input == nil { input = &BatchAssociateAssessmentReportEvidenceInput{} } output = &BatchAssociateAssessmentReportEvidenceOutput{} req = c.newRequest(op, input, output) return } // BatchAssociateAssessmentReportEvidence API operation for AWS Audit Manager. // // Associates a list of evidence to an assessment report in an Audit Manager // assessment. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation BatchAssociateAssessmentReportEvidence for usage and error information. // // Returned Error Types: // * ValidationException // The request has invalid or missing parameters. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // * ResourceNotFoundException // The resource specified in the request cannot be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/BatchAssociateAssessmentReportEvidence func (c *AuditManager) BatchAssociateAssessmentReportEvidence(input *BatchAssociateAssessmentReportEvidenceInput) (*BatchAssociateAssessmentReportEvidenceOutput, error) { req, out := c.BatchAssociateAssessmentReportEvidenceRequest(input) return out, req.Send() } // BatchAssociateAssessmentReportEvidenceWithContext is the same as BatchAssociateAssessmentReportEvidence with the addition of // the ability to pass a context and additional request options. // // See BatchAssociateAssessmentReportEvidence for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) BatchAssociateAssessmentReportEvidenceWithContext(ctx aws.Context, input *BatchAssociateAssessmentReportEvidenceInput, opts ...request.Option) (*BatchAssociateAssessmentReportEvidenceOutput, error) { req, out := c.BatchAssociateAssessmentReportEvidenceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opBatchCreateDelegationByAssessment = "BatchCreateDelegationByAssessment" // BatchCreateDelegationByAssessmentRequest generates a "aws/request.Request" representing the // client's request for the BatchCreateDelegationByAssessment operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See BatchCreateDelegationByAssessment for more information on using the BatchCreateDelegationByAssessment // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the BatchCreateDelegationByAssessmentRequest method. // req, resp := client.BatchCreateDelegationByAssessmentRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/BatchCreateDelegationByAssessment func (c *AuditManager) BatchCreateDelegationByAssessmentRequest(input *BatchCreateDelegationByAssessmentInput) (req *request.Request, output *BatchCreateDelegationByAssessmentOutput) { op := &request.Operation{ Name: opBatchCreateDelegationByAssessment, HTTPMethod: "POST", HTTPPath: "/assessments/{assessmentId}/delegations", } if input == nil { input = &BatchCreateDelegationByAssessmentInput{} } output = &BatchCreateDelegationByAssessmentOutput{} req = c.newRequest(op, input, output) return } // BatchCreateDelegationByAssessment API operation for AWS Audit Manager. // // Create a batch of delegations for a specified assessment in Audit Manager. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation BatchCreateDelegationByAssessment for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The resource specified in the request cannot be found. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * ValidationException // The request has invalid or missing parameters. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/BatchCreateDelegationByAssessment func (c *AuditManager) BatchCreateDelegationByAssessment(input *BatchCreateDelegationByAssessmentInput) (*BatchCreateDelegationByAssessmentOutput, error) { req, out := c.BatchCreateDelegationByAssessmentRequest(input) return out, req.Send() } // BatchCreateDelegationByAssessmentWithContext is the same as BatchCreateDelegationByAssessment with the addition of // the ability to pass a context and additional request options. // // See BatchCreateDelegationByAssessment for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) BatchCreateDelegationByAssessmentWithContext(ctx aws.Context, input *BatchCreateDelegationByAssessmentInput, opts ...request.Option) (*BatchCreateDelegationByAssessmentOutput, error) { req, out := c.BatchCreateDelegationByAssessmentRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opBatchDeleteDelegationByAssessment = "BatchDeleteDelegationByAssessment" // BatchDeleteDelegationByAssessmentRequest generates a "aws/request.Request" representing the // client's request for the BatchDeleteDelegationByAssessment operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See BatchDeleteDelegationByAssessment for more information on using the BatchDeleteDelegationByAssessment // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the BatchDeleteDelegationByAssessmentRequest method. // req, resp := client.BatchDeleteDelegationByAssessmentRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/BatchDeleteDelegationByAssessment func (c *AuditManager) BatchDeleteDelegationByAssessmentRequest(input *BatchDeleteDelegationByAssessmentInput) (req *request.Request, output *BatchDeleteDelegationByAssessmentOutput) { op := &request.Operation{ Name: opBatchDeleteDelegationByAssessment, HTTPMethod: "PUT", HTTPPath: "/assessments/{assessmentId}/delegations", } if input == nil { input = &BatchDeleteDelegationByAssessmentInput{} } output = &BatchDeleteDelegationByAssessmentOutput{} req = c.newRequest(op, input, output) return } // BatchDeleteDelegationByAssessment API operation for AWS Audit Manager. // // Deletes the delegations in the specified Audit Manager assessment. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation BatchDeleteDelegationByAssessment for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The resource specified in the request cannot be found. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * ValidationException // The request has invalid or missing parameters. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/BatchDeleteDelegationByAssessment func (c *AuditManager) BatchDeleteDelegationByAssessment(input *BatchDeleteDelegationByAssessmentInput) (*BatchDeleteDelegationByAssessmentOutput, error) { req, out := c.BatchDeleteDelegationByAssessmentRequest(input) return out, req.Send() } // BatchDeleteDelegationByAssessmentWithContext is the same as BatchDeleteDelegationByAssessment with the addition of // the ability to pass a context and additional request options. // // See BatchDeleteDelegationByAssessment for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) BatchDeleteDelegationByAssessmentWithContext(ctx aws.Context, input *BatchDeleteDelegationByAssessmentInput, opts ...request.Option) (*BatchDeleteDelegationByAssessmentOutput, error) { req, out := c.BatchDeleteDelegationByAssessmentRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opBatchDisassociateAssessmentReportEvidence = "BatchDisassociateAssessmentReportEvidence" // BatchDisassociateAssessmentReportEvidenceRequest generates a "aws/request.Request" representing the // client's request for the BatchDisassociateAssessmentReportEvidence operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See BatchDisassociateAssessmentReportEvidence for more information on using the BatchDisassociateAssessmentReportEvidence // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the BatchDisassociateAssessmentReportEvidenceRequest method. // req, resp := client.BatchDisassociateAssessmentReportEvidenceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/BatchDisassociateAssessmentReportEvidence func (c *AuditManager) BatchDisassociateAssessmentReportEvidenceRequest(input *BatchDisassociateAssessmentReportEvidenceInput) (req *request.Request, output *BatchDisassociateAssessmentReportEvidenceOutput) { op := &request.Operation{ Name: opBatchDisassociateAssessmentReportEvidence, HTTPMethod: "PUT", HTTPPath: "/assessments/{assessmentId}/batchDisassociateFromAssessmentReport", } if input == nil { input = &BatchDisassociateAssessmentReportEvidenceInput{} } output = &BatchDisassociateAssessmentReportEvidenceOutput{} req = c.newRequest(op, input, output) return } // BatchDisassociateAssessmentReportEvidence API operation for AWS Audit Manager. // // Disassociates a list of evidence from the specified assessment report in // Audit Manager. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation BatchDisassociateAssessmentReportEvidence for usage and error information. // // Returned Error Types: // * ValidationException // The request has invalid or missing parameters. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // * ResourceNotFoundException // The resource specified in the request cannot be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/BatchDisassociateAssessmentReportEvidence func (c *AuditManager) BatchDisassociateAssessmentReportEvidence(input *BatchDisassociateAssessmentReportEvidenceInput) (*BatchDisassociateAssessmentReportEvidenceOutput, error) { req, out := c.BatchDisassociateAssessmentReportEvidenceRequest(input) return out, req.Send() } // BatchDisassociateAssessmentReportEvidenceWithContext is the same as BatchDisassociateAssessmentReportEvidence with the addition of // the ability to pass a context and additional request options. // // See BatchDisassociateAssessmentReportEvidence for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) BatchDisassociateAssessmentReportEvidenceWithContext(ctx aws.Context, input *BatchDisassociateAssessmentReportEvidenceInput, opts ...request.Option) (*BatchDisassociateAssessmentReportEvidenceOutput, error) { req, out := c.BatchDisassociateAssessmentReportEvidenceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opBatchImportEvidenceToAssessmentControl = "BatchImportEvidenceToAssessmentControl" // BatchImportEvidenceToAssessmentControlRequest generates a "aws/request.Request" representing the // client's request for the BatchImportEvidenceToAssessmentControl operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See BatchImportEvidenceToAssessmentControl for more information on using the BatchImportEvidenceToAssessmentControl // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the BatchImportEvidenceToAssessmentControlRequest method. // req, resp := client.BatchImportEvidenceToAssessmentControlRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/BatchImportEvidenceToAssessmentControl func (c *AuditManager) BatchImportEvidenceToAssessmentControlRequest(input *BatchImportEvidenceToAssessmentControlInput) (req *request.Request, output *BatchImportEvidenceToAssessmentControlOutput) { op := &request.Operation{ Name: opBatchImportEvidenceToAssessmentControl, HTTPMethod: "POST", HTTPPath: "/assessments/{assessmentId}/controlSets/{controlSetId}/controls/{controlId}/evidence", } if input == nil { input = &BatchImportEvidenceToAssessmentControlInput{} } output = &BatchImportEvidenceToAssessmentControlOutput{} req = c.newRequest(op, input, output) return } // BatchImportEvidenceToAssessmentControl API operation for AWS Audit Manager. // // Uploads one or more pieces of evidence to the specified control in the assessment // in Audit Manager. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation BatchImportEvidenceToAssessmentControl for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The resource specified in the request cannot be found. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * ValidationException // The request has invalid or missing parameters. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/BatchImportEvidenceToAssessmentControl func (c *AuditManager) BatchImportEvidenceToAssessmentControl(input *BatchImportEvidenceToAssessmentControlInput) (*BatchImportEvidenceToAssessmentControlOutput, error) { req, out := c.BatchImportEvidenceToAssessmentControlRequest(input) return out, req.Send() } // BatchImportEvidenceToAssessmentControlWithContext is the same as BatchImportEvidenceToAssessmentControl with the addition of // the ability to pass a context and additional request options. // // See BatchImportEvidenceToAssessmentControl for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) BatchImportEvidenceToAssessmentControlWithContext(ctx aws.Context, input *BatchImportEvidenceToAssessmentControlInput, opts ...request.Option) (*BatchImportEvidenceToAssessmentControlOutput, error) { req, out := c.BatchImportEvidenceToAssessmentControlRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateAssessment = "CreateAssessment" // CreateAssessmentRequest generates a "aws/request.Request" representing the // client's request for the CreateAssessment operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateAssessment for more information on using the CreateAssessment // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateAssessmentRequest method. // req, resp := client.CreateAssessmentRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/CreateAssessment func (c *AuditManager) CreateAssessmentRequest(input *CreateAssessmentInput) (req *request.Request, output *CreateAssessmentOutput) { op := &request.Operation{ Name: opCreateAssessment, HTTPMethod: "POST", HTTPPath: "/assessments", } if input == nil { input = &CreateAssessmentInput{} } output = &CreateAssessmentOutput{} req = c.newRequest(op, input, output) return } // CreateAssessment API operation for AWS Audit Manager. // // Creates an assessment in Audit Manager. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation CreateAssessment for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The resource specified in the request cannot be found. // // * ValidationException // The request has invalid or missing parameters. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/CreateAssessment func (c *AuditManager) CreateAssessment(input *CreateAssessmentInput) (*CreateAssessmentOutput, error) { req, out := c.CreateAssessmentRequest(input) return out, req.Send() } // CreateAssessmentWithContext is the same as CreateAssessment with the addition of // the ability to pass a context and additional request options. // // See CreateAssessment for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) CreateAssessmentWithContext(ctx aws.Context, input *CreateAssessmentInput, opts ...request.Option) (*CreateAssessmentOutput, error) { req, out := c.CreateAssessmentRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateAssessmentFramework = "CreateAssessmentFramework" // CreateAssessmentFrameworkRequest generates a "aws/request.Request" representing the // client's request for the CreateAssessmentFramework operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateAssessmentFramework for more information on using the CreateAssessmentFramework // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateAssessmentFrameworkRequest method. // req, resp := client.CreateAssessmentFrameworkRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/CreateAssessmentFramework func (c *AuditManager) CreateAssessmentFrameworkRequest(input *CreateAssessmentFrameworkInput) (req *request.Request, output *CreateAssessmentFrameworkOutput) { op := &request.Operation{ Name: opCreateAssessmentFramework, HTTPMethod: "POST", HTTPPath: "/assessmentFrameworks", } if input == nil { input = &CreateAssessmentFrameworkInput{} } output = &CreateAssessmentFrameworkOutput{} req = c.newRequest(op, input, output) return } // CreateAssessmentFramework API operation for AWS Audit Manager. // // Creates a custom framework in Audit Manager. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation CreateAssessmentFramework for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The resource specified in the request cannot be found. // // * ValidationException // The request has invalid or missing parameters. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/CreateAssessmentFramework func (c *AuditManager) CreateAssessmentFramework(input *CreateAssessmentFrameworkInput) (*CreateAssessmentFrameworkOutput, error) { req, out := c.CreateAssessmentFrameworkRequest(input) return out, req.Send() } // CreateAssessmentFrameworkWithContext is the same as CreateAssessmentFramework with the addition of // the ability to pass a context and additional request options. // // See CreateAssessmentFramework for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) CreateAssessmentFrameworkWithContext(ctx aws.Context, input *CreateAssessmentFrameworkInput, opts ...request.Option) (*CreateAssessmentFrameworkOutput, error) { req, out := c.CreateAssessmentFrameworkRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateAssessmentReport = "CreateAssessmentReport" // CreateAssessmentReportRequest generates a "aws/request.Request" representing the // client's request for the CreateAssessmentReport operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateAssessmentReport for more information on using the CreateAssessmentReport // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateAssessmentReportRequest method. // req, resp := client.CreateAssessmentReportRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/CreateAssessmentReport func (c *AuditManager) CreateAssessmentReportRequest(input *CreateAssessmentReportInput) (req *request.Request, output *CreateAssessmentReportOutput) { op := &request.Operation{ Name: opCreateAssessmentReport, HTTPMethod: "POST", HTTPPath: "/assessments/{assessmentId}/reports", } if input == nil { input = &CreateAssessmentReportInput{} } output = &CreateAssessmentReportOutput{} req = c.newRequest(op, input, output) return } // CreateAssessmentReport API operation for AWS Audit Manager. // // Creates an assessment report for the specified assessment. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation CreateAssessmentReport for usage and error information. // // Returned Error Types: // * ValidationException // The request has invalid or missing parameters. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // * ResourceNotFoundException // The resource specified in the request cannot be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/CreateAssessmentReport func (c *AuditManager) CreateAssessmentReport(input *CreateAssessmentReportInput) (*CreateAssessmentReportOutput, error) { req, out := c.CreateAssessmentReportRequest(input) return out, req.Send() } // CreateAssessmentReportWithContext is the same as CreateAssessmentReport with the addition of // the ability to pass a context and additional request options. // // See CreateAssessmentReport for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) CreateAssessmentReportWithContext(ctx aws.Context, input *CreateAssessmentReportInput, opts ...request.Option) (*CreateAssessmentReportOutput, error) { req, out := c.CreateAssessmentReportRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateControl = "CreateControl" // CreateControlRequest generates a "aws/request.Request" representing the // client's request for the CreateControl operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateControl for more information on using the CreateControl // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateControlRequest method. // req, resp := client.CreateControlRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/CreateControl func (c *AuditManager) CreateControlRequest(input *CreateControlInput) (req *request.Request, output *CreateControlOutput) { op := &request.Operation{ Name: opCreateControl, HTTPMethod: "POST", HTTPPath: "/controls", } if input == nil { input = &CreateControlInput{} } output = &CreateControlOutput{} req = c.newRequest(op, input, output) return } // CreateControl API operation for AWS Audit Manager. // // Creates a new custom control in Audit Manager. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation CreateControl for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The resource specified in the request cannot be found. // // * ValidationException // The request has invalid or missing parameters. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/CreateControl func (c *AuditManager) CreateControl(input *CreateControlInput) (*CreateControlOutput, error) { req, out := c.CreateControlRequest(input) return out, req.Send() } // CreateControlWithContext is the same as CreateControl with the addition of // the ability to pass a context and additional request options. // // See CreateControl for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) CreateControlWithContext(ctx aws.Context, input *CreateControlInput, opts ...request.Option) (*CreateControlOutput, error) { req, out := c.CreateControlRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteAssessment = "DeleteAssessment" // DeleteAssessmentRequest generates a "aws/request.Request" representing the // client's request for the DeleteAssessment operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteAssessment for more information on using the DeleteAssessment // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteAssessmentRequest method. // req, resp := client.DeleteAssessmentRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/DeleteAssessment func (c *AuditManager) DeleteAssessmentRequest(input *DeleteAssessmentInput) (req *request.Request, output *DeleteAssessmentOutput) { op := &request.Operation{ Name: opDeleteAssessment, HTTPMethod: "DELETE", HTTPPath: "/assessments/{assessmentId}", } if input == nil { input = &DeleteAssessmentInput{} } output = &DeleteAssessmentOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteAssessment API operation for AWS Audit Manager. // // Deletes an assessment in Audit Manager. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation DeleteAssessment for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The resource specified in the request cannot be found. // // * ValidationException // The request has invalid or missing parameters. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/DeleteAssessment func (c *AuditManager) DeleteAssessment(input *DeleteAssessmentInput) (*DeleteAssessmentOutput, error) { req, out := c.DeleteAssessmentRequest(input) return out, req.Send() } // DeleteAssessmentWithContext is the same as DeleteAssessment with the addition of // the ability to pass a context and additional request options. // // See DeleteAssessment for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) DeleteAssessmentWithContext(ctx aws.Context, input *DeleteAssessmentInput, opts ...request.Option) (*DeleteAssessmentOutput, error) { req, out := c.DeleteAssessmentRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteAssessmentFramework = "DeleteAssessmentFramework" // DeleteAssessmentFrameworkRequest generates a "aws/request.Request" representing the // client's request for the DeleteAssessmentFramework operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteAssessmentFramework for more information on using the DeleteAssessmentFramework // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteAssessmentFrameworkRequest method. // req, resp := client.DeleteAssessmentFrameworkRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/DeleteAssessmentFramework func (c *AuditManager) DeleteAssessmentFrameworkRequest(input *DeleteAssessmentFrameworkInput) (req *request.Request, output *DeleteAssessmentFrameworkOutput) { op := &request.Operation{ Name: opDeleteAssessmentFramework, HTTPMethod: "DELETE", HTTPPath: "/assessmentFrameworks/{frameworkId}", } if input == nil { input = &DeleteAssessmentFrameworkInput{} } output = &DeleteAssessmentFrameworkOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteAssessmentFramework API operation for AWS Audit Manager. // // Deletes a custom framework in Audit Manager. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation DeleteAssessmentFramework for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The resource specified in the request cannot be found. // // * ValidationException // The request has invalid or missing parameters. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/DeleteAssessmentFramework func (c *AuditManager) DeleteAssessmentFramework(input *DeleteAssessmentFrameworkInput) (*DeleteAssessmentFrameworkOutput, error) { req, out := c.DeleteAssessmentFrameworkRequest(input) return out, req.Send() } // DeleteAssessmentFrameworkWithContext is the same as DeleteAssessmentFramework with the addition of // the ability to pass a context and additional request options. // // See DeleteAssessmentFramework for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) DeleteAssessmentFrameworkWithContext(ctx aws.Context, input *DeleteAssessmentFrameworkInput, opts ...request.Option) (*DeleteAssessmentFrameworkOutput, error) { req, out := c.DeleteAssessmentFrameworkRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteAssessmentReport = "DeleteAssessmentReport" // DeleteAssessmentReportRequest generates a "aws/request.Request" representing the // client's request for the DeleteAssessmentReport operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteAssessmentReport for more information on using the DeleteAssessmentReport // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteAssessmentReportRequest method. // req, resp := client.DeleteAssessmentReportRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/DeleteAssessmentReport func (c *AuditManager) DeleteAssessmentReportRequest(input *DeleteAssessmentReportInput) (req *request.Request, output *DeleteAssessmentReportOutput) { op := &request.Operation{ Name: opDeleteAssessmentReport, HTTPMethod: "DELETE", HTTPPath: "/assessments/{assessmentId}/reports/{assessmentReportId}", } if input == nil { input = &DeleteAssessmentReportInput{} } output = &DeleteAssessmentReportOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteAssessmentReport API operation for AWS Audit Manager. // // Deletes an assessment report from an assessment in Audit Manager. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation DeleteAssessmentReport for usage and error information. // // Returned Error Types: // * ValidationException // The request has invalid or missing parameters. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // * ResourceNotFoundException // The resource specified in the request cannot be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/DeleteAssessmentReport func (c *AuditManager) DeleteAssessmentReport(input *DeleteAssessmentReportInput) (*DeleteAssessmentReportOutput, error) { req, out := c.DeleteAssessmentReportRequest(input) return out, req.Send() } // DeleteAssessmentReportWithContext is the same as DeleteAssessmentReport with the addition of // the ability to pass a context and additional request options. // // See DeleteAssessmentReport for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) DeleteAssessmentReportWithContext(ctx aws.Context, input *DeleteAssessmentReportInput, opts ...request.Option) (*DeleteAssessmentReportOutput, error) { req, out := c.DeleteAssessmentReportRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteControl = "DeleteControl" // DeleteControlRequest generates a "aws/request.Request" representing the // client's request for the DeleteControl operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteControl for more information on using the DeleteControl // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteControlRequest method. // req, resp := client.DeleteControlRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/DeleteControl func (c *AuditManager) DeleteControlRequest(input *DeleteControlInput) (req *request.Request, output *DeleteControlOutput) { op := &request.Operation{ Name: opDeleteControl, HTTPMethod: "DELETE", HTTPPath: "/controls/{controlId}", } if input == nil { input = &DeleteControlInput{} } output = &DeleteControlOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteControl API operation for AWS Audit Manager. // // Deletes a custom control in Audit Manager. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation DeleteControl for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The resource specified in the request cannot be found. // // * ValidationException // The request has invalid or missing parameters. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/DeleteControl func (c *AuditManager) DeleteControl(input *DeleteControlInput) (*DeleteControlOutput, error) { req, out := c.DeleteControlRequest(input) return out, req.Send() } // DeleteControlWithContext is the same as DeleteControl with the addition of // the ability to pass a context and additional request options. // // See DeleteControl for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) DeleteControlWithContext(ctx aws.Context, input *DeleteControlInput, opts ...request.Option) (*DeleteControlOutput, error) { req, out := c.DeleteControlRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeregisterAccount = "DeregisterAccount" // DeregisterAccountRequest generates a "aws/request.Request" representing the // client's request for the DeregisterAccount operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeregisterAccount for more information on using the DeregisterAccount // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeregisterAccountRequest method. // req, resp := client.DeregisterAccountRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/DeregisterAccount func (c *AuditManager) DeregisterAccountRequest(input *DeregisterAccountInput) (req *request.Request, output *DeregisterAccountOutput) { op := &request.Operation{ Name: opDeregisterAccount, HTTPMethod: "POST", HTTPPath: "/account/deregisterAccount", } if input == nil { input = &DeregisterAccountInput{} } output = &DeregisterAccountOutput{} req = c.newRequest(op, input, output) return } // DeregisterAccount API operation for AWS Audit Manager. // // Deregisters an account in Audit Manager. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation DeregisterAccount for usage and error information. // // Returned Error Types: // * ValidationException // The request has invalid or missing parameters. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // * ResourceNotFoundException // The resource specified in the request cannot be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/DeregisterAccount func (c *AuditManager) DeregisterAccount(input *DeregisterAccountInput) (*DeregisterAccountOutput, error) { req, out := c.DeregisterAccountRequest(input) return out, req.Send() } // DeregisterAccountWithContext is the same as DeregisterAccount with the addition of // the ability to pass a context and additional request options. // // See DeregisterAccount for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) DeregisterAccountWithContext(ctx aws.Context, input *DeregisterAccountInput, opts ...request.Option) (*DeregisterAccountOutput, error) { req, out := c.DeregisterAccountRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeregisterOrganizationAdminAccount = "DeregisterOrganizationAdminAccount" // DeregisterOrganizationAdminAccountRequest generates a "aws/request.Request" representing the // client's request for the DeregisterOrganizationAdminAccount operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeregisterOrganizationAdminAccount for more information on using the DeregisterOrganizationAdminAccount // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeregisterOrganizationAdminAccountRequest method. // req, resp := client.DeregisterOrganizationAdminAccountRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/DeregisterOrganizationAdminAccount func (c *AuditManager) DeregisterOrganizationAdminAccountRequest(input *DeregisterOrganizationAdminAccountInput) (req *request.Request, output *DeregisterOrganizationAdminAccountOutput) { op := &request.Operation{ Name: opDeregisterOrganizationAdminAccount, HTTPMethod: "POST", HTTPPath: "/account/deregisterOrganizationAdminAccount", } if input == nil { input = &DeregisterOrganizationAdminAccountInput{} } output = &DeregisterOrganizationAdminAccountOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeregisterOrganizationAdminAccount API operation for AWS Audit Manager. // // Removes the specified member account as a delegated administrator for Audit // Manager. // // When you remove a delegated administrator from your Audit Manager settings, // or when you deregister a delegated administrator from Organizations, you // continue to have access to the evidence that you previously collected under // that account. However, Audit Manager will stop collecting and attaching evidence // to that delegated administrator account moving forward. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation DeregisterOrganizationAdminAccount for usage and error information. // // Returned Error Types: // * ValidationException // The request has invalid or missing parameters. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // * ResourceNotFoundException // The resource specified in the request cannot be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/DeregisterOrganizationAdminAccount func (c *AuditManager) DeregisterOrganizationAdminAccount(input *DeregisterOrganizationAdminAccountInput) (*DeregisterOrganizationAdminAccountOutput, error) { req, out := c.DeregisterOrganizationAdminAccountRequest(input) return out, req.Send() } // DeregisterOrganizationAdminAccountWithContext is the same as DeregisterOrganizationAdminAccount with the addition of // the ability to pass a context and additional request options. // // See DeregisterOrganizationAdminAccount for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) DeregisterOrganizationAdminAccountWithContext(ctx aws.Context, input *DeregisterOrganizationAdminAccountInput, opts ...request.Option) (*DeregisterOrganizationAdminAccountOutput, error) { req, out := c.DeregisterOrganizationAdminAccountRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDisassociateAssessmentReportEvidenceFolder = "DisassociateAssessmentReportEvidenceFolder" // DisassociateAssessmentReportEvidenceFolderRequest generates a "aws/request.Request" representing the // client's request for the DisassociateAssessmentReportEvidenceFolder operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DisassociateAssessmentReportEvidenceFolder for more information on using the DisassociateAssessmentReportEvidenceFolder // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DisassociateAssessmentReportEvidenceFolderRequest method. // req, resp := client.DisassociateAssessmentReportEvidenceFolderRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/DisassociateAssessmentReportEvidenceFolder func (c *AuditManager) DisassociateAssessmentReportEvidenceFolderRequest(input *DisassociateAssessmentReportEvidenceFolderInput) (req *request.Request, output *DisassociateAssessmentReportEvidenceFolderOutput) { op := &request.Operation{ Name: opDisassociateAssessmentReportEvidenceFolder, HTTPMethod: "PUT", HTTPPath: "/assessments/{assessmentId}/disassociateFromAssessmentReport", } if input == nil { input = &DisassociateAssessmentReportEvidenceFolderInput{} } output = &DisassociateAssessmentReportEvidenceFolderOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DisassociateAssessmentReportEvidenceFolder API operation for AWS Audit Manager. // // Disassociates an evidence folder from the specified assessment report in // Audit Manager. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation DisassociateAssessmentReportEvidenceFolder for usage and error information. // // Returned Error Types: // * ValidationException // The request has invalid or missing parameters. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // * ResourceNotFoundException // The resource specified in the request cannot be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/DisassociateAssessmentReportEvidenceFolder func (c *AuditManager) DisassociateAssessmentReportEvidenceFolder(input *DisassociateAssessmentReportEvidenceFolderInput) (*DisassociateAssessmentReportEvidenceFolderOutput, error) { req, out := c.DisassociateAssessmentReportEvidenceFolderRequest(input) return out, req.Send() } // DisassociateAssessmentReportEvidenceFolderWithContext is the same as DisassociateAssessmentReportEvidenceFolder with the addition of // the ability to pass a context and additional request options. // // See DisassociateAssessmentReportEvidenceFolder for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) DisassociateAssessmentReportEvidenceFolderWithContext(ctx aws.Context, input *DisassociateAssessmentReportEvidenceFolderInput, opts ...request.Option) (*DisassociateAssessmentReportEvidenceFolderOutput, error) { req, out := c.DisassociateAssessmentReportEvidenceFolderRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetAccountStatus = "GetAccountStatus" // GetAccountStatusRequest generates a "aws/request.Request" representing the // client's request for the GetAccountStatus operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetAccountStatus for more information on using the GetAccountStatus // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetAccountStatusRequest method. // req, resp := client.GetAccountStatusRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/GetAccountStatus func (c *AuditManager) GetAccountStatusRequest(input *GetAccountStatusInput) (req *request.Request, output *GetAccountStatusOutput) { op := &request.Operation{ Name: opGetAccountStatus, HTTPMethod: "GET", HTTPPath: "/account/status", } if input == nil { input = &GetAccountStatusInput{} } output = &GetAccountStatusOutput{} req = c.newRequest(op, input, output) return } // GetAccountStatus API operation for AWS Audit Manager. // // Returns the registration status of an account in Audit Manager. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation GetAccountStatus for usage and error information. // // Returned Error Types: // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/GetAccountStatus func (c *AuditManager) GetAccountStatus(input *GetAccountStatusInput) (*GetAccountStatusOutput, error) { req, out := c.GetAccountStatusRequest(input) return out, req.Send() } // GetAccountStatusWithContext is the same as GetAccountStatus with the addition of // the ability to pass a context and additional request options. // // See GetAccountStatus for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) GetAccountStatusWithContext(ctx aws.Context, input *GetAccountStatusInput, opts ...request.Option) (*GetAccountStatusOutput, error) { req, out := c.GetAccountStatusRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetAssessment = "GetAssessment" // GetAssessmentRequest generates a "aws/request.Request" representing the // client's request for the GetAssessment operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetAssessment for more information on using the GetAssessment // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetAssessmentRequest method. // req, resp := client.GetAssessmentRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/GetAssessment func (c *AuditManager) GetAssessmentRequest(input *GetAssessmentInput) (req *request.Request, output *GetAssessmentOutput) { op := &request.Operation{ Name: opGetAssessment, HTTPMethod: "GET", HTTPPath: "/assessments/{assessmentId}", } if input == nil { input = &GetAssessmentInput{} } output = &GetAssessmentOutput{} req = c.newRequest(op, input, output) return } // GetAssessment API operation for AWS Audit Manager. // // Returns an assessment from Audit Manager. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation GetAssessment for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The resource specified in the request cannot be found. // // * ValidationException // The request has invalid or missing parameters. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/GetAssessment func (c *AuditManager) GetAssessment(input *GetAssessmentInput) (*GetAssessmentOutput, error) { req, out := c.GetAssessmentRequest(input) return out, req.Send() } // GetAssessmentWithContext is the same as GetAssessment with the addition of // the ability to pass a context and additional request options. // // See GetAssessment for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) GetAssessmentWithContext(ctx aws.Context, input *GetAssessmentInput, opts ...request.Option) (*GetAssessmentOutput, error) { req, out := c.GetAssessmentRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetAssessmentFramework = "GetAssessmentFramework" // GetAssessmentFrameworkRequest generates a "aws/request.Request" representing the // client's request for the GetAssessmentFramework operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetAssessmentFramework for more information on using the GetAssessmentFramework // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetAssessmentFrameworkRequest method. // req, resp := client.GetAssessmentFrameworkRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/GetAssessmentFramework func (c *AuditManager) GetAssessmentFrameworkRequest(input *GetAssessmentFrameworkInput) (req *request.Request, output *GetAssessmentFrameworkOutput) { op := &request.Operation{ Name: opGetAssessmentFramework, HTTPMethod: "GET", HTTPPath: "/assessmentFrameworks/{frameworkId}", } if input == nil { input = &GetAssessmentFrameworkInput{} } output = &GetAssessmentFrameworkOutput{} req = c.newRequest(op, input, output) return } // GetAssessmentFramework API operation for AWS Audit Manager. // // Returns a framework from Audit Manager. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation GetAssessmentFramework for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The resource specified in the request cannot be found. // // * ValidationException // The request has invalid or missing parameters. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/GetAssessmentFramework func (c *AuditManager) GetAssessmentFramework(input *GetAssessmentFrameworkInput) (*GetAssessmentFrameworkOutput, error) { req, out := c.GetAssessmentFrameworkRequest(input) return out, req.Send() } // GetAssessmentFrameworkWithContext is the same as GetAssessmentFramework with the addition of // the ability to pass a context and additional request options. // // See GetAssessmentFramework for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) GetAssessmentFrameworkWithContext(ctx aws.Context, input *GetAssessmentFrameworkInput, opts ...request.Option) (*GetAssessmentFrameworkOutput, error) { req, out := c.GetAssessmentFrameworkRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetAssessmentReportUrl = "GetAssessmentReportUrl" // GetAssessmentReportUrlRequest generates a "aws/request.Request" representing the // client's request for the GetAssessmentReportUrl operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetAssessmentReportUrl for more information on using the GetAssessmentReportUrl // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetAssessmentReportUrlRequest method. // req, resp := client.GetAssessmentReportUrlRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/GetAssessmentReportUrl func (c *AuditManager) GetAssessmentReportUrlRequest(input *GetAssessmentReportUrlInput) (req *request.Request, output *GetAssessmentReportUrlOutput) { op := &request.Operation{ Name: opGetAssessmentReportUrl, HTTPMethod: "GET", HTTPPath: "/assessments/{assessmentId}/reports/{assessmentReportId}/url", } if input == nil { input = &GetAssessmentReportUrlInput{} } output = &GetAssessmentReportUrlOutput{} req = c.newRequest(op, input, output) return } // GetAssessmentReportUrl API operation for AWS Audit Manager. // // Returns the URL of a specified assessment report in Audit Manager. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation GetAssessmentReportUrl for usage and error information. // // Returned Error Types: // * ValidationException // The request has invalid or missing parameters. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // * ResourceNotFoundException // The resource specified in the request cannot be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/GetAssessmentReportUrl func (c *AuditManager) GetAssessmentReportUrl(input *GetAssessmentReportUrlInput) (*GetAssessmentReportUrlOutput, error) { req, out := c.GetAssessmentReportUrlRequest(input) return out, req.Send() } // GetAssessmentReportUrlWithContext is the same as GetAssessmentReportUrl with the addition of // the ability to pass a context and additional request options. // // See GetAssessmentReportUrl for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) GetAssessmentReportUrlWithContext(ctx aws.Context, input *GetAssessmentReportUrlInput, opts ...request.Option) (*GetAssessmentReportUrlOutput, error) { req, out := c.GetAssessmentReportUrlRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetChangeLogs = "GetChangeLogs" // GetChangeLogsRequest generates a "aws/request.Request" representing the // client's request for the GetChangeLogs operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetChangeLogs for more information on using the GetChangeLogs // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetChangeLogsRequest method. // req, resp := client.GetChangeLogsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/GetChangeLogs func (c *AuditManager) GetChangeLogsRequest(input *GetChangeLogsInput) (req *request.Request, output *GetChangeLogsOutput) { op := &request.Operation{ Name: opGetChangeLogs, HTTPMethod: "GET", HTTPPath: "/assessments/{assessmentId}/changelogs", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, LimitToken: "maxResults", TruncationToken: "", }, } if input == nil { input = &GetChangeLogsInput{} } output = &GetChangeLogsOutput{} req = c.newRequest(op, input, output) return } // GetChangeLogs API operation for AWS Audit Manager. // // Returns a list of changelogs from Audit Manager. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation GetChangeLogs for usage and error information. // // Returned Error Types: // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * ResourceNotFoundException // The resource specified in the request cannot be found. // // * ValidationException // The request has invalid or missing parameters. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/GetChangeLogs func (c *AuditManager) GetChangeLogs(input *GetChangeLogsInput) (*GetChangeLogsOutput, error) { req, out := c.GetChangeLogsRequest(input) return out, req.Send() } // GetChangeLogsWithContext is the same as GetChangeLogs with the addition of // the ability to pass a context and additional request options. // // See GetChangeLogs for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) GetChangeLogsWithContext(ctx aws.Context, input *GetChangeLogsInput, opts ...request.Option) (*GetChangeLogsOutput, error) { req, out := c.GetChangeLogsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // GetChangeLogsPages iterates over the pages of a GetChangeLogs operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See GetChangeLogs method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a GetChangeLogs operation. // pageNum := 0 // err := client.GetChangeLogsPages(params, // func(page *auditmanager.GetChangeLogsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *AuditManager) GetChangeLogsPages(input *GetChangeLogsInput, fn func(*GetChangeLogsOutput, bool) bool) error { return c.GetChangeLogsPagesWithContext(aws.BackgroundContext(), input, fn) } // GetChangeLogsPagesWithContext same as GetChangeLogsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) GetChangeLogsPagesWithContext(ctx aws.Context, input *GetChangeLogsInput, fn func(*GetChangeLogsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *GetChangeLogsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.GetChangeLogsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*GetChangeLogsOutput), !p.HasNextPage()) { break } } return p.Err() } const opGetControl = "GetControl" // GetControlRequest generates a "aws/request.Request" representing the // client's request for the GetControl operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetControl for more information on using the GetControl // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetControlRequest method. // req, resp := client.GetControlRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/GetControl func (c *AuditManager) GetControlRequest(input *GetControlInput) (req *request.Request, output *GetControlOutput) { op := &request.Operation{ Name: opGetControl, HTTPMethod: "GET", HTTPPath: "/controls/{controlId}", } if input == nil { input = &GetControlInput{} } output = &GetControlOutput{} req = c.newRequest(op, input, output) return } // GetControl API operation for AWS Audit Manager. // // Returns a control from Audit Manager. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation GetControl for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The resource specified in the request cannot be found. // // * ValidationException // The request has invalid or missing parameters. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/GetControl func (c *AuditManager) GetControl(input *GetControlInput) (*GetControlOutput, error) { req, out := c.GetControlRequest(input) return out, req.Send() } // GetControlWithContext is the same as GetControl with the addition of // the ability to pass a context and additional request options. // // See GetControl for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) GetControlWithContext(ctx aws.Context, input *GetControlInput, opts ...request.Option) (*GetControlOutput, error) { req, out := c.GetControlRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetDelegations = "GetDelegations" // GetDelegationsRequest generates a "aws/request.Request" representing the // client's request for the GetDelegations operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetDelegations for more information on using the GetDelegations // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetDelegationsRequest method. // req, resp := client.GetDelegationsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/GetDelegations func (c *AuditManager) GetDelegationsRequest(input *GetDelegationsInput) (req *request.Request, output *GetDelegationsOutput) { op := &request.Operation{ Name: opGetDelegations, HTTPMethod: "GET", HTTPPath: "/delegations", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, LimitToken: "maxResults", TruncationToken: "", }, } if input == nil { input = &GetDelegationsInput{} } output = &GetDelegationsOutput{} req = c.newRequest(op, input, output) return } // GetDelegations API operation for AWS Audit Manager. // // Returns a list of delegations from an audit owner to a delegate. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation GetDelegations for usage and error information. // // Returned Error Types: // * ValidationException // The request has invalid or missing parameters. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/GetDelegations func (c *AuditManager) GetDelegations(input *GetDelegationsInput) (*GetDelegationsOutput, error) { req, out := c.GetDelegationsRequest(input) return out, req.Send() } // GetDelegationsWithContext is the same as GetDelegations with the addition of // the ability to pass a context and additional request options. // // See GetDelegations for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) GetDelegationsWithContext(ctx aws.Context, input *GetDelegationsInput, opts ...request.Option) (*GetDelegationsOutput, error) { req, out := c.GetDelegationsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // GetDelegationsPages iterates over the pages of a GetDelegations operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See GetDelegations method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a GetDelegations operation. // pageNum := 0 // err := client.GetDelegationsPages(params, // func(page *auditmanager.GetDelegationsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *AuditManager) GetDelegationsPages(input *GetDelegationsInput, fn func(*GetDelegationsOutput, bool) bool) error { return c.GetDelegationsPagesWithContext(aws.BackgroundContext(), input, fn) } // GetDelegationsPagesWithContext same as GetDelegationsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) GetDelegationsPagesWithContext(ctx aws.Context, input *GetDelegationsInput, fn func(*GetDelegationsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *GetDelegationsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.GetDelegationsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*GetDelegationsOutput), !p.HasNextPage()) { break } } return p.Err() } const opGetEvidence = "GetEvidence" // GetEvidenceRequest generates a "aws/request.Request" representing the // client's request for the GetEvidence operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetEvidence for more information on using the GetEvidence // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetEvidenceRequest method. // req, resp := client.GetEvidenceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/GetEvidence func (c *AuditManager) GetEvidenceRequest(input *GetEvidenceInput) (req *request.Request, output *GetEvidenceOutput) { op := &request.Operation{ Name: opGetEvidence, HTTPMethod: "GET", HTTPPath: "/assessments/{assessmentId}/controlSets/{controlSetId}/evidenceFolders/{evidenceFolderId}/evidence/{evidenceId}", } if input == nil { input = &GetEvidenceInput{} } output = &GetEvidenceOutput{} req = c.newRequest(op, input, output) return } // GetEvidence API operation for AWS Audit Manager. // // Returns evidence from Audit Manager. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation GetEvidence for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The resource specified in the request cannot be found. // // * ValidationException // The request has invalid or missing parameters. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/GetEvidence func (c *AuditManager) GetEvidence(input *GetEvidenceInput) (*GetEvidenceOutput, error) { req, out := c.GetEvidenceRequest(input) return out, req.Send() } // GetEvidenceWithContext is the same as GetEvidence with the addition of // the ability to pass a context and additional request options. // // See GetEvidence for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) GetEvidenceWithContext(ctx aws.Context, input *GetEvidenceInput, opts ...request.Option) (*GetEvidenceOutput, error) { req, out := c.GetEvidenceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetEvidenceByEvidenceFolder = "GetEvidenceByEvidenceFolder" // GetEvidenceByEvidenceFolderRequest generates a "aws/request.Request" representing the // client's request for the GetEvidenceByEvidenceFolder operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetEvidenceByEvidenceFolder for more information on using the GetEvidenceByEvidenceFolder // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetEvidenceByEvidenceFolderRequest method. // req, resp := client.GetEvidenceByEvidenceFolderRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/GetEvidenceByEvidenceFolder func (c *AuditManager) GetEvidenceByEvidenceFolderRequest(input *GetEvidenceByEvidenceFolderInput) (req *request.Request, output *GetEvidenceByEvidenceFolderOutput) { op := &request.Operation{ Name: opGetEvidenceByEvidenceFolder, HTTPMethod: "GET", HTTPPath: "/assessments/{assessmentId}/controlSets/{controlSetId}/evidenceFolders/{evidenceFolderId}/evidence", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, LimitToken: "maxResults", TruncationToken: "", }, } if input == nil { input = &GetEvidenceByEvidenceFolderInput{} } output = &GetEvidenceByEvidenceFolderOutput{} req = c.newRequest(op, input, output) return } // GetEvidenceByEvidenceFolder API operation for AWS Audit Manager. // // Returns all evidence from a specified evidence folder in Audit Manager. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation GetEvidenceByEvidenceFolder for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The resource specified in the request cannot be found. // // * ValidationException // The request has invalid or missing parameters. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/GetEvidenceByEvidenceFolder func (c *AuditManager) GetEvidenceByEvidenceFolder(input *GetEvidenceByEvidenceFolderInput) (*GetEvidenceByEvidenceFolderOutput, error) { req, out := c.GetEvidenceByEvidenceFolderRequest(input) return out, req.Send() } // GetEvidenceByEvidenceFolderWithContext is the same as GetEvidenceByEvidenceFolder with the addition of // the ability to pass a context and additional request options. // // See GetEvidenceByEvidenceFolder for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) GetEvidenceByEvidenceFolderWithContext(ctx aws.Context, input *GetEvidenceByEvidenceFolderInput, opts ...request.Option) (*GetEvidenceByEvidenceFolderOutput, error) { req, out := c.GetEvidenceByEvidenceFolderRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // GetEvidenceByEvidenceFolderPages iterates over the pages of a GetEvidenceByEvidenceFolder operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See GetEvidenceByEvidenceFolder method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a GetEvidenceByEvidenceFolder operation. // pageNum := 0 // err := client.GetEvidenceByEvidenceFolderPages(params, // func(page *auditmanager.GetEvidenceByEvidenceFolderOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *AuditManager) GetEvidenceByEvidenceFolderPages(input *GetEvidenceByEvidenceFolderInput, fn func(*GetEvidenceByEvidenceFolderOutput, bool) bool) error { return c.GetEvidenceByEvidenceFolderPagesWithContext(aws.BackgroundContext(), input, fn) } // GetEvidenceByEvidenceFolderPagesWithContext same as GetEvidenceByEvidenceFolderPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) GetEvidenceByEvidenceFolderPagesWithContext(ctx aws.Context, input *GetEvidenceByEvidenceFolderInput, fn func(*GetEvidenceByEvidenceFolderOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *GetEvidenceByEvidenceFolderInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.GetEvidenceByEvidenceFolderRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*GetEvidenceByEvidenceFolderOutput), !p.HasNextPage()) { break } } return p.Err() } const opGetEvidenceFolder = "GetEvidenceFolder" // GetEvidenceFolderRequest generates a "aws/request.Request" representing the // client's request for the GetEvidenceFolder operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetEvidenceFolder for more information on using the GetEvidenceFolder // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetEvidenceFolderRequest method. // req, resp := client.GetEvidenceFolderRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/GetEvidenceFolder func (c *AuditManager) GetEvidenceFolderRequest(input *GetEvidenceFolderInput) (req *request.Request, output *GetEvidenceFolderOutput) { op := &request.Operation{ Name: opGetEvidenceFolder, HTTPMethod: "GET", HTTPPath: "/assessments/{assessmentId}/controlSets/{controlSetId}/evidenceFolders/{evidenceFolderId}", } if input == nil { input = &GetEvidenceFolderInput{} } output = &GetEvidenceFolderOutput{} req = c.newRequest(op, input, output) return } // GetEvidenceFolder API operation for AWS Audit Manager. // // Returns an evidence folder from the specified assessment in Audit Manager. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation GetEvidenceFolder for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The resource specified in the request cannot be found. // // * ValidationException // The request has invalid or missing parameters. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/GetEvidenceFolder func (c *AuditManager) GetEvidenceFolder(input *GetEvidenceFolderInput) (*GetEvidenceFolderOutput, error) { req, out := c.GetEvidenceFolderRequest(input) return out, req.Send() } // GetEvidenceFolderWithContext is the same as GetEvidenceFolder with the addition of // the ability to pass a context and additional request options. // // See GetEvidenceFolder for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) GetEvidenceFolderWithContext(ctx aws.Context, input *GetEvidenceFolderInput, opts ...request.Option) (*GetEvidenceFolderOutput, error) { req, out := c.GetEvidenceFolderRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetEvidenceFoldersByAssessment = "GetEvidenceFoldersByAssessment" // GetEvidenceFoldersByAssessmentRequest generates a "aws/request.Request" representing the // client's request for the GetEvidenceFoldersByAssessment operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetEvidenceFoldersByAssessment for more information on using the GetEvidenceFoldersByAssessment // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetEvidenceFoldersByAssessmentRequest method. // req, resp := client.GetEvidenceFoldersByAssessmentRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/GetEvidenceFoldersByAssessment func (c *AuditManager) GetEvidenceFoldersByAssessmentRequest(input *GetEvidenceFoldersByAssessmentInput) (req *request.Request, output *GetEvidenceFoldersByAssessmentOutput) { op := &request.Operation{ Name: opGetEvidenceFoldersByAssessment, HTTPMethod: "GET", HTTPPath: "/assessments/{assessmentId}/evidenceFolders", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, LimitToken: "maxResults", TruncationToken: "", }, } if input == nil { input = &GetEvidenceFoldersByAssessmentInput{} } output = &GetEvidenceFoldersByAssessmentOutput{} req = c.newRequest(op, input, output) return } // GetEvidenceFoldersByAssessment API operation for AWS Audit Manager. // // Returns the evidence folders from a specified assessment in Audit Manager. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation GetEvidenceFoldersByAssessment for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The resource specified in the request cannot be found. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * ValidationException // The request has invalid or missing parameters. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/GetEvidenceFoldersByAssessment func (c *AuditManager) GetEvidenceFoldersByAssessment(input *GetEvidenceFoldersByAssessmentInput) (*GetEvidenceFoldersByAssessmentOutput, error) { req, out := c.GetEvidenceFoldersByAssessmentRequest(input) return out, req.Send() } // GetEvidenceFoldersByAssessmentWithContext is the same as GetEvidenceFoldersByAssessment with the addition of // the ability to pass a context and additional request options. // // See GetEvidenceFoldersByAssessment for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) GetEvidenceFoldersByAssessmentWithContext(ctx aws.Context, input *GetEvidenceFoldersByAssessmentInput, opts ...request.Option) (*GetEvidenceFoldersByAssessmentOutput, error) { req, out := c.GetEvidenceFoldersByAssessmentRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // GetEvidenceFoldersByAssessmentPages iterates over the pages of a GetEvidenceFoldersByAssessment operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See GetEvidenceFoldersByAssessment method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a GetEvidenceFoldersByAssessment operation. // pageNum := 0 // err := client.GetEvidenceFoldersByAssessmentPages(params, // func(page *auditmanager.GetEvidenceFoldersByAssessmentOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *AuditManager) GetEvidenceFoldersByAssessmentPages(input *GetEvidenceFoldersByAssessmentInput, fn func(*GetEvidenceFoldersByAssessmentOutput, bool) bool) error { return c.GetEvidenceFoldersByAssessmentPagesWithContext(aws.BackgroundContext(), input, fn) } // GetEvidenceFoldersByAssessmentPagesWithContext same as GetEvidenceFoldersByAssessmentPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) GetEvidenceFoldersByAssessmentPagesWithContext(ctx aws.Context, input *GetEvidenceFoldersByAssessmentInput, fn func(*GetEvidenceFoldersByAssessmentOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *GetEvidenceFoldersByAssessmentInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.GetEvidenceFoldersByAssessmentRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*GetEvidenceFoldersByAssessmentOutput), !p.HasNextPage()) { break } } return p.Err() } const opGetEvidenceFoldersByAssessmentControl = "GetEvidenceFoldersByAssessmentControl" // GetEvidenceFoldersByAssessmentControlRequest generates a "aws/request.Request" representing the // client's request for the GetEvidenceFoldersByAssessmentControl operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetEvidenceFoldersByAssessmentControl for more information on using the GetEvidenceFoldersByAssessmentControl // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetEvidenceFoldersByAssessmentControlRequest method. // req, resp := client.GetEvidenceFoldersByAssessmentControlRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/GetEvidenceFoldersByAssessmentControl func (c *AuditManager) GetEvidenceFoldersByAssessmentControlRequest(input *GetEvidenceFoldersByAssessmentControlInput) (req *request.Request, output *GetEvidenceFoldersByAssessmentControlOutput) { op := &request.Operation{ Name: opGetEvidenceFoldersByAssessmentControl, HTTPMethod: "GET", HTTPPath: "/assessments/{assessmentId}/evidenceFolders-by-assessment-control/{controlSetId}/{controlId}", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, LimitToken: "maxResults", TruncationToken: "", }, } if input == nil { input = &GetEvidenceFoldersByAssessmentControlInput{} } output = &GetEvidenceFoldersByAssessmentControlOutput{} req = c.newRequest(op, input, output) return } // GetEvidenceFoldersByAssessmentControl API operation for AWS Audit Manager. // // Returns a list of evidence folders associated with a specified control of // an assessment in Audit Manager. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation GetEvidenceFoldersByAssessmentControl for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The resource specified in the request cannot be found. // // * ValidationException // The request has invalid or missing parameters. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/GetEvidenceFoldersByAssessmentControl func (c *AuditManager) GetEvidenceFoldersByAssessmentControl(input *GetEvidenceFoldersByAssessmentControlInput) (*GetEvidenceFoldersByAssessmentControlOutput, error) { req, out := c.GetEvidenceFoldersByAssessmentControlRequest(input) return out, req.Send() } // GetEvidenceFoldersByAssessmentControlWithContext is the same as GetEvidenceFoldersByAssessmentControl with the addition of // the ability to pass a context and additional request options. // // See GetEvidenceFoldersByAssessmentControl for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) GetEvidenceFoldersByAssessmentControlWithContext(ctx aws.Context, input *GetEvidenceFoldersByAssessmentControlInput, opts ...request.Option) (*GetEvidenceFoldersByAssessmentControlOutput, error) { req, out := c.GetEvidenceFoldersByAssessmentControlRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // GetEvidenceFoldersByAssessmentControlPages iterates over the pages of a GetEvidenceFoldersByAssessmentControl operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See GetEvidenceFoldersByAssessmentControl method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a GetEvidenceFoldersByAssessmentControl operation. // pageNum := 0 // err := client.GetEvidenceFoldersByAssessmentControlPages(params, // func(page *auditmanager.GetEvidenceFoldersByAssessmentControlOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *AuditManager) GetEvidenceFoldersByAssessmentControlPages(input *GetEvidenceFoldersByAssessmentControlInput, fn func(*GetEvidenceFoldersByAssessmentControlOutput, bool) bool) error { return c.GetEvidenceFoldersByAssessmentControlPagesWithContext(aws.BackgroundContext(), input, fn) } // GetEvidenceFoldersByAssessmentControlPagesWithContext same as GetEvidenceFoldersByAssessmentControlPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) GetEvidenceFoldersByAssessmentControlPagesWithContext(ctx aws.Context, input *GetEvidenceFoldersByAssessmentControlInput, fn func(*GetEvidenceFoldersByAssessmentControlOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *GetEvidenceFoldersByAssessmentControlInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.GetEvidenceFoldersByAssessmentControlRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*GetEvidenceFoldersByAssessmentControlOutput), !p.HasNextPage()) { break } } return p.Err() } const opGetOrganizationAdminAccount = "GetOrganizationAdminAccount" // GetOrganizationAdminAccountRequest generates a "aws/request.Request" representing the // client's request for the GetOrganizationAdminAccount operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetOrganizationAdminAccount for more information on using the GetOrganizationAdminAccount // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetOrganizationAdminAccountRequest method. // req, resp := client.GetOrganizationAdminAccountRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/GetOrganizationAdminAccount func (c *AuditManager) GetOrganizationAdminAccountRequest(input *GetOrganizationAdminAccountInput) (req *request.Request, output *GetOrganizationAdminAccountOutput) { op := &request.Operation{ Name: opGetOrganizationAdminAccount, HTTPMethod: "GET", HTTPPath: "/account/organizationAdminAccount", } if input == nil { input = &GetOrganizationAdminAccountInput{} } output = &GetOrganizationAdminAccountOutput{} req = c.newRequest(op, input, output) return } // GetOrganizationAdminAccount API operation for AWS Audit Manager. // // Returns the name of the delegated Amazon Web Services administrator account // for the organization. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation GetOrganizationAdminAccount for usage and error information. // // Returned Error Types: // * ValidationException // The request has invalid or missing parameters. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // * ResourceNotFoundException // The resource specified in the request cannot be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/GetOrganizationAdminAccount func (c *AuditManager) GetOrganizationAdminAccount(input *GetOrganizationAdminAccountInput) (*GetOrganizationAdminAccountOutput, error) { req, out := c.GetOrganizationAdminAccountRequest(input) return out, req.Send() } // GetOrganizationAdminAccountWithContext is the same as GetOrganizationAdminAccount with the addition of // the ability to pass a context and additional request options. // // See GetOrganizationAdminAccount for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) GetOrganizationAdminAccountWithContext(ctx aws.Context, input *GetOrganizationAdminAccountInput, opts ...request.Option) (*GetOrganizationAdminAccountOutput, error) { req, out := c.GetOrganizationAdminAccountRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetServicesInScope = "GetServicesInScope" // GetServicesInScopeRequest generates a "aws/request.Request" representing the // client's request for the GetServicesInScope operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetServicesInScope for more information on using the GetServicesInScope // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetServicesInScopeRequest method. // req, resp := client.GetServicesInScopeRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/GetServicesInScope func (c *AuditManager) GetServicesInScopeRequest(input *GetServicesInScopeInput) (req *request.Request, output *GetServicesInScopeOutput) { op := &request.Operation{ Name: opGetServicesInScope, HTTPMethod: "GET", HTTPPath: "/services", } if input == nil { input = &GetServicesInScopeInput{} } output = &GetServicesInScopeOutput{} req = c.newRequest(op, input, output) return } // GetServicesInScope API operation for AWS Audit Manager. // // Returns a list of the in-scope Amazon Web Services services for the specified // assessment. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation GetServicesInScope for usage and error information. // // Returned Error Types: // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * ValidationException // The request has invalid or missing parameters. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/GetServicesInScope func (c *AuditManager) GetServicesInScope(input *GetServicesInScopeInput) (*GetServicesInScopeOutput, error) { req, out := c.GetServicesInScopeRequest(input) return out, req.Send() } // GetServicesInScopeWithContext is the same as GetServicesInScope with the addition of // the ability to pass a context and additional request options. // // See GetServicesInScope for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) GetServicesInScopeWithContext(ctx aws.Context, input *GetServicesInScopeInput, opts ...request.Option) (*GetServicesInScopeOutput, error) { req, out := c.GetServicesInScopeRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetSettings = "GetSettings" // GetSettingsRequest generates a "aws/request.Request" representing the // client's request for the GetSettings operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetSettings for more information on using the GetSettings // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetSettingsRequest method. // req, resp := client.GetSettingsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/GetSettings func (c *AuditManager) GetSettingsRequest(input *GetSettingsInput) (req *request.Request, output *GetSettingsOutput) { op := &request.Operation{ Name: opGetSettings, HTTPMethod: "GET", HTTPPath: "/settings/{attribute}", } if input == nil { input = &GetSettingsInput{} } output = &GetSettingsOutput{} req = c.newRequest(op, input, output) return } // GetSettings API operation for AWS Audit Manager. // // Returns the settings for the specified account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation GetSettings for usage and error information. // // Returned Error Types: // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/GetSettings func (c *AuditManager) GetSettings(input *GetSettingsInput) (*GetSettingsOutput, error) { req, out := c.GetSettingsRequest(input) return out, req.Send() } // GetSettingsWithContext is the same as GetSettings with the addition of // the ability to pass a context and additional request options. // // See GetSettings for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) GetSettingsWithContext(ctx aws.Context, input *GetSettingsInput, opts ...request.Option) (*GetSettingsOutput, error) { req, out := c.GetSettingsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opListAssessmentFrameworks = "ListAssessmentFrameworks" // ListAssessmentFrameworksRequest generates a "aws/request.Request" representing the // client's request for the ListAssessmentFrameworks operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListAssessmentFrameworks for more information on using the ListAssessmentFrameworks // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListAssessmentFrameworksRequest method. // req, resp := client.ListAssessmentFrameworksRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/ListAssessmentFrameworks func (c *AuditManager) ListAssessmentFrameworksRequest(input *ListAssessmentFrameworksInput) (req *request.Request, output *ListAssessmentFrameworksOutput) { op := &request.Operation{ Name: opListAssessmentFrameworks, HTTPMethod: "GET", HTTPPath: "/assessmentFrameworks", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, LimitToken: "maxResults", TruncationToken: "", }, } if input == nil { input = &ListAssessmentFrameworksInput{} } output = &ListAssessmentFrameworksOutput{} req = c.newRequest(op, input, output) return } // ListAssessmentFrameworks API operation for AWS Audit Manager. // // Returns a list of the frameworks available in the Audit Manager framework // library. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation ListAssessmentFrameworks for usage and error information. // // Returned Error Types: // * ValidationException // The request has invalid or missing parameters. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/ListAssessmentFrameworks func (c *AuditManager) ListAssessmentFrameworks(input *ListAssessmentFrameworksInput) (*ListAssessmentFrameworksOutput, error) { req, out := c.ListAssessmentFrameworksRequest(input) return out, req.Send() } // ListAssessmentFrameworksWithContext is the same as ListAssessmentFrameworks with the addition of // the ability to pass a context and additional request options. // // See ListAssessmentFrameworks for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) ListAssessmentFrameworksWithContext(ctx aws.Context, input *ListAssessmentFrameworksInput, opts ...request.Option) (*ListAssessmentFrameworksOutput, error) { req, out := c.ListAssessmentFrameworksRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListAssessmentFrameworksPages iterates over the pages of a ListAssessmentFrameworks operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListAssessmentFrameworks method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListAssessmentFrameworks operation. // pageNum := 0 // err := client.ListAssessmentFrameworksPages(params, // func(page *auditmanager.ListAssessmentFrameworksOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *AuditManager) ListAssessmentFrameworksPages(input *ListAssessmentFrameworksInput, fn func(*ListAssessmentFrameworksOutput, bool) bool) error { return c.ListAssessmentFrameworksPagesWithContext(aws.BackgroundContext(), input, fn) } // ListAssessmentFrameworksPagesWithContext same as ListAssessmentFrameworksPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) ListAssessmentFrameworksPagesWithContext(ctx aws.Context, input *ListAssessmentFrameworksInput, fn func(*ListAssessmentFrameworksOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListAssessmentFrameworksInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListAssessmentFrameworksRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListAssessmentFrameworksOutput), !p.HasNextPage()) { break } } return p.Err() } const opListAssessmentReports = "ListAssessmentReports" // ListAssessmentReportsRequest generates a "aws/request.Request" representing the // client's request for the ListAssessmentReports operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListAssessmentReports for more information on using the ListAssessmentReports // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListAssessmentReportsRequest method. // req, resp := client.ListAssessmentReportsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/ListAssessmentReports func (c *AuditManager) ListAssessmentReportsRequest(input *ListAssessmentReportsInput) (req *request.Request, output *ListAssessmentReportsOutput) { op := &request.Operation{ Name: opListAssessmentReports, HTTPMethod: "GET", HTTPPath: "/assessmentReports", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, LimitToken: "maxResults", TruncationToken: "", }, } if input == nil { input = &ListAssessmentReportsInput{} } output = &ListAssessmentReportsOutput{} req = c.newRequest(op, input, output) return } // ListAssessmentReports API operation for AWS Audit Manager. // // Returns a list of assessment reports created in Audit Manager. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation ListAssessmentReports for usage and error information. // // Returned Error Types: // * ValidationException // The request has invalid or missing parameters. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/ListAssessmentReports func (c *AuditManager) ListAssessmentReports(input *ListAssessmentReportsInput) (*ListAssessmentReportsOutput, error) { req, out := c.ListAssessmentReportsRequest(input) return out, req.Send() } // ListAssessmentReportsWithContext is the same as ListAssessmentReports with the addition of // the ability to pass a context and additional request options. // // See ListAssessmentReports for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) ListAssessmentReportsWithContext(ctx aws.Context, input *ListAssessmentReportsInput, opts ...request.Option) (*ListAssessmentReportsOutput, error) { req, out := c.ListAssessmentReportsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListAssessmentReportsPages iterates over the pages of a ListAssessmentReports operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListAssessmentReports method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListAssessmentReports operation. // pageNum := 0 // err := client.ListAssessmentReportsPages(params, // func(page *auditmanager.ListAssessmentReportsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *AuditManager) ListAssessmentReportsPages(input *ListAssessmentReportsInput, fn func(*ListAssessmentReportsOutput, bool) bool) error { return c.ListAssessmentReportsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListAssessmentReportsPagesWithContext same as ListAssessmentReportsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) ListAssessmentReportsPagesWithContext(ctx aws.Context, input *ListAssessmentReportsInput, fn func(*ListAssessmentReportsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListAssessmentReportsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListAssessmentReportsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListAssessmentReportsOutput), !p.HasNextPage()) { break } } return p.Err() } const opListAssessments = "ListAssessments" // ListAssessmentsRequest generates a "aws/request.Request" representing the // client's request for the ListAssessments operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListAssessments for more information on using the ListAssessments // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListAssessmentsRequest method. // req, resp := client.ListAssessmentsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/ListAssessments func (c *AuditManager) ListAssessmentsRequest(input *ListAssessmentsInput) (req *request.Request, output *ListAssessmentsOutput) { op := &request.Operation{ Name: opListAssessments, HTTPMethod: "GET", HTTPPath: "/assessments", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, LimitToken: "maxResults", TruncationToken: "", }, } if input == nil { input = &ListAssessmentsInput{} } output = &ListAssessmentsOutput{} req = c.newRequest(op, input, output) return } // ListAssessments API operation for AWS Audit Manager. // // Returns a list of current and past assessments from Audit Manager. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation ListAssessments for usage and error information. // // Returned Error Types: // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * ValidationException // The request has invalid or missing parameters. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/ListAssessments func (c *AuditManager) ListAssessments(input *ListAssessmentsInput) (*ListAssessmentsOutput, error) { req, out := c.ListAssessmentsRequest(input) return out, req.Send() } // ListAssessmentsWithContext is the same as ListAssessments with the addition of // the ability to pass a context and additional request options. // // See ListAssessments for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) ListAssessmentsWithContext(ctx aws.Context, input *ListAssessmentsInput, opts ...request.Option) (*ListAssessmentsOutput, error) { req, out := c.ListAssessmentsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListAssessmentsPages iterates over the pages of a ListAssessments operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListAssessments method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListAssessments operation. // pageNum := 0 // err := client.ListAssessmentsPages(params, // func(page *auditmanager.ListAssessmentsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *AuditManager) ListAssessmentsPages(input *ListAssessmentsInput, fn func(*ListAssessmentsOutput, bool) bool) error { return c.ListAssessmentsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListAssessmentsPagesWithContext same as ListAssessmentsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) ListAssessmentsPagesWithContext(ctx aws.Context, input *ListAssessmentsInput, fn func(*ListAssessmentsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListAssessmentsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListAssessmentsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListAssessmentsOutput), !p.HasNextPage()) { break } } return p.Err() } const opListControls = "ListControls" // ListControlsRequest generates a "aws/request.Request" representing the // client's request for the ListControls operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListControls for more information on using the ListControls // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListControlsRequest method. // req, resp := client.ListControlsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/ListControls func (c *AuditManager) ListControlsRequest(input *ListControlsInput) (req *request.Request, output *ListControlsOutput) { op := &request.Operation{ Name: opListControls, HTTPMethod: "GET", HTTPPath: "/controls", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, LimitToken: "maxResults", TruncationToken: "", }, } if input == nil { input = &ListControlsInput{} } output = &ListControlsOutput{} req = c.newRequest(op, input, output) return } // ListControls API operation for AWS Audit Manager. // // Returns a list of controls from Audit Manager. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation ListControls for usage and error information. // // Returned Error Types: // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * ValidationException // The request has invalid or missing parameters. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/ListControls func (c *AuditManager) ListControls(input *ListControlsInput) (*ListControlsOutput, error) { req, out := c.ListControlsRequest(input) return out, req.Send() } // ListControlsWithContext is the same as ListControls with the addition of // the ability to pass a context and additional request options. // // See ListControls for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) ListControlsWithContext(ctx aws.Context, input *ListControlsInput, opts ...request.Option) (*ListControlsOutput, error) { req, out := c.ListControlsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListControlsPages iterates over the pages of a ListControls operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListControls method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListControls operation. // pageNum := 0 // err := client.ListControlsPages(params, // func(page *auditmanager.ListControlsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *AuditManager) ListControlsPages(input *ListControlsInput, fn func(*ListControlsOutput, bool) bool) error { return c.ListControlsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListControlsPagesWithContext same as ListControlsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) ListControlsPagesWithContext(ctx aws.Context, input *ListControlsInput, fn func(*ListControlsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListControlsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListControlsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListControlsOutput), !p.HasNextPage()) { break } } return p.Err() } const opListKeywordsForDataSource = "ListKeywordsForDataSource" // ListKeywordsForDataSourceRequest generates a "aws/request.Request" representing the // client's request for the ListKeywordsForDataSource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListKeywordsForDataSource for more information on using the ListKeywordsForDataSource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListKeywordsForDataSourceRequest method. // req, resp := client.ListKeywordsForDataSourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/ListKeywordsForDataSource func (c *AuditManager) ListKeywordsForDataSourceRequest(input *ListKeywordsForDataSourceInput) (req *request.Request, output *ListKeywordsForDataSourceOutput) { op := &request.Operation{ Name: opListKeywordsForDataSource, HTTPMethod: "GET", HTTPPath: "/dataSourceKeywords", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, LimitToken: "maxResults", TruncationToken: "", }, } if input == nil { input = &ListKeywordsForDataSourceInput{} } output = &ListKeywordsForDataSourceOutput{} req = c.newRequest(op, input, output) return } // ListKeywordsForDataSource API operation for AWS Audit Manager. // // Returns a list of keywords that pre-mapped to the specified control data // source. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation ListKeywordsForDataSource for usage and error information. // // Returned Error Types: // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * ValidationException // The request has invalid or missing parameters. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/ListKeywordsForDataSource func (c *AuditManager) ListKeywordsForDataSource(input *ListKeywordsForDataSourceInput) (*ListKeywordsForDataSourceOutput, error) { req, out := c.ListKeywordsForDataSourceRequest(input) return out, req.Send() } // ListKeywordsForDataSourceWithContext is the same as ListKeywordsForDataSource with the addition of // the ability to pass a context and additional request options. // // See ListKeywordsForDataSource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) ListKeywordsForDataSourceWithContext(ctx aws.Context, input *ListKeywordsForDataSourceInput, opts ...request.Option) (*ListKeywordsForDataSourceOutput, error) { req, out := c.ListKeywordsForDataSourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListKeywordsForDataSourcePages iterates over the pages of a ListKeywordsForDataSource operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListKeywordsForDataSource method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListKeywordsForDataSource operation. // pageNum := 0 // err := client.ListKeywordsForDataSourcePages(params, // func(page *auditmanager.ListKeywordsForDataSourceOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *AuditManager) ListKeywordsForDataSourcePages(input *ListKeywordsForDataSourceInput, fn func(*ListKeywordsForDataSourceOutput, bool) bool) error { return c.ListKeywordsForDataSourcePagesWithContext(aws.BackgroundContext(), input, fn) } // ListKeywordsForDataSourcePagesWithContext same as ListKeywordsForDataSourcePages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) ListKeywordsForDataSourcePagesWithContext(ctx aws.Context, input *ListKeywordsForDataSourceInput, fn func(*ListKeywordsForDataSourceOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListKeywordsForDataSourceInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListKeywordsForDataSourceRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListKeywordsForDataSourceOutput), !p.HasNextPage()) { break } } return p.Err() } const opListNotifications = "ListNotifications" // ListNotificationsRequest generates a "aws/request.Request" representing the // client's request for the ListNotifications operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListNotifications for more information on using the ListNotifications // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListNotificationsRequest method. // req, resp := client.ListNotificationsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/ListNotifications func (c *AuditManager) ListNotificationsRequest(input *ListNotificationsInput) (req *request.Request, output *ListNotificationsOutput) { op := &request.Operation{ Name: opListNotifications, HTTPMethod: "GET", HTTPPath: "/notifications", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, LimitToken: "maxResults", TruncationToken: "", }, } if input == nil { input = &ListNotificationsInput{} } output = &ListNotificationsOutput{} req = c.newRequest(op, input, output) return } // ListNotifications API operation for AWS Audit Manager. // // Returns a list of all Audit Manager notifications. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation ListNotifications for usage and error information. // // Returned Error Types: // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * ValidationException // The request has invalid or missing parameters. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/ListNotifications func (c *AuditManager) ListNotifications(input *ListNotificationsInput) (*ListNotificationsOutput, error) { req, out := c.ListNotificationsRequest(input) return out, req.Send() } // ListNotificationsWithContext is the same as ListNotifications with the addition of // the ability to pass a context and additional request options. // // See ListNotifications for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) ListNotificationsWithContext(ctx aws.Context, input *ListNotificationsInput, opts ...request.Option) (*ListNotificationsOutput, error) { req, out := c.ListNotificationsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListNotificationsPages iterates over the pages of a ListNotifications operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListNotifications method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListNotifications operation. // pageNum := 0 // err := client.ListNotificationsPages(params, // func(page *auditmanager.ListNotificationsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *AuditManager) ListNotificationsPages(input *ListNotificationsInput, fn func(*ListNotificationsOutput, bool) bool) error { return c.ListNotificationsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListNotificationsPagesWithContext same as ListNotificationsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) ListNotificationsPagesWithContext(ctx aws.Context, input *ListNotificationsInput, fn func(*ListNotificationsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListNotificationsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListNotificationsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListNotificationsOutput), !p.HasNextPage()) { break } } return p.Err() } const opListTagsForResource = "ListTagsForResource" // ListTagsForResourceRequest generates a "aws/request.Request" representing the // client's request for the ListTagsForResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListTagsForResource for more information on using the ListTagsForResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListTagsForResourceRequest method. // req, resp := client.ListTagsForResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/ListTagsForResource func (c *AuditManager) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { op := &request.Operation{ Name: opListTagsForResource, HTTPMethod: "GET", HTTPPath: "/tags/{resourceArn}", } if input == nil { input = &ListTagsForResourceInput{} } output = &ListTagsForResourceOutput{} req = c.newRequest(op, input, output) return } // ListTagsForResource API operation for AWS Audit Manager. // // Returns a list of tags for the specified resource in Audit Manager. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation ListTagsForResource for usage and error information. // // Returned Error Types: // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // * ValidationException // The request has invalid or missing parameters. // // * ResourceNotFoundException // The resource specified in the request cannot be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/ListTagsForResource func (c *AuditManager) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) return out, req.Send() } // ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of // the ability to pass a context and additional request options. // // See ListTagsForResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opRegisterAccount = "RegisterAccount" // RegisterAccountRequest generates a "aws/request.Request" representing the // client's request for the RegisterAccount operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See RegisterAccount for more information on using the RegisterAccount // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the RegisterAccountRequest method. // req, resp := client.RegisterAccountRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/RegisterAccount func (c *AuditManager) RegisterAccountRequest(input *RegisterAccountInput) (req *request.Request, output *RegisterAccountOutput) { op := &request.Operation{ Name: opRegisterAccount, HTTPMethod: "POST", HTTPPath: "/account/registerAccount", } if input == nil { input = &RegisterAccountInput{} } output = &RegisterAccountOutput{} req = c.newRequest(op, input, output) return } // RegisterAccount API operation for AWS Audit Manager. // // Enables Audit Manager for the specified account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation RegisterAccount for usage and error information. // // Returned Error Types: // * ValidationException // The request has invalid or missing parameters. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // * ResourceNotFoundException // The resource specified in the request cannot be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/RegisterAccount func (c *AuditManager) RegisterAccount(input *RegisterAccountInput) (*RegisterAccountOutput, error) { req, out := c.RegisterAccountRequest(input) return out, req.Send() } // RegisterAccountWithContext is the same as RegisterAccount with the addition of // the ability to pass a context and additional request options. // // See RegisterAccount for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) RegisterAccountWithContext(ctx aws.Context, input *RegisterAccountInput, opts ...request.Option) (*RegisterAccountOutput, error) { req, out := c.RegisterAccountRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opRegisterOrganizationAdminAccount = "RegisterOrganizationAdminAccount" // RegisterOrganizationAdminAccountRequest generates a "aws/request.Request" representing the // client's request for the RegisterOrganizationAdminAccount operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See RegisterOrganizationAdminAccount for more information on using the RegisterOrganizationAdminAccount // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the RegisterOrganizationAdminAccountRequest method. // req, resp := client.RegisterOrganizationAdminAccountRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/RegisterOrganizationAdminAccount func (c *AuditManager) RegisterOrganizationAdminAccountRequest(input *RegisterOrganizationAdminAccountInput) (req *request.Request, output *RegisterOrganizationAdminAccountOutput) { op := &request.Operation{ Name: opRegisterOrganizationAdminAccount, HTTPMethod: "POST", HTTPPath: "/account/registerOrganizationAdminAccount", } if input == nil { input = &RegisterOrganizationAdminAccountInput{} } output = &RegisterOrganizationAdminAccountOutput{} req = c.newRequest(op, input, output) return } // RegisterOrganizationAdminAccount API operation for AWS Audit Manager. // // Enables an account within the organization as the delegated administrator // for Audit Manager. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation RegisterOrganizationAdminAccount for usage and error information. // // Returned Error Types: // * ValidationException // The request has invalid or missing parameters. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // * ResourceNotFoundException // The resource specified in the request cannot be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/RegisterOrganizationAdminAccount func (c *AuditManager) RegisterOrganizationAdminAccount(input *RegisterOrganizationAdminAccountInput) (*RegisterOrganizationAdminAccountOutput, error) { req, out := c.RegisterOrganizationAdminAccountRequest(input) return out, req.Send() } // RegisterOrganizationAdminAccountWithContext is the same as RegisterOrganizationAdminAccount with the addition of // the ability to pass a context and additional request options. // // See RegisterOrganizationAdminAccount for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) RegisterOrganizationAdminAccountWithContext(ctx aws.Context, input *RegisterOrganizationAdminAccountInput, opts ...request.Option) (*RegisterOrganizationAdminAccountOutput, error) { req, out := c.RegisterOrganizationAdminAccountRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opTagResource = "TagResource" // TagResourceRequest generates a "aws/request.Request" representing the // client's request for the TagResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See TagResource for more information on using the TagResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the TagResourceRequest method. // req, resp := client.TagResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/TagResource func (c *AuditManager) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { op := &request.Operation{ Name: opTagResource, HTTPMethod: "POST", HTTPPath: "/tags/{resourceArn}", } if input == nil { input = &TagResourceInput{} } output = &TagResourceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // TagResource API operation for AWS Audit Manager. // // Tags the specified resource in Audit Manager. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation TagResource for usage and error information. // // Returned Error Types: // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // * ValidationException // The request has invalid or missing parameters. // // * ResourceNotFoundException // The resource specified in the request cannot be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/TagResource func (c *AuditManager) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { req, out := c.TagResourceRequest(input) return out, req.Send() } // TagResourceWithContext is the same as TagResource with the addition of // the ability to pass a context and additional request options. // // See TagResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { req, out := c.TagResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUntagResource = "UntagResource" // UntagResourceRequest generates a "aws/request.Request" representing the // client's request for the UntagResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UntagResource for more information on using the UntagResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UntagResourceRequest method. // req, resp := client.UntagResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/UntagResource func (c *AuditManager) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { op := &request.Operation{ Name: opUntagResource, HTTPMethod: "DELETE", HTTPPath: "/tags/{resourceArn}", } if input == nil { input = &UntagResourceInput{} } output = &UntagResourceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // UntagResource API operation for AWS Audit Manager. // // Removes a tag from a resource in Audit Manager. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation UntagResource for usage and error information. // // Returned Error Types: // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // * ValidationException // The request has invalid or missing parameters. // // * ResourceNotFoundException // The resource specified in the request cannot be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/UntagResource func (c *AuditManager) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { req, out := c.UntagResourceRequest(input) return out, req.Send() } // UntagResourceWithContext is the same as UntagResource with the addition of // the ability to pass a context and additional request options. // // See UntagResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { req, out := c.UntagResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateAssessment = "UpdateAssessment" // UpdateAssessmentRequest generates a "aws/request.Request" representing the // client's request for the UpdateAssessment operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateAssessment for more information on using the UpdateAssessment // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateAssessmentRequest method. // req, resp := client.UpdateAssessmentRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/UpdateAssessment func (c *AuditManager) UpdateAssessmentRequest(input *UpdateAssessmentInput) (req *request.Request, output *UpdateAssessmentOutput) { op := &request.Operation{ Name: opUpdateAssessment, HTTPMethod: "PUT", HTTPPath: "/assessments/{assessmentId}", } if input == nil { input = &UpdateAssessmentInput{} } output = &UpdateAssessmentOutput{} req = c.newRequest(op, input, output) return } // UpdateAssessment API operation for AWS Audit Manager. // // Edits an Audit Manager assessment. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation UpdateAssessment for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The resource specified in the request cannot be found. // // * ValidationException // The request has invalid or missing parameters. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/UpdateAssessment func (c *AuditManager) UpdateAssessment(input *UpdateAssessmentInput) (*UpdateAssessmentOutput, error) { req, out := c.UpdateAssessmentRequest(input) return out, req.Send() } // UpdateAssessmentWithContext is the same as UpdateAssessment with the addition of // the ability to pass a context and additional request options. // // See UpdateAssessment for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) UpdateAssessmentWithContext(ctx aws.Context, input *UpdateAssessmentInput, opts ...request.Option) (*UpdateAssessmentOutput, error) { req, out := c.UpdateAssessmentRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateAssessmentControl = "UpdateAssessmentControl" // UpdateAssessmentControlRequest generates a "aws/request.Request" representing the // client's request for the UpdateAssessmentControl operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateAssessmentControl for more information on using the UpdateAssessmentControl // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateAssessmentControlRequest method. // req, resp := client.UpdateAssessmentControlRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/UpdateAssessmentControl func (c *AuditManager) UpdateAssessmentControlRequest(input *UpdateAssessmentControlInput) (req *request.Request, output *UpdateAssessmentControlOutput) { op := &request.Operation{ Name: opUpdateAssessmentControl, HTTPMethod: "PUT", HTTPPath: "/assessments/{assessmentId}/controlSets/{controlSetId}/controls/{controlId}", } if input == nil { input = &UpdateAssessmentControlInput{} } output = &UpdateAssessmentControlOutput{} req = c.newRequest(op, input, output) return } // UpdateAssessmentControl API operation for AWS Audit Manager. // // Updates a control within an assessment in Audit Manager. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation UpdateAssessmentControl for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The resource specified in the request cannot be found. // // * ValidationException // The request has invalid or missing parameters. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/UpdateAssessmentControl func (c *AuditManager) UpdateAssessmentControl(input *UpdateAssessmentControlInput) (*UpdateAssessmentControlOutput, error) { req, out := c.UpdateAssessmentControlRequest(input) return out, req.Send() } // UpdateAssessmentControlWithContext is the same as UpdateAssessmentControl with the addition of // the ability to pass a context and additional request options. // // See UpdateAssessmentControl for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) UpdateAssessmentControlWithContext(ctx aws.Context, input *UpdateAssessmentControlInput, opts ...request.Option) (*UpdateAssessmentControlOutput, error) { req, out := c.UpdateAssessmentControlRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateAssessmentControlSetStatus = "UpdateAssessmentControlSetStatus" // UpdateAssessmentControlSetStatusRequest generates a "aws/request.Request" representing the // client's request for the UpdateAssessmentControlSetStatus operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateAssessmentControlSetStatus for more information on using the UpdateAssessmentControlSetStatus // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateAssessmentControlSetStatusRequest method. // req, resp := client.UpdateAssessmentControlSetStatusRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/UpdateAssessmentControlSetStatus func (c *AuditManager) UpdateAssessmentControlSetStatusRequest(input *UpdateAssessmentControlSetStatusInput) (req *request.Request, output *UpdateAssessmentControlSetStatusOutput) { op := &request.Operation{ Name: opUpdateAssessmentControlSetStatus, HTTPMethod: "PUT", HTTPPath: "/assessments/{assessmentId}/controlSets/{controlSetId}/status", } if input == nil { input = &UpdateAssessmentControlSetStatusInput{} } output = &UpdateAssessmentControlSetStatusOutput{} req = c.newRequest(op, input, output) return } // UpdateAssessmentControlSetStatus API operation for AWS Audit Manager. // // Updates the status of a control set in an Audit Manager assessment. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation UpdateAssessmentControlSetStatus for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The resource specified in the request cannot be found. // // * ValidationException // The request has invalid or missing parameters. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/UpdateAssessmentControlSetStatus func (c *AuditManager) UpdateAssessmentControlSetStatus(input *UpdateAssessmentControlSetStatusInput) (*UpdateAssessmentControlSetStatusOutput, error) { req, out := c.UpdateAssessmentControlSetStatusRequest(input) return out, req.Send() } // UpdateAssessmentControlSetStatusWithContext is the same as UpdateAssessmentControlSetStatus with the addition of // the ability to pass a context and additional request options. // // See UpdateAssessmentControlSetStatus for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) UpdateAssessmentControlSetStatusWithContext(ctx aws.Context, input *UpdateAssessmentControlSetStatusInput, opts ...request.Option) (*UpdateAssessmentControlSetStatusOutput, error) { req, out := c.UpdateAssessmentControlSetStatusRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateAssessmentFramework = "UpdateAssessmentFramework" // UpdateAssessmentFrameworkRequest generates a "aws/request.Request" representing the // client's request for the UpdateAssessmentFramework operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateAssessmentFramework for more information on using the UpdateAssessmentFramework // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateAssessmentFrameworkRequest method. // req, resp := client.UpdateAssessmentFrameworkRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/UpdateAssessmentFramework func (c *AuditManager) UpdateAssessmentFrameworkRequest(input *UpdateAssessmentFrameworkInput) (req *request.Request, output *UpdateAssessmentFrameworkOutput) { op := &request.Operation{ Name: opUpdateAssessmentFramework, HTTPMethod: "PUT", HTTPPath: "/assessmentFrameworks/{frameworkId}", } if input == nil { input = &UpdateAssessmentFrameworkInput{} } output = &UpdateAssessmentFrameworkOutput{} req = c.newRequest(op, input, output) return } // UpdateAssessmentFramework API operation for AWS Audit Manager. // // Updates a custom framework in Audit Manager. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation UpdateAssessmentFramework for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The resource specified in the request cannot be found. // // * ValidationException // The request has invalid or missing parameters. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/UpdateAssessmentFramework func (c *AuditManager) UpdateAssessmentFramework(input *UpdateAssessmentFrameworkInput) (*UpdateAssessmentFrameworkOutput, error) { req, out := c.UpdateAssessmentFrameworkRequest(input) return out, req.Send() } // UpdateAssessmentFrameworkWithContext is the same as UpdateAssessmentFramework with the addition of // the ability to pass a context and additional request options. // // See UpdateAssessmentFramework for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) UpdateAssessmentFrameworkWithContext(ctx aws.Context, input *UpdateAssessmentFrameworkInput, opts ...request.Option) (*UpdateAssessmentFrameworkOutput, error) { req, out := c.UpdateAssessmentFrameworkRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateAssessmentStatus = "UpdateAssessmentStatus" // UpdateAssessmentStatusRequest generates a "aws/request.Request" representing the // client's request for the UpdateAssessmentStatus operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateAssessmentStatus for more information on using the UpdateAssessmentStatus // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateAssessmentStatusRequest method. // req, resp := client.UpdateAssessmentStatusRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/UpdateAssessmentStatus func (c *AuditManager) UpdateAssessmentStatusRequest(input *UpdateAssessmentStatusInput) (req *request.Request, output *UpdateAssessmentStatusOutput) { op := &request.Operation{ Name: opUpdateAssessmentStatus, HTTPMethod: "PUT", HTTPPath: "/assessments/{assessmentId}/status", } if input == nil { input = &UpdateAssessmentStatusInput{} } output = &UpdateAssessmentStatusOutput{} req = c.newRequest(op, input, output) return } // UpdateAssessmentStatus API operation for AWS Audit Manager. // // Updates the status of an assessment in Audit Manager. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation UpdateAssessmentStatus for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The resource specified in the request cannot be found. // // * ValidationException // The request has invalid or missing parameters. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/UpdateAssessmentStatus func (c *AuditManager) UpdateAssessmentStatus(input *UpdateAssessmentStatusInput) (*UpdateAssessmentStatusOutput, error) { req, out := c.UpdateAssessmentStatusRequest(input) return out, req.Send() } // UpdateAssessmentStatusWithContext is the same as UpdateAssessmentStatus with the addition of // the ability to pass a context and additional request options. // // See UpdateAssessmentStatus for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) UpdateAssessmentStatusWithContext(ctx aws.Context, input *UpdateAssessmentStatusInput, opts ...request.Option) (*UpdateAssessmentStatusOutput, error) { req, out := c.UpdateAssessmentStatusRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateControl = "UpdateControl" // UpdateControlRequest generates a "aws/request.Request" representing the // client's request for the UpdateControl operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateControl for more information on using the UpdateControl // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateControlRequest method. // req, resp := client.UpdateControlRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/UpdateControl func (c *AuditManager) UpdateControlRequest(input *UpdateControlInput) (req *request.Request, output *UpdateControlOutput) { op := &request.Operation{ Name: opUpdateControl, HTTPMethod: "PUT", HTTPPath: "/controls/{controlId}", } if input == nil { input = &UpdateControlInput{} } output = &UpdateControlOutput{} req = c.newRequest(op, input, output) return } // UpdateControl API operation for AWS Audit Manager. // // Updates a custom control in Audit Manager. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation UpdateControl for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The resource specified in the request cannot be found. // // * ValidationException // The request has invalid or missing parameters. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/UpdateControl func (c *AuditManager) UpdateControl(input *UpdateControlInput) (*UpdateControlOutput, error) { req, out := c.UpdateControlRequest(input) return out, req.Send() } // UpdateControlWithContext is the same as UpdateControl with the addition of // the ability to pass a context and additional request options. // // See UpdateControl for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) UpdateControlWithContext(ctx aws.Context, input *UpdateControlInput, opts ...request.Option) (*UpdateControlOutput, error) { req, out := c.UpdateControlRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateSettings = "UpdateSettings" // UpdateSettingsRequest generates a "aws/request.Request" representing the // client's request for the UpdateSettings operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateSettings for more information on using the UpdateSettings // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateSettingsRequest method. // req, resp := client.UpdateSettingsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/UpdateSettings func (c *AuditManager) UpdateSettingsRequest(input *UpdateSettingsInput) (req *request.Request, output *UpdateSettingsOutput) { op := &request.Operation{ Name: opUpdateSettings, HTTPMethod: "PUT", HTTPPath: "/settings", } if input == nil { input = &UpdateSettingsInput{} } output = &UpdateSettingsOutput{} req = c.newRequest(op, input, output) return } // UpdateSettings API operation for AWS Audit Manager. // // Updates Audit Manager settings for the current user account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation UpdateSettings for usage and error information. // // Returned Error Types: // * ValidationException // The request has invalid or missing parameters. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/UpdateSettings func (c *AuditManager) UpdateSettings(input *UpdateSettingsInput) (*UpdateSettingsOutput, error) { req, out := c.UpdateSettingsRequest(input) return out, req.Send() } // UpdateSettingsWithContext is the same as UpdateSettings with the addition of // the ability to pass a context and additional request options. // // See UpdateSettings for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) UpdateSettingsWithContext(ctx aws.Context, input *UpdateSettingsInput, opts ...request.Option) (*UpdateSettingsOutput, error) { req, out := c.UpdateSettingsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opValidateAssessmentReportIntegrity = "ValidateAssessmentReportIntegrity" // ValidateAssessmentReportIntegrityRequest generates a "aws/request.Request" representing the // client's request for the ValidateAssessmentReportIntegrity operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ValidateAssessmentReportIntegrity for more information on using the ValidateAssessmentReportIntegrity // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ValidateAssessmentReportIntegrityRequest method. // req, resp := client.ValidateAssessmentReportIntegrityRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/ValidateAssessmentReportIntegrity func (c *AuditManager) ValidateAssessmentReportIntegrityRequest(input *ValidateAssessmentReportIntegrityInput) (req *request.Request, output *ValidateAssessmentReportIntegrityOutput) { op := &request.Operation{ Name: opValidateAssessmentReportIntegrity, HTTPMethod: "POST", HTTPPath: "/assessmentReports/integrity", } if input == nil { input = &ValidateAssessmentReportIntegrityInput{} } output = &ValidateAssessmentReportIntegrityOutput{} req = c.newRequest(op, input, output) return } // ValidateAssessmentReportIntegrity API operation for AWS Audit Manager. // // Validates the integrity of an assessment report in Audit Manager. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Audit Manager's // API operation ValidateAssessmentReportIntegrity for usage and error information. // // Returned Error Types: // * ValidationException // The request has invalid or missing parameters. // // * AccessDeniedException // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. // // * InternalServerException // An internal service error occurred during the processing of your request. // Try again later. // // * ResourceNotFoundException // The resource specified in the request cannot be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/ValidateAssessmentReportIntegrity func (c *AuditManager) ValidateAssessmentReportIntegrity(input *ValidateAssessmentReportIntegrityInput) (*ValidateAssessmentReportIntegrityOutput, error) { req, out := c.ValidateAssessmentReportIntegrityRequest(input) return out, req.Send() } // ValidateAssessmentReportIntegrityWithContext is the same as ValidateAssessmentReportIntegrity with the addition of // the ability to pass a context and additional request options. // // See ValidateAssessmentReportIntegrity for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AuditManager) ValidateAssessmentReportIntegrityWithContext(ctx aws.Context, input *ValidateAssessmentReportIntegrityInput, opts ...request.Option) (*ValidateAssessmentReportIntegrityOutput, error) { req, out := c.ValidateAssessmentReportIntegrityRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // The wrapper of account details, such as account ID, email address, and so // on. type AWSAccount struct { _ struct{} `type:"structure"` // The email address associated with the specified account. EmailAddress *string `locationName:"emailAddress" min:"1" type:"string"` // The identifier for the specified account. Id *string `locationName:"id" min:"12" type:"string"` // The name of the specified account. Name *string `locationName:"name" min:"1" type:"string"` } // String returns the string representation func (s AWSAccount) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AWSAccount) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *AWSAccount) Validate() error { invalidParams := request.ErrInvalidParams{Context: "AWSAccount"} if s.EmailAddress != nil && len(*s.EmailAddress) < 1 { invalidParams.Add(request.NewErrParamMinLen("EmailAddress", 1)) } if s.Id != nil && len(*s.Id) < 12 { invalidParams.Add(request.NewErrParamMinLen("Id", 12)) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetEmailAddress sets the EmailAddress field's value. func (s *AWSAccount) SetEmailAddress(v string) *AWSAccount { s.EmailAddress = &v return s } // SetId sets the Id field's value. func (s *AWSAccount) SetId(v string) *AWSAccount { s.Id = &v return s } // SetName sets the Name field's value. func (s *AWSAccount) SetName(v string) *AWSAccount { s.Name = &v return s } // An Amazon Web Service such as Amazon S3, CloudTrail, and so on. type AWSService struct { _ struct{} `type:"structure"` // The name of the Amazon Web Service. ServiceName *string `locationName:"serviceName" min:"1" type:"string"` } // String returns the string representation func (s AWSService) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AWSService) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *AWSService) Validate() error { invalidParams := request.ErrInvalidParams{Context: "AWSService"} if s.ServiceName != nil && len(*s.ServiceName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ServiceName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetServiceName sets the ServiceName field's value. func (s *AWSService) SetServiceName(v string) *AWSService { s.ServiceName = &v return s } // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. type AccessDeniedException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s AccessDeniedException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AccessDeniedException) GoString() string { return s.String() } func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { return &AccessDeniedException{ RespMetadata: v, } } // Code returns the exception type name. func (s *AccessDeniedException) Code() string { return "AccessDeniedException" } // Message returns the exception's message. func (s *AccessDeniedException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *AccessDeniedException) OrigErr() error { return nil } func (s *AccessDeniedException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *AccessDeniedException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *AccessDeniedException) RequestID() string { return s.RespMetadata.RequestID } // An entity that defines the scope of audit evidence collected by Audit Manager. // An Audit Manager assessment is an implementation of an Audit Manager framework. type Assessment struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the assessment. Arn *string `locationName:"arn" min:"20" type:"string"` // The account associated with the assessment. AwsAccount *AWSAccount `locationName:"awsAccount" type:"structure"` // The framework from which the assessment was created. Framework *AssessmentFramework `locationName:"framework" type:"structure"` // The metadata for the specified assessment. Metadata *AssessmentMetadata `locationName:"metadata" type:"structure"` // The tags associated with the assessment. Tags map[string]*string `locationName:"tags" type:"map"` } // String returns the string representation func (s Assessment) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Assessment) GoString() string { return s.String() } // SetArn sets the Arn field's value. func (s *Assessment) SetArn(v string) *Assessment { s.Arn = &v return s } // SetAwsAccount sets the AwsAccount field's value. func (s *Assessment) SetAwsAccount(v *AWSAccount) *Assessment { s.AwsAccount = v return s } // SetFramework sets the Framework field's value. func (s *Assessment) SetFramework(v *AssessmentFramework) *Assessment { s.Framework = v return s } // SetMetadata sets the Metadata field's value. func (s *Assessment) SetMetadata(v *AssessmentMetadata) *Assessment { s.Metadata = v return s } // SetTags sets the Tags field's value. func (s *Assessment) SetTags(v map[string]*string) *Assessment { s.Tags = v return s } // The control entity that represents a standard or custom control used in an // Audit Manager assessment. type AssessmentControl struct { _ struct{} `type:"structure"` // The amount of evidence in the assessment report. AssessmentReportEvidenceCount *int64 `locationName:"assessmentReportEvidenceCount" type:"integer"` // The list of comments attached to the specified control. Comments []*ControlComment `locationName:"comments" type:"list"` // The description of the specified control. Description *string `locationName:"description" type:"string"` // The amount of evidence generated for the control. EvidenceCount *int64 `locationName:"evidenceCount" type:"integer"` // The list of data sources for the specified evidence. EvidenceSources []*string `locationName:"evidenceSources" type:"list"` // The identifier for the specified control. Id *string `locationName:"id" min:"36" type:"string"` // The name of the specified control. Name *string `locationName:"name" min:"1" type:"string"` // The response of the specified control. Response *string `locationName:"response" type:"string" enum:"ControlResponse"` // The status of the specified control. Status *string `locationName:"status" type:"string" enum:"ControlStatus"` } // String returns the string representation func (s AssessmentControl) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AssessmentControl) GoString() string { return s.String() } // SetAssessmentReportEvidenceCount sets the AssessmentReportEvidenceCount field's value. func (s *AssessmentControl) SetAssessmentReportEvidenceCount(v int64) *AssessmentControl { s.AssessmentReportEvidenceCount = &v return s } // SetComments sets the Comments field's value. func (s *AssessmentControl) SetComments(v []*ControlComment) *AssessmentControl { s.Comments = v return s } // SetDescription sets the Description field's value. func (s *AssessmentControl) SetDescription(v string) *AssessmentControl { s.Description = &v return s } // SetEvidenceCount sets the EvidenceCount field's value. func (s *AssessmentControl) SetEvidenceCount(v int64) *AssessmentControl { s.EvidenceCount = &v return s } // SetEvidenceSources sets the EvidenceSources field's value. func (s *AssessmentControl) SetEvidenceSources(v []*string) *AssessmentControl { s.EvidenceSources = v return s } // SetId sets the Id field's value. func (s *AssessmentControl) SetId(v string) *AssessmentControl { s.Id = &v return s } // SetName sets the Name field's value. func (s *AssessmentControl) SetName(v string) *AssessmentControl { s.Name = &v return s } // SetResponse sets the Response field's value. func (s *AssessmentControl) SetResponse(v string) *AssessmentControl { s.Response = &v return s } // SetStatus sets the Status field's value. func (s *AssessmentControl) SetStatus(v string) *AssessmentControl { s.Status = &v return s } // Represents a set of controls in an Audit Manager assessment. type AssessmentControlSet struct { _ struct{} `type:"structure"` // The list of controls contained with the control set. Controls []*AssessmentControl `locationName:"controls" type:"list"` // The delegations associated with the control set. Delegations []*Delegation `locationName:"delegations" type:"list"` // The description for the control set. Description *string `locationName:"description" min:"1" type:"string"` // The identifier of the control set in the assessment. This is the control // set name in a plain string format. Id *string `locationName:"id" min:"1" type:"string"` // The total number of evidence objects uploaded manually to the control set. ManualEvidenceCount *int64 `locationName:"manualEvidenceCount" type:"integer"` // The roles associated with the control set. Roles []*Role `locationName:"roles" type:"list"` // Specifies the current status of the control set. Status *string `locationName:"status" type:"string" enum:"ControlSetStatus"` // The total number of evidence objects retrieved automatically for the control // set. SystemEvidenceCount *int64 `locationName:"systemEvidenceCount" type:"integer"` } // String returns the string representation func (s AssessmentControlSet) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AssessmentControlSet) GoString() string { return s.String() } // SetControls sets the Controls field's value. func (s *AssessmentControlSet) SetControls(v []*AssessmentControl) *AssessmentControlSet { s.Controls = v return s } // SetDelegations sets the Delegations field's value. func (s *AssessmentControlSet) SetDelegations(v []*Delegation) *AssessmentControlSet { s.Delegations = v return s } // SetDescription sets the Description field's value. func (s *AssessmentControlSet) SetDescription(v string) *AssessmentControlSet { s.Description = &v return s } // SetId sets the Id field's value. func (s *AssessmentControlSet) SetId(v string) *AssessmentControlSet { s.Id = &v return s } // SetManualEvidenceCount sets the ManualEvidenceCount field's value. func (s *AssessmentControlSet) SetManualEvidenceCount(v int64) *AssessmentControlSet { s.ManualEvidenceCount = &v return s } // SetRoles sets the Roles field's value. func (s *AssessmentControlSet) SetRoles(v []*Role) *AssessmentControlSet { s.Roles = v return s } // SetStatus sets the Status field's value. func (s *AssessmentControlSet) SetStatus(v string) *AssessmentControlSet { s.Status = &v return s } // SetSystemEvidenceCount sets the SystemEvidenceCount field's value. func (s *AssessmentControlSet) SetSystemEvidenceCount(v int64) *AssessmentControlSet { s.SystemEvidenceCount = &v return s } // The folder in which Audit Manager stores evidence for an assessment. type AssessmentEvidenceFolder struct { _ struct{} `type:"structure"` // The identifier for the specified assessment. AssessmentId *string `locationName:"assessmentId" min:"36" type:"string"` // The total count of evidence included in the assessment report. AssessmentReportSelectionCount *int64 `locationName:"assessmentReportSelectionCount" type:"integer"` // The name of the user who created the evidence folder. Author *string `locationName:"author" type:"string"` // The unique identifier for the specified control. ControlId *string `locationName:"controlId" min:"36" type:"string"` // The name of the control. ControlName *string `locationName:"controlName" min:"1" type:"string"` // The identifier for the control set. ControlSetId *string `locationName:"controlSetId" min:"1" type:"string"` // The Amazon Web Service from which the evidence was collected. DataSource *string `locationName:"dataSource" type:"string"` // The date when the first evidence was added to the evidence folder. Date *time.Time `locationName:"date" type:"timestamp"` // The total number of Amazon Web Services resources assessed to generate the // evidence. EvidenceAwsServiceSourceCount *int64 `locationName:"evidenceAwsServiceSourceCount" type:"integer"` // The number of evidence that falls under the compliance check category. This // evidence is collected from Config or Security Hub. EvidenceByTypeComplianceCheckCount *int64 `locationName:"evidenceByTypeComplianceCheckCount" type:"integer"` // The total number of issues that were reported directly from Security Hub, // Config, or both. EvidenceByTypeComplianceCheckIssuesCount *int64 `locationName:"evidenceByTypeComplianceCheckIssuesCount" type:"integer"` // The number of evidence that falls under the configuration data category. // This evidence is collected from configuration snapshots of other Amazon Web // Services services such as Amazon EC2, Amazon S3, or IAM. EvidenceByTypeConfigurationDataCount *int64 `locationName:"evidenceByTypeConfigurationDataCount" type:"integer"` // The number of evidence that falls under the manual category. This evidence // is imported manually. EvidenceByTypeManualCount *int64 `locationName:"evidenceByTypeManualCount" type:"integer"` // The number of evidence that falls under the user activity category. This // evidence is collected from CloudTrail logs. EvidenceByTypeUserActivityCount *int64 `locationName:"evidenceByTypeUserActivityCount" type:"integer"` // The amount of evidence included in the evidence folder. EvidenceResourcesIncludedCount *int64 `locationName:"evidenceResourcesIncludedCount" type:"integer"` // The identifier for the folder in which evidence is stored. Id *string `locationName:"id" min:"36" type:"string"` // The name of the specified evidence folder. Name *string `locationName:"name" min:"1" type:"string"` // The total amount of evidence in the evidence folder. TotalEvidence *int64 `locationName:"totalEvidence" type:"integer"` } // String returns the string representation func (s AssessmentEvidenceFolder) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AssessmentEvidenceFolder) GoString() string { return s.String() } // SetAssessmentId sets the AssessmentId field's value. func (s *AssessmentEvidenceFolder) SetAssessmentId(v string) *AssessmentEvidenceFolder { s.AssessmentId = &v return s } // SetAssessmentReportSelectionCount sets the AssessmentReportSelectionCount field's value. func (s *AssessmentEvidenceFolder) SetAssessmentReportSelectionCount(v int64) *AssessmentEvidenceFolder { s.AssessmentReportSelectionCount = &v return s } // SetAuthor sets the Author field's value. func (s *AssessmentEvidenceFolder) SetAuthor(v string) *AssessmentEvidenceFolder { s.Author = &v return s } // SetControlId sets the ControlId field's value. func (s *AssessmentEvidenceFolder) SetControlId(v string) *AssessmentEvidenceFolder { s.ControlId = &v return s } // SetControlName sets the ControlName field's value. func (s *AssessmentEvidenceFolder) SetControlName(v string) *AssessmentEvidenceFolder { s.ControlName = &v return s } // SetControlSetId sets the ControlSetId field's value. func (s *AssessmentEvidenceFolder) SetControlSetId(v string) *AssessmentEvidenceFolder { s.ControlSetId = &v return s } // SetDataSource sets the DataSource field's value. func (s *AssessmentEvidenceFolder) SetDataSource(v string) *AssessmentEvidenceFolder { s.DataSource = &v return s } // SetDate sets the Date field's value. func (s *AssessmentEvidenceFolder) SetDate(v time.Time) *AssessmentEvidenceFolder { s.Date = &v return s } // SetEvidenceAwsServiceSourceCount sets the EvidenceAwsServiceSourceCount field's value. func (s *AssessmentEvidenceFolder) SetEvidenceAwsServiceSourceCount(v int64) *AssessmentEvidenceFolder { s.EvidenceAwsServiceSourceCount = &v return s } // SetEvidenceByTypeComplianceCheckCount sets the EvidenceByTypeComplianceCheckCount field's value. func (s *AssessmentEvidenceFolder) SetEvidenceByTypeComplianceCheckCount(v int64) *AssessmentEvidenceFolder { s.EvidenceByTypeComplianceCheckCount = &v return s } // SetEvidenceByTypeComplianceCheckIssuesCount sets the EvidenceByTypeComplianceCheckIssuesCount field's value. func (s *AssessmentEvidenceFolder) SetEvidenceByTypeComplianceCheckIssuesCount(v int64) *AssessmentEvidenceFolder { s.EvidenceByTypeComplianceCheckIssuesCount = &v return s } // SetEvidenceByTypeConfigurationDataCount sets the EvidenceByTypeConfigurationDataCount field's value. func (s *AssessmentEvidenceFolder) SetEvidenceByTypeConfigurationDataCount(v int64) *AssessmentEvidenceFolder { s.EvidenceByTypeConfigurationDataCount = &v return s } // SetEvidenceByTypeManualCount sets the EvidenceByTypeManualCount field's value. func (s *AssessmentEvidenceFolder) SetEvidenceByTypeManualCount(v int64) *AssessmentEvidenceFolder { s.EvidenceByTypeManualCount = &v return s } // SetEvidenceByTypeUserActivityCount sets the EvidenceByTypeUserActivityCount field's value. func (s *AssessmentEvidenceFolder) SetEvidenceByTypeUserActivityCount(v int64) *AssessmentEvidenceFolder { s.EvidenceByTypeUserActivityCount = &v return s } // SetEvidenceResourcesIncludedCount sets the EvidenceResourcesIncludedCount field's value. func (s *AssessmentEvidenceFolder) SetEvidenceResourcesIncludedCount(v int64) *AssessmentEvidenceFolder { s.EvidenceResourcesIncludedCount = &v return s } // SetId sets the Id field's value. func (s *AssessmentEvidenceFolder) SetId(v string) *AssessmentEvidenceFolder { s.Id = &v return s } // SetName sets the Name field's value. func (s *AssessmentEvidenceFolder) SetName(v string) *AssessmentEvidenceFolder { s.Name = &v return s } // SetTotalEvidence sets the TotalEvidence field's value. func (s *AssessmentEvidenceFolder) SetTotalEvidence(v int64) *AssessmentEvidenceFolder { s.TotalEvidence = &v return s } // The file used to structure and automate Audit Manager assessments for a given // compliance standard. type AssessmentFramework struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the specified framework. Arn *string `locationName:"arn" min:"20" type:"string"` // The control sets associated with the framework. ControlSets []*AssessmentControlSet `locationName:"controlSets" type:"list"` // The unique identifier for the framework. Id *string `locationName:"id" min:"36" type:"string"` // The metadata of a framework, such as the name, ID, description, and so on. Metadata *FrameworkMetadata `locationName:"metadata" type:"structure"` } // String returns the string representation func (s AssessmentFramework) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AssessmentFramework) GoString() string { return s.String() } // SetArn sets the Arn field's value. func (s *AssessmentFramework) SetArn(v string) *AssessmentFramework { s.Arn = &v return s } // SetControlSets sets the ControlSets field's value. func (s *AssessmentFramework) SetControlSets(v []*AssessmentControlSet) *AssessmentFramework { s.ControlSets = v return s } // SetId sets the Id field's value. func (s *AssessmentFramework) SetId(v string) *AssessmentFramework { s.Id = &v return s } // SetMetadata sets the Metadata field's value. func (s *AssessmentFramework) SetMetadata(v *FrameworkMetadata) *AssessmentFramework { s.Metadata = v return s } // The metadata associated with a standard or custom framework. type AssessmentFrameworkMetadata struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the framework. Arn *string `locationName:"arn" min:"20" type:"string"` // The compliance type that the new custom framework supports, such as CIS or // HIPAA. ComplianceType *string `locationName:"complianceType" type:"string"` // The number of control sets associated with the specified framework. ControlSetsCount *int64 `locationName:"controlSetsCount" type:"integer"` // The number of controls associated with the specified framework. ControlsCount *int64 `locationName:"controlsCount" type:"integer"` // Specifies when the framework was created. CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` // The description of the specified framework. Description *string `locationName:"description" min:"1" type:"string"` // The unique identified for the specified framework. Id *string `locationName:"id" min:"36" type:"string"` // Specifies when the framework was most recently updated. LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"` // The logo associated with the framework. Logo *string `locationName:"logo" min:"1" type:"string"` // The name of the specified framework. Name *string `locationName:"name" min:"1" type:"string"` // The framework type, such as standard or custom. Type *string `locationName:"type" type:"string" enum:"FrameworkType"` } // String returns the string representation func (s AssessmentFrameworkMetadata) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AssessmentFrameworkMetadata) GoString() string { return s.String() } // SetArn sets the Arn field's value. func (s *AssessmentFrameworkMetadata) SetArn(v string) *AssessmentFrameworkMetadata { s.Arn = &v return s } // SetComplianceType sets the ComplianceType field's value. func (s *AssessmentFrameworkMetadata) SetComplianceType(v string) *AssessmentFrameworkMetadata { s.ComplianceType = &v return s } // SetControlSetsCount sets the ControlSetsCount field's value. func (s *AssessmentFrameworkMetadata) SetControlSetsCount(v int64) *AssessmentFrameworkMetadata { s.ControlSetsCount = &v return s } // SetControlsCount sets the ControlsCount field's value. func (s *AssessmentFrameworkMetadata) SetControlsCount(v int64) *AssessmentFrameworkMetadata { s.ControlsCount = &v return s } // SetCreatedAt sets the CreatedAt field's value. func (s *AssessmentFrameworkMetadata) SetCreatedAt(v time.Time) *AssessmentFrameworkMetadata { s.CreatedAt = &v return s } // SetDescription sets the Description field's value. func (s *AssessmentFrameworkMetadata) SetDescription(v string) *AssessmentFrameworkMetadata { s.Description = &v return s } // SetId sets the Id field's value. func (s *AssessmentFrameworkMetadata) SetId(v string) *AssessmentFrameworkMetadata { s.Id = &v return s } // SetLastUpdatedAt sets the LastUpdatedAt field's value. func (s *AssessmentFrameworkMetadata) SetLastUpdatedAt(v time.Time) *AssessmentFrameworkMetadata { s.LastUpdatedAt = &v return s } // SetLogo sets the Logo field's value. func (s *AssessmentFrameworkMetadata) SetLogo(v string) *AssessmentFrameworkMetadata { s.Logo = &v return s } // SetName sets the Name field's value. func (s *AssessmentFrameworkMetadata) SetName(v string) *AssessmentFrameworkMetadata { s.Name = &v return s } // SetType sets the Type field's value. func (s *AssessmentFrameworkMetadata) SetType(v string) *AssessmentFrameworkMetadata { s.Type = &v return s } // The metadata associated with the specified assessment. type AssessmentMetadata struct { _ struct{} `type:"structure"` // The destination in which evidence reports are stored for the specified assessment. AssessmentReportsDestination *AssessmentReportsDestination `locationName:"assessmentReportsDestination" type:"structure"` // The name of a compliance standard related to the assessment, such as PCI-DSS. ComplianceType *string `locationName:"complianceType" type:"string"` // Specifies when the assessment was created. CreationTime *time.Time `locationName:"creationTime" type:"timestamp"` // The delegations associated with the assessment. Delegations []*Delegation `locationName:"delegations" type:"list"` // The description of the assessment. Description *string `locationName:"description" type:"string"` // The unique identifier for the assessment. Id *string `locationName:"id" min:"36" type:"string"` // The time of the most recent update. LastUpdated *time.Time `locationName:"lastUpdated" type:"timestamp"` // The name of the assessment. Name *string `locationName:"name" min:"1" type:"string"` // The roles associated with the assessment. Roles []*Role `locationName:"roles" type:"list"` // The wrapper of accounts and services in scope for the assessment. Scope *Scope `locationName:"scope" type:"structure"` // The overall status of the assessment. Status *string `locationName:"status" type:"string" enum:"AssessmentStatus"` } // String returns the string representation func (s AssessmentMetadata) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AssessmentMetadata) GoString() string { return s.String() } // SetAssessmentReportsDestination sets the AssessmentReportsDestination field's value. func (s *AssessmentMetadata) SetAssessmentReportsDestination(v *AssessmentReportsDestination) *AssessmentMetadata { s.AssessmentReportsDestination = v return s } // SetComplianceType sets the ComplianceType field's value. func (s *AssessmentMetadata) SetComplianceType(v string) *AssessmentMetadata { s.ComplianceType = &v return s } // SetCreationTime sets the CreationTime field's value. func (s *AssessmentMetadata) SetCreationTime(v time.Time) *AssessmentMetadata { s.CreationTime = &v return s } // SetDelegations sets the Delegations field's value. func (s *AssessmentMetadata) SetDelegations(v []*Delegation) *AssessmentMetadata { s.Delegations = v return s } // SetDescription sets the Description field's value. func (s *AssessmentMetadata) SetDescription(v string) *AssessmentMetadata { s.Description = &v return s } // SetId sets the Id field's value. func (s *AssessmentMetadata) SetId(v string) *AssessmentMetadata { s.Id = &v return s } // SetLastUpdated sets the LastUpdated field's value. func (s *AssessmentMetadata) SetLastUpdated(v time.Time) *AssessmentMetadata { s.LastUpdated = &v return s } // SetName sets the Name field's value. func (s *AssessmentMetadata) SetName(v string) *AssessmentMetadata { s.Name = &v return s } // SetRoles sets the Roles field's value. func (s *AssessmentMetadata) SetRoles(v []*Role) *AssessmentMetadata { s.Roles = v return s } // SetScope sets the Scope field's value. func (s *AssessmentMetadata) SetScope(v *Scope) *AssessmentMetadata { s.Scope = v return s } // SetStatus sets the Status field's value. func (s *AssessmentMetadata) SetStatus(v string) *AssessmentMetadata { s.Status = &v return s } // A metadata object associated with an assessment in Audit Manager. type AssessmentMetadataItem struct { _ struct{} `type:"structure"` // The name of the compliance standard related to the assessment, such as PCI-DSS. ComplianceType *string `locationName:"complianceType" type:"string"` // Specifies when the assessment was created. CreationTime *time.Time `locationName:"creationTime" type:"timestamp"` // The delegations associated with the assessment. Delegations []*Delegation `locationName:"delegations" type:"list"` // The unique identifier for the assessment. Id *string `locationName:"id" min:"36" type:"string"` // The time of the most recent update. LastUpdated *time.Time `locationName:"lastUpdated" type:"timestamp"` // The name of the assessment. Name *string `locationName:"name" min:"1" type:"string"` // The roles associated with the assessment. Roles []*Role `locationName:"roles" type:"list"` // The current status of the assessment. Status *string `locationName:"status" type:"string" enum:"AssessmentStatus"` } // String returns the string representation func (s AssessmentMetadataItem) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AssessmentMetadataItem) GoString() string { return s.String() } // SetComplianceType sets the ComplianceType field's value. func (s *AssessmentMetadataItem) SetComplianceType(v string) *AssessmentMetadataItem { s.ComplianceType = &v return s } // SetCreationTime sets the CreationTime field's value. func (s *AssessmentMetadataItem) SetCreationTime(v time.Time) *AssessmentMetadataItem { s.CreationTime = &v return s } // SetDelegations sets the Delegations field's value. func (s *AssessmentMetadataItem) SetDelegations(v []*Delegation) *AssessmentMetadataItem { s.Delegations = v return s } // SetId sets the Id field's value. func (s *AssessmentMetadataItem) SetId(v string) *AssessmentMetadataItem { s.Id = &v return s } // SetLastUpdated sets the LastUpdated field's value. func (s *AssessmentMetadataItem) SetLastUpdated(v time.Time) *AssessmentMetadataItem { s.LastUpdated = &v return s } // SetName sets the Name field's value. func (s *AssessmentMetadataItem) SetName(v string) *AssessmentMetadataItem { s.Name = &v return s } // SetRoles sets the Roles field's value. func (s *AssessmentMetadataItem) SetRoles(v []*Role) *AssessmentMetadataItem { s.Roles = v return s } // SetStatus sets the Status field's value. func (s *AssessmentMetadataItem) SetStatus(v string) *AssessmentMetadataItem { s.Status = &v return s } // A finalized document generated from an Audit Manager assessment. These reports // summarize the relevant evidence collected for your audit, and link to the // relevant evidence folders which are named and organized according to the // controls specified in your assessment. type AssessmentReport struct { _ struct{} `type:"structure"` // The identifier for the specified assessment. AssessmentId *string `locationName:"assessmentId" min:"36" type:"string"` // The name of the associated assessment. AssessmentName *string `locationName:"assessmentName" min:"1" type:"string"` // The name of the user who created the assessment report. Author *string `locationName:"author" min:"1" type:"string"` // The identifier for the specified account. AwsAccountId *string `locationName:"awsAccountId" min:"12" type:"string"` // Specifies when the assessment report was created. CreationTime *time.Time `locationName:"creationTime" type:"timestamp"` // The description of the specified assessment report. Description *string `locationName:"description" type:"string"` // The unique identifier for the specified assessment report. Id *string `locationName:"id" min:"36" type:"string"` // The name given to the assessment report. Name *string `locationName:"name" min:"1" type:"string"` // The current status of the specified assessment report. Status *string `locationName:"status" type:"string" enum:"AssessmentReportStatus"` } // String returns the string representation func (s AssessmentReport) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AssessmentReport) GoString() string { return s.String() } // SetAssessmentId sets the AssessmentId field's value. func (s *AssessmentReport) SetAssessmentId(v string) *AssessmentReport { s.AssessmentId = &v return s } // SetAssessmentName sets the AssessmentName field's value. func (s *AssessmentReport) SetAssessmentName(v string) *AssessmentReport { s.AssessmentName = &v return s } // SetAuthor sets the Author field's value. func (s *AssessmentReport) SetAuthor(v string) *AssessmentReport { s.Author = &v return s } // SetAwsAccountId sets the AwsAccountId field's value. func (s *AssessmentReport) SetAwsAccountId(v string) *AssessmentReport { s.AwsAccountId = &v return s } // SetCreationTime sets the CreationTime field's value. func (s *AssessmentReport) SetCreationTime(v time.Time) *AssessmentReport { s.CreationTime = &v return s } // SetDescription sets the Description field's value. func (s *AssessmentReport) SetDescription(v string) *AssessmentReport { s.Description = &v return s } // SetId sets the Id field's value. func (s *AssessmentReport) SetId(v string) *AssessmentReport { s.Id = &v return s } // SetName sets the Name field's value. func (s *AssessmentReport) SetName(v string) *AssessmentReport { s.Name = &v return s } // SetStatus sets the Status field's value. func (s *AssessmentReport) SetStatus(v string) *AssessmentReport { s.Status = &v return s } // An error entity for the AssessmentReportEvidence API. This is used to provide // more meaningful errors than a simple string message. type AssessmentReportEvidenceError struct { _ struct{} `type:"structure"` // The error code returned by the AssessmentReportEvidence API. ErrorCode *string `locationName:"errorCode" min:"3" type:"string"` // The error message returned by the AssessmentReportEvidence API. ErrorMessage *string `locationName:"errorMessage" type:"string"` // The identifier for the evidence. EvidenceId *string `locationName:"evidenceId" min:"36" type:"string"` } // String returns the string representation func (s AssessmentReportEvidenceError) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AssessmentReportEvidenceError) GoString() string { return s.String() } // SetErrorCode sets the ErrorCode field's value. func (s *AssessmentReportEvidenceError) SetErrorCode(v string) *AssessmentReportEvidenceError { s.ErrorCode = &v return s } // SetErrorMessage sets the ErrorMessage field's value. func (s *AssessmentReportEvidenceError) SetErrorMessage(v string) *AssessmentReportEvidenceError { s.ErrorMessage = &v return s } // SetEvidenceId sets the EvidenceId field's value. func (s *AssessmentReportEvidenceError) SetEvidenceId(v string) *AssessmentReportEvidenceError { s.EvidenceId = &v return s } // The metadata objects associated with the specified assessment report. type AssessmentReportMetadata struct { _ struct{} `type:"structure"` // The unique identifier for the associated assessment. AssessmentId *string `locationName:"assessmentId" min:"36" type:"string"` // The name of the associated assessment. AssessmentName *string `locationName:"assessmentName" min:"1" type:"string"` // The name of the user who created the assessment report. Author *string `locationName:"author" min:"1" type:"string"` // Specifies when the assessment report was created. CreationTime *time.Time `locationName:"creationTime" type:"timestamp"` // The description of the specified assessment report. Description *string `locationName:"description" type:"string"` // The unique identifier for the assessment report. Id *string `locationName:"id" min:"36" type:"string"` // The name of the assessment report. Name *string `locationName:"name" min:"1" type:"string"` // The current status of the assessment report. Status *string `locationName:"status" type:"string" enum:"AssessmentReportStatus"` } // String returns the string representation func (s AssessmentReportMetadata) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AssessmentReportMetadata) GoString() string { return s.String() } // SetAssessmentId sets the AssessmentId field's value. func (s *AssessmentReportMetadata) SetAssessmentId(v string) *AssessmentReportMetadata { s.AssessmentId = &v return s } // SetAssessmentName sets the AssessmentName field's value. func (s *AssessmentReportMetadata) SetAssessmentName(v string) *AssessmentReportMetadata { s.AssessmentName = &v return s } // SetAuthor sets the Author field's value. func (s *AssessmentReportMetadata) SetAuthor(v string) *AssessmentReportMetadata { s.Author = &v return s } // SetCreationTime sets the CreationTime field's value. func (s *AssessmentReportMetadata) SetCreationTime(v time.Time) *AssessmentReportMetadata { s.CreationTime = &v return s } // SetDescription sets the Description field's value. func (s *AssessmentReportMetadata) SetDescription(v string) *AssessmentReportMetadata { s.Description = &v return s } // SetId sets the Id field's value. func (s *AssessmentReportMetadata) SetId(v string) *AssessmentReportMetadata { s.Id = &v return s } // SetName sets the Name field's value. func (s *AssessmentReportMetadata) SetName(v string) *AssessmentReportMetadata { s.Name = &v return s } // SetStatus sets the Status field's value. func (s *AssessmentReportMetadata) SetStatus(v string) *AssessmentReportMetadata { s.Status = &v return s } // The location in which Audit Manager saves assessment reports for the given // assessment. type AssessmentReportsDestination struct { _ struct{} `type:"structure"` // The destination of the assessment report. Destination *string `locationName:"destination" min:"1" type:"string"` // The destination type, such as Amazon S3. DestinationType *string `locationName:"destinationType" type:"string" enum:"AssessmentReportDestinationType"` } // String returns the string representation func (s AssessmentReportsDestination) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AssessmentReportsDestination) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *AssessmentReportsDestination) Validate() error { invalidParams := request.ErrInvalidParams{Context: "AssessmentReportsDestination"} if s.Destination != nil && len(*s.Destination) < 1 { invalidParams.Add(request.NewErrParamMinLen("Destination", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDestination sets the Destination field's value. func (s *AssessmentReportsDestination) SetDestination(v string) *AssessmentReportsDestination { s.Destination = &v return s } // SetDestinationType sets the DestinationType field's value. func (s *AssessmentReportsDestination) SetDestinationType(v string) *AssessmentReportsDestination { s.DestinationType = &v return s } type AssociateAssessmentReportEvidenceFolderInput struct { _ struct{} `type:"structure"` // The identifier for the specified assessment. // // AssessmentId is a required field AssessmentId *string `location:"uri" locationName:"assessmentId" min:"36" type:"string" required:"true"` // The identifier for the folder in which evidence is stored. // // EvidenceFolderId is a required field EvidenceFolderId *string `locationName:"evidenceFolderId" min:"36" type:"string" required:"true"` } // String returns the string representation func (s AssociateAssessmentReportEvidenceFolderInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AssociateAssessmentReportEvidenceFolderInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *AssociateAssessmentReportEvidenceFolderInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "AssociateAssessmentReportEvidenceFolderInput"} if s.AssessmentId == nil { invalidParams.Add(request.NewErrParamRequired("AssessmentId")) } if s.AssessmentId != nil && len(*s.AssessmentId) < 36 { invalidParams.Add(request.NewErrParamMinLen("AssessmentId", 36)) } if s.EvidenceFolderId == nil { invalidParams.Add(request.NewErrParamRequired("EvidenceFolderId")) } if s.EvidenceFolderId != nil && len(*s.EvidenceFolderId) < 36 { invalidParams.Add(request.NewErrParamMinLen("EvidenceFolderId", 36)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAssessmentId sets the AssessmentId field's value. func (s *AssociateAssessmentReportEvidenceFolderInput) SetAssessmentId(v string) *AssociateAssessmentReportEvidenceFolderInput { s.AssessmentId = &v return s } // SetEvidenceFolderId sets the EvidenceFolderId field's value. func (s *AssociateAssessmentReportEvidenceFolderInput) SetEvidenceFolderId(v string) *AssociateAssessmentReportEvidenceFolderInput { s.EvidenceFolderId = &v return s } type AssociateAssessmentReportEvidenceFolderOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s AssociateAssessmentReportEvidenceFolderOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AssociateAssessmentReportEvidenceFolderOutput) GoString() string { return s.String() } type BatchAssociateAssessmentReportEvidenceInput struct { _ struct{} `type:"structure"` // The unique identifier for the specified assessment. // // AssessmentId is a required field AssessmentId *string `location:"uri" locationName:"assessmentId" min:"36" type:"string" required:"true"` // The identifier for the folder in which the evidence is stored. // // EvidenceFolderId is a required field EvidenceFolderId *string `locationName:"evidenceFolderId" min:"36" type:"string" required:"true"` // The list of evidence identifiers. // // EvidenceIds is a required field EvidenceIds []*string `locationName:"evidenceIds" type:"list" required:"true"` } // String returns the string representation func (s BatchAssociateAssessmentReportEvidenceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s BatchAssociateAssessmentReportEvidenceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *BatchAssociateAssessmentReportEvidenceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "BatchAssociateAssessmentReportEvidenceInput"} if s.AssessmentId == nil { invalidParams.Add(request.NewErrParamRequired("AssessmentId")) } if s.AssessmentId != nil && len(*s.AssessmentId) < 36 { invalidParams.Add(request.NewErrParamMinLen("AssessmentId", 36)) } if s.EvidenceFolderId == nil { invalidParams.Add(request.NewErrParamRequired("EvidenceFolderId")) } if s.EvidenceFolderId != nil && len(*s.EvidenceFolderId) < 36 { invalidParams.Add(request.NewErrParamMinLen("EvidenceFolderId", 36)) } if s.EvidenceIds == nil { invalidParams.Add(request.NewErrParamRequired("EvidenceIds")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAssessmentId sets the AssessmentId field's value. func (s *BatchAssociateAssessmentReportEvidenceInput) SetAssessmentId(v string) *BatchAssociateAssessmentReportEvidenceInput { s.AssessmentId = &v return s } // SetEvidenceFolderId sets the EvidenceFolderId field's value. func (s *BatchAssociateAssessmentReportEvidenceInput) SetEvidenceFolderId(v string) *BatchAssociateAssessmentReportEvidenceInput { s.EvidenceFolderId = &v return s } // SetEvidenceIds sets the EvidenceIds field's value. func (s *BatchAssociateAssessmentReportEvidenceInput) SetEvidenceIds(v []*string) *BatchAssociateAssessmentReportEvidenceInput { s.EvidenceIds = v return s } type BatchAssociateAssessmentReportEvidenceOutput struct { _ struct{} `type:"structure"` // A list of errors returned by the BatchAssociateAssessmentReportEvidence API. Errors []*AssessmentReportEvidenceError `locationName:"errors" type:"list"` // The identifier for the evidence. EvidenceIds []*string `locationName:"evidenceIds" type:"list"` } // String returns the string representation func (s BatchAssociateAssessmentReportEvidenceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s BatchAssociateAssessmentReportEvidenceOutput) GoString() string { return s.String() } // SetErrors sets the Errors field's value. func (s *BatchAssociateAssessmentReportEvidenceOutput) SetErrors(v []*AssessmentReportEvidenceError) *BatchAssociateAssessmentReportEvidenceOutput { s.Errors = v return s } // SetEvidenceIds sets the EvidenceIds field's value. func (s *BatchAssociateAssessmentReportEvidenceOutput) SetEvidenceIds(v []*string) *BatchAssociateAssessmentReportEvidenceOutput { s.EvidenceIds = v return s } // An error entity for the BatchCreateDelegationByAssessment API. This is used // to provide more meaningful errors than a simple string message. type BatchCreateDelegationByAssessmentError struct { _ struct{} `type:"structure"` // The API request to batch create delegations in Audit Manager. CreateDelegationRequest *CreateDelegationRequest `locationName:"createDelegationRequest" type:"structure"` // The error code returned by the BatchCreateDelegationByAssessment API. ErrorCode *string `locationName:"errorCode" min:"3" type:"string"` // The error message returned by the BatchCreateDelegationByAssessment API. ErrorMessage *string `locationName:"errorMessage" type:"string"` } // String returns the string representation func (s BatchCreateDelegationByAssessmentError) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s BatchCreateDelegationByAssessmentError) GoString() string { return s.String() } // SetCreateDelegationRequest sets the CreateDelegationRequest field's value. func (s *BatchCreateDelegationByAssessmentError) SetCreateDelegationRequest(v *CreateDelegationRequest) *BatchCreateDelegationByAssessmentError { s.CreateDelegationRequest = v return s } // SetErrorCode sets the ErrorCode field's value. func (s *BatchCreateDelegationByAssessmentError) SetErrorCode(v string) *BatchCreateDelegationByAssessmentError { s.ErrorCode = &v return s } // SetErrorMessage sets the ErrorMessage field's value. func (s *BatchCreateDelegationByAssessmentError) SetErrorMessage(v string) *BatchCreateDelegationByAssessmentError { s.ErrorMessage = &v return s } type BatchCreateDelegationByAssessmentInput struct { _ struct{} `type:"structure"` // The identifier for the specified assessment. // // AssessmentId is a required field AssessmentId *string `location:"uri" locationName:"assessmentId" min:"36" type:"string" required:"true"` // The API request to batch create delegations in Audit Manager. // // CreateDelegationRequests is a required field CreateDelegationRequests []*CreateDelegationRequest `locationName:"createDelegationRequests" min:"1" type:"list" required:"true"` } // String returns the string representation func (s BatchCreateDelegationByAssessmentInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s BatchCreateDelegationByAssessmentInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *BatchCreateDelegationByAssessmentInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "BatchCreateDelegationByAssessmentInput"} if s.AssessmentId == nil { invalidParams.Add(request.NewErrParamRequired("AssessmentId")) } if s.AssessmentId != nil && len(*s.AssessmentId) < 36 { invalidParams.Add(request.NewErrParamMinLen("AssessmentId", 36)) } if s.CreateDelegationRequests == nil { invalidParams.Add(request.NewErrParamRequired("CreateDelegationRequests")) } if s.CreateDelegationRequests != nil && len(s.CreateDelegationRequests) < 1 { invalidParams.Add(request.NewErrParamMinLen("CreateDelegationRequests", 1)) } if s.CreateDelegationRequests != nil { for i, v := range s.CreateDelegationRequests { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CreateDelegationRequests", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAssessmentId sets the AssessmentId field's value. func (s *BatchCreateDelegationByAssessmentInput) SetAssessmentId(v string) *BatchCreateDelegationByAssessmentInput { s.AssessmentId = &v return s } // SetCreateDelegationRequests sets the CreateDelegationRequests field's value. func (s *BatchCreateDelegationByAssessmentInput) SetCreateDelegationRequests(v []*CreateDelegationRequest) *BatchCreateDelegationByAssessmentInput { s.CreateDelegationRequests = v return s } type BatchCreateDelegationByAssessmentOutput struct { _ struct{} `type:"structure"` // The delegations associated with the assessment. Delegations []*Delegation `locationName:"delegations" type:"list"` // A list of errors returned by the BatchCreateDelegationByAssessment API. Errors []*BatchCreateDelegationByAssessmentError `locationName:"errors" type:"list"` } // String returns the string representation func (s BatchCreateDelegationByAssessmentOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s BatchCreateDelegationByAssessmentOutput) GoString() string { return s.String() } // SetDelegations sets the Delegations field's value. func (s *BatchCreateDelegationByAssessmentOutput) SetDelegations(v []*Delegation) *BatchCreateDelegationByAssessmentOutput { s.Delegations = v return s } // SetErrors sets the Errors field's value. func (s *BatchCreateDelegationByAssessmentOutput) SetErrors(v []*BatchCreateDelegationByAssessmentError) *BatchCreateDelegationByAssessmentOutput { s.Errors = v return s } // An error entity for the BatchDeleteDelegationByAssessment API. This is used // to provide more meaningful errors than a simple string message. type BatchDeleteDelegationByAssessmentError struct { _ struct{} `type:"structure"` // The identifier for the specified delegation. DelegationId *string `locationName:"delegationId" min:"36" type:"string"` // The error code returned by the BatchDeleteDelegationByAssessment API. ErrorCode *string `locationName:"errorCode" min:"3" type:"string"` // The error message returned by the BatchDeleteDelegationByAssessment API. ErrorMessage *string `locationName:"errorMessage" type:"string"` } // String returns the string representation func (s BatchDeleteDelegationByAssessmentError) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s BatchDeleteDelegationByAssessmentError) GoString() string { return s.String() } // SetDelegationId sets the DelegationId field's value. func (s *BatchDeleteDelegationByAssessmentError) SetDelegationId(v string) *BatchDeleteDelegationByAssessmentError { s.DelegationId = &v return s } // SetErrorCode sets the ErrorCode field's value. func (s *BatchDeleteDelegationByAssessmentError) SetErrorCode(v string) *BatchDeleteDelegationByAssessmentError { s.ErrorCode = &v return s } // SetErrorMessage sets the ErrorMessage field's value. func (s *BatchDeleteDelegationByAssessmentError) SetErrorMessage(v string) *BatchDeleteDelegationByAssessmentError { s.ErrorMessage = &v return s } type BatchDeleteDelegationByAssessmentInput struct { _ struct{} `type:"structure"` // The identifier for the specified assessment. // // AssessmentId is a required field AssessmentId *string `location:"uri" locationName:"assessmentId" min:"36" type:"string" required:"true"` // The identifiers for the specified delegations. // // DelegationIds is a required field DelegationIds []*string `locationName:"delegationIds" min:"1" type:"list" required:"true"` } // String returns the string representation func (s BatchDeleteDelegationByAssessmentInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s BatchDeleteDelegationByAssessmentInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *BatchDeleteDelegationByAssessmentInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "BatchDeleteDelegationByAssessmentInput"} if s.AssessmentId == nil { invalidParams.Add(request.NewErrParamRequired("AssessmentId")) } if s.AssessmentId != nil && len(*s.AssessmentId) < 36 { invalidParams.Add(request.NewErrParamMinLen("AssessmentId", 36)) } if s.DelegationIds == nil { invalidParams.Add(request.NewErrParamRequired("DelegationIds")) } if s.DelegationIds != nil && len(s.DelegationIds) < 1 { invalidParams.Add(request.NewErrParamMinLen("DelegationIds", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAssessmentId sets the AssessmentId field's value. func (s *BatchDeleteDelegationByAssessmentInput) SetAssessmentId(v string) *BatchDeleteDelegationByAssessmentInput { s.AssessmentId = &v return s } // SetDelegationIds sets the DelegationIds field's value. func (s *BatchDeleteDelegationByAssessmentInput) SetDelegationIds(v []*string) *BatchDeleteDelegationByAssessmentInput { s.DelegationIds = v return s } type BatchDeleteDelegationByAssessmentOutput struct { _ struct{} `type:"structure"` // A list of errors returned by the BatchDeleteDelegationByAssessment API. Errors []*BatchDeleteDelegationByAssessmentError `locationName:"errors" type:"list"` } // String returns the string representation func (s BatchDeleteDelegationByAssessmentOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s BatchDeleteDelegationByAssessmentOutput) GoString() string { return s.String() } // SetErrors sets the Errors field's value. func (s *BatchDeleteDelegationByAssessmentOutput) SetErrors(v []*BatchDeleteDelegationByAssessmentError) *BatchDeleteDelegationByAssessmentOutput { s.Errors = v return s } type BatchDisassociateAssessmentReportEvidenceInput struct { _ struct{} `type:"structure"` // The identifier for the specified assessment. // // AssessmentId is a required field AssessmentId *string `location:"uri" locationName:"assessmentId" min:"36" type:"string" required:"true"` // The identifier for the folder in which evidence is stored. // // EvidenceFolderId is a required field EvidenceFolderId *string `locationName:"evidenceFolderId" min:"36" type:"string" required:"true"` // The list of evidence identifiers. // // EvidenceIds is a required field EvidenceIds []*string `locationName:"evidenceIds" type:"list" required:"true"` } // String returns the string representation func (s BatchDisassociateAssessmentReportEvidenceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s BatchDisassociateAssessmentReportEvidenceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *BatchDisassociateAssessmentReportEvidenceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "BatchDisassociateAssessmentReportEvidenceInput"} if s.AssessmentId == nil { invalidParams.Add(request.NewErrParamRequired("AssessmentId")) } if s.AssessmentId != nil && len(*s.AssessmentId) < 36 { invalidParams.Add(request.NewErrParamMinLen("AssessmentId", 36)) } if s.EvidenceFolderId == nil { invalidParams.Add(request.NewErrParamRequired("EvidenceFolderId")) } if s.EvidenceFolderId != nil && len(*s.EvidenceFolderId) < 36 { invalidParams.Add(request.NewErrParamMinLen("EvidenceFolderId", 36)) } if s.EvidenceIds == nil { invalidParams.Add(request.NewErrParamRequired("EvidenceIds")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAssessmentId sets the AssessmentId field's value. func (s *BatchDisassociateAssessmentReportEvidenceInput) SetAssessmentId(v string) *BatchDisassociateAssessmentReportEvidenceInput { s.AssessmentId = &v return s } // SetEvidenceFolderId sets the EvidenceFolderId field's value. func (s *BatchDisassociateAssessmentReportEvidenceInput) SetEvidenceFolderId(v string) *BatchDisassociateAssessmentReportEvidenceInput { s.EvidenceFolderId = &v return s } // SetEvidenceIds sets the EvidenceIds field's value. func (s *BatchDisassociateAssessmentReportEvidenceInput) SetEvidenceIds(v []*string) *BatchDisassociateAssessmentReportEvidenceInput { s.EvidenceIds = v return s } type BatchDisassociateAssessmentReportEvidenceOutput struct { _ struct{} `type:"structure"` // A list of errors returned by the BatchDisassociateAssessmentReportEvidence // API. Errors []*AssessmentReportEvidenceError `locationName:"errors" type:"list"` // The identifier for the evidence. EvidenceIds []*string `locationName:"evidenceIds" type:"list"` } // String returns the string representation func (s BatchDisassociateAssessmentReportEvidenceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s BatchDisassociateAssessmentReportEvidenceOutput) GoString() string { return s.String() } // SetErrors sets the Errors field's value. func (s *BatchDisassociateAssessmentReportEvidenceOutput) SetErrors(v []*AssessmentReportEvidenceError) *BatchDisassociateAssessmentReportEvidenceOutput { s.Errors = v return s } // SetEvidenceIds sets the EvidenceIds field's value. func (s *BatchDisassociateAssessmentReportEvidenceOutput) SetEvidenceIds(v []*string) *BatchDisassociateAssessmentReportEvidenceOutput { s.EvidenceIds = v return s } // An error entity for the BatchImportEvidenceToAssessmentControl API. This // is used to provide more meaningful errors than a simple string message. type BatchImportEvidenceToAssessmentControlError struct { _ struct{} `type:"structure"` // The error code returned by the BatchImportEvidenceToAssessmentControl API. ErrorCode *string `locationName:"errorCode" min:"3" type:"string"` // The error message returned by the BatchImportEvidenceToAssessmentControl // API. ErrorMessage *string `locationName:"errorMessage" type:"string"` // Manual evidence that cannot be collected automatically by Audit Manager. ManualEvidence *ManualEvidence `locationName:"manualEvidence" type:"structure"` } // String returns the string representation func (s BatchImportEvidenceToAssessmentControlError) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s BatchImportEvidenceToAssessmentControlError) GoString() string { return s.String() } // SetErrorCode sets the ErrorCode field's value. func (s *BatchImportEvidenceToAssessmentControlError) SetErrorCode(v string) *BatchImportEvidenceToAssessmentControlError { s.ErrorCode = &v return s } // SetErrorMessage sets the ErrorMessage field's value. func (s *BatchImportEvidenceToAssessmentControlError) SetErrorMessage(v string) *BatchImportEvidenceToAssessmentControlError { s.ErrorMessage = &v return s } // SetManualEvidence sets the ManualEvidence field's value. func (s *BatchImportEvidenceToAssessmentControlError) SetManualEvidence(v *ManualEvidence) *BatchImportEvidenceToAssessmentControlError { s.ManualEvidence = v return s } type BatchImportEvidenceToAssessmentControlInput struct { _ struct{} `type:"structure"` // The identifier for the specified assessment. // // AssessmentId is a required field AssessmentId *string `location:"uri" locationName:"assessmentId" min:"36" type:"string" required:"true"` // The identifier for the specified control. // // ControlId is a required field ControlId *string `location:"uri" locationName:"controlId" min:"36" type:"string" required:"true"` // The identifier for the specified control set. // // ControlSetId is a required field ControlSetId *string `location:"uri" locationName:"controlSetId" min:"1" type:"string" required:"true"` // The list of manual evidence objects. // // ManualEvidence is a required field ManualEvidence []*ManualEvidence `locationName:"manualEvidence" min:"1" type:"list" required:"true"` } // String returns the string representation func (s BatchImportEvidenceToAssessmentControlInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s BatchImportEvidenceToAssessmentControlInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *BatchImportEvidenceToAssessmentControlInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "BatchImportEvidenceToAssessmentControlInput"} if s.AssessmentId == nil { invalidParams.Add(request.NewErrParamRequired("AssessmentId")) } if s.AssessmentId != nil && len(*s.AssessmentId) < 36 { invalidParams.Add(request.NewErrParamMinLen("AssessmentId", 36)) } if s.ControlId == nil { invalidParams.Add(request.NewErrParamRequired("ControlId")) } if s.ControlId != nil && len(*s.ControlId) < 36 { invalidParams.Add(request.NewErrParamMinLen("ControlId", 36)) } if s.ControlSetId == nil { invalidParams.Add(request.NewErrParamRequired("ControlSetId")) } if s.ControlSetId != nil && len(*s.ControlSetId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ControlSetId", 1)) } if s.ManualEvidence == nil { invalidParams.Add(request.NewErrParamRequired("ManualEvidence")) } if s.ManualEvidence != nil && len(s.ManualEvidence) < 1 { invalidParams.Add(request.NewErrParamMinLen("ManualEvidence", 1)) } if s.ManualEvidence != nil { for i, v := range s.ManualEvidence { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ManualEvidence", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAssessmentId sets the AssessmentId field's value. func (s *BatchImportEvidenceToAssessmentControlInput) SetAssessmentId(v string) *BatchImportEvidenceToAssessmentControlInput { s.AssessmentId = &v return s } // SetControlId sets the ControlId field's value. func (s *BatchImportEvidenceToAssessmentControlInput) SetControlId(v string) *BatchImportEvidenceToAssessmentControlInput { s.ControlId = &v return s } // SetControlSetId sets the ControlSetId field's value. func (s *BatchImportEvidenceToAssessmentControlInput) SetControlSetId(v string) *BatchImportEvidenceToAssessmentControlInput { s.ControlSetId = &v return s } // SetManualEvidence sets the ManualEvidence field's value. func (s *BatchImportEvidenceToAssessmentControlInput) SetManualEvidence(v []*ManualEvidence) *BatchImportEvidenceToAssessmentControlInput { s.ManualEvidence = v return s } type BatchImportEvidenceToAssessmentControlOutput struct { _ struct{} `type:"structure"` // A list of errors returned by the BatchImportEvidenceToAssessmentControl API. Errors []*BatchImportEvidenceToAssessmentControlError `locationName:"errors" type:"list"` } // String returns the string representation func (s BatchImportEvidenceToAssessmentControlOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s BatchImportEvidenceToAssessmentControlOutput) GoString() string { return s.String() } // SetErrors sets the Errors field's value. func (s *BatchImportEvidenceToAssessmentControlOutput) SetErrors(v []*BatchImportEvidenceToAssessmentControlError) *BatchImportEvidenceToAssessmentControlOutput { s.Errors = v return s } // The record of a change within Audit Manager, such as a modified assessment, // a delegated control set, and so on. type ChangeLog struct { _ struct{} `type:"structure"` // The action performed. Action *string `locationName:"action" type:"string" enum:"ActionEnum"` // The time of creation for the changelog object. CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` // The IAM user or role that performed the action. CreatedBy *string `locationName:"createdBy" min:"20" type:"string"` // The name of the changelog object. ObjectName *string `locationName:"objectName" min:"1" type:"string"` // The changelog object type, such as an assessment, control, or control set. ObjectType *string `locationName:"objectType" type:"string" enum:"ObjectTypeEnum"` } // String returns the string representation func (s ChangeLog) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ChangeLog) GoString() string { return s.String() } // SetAction sets the Action field's value. func (s *ChangeLog) SetAction(v string) *ChangeLog { s.Action = &v return s } // SetCreatedAt sets the CreatedAt field's value. func (s *ChangeLog) SetCreatedAt(v time.Time) *ChangeLog { s.CreatedAt = &v return s } // SetCreatedBy sets the CreatedBy field's value. func (s *ChangeLog) SetCreatedBy(v string) *ChangeLog { s.CreatedBy = &v return s } // SetObjectName sets the ObjectName field's value. func (s *ChangeLog) SetObjectName(v string) *ChangeLog { s.ObjectName = &v return s } // SetObjectType sets the ObjectType field's value. func (s *ChangeLog) SetObjectType(v string) *ChangeLog { s.ObjectType = &v return s } // A control in Audit Manager. type Control struct { _ struct{} `type:"structure"` // The recommended actions to carry out if the control is not fulfilled. ActionPlanInstructions *string `locationName:"actionPlanInstructions" type:"string"` // The title of the action plan for remediating the control. ActionPlanTitle *string `locationName:"actionPlanTitle" type:"string"` // The Amazon Resource Name (ARN) of the specified control. Arn *string `locationName:"arn" min:"20" type:"string"` // The data mapping sources for the specified control. ControlMappingSources []*ControlMappingSource `locationName:"controlMappingSources" min:"1" type:"list"` // The data source that determines from where Audit Manager collects evidence // for the control. ControlSources *string `locationName:"controlSources" min:"1" type:"string"` // Specifies when the control was created. CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` // The IAM user or role that created the control. CreatedBy *string `locationName:"createdBy" min:"1" type:"string"` // The description of the specified control. Description *string `locationName:"description" type:"string"` // The unique identifier for the control. Id *string `locationName:"id" min:"36" type:"string"` // Specifies when the control was most recently updated. LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"` // The IAM user or role that most recently updated the control. LastUpdatedBy *string `locationName:"lastUpdatedBy" min:"1" type:"string"` // The name of the specified control. Name *string `locationName:"name" min:"1" type:"string"` // The tags associated with the control. Tags map[string]*string `locationName:"tags" type:"map"` // The steps to follow to determine if the control has been satisfied. TestingInformation *string `locationName:"testingInformation" type:"string"` // The type of control, such as custom or standard. Type *string `locationName:"type" type:"string" enum:"ControlType"` } // String returns the string representation func (s Control) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Control) GoString() string { return s.String() } // SetActionPlanInstructions sets the ActionPlanInstructions field's value. func (s *Control) SetActionPlanInstructions(v string) *Control { s.ActionPlanInstructions = &v return s } // SetActionPlanTitle sets the ActionPlanTitle field's value. func (s *Control) SetActionPlanTitle(v string) *Control { s.ActionPlanTitle = &v return s } // SetArn sets the Arn field's value. func (s *Control) SetArn(v string) *Control { s.Arn = &v return s } // SetControlMappingSources sets the ControlMappingSources field's value. func (s *Control) SetControlMappingSources(v []*ControlMappingSource) *Control { s.ControlMappingSources = v return s } // SetControlSources sets the ControlSources field's value. func (s *Control) SetControlSources(v string) *Control { s.ControlSources = &v return s } // SetCreatedAt sets the CreatedAt field's value. func (s *Control) SetCreatedAt(v time.Time) *Control { s.CreatedAt = &v return s } // SetCreatedBy sets the CreatedBy field's value. func (s *Control) SetCreatedBy(v string) *Control { s.CreatedBy = &v return s } // SetDescription sets the Description field's value. func (s *Control) SetDescription(v string) *Control { s.Description = &v return s } // SetId sets the Id field's value. func (s *Control) SetId(v string) *Control { s.Id = &v return s } // SetLastUpdatedAt sets the LastUpdatedAt field's value. func (s *Control) SetLastUpdatedAt(v time.Time) *Control { s.LastUpdatedAt = &v return s } // SetLastUpdatedBy sets the LastUpdatedBy field's value. func (s *Control) SetLastUpdatedBy(v string) *Control { s.LastUpdatedBy = &v return s } // SetName sets the Name field's value. func (s *Control) SetName(v string) *Control { s.Name = &v return s } // SetTags sets the Tags field's value. func (s *Control) SetTags(v map[string]*string) *Control { s.Tags = v return s } // SetTestingInformation sets the TestingInformation field's value. func (s *Control) SetTestingInformation(v string) *Control { s.TestingInformation = &v return s } // SetType sets the Type field's value. func (s *Control) SetType(v string) *Control { s.Type = &v return s } // A comment posted by a user on a control. This includes the author's name, // the comment text, and a timestamp. type ControlComment struct { _ struct{} `type:"structure"` // The name of the user who authored the comment. AuthorName *string `locationName:"authorName" min:"1" type:"string"` // The body text of a control comment. CommentBody *string `locationName:"commentBody" type:"string"` // The time when the comment was posted. PostedDate *time.Time `locationName:"postedDate" type:"timestamp"` } // String returns the string representation func (s ControlComment) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ControlComment) GoString() string { return s.String() } // SetAuthorName sets the AuthorName field's value. func (s *ControlComment) SetAuthorName(v string) *ControlComment { s.AuthorName = &v return s } // SetCommentBody sets the CommentBody field's value. func (s *ControlComment) SetCommentBody(v string) *ControlComment { s.CommentBody = &v return s } // SetPostedDate sets the PostedDate field's value. func (s *ControlComment) SetPostedDate(v time.Time) *ControlComment { s.PostedDate = &v return s } // The data source that determines from where Audit Manager collects evidence // for the control. type ControlMappingSource struct { _ struct{} `type:"structure"` // The description of the specified source. SourceDescription *string `locationName:"sourceDescription" type:"string"` // The frequency of evidence collection for the specified control mapping source. SourceFrequency *string `locationName:"sourceFrequency" type:"string" enum:"SourceFrequency"` // The unique identifier for the specified source. SourceId *string `locationName:"sourceId" min:"36" type:"string"` // The keyword to search for in CloudTrail logs, Config rules, Security Hub // checks, and Amazon Web Services API names. SourceKeyword *SourceKeyword `locationName:"sourceKeyword" type:"structure"` // The name of the specified source. SourceName *string `locationName:"sourceName" min:"1" type:"string"` // The setup option for the data source, which reflects if the evidence collection // is automated or manual. SourceSetUpOption *string `locationName:"sourceSetUpOption" type:"string" enum:"SourceSetUpOption"` // Specifies one of the five types of data sources for evidence collection. SourceType *string `locationName:"sourceType" type:"string" enum:"SourceType"` // The instructions for troubleshooting the specified control. TroubleshootingText *string `locationName:"troubleshootingText" type:"string"` } // String returns the string representation func (s ControlMappingSource) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ControlMappingSource) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ControlMappingSource) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ControlMappingSource"} if s.SourceId != nil && len(*s.SourceId) < 36 { invalidParams.Add(request.NewErrParamMinLen("SourceId", 36)) } if s.SourceName != nil && len(*s.SourceName) < 1 { invalidParams.Add(request.NewErrParamMinLen("SourceName", 1)) } if s.SourceKeyword != nil { if err := s.SourceKeyword.Validate(); err != nil { invalidParams.AddNested("SourceKeyword", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetSourceDescription sets the SourceDescription field's value. func (s *ControlMappingSource) SetSourceDescription(v string) *ControlMappingSource { s.SourceDescription = &v return s } // SetSourceFrequency sets the SourceFrequency field's value. func (s *ControlMappingSource) SetSourceFrequency(v string) *ControlMappingSource { s.SourceFrequency = &v return s } // SetSourceId sets the SourceId field's value. func (s *ControlMappingSource) SetSourceId(v string) *ControlMappingSource { s.SourceId = &v return s } // SetSourceKeyword sets the SourceKeyword field's value. func (s *ControlMappingSource) SetSourceKeyword(v *SourceKeyword) *ControlMappingSource { s.SourceKeyword = v return s } // SetSourceName sets the SourceName field's value. func (s *ControlMappingSource) SetSourceName(v string) *ControlMappingSource { s.SourceName = &v return s } // SetSourceSetUpOption sets the SourceSetUpOption field's value. func (s *ControlMappingSource) SetSourceSetUpOption(v string) *ControlMappingSource { s.SourceSetUpOption = &v return s } // SetSourceType sets the SourceType field's value. func (s *ControlMappingSource) SetSourceType(v string) *ControlMappingSource { s.SourceType = &v return s } // SetTroubleshootingText sets the TroubleshootingText field's value. func (s *ControlMappingSource) SetTroubleshootingText(v string) *ControlMappingSource { s.TroubleshootingText = &v return s } // The metadata associated with the specified standard or custom control. type ControlMetadata struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the specified control. Arn *string `locationName:"arn" min:"20" type:"string"` // The data source that determines from where Audit Manager collects evidence // for the control. ControlSources *string `locationName:"controlSources" min:"1" type:"string"` // Specifies when the control was created. CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` // The unique identifier for the specified control. Id *string `locationName:"id" min:"36" type:"string"` // Specifies when the control was most recently updated. LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"` // The name of the specified control. Name *string `locationName:"name" min:"1" type:"string"` } // String returns the string representation func (s ControlMetadata) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ControlMetadata) GoString() string { return s.String() } // SetArn sets the Arn field's value. func (s *ControlMetadata) SetArn(v string) *ControlMetadata { s.Arn = &v return s } // SetControlSources sets the ControlSources field's value. func (s *ControlMetadata) SetControlSources(v string) *ControlMetadata { s.ControlSources = &v return s } // SetCreatedAt sets the CreatedAt field's value. func (s *ControlMetadata) SetCreatedAt(v time.Time) *ControlMetadata { s.CreatedAt = &v return s } // SetId sets the Id field's value. func (s *ControlMetadata) SetId(v string) *ControlMetadata { s.Id = &v return s } // SetLastUpdatedAt sets the LastUpdatedAt field's value. func (s *ControlMetadata) SetLastUpdatedAt(v time.Time) *ControlMetadata { s.LastUpdatedAt = &v return s } // SetName sets the Name field's value. func (s *ControlMetadata) SetName(v string) *ControlMetadata { s.Name = &v return s } // A set of controls in Audit Manager. type ControlSet struct { _ struct{} `type:"structure"` // The list of controls within the control set. Controls []*Control `locationName:"controls" min:"1" type:"list"` // The identifier of the control set in the assessment. This is the control // set name in a plain string format. Id *string `locationName:"id" min:"36" type:"string"` // The name of the control set. Name *string `locationName:"name" min:"1" type:"string"` } // String returns the string representation func (s ControlSet) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ControlSet) GoString() string { return s.String() } // SetControls sets the Controls field's value. func (s *ControlSet) SetControls(v []*Control) *ControlSet { s.Controls = v return s } // SetId sets the Id field's value. func (s *ControlSet) SetId(v string) *ControlSet { s.Id = &v return s } // SetName sets the Name field's value. func (s *ControlSet) SetName(v string) *ControlSet { s.Name = &v return s } // Control entity attributes that uniquely identify an existing control to be // added to a framework in Audit Manager. type CreateAssessmentFrameworkControl struct { _ struct{} `type:"structure"` // The unique identifier of the control. Id *string `locationName:"id" min:"36" type:"string"` } // String returns the string representation func (s CreateAssessmentFrameworkControl) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateAssessmentFrameworkControl) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateAssessmentFrameworkControl) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateAssessmentFrameworkControl"} if s.Id != nil && len(*s.Id) < 36 { invalidParams.Add(request.NewErrParamMinLen("Id", 36)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetId sets the Id field's value. func (s *CreateAssessmentFrameworkControl) SetId(v string) *CreateAssessmentFrameworkControl { s.Id = &v return s } // A controlSet entity that represents a collection of controls in Audit Manager. // This does not contain the control set ID. type CreateAssessmentFrameworkControlSet struct { _ struct{} `type:"structure"` // The list of controls within the control set. This does not contain the control // set ID. Controls []*CreateAssessmentFrameworkControl `locationName:"controls" min:"1" type:"list"` // The name of the specified control set. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` } // String returns the string representation func (s CreateAssessmentFrameworkControlSet) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateAssessmentFrameworkControlSet) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateAssessmentFrameworkControlSet) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateAssessmentFrameworkControlSet"} if s.Controls != nil && len(s.Controls) < 1 { invalidParams.Add(request.NewErrParamMinLen("Controls", 1)) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if s.Controls != nil { for i, v := range s.Controls { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Controls", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetControls sets the Controls field's value. func (s *CreateAssessmentFrameworkControlSet) SetControls(v []*CreateAssessmentFrameworkControl) *CreateAssessmentFrameworkControlSet { s.Controls = v return s } // SetName sets the Name field's value. func (s *CreateAssessmentFrameworkControlSet) SetName(v string) *CreateAssessmentFrameworkControlSet { s.Name = &v return s } type CreateAssessmentFrameworkInput struct { _ struct{} `type:"structure"` // The compliance type that the new custom framework supports, such as CIS or // HIPAA. ComplianceType *string `locationName:"complianceType" type:"string"` // The control sets to be associated with the framework. // // ControlSets is a required field ControlSets []*CreateAssessmentFrameworkControlSet `locationName:"controlSets" min:"1" type:"list" required:"true"` // An optional description for the new custom framework. Description *string `locationName:"description" min:"1" type:"string"` // The name of the new custom framework. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` // The tags associated with the framework. Tags map[string]*string `locationName:"tags" type:"map"` } // String returns the string representation func (s CreateAssessmentFrameworkInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateAssessmentFrameworkInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateAssessmentFrameworkInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateAssessmentFrameworkInput"} if s.ControlSets == nil { invalidParams.Add(request.NewErrParamRequired("ControlSets")) } if s.ControlSets != nil && len(s.ControlSets) < 1 { invalidParams.Add(request.NewErrParamMinLen("ControlSets", 1)) } if s.Description != nil && len(*s.Description) < 1 { invalidParams.Add(request.NewErrParamMinLen("Description", 1)) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if s.ControlSets != nil { for i, v := range s.ControlSets { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ControlSets", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetComplianceType sets the ComplianceType field's value. func (s *CreateAssessmentFrameworkInput) SetComplianceType(v string) *CreateAssessmentFrameworkInput { s.ComplianceType = &v return s } // SetControlSets sets the ControlSets field's value. func (s *CreateAssessmentFrameworkInput) SetControlSets(v []*CreateAssessmentFrameworkControlSet) *CreateAssessmentFrameworkInput { s.ControlSets = v return s } // SetDescription sets the Description field's value. func (s *CreateAssessmentFrameworkInput) SetDescription(v string) *CreateAssessmentFrameworkInput { s.Description = &v return s } // SetName sets the Name field's value. func (s *CreateAssessmentFrameworkInput) SetName(v string) *CreateAssessmentFrameworkInput { s.Name = &v return s } // SetTags sets the Tags field's value. func (s *CreateAssessmentFrameworkInput) SetTags(v map[string]*string) *CreateAssessmentFrameworkInput { s.Tags = v return s } type CreateAssessmentFrameworkOutput struct { _ struct{} `type:"structure"` // The name of the new framework returned by the CreateAssessmentFramework API. Framework *Framework `locationName:"framework" type:"structure"` } // String returns the string representation func (s CreateAssessmentFrameworkOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateAssessmentFrameworkOutput) GoString() string { return s.String() } // SetFramework sets the Framework field's value. func (s *CreateAssessmentFrameworkOutput) SetFramework(v *Framework) *CreateAssessmentFrameworkOutput { s.Framework = v return s } type CreateAssessmentInput struct { _ struct{} `type:"structure"` // The assessment report storage destination for the specified assessment that // is being created. // // AssessmentReportsDestination is a required field AssessmentReportsDestination *AssessmentReportsDestination `locationName:"assessmentReportsDestination" type:"structure" required:"true"` // The optional description of the assessment to be created. Description *string `locationName:"description" type:"string"` // The identifier for the specified framework. // // FrameworkId is a required field FrameworkId *string `locationName:"frameworkId" min:"36" type:"string" required:"true"` // The name of the assessment to be created. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` // The list of roles for the specified assessment. // // Roles is a required field Roles []*Role `locationName:"roles" type:"list" required:"true"` // The wrapper that contains the accounts and services in scope for the assessment. // // Scope is a required field Scope *Scope `locationName:"scope" type:"structure" required:"true"` // The tags associated with the assessment. Tags map[string]*string `locationName:"tags" type:"map"` } // String returns the string representation func (s CreateAssessmentInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateAssessmentInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateAssessmentInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateAssessmentInput"} if s.AssessmentReportsDestination == nil { invalidParams.Add(request.NewErrParamRequired("AssessmentReportsDestination")) } if s.FrameworkId == nil { invalidParams.Add(request.NewErrParamRequired("FrameworkId")) } if s.FrameworkId != nil && len(*s.FrameworkId) < 36 { invalidParams.Add(request.NewErrParamMinLen("FrameworkId", 36)) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if s.Roles == nil { invalidParams.Add(request.NewErrParamRequired("Roles")) } if s.Scope == nil { invalidParams.Add(request.NewErrParamRequired("Scope")) } if s.AssessmentReportsDestination != nil { if err := s.AssessmentReportsDestination.Validate(); err != nil { invalidParams.AddNested("AssessmentReportsDestination", err.(request.ErrInvalidParams)) } } if s.Roles != nil { for i, v := range s.Roles { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Roles", i), err.(request.ErrInvalidParams)) } } } if s.Scope != nil { if err := s.Scope.Validate(); err != nil { invalidParams.AddNested("Scope", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAssessmentReportsDestination sets the AssessmentReportsDestination field's value. func (s *CreateAssessmentInput) SetAssessmentReportsDestination(v *AssessmentReportsDestination) *CreateAssessmentInput { s.AssessmentReportsDestination = v return s } // SetDescription sets the Description field's value. func (s *CreateAssessmentInput) SetDescription(v string) *CreateAssessmentInput { s.Description = &v return s } // SetFrameworkId sets the FrameworkId field's value. func (s *CreateAssessmentInput) SetFrameworkId(v string) *CreateAssessmentInput { s.FrameworkId = &v return s } // SetName sets the Name field's value. func (s *CreateAssessmentInput) SetName(v string) *CreateAssessmentInput { s.Name = &v return s } // SetRoles sets the Roles field's value. func (s *CreateAssessmentInput) SetRoles(v []*Role) *CreateAssessmentInput { s.Roles = v return s } // SetScope sets the Scope field's value. func (s *CreateAssessmentInput) SetScope(v *Scope) *CreateAssessmentInput { s.Scope = v return s } // SetTags sets the Tags field's value. func (s *CreateAssessmentInput) SetTags(v map[string]*string) *CreateAssessmentInput { s.Tags = v return s } type CreateAssessmentOutput struct { _ struct{} `type:"structure"` // An entity that defines the scope of audit evidence collected by Audit Manager. // An Audit Manager assessment is an implementation of an Audit Manager framework. Assessment *Assessment `locationName:"assessment" type:"structure"` } // String returns the string representation func (s CreateAssessmentOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateAssessmentOutput) GoString() string { return s.String() } // SetAssessment sets the Assessment field's value. func (s *CreateAssessmentOutput) SetAssessment(v *Assessment) *CreateAssessmentOutput { s.Assessment = v return s } type CreateAssessmentReportInput struct { _ struct{} `type:"structure"` // The identifier for the specified assessment. // // AssessmentId is a required field AssessmentId *string `location:"uri" locationName:"assessmentId" min:"36" type:"string" required:"true"` // The description of the assessment report. Description *string `locationName:"description" type:"string"` // The name of the new assessment report. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` } // String returns the string representation func (s CreateAssessmentReportInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateAssessmentReportInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateAssessmentReportInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateAssessmentReportInput"} if s.AssessmentId == nil { invalidParams.Add(request.NewErrParamRequired("AssessmentId")) } if s.AssessmentId != nil && len(*s.AssessmentId) < 36 { invalidParams.Add(request.NewErrParamMinLen("AssessmentId", 36)) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAssessmentId sets the AssessmentId field's value. func (s *CreateAssessmentReportInput) SetAssessmentId(v string) *CreateAssessmentReportInput { s.AssessmentId = &v return s } // SetDescription sets the Description field's value. func (s *CreateAssessmentReportInput) SetDescription(v string) *CreateAssessmentReportInput { s.Description = &v return s } // SetName sets the Name field's value. func (s *CreateAssessmentReportInput) SetName(v string) *CreateAssessmentReportInput { s.Name = &v return s } type CreateAssessmentReportOutput struct { _ struct{} `type:"structure"` // The new assessment report returned by the CreateAssessmentReport API. AssessmentReport *AssessmentReport `locationName:"assessmentReport" type:"structure"` } // String returns the string representation func (s CreateAssessmentReportOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateAssessmentReportOutput) GoString() string { return s.String() } // SetAssessmentReport sets the AssessmentReport field's value. func (s *CreateAssessmentReportOutput) SetAssessmentReport(v *AssessmentReport) *CreateAssessmentReportOutput { s.AssessmentReport = v return s } type CreateControlInput struct { _ struct{} `type:"structure"` // The recommended actions to carry out if the control is not fulfilled. ActionPlanInstructions *string `locationName:"actionPlanInstructions" type:"string"` // The title of the action plan for remediating the control. ActionPlanTitle *string `locationName:"actionPlanTitle" type:"string"` // The data mapping sources for the specified control. // // ControlMappingSources is a required field ControlMappingSources []*CreateControlMappingSource `locationName:"controlMappingSources" min:"1" type:"list" required:"true"` // The description of the control. Description *string `locationName:"description" type:"string"` // The name of the control. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` // The tags associated with the control. Tags map[string]*string `locationName:"tags" type:"map"` // The steps to follow to determine if the control has been satisfied. TestingInformation *string `locationName:"testingInformation" type:"string"` } // String returns the string representation func (s CreateControlInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateControlInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateControlInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateControlInput"} if s.ControlMappingSources == nil { invalidParams.Add(request.NewErrParamRequired("ControlMappingSources")) } if s.ControlMappingSources != nil && len(s.ControlMappingSources) < 1 { invalidParams.Add(request.NewErrParamMinLen("ControlMappingSources", 1)) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if s.ControlMappingSources != nil { for i, v := range s.ControlMappingSources { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ControlMappingSources", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetActionPlanInstructions sets the ActionPlanInstructions field's value. func (s *CreateControlInput) SetActionPlanInstructions(v string) *CreateControlInput { s.ActionPlanInstructions = &v return s } // SetActionPlanTitle sets the ActionPlanTitle field's value. func (s *CreateControlInput) SetActionPlanTitle(v string) *CreateControlInput { s.ActionPlanTitle = &v return s } // SetControlMappingSources sets the ControlMappingSources field's value. func (s *CreateControlInput) SetControlMappingSources(v []*CreateControlMappingSource) *CreateControlInput { s.ControlMappingSources = v return s } // SetDescription sets the Description field's value. func (s *CreateControlInput) SetDescription(v string) *CreateControlInput { s.Description = &v return s } // SetName sets the Name field's value. func (s *CreateControlInput) SetName(v string) *CreateControlInput { s.Name = &v return s } // SetTags sets the Tags field's value. func (s *CreateControlInput) SetTags(v map[string]*string) *CreateControlInput { s.Tags = v return s } // SetTestingInformation sets the TestingInformation field's value. func (s *CreateControlInput) SetTestingInformation(v string) *CreateControlInput { s.TestingInformation = &v return s } // Control mapping fields that represent the source for evidence collection, // along with related parameters and metadata. This does not contain mappingID. type CreateControlMappingSource struct { _ struct{} `type:"structure"` // The description of the data source that determines from where Audit Manager // collects evidence for the control. SourceDescription *string `locationName:"sourceDescription" type:"string"` // The frequency of evidence collection for the specified control mapping source. SourceFrequency *string `locationName:"sourceFrequency" type:"string" enum:"SourceFrequency"` // The keyword to search for in CloudTrail logs, Config rules, Security Hub // checks, and Amazon Web Services API names. SourceKeyword *SourceKeyword `locationName:"sourceKeyword" type:"structure"` // The name of the control mapping data source. SourceName *string `locationName:"sourceName" min:"1" type:"string"` // The setup option for the data source, which reflects if the evidence collection // is automated or manual. SourceSetUpOption *string `locationName:"sourceSetUpOption" type:"string" enum:"SourceSetUpOption"` // Specifies one of the five types of data sources for evidence collection. SourceType *string `locationName:"sourceType" type:"string" enum:"SourceType"` // The instructions for troubleshooting the specified control. TroubleshootingText *string `locationName:"troubleshootingText" type:"string"` } // String returns the string representation func (s CreateControlMappingSource) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateControlMappingSource) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateControlMappingSource) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateControlMappingSource"} if s.SourceName != nil && len(*s.SourceName) < 1 { invalidParams.Add(request.NewErrParamMinLen("SourceName", 1)) } if s.SourceKeyword != nil { if err := s.SourceKeyword.Validate(); err != nil { invalidParams.AddNested("SourceKeyword", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetSourceDescription sets the SourceDescription field's value. func (s *CreateControlMappingSource) SetSourceDescription(v string) *CreateControlMappingSource { s.SourceDescription = &v return s } // SetSourceFrequency sets the SourceFrequency field's value. func (s *CreateControlMappingSource) SetSourceFrequency(v string) *CreateControlMappingSource { s.SourceFrequency = &v return s } // SetSourceKeyword sets the SourceKeyword field's value. func (s *CreateControlMappingSource) SetSourceKeyword(v *SourceKeyword) *CreateControlMappingSource { s.SourceKeyword = v return s } // SetSourceName sets the SourceName field's value. func (s *CreateControlMappingSource) SetSourceName(v string) *CreateControlMappingSource { s.SourceName = &v return s } // SetSourceSetUpOption sets the SourceSetUpOption field's value. func (s *CreateControlMappingSource) SetSourceSetUpOption(v string) *CreateControlMappingSource { s.SourceSetUpOption = &v return s } // SetSourceType sets the SourceType field's value. func (s *CreateControlMappingSource) SetSourceType(v string) *CreateControlMappingSource { s.SourceType = &v return s } // SetTroubleshootingText sets the TroubleshootingText field's value. func (s *CreateControlMappingSource) SetTroubleshootingText(v string) *CreateControlMappingSource { s.TroubleshootingText = &v return s } type CreateControlOutput struct { _ struct{} `type:"structure"` // The new control returned by the CreateControl API. Control *Control `locationName:"control" type:"structure"` } // String returns the string representation func (s CreateControlOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateControlOutput) GoString() string { return s.String() } // SetControl sets the Control field's value. func (s *CreateControlOutput) SetControl(v *Control) *CreateControlOutput { s.Control = v return s } // A collection of attributes used to create a delegation for an assessment // in Audit Manager. type CreateDelegationRequest struct { _ struct{} `type:"structure"` // A comment related to the delegation request. Comment *string `locationName:"comment" type:"string"` // The unique identifier for the control set. ControlSetId *string `locationName:"controlSetId" min:"1" type:"string"` // The Amazon Resource Name (ARN) of the IAM role. RoleArn *string `locationName:"roleArn" min:"20" type:"string"` // The type of customer persona. // // In CreateAssessment, roleType can only be PROCESS_OWNER. // // In UpdateSettings, roleType can only be PROCESS_OWNER. // // In BatchCreateDelegationByAssessment, roleType can only be RESOURCE_OWNER. RoleType *string `locationName:"roleType" type:"string" enum:"RoleType"` } // String returns the string representation func (s CreateDelegationRequest) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateDelegationRequest) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateDelegationRequest) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateDelegationRequest"} if s.ControlSetId != nil && len(*s.ControlSetId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ControlSetId", 1)) } if s.RoleArn != nil && len(*s.RoleArn) < 20 { invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetComment sets the Comment field's value. func (s *CreateDelegationRequest) SetComment(v string) *CreateDelegationRequest { s.Comment = &v return s } // SetControlSetId sets the ControlSetId field's value. func (s *CreateDelegationRequest) SetControlSetId(v string) *CreateDelegationRequest { s.ControlSetId = &v return s } // SetRoleArn sets the RoleArn field's value. func (s *CreateDelegationRequest) SetRoleArn(v string) *CreateDelegationRequest { s.RoleArn = &v return s } // SetRoleType sets the RoleType field's value. func (s *CreateDelegationRequest) SetRoleType(v string) *CreateDelegationRequest { s.RoleType = &v return s } // The assignment of a control set to a delegate for review. type Delegation struct { _ struct{} `type:"structure"` // The identifier for the associated assessment. AssessmentId *string `locationName:"assessmentId" min:"36" type:"string"` // The name of the associated assessment. AssessmentName *string `locationName:"assessmentName" min:"1" type:"string"` // The comment related to the delegation. Comment *string `locationName:"comment" type:"string"` // The identifier for the associated control set. ControlSetId *string `locationName:"controlSetId" min:"1" type:"string"` // The IAM user or role that created the delegation. CreatedBy *string `locationName:"createdBy" min:"1" type:"string"` // Specifies when the delegation was created. CreationTime *time.Time `locationName:"creationTime" type:"timestamp"` // The unique identifier for the delegation. Id *string `locationName:"id" min:"36" type:"string"` // Specifies when the delegation was last updated. LastUpdated *time.Time `locationName:"lastUpdated" type:"timestamp"` // The Amazon Resource Name (ARN) of the IAM role. RoleArn *string `locationName:"roleArn" min:"20" type:"string"` // The type of customer persona. // // In CreateAssessment, roleType can only be PROCESS_OWNER. // // In UpdateSettings, roleType can only be PROCESS_OWNER. // // In BatchCreateDelegationByAssessment, roleType can only be RESOURCE_OWNER. RoleType *string `locationName:"roleType" type:"string" enum:"RoleType"` // The status of the delegation. Status *string `locationName:"status" type:"string" enum:"DelegationStatus"` } // String returns the string representation func (s Delegation) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Delegation) GoString() string { return s.String() } // SetAssessmentId sets the AssessmentId field's value. func (s *Delegation) SetAssessmentId(v string) *Delegation { s.AssessmentId = &v return s } // SetAssessmentName sets the AssessmentName field's value. func (s *Delegation) SetAssessmentName(v string) *Delegation { s.AssessmentName = &v return s } // SetComment sets the Comment field's value. func (s *Delegation) SetComment(v string) *Delegation { s.Comment = &v return s } // SetControlSetId sets the ControlSetId field's value. func (s *Delegation) SetControlSetId(v string) *Delegation { s.ControlSetId = &v return s } // SetCreatedBy sets the CreatedBy field's value. func (s *Delegation) SetCreatedBy(v string) *Delegation { s.CreatedBy = &v return s } // SetCreationTime sets the CreationTime field's value. func (s *Delegation) SetCreationTime(v time.Time) *Delegation { s.CreationTime = &v return s } // SetId sets the Id field's value. func (s *Delegation) SetId(v string) *Delegation { s.Id = &v return s } // SetLastUpdated sets the LastUpdated field's value. func (s *Delegation) SetLastUpdated(v time.Time) *Delegation { s.LastUpdated = &v return s } // SetRoleArn sets the RoleArn field's value. func (s *Delegation) SetRoleArn(v string) *Delegation { s.RoleArn = &v return s } // SetRoleType sets the RoleType field's value. func (s *Delegation) SetRoleType(v string) *Delegation { s.RoleType = &v return s } // SetStatus sets the Status field's value. func (s *Delegation) SetStatus(v string) *Delegation { s.Status = &v return s } // The metadata associated with the specified delegation. type DelegationMetadata struct { _ struct{} `type:"structure"` // The unique identifier for the specified assessment. AssessmentId *string `locationName:"assessmentId" min:"36" type:"string"` // The name of the associated assessment. AssessmentName *string `locationName:"assessmentName" min:"1" type:"string"` // Specifies the name of the control set delegated for review. ControlSetName *string `locationName:"controlSetName" min:"1" type:"string"` // Specifies when the delegation was created. CreationTime *time.Time `locationName:"creationTime" type:"timestamp"` // The unique identifier for the delegation. Id *string `locationName:"id" min:"36" type:"string"` // The Amazon Resource Name (ARN) of the IAM role. RoleArn *string `locationName:"roleArn" min:"20" type:"string"` // The current status of the delgation. Status *string `locationName:"status" type:"string" enum:"DelegationStatus"` } // String returns the string representation func (s DelegationMetadata) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DelegationMetadata) GoString() string { return s.String() } // SetAssessmentId sets the AssessmentId field's value. func (s *DelegationMetadata) SetAssessmentId(v string) *DelegationMetadata { s.AssessmentId = &v return s } // SetAssessmentName sets the AssessmentName field's value. func (s *DelegationMetadata) SetAssessmentName(v string) *DelegationMetadata { s.AssessmentName = &v return s } // SetControlSetName sets the ControlSetName field's value. func (s *DelegationMetadata) SetControlSetName(v string) *DelegationMetadata { s.ControlSetName = &v return s } // SetCreationTime sets the CreationTime field's value. func (s *DelegationMetadata) SetCreationTime(v time.Time) *DelegationMetadata { s.CreationTime = &v return s } // SetId sets the Id field's value. func (s *DelegationMetadata) SetId(v string) *DelegationMetadata { s.Id = &v return s } // SetRoleArn sets the RoleArn field's value. func (s *DelegationMetadata) SetRoleArn(v string) *DelegationMetadata { s.RoleArn = &v return s } // SetStatus sets the Status field's value. func (s *DelegationMetadata) SetStatus(v string) *DelegationMetadata { s.Status = &v return s } type DeleteAssessmentFrameworkInput struct { _ struct{} `type:"structure"` // The identifier for the specified framework. // // FrameworkId is a required field FrameworkId *string `location:"uri" locationName:"frameworkId" min:"36" type:"string" required:"true"` } // String returns the string representation func (s DeleteAssessmentFrameworkInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteAssessmentFrameworkInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteAssessmentFrameworkInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteAssessmentFrameworkInput"} if s.FrameworkId == nil { invalidParams.Add(request.NewErrParamRequired("FrameworkId")) } if s.FrameworkId != nil && len(*s.FrameworkId) < 36 { invalidParams.Add(request.NewErrParamMinLen("FrameworkId", 36)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetFrameworkId sets the FrameworkId field's value. func (s *DeleteAssessmentFrameworkInput) SetFrameworkId(v string) *DeleteAssessmentFrameworkInput { s.FrameworkId = &v return s } type DeleteAssessmentFrameworkOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteAssessmentFrameworkOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteAssessmentFrameworkOutput) GoString() string { return s.String() } type DeleteAssessmentInput struct { _ struct{} `type:"structure"` // The identifier for the specified assessment. // // AssessmentId is a required field AssessmentId *string `location:"uri" locationName:"assessmentId" min:"36" type:"string" required:"true"` } // String returns the string representation func (s DeleteAssessmentInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteAssessmentInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteAssessmentInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteAssessmentInput"} if s.AssessmentId == nil { invalidParams.Add(request.NewErrParamRequired("AssessmentId")) } if s.AssessmentId != nil && len(*s.AssessmentId) < 36 { invalidParams.Add(request.NewErrParamMinLen("AssessmentId", 36)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAssessmentId sets the AssessmentId field's value. func (s *DeleteAssessmentInput) SetAssessmentId(v string) *DeleteAssessmentInput { s.AssessmentId = &v return s } type DeleteAssessmentOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteAssessmentOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteAssessmentOutput) GoString() string { return s.String() } type DeleteAssessmentReportInput struct { _ struct{} `type:"structure"` // The identifier for the specified assessment. // // AssessmentId is a required field AssessmentId *string `location:"uri" locationName:"assessmentId" min:"36" type:"string" required:"true"` // The unique identifier for the assessment report. // // AssessmentReportId is a required field AssessmentReportId *string `location:"uri" locationName:"assessmentReportId" min:"36" type:"string" required:"true"` } // String returns the string representation func (s DeleteAssessmentReportInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteAssessmentReportInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteAssessmentReportInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteAssessmentReportInput"} if s.AssessmentId == nil { invalidParams.Add(request.NewErrParamRequired("AssessmentId")) } if s.AssessmentId != nil && len(*s.AssessmentId) < 36 { invalidParams.Add(request.NewErrParamMinLen("AssessmentId", 36)) } if s.AssessmentReportId == nil { invalidParams.Add(request.NewErrParamRequired("AssessmentReportId")) } if s.AssessmentReportId != nil && len(*s.AssessmentReportId) < 36 { invalidParams.Add(request.NewErrParamMinLen("AssessmentReportId", 36)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAssessmentId sets the AssessmentId field's value. func (s *DeleteAssessmentReportInput) SetAssessmentId(v string) *DeleteAssessmentReportInput { s.AssessmentId = &v return s } // SetAssessmentReportId sets the AssessmentReportId field's value. func (s *DeleteAssessmentReportInput) SetAssessmentReportId(v string) *DeleteAssessmentReportInput { s.AssessmentReportId = &v return s } type DeleteAssessmentReportOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteAssessmentReportOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteAssessmentReportOutput) GoString() string { return s.String() } type DeleteControlInput struct { _ struct{} `type:"structure"` // The identifier for the specified control. // // ControlId is a required field ControlId *string `location:"uri" locationName:"controlId" min:"36" type:"string" required:"true"` } // String returns the string representation func (s DeleteControlInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteControlInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteControlInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteControlInput"} if s.ControlId == nil { invalidParams.Add(request.NewErrParamRequired("ControlId")) } if s.ControlId != nil && len(*s.ControlId) < 36 { invalidParams.Add(request.NewErrParamMinLen("ControlId", 36)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetControlId sets the ControlId field's value. func (s *DeleteControlInput) SetControlId(v string) *DeleteControlInput { s.ControlId = &v return s } type DeleteControlOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteControlOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteControlOutput) GoString() string { return s.String() } type DeregisterAccountInput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeregisterAccountInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeregisterAccountInput) GoString() string { return s.String() } type DeregisterAccountOutput struct { _ struct{} `type:"structure"` // The registration status of the account. Status *string `locationName:"status" type:"string" enum:"AccountStatus"` } // String returns the string representation func (s DeregisterAccountOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeregisterAccountOutput) GoString() string { return s.String() } // SetStatus sets the Status field's value. func (s *DeregisterAccountOutput) SetStatus(v string) *DeregisterAccountOutput { s.Status = &v return s } type DeregisterOrganizationAdminAccountInput struct { _ struct{} `type:"structure"` // The identifier for the specified administrator account. AdminAccountId *string `locationName:"adminAccountId" min:"12" type:"string"` } // String returns the string representation func (s DeregisterOrganizationAdminAccountInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeregisterOrganizationAdminAccountInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeregisterOrganizationAdminAccountInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeregisterOrganizationAdminAccountInput"} if s.AdminAccountId != nil && len(*s.AdminAccountId) < 12 { invalidParams.Add(request.NewErrParamMinLen("AdminAccountId", 12)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAdminAccountId sets the AdminAccountId field's value. func (s *DeregisterOrganizationAdminAccountInput) SetAdminAccountId(v string) *DeregisterOrganizationAdminAccountInput { s.AdminAccountId = &v return s } type DeregisterOrganizationAdminAccountOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeregisterOrganizationAdminAccountOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeregisterOrganizationAdminAccountOutput) GoString() string { return s.String() } type DisassociateAssessmentReportEvidenceFolderInput struct { _ struct{} `type:"structure"` // The identifier for the specified assessment. // // AssessmentId is a required field AssessmentId *string `location:"uri" locationName:"assessmentId" min:"36" type:"string" required:"true"` // The identifier for the folder in which evidence is stored. // // EvidenceFolderId is a required field EvidenceFolderId *string `locationName:"evidenceFolderId" min:"36" type:"string" required:"true"` } // String returns the string representation func (s DisassociateAssessmentReportEvidenceFolderInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DisassociateAssessmentReportEvidenceFolderInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DisassociateAssessmentReportEvidenceFolderInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DisassociateAssessmentReportEvidenceFolderInput"} if s.AssessmentId == nil { invalidParams.Add(request.NewErrParamRequired("AssessmentId")) } if s.AssessmentId != nil && len(*s.AssessmentId) < 36 { invalidParams.Add(request.NewErrParamMinLen("AssessmentId", 36)) } if s.EvidenceFolderId == nil { invalidParams.Add(request.NewErrParamRequired("EvidenceFolderId")) } if s.EvidenceFolderId != nil && len(*s.EvidenceFolderId) < 36 { invalidParams.Add(request.NewErrParamMinLen("EvidenceFolderId", 36)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAssessmentId sets the AssessmentId field's value. func (s *DisassociateAssessmentReportEvidenceFolderInput) SetAssessmentId(v string) *DisassociateAssessmentReportEvidenceFolderInput { s.AssessmentId = &v return s } // SetEvidenceFolderId sets the EvidenceFolderId field's value. func (s *DisassociateAssessmentReportEvidenceFolderInput) SetEvidenceFolderId(v string) *DisassociateAssessmentReportEvidenceFolderInput { s.EvidenceFolderId = &v return s } type DisassociateAssessmentReportEvidenceFolderOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DisassociateAssessmentReportEvidenceFolderOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DisassociateAssessmentReportEvidenceFolderOutput) GoString() string { return s.String() } // A record that contains the information needed to demonstrate compliance with // the requirements specified by a control. Examples of evidence include change // activity triggered by a user, or a system configuration snapshot. type Evidence struct { _ struct{} `type:"structure"` // Specifies whether the evidence is included in the assessment report. AssessmentReportSelection *string `locationName:"assessmentReportSelection" type:"string"` // The names and values used by the evidence event, including an attribute name // (such as allowUsersToChangePassword) and value (such as true or false). Attributes map[string]*string `locationName:"attributes" type:"map"` // The identifier for the specified account. AwsAccountId *string `locationName:"awsAccountId" min:"12" type:"string"` // The account from which the evidence is collected, and its organization path. AwsOrganization *string `locationName:"awsOrganization" type:"string"` // The evaluation status for evidence that falls under the compliance check // category. For evidence collected from Security Hub, a Pass or Fail result // is shown. For evidence collected from Config, a Compliant or Noncompliant // result is shown. ComplianceCheck *string `locationName:"complianceCheck" type:"string"` // The data source from which the specified evidence was collected. DataSource *string `locationName:"dataSource" type:"string"` // The name of the specified evidence event. EventName *string `locationName:"eventName" type:"string"` // The Amazon Web Service from which the evidence is collected. EventSource *string `locationName:"eventSource" min:"1" type:"string"` // The identifier for the specified account. EvidenceAwsAccountId *string `locationName:"evidenceAwsAccountId" min:"12" type:"string"` // The type of automated evidence. EvidenceByType *string `locationName:"evidenceByType" type:"string"` // The identifier for the folder in which the evidence is stored. EvidenceFolderId *string `locationName:"evidenceFolderId" min:"36" type:"string"` // The unique identifier for the IAM user or role associated with the evidence. IamId *string `locationName:"iamId" min:"20" type:"string"` // The identifier for the evidence. Id *string `locationName:"id" min:"36" type:"string"` // The list of resources assessed to generate the evidence. ResourcesIncluded []*Resource `locationName:"resourcesIncluded" type:"list"` // The timestamp that represents when the evidence was collected. Time *time.Time `locationName:"time" type:"timestamp"` } // String returns the string representation func (s Evidence) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Evidence) GoString() string { return s.String() } // SetAssessmentReportSelection sets the AssessmentReportSelection field's value. func (s *Evidence) SetAssessmentReportSelection(v string) *Evidence { s.AssessmentReportSelection = &v return s } // SetAttributes sets the Attributes field's value. func (s *Evidence) SetAttributes(v map[string]*string) *Evidence { s.Attributes = v return s } // SetAwsAccountId sets the AwsAccountId field's value. func (s *Evidence) SetAwsAccountId(v string) *Evidence { s.AwsAccountId = &v return s } // SetAwsOrganization sets the AwsOrganization field's value. func (s *Evidence) SetAwsOrganization(v string) *Evidence { s.AwsOrganization = &v return s } // SetComplianceCheck sets the ComplianceCheck field's value. func (s *Evidence) SetComplianceCheck(v string) *Evidence { s.ComplianceCheck = &v return s } // SetDataSource sets the DataSource field's value. func (s *Evidence) SetDataSource(v string) *Evidence { s.DataSource = &v return s } // SetEventName sets the EventName field's value. func (s *Evidence) SetEventName(v string) *Evidence { s.EventName = &v return s } // SetEventSource sets the EventSource field's value. func (s *Evidence) SetEventSource(v string) *Evidence { s.EventSource = &v return s } // SetEvidenceAwsAccountId sets the EvidenceAwsAccountId field's value. func (s *Evidence) SetEvidenceAwsAccountId(v string) *Evidence { s.EvidenceAwsAccountId = &v return s } // SetEvidenceByType sets the EvidenceByType field's value. func (s *Evidence) SetEvidenceByType(v string) *Evidence { s.EvidenceByType = &v return s } // SetEvidenceFolderId sets the EvidenceFolderId field's value. func (s *Evidence) SetEvidenceFolderId(v string) *Evidence { s.EvidenceFolderId = &v return s } // SetIamId sets the IamId field's value. func (s *Evidence) SetIamId(v string) *Evidence { s.IamId = &v return s } // SetId sets the Id field's value. func (s *Evidence) SetId(v string) *Evidence { s.Id = &v return s } // SetResourcesIncluded sets the ResourcesIncluded field's value. func (s *Evidence) SetResourcesIncluded(v []*Resource) *Evidence { s.ResourcesIncluded = v return s } // SetTime sets the Time field's value. func (s *Evidence) SetTime(v time.Time) *Evidence { s.Time = &v return s } // The file used to structure and automate Audit Manager assessments for a given // compliance standard. type Framework struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the specified framework. Arn *string `locationName:"arn" min:"20" type:"string"` // The compliance type that the new custom framework supports, such as CIS or // HIPAA. ComplianceType *string `locationName:"complianceType" type:"string"` // The control sets associated with the framework. ControlSets []*ControlSet `locationName:"controlSets" min:"1" type:"list"` // The sources from which Audit Manager collects evidence for the control. ControlSources *string `locationName:"controlSources" min:"1" type:"string"` // Specifies when the framework was created. CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` // The IAM user or role that created the framework. CreatedBy *string `locationName:"createdBy" min:"1" type:"string"` // The description of the specified framework. Description *string `locationName:"description" min:"1" type:"string"` // The unique identifier for the specified framework. Id *string `locationName:"id" min:"36" type:"string"` // Specifies when the framework was most recently updated. LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"` // The IAM user or role that most recently updated the framework. LastUpdatedBy *string `locationName:"lastUpdatedBy" min:"1" type:"string"` // The logo associated with the framework. Logo *string `locationName:"logo" min:"1" type:"string"` // The name of the specified framework. Name *string `locationName:"name" min:"1" type:"string"` // The tags associated with the framework. Tags map[string]*string `locationName:"tags" type:"map"` // The framework type, such as custom or standard. Type *string `locationName:"type" type:"string" enum:"FrameworkType"` } // String returns the string representation func (s Framework) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Framework) GoString() string { return s.String() } // SetArn sets the Arn field's value. func (s *Framework) SetArn(v string) *Framework { s.Arn = &v return s } // SetComplianceType sets the ComplianceType field's value. func (s *Framework) SetComplianceType(v string) *Framework { s.ComplianceType = &v return s } // SetControlSets sets the ControlSets field's value. func (s *Framework) SetControlSets(v []*ControlSet) *Framework { s.ControlSets = v return s } // SetControlSources sets the ControlSources field's value. func (s *Framework) SetControlSources(v string) *Framework { s.ControlSources = &v return s } // SetCreatedAt sets the CreatedAt field's value. func (s *Framework) SetCreatedAt(v time.Time) *Framework { s.CreatedAt = &v return s } // SetCreatedBy sets the CreatedBy field's value. func (s *Framework) SetCreatedBy(v string) *Framework { s.CreatedBy = &v return s } // SetDescription sets the Description field's value. func (s *Framework) SetDescription(v string) *Framework { s.Description = &v return s } // SetId sets the Id field's value. func (s *Framework) SetId(v string) *Framework { s.Id = &v return s } // SetLastUpdatedAt sets the LastUpdatedAt field's value. func (s *Framework) SetLastUpdatedAt(v time.Time) *Framework { s.LastUpdatedAt = &v return s } // SetLastUpdatedBy sets the LastUpdatedBy field's value. func (s *Framework) SetLastUpdatedBy(v string) *Framework { s.LastUpdatedBy = &v return s } // SetLogo sets the Logo field's value. func (s *Framework) SetLogo(v string) *Framework { s.Logo = &v return s } // SetName sets the Name field's value. func (s *Framework) SetName(v string) *Framework { s.Name = &v return s } // SetTags sets the Tags field's value. func (s *Framework) SetTags(v map[string]*string) *Framework { s.Tags = v return s } // SetType sets the Type field's value. func (s *Framework) SetType(v string) *Framework { s.Type = &v return s } // The metadata of a framework, such as the name, ID, description, and so on. type FrameworkMetadata struct { _ struct{} `type:"structure"` // The compliance standard associated with the framework, such as PCI-DSS or // HIPAA. ComplianceType *string `locationName:"complianceType" type:"string"` // The description of the framework. Description *string `locationName:"description" min:"1" type:"string"` // The logo associated with the framework. Logo *string `locationName:"logo" min:"1" type:"string"` // The name of the framework. Name *string `locationName:"name" min:"1" type:"string"` } // String returns the string representation func (s FrameworkMetadata) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s FrameworkMetadata) GoString() string { return s.String() } // SetComplianceType sets the ComplianceType field's value. func (s *FrameworkMetadata) SetComplianceType(v string) *FrameworkMetadata { s.ComplianceType = &v return s } // SetDescription sets the Description field's value. func (s *FrameworkMetadata) SetDescription(v string) *FrameworkMetadata { s.Description = &v return s } // SetLogo sets the Logo field's value. func (s *FrameworkMetadata) SetLogo(v string) *FrameworkMetadata { s.Logo = &v return s } // SetName sets the Name field's value. func (s *FrameworkMetadata) SetName(v string) *FrameworkMetadata { s.Name = &v return s } type GetAccountStatusInput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s GetAccountStatusInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetAccountStatusInput) GoString() string { return s.String() } type GetAccountStatusOutput struct { _ struct{} `type:"structure"` // The status of the specified account. Status *string `locationName:"status" type:"string" enum:"AccountStatus"` } // String returns the string representation func (s GetAccountStatusOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetAccountStatusOutput) GoString() string { return s.String() } // SetStatus sets the Status field's value. func (s *GetAccountStatusOutput) SetStatus(v string) *GetAccountStatusOutput { s.Status = &v return s } type GetAssessmentFrameworkInput struct { _ struct{} `type:"structure"` // The identifier for the specified framework. // // FrameworkId is a required field FrameworkId *string `location:"uri" locationName:"frameworkId" min:"36" type:"string" required:"true"` } // String returns the string representation func (s GetAssessmentFrameworkInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetAssessmentFrameworkInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetAssessmentFrameworkInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetAssessmentFrameworkInput"} if s.FrameworkId == nil { invalidParams.Add(request.NewErrParamRequired("FrameworkId")) } if s.FrameworkId != nil && len(*s.FrameworkId) < 36 { invalidParams.Add(request.NewErrParamMinLen("FrameworkId", 36)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetFrameworkId sets the FrameworkId field's value. func (s *GetAssessmentFrameworkInput) SetFrameworkId(v string) *GetAssessmentFrameworkInput { s.FrameworkId = &v return s } type GetAssessmentFrameworkOutput struct { _ struct{} `type:"structure"` // The framework returned by the GetAssessmentFramework API. Framework *Framework `locationName:"framework" type:"structure"` } // String returns the string representation func (s GetAssessmentFrameworkOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetAssessmentFrameworkOutput) GoString() string { return s.String() } // SetFramework sets the Framework field's value. func (s *GetAssessmentFrameworkOutput) SetFramework(v *Framework) *GetAssessmentFrameworkOutput { s.Framework = v return s } type GetAssessmentInput struct { _ struct{} `type:"structure"` // The identifier for the specified assessment. // // AssessmentId is a required field AssessmentId *string `location:"uri" locationName:"assessmentId" min:"36" type:"string" required:"true"` } // String returns the string representation func (s GetAssessmentInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetAssessmentInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetAssessmentInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetAssessmentInput"} if s.AssessmentId == nil { invalidParams.Add(request.NewErrParamRequired("AssessmentId")) } if s.AssessmentId != nil && len(*s.AssessmentId) < 36 { invalidParams.Add(request.NewErrParamMinLen("AssessmentId", 36)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAssessmentId sets the AssessmentId field's value. func (s *GetAssessmentInput) SetAssessmentId(v string) *GetAssessmentInput { s.AssessmentId = &v return s } type GetAssessmentOutput struct { _ struct{} `type:"structure"` // An entity that defines the scope of audit evidence collected by Audit Manager. // An Audit Manager assessment is an implementation of an Audit Manager framework. Assessment *Assessment `locationName:"assessment" type:"structure"` // The wrapper that contains the Audit Manager role information of the current // user, such as the role type and IAM Amazon Resource Name (ARN). UserRole *Role `locationName:"userRole" type:"structure"` } // String returns the string representation func (s GetAssessmentOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetAssessmentOutput) GoString() string { return s.String() } // SetAssessment sets the Assessment field's value. func (s *GetAssessmentOutput) SetAssessment(v *Assessment) *GetAssessmentOutput { s.Assessment = v return s } // SetUserRole sets the UserRole field's value. func (s *GetAssessmentOutput) SetUserRole(v *Role) *GetAssessmentOutput { s.UserRole = v return s } type GetAssessmentReportUrlInput struct { _ struct{} `type:"structure"` // The identifier for the specified assessment. // // AssessmentId is a required field AssessmentId *string `location:"uri" locationName:"assessmentId" min:"36" type:"string" required:"true"` // The identifier for the assessment report. // // AssessmentReportId is a required field AssessmentReportId *string `location:"uri" locationName:"assessmentReportId" min:"36" type:"string" required:"true"` } // String returns the string representation func (s GetAssessmentReportUrlInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetAssessmentReportUrlInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetAssessmentReportUrlInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetAssessmentReportUrlInput"} if s.AssessmentId == nil { invalidParams.Add(request.NewErrParamRequired("AssessmentId")) } if s.AssessmentId != nil && len(*s.AssessmentId) < 36 { invalidParams.Add(request.NewErrParamMinLen("AssessmentId", 36)) } if s.AssessmentReportId == nil { invalidParams.Add(request.NewErrParamRequired("AssessmentReportId")) } if s.AssessmentReportId != nil && len(*s.AssessmentReportId) < 36 { invalidParams.Add(request.NewErrParamMinLen("AssessmentReportId", 36)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAssessmentId sets the AssessmentId field's value. func (s *GetAssessmentReportUrlInput) SetAssessmentId(v string) *GetAssessmentReportUrlInput { s.AssessmentId = &v return s } // SetAssessmentReportId sets the AssessmentReportId field's value. func (s *GetAssessmentReportUrlInput) SetAssessmentReportId(v string) *GetAssessmentReportUrlInput { s.AssessmentReportId = &v return s } type GetAssessmentReportUrlOutput struct { _ struct{} `type:"structure"` // A uniform resource locator, used as a unique identifier to locate a resource // on the internet. PreSignedUrl *URL `locationName:"preSignedUrl" type:"structure"` } // String returns the string representation func (s GetAssessmentReportUrlOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetAssessmentReportUrlOutput) GoString() string { return s.String() } // SetPreSignedUrl sets the PreSignedUrl field's value. func (s *GetAssessmentReportUrlOutput) SetPreSignedUrl(v *URL) *GetAssessmentReportUrlOutput { s.PreSignedUrl = v return s } type GetChangeLogsInput struct { _ struct{} `type:"structure"` // The identifier for the specified assessment. // // AssessmentId is a required field AssessmentId *string `location:"uri" locationName:"assessmentId" min:"36" type:"string" required:"true"` // The identifier for the specified control. ControlId *string `location:"querystring" locationName:"controlId" min:"36" type:"string"` // The identifier for the specified control set. ControlSetId *string `location:"querystring" locationName:"controlSetId" min:"1" type:"string"` // Represents the maximum number of results per page, or per API request call. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // The pagination token used to fetch the next set of results. NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation func (s GetChangeLogsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetChangeLogsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetChangeLogsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetChangeLogsInput"} if s.AssessmentId == nil { invalidParams.Add(request.NewErrParamRequired("AssessmentId")) } if s.AssessmentId != nil && len(*s.AssessmentId) < 36 { invalidParams.Add(request.NewErrParamMinLen("AssessmentId", 36)) } if s.ControlId != nil && len(*s.ControlId) < 36 { invalidParams.Add(request.NewErrParamMinLen("ControlId", 36)) } if s.ControlSetId != nil && len(*s.ControlSetId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ControlSetId", 1)) } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAssessmentId sets the AssessmentId field's value. func (s *GetChangeLogsInput) SetAssessmentId(v string) *GetChangeLogsInput { s.AssessmentId = &v return s } // SetControlId sets the ControlId field's value. func (s *GetChangeLogsInput) SetControlId(v string) *GetChangeLogsInput { s.ControlId = &v return s } // SetControlSetId sets the ControlSetId field's value. func (s *GetChangeLogsInput) SetControlSetId(v string) *GetChangeLogsInput { s.ControlSetId = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *GetChangeLogsInput) SetMaxResults(v int64) *GetChangeLogsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *GetChangeLogsInput) SetNextToken(v string) *GetChangeLogsInput { s.NextToken = &v return s } type GetChangeLogsOutput struct { _ struct{} `type:"structure"` // The list of user activity for the control. ChangeLogs []*ChangeLog `locationName:"changeLogs" type:"list"` // The pagination token used to fetch the next set of results. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation func (s GetChangeLogsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetChangeLogsOutput) GoString() string { return s.String() } // SetChangeLogs sets the ChangeLogs field's value. func (s *GetChangeLogsOutput) SetChangeLogs(v []*ChangeLog) *GetChangeLogsOutput { s.ChangeLogs = v return s } // SetNextToken sets the NextToken field's value. func (s *GetChangeLogsOutput) SetNextToken(v string) *GetChangeLogsOutput { s.NextToken = &v return s } type GetControlInput struct { _ struct{} `type:"structure"` // The identifier for the specified control. // // ControlId is a required field ControlId *string `location:"uri" locationName:"controlId" min:"36" type:"string" required:"true"` } // String returns the string representation func (s GetControlInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetControlInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetControlInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetControlInput"} if s.ControlId == nil { invalidParams.Add(request.NewErrParamRequired("ControlId")) } if s.ControlId != nil && len(*s.ControlId) < 36 { invalidParams.Add(request.NewErrParamMinLen("ControlId", 36)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetControlId sets the ControlId field's value. func (s *GetControlInput) SetControlId(v string) *GetControlInput { s.ControlId = &v return s } type GetControlOutput struct { _ struct{} `type:"structure"` // The name of the control returned by the GetControl API. Control *Control `locationName:"control" type:"structure"` } // String returns the string representation func (s GetControlOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetControlOutput) GoString() string { return s.String() } // SetControl sets the Control field's value. func (s *GetControlOutput) SetControl(v *Control) *GetControlOutput { s.Control = v return s } type GetDelegationsInput struct { _ struct{} `type:"structure"` // Represents the maximum number of results per page, or per API request call. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // The pagination token used to fetch the next set of results. NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation func (s GetDelegationsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetDelegationsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetDelegationsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetDelegationsInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxResults sets the MaxResults field's value. func (s *GetDelegationsInput) SetMaxResults(v int64) *GetDelegationsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *GetDelegationsInput) SetNextToken(v string) *GetDelegationsInput { s.NextToken = &v return s } type GetDelegationsOutput struct { _ struct{} `type:"structure"` // The list of delegations returned by the GetDelegations API. Delegations []*DelegationMetadata `locationName:"delegations" type:"list"` // The pagination token used to fetch the next set of results. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation func (s GetDelegationsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetDelegationsOutput) GoString() string { return s.String() } // SetDelegations sets the Delegations field's value. func (s *GetDelegationsOutput) SetDelegations(v []*DelegationMetadata) *GetDelegationsOutput { s.Delegations = v return s } // SetNextToken sets the NextToken field's value. func (s *GetDelegationsOutput) SetNextToken(v string) *GetDelegationsOutput { s.NextToken = &v return s } type GetEvidenceByEvidenceFolderInput struct { _ struct{} `type:"structure"` // The identifier for the specified assessment. // // AssessmentId is a required field AssessmentId *string `location:"uri" locationName:"assessmentId" min:"36" type:"string" required:"true"` // The identifier for the control set. // // ControlSetId is a required field ControlSetId *string `location:"uri" locationName:"controlSetId" min:"1" type:"string" required:"true"` // The unique identifier for the folder in which the evidence is stored. // // EvidenceFolderId is a required field EvidenceFolderId *string `location:"uri" locationName:"evidenceFolderId" min:"36" type:"string" required:"true"` // Represents the maximum number of results per page, or per API request call. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // The pagination token used to fetch the next set of results. NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation func (s GetEvidenceByEvidenceFolderInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetEvidenceByEvidenceFolderInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetEvidenceByEvidenceFolderInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetEvidenceByEvidenceFolderInput"} if s.AssessmentId == nil { invalidParams.Add(request.NewErrParamRequired("AssessmentId")) } if s.AssessmentId != nil && len(*s.AssessmentId) < 36 { invalidParams.Add(request.NewErrParamMinLen("AssessmentId", 36)) } if s.ControlSetId == nil { invalidParams.Add(request.NewErrParamRequired("ControlSetId")) } if s.ControlSetId != nil && len(*s.ControlSetId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ControlSetId", 1)) } if s.EvidenceFolderId == nil { invalidParams.Add(request.NewErrParamRequired("EvidenceFolderId")) } if s.EvidenceFolderId != nil && len(*s.EvidenceFolderId) < 36 { invalidParams.Add(request.NewErrParamMinLen("EvidenceFolderId", 36)) } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAssessmentId sets the AssessmentId field's value. func (s *GetEvidenceByEvidenceFolderInput) SetAssessmentId(v string) *GetEvidenceByEvidenceFolderInput { s.AssessmentId = &v return s } // SetControlSetId sets the ControlSetId field's value. func (s *GetEvidenceByEvidenceFolderInput) SetControlSetId(v string) *GetEvidenceByEvidenceFolderInput { s.ControlSetId = &v return s } // SetEvidenceFolderId sets the EvidenceFolderId field's value. func (s *GetEvidenceByEvidenceFolderInput) SetEvidenceFolderId(v string) *GetEvidenceByEvidenceFolderInput { s.EvidenceFolderId = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *GetEvidenceByEvidenceFolderInput) SetMaxResults(v int64) *GetEvidenceByEvidenceFolderInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *GetEvidenceByEvidenceFolderInput) SetNextToken(v string) *GetEvidenceByEvidenceFolderInput { s.NextToken = &v return s } type GetEvidenceByEvidenceFolderOutput struct { _ struct{} `type:"structure"` // The list of evidence returned by the GetEvidenceByEvidenceFolder API. Evidence []*Evidence `locationName:"evidence" type:"list"` // The pagination token used to fetch the next set of results. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation func (s GetEvidenceByEvidenceFolderOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetEvidenceByEvidenceFolderOutput) GoString() string { return s.String() } // SetEvidence sets the Evidence field's value. func (s *GetEvidenceByEvidenceFolderOutput) SetEvidence(v []*Evidence) *GetEvidenceByEvidenceFolderOutput { s.Evidence = v return s } // SetNextToken sets the NextToken field's value. func (s *GetEvidenceByEvidenceFolderOutput) SetNextToken(v string) *GetEvidenceByEvidenceFolderOutput { s.NextToken = &v return s } type GetEvidenceFolderInput struct { _ struct{} `type:"structure"` // The identifier for the specified assessment. // // AssessmentId is a required field AssessmentId *string `location:"uri" locationName:"assessmentId" min:"36" type:"string" required:"true"` // The identifier for the specified control set. // // ControlSetId is a required field ControlSetId *string `location:"uri" locationName:"controlSetId" min:"1" type:"string" required:"true"` // The identifier for the folder in which the evidence is stored. // // EvidenceFolderId is a required field EvidenceFolderId *string `location:"uri" locationName:"evidenceFolderId" min:"36" type:"string" required:"true"` } // String returns the string representation func (s GetEvidenceFolderInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetEvidenceFolderInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetEvidenceFolderInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetEvidenceFolderInput"} if s.AssessmentId == nil { invalidParams.Add(request.NewErrParamRequired("AssessmentId")) } if s.AssessmentId != nil && len(*s.AssessmentId) < 36 { invalidParams.Add(request.NewErrParamMinLen("AssessmentId", 36)) } if s.ControlSetId == nil { invalidParams.Add(request.NewErrParamRequired("ControlSetId")) } if s.ControlSetId != nil && len(*s.ControlSetId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ControlSetId", 1)) } if s.EvidenceFolderId == nil { invalidParams.Add(request.NewErrParamRequired("EvidenceFolderId")) } if s.EvidenceFolderId != nil && len(*s.EvidenceFolderId) < 36 { invalidParams.Add(request.NewErrParamMinLen("EvidenceFolderId", 36)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAssessmentId sets the AssessmentId field's value. func (s *GetEvidenceFolderInput) SetAssessmentId(v string) *GetEvidenceFolderInput { s.AssessmentId = &v return s } // SetControlSetId sets the ControlSetId field's value. func (s *GetEvidenceFolderInput) SetControlSetId(v string) *GetEvidenceFolderInput { s.ControlSetId = &v return s } // SetEvidenceFolderId sets the EvidenceFolderId field's value. func (s *GetEvidenceFolderInput) SetEvidenceFolderId(v string) *GetEvidenceFolderInput { s.EvidenceFolderId = &v return s } type GetEvidenceFolderOutput struct { _ struct{} `type:"structure"` // The folder in which evidence is stored. EvidenceFolder *AssessmentEvidenceFolder `locationName:"evidenceFolder" type:"structure"` } // String returns the string representation func (s GetEvidenceFolderOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetEvidenceFolderOutput) GoString() string { return s.String() } // SetEvidenceFolder sets the EvidenceFolder field's value. func (s *GetEvidenceFolderOutput) SetEvidenceFolder(v *AssessmentEvidenceFolder) *GetEvidenceFolderOutput { s.EvidenceFolder = v return s } type GetEvidenceFoldersByAssessmentControlInput struct { _ struct{} `type:"structure"` // The identifier for the specified assessment. // // AssessmentId is a required field AssessmentId *string `location:"uri" locationName:"assessmentId" min:"36" type:"string" required:"true"` // The identifier for the specified control. // // ControlId is a required field ControlId *string `location:"uri" locationName:"controlId" min:"36" type:"string" required:"true"` // The identifier for the specified control set. // // ControlSetId is a required field ControlSetId *string `location:"uri" locationName:"controlSetId" min:"1" type:"string" required:"true"` // Represents the maximum number of results per page, or per API request call. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // The pagination token used to fetch the next set of results. NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation func (s GetEvidenceFoldersByAssessmentControlInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetEvidenceFoldersByAssessmentControlInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetEvidenceFoldersByAssessmentControlInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetEvidenceFoldersByAssessmentControlInput"} if s.AssessmentId == nil { invalidParams.Add(request.NewErrParamRequired("AssessmentId")) } if s.AssessmentId != nil && len(*s.AssessmentId) < 36 { invalidParams.Add(request.NewErrParamMinLen("AssessmentId", 36)) } if s.ControlId == nil { invalidParams.Add(request.NewErrParamRequired("ControlId")) } if s.ControlId != nil && len(*s.ControlId) < 36 { invalidParams.Add(request.NewErrParamMinLen("ControlId", 36)) } if s.ControlSetId == nil { invalidParams.Add(request.NewErrParamRequired("ControlSetId")) } if s.ControlSetId != nil && len(*s.ControlSetId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ControlSetId", 1)) } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAssessmentId sets the AssessmentId field's value. func (s *GetEvidenceFoldersByAssessmentControlInput) SetAssessmentId(v string) *GetEvidenceFoldersByAssessmentControlInput { s.AssessmentId = &v return s } // SetControlId sets the ControlId field's value. func (s *GetEvidenceFoldersByAssessmentControlInput) SetControlId(v string) *GetEvidenceFoldersByAssessmentControlInput { s.ControlId = &v return s } // SetControlSetId sets the ControlSetId field's value. func (s *GetEvidenceFoldersByAssessmentControlInput) SetControlSetId(v string) *GetEvidenceFoldersByAssessmentControlInput { s.ControlSetId = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *GetEvidenceFoldersByAssessmentControlInput) SetMaxResults(v int64) *GetEvidenceFoldersByAssessmentControlInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *GetEvidenceFoldersByAssessmentControlInput) SetNextToken(v string) *GetEvidenceFoldersByAssessmentControlInput { s.NextToken = &v return s } type GetEvidenceFoldersByAssessmentControlOutput struct { _ struct{} `type:"structure"` // The list of evidence folders returned by the GetEvidenceFoldersByAssessmentControl // API. EvidenceFolders []*AssessmentEvidenceFolder `locationName:"evidenceFolders" type:"list"` // The pagination token used to fetch the next set of results. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation func (s GetEvidenceFoldersByAssessmentControlOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetEvidenceFoldersByAssessmentControlOutput) GoString() string { return s.String() } // SetEvidenceFolders sets the EvidenceFolders field's value. func (s *GetEvidenceFoldersByAssessmentControlOutput) SetEvidenceFolders(v []*AssessmentEvidenceFolder) *GetEvidenceFoldersByAssessmentControlOutput { s.EvidenceFolders = v return s } // SetNextToken sets the NextToken field's value. func (s *GetEvidenceFoldersByAssessmentControlOutput) SetNextToken(v string) *GetEvidenceFoldersByAssessmentControlOutput { s.NextToken = &v return s } type GetEvidenceFoldersByAssessmentInput struct { _ struct{} `type:"structure"` // The identifier for the specified assessment. // // AssessmentId is a required field AssessmentId *string `location:"uri" locationName:"assessmentId" min:"36" type:"string" required:"true"` // Represents the maximum number of results per page, or per API request call. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // The pagination token used to fetch the next set of results. NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation func (s GetEvidenceFoldersByAssessmentInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetEvidenceFoldersByAssessmentInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetEvidenceFoldersByAssessmentInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetEvidenceFoldersByAssessmentInput"} if s.AssessmentId == nil { invalidParams.Add(request.NewErrParamRequired("AssessmentId")) } if s.AssessmentId != nil && len(*s.AssessmentId) < 36 { invalidParams.Add(request.NewErrParamMinLen("AssessmentId", 36)) } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAssessmentId sets the AssessmentId field's value. func (s *GetEvidenceFoldersByAssessmentInput) SetAssessmentId(v string) *GetEvidenceFoldersByAssessmentInput { s.AssessmentId = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *GetEvidenceFoldersByAssessmentInput) SetMaxResults(v int64) *GetEvidenceFoldersByAssessmentInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *GetEvidenceFoldersByAssessmentInput) SetNextToken(v string) *GetEvidenceFoldersByAssessmentInput { s.NextToken = &v return s } type GetEvidenceFoldersByAssessmentOutput struct { _ struct{} `type:"structure"` // The list of evidence folders returned by the GetEvidenceFoldersByAssessment // API. EvidenceFolders []*AssessmentEvidenceFolder `locationName:"evidenceFolders" type:"list"` // The pagination token used to fetch the next set of results. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation func (s GetEvidenceFoldersByAssessmentOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetEvidenceFoldersByAssessmentOutput) GoString() string { return s.String() } // SetEvidenceFolders sets the EvidenceFolders field's value. func (s *GetEvidenceFoldersByAssessmentOutput) SetEvidenceFolders(v []*AssessmentEvidenceFolder) *GetEvidenceFoldersByAssessmentOutput { s.EvidenceFolders = v return s } // SetNextToken sets the NextToken field's value. func (s *GetEvidenceFoldersByAssessmentOutput) SetNextToken(v string) *GetEvidenceFoldersByAssessmentOutput { s.NextToken = &v return s } type GetEvidenceInput struct { _ struct{} `type:"structure"` // The identifier for the specified assessment. // // AssessmentId is a required field AssessmentId *string `location:"uri" locationName:"assessmentId" min:"36" type:"string" required:"true"` // The identifier for the specified control set. // // ControlSetId is a required field ControlSetId *string `location:"uri" locationName:"controlSetId" min:"1" type:"string" required:"true"` // The identifier for the folder in which the evidence is stored. // // EvidenceFolderId is a required field EvidenceFolderId *string `location:"uri" locationName:"evidenceFolderId" min:"36" type:"string" required:"true"` // The identifier for the evidence. // // EvidenceId is a required field EvidenceId *string `location:"uri" locationName:"evidenceId" min:"36" type:"string" required:"true"` } // String returns the string representation func (s GetEvidenceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetEvidenceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetEvidenceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetEvidenceInput"} if s.AssessmentId == nil { invalidParams.Add(request.NewErrParamRequired("AssessmentId")) } if s.AssessmentId != nil && len(*s.AssessmentId) < 36 { invalidParams.Add(request.NewErrParamMinLen("AssessmentId", 36)) } if s.ControlSetId == nil { invalidParams.Add(request.NewErrParamRequired("ControlSetId")) } if s.ControlSetId != nil && len(*s.ControlSetId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ControlSetId", 1)) } if s.EvidenceFolderId == nil { invalidParams.Add(request.NewErrParamRequired("EvidenceFolderId")) } if s.EvidenceFolderId != nil && len(*s.EvidenceFolderId) < 36 { invalidParams.Add(request.NewErrParamMinLen("EvidenceFolderId", 36)) } if s.EvidenceId == nil { invalidParams.Add(request.NewErrParamRequired("EvidenceId")) } if s.EvidenceId != nil && len(*s.EvidenceId) < 36 { invalidParams.Add(request.NewErrParamMinLen("EvidenceId", 36)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAssessmentId sets the AssessmentId field's value. func (s *GetEvidenceInput) SetAssessmentId(v string) *GetEvidenceInput { s.AssessmentId = &v return s } // SetControlSetId sets the ControlSetId field's value. func (s *GetEvidenceInput) SetControlSetId(v string) *GetEvidenceInput { s.ControlSetId = &v return s } // SetEvidenceFolderId sets the EvidenceFolderId field's value. func (s *GetEvidenceInput) SetEvidenceFolderId(v string) *GetEvidenceInput { s.EvidenceFolderId = &v return s } // SetEvidenceId sets the EvidenceId field's value. func (s *GetEvidenceInput) SetEvidenceId(v string) *GetEvidenceInput { s.EvidenceId = &v return s } type GetEvidenceOutput struct { _ struct{} `type:"structure"` // The evidence returned by the GetEvidenceResponse API. Evidence *Evidence `locationName:"evidence" type:"structure"` } // String returns the string representation func (s GetEvidenceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetEvidenceOutput) GoString() string { return s.String() } // SetEvidence sets the Evidence field's value. func (s *GetEvidenceOutput) SetEvidence(v *Evidence) *GetEvidenceOutput { s.Evidence = v return s } type GetOrganizationAdminAccountInput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s GetOrganizationAdminAccountInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetOrganizationAdminAccountInput) GoString() string { return s.String() } type GetOrganizationAdminAccountOutput struct { _ struct{} `type:"structure"` // The identifier for the specified administrator account. AdminAccountId *string `locationName:"adminAccountId" min:"12" type:"string"` // The identifier for the specified organization. OrganizationId *string `locationName:"organizationId" min:"12" type:"string"` } // String returns the string representation func (s GetOrganizationAdminAccountOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetOrganizationAdminAccountOutput) GoString() string { return s.String() } // SetAdminAccountId sets the AdminAccountId field's value. func (s *GetOrganizationAdminAccountOutput) SetAdminAccountId(v string) *GetOrganizationAdminAccountOutput { s.AdminAccountId = &v return s } // SetOrganizationId sets the OrganizationId field's value. func (s *GetOrganizationAdminAccountOutput) SetOrganizationId(v string) *GetOrganizationAdminAccountOutput { s.OrganizationId = &v return s } type GetServicesInScopeInput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s GetServicesInScopeInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetServicesInScopeInput) GoString() string { return s.String() } type GetServicesInScopeOutput struct { _ struct{} `type:"structure"` // The metadata associated with the Amazon Web Service. ServiceMetadata []*ServiceMetadata `locationName:"serviceMetadata" type:"list"` } // String returns the string representation func (s GetServicesInScopeOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetServicesInScopeOutput) GoString() string { return s.String() } // SetServiceMetadata sets the ServiceMetadata field's value. func (s *GetServicesInScopeOutput) SetServiceMetadata(v []*ServiceMetadata) *GetServicesInScopeOutput { s.ServiceMetadata = v return s } type GetSettingsInput struct { _ struct{} `type:"structure"` // The list of SettingAttribute enum values. // // Attribute is a required field Attribute *string `location:"uri" locationName:"attribute" type:"string" required:"true" enum:"SettingAttribute"` } // String returns the string representation func (s GetSettingsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetSettingsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetSettingsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetSettingsInput"} if s.Attribute == nil { invalidParams.Add(request.NewErrParamRequired("Attribute")) } if s.Attribute != nil && len(*s.Attribute) < 1 { invalidParams.Add(request.NewErrParamMinLen("Attribute", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAttribute sets the Attribute field's value. func (s *GetSettingsInput) SetAttribute(v string) *GetSettingsInput { s.Attribute = &v return s } type GetSettingsOutput struct { _ struct{} `type:"structure"` // The settings object that holds all supported Audit Manager settings. Settings *Settings `locationName:"settings" type:"structure"` } // String returns the string representation func (s GetSettingsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetSettingsOutput) GoString() string { return s.String() } // SetSettings sets the Settings field's value. func (s *GetSettingsOutput) SetSettings(v *Settings) *GetSettingsOutput { s.Settings = v return s } // An internal service error occurred during the processing of your request. // Try again later. type InternalServerException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s InternalServerException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s InternalServerException) GoString() string { return s.String() } func newErrorInternalServerException(v protocol.ResponseMetadata) error { return &InternalServerException{ RespMetadata: v, } } // Code returns the exception type name. func (s *InternalServerException) Code() string { return "InternalServerException" } // Message returns the exception's message. func (s *InternalServerException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *InternalServerException) OrigErr() error { return nil } func (s *InternalServerException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *InternalServerException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *InternalServerException) RequestID() string { return s.RespMetadata.RequestID } type ListAssessmentFrameworksInput struct { _ struct{} `type:"structure"` // The type of framework, such as standard or custom. // // FrameworkType is a required field FrameworkType *string `location:"querystring" locationName:"frameworkType" type:"string" required:"true" enum:"FrameworkType"` // Represents the maximum number of results per page, or per API request call. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // The pagination token used to fetch the next set of results. NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation func (s ListAssessmentFrameworksInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListAssessmentFrameworksInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListAssessmentFrameworksInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListAssessmentFrameworksInput"} if s.FrameworkType == nil { invalidParams.Add(request.NewErrParamRequired("FrameworkType")) } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetFrameworkType sets the FrameworkType field's value. func (s *ListAssessmentFrameworksInput) SetFrameworkType(v string) *ListAssessmentFrameworksInput { s.FrameworkType = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListAssessmentFrameworksInput) SetMaxResults(v int64) *ListAssessmentFrameworksInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListAssessmentFrameworksInput) SetNextToken(v string) *ListAssessmentFrameworksInput { s.NextToken = &v return s } type ListAssessmentFrameworksOutput struct { _ struct{} `type:"structure"` // The list of metadata objects for the specified framework. FrameworkMetadataList []*AssessmentFrameworkMetadata `locationName:"frameworkMetadataList" type:"list"` // The pagination token used to fetch the next set of results. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation func (s ListAssessmentFrameworksOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListAssessmentFrameworksOutput) GoString() string { return s.String() } // SetFrameworkMetadataList sets the FrameworkMetadataList field's value. func (s *ListAssessmentFrameworksOutput) SetFrameworkMetadataList(v []*AssessmentFrameworkMetadata) *ListAssessmentFrameworksOutput { s.FrameworkMetadataList = v return s } // SetNextToken sets the NextToken field's value. func (s *ListAssessmentFrameworksOutput) SetNextToken(v string) *ListAssessmentFrameworksOutput { s.NextToken = &v return s } type ListAssessmentReportsInput struct { _ struct{} `type:"structure"` // Represents the maximum number of results per page, or per API request call. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // The pagination token used to fetch the next set of results. NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation func (s ListAssessmentReportsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListAssessmentReportsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListAssessmentReportsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListAssessmentReportsInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxResults sets the MaxResults field's value. func (s *ListAssessmentReportsInput) SetMaxResults(v int64) *ListAssessmentReportsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListAssessmentReportsInput) SetNextToken(v string) *ListAssessmentReportsInput { s.NextToken = &v return s } type ListAssessmentReportsOutput struct { _ struct{} `type:"structure"` // The list of assessment reports returned by the ListAssessmentReports API. AssessmentReports []*AssessmentReportMetadata `locationName:"assessmentReports" type:"list"` // The pagination token used to fetch the next set of results. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation func (s ListAssessmentReportsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListAssessmentReportsOutput) GoString() string { return s.String() } // SetAssessmentReports sets the AssessmentReports field's value. func (s *ListAssessmentReportsOutput) SetAssessmentReports(v []*AssessmentReportMetadata) *ListAssessmentReportsOutput { s.AssessmentReports = v return s } // SetNextToken sets the NextToken field's value. func (s *ListAssessmentReportsOutput) SetNextToken(v string) *ListAssessmentReportsOutput { s.NextToken = &v return s } type ListAssessmentsInput struct { _ struct{} `type:"structure"` // Represents the maximum number of results per page, or per API request call. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // The pagination token used to fetch the next set of results. NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation func (s ListAssessmentsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListAssessmentsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListAssessmentsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListAssessmentsInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxResults sets the MaxResults field's value. func (s *ListAssessmentsInput) SetMaxResults(v int64) *ListAssessmentsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListAssessmentsInput) SetNextToken(v string) *ListAssessmentsInput { s.NextToken = &v return s } type ListAssessmentsOutput struct { _ struct{} `type:"structure"` // The metadata associated with the assessment. AssessmentMetadata []*AssessmentMetadataItem `locationName:"assessmentMetadata" type:"list"` // The pagination token used to fetch the next set of results. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation func (s ListAssessmentsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListAssessmentsOutput) GoString() string { return s.String() } // SetAssessmentMetadata sets the AssessmentMetadata field's value. func (s *ListAssessmentsOutput) SetAssessmentMetadata(v []*AssessmentMetadataItem) *ListAssessmentsOutput { s.AssessmentMetadata = v return s } // SetNextToken sets the NextToken field's value. func (s *ListAssessmentsOutput) SetNextToken(v string) *ListAssessmentsOutput { s.NextToken = &v return s } type ListControlsInput struct { _ struct{} `type:"structure"` // The type of control, such as standard or custom. // // ControlType is a required field ControlType *string `location:"querystring" locationName:"controlType" type:"string" required:"true" enum:"ControlType"` // Represents the maximum number of results per page, or per API request call. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // The pagination token used to fetch the next set of results. NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation func (s ListControlsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListControlsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListControlsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListControlsInput"} if s.ControlType == nil { invalidParams.Add(request.NewErrParamRequired("ControlType")) } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetControlType sets the ControlType field's value. func (s *ListControlsInput) SetControlType(v string) *ListControlsInput { s.ControlType = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListControlsInput) SetMaxResults(v int64) *ListControlsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListControlsInput) SetNextToken(v string) *ListControlsInput { s.NextToken = &v return s } type ListControlsOutput struct { _ struct{} `type:"structure"` // The list of control metadata objects returned by the ListControls API. ControlMetadataList []*ControlMetadata `locationName:"controlMetadataList" type:"list"` // The pagination token used to fetch the next set of results. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation func (s ListControlsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListControlsOutput) GoString() string { return s.String() } // SetControlMetadataList sets the ControlMetadataList field's value. func (s *ListControlsOutput) SetControlMetadataList(v []*ControlMetadata) *ListControlsOutput { s.ControlMetadataList = v return s } // SetNextToken sets the NextToken field's value. func (s *ListControlsOutput) SetNextToken(v string) *ListControlsOutput { s.NextToken = &v return s } type ListKeywordsForDataSourceInput struct { _ struct{} `type:"structure"` // Represents the maximum number of results per page, or per API request call. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // The pagination token used to fetch the next set of results. NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` // The control mapping data source to which the keywords apply. // // Source is a required field Source *string `location:"querystring" locationName:"source" type:"string" required:"true" enum:"SourceType"` } // String returns the string representation func (s ListKeywordsForDataSourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListKeywordsForDataSourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListKeywordsForDataSourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListKeywordsForDataSourceInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if s.Source == nil { invalidParams.Add(request.NewErrParamRequired("Source")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxResults sets the MaxResults field's value. func (s *ListKeywordsForDataSourceInput) SetMaxResults(v int64) *ListKeywordsForDataSourceInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListKeywordsForDataSourceInput) SetNextToken(v string) *ListKeywordsForDataSourceInput { s.NextToken = &v return s } // SetSource sets the Source field's value. func (s *ListKeywordsForDataSourceInput) SetSource(v string) *ListKeywordsForDataSourceInput { s.Source = &v return s } type ListKeywordsForDataSourceOutput struct { _ struct{} `type:"structure"` // The list of keywords for the specified event mapping source. Keywords []*string `locationName:"keywords" type:"list"` // The pagination token used to fetch the next set of results. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation func (s ListKeywordsForDataSourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListKeywordsForDataSourceOutput) GoString() string { return s.String() } // SetKeywords sets the Keywords field's value. func (s *ListKeywordsForDataSourceOutput) SetKeywords(v []*string) *ListKeywordsForDataSourceOutput { s.Keywords = v return s } // SetNextToken sets the NextToken field's value. func (s *ListKeywordsForDataSourceOutput) SetNextToken(v string) *ListKeywordsForDataSourceOutput { s.NextToken = &v return s } type ListNotificationsInput struct { _ struct{} `type:"structure"` // Represents the maximum number of results per page, or per API request call. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // The pagination token used to fetch the next set of results. NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation func (s ListNotificationsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListNotificationsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListNotificationsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListNotificationsInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxResults sets the MaxResults field's value. func (s *ListNotificationsInput) SetMaxResults(v int64) *ListNotificationsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListNotificationsInput) SetNextToken(v string) *ListNotificationsInput { s.NextToken = &v return s } type ListNotificationsOutput struct { _ struct{} `type:"structure"` // The pagination token used to fetch the next set of results. NextToken *string `locationName:"nextToken" min:"1" type:"string"` // The returned list of notifications. Notifications []*Notification `locationName:"notifications" type:"list"` } // String returns the string representation func (s ListNotificationsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListNotificationsOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *ListNotificationsOutput) SetNextToken(v string) *ListNotificationsOutput { s.NextToken = &v return s } // SetNotifications sets the Notifications field's value. func (s *ListNotificationsOutput) SetNotifications(v []*Notification) *ListNotificationsOutput { s.Notifications = v return s } type ListTagsForResourceInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the specified resource. // // ResourceArn is a required field ResourceArn *string `location:"uri" locationName:"resourceArn" min:"20" type:"string" required:"true"` } // String returns the string representation func (s ListTagsForResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListTagsForResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListTagsForResourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} if s.ResourceArn == nil { invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } if s.ResourceArn != nil && len(*s.ResourceArn) < 20 { invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 20)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetResourceArn sets the ResourceArn field's value. func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { s.ResourceArn = &v return s } type ListTagsForResourceOutput struct { _ struct{} `type:"structure"` // The list of tags returned by the ListTagsForResource API. Tags map[string]*string `locationName:"tags" type:"map"` } // String returns the string representation func (s ListTagsForResourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListTagsForResourceOutput) GoString() string { return s.String() } // SetTags sets the Tags field's value. func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput { s.Tags = v return s } // Evidence that is uploaded to Audit Manager manually. type ManualEvidence struct { _ struct{} `type:"structure"` // The Amazon S3 URL that points to a manual evidence object. S3ResourcePath *string `locationName:"s3ResourcePath" min:"1" type:"string"` } // String returns the string representation func (s ManualEvidence) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ManualEvidence) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ManualEvidence) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ManualEvidence"} if s.S3ResourcePath != nil && len(*s.S3ResourcePath) < 1 { invalidParams.Add(request.NewErrParamMinLen("S3ResourcePath", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetS3ResourcePath sets the S3ResourcePath field's value. func (s *ManualEvidence) SetS3ResourcePath(v string) *ManualEvidence { s.S3ResourcePath = &v return s } // The notification used to inform a user of an update in Audit Manager. For // example, this includes the notification that is sent when a control set is // delegated for review. type Notification struct { _ struct{} `type:"structure"` // The identifier for the specified assessment. AssessmentId *string `locationName:"assessmentId" min:"36" type:"string"` // The name of the related assessment. AssessmentName *string `locationName:"assessmentName" min:"1" type:"string"` // The identifier for the specified control set. ControlSetId *string `locationName:"controlSetId" min:"1" type:"string"` // Specifies the name of the control set that the notification is about. ControlSetName *string `locationName:"controlSetName" min:"1" type:"string"` // The description of the notification. Description *string `locationName:"description" min:"1" type:"string"` // The time when the notification was sent. EventTime *time.Time `locationName:"eventTime" type:"timestamp"` // The unique identifier for the notification. Id *string `locationName:"id" min:"47" type:"string"` // The sender of the notification. Source *string `locationName:"source" min:"1" type:"string"` } // String returns the string representation func (s Notification) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Notification) GoString() string { return s.String() } // SetAssessmentId sets the AssessmentId field's value. func (s *Notification) SetAssessmentId(v string) *Notification { s.AssessmentId = &v return s } // SetAssessmentName sets the AssessmentName field's value. func (s *Notification) SetAssessmentName(v string) *Notification { s.AssessmentName = &v return s } // SetControlSetId sets the ControlSetId field's value. func (s *Notification) SetControlSetId(v string) *Notification { s.ControlSetId = &v return s } // SetControlSetName sets the ControlSetName field's value. func (s *Notification) SetControlSetName(v string) *Notification { s.ControlSetName = &v return s } // SetDescription sets the Description field's value. func (s *Notification) SetDescription(v string) *Notification { s.Description = &v return s } // SetEventTime sets the EventTime field's value. func (s *Notification) SetEventTime(v time.Time) *Notification { s.EventTime = &v return s } // SetId sets the Id field's value. func (s *Notification) SetId(v string) *Notification { s.Id = &v return s } // SetSource sets the Source field's value. func (s *Notification) SetSource(v string) *Notification { s.Source = &v return s } type RegisterAccountInput struct { _ struct{} `type:"structure"` // The delegated administrator account for Audit Manager. DelegatedAdminAccount *string `locationName:"delegatedAdminAccount" min:"12" type:"string"` // The KMS key details. KmsKey *string `locationName:"kmsKey" min:"7" type:"string"` } // String returns the string representation func (s RegisterAccountInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s RegisterAccountInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *RegisterAccountInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "RegisterAccountInput"} if s.DelegatedAdminAccount != nil && len(*s.DelegatedAdminAccount) < 12 { invalidParams.Add(request.NewErrParamMinLen("DelegatedAdminAccount", 12)) } if s.KmsKey != nil && len(*s.KmsKey) < 7 { invalidParams.Add(request.NewErrParamMinLen("KmsKey", 7)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDelegatedAdminAccount sets the DelegatedAdminAccount field's value. func (s *RegisterAccountInput) SetDelegatedAdminAccount(v string) *RegisterAccountInput { s.DelegatedAdminAccount = &v return s } // SetKmsKey sets the KmsKey field's value. func (s *RegisterAccountInput) SetKmsKey(v string) *RegisterAccountInput { s.KmsKey = &v return s } type RegisterAccountOutput struct { _ struct{} `type:"structure"` // The status of the account registration request. Status *string `locationName:"status" type:"string" enum:"AccountStatus"` } // String returns the string representation func (s RegisterAccountOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s RegisterAccountOutput) GoString() string { return s.String() } // SetStatus sets the Status field's value. func (s *RegisterAccountOutput) SetStatus(v string) *RegisterAccountOutput { s.Status = &v return s } type RegisterOrganizationAdminAccountInput struct { _ struct{} `type:"structure"` // The identifier for the specified delegated administrator account. // // AdminAccountId is a required field AdminAccountId *string `locationName:"adminAccountId" min:"12" type:"string" required:"true"` } // String returns the string representation func (s RegisterOrganizationAdminAccountInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s RegisterOrganizationAdminAccountInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *RegisterOrganizationAdminAccountInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "RegisterOrganizationAdminAccountInput"} if s.AdminAccountId == nil { invalidParams.Add(request.NewErrParamRequired("AdminAccountId")) } if s.AdminAccountId != nil && len(*s.AdminAccountId) < 12 { invalidParams.Add(request.NewErrParamMinLen("AdminAccountId", 12)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAdminAccountId sets the AdminAccountId field's value. func (s *RegisterOrganizationAdminAccountInput) SetAdminAccountId(v string) *RegisterOrganizationAdminAccountInput { s.AdminAccountId = &v return s } type RegisterOrganizationAdminAccountOutput struct { _ struct{} `type:"structure"` // The identifier for the specified delegated administrator account. AdminAccountId *string `locationName:"adminAccountId" min:"12" type:"string"` // The identifier for the specified organization. OrganizationId *string `locationName:"organizationId" min:"12" type:"string"` } // String returns the string representation func (s RegisterOrganizationAdminAccountOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s RegisterOrganizationAdminAccountOutput) GoString() string { return s.String() } // SetAdminAccountId sets the AdminAccountId field's value. func (s *RegisterOrganizationAdminAccountOutput) SetAdminAccountId(v string) *RegisterOrganizationAdminAccountOutput { s.AdminAccountId = &v return s } // SetOrganizationId sets the OrganizationId field's value. func (s *RegisterOrganizationAdminAccountOutput) SetOrganizationId(v string) *RegisterOrganizationAdminAccountOutput { s.OrganizationId = &v return s } // A system asset that is evaluated in an Audit Manager assessment. type Resource struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) for the specified resource. Arn *string `locationName:"arn" min:"20" type:"string"` // The value of the specified resource. Value *string `locationName:"value" type:"string"` } // String returns the string representation func (s Resource) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Resource) GoString() string { return s.String() } // SetArn sets the Arn field's value. func (s *Resource) SetArn(v string) *Resource { s.Arn = &v return s } // SetValue sets the Value field's value. func (s *Resource) SetValue(v string) *Resource { s.Value = &v return s } // The resource specified in the request cannot be found. type ResourceNotFoundException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // The unique identifier for the specified resource. // // ResourceId is a required field ResourceId *string `locationName:"resourceId" type:"string" required:"true"` // The type of resource affected by the error. // // ResourceType is a required field ResourceType *string `locationName:"resourceType" type:"string" required:"true"` } // String returns the string representation func (s ResourceNotFoundException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ResourceNotFoundException) GoString() string { return s.String() } func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { return &ResourceNotFoundException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ResourceNotFoundException) Code() string { return "ResourceNotFoundException" } // Message returns the exception's message. func (s *ResourceNotFoundException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ResourceNotFoundException) OrigErr() error { return nil } func (s *ResourceNotFoundException) Error() string { return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } // Status code returns the HTTP status code for the request's response error. func (s *ResourceNotFoundException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ResourceNotFoundException) RequestID() string { return s.RespMetadata.RequestID } // The wrapper that contains the Audit Manager role information of the current // user, such as the role type and IAM Amazon Resource Name (ARN). type Role struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the IAM role. RoleArn *string `locationName:"roleArn" min:"20" type:"string"` // The type of customer persona. // // In CreateAssessment, roleType can only be PROCESS_OWNER. // // In UpdateSettings, roleType can only be PROCESS_OWNER. // // In BatchCreateDelegationByAssessment, roleType can only be RESOURCE_OWNER. RoleType *string `locationName:"roleType" type:"string" enum:"RoleType"` } // String returns the string representation func (s Role) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Role) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *Role) Validate() error { invalidParams := request.ErrInvalidParams{Context: "Role"} if s.RoleArn != nil && len(*s.RoleArn) < 20 { invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetRoleArn sets the RoleArn field's value. func (s *Role) SetRoleArn(v string) *Role { s.RoleArn = &v return s } // SetRoleType sets the RoleType field's value. func (s *Role) SetRoleType(v string) *Role { s.RoleType = &v return s } // The wrapper that contains the accounts and services in scope for the assessment. type Scope struct { _ struct{} `type:"structure"` // The accounts included in the scope of the assessment. AwsAccounts []*AWSAccount `locationName:"awsAccounts" type:"list"` // The Amazon Web Services services included in the scope of the assessment. AwsServices []*AWSService `locationName:"awsServices" type:"list"` } // String returns the string representation func (s Scope) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Scope) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *Scope) Validate() error { invalidParams := request.ErrInvalidParams{Context: "Scope"} if s.AwsAccounts != nil { for i, v := range s.AwsAccounts { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AwsAccounts", i), err.(request.ErrInvalidParams)) } } } if s.AwsServices != nil { for i, v := range s.AwsServices { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AwsServices", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAwsAccounts sets the AwsAccounts field's value. func (s *Scope) SetAwsAccounts(v []*AWSAccount) *Scope { s.AwsAccounts = v return s } // SetAwsServices sets the AwsServices field's value. func (s *Scope) SetAwsServices(v []*AWSService) *Scope { s.AwsServices = v return s } // The metadata associated with the specified Amazon Web Service. type ServiceMetadata struct { _ struct{} `type:"structure"` // The category in which the Amazon Web Service belongs, such as compute, storage, // database, and so on. Category *string `locationName:"category" min:"1" type:"string"` // The description of the specified Amazon Web Service. Description *string `locationName:"description" min:"1" type:"string"` // The display name of the Amazon Web Service. DisplayName *string `locationName:"displayName" min:"1" type:"string"` // The name of the Amazon Web Service. Name *string `locationName:"name" min:"1" type:"string"` } // String returns the string representation func (s ServiceMetadata) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ServiceMetadata) GoString() string { return s.String() } // SetCategory sets the Category field's value. func (s *ServiceMetadata) SetCategory(v string) *ServiceMetadata { s.Category = &v return s } // SetDescription sets the Description field's value. func (s *ServiceMetadata) SetDescription(v string) *ServiceMetadata { s.Description = &v return s } // SetDisplayName sets the DisplayName field's value. func (s *ServiceMetadata) SetDisplayName(v string) *ServiceMetadata { s.DisplayName = &v return s } // SetName sets the Name field's value. func (s *ServiceMetadata) SetName(v string) *ServiceMetadata { s.Name = &v return s } // The settings object that holds all supported Audit Manager settings. type Settings struct { _ struct{} `type:"structure"` // The default storage destination for assessment reports. DefaultAssessmentReportsDestination *AssessmentReportsDestination `locationName:"defaultAssessmentReportsDestination" type:"structure"` // The designated default audit owners. DefaultProcessOwners []*Role `locationName:"defaultProcessOwners" type:"list"` // Specifies whether Organizations is enabled. IsAwsOrgEnabled *bool `locationName:"isAwsOrgEnabled" type:"boolean"` // The KMS key details. KmsKey *string `locationName:"kmsKey" min:"7" type:"string"` // The designated Amazon Simple Notification Service (Amazon SNS) topic. SnsTopic *string `locationName:"snsTopic" min:"1" type:"string"` } // String returns the string representation func (s Settings) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Settings) GoString() string { return s.String() } // SetDefaultAssessmentReportsDestination sets the DefaultAssessmentReportsDestination field's value. func (s *Settings) SetDefaultAssessmentReportsDestination(v *AssessmentReportsDestination) *Settings { s.DefaultAssessmentReportsDestination = v return s } // SetDefaultProcessOwners sets the DefaultProcessOwners field's value. func (s *Settings) SetDefaultProcessOwners(v []*Role) *Settings { s.DefaultProcessOwners = v return s } // SetIsAwsOrgEnabled sets the IsAwsOrgEnabled field's value. func (s *Settings) SetIsAwsOrgEnabled(v bool) *Settings { s.IsAwsOrgEnabled = &v return s } // SetKmsKey sets the KmsKey field's value. func (s *Settings) SetKmsKey(v string) *Settings { s.KmsKey = &v return s } // SetSnsTopic sets the SnsTopic field's value. func (s *Settings) SetSnsTopic(v string) *Settings { s.SnsTopic = &v return s } // The keyword to search for in CloudTrail logs, Config rules, Security Hub // checks, and Amazon Web Services API names. type SourceKeyword struct { _ struct{} `type:"structure"` // The method of input for the specified keyword. KeywordInputType *string `locationName:"keywordInputType" type:"string" enum:"KeywordInputType"` // The value of the keyword used to search CloudTrail logs, Config rules, Security // Hub checks, and Amazon Web Services API names when mapping a control data // source. KeywordValue *string `locationName:"keywordValue" min:"1" type:"string"` } // String returns the string representation func (s SourceKeyword) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s SourceKeyword) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *SourceKeyword) Validate() error { invalidParams := request.ErrInvalidParams{Context: "SourceKeyword"} if s.KeywordValue != nil && len(*s.KeywordValue) < 1 { invalidParams.Add(request.NewErrParamMinLen("KeywordValue", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetKeywordInputType sets the KeywordInputType field's value. func (s *SourceKeyword) SetKeywordInputType(v string) *SourceKeyword { s.KeywordInputType = &v return s } // SetKeywordValue sets the KeywordValue field's value. func (s *SourceKeyword) SetKeywordValue(v string) *SourceKeyword { s.KeywordValue = &v return s } type TagResourceInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the specified resource. // // ResourceArn is a required field ResourceArn *string `location:"uri" locationName:"resourceArn" min:"20" type:"string" required:"true"` // The tags to be associated with the resource. // // Tags is a required field Tags map[string]*string `locationName:"tags" type:"map" required:"true"` } // String returns the string representation func (s TagResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TagResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *TagResourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} if s.ResourceArn == nil { invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } if s.ResourceArn != nil && len(*s.ResourceArn) < 20 { invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 20)) } if s.Tags == nil { invalidParams.Add(request.NewErrParamRequired("Tags")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetResourceArn sets the ResourceArn field's value. func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { s.ResourceArn = &v return s } // SetTags sets the Tags field's value. func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput { s.Tags = v return s } type TagResourceOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s TagResourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TagResourceOutput) GoString() string { return s.String() } // A uniform resource locator, used as a unique identifier to locate a resource // on the internet. type URL struct { _ struct{} `type:"structure"` // The name or word used as a hyperlink to the URL. HyperlinkName *string `locationName:"hyperlinkName" min:"1" type:"string"` // The unique identifier for the internet resource. Link *string `locationName:"link" min:"1" type:"string"` } // String returns the string representation func (s URL) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s URL) GoString() string { return s.String() } // SetHyperlinkName sets the HyperlinkName field's value. func (s *URL) SetHyperlinkName(v string) *URL { s.HyperlinkName = &v return s } // SetLink sets the Link field's value. func (s *URL) SetLink(v string) *URL { s.Link = &v return s } type UntagResourceInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the specified resource. // // ResourceArn is a required field ResourceArn *string `location:"uri" locationName:"resourceArn" min:"20" type:"string" required:"true"` // The name or key of the tag. // // TagKeys is a required field TagKeys []*string `location:"querystring" locationName:"tagKeys" min:"1" type:"list" required:"true"` } // String returns the string representation func (s UntagResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UntagResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UntagResourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} if s.ResourceArn == nil { invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } if s.ResourceArn != nil && len(*s.ResourceArn) < 20 { invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 20)) } if s.TagKeys == nil { invalidParams.Add(request.NewErrParamRequired("TagKeys")) } if s.TagKeys != nil && len(s.TagKeys) < 1 { invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetResourceArn sets the ResourceArn field's value. func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { s.ResourceArn = &v return s } // SetTagKeys sets the TagKeys field's value. func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { s.TagKeys = v return s } type UntagResourceOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s UntagResourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UntagResourceOutput) GoString() string { return s.String() } type UpdateAssessmentControlInput struct { _ struct{} `type:"structure"` // The identifier for the specified assessment. // // AssessmentId is a required field AssessmentId *string `location:"uri" locationName:"assessmentId" min:"36" type:"string" required:"true"` // The comment body text for the specified control. CommentBody *string `locationName:"commentBody" type:"string"` // The identifier for the specified control. // // ControlId is a required field ControlId *string `location:"uri" locationName:"controlId" min:"36" type:"string" required:"true"` // The identifier for the specified control set. // // ControlSetId is a required field ControlSetId *string `location:"uri" locationName:"controlSetId" min:"1" type:"string" required:"true"` // The status of the specified control. ControlStatus *string `locationName:"controlStatus" type:"string" enum:"ControlStatus"` } // String returns the string representation func (s UpdateAssessmentControlInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateAssessmentControlInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateAssessmentControlInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateAssessmentControlInput"} if s.AssessmentId == nil { invalidParams.Add(request.NewErrParamRequired("AssessmentId")) } if s.AssessmentId != nil && len(*s.AssessmentId) < 36 { invalidParams.Add(request.NewErrParamMinLen("AssessmentId", 36)) } if s.ControlId == nil { invalidParams.Add(request.NewErrParamRequired("ControlId")) } if s.ControlId != nil && len(*s.ControlId) < 36 { invalidParams.Add(request.NewErrParamMinLen("ControlId", 36)) } if s.ControlSetId == nil { invalidParams.Add(request.NewErrParamRequired("ControlSetId")) } if s.ControlSetId != nil && len(*s.ControlSetId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ControlSetId", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAssessmentId sets the AssessmentId field's value. func (s *UpdateAssessmentControlInput) SetAssessmentId(v string) *UpdateAssessmentControlInput { s.AssessmentId = &v return s } // SetCommentBody sets the CommentBody field's value. func (s *UpdateAssessmentControlInput) SetCommentBody(v string) *UpdateAssessmentControlInput { s.CommentBody = &v return s } // SetControlId sets the ControlId field's value. func (s *UpdateAssessmentControlInput) SetControlId(v string) *UpdateAssessmentControlInput { s.ControlId = &v return s } // SetControlSetId sets the ControlSetId field's value. func (s *UpdateAssessmentControlInput) SetControlSetId(v string) *UpdateAssessmentControlInput { s.ControlSetId = &v return s } // SetControlStatus sets the ControlStatus field's value. func (s *UpdateAssessmentControlInput) SetControlStatus(v string) *UpdateAssessmentControlInput { s.ControlStatus = &v return s } type UpdateAssessmentControlOutput struct { _ struct{} `type:"structure"` // The name of the updated control set returned by the UpdateAssessmentControl // API. Control *AssessmentControl `locationName:"control" type:"structure"` } // String returns the string representation func (s UpdateAssessmentControlOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateAssessmentControlOutput) GoString() string { return s.String() } // SetControl sets the Control field's value. func (s *UpdateAssessmentControlOutput) SetControl(v *AssessmentControl) *UpdateAssessmentControlOutput { s.Control = v return s } type UpdateAssessmentControlSetStatusInput struct { _ struct{} `type:"structure"` // The identifier for the specified assessment. // // AssessmentId is a required field AssessmentId *string `location:"uri" locationName:"assessmentId" min:"36" type:"string" required:"true"` // The comment related to the status update. // // Comment is a required field Comment *string `locationName:"comment" type:"string" required:"true"` // The identifier for the specified control set. // // ControlSetId is a required field ControlSetId *string `location:"uri" locationName:"controlSetId" type:"string" required:"true"` // The status of the control set that is being updated. // // Status is a required field Status *string `locationName:"status" type:"string" required:"true" enum:"ControlSetStatus"` } // String returns the string representation func (s UpdateAssessmentControlSetStatusInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateAssessmentControlSetStatusInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateAssessmentControlSetStatusInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateAssessmentControlSetStatusInput"} if s.AssessmentId == nil { invalidParams.Add(request.NewErrParamRequired("AssessmentId")) } if s.AssessmentId != nil && len(*s.AssessmentId) < 36 { invalidParams.Add(request.NewErrParamMinLen("AssessmentId", 36)) } if s.Comment == nil { invalidParams.Add(request.NewErrParamRequired("Comment")) } if s.ControlSetId == nil { invalidParams.Add(request.NewErrParamRequired("ControlSetId")) } if s.ControlSetId != nil && len(*s.ControlSetId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ControlSetId", 1)) } if s.Status == nil { invalidParams.Add(request.NewErrParamRequired("Status")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAssessmentId sets the AssessmentId field's value. func (s *UpdateAssessmentControlSetStatusInput) SetAssessmentId(v string) *UpdateAssessmentControlSetStatusInput { s.AssessmentId = &v return s } // SetComment sets the Comment field's value. func (s *UpdateAssessmentControlSetStatusInput) SetComment(v string) *UpdateAssessmentControlSetStatusInput { s.Comment = &v return s } // SetControlSetId sets the ControlSetId field's value. func (s *UpdateAssessmentControlSetStatusInput) SetControlSetId(v string) *UpdateAssessmentControlSetStatusInput { s.ControlSetId = &v return s } // SetStatus sets the Status field's value. func (s *UpdateAssessmentControlSetStatusInput) SetStatus(v string) *UpdateAssessmentControlSetStatusInput { s.Status = &v return s } type UpdateAssessmentControlSetStatusOutput struct { _ struct{} `type:"structure"` // The name of the updated control set returned by the UpdateAssessmentControlSetStatus // API. ControlSet *AssessmentControlSet `locationName:"controlSet" type:"structure"` } // String returns the string representation func (s UpdateAssessmentControlSetStatusOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateAssessmentControlSetStatusOutput) GoString() string { return s.String() } // SetControlSet sets the ControlSet field's value. func (s *UpdateAssessmentControlSetStatusOutput) SetControlSet(v *AssessmentControlSet) *UpdateAssessmentControlSetStatusOutput { s.ControlSet = v return s } // A controlSet entity that represents a collection of controls in Audit Manager. // This does not contain the control set ID. type UpdateAssessmentFrameworkControlSet struct { _ struct{} `type:"structure"` // The list of controls contained within the control set. Controls []*CreateAssessmentFrameworkControl `locationName:"controls" min:"1" type:"list"` // The unique identifier for the control set. Id *string `locationName:"id" min:"1" type:"string"` // The name of the control set. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` } // String returns the string representation func (s UpdateAssessmentFrameworkControlSet) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateAssessmentFrameworkControlSet) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateAssessmentFrameworkControlSet) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateAssessmentFrameworkControlSet"} if s.Controls != nil && len(s.Controls) < 1 { invalidParams.Add(request.NewErrParamMinLen("Controls", 1)) } if s.Id != nil && len(*s.Id) < 1 { invalidParams.Add(request.NewErrParamMinLen("Id", 1)) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if s.Controls != nil { for i, v := range s.Controls { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Controls", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetControls sets the Controls field's value. func (s *UpdateAssessmentFrameworkControlSet) SetControls(v []*CreateAssessmentFrameworkControl) *UpdateAssessmentFrameworkControlSet { s.Controls = v return s } // SetId sets the Id field's value. func (s *UpdateAssessmentFrameworkControlSet) SetId(v string) *UpdateAssessmentFrameworkControlSet { s.Id = &v return s } // SetName sets the Name field's value. func (s *UpdateAssessmentFrameworkControlSet) SetName(v string) *UpdateAssessmentFrameworkControlSet { s.Name = &v return s } type UpdateAssessmentFrameworkInput struct { _ struct{} `type:"structure"` // The compliance type that the new custom framework supports, such as CIS or // HIPAA. ComplianceType *string `locationName:"complianceType" type:"string"` // The control sets associated with the framework. // // ControlSets is a required field ControlSets []*UpdateAssessmentFrameworkControlSet `locationName:"controlSets" type:"list" required:"true"` // The description of the framework that is to be updated. Description *string `locationName:"description" min:"1" type:"string"` // The identifier for the specified framework. // // FrameworkId is a required field FrameworkId *string `location:"uri" locationName:"frameworkId" min:"36" type:"string" required:"true"` // The name of the framework to be updated. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` } // String returns the string representation func (s UpdateAssessmentFrameworkInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateAssessmentFrameworkInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateAssessmentFrameworkInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateAssessmentFrameworkInput"} if s.ControlSets == nil { invalidParams.Add(request.NewErrParamRequired("ControlSets")) } if s.Description != nil && len(*s.Description) < 1 { invalidParams.Add(request.NewErrParamMinLen("Description", 1)) } if s.FrameworkId == nil { invalidParams.Add(request.NewErrParamRequired("FrameworkId")) } if s.FrameworkId != nil && len(*s.FrameworkId) < 36 { invalidParams.Add(request.NewErrParamMinLen("FrameworkId", 36)) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if s.ControlSets != nil { for i, v := range s.ControlSets { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ControlSets", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetComplianceType sets the ComplianceType field's value. func (s *UpdateAssessmentFrameworkInput) SetComplianceType(v string) *UpdateAssessmentFrameworkInput { s.ComplianceType = &v return s } // SetControlSets sets the ControlSets field's value. func (s *UpdateAssessmentFrameworkInput) SetControlSets(v []*UpdateAssessmentFrameworkControlSet) *UpdateAssessmentFrameworkInput { s.ControlSets = v return s } // SetDescription sets the Description field's value. func (s *UpdateAssessmentFrameworkInput) SetDescription(v string) *UpdateAssessmentFrameworkInput { s.Description = &v return s } // SetFrameworkId sets the FrameworkId field's value. func (s *UpdateAssessmentFrameworkInput) SetFrameworkId(v string) *UpdateAssessmentFrameworkInput { s.FrameworkId = &v return s } // SetName sets the Name field's value. func (s *UpdateAssessmentFrameworkInput) SetName(v string) *UpdateAssessmentFrameworkInput { s.Name = &v return s } type UpdateAssessmentFrameworkOutput struct { _ struct{} `type:"structure"` // The name of the specified framework. Framework *Framework `locationName:"framework" type:"structure"` } // String returns the string representation func (s UpdateAssessmentFrameworkOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateAssessmentFrameworkOutput) GoString() string { return s.String() } // SetFramework sets the Framework field's value. func (s *UpdateAssessmentFrameworkOutput) SetFramework(v *Framework) *UpdateAssessmentFrameworkOutput { s.Framework = v return s } type UpdateAssessmentInput struct { _ struct{} `type:"structure"` // The description of the specified assessment. AssessmentDescription *string `locationName:"assessmentDescription" type:"string"` // The identifier for the specified assessment. // // AssessmentId is a required field AssessmentId *string `location:"uri" locationName:"assessmentId" min:"36" type:"string" required:"true"` // The name of the specified assessment to be updated. AssessmentName *string `locationName:"assessmentName" min:"1" type:"string"` // The assessment report storage destination for the specified assessment that // is being updated. AssessmentReportsDestination *AssessmentReportsDestination `locationName:"assessmentReportsDestination" type:"structure"` // The list of roles for the specified assessment. Roles []*Role `locationName:"roles" type:"list"` // The scope of the specified assessment. // // Scope is a required field Scope *Scope `locationName:"scope" type:"structure" required:"true"` } // String returns the string representation func (s UpdateAssessmentInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateAssessmentInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateAssessmentInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateAssessmentInput"} if s.AssessmentId == nil { invalidParams.Add(request.NewErrParamRequired("AssessmentId")) } if s.AssessmentId != nil && len(*s.AssessmentId) < 36 { invalidParams.Add(request.NewErrParamMinLen("AssessmentId", 36)) } if s.AssessmentName != nil && len(*s.AssessmentName) < 1 { invalidParams.Add(request.NewErrParamMinLen("AssessmentName", 1)) } if s.Scope == nil { invalidParams.Add(request.NewErrParamRequired("Scope")) } if s.AssessmentReportsDestination != nil { if err := s.AssessmentReportsDestination.Validate(); err != nil { invalidParams.AddNested("AssessmentReportsDestination", err.(request.ErrInvalidParams)) } } if s.Roles != nil { for i, v := range s.Roles { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Roles", i), err.(request.ErrInvalidParams)) } } } if s.Scope != nil { if err := s.Scope.Validate(); err != nil { invalidParams.AddNested("Scope", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAssessmentDescription sets the AssessmentDescription field's value. func (s *UpdateAssessmentInput) SetAssessmentDescription(v string) *UpdateAssessmentInput { s.AssessmentDescription = &v return s } // SetAssessmentId sets the AssessmentId field's value. func (s *UpdateAssessmentInput) SetAssessmentId(v string) *UpdateAssessmentInput { s.AssessmentId = &v return s } // SetAssessmentName sets the AssessmentName field's value. func (s *UpdateAssessmentInput) SetAssessmentName(v string) *UpdateAssessmentInput { s.AssessmentName = &v return s } // SetAssessmentReportsDestination sets the AssessmentReportsDestination field's value. func (s *UpdateAssessmentInput) SetAssessmentReportsDestination(v *AssessmentReportsDestination) *UpdateAssessmentInput { s.AssessmentReportsDestination = v return s } // SetRoles sets the Roles field's value. func (s *UpdateAssessmentInput) SetRoles(v []*Role) *UpdateAssessmentInput { s.Roles = v return s } // SetScope sets the Scope field's value. func (s *UpdateAssessmentInput) SetScope(v *Scope) *UpdateAssessmentInput { s.Scope = v return s } type UpdateAssessmentOutput struct { _ struct{} `type:"structure"` // The response object (name of the updated assessment) for the UpdateAssessmentRequest // API. Assessment *Assessment `locationName:"assessment" type:"structure"` } // String returns the string representation func (s UpdateAssessmentOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateAssessmentOutput) GoString() string { return s.String() } // SetAssessment sets the Assessment field's value. func (s *UpdateAssessmentOutput) SetAssessment(v *Assessment) *UpdateAssessmentOutput { s.Assessment = v return s } type UpdateAssessmentStatusInput struct { _ struct{} `type:"structure"` // The identifier for the specified assessment. // // AssessmentId is a required field AssessmentId *string `location:"uri" locationName:"assessmentId" min:"36" type:"string" required:"true"` // The current status of the specified assessment. // // Status is a required field Status *string `locationName:"status" type:"string" required:"true" enum:"AssessmentStatus"` } // String returns the string representation func (s UpdateAssessmentStatusInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateAssessmentStatusInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateAssessmentStatusInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateAssessmentStatusInput"} if s.AssessmentId == nil { invalidParams.Add(request.NewErrParamRequired("AssessmentId")) } if s.AssessmentId != nil && len(*s.AssessmentId) < 36 { invalidParams.Add(request.NewErrParamMinLen("AssessmentId", 36)) } if s.Status == nil { invalidParams.Add(request.NewErrParamRequired("Status")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAssessmentId sets the AssessmentId field's value. func (s *UpdateAssessmentStatusInput) SetAssessmentId(v string) *UpdateAssessmentStatusInput { s.AssessmentId = &v return s } // SetStatus sets the Status field's value. func (s *UpdateAssessmentStatusInput) SetStatus(v string) *UpdateAssessmentStatusInput { s.Status = &v return s } type UpdateAssessmentStatusOutput struct { _ struct{} `type:"structure"` // The name of the updated assessment returned by the UpdateAssessmentStatus // API. Assessment *Assessment `locationName:"assessment" type:"structure"` } // String returns the string representation func (s UpdateAssessmentStatusOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateAssessmentStatusOutput) GoString() string { return s.String() } // SetAssessment sets the Assessment field's value. func (s *UpdateAssessmentStatusOutput) SetAssessment(v *Assessment) *UpdateAssessmentStatusOutput { s.Assessment = v return s } type UpdateControlInput struct { _ struct{} `type:"structure"` // The recommended actions to carry out if the control is not fulfilled. ActionPlanInstructions *string `locationName:"actionPlanInstructions" type:"string"` // The title of the action plan for remediating the control. ActionPlanTitle *string `locationName:"actionPlanTitle" type:"string"` // The identifier for the specified control. // // ControlId is a required field ControlId *string `location:"uri" locationName:"controlId" min:"36" type:"string" required:"true"` // The data mapping sources for the specified control. // // ControlMappingSources is a required field ControlMappingSources []*ControlMappingSource `locationName:"controlMappingSources" min:"1" type:"list" required:"true"` // The optional description of the control. Description *string `locationName:"description" type:"string"` // The name of the control to be updated. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` // The steps that to follow to determine if the control has been satisfied. TestingInformation *string `locationName:"testingInformation" type:"string"` } // String returns the string representation func (s UpdateControlInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateControlInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateControlInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateControlInput"} if s.ControlId == nil { invalidParams.Add(request.NewErrParamRequired("ControlId")) } if s.ControlId != nil && len(*s.ControlId) < 36 { invalidParams.Add(request.NewErrParamMinLen("ControlId", 36)) } if s.ControlMappingSources == nil { invalidParams.Add(request.NewErrParamRequired("ControlMappingSources")) } if s.ControlMappingSources != nil && len(s.ControlMappingSources) < 1 { invalidParams.Add(request.NewErrParamMinLen("ControlMappingSources", 1)) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if s.ControlMappingSources != nil { for i, v := range s.ControlMappingSources { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ControlMappingSources", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetActionPlanInstructions sets the ActionPlanInstructions field's value. func (s *UpdateControlInput) SetActionPlanInstructions(v string) *UpdateControlInput { s.ActionPlanInstructions = &v return s } // SetActionPlanTitle sets the ActionPlanTitle field's value. func (s *UpdateControlInput) SetActionPlanTitle(v string) *UpdateControlInput { s.ActionPlanTitle = &v return s } // SetControlId sets the ControlId field's value. func (s *UpdateControlInput) SetControlId(v string) *UpdateControlInput { s.ControlId = &v return s } // SetControlMappingSources sets the ControlMappingSources field's value. func (s *UpdateControlInput) SetControlMappingSources(v []*ControlMappingSource) *UpdateControlInput { s.ControlMappingSources = v return s } // SetDescription sets the Description field's value. func (s *UpdateControlInput) SetDescription(v string) *UpdateControlInput { s.Description = &v return s } // SetName sets the Name field's value. func (s *UpdateControlInput) SetName(v string) *UpdateControlInput { s.Name = &v return s } // SetTestingInformation sets the TestingInformation field's value. func (s *UpdateControlInput) SetTestingInformation(v string) *UpdateControlInput { s.TestingInformation = &v return s } type UpdateControlOutput struct { _ struct{} `type:"structure"` // The name of the updated control set returned by the UpdateControl API. Control *Control `locationName:"control" type:"structure"` } // String returns the string representation func (s UpdateControlOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateControlOutput) GoString() string { return s.String() } // SetControl sets the Control field's value. func (s *UpdateControlOutput) SetControl(v *Control) *UpdateControlOutput { s.Control = v return s } type UpdateSettingsInput struct { _ struct{} `type:"structure"` // The default storage destination for assessment reports. DefaultAssessmentReportsDestination *AssessmentReportsDestination `locationName:"defaultAssessmentReportsDestination" type:"structure"` // A list of the default audit owners. DefaultProcessOwners []*Role `locationName:"defaultProcessOwners" type:"list"` // The KMS key details. KmsKey *string `locationName:"kmsKey" min:"7" type:"string"` // The Amazon Simple Notification Service (Amazon SNS) topic to which Audit // Manager sends notifications. SnsTopic *string `locationName:"snsTopic" min:"20" type:"string"` } // String returns the string representation func (s UpdateSettingsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateSettingsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateSettingsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateSettingsInput"} if s.KmsKey != nil && len(*s.KmsKey) < 7 { invalidParams.Add(request.NewErrParamMinLen("KmsKey", 7)) } if s.SnsTopic != nil && len(*s.SnsTopic) < 20 { invalidParams.Add(request.NewErrParamMinLen("SnsTopic", 20)) } if s.DefaultAssessmentReportsDestination != nil { if err := s.DefaultAssessmentReportsDestination.Validate(); err != nil { invalidParams.AddNested("DefaultAssessmentReportsDestination", err.(request.ErrInvalidParams)) } } if s.DefaultProcessOwners != nil { for i, v := range s.DefaultProcessOwners { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DefaultProcessOwners", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDefaultAssessmentReportsDestination sets the DefaultAssessmentReportsDestination field's value. func (s *UpdateSettingsInput) SetDefaultAssessmentReportsDestination(v *AssessmentReportsDestination) *UpdateSettingsInput { s.DefaultAssessmentReportsDestination = v return s } // SetDefaultProcessOwners sets the DefaultProcessOwners field's value. func (s *UpdateSettingsInput) SetDefaultProcessOwners(v []*Role) *UpdateSettingsInput { s.DefaultProcessOwners = v return s } // SetKmsKey sets the KmsKey field's value. func (s *UpdateSettingsInput) SetKmsKey(v string) *UpdateSettingsInput { s.KmsKey = &v return s } // SetSnsTopic sets the SnsTopic field's value. func (s *UpdateSettingsInput) SetSnsTopic(v string) *UpdateSettingsInput { s.SnsTopic = &v return s } type UpdateSettingsOutput struct { _ struct{} `type:"structure"` // The current list of settings. Settings *Settings `locationName:"settings" type:"structure"` } // String returns the string representation func (s UpdateSettingsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateSettingsOutput) GoString() string { return s.String() } // SetSettings sets the Settings field's value. func (s *UpdateSettingsOutput) SetSettings(v *Settings) *UpdateSettingsOutput { s.Settings = v return s } type ValidateAssessmentReportIntegrityInput struct { _ struct{} `type:"structure"` // The relative path of the specified Amazon S3 bucket in which the assessment // report is stored. // // S3RelativePath is a required field S3RelativePath *string `locationName:"s3RelativePath" min:"1" type:"string" required:"true"` } // String returns the string representation func (s ValidateAssessmentReportIntegrityInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ValidateAssessmentReportIntegrityInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ValidateAssessmentReportIntegrityInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ValidateAssessmentReportIntegrityInput"} if s.S3RelativePath == nil { invalidParams.Add(request.NewErrParamRequired("S3RelativePath")) } if s.S3RelativePath != nil && len(*s.S3RelativePath) < 1 { invalidParams.Add(request.NewErrParamMinLen("S3RelativePath", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetS3RelativePath sets the S3RelativePath field's value. func (s *ValidateAssessmentReportIntegrityInput) SetS3RelativePath(v string) *ValidateAssessmentReportIntegrityInput { s.S3RelativePath = &v return s } type ValidateAssessmentReportIntegrityOutput struct { _ struct{} `type:"structure"` // The signature algorithm used to code sign the assessment report file. SignatureAlgorithm *string `locationName:"signatureAlgorithm" type:"string"` // The date and time signature that specifies when the assessment report was // created. SignatureDateTime *string `locationName:"signatureDateTime" type:"string"` // The unique identifier for the validation signature key. SignatureKeyId *string `locationName:"signatureKeyId" type:"string"` // Specifies whether the signature key is valid. SignatureValid *bool `locationName:"signatureValid" type:"boolean"` // Represents any errors that occurred when validating the assessment report. ValidationErrors []*string `locationName:"validationErrors" type:"list"` } // String returns the string representation func (s ValidateAssessmentReportIntegrityOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ValidateAssessmentReportIntegrityOutput) GoString() string { return s.String() } // SetSignatureAlgorithm sets the SignatureAlgorithm field's value. func (s *ValidateAssessmentReportIntegrityOutput) SetSignatureAlgorithm(v string) *ValidateAssessmentReportIntegrityOutput { s.SignatureAlgorithm = &v return s } // SetSignatureDateTime sets the SignatureDateTime field's value. func (s *ValidateAssessmentReportIntegrityOutput) SetSignatureDateTime(v string) *ValidateAssessmentReportIntegrityOutput { s.SignatureDateTime = &v return s } // SetSignatureKeyId sets the SignatureKeyId field's value. func (s *ValidateAssessmentReportIntegrityOutput) SetSignatureKeyId(v string) *ValidateAssessmentReportIntegrityOutput { s.SignatureKeyId = &v return s } // SetSignatureValid sets the SignatureValid field's value. func (s *ValidateAssessmentReportIntegrityOutput) SetSignatureValid(v bool) *ValidateAssessmentReportIntegrityOutput { s.SignatureValid = &v return s } // SetValidationErrors sets the ValidationErrors field's value. func (s *ValidateAssessmentReportIntegrityOutput) SetValidationErrors(v []*string) *ValidateAssessmentReportIntegrityOutput { s.ValidationErrors = v return s } // The request has invalid or missing parameters. type ValidationException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` // The fields that caused the error, if applicable. Fields []*ValidationExceptionField `locationName:"fields" type:"list"` Message_ *string `locationName:"message" type:"string"` // The reason the request failed validation. Reason *string `locationName:"reason" type:"string" enum:"ValidationExceptionReason"` } // String returns the string representation func (s ValidationException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ValidationException) GoString() string { return s.String() } func newErrorValidationException(v protocol.ResponseMetadata) error { return &ValidationException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ValidationException) Code() string { return "ValidationException" } // Message returns the exception's message. func (s *ValidationException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ValidationException) OrigErr() error { return nil } func (s *ValidationException) Error() string { return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } // Status code returns the HTTP status code for the request's response error. func (s *ValidationException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ValidationException) RequestID() string { return s.RespMetadata.RequestID } // Indicates that the request has invalid or missing parameters for the specified // field. type ValidationExceptionField struct { _ struct{} `type:"structure"` // The body of the error message. // // Message is a required field Message *string `locationName:"message" type:"string" required:"true"` // The name of the validation error. // // Name is a required field Name *string `locationName:"name" type:"string" required:"true"` } // String returns the string representation func (s ValidationExceptionField) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ValidationExceptionField) GoString() string { return s.String() } // SetMessage sets the Message field's value. func (s *ValidationExceptionField) SetMessage(v string) *ValidationExceptionField { s.Message = &v return s } // SetName sets the Name field's value. func (s *ValidationExceptionField) SetName(v string) *ValidationExceptionField { s.Name = &v return s } const ( // AccountStatusActive is a AccountStatus enum value AccountStatusActive = "ACTIVE" // AccountStatusInactive is a AccountStatus enum value AccountStatusInactive = "INACTIVE" // AccountStatusPendingActivation is a AccountStatus enum value AccountStatusPendingActivation = "PENDING_ACTIVATION" ) // AccountStatus_Values returns all elements of the AccountStatus enum func AccountStatus_Values() []string { return []string{ AccountStatusActive, AccountStatusInactive, AccountStatusPendingActivation, } } const ( // ActionEnumCreate is a ActionEnum enum value ActionEnumCreate = "CREATE" // ActionEnumUpdateMetadata is a ActionEnum enum value ActionEnumUpdateMetadata = "UPDATE_METADATA" // ActionEnumActive is a ActionEnum enum value ActionEnumActive = "ACTIVE" // ActionEnumInactive is a ActionEnum enum value ActionEnumInactive = "INACTIVE" // ActionEnumDelete is a ActionEnum enum value ActionEnumDelete = "DELETE" // ActionEnumUnderReview is a ActionEnum enum value ActionEnumUnderReview = "UNDER_REVIEW" // ActionEnumReviewed is a ActionEnum enum value ActionEnumReviewed = "REVIEWED" // ActionEnumImportEvidence is a ActionEnum enum value ActionEnumImportEvidence = "IMPORT_EVIDENCE" ) // ActionEnum_Values returns all elements of the ActionEnum enum func ActionEnum_Values() []string { return []string{ ActionEnumCreate, ActionEnumUpdateMetadata, ActionEnumActive, ActionEnumInactive, ActionEnumDelete, ActionEnumUnderReview, ActionEnumReviewed, ActionEnumImportEvidence, } } const ( // AssessmentReportDestinationTypeS3 is a AssessmentReportDestinationType enum value AssessmentReportDestinationTypeS3 = "S3" ) // AssessmentReportDestinationType_Values returns all elements of the AssessmentReportDestinationType enum func AssessmentReportDestinationType_Values() []string { return []string{ AssessmentReportDestinationTypeS3, } } const ( // AssessmentReportStatusComplete is a AssessmentReportStatus enum value AssessmentReportStatusComplete = "COMPLETE" // AssessmentReportStatusInProgress is a AssessmentReportStatus enum value AssessmentReportStatusInProgress = "IN_PROGRESS" // AssessmentReportStatusFailed is a AssessmentReportStatus enum value AssessmentReportStatusFailed = "FAILED" ) // AssessmentReportStatus_Values returns all elements of the AssessmentReportStatus enum func AssessmentReportStatus_Values() []string { return []string{ AssessmentReportStatusComplete, AssessmentReportStatusInProgress, AssessmentReportStatusFailed, } } const ( // AssessmentStatusActive is a AssessmentStatus enum value AssessmentStatusActive = "ACTIVE" // AssessmentStatusInactive is a AssessmentStatus enum value AssessmentStatusInactive = "INACTIVE" ) // AssessmentStatus_Values returns all elements of the AssessmentStatus enum func AssessmentStatus_Values() []string { return []string{ AssessmentStatusActive, AssessmentStatusInactive, } } const ( // ControlResponseManual is a ControlResponse enum value ControlResponseManual = "MANUAL" // ControlResponseAutomate is a ControlResponse enum value ControlResponseAutomate = "AUTOMATE" // ControlResponseDefer is a ControlResponse enum value ControlResponseDefer = "DEFER" // ControlResponseIgnore is a ControlResponse enum value ControlResponseIgnore = "IGNORE" ) // ControlResponse_Values returns all elements of the ControlResponse enum func ControlResponse_Values() []string { return []string{ ControlResponseManual, ControlResponseAutomate, ControlResponseDefer, ControlResponseIgnore, } } const ( // ControlSetStatusActive is a ControlSetStatus enum value ControlSetStatusActive = "ACTIVE" // ControlSetStatusUnderReview is a ControlSetStatus enum value ControlSetStatusUnderReview = "UNDER_REVIEW" // ControlSetStatusReviewed is a ControlSetStatus enum value ControlSetStatusReviewed = "REVIEWED" ) // ControlSetStatus_Values returns all elements of the ControlSetStatus enum func ControlSetStatus_Values() []string { return []string{ ControlSetStatusActive, ControlSetStatusUnderReview, ControlSetStatusReviewed, } } const ( // ControlStatusUnderReview is a ControlStatus enum value ControlStatusUnderReview = "UNDER_REVIEW" // ControlStatusReviewed is a ControlStatus enum value ControlStatusReviewed = "REVIEWED" // ControlStatusInactive is a ControlStatus enum value ControlStatusInactive = "INACTIVE" ) // ControlStatus_Values returns all elements of the ControlStatus enum func ControlStatus_Values() []string { return []string{ ControlStatusUnderReview, ControlStatusReviewed, ControlStatusInactive, } } const ( // ControlTypeStandard is a ControlType enum value ControlTypeStandard = "Standard" // ControlTypeCustom is a ControlType enum value ControlTypeCustom = "Custom" ) // ControlType_Values returns all elements of the ControlType enum func ControlType_Values() []string { return []string{ ControlTypeStandard, ControlTypeCustom, } } const ( // DelegationStatusInProgress is a DelegationStatus enum value DelegationStatusInProgress = "IN_PROGRESS" // DelegationStatusUnderReview is a DelegationStatus enum value DelegationStatusUnderReview = "UNDER_REVIEW" // DelegationStatusComplete is a DelegationStatus enum value DelegationStatusComplete = "COMPLETE" ) // DelegationStatus_Values returns all elements of the DelegationStatus enum func DelegationStatus_Values() []string { return []string{ DelegationStatusInProgress, DelegationStatusUnderReview, DelegationStatusComplete, } } const ( // FrameworkTypeStandard is a FrameworkType enum value FrameworkTypeStandard = "Standard" // FrameworkTypeCustom is a FrameworkType enum value FrameworkTypeCustom = "Custom" ) // FrameworkType_Values returns all elements of the FrameworkType enum func FrameworkType_Values() []string { return []string{ FrameworkTypeStandard, FrameworkTypeCustom, } } const ( // KeywordInputTypeSelectFromList is a KeywordInputType enum value KeywordInputTypeSelectFromList = "SELECT_FROM_LIST" ) // KeywordInputType_Values returns all elements of the KeywordInputType enum func KeywordInputType_Values() []string { return []string{ KeywordInputTypeSelectFromList, } } const ( // ObjectTypeEnumAssessment is a ObjectTypeEnum enum value ObjectTypeEnumAssessment = "ASSESSMENT" // ObjectTypeEnumControlSet is a ObjectTypeEnum enum value ObjectTypeEnumControlSet = "CONTROL_SET" // ObjectTypeEnumControl is a ObjectTypeEnum enum value ObjectTypeEnumControl = "CONTROL" // ObjectTypeEnumDelegation is a ObjectTypeEnum enum value ObjectTypeEnumDelegation = "DELEGATION" // ObjectTypeEnumAssessmentReport is a ObjectTypeEnum enum value ObjectTypeEnumAssessmentReport = "ASSESSMENT_REPORT" ) // ObjectTypeEnum_Values returns all elements of the ObjectTypeEnum enum func ObjectTypeEnum_Values() []string { return []string{ ObjectTypeEnumAssessment, ObjectTypeEnumControlSet, ObjectTypeEnumControl, ObjectTypeEnumDelegation, ObjectTypeEnumAssessmentReport, } } const ( // RoleTypeProcessOwner is a RoleType enum value RoleTypeProcessOwner = "PROCESS_OWNER" // RoleTypeResourceOwner is a RoleType enum value RoleTypeResourceOwner = "RESOURCE_OWNER" ) // RoleType_Values returns all elements of the RoleType enum func RoleType_Values() []string { return []string{ RoleTypeProcessOwner, RoleTypeResourceOwner, } } const ( // SettingAttributeAll is a SettingAttribute enum value SettingAttributeAll = "ALL" // SettingAttributeIsAwsOrgEnabled is a SettingAttribute enum value SettingAttributeIsAwsOrgEnabled = "IS_AWS_ORG_ENABLED" // SettingAttributeSnsTopic is a SettingAttribute enum value SettingAttributeSnsTopic = "SNS_TOPIC" // SettingAttributeDefaultAssessmentReportsDestination is a SettingAttribute enum value SettingAttributeDefaultAssessmentReportsDestination = "DEFAULT_ASSESSMENT_REPORTS_DESTINATION" // SettingAttributeDefaultProcessOwners is a SettingAttribute enum value SettingAttributeDefaultProcessOwners = "DEFAULT_PROCESS_OWNERS" ) // SettingAttribute_Values returns all elements of the SettingAttribute enum func SettingAttribute_Values() []string { return []string{ SettingAttributeAll, SettingAttributeIsAwsOrgEnabled, SettingAttributeSnsTopic, SettingAttributeDefaultAssessmentReportsDestination, SettingAttributeDefaultProcessOwners, } } const ( // SourceFrequencyDaily is a SourceFrequency enum value SourceFrequencyDaily = "DAILY" // SourceFrequencyWeekly is a SourceFrequency enum value SourceFrequencyWeekly = "WEEKLY" // SourceFrequencyMonthly is a SourceFrequency enum value SourceFrequencyMonthly = "MONTHLY" ) // SourceFrequency_Values returns all elements of the SourceFrequency enum func SourceFrequency_Values() []string { return []string{ SourceFrequencyDaily, SourceFrequencyWeekly, SourceFrequencyMonthly, } } const ( // SourceSetUpOptionSystemControlsMapping is a SourceSetUpOption enum value SourceSetUpOptionSystemControlsMapping = "System_Controls_Mapping" // SourceSetUpOptionProceduralControlsMapping is a SourceSetUpOption enum value SourceSetUpOptionProceduralControlsMapping = "Procedural_Controls_Mapping" ) // SourceSetUpOption_Values returns all elements of the SourceSetUpOption enum func SourceSetUpOption_Values() []string { return []string{ SourceSetUpOptionSystemControlsMapping, SourceSetUpOptionProceduralControlsMapping, } } const ( // SourceTypeAwsCloudtrail is a SourceType enum value SourceTypeAwsCloudtrail = "AWS_Cloudtrail" // SourceTypeAwsConfig is a SourceType enum value SourceTypeAwsConfig = "AWS_Config" // SourceTypeAwsSecurityHub is a SourceType enum value SourceTypeAwsSecurityHub = "AWS_Security_Hub" // SourceTypeAwsApiCall is a SourceType enum value SourceTypeAwsApiCall = "AWS_API_Call" // SourceTypeManual is a SourceType enum value SourceTypeManual = "MANUAL" ) // SourceType_Values returns all elements of the SourceType enum func SourceType_Values() []string { return []string{ SourceTypeAwsCloudtrail, SourceTypeAwsConfig, SourceTypeAwsSecurityHub, SourceTypeAwsApiCall, SourceTypeManual, } } const ( // ValidationExceptionReasonUnknownOperation is a ValidationExceptionReason enum value ValidationExceptionReasonUnknownOperation = "unknownOperation" // ValidationExceptionReasonCannotParse is a ValidationExceptionReason enum value ValidationExceptionReasonCannotParse = "cannotParse" // ValidationExceptionReasonFieldValidationFailed is a ValidationExceptionReason enum value ValidationExceptionReasonFieldValidationFailed = "fieldValidationFailed" // ValidationExceptionReasonOther is a ValidationExceptionReason enum value ValidationExceptionReasonOther = "other" ) // ValidationExceptionReason_Values returns all elements of the ValidationExceptionReason enum func ValidationExceptionReason_Values() []string { return []string{ ValidationExceptionReasonUnknownOperation, ValidationExceptionReasonCannotParse, ValidationExceptionReasonFieldValidationFailed, ValidationExceptionReasonOther, } }
13,580
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package auditmanager provides the client and types for making API // requests to AWS Audit Manager. // // Welcome to the Audit Manager API reference. This guide is for developers // who need detailed information about the Audit Manager API operations, data // types, and errors. // // Audit Manager is a service that provides automated evidence collection so // that you can continuously audit your Amazon Web Services usage, and assess // the effectiveness of your controls to better manage risk and simplify compliance. // // Audit Manager provides pre-built frameworks that structure and automate assessments // for a given compliance standard. Frameworks include a pre-built collection // of controls with descriptions and testing procedures, which are grouped according // to the requirements of the specified compliance standard or regulation. You // can also customize frameworks and controls to support internal audits with // unique requirements. // // Use the following links to get started with the Audit Manager API: // // * Actions (https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_Operations.html): // An alphabetical list of all Audit Manager API operations. // // * Data types (https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_Types.html): // An alphabetical list of all Audit Manager data types. // // * Common parameters (https://docs.aws.amazon.com/audit-manager/latest/APIReference/CommonParameters.html): // Parameters that all Query operations can use. // // * Common errors (https://docs.aws.amazon.com/audit-manager/latest/APIReference/CommonErrors.html): // Client and server errors that all operations can return. // // If you're new to Audit Manager, we recommend that you review the Audit Manager // User Guide (https://docs.aws.amazon.com/audit-manager/latest/userguide/what-is.html). // // See https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25 for more information on this service. // // See auditmanager package documentation for more information. // https://docs.aws.amazon.com/sdk-for-go/api/service/auditmanager/ // // Using the Client // // To contact AWS Audit Manager 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 Audit Manager client AuditManager for more // information on creating client for this service. // https://docs.aws.amazon.com/sdk-for-go/api/service/auditmanager/#New package auditmanager
59
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package auditmanager import ( "github.com/aws/aws-sdk-go/private/protocol" ) const ( // ErrCodeAccessDeniedException for service response error code // "AccessDeniedException". // // Your account is not registered with Audit Manager. Check the delegated administrator // setup on the Audit Manager settings page, and try again. ErrCodeAccessDeniedException = "AccessDeniedException" // ErrCodeInternalServerException for service response error code // "InternalServerException". // // An internal service error occurred during the processing of your request. // Try again later. ErrCodeInternalServerException = "InternalServerException" // ErrCodeResourceNotFoundException for service response error code // "ResourceNotFoundException". // // The resource specified in the request cannot be found. ErrCodeResourceNotFoundException = "ResourceNotFoundException" // ErrCodeValidationException for service response error code // "ValidationException". // // The request has invalid or missing parameters. ErrCodeValidationException = "ValidationException" ) var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "AccessDeniedException": newErrorAccessDeniedException, "InternalServerException": newErrorInternalServerException, "ResourceNotFoundException": newErrorResourceNotFoundException, "ValidationException": newErrorValidationException, }
44
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package auditmanager 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" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) // AuditManager provides the API operation methods for making requests to // AWS Audit Manager. See this package's package overview docs // for details on the service. // // AuditManager methods are safe to use concurrently. It is not safe to // modify mutate any of the struct's properties though. type AuditManager 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 = "AuditManager" // Name of service. EndpointsID = "auditmanager" // ID to lookup a service endpoint with. ServiceID = "AuditManager" // ServiceID is a unique identifier of a specific service. ) // New creates a new instance of the AuditManager 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: // mySession := session.Must(session.NewSession()) // // // Create a AuditManager client from just a session. // svc := auditmanager.New(mySession) // // // Create a AuditManager client with additional configuration // svc := auditmanager.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *AuditManager { c := p.ClientConfig(EndpointsID, cfgs...) if c.SigningNameDerived || len(c.SigningName) == 0 { c.SigningName = "auditmanager" } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *AuditManager { svc := &AuditManager{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, ServiceID: ServiceID, SigningName: signingName, SigningRegion: signingRegion, PartitionID: partitionID, Endpoint: endpoint, APIVersion: "2017-07-25", }, 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( protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), ) // Run custom client initialization if present if initClient != nil { initClient(svc.Client) } return svc } // newRequest creates a new request for a AuditManager operation and runs any // custom request initialization. func (c *AuditManager) 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 }
105
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package auditmanageriface provides an interface to enable mocking the AWS Audit Manager 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 auditmanageriface import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/service/auditmanager" ) // AuditManagerAPI provides an interface to enable mocking the // auditmanager.AuditManager 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 Audit Manager. // func myFunc(svc auditmanageriface.AuditManagerAPI) bool { // // Make svc.AssociateAssessmentReportEvidenceFolder request // } // // func main() { // sess := session.New() // svc := auditmanager.New(sess) // // myFunc(svc) // } // // In your _test.go file: // // // Define a mock struct to be used in your unit tests of myFunc. // type mockAuditManagerClient struct { // auditmanageriface.AuditManagerAPI // } // func (m *mockAuditManagerClient) AssociateAssessmentReportEvidenceFolder(input *auditmanager.AssociateAssessmentReportEvidenceFolderInput) (*auditmanager.AssociateAssessmentReportEvidenceFolderOutput, error) { // // mock response/functionality // } // // func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockAuditManagerClient{} // // 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 AuditManagerAPI interface { AssociateAssessmentReportEvidenceFolder(*auditmanager.AssociateAssessmentReportEvidenceFolderInput) (*auditmanager.AssociateAssessmentReportEvidenceFolderOutput, error) AssociateAssessmentReportEvidenceFolderWithContext(aws.Context, *auditmanager.AssociateAssessmentReportEvidenceFolderInput, ...request.Option) (*auditmanager.AssociateAssessmentReportEvidenceFolderOutput, error) AssociateAssessmentReportEvidenceFolderRequest(*auditmanager.AssociateAssessmentReportEvidenceFolderInput) (*request.Request, *auditmanager.AssociateAssessmentReportEvidenceFolderOutput) BatchAssociateAssessmentReportEvidence(*auditmanager.BatchAssociateAssessmentReportEvidenceInput) (*auditmanager.BatchAssociateAssessmentReportEvidenceOutput, error) BatchAssociateAssessmentReportEvidenceWithContext(aws.Context, *auditmanager.BatchAssociateAssessmentReportEvidenceInput, ...request.Option) (*auditmanager.BatchAssociateAssessmentReportEvidenceOutput, error) BatchAssociateAssessmentReportEvidenceRequest(*auditmanager.BatchAssociateAssessmentReportEvidenceInput) (*request.Request, *auditmanager.BatchAssociateAssessmentReportEvidenceOutput) BatchCreateDelegationByAssessment(*auditmanager.BatchCreateDelegationByAssessmentInput) (*auditmanager.BatchCreateDelegationByAssessmentOutput, error) BatchCreateDelegationByAssessmentWithContext(aws.Context, *auditmanager.BatchCreateDelegationByAssessmentInput, ...request.Option) (*auditmanager.BatchCreateDelegationByAssessmentOutput, error) BatchCreateDelegationByAssessmentRequest(*auditmanager.BatchCreateDelegationByAssessmentInput) (*request.Request, *auditmanager.BatchCreateDelegationByAssessmentOutput) BatchDeleteDelegationByAssessment(*auditmanager.BatchDeleteDelegationByAssessmentInput) (*auditmanager.BatchDeleteDelegationByAssessmentOutput, error) BatchDeleteDelegationByAssessmentWithContext(aws.Context, *auditmanager.BatchDeleteDelegationByAssessmentInput, ...request.Option) (*auditmanager.BatchDeleteDelegationByAssessmentOutput, error) BatchDeleteDelegationByAssessmentRequest(*auditmanager.BatchDeleteDelegationByAssessmentInput) (*request.Request, *auditmanager.BatchDeleteDelegationByAssessmentOutput) BatchDisassociateAssessmentReportEvidence(*auditmanager.BatchDisassociateAssessmentReportEvidenceInput) (*auditmanager.BatchDisassociateAssessmentReportEvidenceOutput, error) BatchDisassociateAssessmentReportEvidenceWithContext(aws.Context, *auditmanager.BatchDisassociateAssessmentReportEvidenceInput, ...request.Option) (*auditmanager.BatchDisassociateAssessmentReportEvidenceOutput, error) BatchDisassociateAssessmentReportEvidenceRequest(*auditmanager.BatchDisassociateAssessmentReportEvidenceInput) (*request.Request, *auditmanager.BatchDisassociateAssessmentReportEvidenceOutput) BatchImportEvidenceToAssessmentControl(*auditmanager.BatchImportEvidenceToAssessmentControlInput) (*auditmanager.BatchImportEvidenceToAssessmentControlOutput, error) BatchImportEvidenceToAssessmentControlWithContext(aws.Context, *auditmanager.BatchImportEvidenceToAssessmentControlInput, ...request.Option) (*auditmanager.BatchImportEvidenceToAssessmentControlOutput, error) BatchImportEvidenceToAssessmentControlRequest(*auditmanager.BatchImportEvidenceToAssessmentControlInput) (*request.Request, *auditmanager.BatchImportEvidenceToAssessmentControlOutput) CreateAssessment(*auditmanager.CreateAssessmentInput) (*auditmanager.CreateAssessmentOutput, error) CreateAssessmentWithContext(aws.Context, *auditmanager.CreateAssessmentInput, ...request.Option) (*auditmanager.CreateAssessmentOutput, error) CreateAssessmentRequest(*auditmanager.CreateAssessmentInput) (*request.Request, *auditmanager.CreateAssessmentOutput) CreateAssessmentFramework(*auditmanager.CreateAssessmentFrameworkInput) (*auditmanager.CreateAssessmentFrameworkOutput, error) CreateAssessmentFrameworkWithContext(aws.Context, *auditmanager.CreateAssessmentFrameworkInput, ...request.Option) (*auditmanager.CreateAssessmentFrameworkOutput, error) CreateAssessmentFrameworkRequest(*auditmanager.CreateAssessmentFrameworkInput) (*request.Request, *auditmanager.CreateAssessmentFrameworkOutput) CreateAssessmentReport(*auditmanager.CreateAssessmentReportInput) (*auditmanager.CreateAssessmentReportOutput, error) CreateAssessmentReportWithContext(aws.Context, *auditmanager.CreateAssessmentReportInput, ...request.Option) (*auditmanager.CreateAssessmentReportOutput, error) CreateAssessmentReportRequest(*auditmanager.CreateAssessmentReportInput) (*request.Request, *auditmanager.CreateAssessmentReportOutput) CreateControl(*auditmanager.CreateControlInput) (*auditmanager.CreateControlOutput, error) CreateControlWithContext(aws.Context, *auditmanager.CreateControlInput, ...request.Option) (*auditmanager.CreateControlOutput, error) CreateControlRequest(*auditmanager.CreateControlInput) (*request.Request, *auditmanager.CreateControlOutput) DeleteAssessment(*auditmanager.DeleteAssessmentInput) (*auditmanager.DeleteAssessmentOutput, error) DeleteAssessmentWithContext(aws.Context, *auditmanager.DeleteAssessmentInput, ...request.Option) (*auditmanager.DeleteAssessmentOutput, error) DeleteAssessmentRequest(*auditmanager.DeleteAssessmentInput) (*request.Request, *auditmanager.DeleteAssessmentOutput) DeleteAssessmentFramework(*auditmanager.DeleteAssessmentFrameworkInput) (*auditmanager.DeleteAssessmentFrameworkOutput, error) DeleteAssessmentFrameworkWithContext(aws.Context, *auditmanager.DeleteAssessmentFrameworkInput, ...request.Option) (*auditmanager.DeleteAssessmentFrameworkOutput, error) DeleteAssessmentFrameworkRequest(*auditmanager.DeleteAssessmentFrameworkInput) (*request.Request, *auditmanager.DeleteAssessmentFrameworkOutput) DeleteAssessmentReport(*auditmanager.DeleteAssessmentReportInput) (*auditmanager.DeleteAssessmentReportOutput, error) DeleteAssessmentReportWithContext(aws.Context, *auditmanager.DeleteAssessmentReportInput, ...request.Option) (*auditmanager.DeleteAssessmentReportOutput, error) DeleteAssessmentReportRequest(*auditmanager.DeleteAssessmentReportInput) (*request.Request, *auditmanager.DeleteAssessmentReportOutput) DeleteControl(*auditmanager.DeleteControlInput) (*auditmanager.DeleteControlOutput, error) DeleteControlWithContext(aws.Context, *auditmanager.DeleteControlInput, ...request.Option) (*auditmanager.DeleteControlOutput, error) DeleteControlRequest(*auditmanager.DeleteControlInput) (*request.Request, *auditmanager.DeleteControlOutput) DeregisterAccount(*auditmanager.DeregisterAccountInput) (*auditmanager.DeregisterAccountOutput, error) DeregisterAccountWithContext(aws.Context, *auditmanager.DeregisterAccountInput, ...request.Option) (*auditmanager.DeregisterAccountOutput, error) DeregisterAccountRequest(*auditmanager.DeregisterAccountInput) (*request.Request, *auditmanager.DeregisterAccountOutput) DeregisterOrganizationAdminAccount(*auditmanager.DeregisterOrganizationAdminAccountInput) (*auditmanager.DeregisterOrganizationAdminAccountOutput, error) DeregisterOrganizationAdminAccountWithContext(aws.Context, *auditmanager.DeregisterOrganizationAdminAccountInput, ...request.Option) (*auditmanager.DeregisterOrganizationAdminAccountOutput, error) DeregisterOrganizationAdminAccountRequest(*auditmanager.DeregisterOrganizationAdminAccountInput) (*request.Request, *auditmanager.DeregisterOrganizationAdminAccountOutput) DisassociateAssessmentReportEvidenceFolder(*auditmanager.DisassociateAssessmentReportEvidenceFolderInput) (*auditmanager.DisassociateAssessmentReportEvidenceFolderOutput, error) DisassociateAssessmentReportEvidenceFolderWithContext(aws.Context, *auditmanager.DisassociateAssessmentReportEvidenceFolderInput, ...request.Option) (*auditmanager.DisassociateAssessmentReportEvidenceFolderOutput, error) DisassociateAssessmentReportEvidenceFolderRequest(*auditmanager.DisassociateAssessmentReportEvidenceFolderInput) (*request.Request, *auditmanager.DisassociateAssessmentReportEvidenceFolderOutput) GetAccountStatus(*auditmanager.GetAccountStatusInput) (*auditmanager.GetAccountStatusOutput, error) GetAccountStatusWithContext(aws.Context, *auditmanager.GetAccountStatusInput, ...request.Option) (*auditmanager.GetAccountStatusOutput, error) GetAccountStatusRequest(*auditmanager.GetAccountStatusInput) (*request.Request, *auditmanager.GetAccountStatusOutput) GetAssessment(*auditmanager.GetAssessmentInput) (*auditmanager.GetAssessmentOutput, error) GetAssessmentWithContext(aws.Context, *auditmanager.GetAssessmentInput, ...request.Option) (*auditmanager.GetAssessmentOutput, error) GetAssessmentRequest(*auditmanager.GetAssessmentInput) (*request.Request, *auditmanager.GetAssessmentOutput) GetAssessmentFramework(*auditmanager.GetAssessmentFrameworkInput) (*auditmanager.GetAssessmentFrameworkOutput, error) GetAssessmentFrameworkWithContext(aws.Context, *auditmanager.GetAssessmentFrameworkInput, ...request.Option) (*auditmanager.GetAssessmentFrameworkOutput, error) GetAssessmentFrameworkRequest(*auditmanager.GetAssessmentFrameworkInput) (*request.Request, *auditmanager.GetAssessmentFrameworkOutput) GetAssessmentReportUrl(*auditmanager.GetAssessmentReportUrlInput) (*auditmanager.GetAssessmentReportUrlOutput, error) GetAssessmentReportUrlWithContext(aws.Context, *auditmanager.GetAssessmentReportUrlInput, ...request.Option) (*auditmanager.GetAssessmentReportUrlOutput, error) GetAssessmentReportUrlRequest(*auditmanager.GetAssessmentReportUrlInput) (*request.Request, *auditmanager.GetAssessmentReportUrlOutput) GetChangeLogs(*auditmanager.GetChangeLogsInput) (*auditmanager.GetChangeLogsOutput, error) GetChangeLogsWithContext(aws.Context, *auditmanager.GetChangeLogsInput, ...request.Option) (*auditmanager.GetChangeLogsOutput, error) GetChangeLogsRequest(*auditmanager.GetChangeLogsInput) (*request.Request, *auditmanager.GetChangeLogsOutput) GetChangeLogsPages(*auditmanager.GetChangeLogsInput, func(*auditmanager.GetChangeLogsOutput, bool) bool) error GetChangeLogsPagesWithContext(aws.Context, *auditmanager.GetChangeLogsInput, func(*auditmanager.GetChangeLogsOutput, bool) bool, ...request.Option) error GetControl(*auditmanager.GetControlInput) (*auditmanager.GetControlOutput, error) GetControlWithContext(aws.Context, *auditmanager.GetControlInput, ...request.Option) (*auditmanager.GetControlOutput, error) GetControlRequest(*auditmanager.GetControlInput) (*request.Request, *auditmanager.GetControlOutput) GetDelegations(*auditmanager.GetDelegationsInput) (*auditmanager.GetDelegationsOutput, error) GetDelegationsWithContext(aws.Context, *auditmanager.GetDelegationsInput, ...request.Option) (*auditmanager.GetDelegationsOutput, error) GetDelegationsRequest(*auditmanager.GetDelegationsInput) (*request.Request, *auditmanager.GetDelegationsOutput) GetDelegationsPages(*auditmanager.GetDelegationsInput, func(*auditmanager.GetDelegationsOutput, bool) bool) error GetDelegationsPagesWithContext(aws.Context, *auditmanager.GetDelegationsInput, func(*auditmanager.GetDelegationsOutput, bool) bool, ...request.Option) error GetEvidence(*auditmanager.GetEvidenceInput) (*auditmanager.GetEvidenceOutput, error) GetEvidenceWithContext(aws.Context, *auditmanager.GetEvidenceInput, ...request.Option) (*auditmanager.GetEvidenceOutput, error) GetEvidenceRequest(*auditmanager.GetEvidenceInput) (*request.Request, *auditmanager.GetEvidenceOutput) GetEvidenceByEvidenceFolder(*auditmanager.GetEvidenceByEvidenceFolderInput) (*auditmanager.GetEvidenceByEvidenceFolderOutput, error) GetEvidenceByEvidenceFolderWithContext(aws.Context, *auditmanager.GetEvidenceByEvidenceFolderInput, ...request.Option) (*auditmanager.GetEvidenceByEvidenceFolderOutput, error) GetEvidenceByEvidenceFolderRequest(*auditmanager.GetEvidenceByEvidenceFolderInput) (*request.Request, *auditmanager.GetEvidenceByEvidenceFolderOutput) GetEvidenceByEvidenceFolderPages(*auditmanager.GetEvidenceByEvidenceFolderInput, func(*auditmanager.GetEvidenceByEvidenceFolderOutput, bool) bool) error GetEvidenceByEvidenceFolderPagesWithContext(aws.Context, *auditmanager.GetEvidenceByEvidenceFolderInput, func(*auditmanager.GetEvidenceByEvidenceFolderOutput, bool) bool, ...request.Option) error GetEvidenceFolder(*auditmanager.GetEvidenceFolderInput) (*auditmanager.GetEvidenceFolderOutput, error) GetEvidenceFolderWithContext(aws.Context, *auditmanager.GetEvidenceFolderInput, ...request.Option) (*auditmanager.GetEvidenceFolderOutput, error) GetEvidenceFolderRequest(*auditmanager.GetEvidenceFolderInput) (*request.Request, *auditmanager.GetEvidenceFolderOutput) GetEvidenceFoldersByAssessment(*auditmanager.GetEvidenceFoldersByAssessmentInput) (*auditmanager.GetEvidenceFoldersByAssessmentOutput, error) GetEvidenceFoldersByAssessmentWithContext(aws.Context, *auditmanager.GetEvidenceFoldersByAssessmentInput, ...request.Option) (*auditmanager.GetEvidenceFoldersByAssessmentOutput, error) GetEvidenceFoldersByAssessmentRequest(*auditmanager.GetEvidenceFoldersByAssessmentInput) (*request.Request, *auditmanager.GetEvidenceFoldersByAssessmentOutput) GetEvidenceFoldersByAssessmentPages(*auditmanager.GetEvidenceFoldersByAssessmentInput, func(*auditmanager.GetEvidenceFoldersByAssessmentOutput, bool) bool) error GetEvidenceFoldersByAssessmentPagesWithContext(aws.Context, *auditmanager.GetEvidenceFoldersByAssessmentInput, func(*auditmanager.GetEvidenceFoldersByAssessmentOutput, bool) bool, ...request.Option) error GetEvidenceFoldersByAssessmentControl(*auditmanager.GetEvidenceFoldersByAssessmentControlInput) (*auditmanager.GetEvidenceFoldersByAssessmentControlOutput, error) GetEvidenceFoldersByAssessmentControlWithContext(aws.Context, *auditmanager.GetEvidenceFoldersByAssessmentControlInput, ...request.Option) (*auditmanager.GetEvidenceFoldersByAssessmentControlOutput, error) GetEvidenceFoldersByAssessmentControlRequest(*auditmanager.GetEvidenceFoldersByAssessmentControlInput) (*request.Request, *auditmanager.GetEvidenceFoldersByAssessmentControlOutput) GetEvidenceFoldersByAssessmentControlPages(*auditmanager.GetEvidenceFoldersByAssessmentControlInput, func(*auditmanager.GetEvidenceFoldersByAssessmentControlOutput, bool) bool) error GetEvidenceFoldersByAssessmentControlPagesWithContext(aws.Context, *auditmanager.GetEvidenceFoldersByAssessmentControlInput, func(*auditmanager.GetEvidenceFoldersByAssessmentControlOutput, bool) bool, ...request.Option) error GetOrganizationAdminAccount(*auditmanager.GetOrganizationAdminAccountInput) (*auditmanager.GetOrganizationAdminAccountOutput, error) GetOrganizationAdminAccountWithContext(aws.Context, *auditmanager.GetOrganizationAdminAccountInput, ...request.Option) (*auditmanager.GetOrganizationAdminAccountOutput, error) GetOrganizationAdminAccountRequest(*auditmanager.GetOrganizationAdminAccountInput) (*request.Request, *auditmanager.GetOrganizationAdminAccountOutput) GetServicesInScope(*auditmanager.GetServicesInScopeInput) (*auditmanager.GetServicesInScopeOutput, error) GetServicesInScopeWithContext(aws.Context, *auditmanager.GetServicesInScopeInput, ...request.Option) (*auditmanager.GetServicesInScopeOutput, error) GetServicesInScopeRequest(*auditmanager.GetServicesInScopeInput) (*request.Request, *auditmanager.GetServicesInScopeOutput) GetSettings(*auditmanager.GetSettingsInput) (*auditmanager.GetSettingsOutput, error) GetSettingsWithContext(aws.Context, *auditmanager.GetSettingsInput, ...request.Option) (*auditmanager.GetSettingsOutput, error) GetSettingsRequest(*auditmanager.GetSettingsInput) (*request.Request, *auditmanager.GetSettingsOutput) ListAssessmentFrameworks(*auditmanager.ListAssessmentFrameworksInput) (*auditmanager.ListAssessmentFrameworksOutput, error) ListAssessmentFrameworksWithContext(aws.Context, *auditmanager.ListAssessmentFrameworksInput, ...request.Option) (*auditmanager.ListAssessmentFrameworksOutput, error) ListAssessmentFrameworksRequest(*auditmanager.ListAssessmentFrameworksInput) (*request.Request, *auditmanager.ListAssessmentFrameworksOutput) ListAssessmentFrameworksPages(*auditmanager.ListAssessmentFrameworksInput, func(*auditmanager.ListAssessmentFrameworksOutput, bool) bool) error ListAssessmentFrameworksPagesWithContext(aws.Context, *auditmanager.ListAssessmentFrameworksInput, func(*auditmanager.ListAssessmentFrameworksOutput, bool) bool, ...request.Option) error ListAssessmentReports(*auditmanager.ListAssessmentReportsInput) (*auditmanager.ListAssessmentReportsOutput, error) ListAssessmentReportsWithContext(aws.Context, *auditmanager.ListAssessmentReportsInput, ...request.Option) (*auditmanager.ListAssessmentReportsOutput, error) ListAssessmentReportsRequest(*auditmanager.ListAssessmentReportsInput) (*request.Request, *auditmanager.ListAssessmentReportsOutput) ListAssessmentReportsPages(*auditmanager.ListAssessmentReportsInput, func(*auditmanager.ListAssessmentReportsOutput, bool) bool) error ListAssessmentReportsPagesWithContext(aws.Context, *auditmanager.ListAssessmentReportsInput, func(*auditmanager.ListAssessmentReportsOutput, bool) bool, ...request.Option) error ListAssessments(*auditmanager.ListAssessmentsInput) (*auditmanager.ListAssessmentsOutput, error) ListAssessmentsWithContext(aws.Context, *auditmanager.ListAssessmentsInput, ...request.Option) (*auditmanager.ListAssessmentsOutput, error) ListAssessmentsRequest(*auditmanager.ListAssessmentsInput) (*request.Request, *auditmanager.ListAssessmentsOutput) ListAssessmentsPages(*auditmanager.ListAssessmentsInput, func(*auditmanager.ListAssessmentsOutput, bool) bool) error ListAssessmentsPagesWithContext(aws.Context, *auditmanager.ListAssessmentsInput, func(*auditmanager.ListAssessmentsOutput, bool) bool, ...request.Option) error ListControls(*auditmanager.ListControlsInput) (*auditmanager.ListControlsOutput, error) ListControlsWithContext(aws.Context, *auditmanager.ListControlsInput, ...request.Option) (*auditmanager.ListControlsOutput, error) ListControlsRequest(*auditmanager.ListControlsInput) (*request.Request, *auditmanager.ListControlsOutput) ListControlsPages(*auditmanager.ListControlsInput, func(*auditmanager.ListControlsOutput, bool) bool) error ListControlsPagesWithContext(aws.Context, *auditmanager.ListControlsInput, func(*auditmanager.ListControlsOutput, bool) bool, ...request.Option) error ListKeywordsForDataSource(*auditmanager.ListKeywordsForDataSourceInput) (*auditmanager.ListKeywordsForDataSourceOutput, error) ListKeywordsForDataSourceWithContext(aws.Context, *auditmanager.ListKeywordsForDataSourceInput, ...request.Option) (*auditmanager.ListKeywordsForDataSourceOutput, error) ListKeywordsForDataSourceRequest(*auditmanager.ListKeywordsForDataSourceInput) (*request.Request, *auditmanager.ListKeywordsForDataSourceOutput) ListKeywordsForDataSourcePages(*auditmanager.ListKeywordsForDataSourceInput, func(*auditmanager.ListKeywordsForDataSourceOutput, bool) bool) error ListKeywordsForDataSourcePagesWithContext(aws.Context, *auditmanager.ListKeywordsForDataSourceInput, func(*auditmanager.ListKeywordsForDataSourceOutput, bool) bool, ...request.Option) error ListNotifications(*auditmanager.ListNotificationsInput) (*auditmanager.ListNotificationsOutput, error) ListNotificationsWithContext(aws.Context, *auditmanager.ListNotificationsInput, ...request.Option) (*auditmanager.ListNotificationsOutput, error) ListNotificationsRequest(*auditmanager.ListNotificationsInput) (*request.Request, *auditmanager.ListNotificationsOutput) ListNotificationsPages(*auditmanager.ListNotificationsInput, func(*auditmanager.ListNotificationsOutput, bool) bool) error ListNotificationsPagesWithContext(aws.Context, *auditmanager.ListNotificationsInput, func(*auditmanager.ListNotificationsOutput, bool) bool, ...request.Option) error ListTagsForResource(*auditmanager.ListTagsForResourceInput) (*auditmanager.ListTagsForResourceOutput, error) ListTagsForResourceWithContext(aws.Context, *auditmanager.ListTagsForResourceInput, ...request.Option) (*auditmanager.ListTagsForResourceOutput, error) ListTagsForResourceRequest(*auditmanager.ListTagsForResourceInput) (*request.Request, *auditmanager.ListTagsForResourceOutput) RegisterAccount(*auditmanager.RegisterAccountInput) (*auditmanager.RegisterAccountOutput, error) RegisterAccountWithContext(aws.Context, *auditmanager.RegisterAccountInput, ...request.Option) (*auditmanager.RegisterAccountOutput, error) RegisterAccountRequest(*auditmanager.RegisterAccountInput) (*request.Request, *auditmanager.RegisterAccountOutput) RegisterOrganizationAdminAccount(*auditmanager.RegisterOrganizationAdminAccountInput) (*auditmanager.RegisterOrganizationAdminAccountOutput, error) RegisterOrganizationAdminAccountWithContext(aws.Context, *auditmanager.RegisterOrganizationAdminAccountInput, ...request.Option) (*auditmanager.RegisterOrganizationAdminAccountOutput, error) RegisterOrganizationAdminAccountRequest(*auditmanager.RegisterOrganizationAdminAccountInput) (*request.Request, *auditmanager.RegisterOrganizationAdminAccountOutput) TagResource(*auditmanager.TagResourceInput) (*auditmanager.TagResourceOutput, error) TagResourceWithContext(aws.Context, *auditmanager.TagResourceInput, ...request.Option) (*auditmanager.TagResourceOutput, error) TagResourceRequest(*auditmanager.TagResourceInput) (*request.Request, *auditmanager.TagResourceOutput) UntagResource(*auditmanager.UntagResourceInput) (*auditmanager.UntagResourceOutput, error) UntagResourceWithContext(aws.Context, *auditmanager.UntagResourceInput, ...request.Option) (*auditmanager.UntagResourceOutput, error) UntagResourceRequest(*auditmanager.UntagResourceInput) (*request.Request, *auditmanager.UntagResourceOutput) UpdateAssessment(*auditmanager.UpdateAssessmentInput) (*auditmanager.UpdateAssessmentOutput, error) UpdateAssessmentWithContext(aws.Context, *auditmanager.UpdateAssessmentInput, ...request.Option) (*auditmanager.UpdateAssessmentOutput, error) UpdateAssessmentRequest(*auditmanager.UpdateAssessmentInput) (*request.Request, *auditmanager.UpdateAssessmentOutput) UpdateAssessmentControl(*auditmanager.UpdateAssessmentControlInput) (*auditmanager.UpdateAssessmentControlOutput, error) UpdateAssessmentControlWithContext(aws.Context, *auditmanager.UpdateAssessmentControlInput, ...request.Option) (*auditmanager.UpdateAssessmentControlOutput, error) UpdateAssessmentControlRequest(*auditmanager.UpdateAssessmentControlInput) (*request.Request, *auditmanager.UpdateAssessmentControlOutput) UpdateAssessmentControlSetStatus(*auditmanager.UpdateAssessmentControlSetStatusInput) (*auditmanager.UpdateAssessmentControlSetStatusOutput, error) UpdateAssessmentControlSetStatusWithContext(aws.Context, *auditmanager.UpdateAssessmentControlSetStatusInput, ...request.Option) (*auditmanager.UpdateAssessmentControlSetStatusOutput, error) UpdateAssessmentControlSetStatusRequest(*auditmanager.UpdateAssessmentControlSetStatusInput) (*request.Request, *auditmanager.UpdateAssessmentControlSetStatusOutput) UpdateAssessmentFramework(*auditmanager.UpdateAssessmentFrameworkInput) (*auditmanager.UpdateAssessmentFrameworkOutput, error) UpdateAssessmentFrameworkWithContext(aws.Context, *auditmanager.UpdateAssessmentFrameworkInput, ...request.Option) (*auditmanager.UpdateAssessmentFrameworkOutput, error) UpdateAssessmentFrameworkRequest(*auditmanager.UpdateAssessmentFrameworkInput) (*request.Request, *auditmanager.UpdateAssessmentFrameworkOutput) UpdateAssessmentStatus(*auditmanager.UpdateAssessmentStatusInput) (*auditmanager.UpdateAssessmentStatusOutput, error) UpdateAssessmentStatusWithContext(aws.Context, *auditmanager.UpdateAssessmentStatusInput, ...request.Option) (*auditmanager.UpdateAssessmentStatusOutput, error) UpdateAssessmentStatusRequest(*auditmanager.UpdateAssessmentStatusInput) (*request.Request, *auditmanager.UpdateAssessmentStatusOutput) UpdateControl(*auditmanager.UpdateControlInput) (*auditmanager.UpdateControlOutput, error) UpdateControlWithContext(aws.Context, *auditmanager.UpdateControlInput, ...request.Option) (*auditmanager.UpdateControlOutput, error) UpdateControlRequest(*auditmanager.UpdateControlInput) (*request.Request, *auditmanager.UpdateControlOutput) UpdateSettings(*auditmanager.UpdateSettingsInput) (*auditmanager.UpdateSettingsOutput, error) UpdateSettingsWithContext(aws.Context, *auditmanager.UpdateSettingsInput, ...request.Option) (*auditmanager.UpdateSettingsOutput, error) UpdateSettingsRequest(*auditmanager.UpdateSettingsInput) (*request.Request, *auditmanager.UpdateSettingsOutput) ValidateAssessmentReportIntegrity(*auditmanager.ValidateAssessmentReportIntegrityInput) (*auditmanager.ValidateAssessmentReportIntegrityOutput, error) ValidateAssessmentReportIntegrityWithContext(aws.Context, *auditmanager.ValidateAssessmentReportIntegrityInput, ...request.Option) (*auditmanager.ValidateAssessmentReportIntegrityOutput, error) ValidateAssessmentReportIntegrityRequest(*auditmanager.ValidateAssessmentReportIntegrityInput) (*request.Request, *auditmanager.ValidateAssessmentReportIntegrityOutput) } var _ AuditManagerAPI = (*auditmanager.AuditManager)(nil)
302
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package augmentedairuntime import ( "fmt" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) const opDeleteHumanLoop = "DeleteHumanLoop" // DeleteHumanLoopRequest generates a "aws/request.Request" representing the // client's request for the DeleteHumanLoop operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteHumanLoop for more information on using the DeleteHumanLoop // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteHumanLoopRequest method. // req, resp := client.DeleteHumanLoopRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DeleteHumanLoop func (c *AugmentedAIRuntime) DeleteHumanLoopRequest(input *DeleteHumanLoopInput) (req *request.Request, output *DeleteHumanLoopOutput) { op := &request.Operation{ Name: opDeleteHumanLoop, HTTPMethod: "DELETE", HTTPPath: "/human-loops/{HumanLoopName}", } if input == nil { input = &DeleteHumanLoopInput{} } output = &DeleteHumanLoopOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteHumanLoop API operation for Amazon Augmented AI Runtime. // // Deletes the specified human loop for a flow definition. // // If the human loop was deleted, this operation will return a ResourceNotFoundException. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Augmented AI Runtime's // API operation DeleteHumanLoop for usage and error information. // // Returned Error Types: // * ValidationException // The request isn't valid. Check the syntax and try again. // // * ResourceNotFoundException // We couldn't find the requested resource. Check that your resources exists // and were created in the same AWS Region as your request, and try your request // again. // // * ThrottlingException // You exceeded the maximum number of requests. // // * InternalServerException // We couldn't process your request because of an issue with the server. Try // again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DeleteHumanLoop func (c *AugmentedAIRuntime) DeleteHumanLoop(input *DeleteHumanLoopInput) (*DeleteHumanLoopOutput, error) { req, out := c.DeleteHumanLoopRequest(input) return out, req.Send() } // DeleteHumanLoopWithContext is the same as DeleteHumanLoop with the addition of // the ability to pass a context and additional request options. // // See DeleteHumanLoop for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AugmentedAIRuntime) DeleteHumanLoopWithContext(ctx aws.Context, input *DeleteHumanLoopInput, opts ...request.Option) (*DeleteHumanLoopOutput, error) { req, out := c.DeleteHumanLoopRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeHumanLoop = "DescribeHumanLoop" // DescribeHumanLoopRequest generates a "aws/request.Request" representing the // client's request for the DescribeHumanLoop operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeHumanLoop for more information on using the DescribeHumanLoop // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeHumanLoopRequest method. // req, resp := client.DescribeHumanLoopRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DescribeHumanLoop func (c *AugmentedAIRuntime) DescribeHumanLoopRequest(input *DescribeHumanLoopInput) (req *request.Request, output *DescribeHumanLoopOutput) { op := &request.Operation{ Name: opDescribeHumanLoop, HTTPMethod: "GET", HTTPPath: "/human-loops/{HumanLoopName}", } if input == nil { input = &DescribeHumanLoopInput{} } output = &DescribeHumanLoopOutput{} req = c.newRequest(op, input, output) return } // DescribeHumanLoop API operation for Amazon Augmented AI Runtime. // // Returns information about the specified human loop. If the human loop was // deleted, this operation will return a ResourceNotFoundException error. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Augmented AI Runtime's // API operation DescribeHumanLoop for usage and error information. // // Returned Error Types: // * ValidationException // The request isn't valid. Check the syntax and try again. // // * ResourceNotFoundException // We couldn't find the requested resource. Check that your resources exists // and were created in the same AWS Region as your request, and try your request // again. // // * ThrottlingException // You exceeded the maximum number of requests. // // * InternalServerException // We couldn't process your request because of an issue with the server. Try // again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DescribeHumanLoop func (c *AugmentedAIRuntime) DescribeHumanLoop(input *DescribeHumanLoopInput) (*DescribeHumanLoopOutput, error) { req, out := c.DescribeHumanLoopRequest(input) return out, req.Send() } // DescribeHumanLoopWithContext is the same as DescribeHumanLoop with the addition of // the ability to pass a context and additional request options. // // See DescribeHumanLoop for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AugmentedAIRuntime) DescribeHumanLoopWithContext(ctx aws.Context, input *DescribeHumanLoopInput, opts ...request.Option) (*DescribeHumanLoopOutput, error) { req, out := c.DescribeHumanLoopRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opListHumanLoops = "ListHumanLoops" // ListHumanLoopsRequest generates a "aws/request.Request" representing the // client's request for the ListHumanLoops operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListHumanLoops for more information on using the ListHumanLoops // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListHumanLoopsRequest method. // req, resp := client.ListHumanLoopsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/ListHumanLoops func (c *AugmentedAIRuntime) ListHumanLoopsRequest(input *ListHumanLoopsInput) (req *request.Request, output *ListHumanLoopsOutput) { op := &request.Operation{ Name: opListHumanLoops, HTTPMethod: "GET", HTTPPath: "/human-loops", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListHumanLoopsInput{} } output = &ListHumanLoopsOutput{} req = c.newRequest(op, input, output) return } // ListHumanLoops API operation for Amazon Augmented AI Runtime. // // Returns information about human loops, given the specified parameters. If // a human loop was deleted, it will not be included. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Augmented AI Runtime's // API operation ListHumanLoops for usage and error information. // // Returned Error Types: // * ValidationException // The request isn't valid. Check the syntax and try again. // // * ResourceNotFoundException // We couldn't find the requested resource. Check that your resources exists // and were created in the same AWS Region as your request, and try your request // again. // // * ThrottlingException // You exceeded the maximum number of requests. // // * InternalServerException // We couldn't process your request because of an issue with the server. Try // again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/ListHumanLoops func (c *AugmentedAIRuntime) ListHumanLoops(input *ListHumanLoopsInput) (*ListHumanLoopsOutput, error) { req, out := c.ListHumanLoopsRequest(input) return out, req.Send() } // ListHumanLoopsWithContext is the same as ListHumanLoops with the addition of // the ability to pass a context and additional request options. // // See ListHumanLoops for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AugmentedAIRuntime) ListHumanLoopsWithContext(ctx aws.Context, input *ListHumanLoopsInput, opts ...request.Option) (*ListHumanLoopsOutput, error) { req, out := c.ListHumanLoopsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListHumanLoopsPages iterates over the pages of a ListHumanLoops operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListHumanLoops method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListHumanLoops operation. // pageNum := 0 // err := client.ListHumanLoopsPages(params, // func(page *augmentedairuntime.ListHumanLoopsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *AugmentedAIRuntime) ListHumanLoopsPages(input *ListHumanLoopsInput, fn func(*ListHumanLoopsOutput, bool) bool) error { return c.ListHumanLoopsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListHumanLoopsPagesWithContext same as ListHumanLoopsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AugmentedAIRuntime) ListHumanLoopsPagesWithContext(ctx aws.Context, input *ListHumanLoopsInput, fn func(*ListHumanLoopsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListHumanLoopsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListHumanLoopsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListHumanLoopsOutput), !p.HasNextPage()) { break } } return p.Err() } const opStartHumanLoop = "StartHumanLoop" // StartHumanLoopRequest generates a "aws/request.Request" representing the // client's request for the StartHumanLoop operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See StartHumanLoop for more information on using the StartHumanLoop // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the StartHumanLoopRequest method. // req, resp := client.StartHumanLoopRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StartHumanLoop func (c *AugmentedAIRuntime) StartHumanLoopRequest(input *StartHumanLoopInput) (req *request.Request, output *StartHumanLoopOutput) { op := &request.Operation{ Name: opStartHumanLoop, HTTPMethod: "POST", HTTPPath: "/human-loops", } if input == nil { input = &StartHumanLoopInput{} } output = &StartHumanLoopOutput{} req = c.newRequest(op, input, output) return } // StartHumanLoop API operation for Amazon Augmented AI Runtime. // // Starts a human loop, provided that at least one activation condition is met. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Augmented AI Runtime's // API operation StartHumanLoop for usage and error information. // // Returned Error Types: // * ValidationException // The request isn't valid. Check the syntax and try again. // // * ThrottlingException // You exceeded the maximum number of requests. // // * ServiceQuotaExceededException // You exceeded your service quota. Service quotas, also referred to as limits, // are the maximum number of service resources or operations for your AWS account. // For a list of Amazon A2I service quotes, see Amazon Augmented AI Service // Quotes (https://docs.aws.amazon.com/general/latest/gr/a2i.html). Delete some // resources or request an increase in your service quota. You can request a // quota increase using Service Quotas or the AWS Support Center. To request // an increase, see AWS Service Quotas (https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html) // in the AWS General Reference. // // * InternalServerException // We couldn't process your request because of an issue with the server. Try // again later. // // * ConflictException // Your request has the same name as another active human loop but has different // input data. You cannot start two human loops with the same name and different // input data. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StartHumanLoop func (c *AugmentedAIRuntime) StartHumanLoop(input *StartHumanLoopInput) (*StartHumanLoopOutput, error) { req, out := c.StartHumanLoopRequest(input) return out, req.Send() } // StartHumanLoopWithContext is the same as StartHumanLoop with the addition of // the ability to pass a context and additional request options. // // See StartHumanLoop for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AugmentedAIRuntime) StartHumanLoopWithContext(ctx aws.Context, input *StartHumanLoopInput, opts ...request.Option) (*StartHumanLoopOutput, error) { req, out := c.StartHumanLoopRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opStopHumanLoop = "StopHumanLoop" // StopHumanLoopRequest generates a "aws/request.Request" representing the // client's request for the StopHumanLoop operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See StopHumanLoop for more information on using the StopHumanLoop // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the StopHumanLoopRequest method. // req, resp := client.StopHumanLoopRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StopHumanLoop func (c *AugmentedAIRuntime) StopHumanLoopRequest(input *StopHumanLoopInput) (req *request.Request, output *StopHumanLoopOutput) { op := &request.Operation{ Name: opStopHumanLoop, HTTPMethod: "POST", HTTPPath: "/human-loops/stop", } if input == nil { input = &StopHumanLoopInput{} } output = &StopHumanLoopOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // StopHumanLoop API operation for Amazon Augmented AI Runtime. // // Stops the specified human loop. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Augmented AI Runtime's // API operation StopHumanLoop for usage and error information. // // Returned Error Types: // * ValidationException // The request isn't valid. Check the syntax and try again. // // * ResourceNotFoundException // We couldn't find the requested resource. Check that your resources exists // and were created in the same AWS Region as your request, and try your request // again. // // * ThrottlingException // You exceeded the maximum number of requests. // // * InternalServerException // We couldn't process your request because of an issue with the server. Try // again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StopHumanLoop func (c *AugmentedAIRuntime) StopHumanLoop(input *StopHumanLoopInput) (*StopHumanLoopOutput, error) { req, out := c.StopHumanLoopRequest(input) return out, req.Send() } // StopHumanLoopWithContext is the same as StopHumanLoop with the addition of // the ability to pass a context and additional request options. // // See StopHumanLoop for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AugmentedAIRuntime) StopHumanLoopWithContext(ctx aws.Context, input *StopHumanLoopInput, opts ...request.Option) (*StopHumanLoopOutput, error) { req, out := c.StopHumanLoopRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // Your request has the same name as another active human loop but has different // input data. You cannot start two human loops with the same name and different // input data. type ConflictException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s ConflictException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ConflictException) GoString() string { return s.String() } func newErrorConflictException(v protocol.ResponseMetadata) error { return &ConflictException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ConflictException) Code() string { return "ConflictException" } // Message returns the exception's message. func (s *ConflictException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ConflictException) OrigErr() error { return nil } func (s *ConflictException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ConflictException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ConflictException) RequestID() string { return s.RespMetadata.RequestID } type DeleteHumanLoopInput struct { _ struct{} `type:"structure"` // The name of the human loop that you want to delete. // // HumanLoopName is a required field HumanLoopName *string `location:"uri" locationName:"HumanLoopName" min:"1" type:"string" required:"true"` } // String returns the string representation func (s DeleteHumanLoopInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteHumanLoopInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteHumanLoopInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteHumanLoopInput"} if s.HumanLoopName == nil { invalidParams.Add(request.NewErrParamRequired("HumanLoopName")) } if s.HumanLoopName != nil && len(*s.HumanLoopName) < 1 { invalidParams.Add(request.NewErrParamMinLen("HumanLoopName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetHumanLoopName sets the HumanLoopName field's value. func (s *DeleteHumanLoopInput) SetHumanLoopName(v string) *DeleteHumanLoopInput { s.HumanLoopName = &v return s } type DeleteHumanLoopOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteHumanLoopOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteHumanLoopOutput) GoString() string { return s.String() } type DescribeHumanLoopInput struct { _ struct{} `type:"structure"` // The name of the human loop that you want information about. // // HumanLoopName is a required field HumanLoopName *string `location:"uri" locationName:"HumanLoopName" min:"1" type:"string" required:"true"` } // String returns the string representation func (s DescribeHumanLoopInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeHumanLoopInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeHumanLoopInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeHumanLoopInput"} if s.HumanLoopName == nil { invalidParams.Add(request.NewErrParamRequired("HumanLoopName")) } if s.HumanLoopName != nil && len(*s.HumanLoopName) < 1 { invalidParams.Add(request.NewErrParamMinLen("HumanLoopName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetHumanLoopName sets the HumanLoopName field's value. func (s *DescribeHumanLoopInput) SetHumanLoopName(v string) *DescribeHumanLoopInput { s.HumanLoopName = &v return s } type DescribeHumanLoopOutput struct { _ struct{} `type:"structure"` // The creation time when Amazon Augmented AI created the human loop. // // CreationTime is a required field CreationTime *time.Time `type:"timestamp" required:"true"` // A failure code that identifies the type of failure. // // Possible values: ValidationError, Expired, InternalError FailureCode *string `type:"string"` // The reason why a human loop failed. The failure reason is returned when the // status of the human loop is Failed. FailureReason *string `type:"string"` // The Amazon Resource Name (ARN) of the flow definition. // // FlowDefinitionArn is a required field FlowDefinitionArn *string `type:"string" required:"true"` // The Amazon Resource Name (ARN) of the human loop. // // HumanLoopArn is a required field HumanLoopArn *string `type:"string" required:"true"` // The name of the human loop. The name must be lowercase, unique within the // Region in your account, and can have up to 63 characters. Valid characters: // a-z, 0-9, and - (hyphen). // // HumanLoopName is a required field HumanLoopName *string `min:"1" type:"string" required:"true"` // An object that contains information about the output of the human loop. HumanLoopOutput *HumanLoopOutput `type:"structure"` // The status of the human loop. // // HumanLoopStatus is a required field HumanLoopStatus *string `type:"string" required:"true" enum:"HumanLoopStatus"` } // String returns the string representation func (s DescribeHumanLoopOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeHumanLoopOutput) GoString() string { return s.String() } // SetCreationTime sets the CreationTime field's value. func (s *DescribeHumanLoopOutput) SetCreationTime(v time.Time) *DescribeHumanLoopOutput { s.CreationTime = &v return s } // SetFailureCode sets the FailureCode field's value. func (s *DescribeHumanLoopOutput) SetFailureCode(v string) *DescribeHumanLoopOutput { s.FailureCode = &v return s } // SetFailureReason sets the FailureReason field's value. func (s *DescribeHumanLoopOutput) SetFailureReason(v string) *DescribeHumanLoopOutput { s.FailureReason = &v return s } // SetFlowDefinitionArn sets the FlowDefinitionArn field's value. func (s *DescribeHumanLoopOutput) SetFlowDefinitionArn(v string) *DescribeHumanLoopOutput { s.FlowDefinitionArn = &v return s } // SetHumanLoopArn sets the HumanLoopArn field's value. func (s *DescribeHumanLoopOutput) SetHumanLoopArn(v string) *DescribeHumanLoopOutput { s.HumanLoopArn = &v return s } // SetHumanLoopName sets the HumanLoopName field's value. func (s *DescribeHumanLoopOutput) SetHumanLoopName(v string) *DescribeHumanLoopOutput { s.HumanLoopName = &v return s } // SetHumanLoopOutput sets the HumanLoopOutput field's value. func (s *DescribeHumanLoopOutput) SetHumanLoopOutput(v *HumanLoopOutput) *DescribeHumanLoopOutput { s.HumanLoopOutput = v return s } // SetHumanLoopStatus sets the HumanLoopStatus field's value. func (s *DescribeHumanLoopOutput) SetHumanLoopStatus(v string) *DescribeHumanLoopOutput { s.HumanLoopStatus = &v return s } // Attributes of the data specified by the customer. Use these to describe the // data to be labeled. type HumanLoopDataAttributes struct { _ struct{} `type:"structure"` // Declares that your content is free of personally identifiable information // or adult content. // // Amazon SageMaker can restrict the Amazon Mechanical Turk workers who can // view your task based on this information. // // ContentClassifiers is a required field ContentClassifiers []*string `type:"list" required:"true"` } // String returns the string representation func (s HumanLoopDataAttributes) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s HumanLoopDataAttributes) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *HumanLoopDataAttributes) Validate() error { invalidParams := request.ErrInvalidParams{Context: "HumanLoopDataAttributes"} if s.ContentClassifiers == nil { invalidParams.Add(request.NewErrParamRequired("ContentClassifiers")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetContentClassifiers sets the ContentClassifiers field's value. func (s *HumanLoopDataAttributes) SetContentClassifiers(v []*string) *HumanLoopDataAttributes { s.ContentClassifiers = v return s } // An object containing the human loop input in JSON format. type HumanLoopInput struct { _ struct{} `type:"structure"` // Serialized input from the human loop. The input must be a string representation // of a file in JSON format. // // InputContent is a required field InputContent *string `type:"string" required:"true"` } // String returns the string representation func (s HumanLoopInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s HumanLoopInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *HumanLoopInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "HumanLoopInput"} if s.InputContent == nil { invalidParams.Add(request.NewErrParamRequired("InputContent")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetInputContent sets the InputContent field's value. func (s *HumanLoopInput) SetInputContent(v string) *HumanLoopInput { s.InputContent = &v return s } // Information about where the human output will be stored. type HumanLoopOutput struct { _ struct{} `type:"structure"` // The location of the Amazon S3 object where Amazon Augmented AI stores your // human loop output. // // OutputS3Uri is a required field OutputS3Uri *string `type:"string" required:"true"` } // String returns the string representation func (s HumanLoopOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s HumanLoopOutput) GoString() string { return s.String() } // SetOutputS3Uri sets the OutputS3Uri field's value. func (s *HumanLoopOutput) SetOutputS3Uri(v string) *HumanLoopOutput { s.OutputS3Uri = &v return s } // Summary information about the human loop. type HumanLoopSummary struct { _ struct{} `type:"structure"` // When Amazon Augmented AI created the human loop. CreationTime *time.Time `type:"timestamp"` // The reason why the human loop failed. A failure reason is returned when the // status of the human loop is Failed. FailureReason *string `type:"string"` // The Amazon Resource Name (ARN) of the flow definition used to configure the // human loop. FlowDefinitionArn *string `type:"string"` // The name of the human loop. HumanLoopName *string `min:"1" type:"string"` // The status of the human loop. HumanLoopStatus *string `type:"string" enum:"HumanLoopStatus"` } // String returns the string representation func (s HumanLoopSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s HumanLoopSummary) GoString() string { return s.String() } // SetCreationTime sets the CreationTime field's value. func (s *HumanLoopSummary) SetCreationTime(v time.Time) *HumanLoopSummary { s.CreationTime = &v return s } // SetFailureReason sets the FailureReason field's value. func (s *HumanLoopSummary) SetFailureReason(v string) *HumanLoopSummary { s.FailureReason = &v return s } // SetFlowDefinitionArn sets the FlowDefinitionArn field's value. func (s *HumanLoopSummary) SetFlowDefinitionArn(v string) *HumanLoopSummary { s.FlowDefinitionArn = &v return s } // SetHumanLoopName sets the HumanLoopName field's value. func (s *HumanLoopSummary) SetHumanLoopName(v string) *HumanLoopSummary { s.HumanLoopName = &v return s } // SetHumanLoopStatus sets the HumanLoopStatus field's value. func (s *HumanLoopSummary) SetHumanLoopStatus(v string) *HumanLoopSummary { s.HumanLoopStatus = &v return s } // We couldn't process your request because of an issue with the server. Try // again later. type InternalServerException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s InternalServerException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s InternalServerException) GoString() string { return s.String() } func newErrorInternalServerException(v protocol.ResponseMetadata) error { return &InternalServerException{ RespMetadata: v, } } // Code returns the exception type name. func (s *InternalServerException) Code() string { return "InternalServerException" } // Message returns the exception's message. func (s *InternalServerException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *InternalServerException) OrigErr() error { return nil } func (s *InternalServerException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *InternalServerException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *InternalServerException) RequestID() string { return s.RespMetadata.RequestID } type ListHumanLoopsInput struct { _ struct{} `type:"structure"` // (Optional) The timestamp of the date when you want the human loops to begin // in ISO 8601 format. For example, 2020-02-24. CreationTimeAfter *time.Time `location:"querystring" locationName:"CreationTimeAfter" type:"timestamp"` // (Optional) The timestamp of the date before which you want the human loops // to begin in ISO 8601 format. For example, 2020-02-24. CreationTimeBefore *time.Time `location:"querystring" locationName:"CreationTimeBefore" type:"timestamp"` // The Amazon Resource Name (ARN) of a flow definition. // // FlowDefinitionArn is a required field FlowDefinitionArn *string `location:"querystring" locationName:"FlowDefinitionArn" type:"string" required:"true"` // The total number of items to return. If the total number of available items // is more than the value specified in MaxResults, then a NextToken is returned // in the output. You can use this token to display the next page of results. MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"` // A token to display the next page of results. NextToken *string `location:"querystring" locationName:"NextToken" type:"string"` // Optional. The order for displaying results. Valid values: Ascending and Descending. SortOrder *string `location:"querystring" locationName:"SortOrder" type:"string" enum:"SortOrder"` } // String returns the string representation func (s ListHumanLoopsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListHumanLoopsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListHumanLoopsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListHumanLoopsInput"} if s.FlowDefinitionArn == nil { invalidParams.Add(request.NewErrParamRequired("FlowDefinitionArn")) } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCreationTimeAfter sets the CreationTimeAfter field's value. func (s *ListHumanLoopsInput) SetCreationTimeAfter(v time.Time) *ListHumanLoopsInput { s.CreationTimeAfter = &v return s } // SetCreationTimeBefore sets the CreationTimeBefore field's value. func (s *ListHumanLoopsInput) SetCreationTimeBefore(v time.Time) *ListHumanLoopsInput { s.CreationTimeBefore = &v return s } // SetFlowDefinitionArn sets the FlowDefinitionArn field's value. func (s *ListHumanLoopsInput) SetFlowDefinitionArn(v string) *ListHumanLoopsInput { s.FlowDefinitionArn = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListHumanLoopsInput) SetMaxResults(v int64) *ListHumanLoopsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListHumanLoopsInput) SetNextToken(v string) *ListHumanLoopsInput { s.NextToken = &v return s } // SetSortOrder sets the SortOrder field's value. func (s *ListHumanLoopsInput) SetSortOrder(v string) *ListHumanLoopsInput { s.SortOrder = &v return s } type ListHumanLoopsOutput struct { _ struct{} `type:"structure"` // An array of objects that contain information about the human loops. // // HumanLoopSummaries is a required field HumanLoopSummaries []*HumanLoopSummary `type:"list" required:"true"` // A token to display the next page of results. NextToken *string `type:"string"` } // String returns the string representation func (s ListHumanLoopsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListHumanLoopsOutput) GoString() string { return s.String() } // SetHumanLoopSummaries sets the HumanLoopSummaries field's value. func (s *ListHumanLoopsOutput) SetHumanLoopSummaries(v []*HumanLoopSummary) *ListHumanLoopsOutput { s.HumanLoopSummaries = v return s } // SetNextToken sets the NextToken field's value. func (s *ListHumanLoopsOutput) SetNextToken(v string) *ListHumanLoopsOutput { s.NextToken = &v return s } // We couldn't find the requested resource. Check that your resources exists // and were created in the same AWS Region as your request, and try your request // again. type ResourceNotFoundException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s ResourceNotFoundException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ResourceNotFoundException) GoString() string { return s.String() } func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { return &ResourceNotFoundException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ResourceNotFoundException) Code() string { return "ResourceNotFoundException" } // Message returns the exception's message. func (s *ResourceNotFoundException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ResourceNotFoundException) OrigErr() error { return nil } func (s *ResourceNotFoundException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ResourceNotFoundException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ResourceNotFoundException) RequestID() string { return s.RespMetadata.RequestID } // You exceeded your service quota. Service quotas, also referred to as limits, // are the maximum number of service resources or operations for your AWS account. // For a list of Amazon A2I service quotes, see Amazon Augmented AI Service // Quotes (https://docs.aws.amazon.com/general/latest/gr/a2i.html). Delete some // resources or request an increase in your service quota. You can request a // quota increase using Service Quotas or the AWS Support Center. To request // an increase, see AWS Service Quotas (https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html) // in the AWS General Reference. type ServiceQuotaExceededException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s ServiceQuotaExceededException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ServiceQuotaExceededException) GoString() string { return s.String() } func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error { return &ServiceQuotaExceededException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ServiceQuotaExceededException) Code() string { return "ServiceQuotaExceededException" } // Message returns the exception's message. func (s *ServiceQuotaExceededException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ServiceQuotaExceededException) OrigErr() error { return nil } func (s *ServiceQuotaExceededException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ServiceQuotaExceededException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ServiceQuotaExceededException) RequestID() string { return s.RespMetadata.RequestID } type StartHumanLoopInput struct { _ struct{} `type:"structure"` // Attributes of the specified data. Use DataAttributes to specify if your data // is free of personally identifiable information and/or free of adult content. DataAttributes *HumanLoopDataAttributes `type:"structure"` // The Amazon Resource Name (ARN) of the flow definition associated with this // human loop. // // FlowDefinitionArn is a required field FlowDefinitionArn *string `type:"string" required:"true"` // An object that contains information about the human loop. // // HumanLoopInput is a required field HumanLoopInput *HumanLoopInput `type:"structure" required:"true"` // The name of the human loop. // // HumanLoopName is a required field HumanLoopName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s StartHumanLoopInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StartHumanLoopInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *StartHumanLoopInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "StartHumanLoopInput"} if s.FlowDefinitionArn == nil { invalidParams.Add(request.NewErrParamRequired("FlowDefinitionArn")) } if s.HumanLoopInput == nil { invalidParams.Add(request.NewErrParamRequired("HumanLoopInput")) } if s.HumanLoopName == nil { invalidParams.Add(request.NewErrParamRequired("HumanLoopName")) } if s.HumanLoopName != nil && len(*s.HumanLoopName) < 1 { invalidParams.Add(request.NewErrParamMinLen("HumanLoopName", 1)) } if s.DataAttributes != nil { if err := s.DataAttributes.Validate(); err != nil { invalidParams.AddNested("DataAttributes", err.(request.ErrInvalidParams)) } } if s.HumanLoopInput != nil { if err := s.HumanLoopInput.Validate(); err != nil { invalidParams.AddNested("HumanLoopInput", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDataAttributes sets the DataAttributes field's value. func (s *StartHumanLoopInput) SetDataAttributes(v *HumanLoopDataAttributes) *StartHumanLoopInput { s.DataAttributes = v return s } // SetFlowDefinitionArn sets the FlowDefinitionArn field's value. func (s *StartHumanLoopInput) SetFlowDefinitionArn(v string) *StartHumanLoopInput { s.FlowDefinitionArn = &v return s } // SetHumanLoopInput sets the HumanLoopInput field's value. func (s *StartHumanLoopInput) SetHumanLoopInput(v *HumanLoopInput) *StartHumanLoopInput { s.HumanLoopInput = v return s } // SetHumanLoopName sets the HumanLoopName field's value. func (s *StartHumanLoopInput) SetHumanLoopName(v string) *StartHumanLoopInput { s.HumanLoopName = &v return s } type StartHumanLoopOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the human loop. HumanLoopArn *string `type:"string"` } // String returns the string representation func (s StartHumanLoopOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StartHumanLoopOutput) GoString() string { return s.String() } // SetHumanLoopArn sets the HumanLoopArn field's value. func (s *StartHumanLoopOutput) SetHumanLoopArn(v string) *StartHumanLoopOutput { s.HumanLoopArn = &v return s } type StopHumanLoopInput struct { _ struct{} `type:"structure"` // The name of the human loop that you want to stop. // // HumanLoopName is a required field HumanLoopName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s StopHumanLoopInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StopHumanLoopInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *StopHumanLoopInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "StopHumanLoopInput"} if s.HumanLoopName == nil { invalidParams.Add(request.NewErrParamRequired("HumanLoopName")) } if s.HumanLoopName != nil && len(*s.HumanLoopName) < 1 { invalidParams.Add(request.NewErrParamMinLen("HumanLoopName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetHumanLoopName sets the HumanLoopName field's value. func (s *StopHumanLoopInput) SetHumanLoopName(v string) *StopHumanLoopInput { s.HumanLoopName = &v return s } type StopHumanLoopOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s StopHumanLoopOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StopHumanLoopOutput) GoString() string { return s.String() } // You exceeded the maximum number of requests. type ThrottlingException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s ThrottlingException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ThrottlingException) GoString() string { return s.String() } func newErrorThrottlingException(v protocol.ResponseMetadata) error { return &ThrottlingException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ThrottlingException) Code() string { return "ThrottlingException" } // Message returns the exception's message. func (s *ThrottlingException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ThrottlingException) OrigErr() error { return nil } func (s *ThrottlingException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ThrottlingException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ThrottlingException) RequestID() string { return s.RespMetadata.RequestID } // The request isn't valid. Check the syntax and try again. type ValidationException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s ValidationException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ValidationException) GoString() string { return s.String() } func newErrorValidationException(v protocol.ResponseMetadata) error { return &ValidationException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ValidationException) Code() string { return "ValidationException" } // Message returns the exception's message. func (s *ValidationException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ValidationException) OrigErr() error { return nil } func (s *ValidationException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ValidationException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ValidationException) RequestID() string { return s.RespMetadata.RequestID } const ( // ContentClassifierFreeOfPersonallyIdentifiableInformation is a ContentClassifier enum value ContentClassifierFreeOfPersonallyIdentifiableInformation = "FreeOfPersonallyIdentifiableInformation" // ContentClassifierFreeOfAdultContent is a ContentClassifier enum value ContentClassifierFreeOfAdultContent = "FreeOfAdultContent" ) // ContentClassifier_Values returns all elements of the ContentClassifier enum func ContentClassifier_Values() []string { return []string{ ContentClassifierFreeOfPersonallyIdentifiableInformation, ContentClassifierFreeOfAdultContent, } } const ( // HumanLoopStatusInProgress is a HumanLoopStatus enum value HumanLoopStatusInProgress = "InProgress" // HumanLoopStatusFailed is a HumanLoopStatus enum value HumanLoopStatusFailed = "Failed" // HumanLoopStatusCompleted is a HumanLoopStatus enum value HumanLoopStatusCompleted = "Completed" // HumanLoopStatusStopped is a HumanLoopStatus enum value HumanLoopStatusStopped = "Stopped" // HumanLoopStatusStopping is a HumanLoopStatus enum value HumanLoopStatusStopping = "Stopping" ) // HumanLoopStatus_Values returns all elements of the HumanLoopStatus enum func HumanLoopStatus_Values() []string { return []string{ HumanLoopStatusInProgress, HumanLoopStatusFailed, HumanLoopStatusCompleted, HumanLoopStatusStopped, HumanLoopStatusStopping, } } const ( // SortOrderAscending is a SortOrder enum value SortOrderAscending = "Ascending" // SortOrderDescending is a SortOrder enum value SortOrderDescending = "Descending" ) // SortOrder_Values returns all elements of the SortOrder enum func SortOrder_Values() []string { return []string{ SortOrderAscending, SortOrderDescending, } }
1,614
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package augmentedairuntime provides the client and types for making API // requests to Amazon Augmented AI Runtime. // // Amazon Augmented AI (Amazon A2I) adds the benefit of human judgment to any // machine learning application. When an AI application can't evaluate data // with a high degree of confidence, human reviewers can take over. This human // review is called a human review workflow. To create and start a human review // workflow, you need three resources: a worker task template, a flow definition, // and a human loop. // // For information about these resources and prerequisites for using Amazon // A2I, see Get Started with Amazon Augmented AI (https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-getting-started.html) // in the Amazon SageMaker Developer Guide. // // This API reference includes information about API actions and data types // that you can use to interact with Amazon A2I programmatically. Use this guide // to: // // * Start a human loop with the StartHumanLoop operation when using Amazon // A2I with a custom task type. To learn more about the difference between // custom and built-in task types, see Use Task Types (https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-task-types-general.html). // To learn how to start a human loop using this API, see Create and Start // a Human Loop for a Custom Task Type (https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-start-human-loop.html#a2i-instructions-starthumanloop) // in the Amazon SageMaker Developer Guide. // // * Manage your human loops. You can list all human loops that you have // created, describe individual human loops, and stop and delete human loops. // To learn more, see Monitor and Manage Your Human Loop (https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-monitor-humanloop-results.html) // in the Amazon SageMaker Developer Guide. // // Amazon A2I integrates APIs from various AWS services to create and start // human review workflows for those services. To learn how Amazon A2I uses these // APIs, see Use APIs in Amazon A2I (https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-api-references.html) // in the Amazon SageMaker Developer Guide. // // See https://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07 for more information on this service. // // See augmentedairuntime package documentation for more information. // https://docs.aws.amazon.com/sdk-for-go/api/service/augmentedairuntime/ // // Using the Client // // To contact Amazon Augmented AI Runtime 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 Amazon Augmented AI Runtime client AugmentedAIRuntime for more // information on creating client for this service. // https://docs.aws.amazon.com/sdk-for-go/api/service/augmentedairuntime/#New package augmentedairuntime
59
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package augmentedairuntime import ( "github.com/aws/aws-sdk-go/private/protocol" ) const ( // ErrCodeConflictException for service response error code // "ConflictException". // // Your request has the same name as another active human loop but has different // input data. You cannot start two human loops with the same name and different // input data. ErrCodeConflictException = "ConflictException" // ErrCodeInternalServerException for service response error code // "InternalServerException". // // We couldn't process your request because of an issue with the server. Try // again later. ErrCodeInternalServerException = "InternalServerException" // ErrCodeResourceNotFoundException for service response error code // "ResourceNotFoundException". // // We couldn't find the requested resource. Check that your resources exists // and were created in the same AWS Region as your request, and try your request // again. ErrCodeResourceNotFoundException = "ResourceNotFoundException" // ErrCodeServiceQuotaExceededException for service response error code // "ServiceQuotaExceededException". // // You exceeded your service quota. Service quotas, also referred to as limits, // are the maximum number of service resources or operations for your AWS account. // For a list of Amazon A2I service quotes, see Amazon Augmented AI Service // Quotes (https://docs.aws.amazon.com/general/latest/gr/a2i.html). Delete some // resources or request an increase in your service quota. You can request a // quota increase using Service Quotas or the AWS Support Center. To request // an increase, see AWS Service Quotas (https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html) // in the AWS General Reference. ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException" // ErrCodeThrottlingException for service response error code // "ThrottlingException". // // You exceeded the maximum number of requests. ErrCodeThrottlingException = "ThrottlingException" // ErrCodeValidationException for service response error code // "ValidationException". // // The request isn't valid. Check the syntax and try again. ErrCodeValidationException = "ValidationException" ) var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "ConflictException": newErrorConflictException, "InternalServerException": newErrorInternalServerException, "ResourceNotFoundException": newErrorResourceNotFoundException, "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, "ThrottlingException": newErrorThrottlingException, "ValidationException": newErrorValidationException, }
68
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package augmentedairuntime 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" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) // AugmentedAIRuntime provides the API operation methods for making requests to // Amazon Augmented AI Runtime. See this package's package overview docs // for details on the service. // // AugmentedAIRuntime methods are safe to use concurrently. It is not safe to // modify mutate any of the struct's properties though. type AugmentedAIRuntime 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 = "SageMaker A2I Runtime" // Name of service. EndpointsID = "a2i-runtime.sagemaker" // ID to lookup a service endpoint with. ServiceID = "SageMaker A2I Runtime" // ServiceID is a unique identifier of a specific service. ) // New creates a new instance of the AugmentedAIRuntime 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: // mySession := session.Must(session.NewSession()) // // // Create a AugmentedAIRuntime client from just a session. // svc := augmentedairuntime.New(mySession) // // // Create a AugmentedAIRuntime client with additional configuration // svc := augmentedairuntime.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *AugmentedAIRuntime { c := p.ClientConfig(EndpointsID, cfgs...) if c.SigningNameDerived || len(c.SigningName) == 0 { c.SigningName = "sagemaker" } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *AugmentedAIRuntime { svc := &AugmentedAIRuntime{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, ServiceID: ServiceID, SigningName: signingName, SigningRegion: signingRegion, PartitionID: partitionID, Endpoint: endpoint, APIVersion: "2019-11-07", }, 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( protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), ) // Run custom client initialization if present if initClient != nil { initClient(svc.Client) } return svc } // newRequest creates a new request for a AugmentedAIRuntime operation and runs any // custom request initialization. func (c *AugmentedAIRuntime) 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 }
105
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package augmentedairuntimeiface provides an interface to enable mocking the Amazon Augmented AI Runtime 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 augmentedairuntimeiface import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/service/augmentedairuntime" ) // AugmentedAIRuntimeAPI provides an interface to enable mocking the // augmentedairuntime.AugmentedAIRuntime 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 // // Amazon Augmented AI Runtime. // func myFunc(svc augmentedairuntimeiface.AugmentedAIRuntimeAPI) bool { // // Make svc.DeleteHumanLoop request // } // // func main() { // sess := session.New() // svc := augmentedairuntime.New(sess) // // myFunc(svc) // } // // In your _test.go file: // // // Define a mock struct to be used in your unit tests of myFunc. // type mockAugmentedAIRuntimeClient struct { // augmentedairuntimeiface.AugmentedAIRuntimeAPI // } // func (m *mockAugmentedAIRuntimeClient) DeleteHumanLoop(input *augmentedairuntime.DeleteHumanLoopInput) (*augmentedairuntime.DeleteHumanLoopOutput, error) { // // mock response/functionality // } // // func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockAugmentedAIRuntimeClient{} // // 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 AugmentedAIRuntimeAPI interface { DeleteHumanLoop(*augmentedairuntime.DeleteHumanLoopInput) (*augmentedairuntime.DeleteHumanLoopOutput, error) DeleteHumanLoopWithContext(aws.Context, *augmentedairuntime.DeleteHumanLoopInput, ...request.Option) (*augmentedairuntime.DeleteHumanLoopOutput, error) DeleteHumanLoopRequest(*augmentedairuntime.DeleteHumanLoopInput) (*request.Request, *augmentedairuntime.DeleteHumanLoopOutput) DescribeHumanLoop(*augmentedairuntime.DescribeHumanLoopInput) (*augmentedairuntime.DescribeHumanLoopOutput, error) DescribeHumanLoopWithContext(aws.Context, *augmentedairuntime.DescribeHumanLoopInput, ...request.Option) (*augmentedairuntime.DescribeHumanLoopOutput, error) DescribeHumanLoopRequest(*augmentedairuntime.DescribeHumanLoopInput) (*request.Request, *augmentedairuntime.DescribeHumanLoopOutput) ListHumanLoops(*augmentedairuntime.ListHumanLoopsInput) (*augmentedairuntime.ListHumanLoopsOutput, error) ListHumanLoopsWithContext(aws.Context, *augmentedairuntime.ListHumanLoopsInput, ...request.Option) (*augmentedairuntime.ListHumanLoopsOutput, error) ListHumanLoopsRequest(*augmentedairuntime.ListHumanLoopsInput) (*request.Request, *augmentedairuntime.ListHumanLoopsOutput) ListHumanLoopsPages(*augmentedairuntime.ListHumanLoopsInput, func(*augmentedairuntime.ListHumanLoopsOutput, bool) bool) error ListHumanLoopsPagesWithContext(aws.Context, *augmentedairuntime.ListHumanLoopsInput, func(*augmentedairuntime.ListHumanLoopsOutput, bool) bool, ...request.Option) error StartHumanLoop(*augmentedairuntime.StartHumanLoopInput) (*augmentedairuntime.StartHumanLoopOutput, error) StartHumanLoopWithContext(aws.Context, *augmentedairuntime.StartHumanLoopInput, ...request.Option) (*augmentedairuntime.StartHumanLoopOutput, error) StartHumanLoopRequest(*augmentedairuntime.StartHumanLoopInput) (*request.Request, *augmentedairuntime.StartHumanLoopOutput) StopHumanLoop(*augmentedairuntime.StopHumanLoopInput) (*augmentedairuntime.StopHumanLoopOutput, error) StopHumanLoopWithContext(aws.Context, *augmentedairuntime.StopHumanLoopInput, ...request.Option) (*augmentedairuntime.StopHumanLoopOutput, error) StopHumanLoopRequest(*augmentedairuntime.StopHumanLoopInput) (*request.Request, *augmentedairuntime.StopHumanLoopOutput) } var _ AugmentedAIRuntimeAPI = (*augmentedairuntime.AugmentedAIRuntime)(nil)
88
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package autoscaling provides the client and types for making API // requests to Auto Scaling. // // Amazon EC2 Auto Scaling is designed to automatically launch or terminate // EC2 instances based on user-defined scaling policies, scheduled actions, // and health checks. // // For more information about Amazon EC2 Auto Scaling, see the Amazon EC2 Auto // Scaling User Guide (https://docs.aws.amazon.com/autoscaling/ec2/userguide/what-is-amazon-ec2-auto-scaling.html). // For information about granting IAM users required permissions for calls to // Amazon EC2 Auto Scaling, see Granting IAM users required permissions for // Amazon EC2 Auto Scaling resources (https://docs.aws.amazon.com/autoscaling/ec2/APIReference/ec2-auto-scaling-api-permissions.html) // in the Amazon EC2 Auto Scaling API Reference. // // See https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01 for more information on this service. // // See autoscaling package documentation for more information. // https://docs.aws.amazon.com/sdk-for-go/api/service/autoscaling/ // // Using the Client // // To contact Auto Scaling 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 Auto Scaling client AutoScaling for more // information on creating client for this service. // https://docs.aws.amazon.com/sdk-for-go/api/service/autoscaling/#New package autoscaling
38
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package autoscaling const ( // ErrCodeActiveInstanceRefreshNotFoundFault for service response error code // "ActiveInstanceRefreshNotFound". // // The request failed because an active instance refresh for the specified Auto // Scaling group was not found. ErrCodeActiveInstanceRefreshNotFoundFault = "ActiveInstanceRefreshNotFound" // ErrCodeAlreadyExistsFault for service response error code // "AlreadyExists". // // You already have an Auto Scaling group or launch configuration with this // name. ErrCodeAlreadyExistsFault = "AlreadyExists" // ErrCodeInstanceRefreshInProgressFault for service response error code // "InstanceRefreshInProgress". // // The request failed because an active instance refresh operation already exists // for the specified Auto Scaling group. ErrCodeInstanceRefreshInProgressFault = "InstanceRefreshInProgress" // ErrCodeInvalidNextToken for service response error code // "InvalidNextToken". // // The NextToken value is not valid. ErrCodeInvalidNextToken = "InvalidNextToken" // ErrCodeLimitExceededFault for service response error code // "LimitExceeded". // // You have already reached a limit for your Amazon EC2 Auto Scaling resources // (for example, Auto Scaling groups, launch configurations, or lifecycle hooks). // For more information, see DescribeAccountLimits (https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html) // in the Amazon EC2 Auto Scaling API Reference. ErrCodeLimitExceededFault = "LimitExceeded" // ErrCodeResourceContentionFault for service response error code // "ResourceContention". // // You already have a pending update to an Amazon EC2 Auto Scaling resource // (for example, an Auto Scaling group, instance, or load balancer). ErrCodeResourceContentionFault = "ResourceContention" // ErrCodeResourceInUseFault for service response error code // "ResourceInUse". // // The operation can't be performed because the resource is in use. ErrCodeResourceInUseFault = "ResourceInUse" // ErrCodeScalingActivityInProgressFault for service response error code // "ScalingActivityInProgress". // // The operation can't be performed because there are scaling activities in // progress. ErrCodeScalingActivityInProgressFault = "ScalingActivityInProgress" // ErrCodeServiceLinkedRoleFailure for service response error code // "ServiceLinkedRoleFailure". // // The service-linked role is not yet ready for use. ErrCodeServiceLinkedRoleFailure = "ServiceLinkedRoleFailure" )
69
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package autoscaling_test import ( "fmt" "strings" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/autoscaling" ) var _ time.Duration var _ strings.Reader var _ aws.Config func parseTime(layout, value string) *time.Time { t, err := time.Parse(layout, value) if err != nil { panic(err) } return &t } // To attach an instance to an Auto Scaling group // // This example attaches the specified instance to the specified Auto Scaling group. func ExampleAutoScaling_AttachInstances_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.AttachInstancesInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), InstanceIds: []*string{ aws.String("i-93633f9b"), }, } result, err := svc.AttachInstances(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) case autoscaling.ErrCodeServiceLinkedRoleFailure: fmt.Println(autoscaling.ErrCodeServiceLinkedRoleFailure, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To attach a target group to an Auto Scaling group // // This example attaches the specified target group to the specified Auto Scaling group. func ExampleAutoScaling_AttachLoadBalancerTargetGroups_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.AttachLoadBalancerTargetGroupsInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), TargetGroupARNs: []*string{ aws.String("arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067"), }, } result, err := svc.AttachLoadBalancerTargetGroups(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) case autoscaling.ErrCodeServiceLinkedRoleFailure: fmt.Println(autoscaling.ErrCodeServiceLinkedRoleFailure, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To attach a load balancer to an Auto Scaling group // // This example attaches the specified load balancer to the specified Auto Scaling group. func ExampleAutoScaling_AttachLoadBalancers_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.AttachLoadBalancersInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), LoadBalancerNames: []*string{ aws.String("my-load-balancer"), }, } result, err := svc.AttachLoadBalancers(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) case autoscaling.ErrCodeServiceLinkedRoleFailure: fmt.Println(autoscaling.ErrCodeServiceLinkedRoleFailure, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To cancel an instance refresh // // This example cancels an instance refresh operation in progress. func ExampleAutoScaling_CancelInstanceRefresh_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.CancelInstanceRefreshInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), } result, err := svc.CancelInstanceRefresh(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeLimitExceededFault: fmt.Println(autoscaling.ErrCodeLimitExceededFault, aerr.Error()) case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) case autoscaling.ErrCodeActiveInstanceRefreshNotFoundFault: fmt.Println(autoscaling.ErrCodeActiveInstanceRefreshNotFoundFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To complete the lifecycle action // // This example notifies Auto Scaling that the specified lifecycle action is complete // so that it can finish launching or terminating the instance. func ExampleAutoScaling_CompleteLifecycleAction_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.CompleteLifecycleActionInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), LifecycleActionResult: aws.String("CONTINUE"), LifecycleActionToken: aws.String("bcd2f1b8-9a78-44d3-8a7a-4dd07d7cf635"), LifecycleHookName: aws.String("my-lifecycle-hook"), } result, err := svc.CompleteLifecycleAction(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To create an Auto Scaling group // // This example creates an Auto Scaling group. func ExampleAutoScaling_CreateAutoScalingGroup_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.CreateAutoScalingGroupInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), LaunchTemplate: &autoscaling.LaunchTemplateSpecification{ LaunchTemplateId: aws.String("lt-0a20c965061f64abc"), Version: aws.String("$Latest"), }, MaxInstanceLifetime: aws.Int64(2592000), MaxSize: aws.Int64(3), MinSize: aws.Int64(1), VPCZoneIdentifier: aws.String("subnet-057fa0918fEXAMPLE"), } result, err := svc.CreateAutoScalingGroup(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeAlreadyExistsFault: fmt.Println(autoscaling.ErrCodeAlreadyExistsFault, aerr.Error()) case autoscaling.ErrCodeLimitExceededFault: fmt.Println(autoscaling.ErrCodeLimitExceededFault, aerr.Error()) case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) case autoscaling.ErrCodeServiceLinkedRoleFailure: fmt.Println(autoscaling.ErrCodeServiceLinkedRoleFailure, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To create an Auto Scaling group with an attached target group // // This example creates an Auto Scaling group and attaches the specified target group. func ExampleAutoScaling_CreateAutoScalingGroup_shared01() { svc := autoscaling.New(session.New()) input := &autoscaling.CreateAutoScalingGroupInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), HealthCheckGracePeriod: aws.Int64(300), HealthCheckType: aws.String("ELB"), LaunchTemplate: &autoscaling.LaunchTemplateSpecification{ LaunchTemplateId: aws.String("lt-0a20c965061f64abc"), Version: aws.String("$Default"), }, MaxSize: aws.Int64(3), MinSize: aws.Int64(1), TargetGroupARNs: []*string{ aws.String("arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067"), }, VPCZoneIdentifier: aws.String("subnet-057fa0918fEXAMPLE, subnet-610acd08EXAMPLE"), } result, err := svc.CreateAutoScalingGroup(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeAlreadyExistsFault: fmt.Println(autoscaling.ErrCodeAlreadyExistsFault, aerr.Error()) case autoscaling.ErrCodeLimitExceededFault: fmt.Println(autoscaling.ErrCodeLimitExceededFault, aerr.Error()) case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) case autoscaling.ErrCodeServiceLinkedRoleFailure: fmt.Println(autoscaling.ErrCodeServiceLinkedRoleFailure, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To create an Auto Scaling group with a mixed instances policy // // This example creates an Auto Scaling group with a mixed instances policy. It specifies // the c5.large, c5a.large, and c6g.large instance types and defines a different launch // template for the c6g.large instance type. func ExampleAutoScaling_CreateAutoScalingGroup_shared02() { svc := autoscaling.New(session.New()) input := &autoscaling.CreateAutoScalingGroupInput{ AutoScalingGroupName: aws.String("my-asg"), DesiredCapacity: aws.Int64(3), MaxSize: aws.Int64(5), MinSize: aws.Int64(1), MixedInstancesPolicy: &autoscaling.MixedInstancesPolicy{ InstancesDistribution: &autoscaling.InstancesDistribution{ OnDemandBaseCapacity: aws.Int64(1), OnDemandPercentageAboveBaseCapacity: aws.Int64(50), SpotAllocationStrategy: aws.String("capacity-optimized"), }, LaunchTemplate: &autoscaling.LaunchTemplate{ LaunchTemplateSpecification: &autoscaling.LaunchTemplateSpecification{ LaunchTemplateName: aws.String("my-launch-template-for-x86"), Version: aws.String("$Latest"), }, Overrides: []*autoscaling.LaunchTemplateOverrides{ { InstanceType: aws.String("c6g.large"), LaunchTemplateSpecification: &autoscaling.LaunchTemplateSpecification{ LaunchTemplateName: aws.String("my-launch-template-for-arm"), Version: aws.String("$Latest"), }, }, { InstanceType: aws.String("c5.large"), }, { InstanceType: aws.String("c5a.large"), }, }, }, }, VPCZoneIdentifier: aws.String("subnet-057fa0918fEXAMPLE, subnet-610acd08EXAMPLE"), } result, err := svc.CreateAutoScalingGroup(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeAlreadyExistsFault: fmt.Println(autoscaling.ErrCodeAlreadyExistsFault, aerr.Error()) case autoscaling.ErrCodeLimitExceededFault: fmt.Println(autoscaling.ErrCodeLimitExceededFault, aerr.Error()) case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) case autoscaling.ErrCodeServiceLinkedRoleFailure: fmt.Println(autoscaling.ErrCodeServiceLinkedRoleFailure, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To create a launch configuration // // This example creates a launch configuration. func ExampleAutoScaling_CreateLaunchConfiguration_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.CreateLaunchConfigurationInput{ IamInstanceProfile: aws.String("my-iam-role"), ImageId: aws.String("ami-12345678"), InstanceType: aws.String("m3.medium"), LaunchConfigurationName: aws.String("my-launch-config"), SecurityGroups: []*string{ aws.String("sg-eb2af88e"), }, } result, err := svc.CreateLaunchConfiguration(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeAlreadyExistsFault: fmt.Println(autoscaling.ErrCodeAlreadyExistsFault, aerr.Error()) case autoscaling.ErrCodeLimitExceededFault: fmt.Println(autoscaling.ErrCodeLimitExceededFault, aerr.Error()) case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To create or update tags for an Auto Scaling group // // This example adds two tags to the specified Auto Scaling group. func ExampleAutoScaling_CreateOrUpdateTags_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.CreateOrUpdateTagsInput{ Tags: []*autoscaling.Tag{ { Key: aws.String("Role"), PropagateAtLaunch: aws.Bool(true), ResourceId: aws.String("my-auto-scaling-group"), ResourceType: aws.String("auto-scaling-group"), Value: aws.String("WebServer"), }, { Key: aws.String("Dept"), PropagateAtLaunch: aws.Bool(true), ResourceId: aws.String("my-auto-scaling-group"), ResourceType: aws.String("auto-scaling-group"), Value: aws.String("Research"), }, }, } result, err := svc.CreateOrUpdateTags(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeLimitExceededFault: fmt.Println(autoscaling.ErrCodeLimitExceededFault, aerr.Error()) case autoscaling.ErrCodeAlreadyExistsFault: fmt.Println(autoscaling.ErrCodeAlreadyExistsFault, aerr.Error()) case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) case autoscaling.ErrCodeResourceInUseFault: fmt.Println(autoscaling.ErrCodeResourceInUseFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To delete an Auto Scaling group // // This example deletes the specified Auto Scaling group. func ExampleAutoScaling_DeleteAutoScalingGroup_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.DeleteAutoScalingGroupInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), } result, err := svc.DeleteAutoScalingGroup(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeScalingActivityInProgressFault: fmt.Println(autoscaling.ErrCodeScalingActivityInProgressFault, aerr.Error()) case autoscaling.ErrCodeResourceInUseFault: fmt.Println(autoscaling.ErrCodeResourceInUseFault, aerr.Error()) case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To delete an Auto Scaling group and all its instances // // This example deletes the specified Auto Scaling group and all its instances. func ExampleAutoScaling_DeleteAutoScalingGroup_shared01() { svc := autoscaling.New(session.New()) input := &autoscaling.DeleteAutoScalingGroupInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), ForceDelete: aws.Bool(true), } result, err := svc.DeleteAutoScalingGroup(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeScalingActivityInProgressFault: fmt.Println(autoscaling.ErrCodeScalingActivityInProgressFault, aerr.Error()) case autoscaling.ErrCodeResourceInUseFault: fmt.Println(autoscaling.ErrCodeResourceInUseFault, aerr.Error()) case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To delete a launch configuration // // This example deletes the specified launch configuration. func ExampleAutoScaling_DeleteLaunchConfiguration_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.DeleteLaunchConfigurationInput{ LaunchConfigurationName: aws.String("my-launch-config"), } result, err := svc.DeleteLaunchConfiguration(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeResourceInUseFault: fmt.Println(autoscaling.ErrCodeResourceInUseFault, aerr.Error()) case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To delete a lifecycle hook // // This example deletes the specified lifecycle hook. func ExampleAutoScaling_DeleteLifecycleHook_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.DeleteLifecycleHookInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), LifecycleHookName: aws.String("my-lifecycle-hook"), } result, err := svc.DeleteLifecycleHook(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To delete an Auto Scaling notification // // This example deletes the specified notification from the specified Auto Scaling group. func ExampleAutoScaling_DeleteNotificationConfiguration_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.DeleteNotificationConfigurationInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), TopicARN: aws.String("arn:aws:sns:us-west-2:123456789012:my-sns-topic"), } result, err := svc.DeleteNotificationConfiguration(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To delete an Auto Scaling policy // // This example deletes the specified Auto Scaling policy. func ExampleAutoScaling_DeletePolicy_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.DeletePolicyInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), PolicyName: aws.String("my-step-scale-out-policy"), } result, err := svc.DeletePolicy(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) case autoscaling.ErrCodeServiceLinkedRoleFailure: fmt.Println(autoscaling.ErrCodeServiceLinkedRoleFailure, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To delete a scheduled action from an Auto Scaling group // // This example deletes the specified scheduled action from the specified Auto Scaling // group. func ExampleAutoScaling_DeleteScheduledAction_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.DeleteScheduledActionInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), ScheduledActionName: aws.String("my-scheduled-action"), } result, err := svc.DeleteScheduledAction(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To delete a tag from an Auto Scaling group // // This example deletes the specified tag from the specified Auto Scaling group. func ExampleAutoScaling_DeleteTags_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.DeleteTagsInput{ Tags: []*autoscaling.Tag{ { Key: aws.String("Dept"), ResourceId: aws.String("my-auto-scaling-group"), ResourceType: aws.String("auto-scaling-group"), Value: aws.String("Research"), }, }, } result, err := svc.DeleteTags(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) case autoscaling.ErrCodeResourceInUseFault: fmt.Println(autoscaling.ErrCodeResourceInUseFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To describe your Auto Scaling account limits // // This example describes the Amazon EC2 Auto Scaling service quotas for your account. func ExampleAutoScaling_DescribeAccountLimits_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.DescribeAccountLimitsInput{} result, err := svc.DescribeAccountLimits(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To describe the Amazon EC2 Auto Scaling adjustment types // // This example describes the available adjustment types. func ExampleAutoScaling_DescribeAdjustmentTypes_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.DescribeAdjustmentTypesInput{} result, err := svc.DescribeAdjustmentTypes(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To describe an Auto Scaling group // // This example describes the specified Auto Scaling group. func ExampleAutoScaling_DescribeAutoScalingGroups_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.DescribeAutoScalingGroupsInput{ AutoScalingGroupNames: []*string{ aws.String("my-auto-scaling-group"), }, } result, err := svc.DescribeAutoScalingGroups(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeInvalidNextToken: fmt.Println(autoscaling.ErrCodeInvalidNextToken, aerr.Error()) case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To describe one or more Auto Scaling instances // // This example describes the specified Auto Scaling instance. func ExampleAutoScaling_DescribeAutoScalingInstances_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.DescribeAutoScalingInstancesInput{ InstanceIds: []*string{ aws.String("i-4ba0837f"), }, } result, err := svc.DescribeAutoScalingInstances(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeInvalidNextToken: fmt.Println(autoscaling.ErrCodeInvalidNextToken, aerr.Error()) case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To describe the Auto Scaling notification types // // This example describes the available notification types. func ExampleAutoScaling_DescribeAutoScalingNotificationTypes_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.DescribeAutoScalingNotificationTypesInput{} result, err := svc.DescribeAutoScalingNotificationTypes(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To list instance refreshes // // This example describes the instance refreshes for the specified Auto Scaling group. func ExampleAutoScaling_DescribeInstanceRefreshes_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.DescribeInstanceRefreshesInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), } result, err := svc.DescribeInstanceRefreshes(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeInvalidNextToken: fmt.Println(autoscaling.ErrCodeInvalidNextToken, aerr.Error()) case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To describe Auto Scaling launch configurations // // This example describes the specified launch configuration. func ExampleAutoScaling_DescribeLaunchConfigurations_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.DescribeLaunchConfigurationsInput{ LaunchConfigurationNames: []*string{ aws.String("my-launch-config"), }, } result, err := svc.DescribeLaunchConfigurations(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeInvalidNextToken: fmt.Println(autoscaling.ErrCodeInvalidNextToken, aerr.Error()) case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To describe the available types of lifecycle hooks // // This example describes the available lifecycle hook types. func ExampleAutoScaling_DescribeLifecycleHookTypes_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.DescribeLifecycleHookTypesInput{} result, err := svc.DescribeLifecycleHookTypes(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To describe your lifecycle hooks // // This example describes the lifecycle hooks for the specified Auto Scaling group. func ExampleAutoScaling_DescribeLifecycleHooks_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.DescribeLifecycleHooksInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), } result, err := svc.DescribeLifecycleHooks(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To describe the target groups for an Auto Scaling group // // This example describes the target groups attached to the specified Auto Scaling group. func ExampleAutoScaling_DescribeLoadBalancerTargetGroups_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.DescribeLoadBalancerTargetGroupsInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), } result, err := svc.DescribeLoadBalancerTargetGroups(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To describe the load balancers for an Auto Scaling group // // This example describes the load balancers attached to the specified Auto Scaling // group. func ExampleAutoScaling_DescribeLoadBalancers_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.DescribeLoadBalancersInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), } result, err := svc.DescribeLoadBalancers(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To describe the Auto Scaling metric collection types // // This example describes the available metric collection types. func ExampleAutoScaling_DescribeMetricCollectionTypes_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.DescribeMetricCollectionTypesInput{} result, err := svc.DescribeMetricCollectionTypes(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To describe Auto Scaling notification configurations // // This example describes the notification configurations for the specified Auto Scaling // group. func ExampleAutoScaling_DescribeNotificationConfigurations_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.DescribeNotificationConfigurationsInput{ AutoScalingGroupNames: []*string{ aws.String("my-auto-scaling-group"), }, } result, err := svc.DescribeNotificationConfigurations(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeInvalidNextToken: fmt.Println(autoscaling.ErrCodeInvalidNextToken, aerr.Error()) case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To describe scaling policies // // This example describes the policies for the specified Auto Scaling group. func ExampleAutoScaling_DescribePolicies_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.DescribePoliciesInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), } result, err := svc.DescribePolicies(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeInvalidNextToken: fmt.Println(autoscaling.ErrCodeInvalidNextToken, aerr.Error()) case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) case autoscaling.ErrCodeServiceLinkedRoleFailure: fmt.Println(autoscaling.ErrCodeServiceLinkedRoleFailure, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To describe the scaling activities for an Auto Scaling group // // This example describes the scaling activities for the specified Auto Scaling group. func ExampleAutoScaling_DescribeScalingActivities_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.DescribeScalingActivitiesInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), } result, err := svc.DescribeScalingActivities(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeInvalidNextToken: fmt.Println(autoscaling.ErrCodeInvalidNextToken, aerr.Error()) case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To describe the Auto Scaling process types // // This example describes the Auto Scaling process types. func ExampleAutoScaling_DescribeScalingProcessTypes_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.DescribeScalingProcessTypesInput{} result, err := svc.DescribeScalingProcessTypes(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To describe scheduled actions // // This example describes the scheduled actions for the specified Auto Scaling group. func ExampleAutoScaling_DescribeScheduledActions_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.DescribeScheduledActionsInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), } result, err := svc.DescribeScheduledActions(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeInvalidNextToken: fmt.Println(autoscaling.ErrCodeInvalidNextToken, aerr.Error()) case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To describe tags // // This example describes the tags for the specified Auto Scaling group. func ExampleAutoScaling_DescribeTags_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.DescribeTagsInput{ Filters: []*autoscaling.Filter{ { Name: aws.String("auto-scaling-group"), Values: []*string{ aws.String("my-auto-scaling-group"), }, }, }, } result, err := svc.DescribeTags(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeInvalidNextToken: fmt.Println(autoscaling.ErrCodeInvalidNextToken, aerr.Error()) case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To describe termination policy types // // This example describes the available termination policy types. func ExampleAutoScaling_DescribeTerminationPolicyTypes_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.DescribeTerminationPolicyTypesInput{} result, err := svc.DescribeTerminationPolicyTypes(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To detach an instance from an Auto Scaling group // // This example detaches the specified instance from the specified Auto Scaling group. func ExampleAutoScaling_DetachInstances_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.DetachInstancesInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), InstanceIds: []*string{ aws.String("i-93633f9b"), }, ShouldDecrementDesiredCapacity: aws.Bool(true), } result, err := svc.DetachInstances(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To detach a target group from an Auto Scaling group // // This example detaches the specified target group from the specified Auto Scaling // group func ExampleAutoScaling_DetachLoadBalancerTargetGroups_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.DetachLoadBalancerTargetGroupsInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), TargetGroupARNs: []*string{ aws.String("arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067"), }, } result, err := svc.DetachLoadBalancerTargetGroups(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To detach a load balancer from an Auto Scaling group // // This example detaches the specified load balancer from the specified Auto Scaling // group. func ExampleAutoScaling_DetachLoadBalancers_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.DetachLoadBalancersInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), LoadBalancerNames: []*string{ aws.String("my-load-balancer"), }, } result, err := svc.DetachLoadBalancers(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To disable metrics collection for an Auto Scaling group // // This example disables collecting data for the GroupDesiredCapacity metric for the // specified Auto Scaling group. func ExampleAutoScaling_DisableMetricsCollection_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.DisableMetricsCollectionInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), Metrics: []*string{ aws.String("GroupDesiredCapacity"), }, } result, err := svc.DisableMetricsCollection(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To enable metrics collection for an Auto Scaling group // // This example enables data collection for the specified Auto Scaling group. func ExampleAutoScaling_EnableMetricsCollection_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.EnableMetricsCollectionInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), Granularity: aws.String("1Minute"), } result, err := svc.EnableMetricsCollection(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To move instances into standby mode // // This example puts the specified instance into standby mode. func ExampleAutoScaling_EnterStandby_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.EnterStandbyInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), InstanceIds: []*string{ aws.String("i-93633f9b"), }, ShouldDecrementDesiredCapacity: aws.Bool(true), } result, err := svc.EnterStandby(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To execute a scaling policy // // This example executes the specified policy. func ExampleAutoScaling_ExecutePolicy_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.ExecutePolicyInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), BreachThreshold: aws.Float64(50.000000), MetricValue: aws.Float64(59.000000), PolicyName: aws.String("my-step-scale-out-policy"), } result, err := svc.ExecutePolicy(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeScalingActivityInProgressFault: fmt.Println(autoscaling.ErrCodeScalingActivityInProgressFault, aerr.Error()) case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To move instances out of standby mode // // This example moves the specified instance out of standby mode. func ExampleAutoScaling_ExitStandby_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.ExitStandbyInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), InstanceIds: []*string{ aws.String("i-93633f9b"), }, } result, err := svc.ExitStandby(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To create a lifecycle hook // // This example creates a lifecycle hook. func ExampleAutoScaling_PutLifecycleHook_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.PutLifecycleHookInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), LifecycleHookName: aws.String("my-lifecycle-hook"), LifecycleTransition: aws.String("autoscaling:EC2_INSTANCE_LAUNCHING"), NotificationTargetARN: aws.String("arn:aws:sns:us-west-2:123456789012:my-sns-topic --role-arn"), RoleARN: aws.String("arn:aws:iam::123456789012:role/my-auto-scaling-role"), } result, err := svc.PutLifecycleHook(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeLimitExceededFault: fmt.Println(autoscaling.ErrCodeLimitExceededFault, aerr.Error()) case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To add an Auto Scaling notification // // This example adds the specified notification to the specified Auto Scaling group. func ExampleAutoScaling_PutNotificationConfiguration_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.PutNotificationConfigurationInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), NotificationTypes: []*string{ aws.String("autoscaling:TEST_NOTIFICATION"), }, TopicARN: aws.String("arn:aws:sns:us-west-2:123456789012:my-sns-topic"), } result, err := svc.PutNotificationConfiguration(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeLimitExceededFault: fmt.Println(autoscaling.ErrCodeLimitExceededFault, aerr.Error()) case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) case autoscaling.ErrCodeServiceLinkedRoleFailure: fmt.Println(autoscaling.ErrCodeServiceLinkedRoleFailure, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To add a scaling policy to an Auto Scaling group // // This example adds the specified policy to the specified Auto Scaling group. func ExampleAutoScaling_PutScalingPolicy_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.PutScalingPolicyInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), PolicyName: aws.String("alb1000-target-tracking-scaling-policy"), PolicyType: aws.String("TargetTrackingScaling"), TargetTrackingConfiguration: &autoscaling.TargetTrackingConfiguration{ PredefinedMetricSpecification: &autoscaling.PredefinedMetricSpecification{ PredefinedMetricType: aws.String("ALBRequestCountPerTarget"), ResourceLabel: aws.String("app/my-alb/778d41231b141a0f/targetgroup/my-alb-target-group/943f017f100becff"), }, TargetValue: aws.Float64(1000.000000), }, } result, err := svc.PutScalingPolicy(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeLimitExceededFault: fmt.Println(autoscaling.ErrCodeLimitExceededFault, aerr.Error()) case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) case autoscaling.ErrCodeServiceLinkedRoleFailure: fmt.Println(autoscaling.ErrCodeServiceLinkedRoleFailure, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To add a scheduled action to an Auto Scaling group // // This example adds the specified scheduled action to the specified Auto Scaling group. func ExampleAutoScaling_PutScheduledUpdateGroupAction_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.PutScheduledUpdateGroupActionInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), DesiredCapacity: aws.Int64(4), EndTime: parseTime("2006-01-02T15:04:05.999999999Z", "2014-05-12T08:00:00Z"), MaxSize: aws.Int64(6), MinSize: aws.Int64(2), ScheduledActionName: aws.String("my-scheduled-action"), StartTime: parseTime("2006-01-02T15:04:05.999999999Z", "2014-05-12T08:00:00Z"), } result, err := svc.PutScheduledUpdateGroupAction(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeAlreadyExistsFault: fmt.Println(autoscaling.ErrCodeAlreadyExistsFault, aerr.Error()) case autoscaling.ErrCodeLimitExceededFault: fmt.Println(autoscaling.ErrCodeLimitExceededFault, aerr.Error()) case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To add a warm pool to an Auto Scaling group // // This example adds a warm pool to the specified Auto Scaling group. func ExampleAutoScaling_PutWarmPool_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.PutWarmPoolInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), MinSize: aws.Int64(30), PoolState: aws.String("Stopped"), } result, err := svc.PutWarmPool(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeLimitExceededFault: fmt.Println(autoscaling.ErrCodeLimitExceededFault, aerr.Error()) case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To record a lifecycle action heartbeat // // This example records a lifecycle action heartbeat to keep the instance in a pending // state. func ExampleAutoScaling_RecordLifecycleActionHeartbeat_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.RecordLifecycleActionHeartbeatInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), LifecycleActionToken: aws.String("bcd2f1b8-9a78-44d3-8a7a-4dd07d7cf635"), LifecycleHookName: aws.String("my-lifecycle-hook"), } result, err := svc.RecordLifecycleActionHeartbeat(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To resume Auto Scaling processes // // This example resumes the specified suspended scaling process for the specified Auto // Scaling group. func ExampleAutoScaling_ResumeProcesses_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.ScalingProcessQuery{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), ScalingProcesses: []*string{ aws.String("AlarmNotification"), }, } result, err := svc.ResumeProcesses(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeResourceInUseFault: fmt.Println(autoscaling.ErrCodeResourceInUseFault, aerr.Error()) case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To set the desired capacity for an Auto Scaling group // // This example sets the desired capacity for the specified Auto Scaling group. func ExampleAutoScaling_SetDesiredCapacity_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.SetDesiredCapacityInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), DesiredCapacity: aws.Int64(2), HonorCooldown: aws.Bool(true), } result, err := svc.SetDesiredCapacity(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeScalingActivityInProgressFault: fmt.Println(autoscaling.ErrCodeScalingActivityInProgressFault, aerr.Error()) case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To set the health status of an instance // // This example sets the health status of the specified instance to Unhealthy. func ExampleAutoScaling_SetInstanceHealth_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.SetInstanceHealthInput{ HealthStatus: aws.String("Unhealthy"), InstanceId: aws.String("i-93633f9b"), } result, err := svc.SetInstanceHealth(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To enable instance protection for an instance // // This example enables instance protection for the specified instance. func ExampleAutoScaling_SetInstanceProtection_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.SetInstanceProtectionInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), InstanceIds: []*string{ aws.String("i-93633f9b"), }, ProtectedFromScaleIn: aws.Bool(true), } result, err := svc.SetInstanceProtection(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeLimitExceededFault: fmt.Println(autoscaling.ErrCodeLimitExceededFault, aerr.Error()) case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To disable instance protection for an instance // // This example disables instance protection for the specified instance. func ExampleAutoScaling_SetInstanceProtection_shared01() { svc := autoscaling.New(session.New()) input := &autoscaling.SetInstanceProtectionInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), InstanceIds: []*string{ aws.String("i-93633f9b"), }, ProtectedFromScaleIn: aws.Bool(false), } result, err := svc.SetInstanceProtection(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeLimitExceededFault: fmt.Println(autoscaling.ErrCodeLimitExceededFault, aerr.Error()) case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To start an instance refresh // // This example starts an instance refresh for the specified Auto Scaling group. func ExampleAutoScaling_StartInstanceRefresh_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.StartInstanceRefreshInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), Preferences: &autoscaling.RefreshPreferences{ InstanceWarmup: aws.Int64(400), MinHealthyPercentage: aws.Int64(50), }, } result, err := svc.StartInstanceRefresh(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeLimitExceededFault: fmt.Println(autoscaling.ErrCodeLimitExceededFault, aerr.Error()) case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) case autoscaling.ErrCodeInstanceRefreshInProgressFault: fmt.Println(autoscaling.ErrCodeInstanceRefreshInProgressFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To suspend Auto Scaling processes // // This example suspends the specified scaling process for the specified Auto Scaling // group. func ExampleAutoScaling_SuspendProcesses_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.ScalingProcessQuery{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), ScalingProcesses: []*string{ aws.String("AlarmNotification"), }, } result, err := svc.SuspendProcesses(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeResourceInUseFault: fmt.Println(autoscaling.ErrCodeResourceInUseFault, aerr.Error()) case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To terminate an instance in an Auto Scaling group // // This example terminates the specified instance from the specified Auto Scaling group // without updating the size of the group. Auto Scaling launches a replacement instance // after the specified instance terminates. func ExampleAutoScaling_TerminateInstanceInAutoScalingGroup_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.TerminateInstanceInAutoScalingGroupInput{ InstanceId: aws.String("i-93633f9b"), ShouldDecrementDesiredCapacity: aws.Bool(false), } result, err := svc.TerminateInstanceInAutoScalingGroup(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeScalingActivityInProgressFault: fmt.Println(autoscaling.ErrCodeScalingActivityInProgressFault, aerr.Error()) case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To update the launch configuration // // This example updates the launch configuration of the specified Auto Scaling group. func ExampleAutoScaling_UpdateAutoScalingGroup_shared00() { svc := autoscaling.New(session.New()) input := &autoscaling.UpdateAutoScalingGroupInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), LaunchConfigurationName: aws.String("new-launch-config"), } result, err := svc.UpdateAutoScalingGroup(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeScalingActivityInProgressFault: fmt.Println(autoscaling.ErrCodeScalingActivityInProgressFault, aerr.Error()) case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) case autoscaling.ErrCodeServiceLinkedRoleFailure: fmt.Println(autoscaling.ErrCodeServiceLinkedRoleFailure, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To update the minimum and maximum size // // This example updates the minimum size and maximum size of the specified Auto Scaling // group. func ExampleAutoScaling_UpdateAutoScalingGroup_shared01() { svc := autoscaling.New(session.New()) input := &autoscaling.UpdateAutoScalingGroupInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), MaxSize: aws.Int64(3), MinSize: aws.Int64(1), } result, err := svc.UpdateAutoScalingGroup(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeScalingActivityInProgressFault: fmt.Println(autoscaling.ErrCodeScalingActivityInProgressFault, aerr.Error()) case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) case autoscaling.ErrCodeServiceLinkedRoleFailure: fmt.Println(autoscaling.ErrCodeServiceLinkedRoleFailure, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To enable instance protection // // This example enables instance protection for the specified Auto Scaling group. func ExampleAutoScaling_UpdateAutoScalingGroup_shared02() { svc := autoscaling.New(session.New()) input := &autoscaling.UpdateAutoScalingGroupInput{ AutoScalingGroupName: aws.String("my-auto-scaling-group"), NewInstancesProtectedFromScaleIn: aws.Bool(true), } result, err := svc.UpdateAutoScalingGroup(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case autoscaling.ErrCodeScalingActivityInProgressFault: fmt.Println(autoscaling.ErrCodeScalingActivityInProgressFault, aerr.Error()) case autoscaling.ErrCodeResourceContentionFault: fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error()) case autoscaling.ErrCodeServiceLinkedRoleFailure: fmt.Println(autoscaling.ErrCodeServiceLinkedRoleFailure, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) }
2,133
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // +build go1.15,integration package autoscaling_test import ( "context" "testing" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/awstesting/integration" "github.com/aws/aws-sdk-go/service/autoscaling" ) var _ aws.Config var _ awserr.Error var _ request.Request func TestInteg_00_DescribeScalingProcessTypes(t *testing.T) { ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) defer cancelFn() sess := integration.SessionWithDefaultRegion("us-west-2") svc := autoscaling.New(sess) params := &autoscaling.DescribeScalingProcessTypesInput{} _, err := svc.DescribeScalingProcessTypesWithContext(ctx, params, func(r *request.Request) { r.Handlers.Validate.RemoveByName("core.ValidateParametersHandler") }) if err != nil { t.Errorf("expect no error, got %v", err) } } func TestInteg_01_CreateLaunchConfiguration(t *testing.T) { ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) defer cancelFn() sess := integration.SessionWithDefaultRegion("us-west-2") svc := autoscaling.New(sess) params := &autoscaling.CreateLaunchConfigurationInput{ ImageId: aws.String("ami-12345678"), InstanceType: aws.String("m1.small"), LaunchConfigurationName: aws.String("hello, world"), } _, err := svc.CreateLaunchConfigurationWithContext(ctx, params, func(r *request.Request) { r.Handlers.Validate.RemoveByName("core.ValidateParametersHandler") }) if err == nil { t.Fatalf("expect request to fail") } aerr, ok := err.(awserr.RequestFailure) if !ok { t.Fatalf("expect awserr, was %T", err) } if len(aerr.Code()) == 0 { t.Errorf("expect non-empty error code") } if len(aerr.Message()) == 0 { t.Errorf("expect non-empty error message") } if v := aerr.Code(); v == request.ErrCodeSerialization { t.Errorf("expect API error code got serialization failure") } }
68
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package autoscaling 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/query" ) // AutoScaling provides the API operation methods for making requests to // Auto Scaling. See this package's package overview docs // for details on the service. // // AutoScaling methods are safe to use concurrently. It is not safe to // modify mutate any of the struct's properties though. type AutoScaling 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 = "autoscaling" // Name of service. EndpointsID = ServiceName // ID to lookup a service endpoint with. ServiceID = "Auto Scaling" // ServiceID is a unique identifier of a specific service. ) // New creates a new instance of the AutoScaling 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: // mySession := session.Must(session.NewSession()) // // // Create a AutoScaling client from just a session. // svc := autoscaling.New(mySession) // // // Create a AutoScaling client with additional configuration // svc := autoscaling.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *AutoScaling { c := p.ClientConfig(EndpointsID, cfgs...) return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *AutoScaling { svc := &AutoScaling{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, ServiceID: ServiceID, SigningName: signingName, SigningRegion: signingRegion, PartitionID: partitionID, Endpoint: endpoint, APIVersion: "2011-01-01", }, handlers, ), } // Handlers svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) svc.Handlers.Build.PushBackNamed(query.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) // Run custom client initialization if present if initClient != nil { initClient(svc.Client) } return svc } // newRequest creates a new request for a AutoScaling operation and runs any // custom request initialization. func (c *AutoScaling) 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 }
99
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package autoscaling import ( "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/request" ) // WaitUntilGroupExists uses the Auto Scaling API operation // DescribeAutoScalingGroups to wait for a condition to be met before returning. // If the condition is not met within the max attempt window, an error will // be returned. func (c *AutoScaling) WaitUntilGroupExists(input *DescribeAutoScalingGroupsInput) error { return c.WaitUntilGroupExistsWithContext(aws.BackgroundContext(), input) } // WaitUntilGroupExistsWithContext is an extended version of WaitUntilGroupExists. // With the support for passing in a context and options to configure the // Waiter and the underlying request options. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AutoScaling) WaitUntilGroupExistsWithContext(ctx aws.Context, input *DescribeAutoScalingGroupsInput, opts ...request.WaiterOption) error { w := request.Waiter{ Name: "WaitUntilGroupExists", MaxAttempts: 10, Delay: request.ConstantWaiterDelay(5 * time.Second), Acceptors: []request.WaiterAcceptor{ { State: request.SuccessWaiterState, Matcher: request.PathWaiterMatch, Argument: "length(AutoScalingGroups) > `0`", Expected: true, }, { State: request.RetryWaiterState, Matcher: request.PathWaiterMatch, Argument: "length(AutoScalingGroups) > `0`", Expected: false, }, }, Logger: c.Config.Logger, NewRequest: func(opts []request.Option) (*request.Request, error) { var inCpy *DescribeAutoScalingGroupsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.DescribeAutoScalingGroupsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } w.ApplyOptions(opts...) return w.WaitWithContext(ctx) } // WaitUntilGroupInService uses the Auto Scaling API operation // DescribeAutoScalingGroups to wait for a condition to be met before returning. // If the condition is not met within the max attempt window, an error will // be returned. func (c *AutoScaling) WaitUntilGroupInService(input *DescribeAutoScalingGroupsInput) error { return c.WaitUntilGroupInServiceWithContext(aws.BackgroundContext(), input) } // WaitUntilGroupInServiceWithContext is an extended version of WaitUntilGroupInService. // With the support for passing in a context and options to configure the // Waiter and the underlying request options. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AutoScaling) WaitUntilGroupInServiceWithContext(ctx aws.Context, input *DescribeAutoScalingGroupsInput, opts ...request.WaiterOption) error { w := request.Waiter{ Name: "WaitUntilGroupInService", MaxAttempts: 40, Delay: request.ConstantWaiterDelay(15 * time.Second), Acceptors: []request.WaiterAcceptor{ { State: request.SuccessWaiterState, Matcher: request.PathWaiterMatch, Argument: "contains(AutoScalingGroups[].[length(Instances[?LifecycleState=='InService']) >= MinSize][], `false`)", Expected: false, }, { State: request.RetryWaiterState, Matcher: request.PathWaiterMatch, Argument: "contains(AutoScalingGroups[].[length(Instances[?LifecycleState=='InService']) >= MinSize][], `false`)", Expected: true, }, }, Logger: c.Config.Logger, NewRequest: func(opts []request.Option) (*request.Request, error) { var inCpy *DescribeAutoScalingGroupsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.DescribeAutoScalingGroupsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } w.ApplyOptions(opts...) return w.WaitWithContext(ctx) } // WaitUntilGroupNotExists uses the Auto Scaling API operation // DescribeAutoScalingGroups to wait for a condition to be met before returning. // If the condition is not met within the max attempt window, an error will // be returned. func (c *AutoScaling) WaitUntilGroupNotExists(input *DescribeAutoScalingGroupsInput) error { return c.WaitUntilGroupNotExistsWithContext(aws.BackgroundContext(), input) } // WaitUntilGroupNotExistsWithContext is an extended version of WaitUntilGroupNotExists. // With the support for passing in a context and options to configure the // Waiter and the underlying request options. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AutoScaling) WaitUntilGroupNotExistsWithContext(ctx aws.Context, input *DescribeAutoScalingGroupsInput, opts ...request.WaiterOption) error { w := request.Waiter{ Name: "WaitUntilGroupNotExists", MaxAttempts: 40, Delay: request.ConstantWaiterDelay(15 * time.Second), Acceptors: []request.WaiterAcceptor{ { State: request.SuccessWaiterState, Matcher: request.PathWaiterMatch, Argument: "length(AutoScalingGroups) > `0`", Expected: false, }, { State: request.RetryWaiterState, Matcher: request.PathWaiterMatch, Argument: "length(AutoScalingGroups) > `0`", Expected: true, }, }, Logger: c.Config.Logger, NewRequest: func(opts []request.Option) (*request.Request, error) { var inCpy *DescribeAutoScalingGroupsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.DescribeAutoScalingGroupsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } w.ApplyOptions(opts...) return w.WaitWithContext(ctx) }
164
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package autoscalingiface provides an interface to enable mocking the Auto Scaling 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 autoscalingiface import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/service/autoscaling" ) // AutoScalingAPI provides an interface to enable mocking the // autoscaling.AutoScaling 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 // // Auto Scaling. // func myFunc(svc autoscalingiface.AutoScalingAPI) bool { // // Make svc.AttachInstances request // } // // func main() { // sess := session.New() // svc := autoscaling.New(sess) // // myFunc(svc) // } // // In your _test.go file: // // // Define a mock struct to be used in your unit tests of myFunc. // type mockAutoScalingClient struct { // autoscalingiface.AutoScalingAPI // } // func (m *mockAutoScalingClient) AttachInstances(input *autoscaling.AttachInstancesInput) (*autoscaling.AttachInstancesOutput, error) { // // mock response/functionality // } // // func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockAutoScalingClient{} // // 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 AutoScalingAPI interface { AttachInstances(*autoscaling.AttachInstancesInput) (*autoscaling.AttachInstancesOutput, error) AttachInstancesWithContext(aws.Context, *autoscaling.AttachInstancesInput, ...request.Option) (*autoscaling.AttachInstancesOutput, error) AttachInstancesRequest(*autoscaling.AttachInstancesInput) (*request.Request, *autoscaling.AttachInstancesOutput) AttachLoadBalancerTargetGroups(*autoscaling.AttachLoadBalancerTargetGroupsInput) (*autoscaling.AttachLoadBalancerTargetGroupsOutput, error) AttachLoadBalancerTargetGroupsWithContext(aws.Context, *autoscaling.AttachLoadBalancerTargetGroupsInput, ...request.Option) (*autoscaling.AttachLoadBalancerTargetGroupsOutput, error) AttachLoadBalancerTargetGroupsRequest(*autoscaling.AttachLoadBalancerTargetGroupsInput) (*request.Request, *autoscaling.AttachLoadBalancerTargetGroupsOutput) AttachLoadBalancers(*autoscaling.AttachLoadBalancersInput) (*autoscaling.AttachLoadBalancersOutput, error) AttachLoadBalancersWithContext(aws.Context, *autoscaling.AttachLoadBalancersInput, ...request.Option) (*autoscaling.AttachLoadBalancersOutput, error) AttachLoadBalancersRequest(*autoscaling.AttachLoadBalancersInput) (*request.Request, *autoscaling.AttachLoadBalancersOutput) BatchDeleteScheduledAction(*autoscaling.BatchDeleteScheduledActionInput) (*autoscaling.BatchDeleteScheduledActionOutput, error) BatchDeleteScheduledActionWithContext(aws.Context, *autoscaling.BatchDeleteScheduledActionInput, ...request.Option) (*autoscaling.BatchDeleteScheduledActionOutput, error) BatchDeleteScheduledActionRequest(*autoscaling.BatchDeleteScheduledActionInput) (*request.Request, *autoscaling.BatchDeleteScheduledActionOutput) BatchPutScheduledUpdateGroupAction(*autoscaling.BatchPutScheduledUpdateGroupActionInput) (*autoscaling.BatchPutScheduledUpdateGroupActionOutput, error) BatchPutScheduledUpdateGroupActionWithContext(aws.Context, *autoscaling.BatchPutScheduledUpdateGroupActionInput, ...request.Option) (*autoscaling.BatchPutScheduledUpdateGroupActionOutput, error) BatchPutScheduledUpdateGroupActionRequest(*autoscaling.BatchPutScheduledUpdateGroupActionInput) (*request.Request, *autoscaling.BatchPutScheduledUpdateGroupActionOutput) CancelInstanceRefresh(*autoscaling.CancelInstanceRefreshInput) (*autoscaling.CancelInstanceRefreshOutput, error) CancelInstanceRefreshWithContext(aws.Context, *autoscaling.CancelInstanceRefreshInput, ...request.Option) (*autoscaling.CancelInstanceRefreshOutput, error) CancelInstanceRefreshRequest(*autoscaling.CancelInstanceRefreshInput) (*request.Request, *autoscaling.CancelInstanceRefreshOutput) CompleteLifecycleAction(*autoscaling.CompleteLifecycleActionInput) (*autoscaling.CompleteLifecycleActionOutput, error) CompleteLifecycleActionWithContext(aws.Context, *autoscaling.CompleteLifecycleActionInput, ...request.Option) (*autoscaling.CompleteLifecycleActionOutput, error) CompleteLifecycleActionRequest(*autoscaling.CompleteLifecycleActionInput) (*request.Request, *autoscaling.CompleteLifecycleActionOutput) CreateAutoScalingGroup(*autoscaling.CreateAutoScalingGroupInput) (*autoscaling.CreateAutoScalingGroupOutput, error) CreateAutoScalingGroupWithContext(aws.Context, *autoscaling.CreateAutoScalingGroupInput, ...request.Option) (*autoscaling.CreateAutoScalingGroupOutput, error) CreateAutoScalingGroupRequest(*autoscaling.CreateAutoScalingGroupInput) (*request.Request, *autoscaling.CreateAutoScalingGroupOutput) CreateLaunchConfiguration(*autoscaling.CreateLaunchConfigurationInput) (*autoscaling.CreateLaunchConfigurationOutput, error) CreateLaunchConfigurationWithContext(aws.Context, *autoscaling.CreateLaunchConfigurationInput, ...request.Option) (*autoscaling.CreateLaunchConfigurationOutput, error) CreateLaunchConfigurationRequest(*autoscaling.CreateLaunchConfigurationInput) (*request.Request, *autoscaling.CreateLaunchConfigurationOutput) CreateOrUpdateTags(*autoscaling.CreateOrUpdateTagsInput) (*autoscaling.CreateOrUpdateTagsOutput, error) CreateOrUpdateTagsWithContext(aws.Context, *autoscaling.CreateOrUpdateTagsInput, ...request.Option) (*autoscaling.CreateOrUpdateTagsOutput, error) CreateOrUpdateTagsRequest(*autoscaling.CreateOrUpdateTagsInput) (*request.Request, *autoscaling.CreateOrUpdateTagsOutput) DeleteAutoScalingGroup(*autoscaling.DeleteAutoScalingGroupInput) (*autoscaling.DeleteAutoScalingGroupOutput, error) DeleteAutoScalingGroupWithContext(aws.Context, *autoscaling.DeleteAutoScalingGroupInput, ...request.Option) (*autoscaling.DeleteAutoScalingGroupOutput, error) DeleteAutoScalingGroupRequest(*autoscaling.DeleteAutoScalingGroupInput) (*request.Request, *autoscaling.DeleteAutoScalingGroupOutput) DeleteLaunchConfiguration(*autoscaling.DeleteLaunchConfigurationInput) (*autoscaling.DeleteLaunchConfigurationOutput, error) DeleteLaunchConfigurationWithContext(aws.Context, *autoscaling.DeleteLaunchConfigurationInput, ...request.Option) (*autoscaling.DeleteLaunchConfigurationOutput, error) DeleteLaunchConfigurationRequest(*autoscaling.DeleteLaunchConfigurationInput) (*request.Request, *autoscaling.DeleteLaunchConfigurationOutput) DeleteLifecycleHook(*autoscaling.DeleteLifecycleHookInput) (*autoscaling.DeleteLifecycleHookOutput, error) DeleteLifecycleHookWithContext(aws.Context, *autoscaling.DeleteLifecycleHookInput, ...request.Option) (*autoscaling.DeleteLifecycleHookOutput, error) DeleteLifecycleHookRequest(*autoscaling.DeleteLifecycleHookInput) (*request.Request, *autoscaling.DeleteLifecycleHookOutput) DeleteNotificationConfiguration(*autoscaling.DeleteNotificationConfigurationInput) (*autoscaling.DeleteNotificationConfigurationOutput, error) DeleteNotificationConfigurationWithContext(aws.Context, *autoscaling.DeleteNotificationConfigurationInput, ...request.Option) (*autoscaling.DeleteNotificationConfigurationOutput, error) DeleteNotificationConfigurationRequest(*autoscaling.DeleteNotificationConfigurationInput) (*request.Request, *autoscaling.DeleteNotificationConfigurationOutput) DeletePolicy(*autoscaling.DeletePolicyInput) (*autoscaling.DeletePolicyOutput, error) DeletePolicyWithContext(aws.Context, *autoscaling.DeletePolicyInput, ...request.Option) (*autoscaling.DeletePolicyOutput, error) DeletePolicyRequest(*autoscaling.DeletePolicyInput) (*request.Request, *autoscaling.DeletePolicyOutput) DeleteScheduledAction(*autoscaling.DeleteScheduledActionInput) (*autoscaling.DeleteScheduledActionOutput, error) DeleteScheduledActionWithContext(aws.Context, *autoscaling.DeleteScheduledActionInput, ...request.Option) (*autoscaling.DeleteScheduledActionOutput, error) DeleteScheduledActionRequest(*autoscaling.DeleteScheduledActionInput) (*request.Request, *autoscaling.DeleteScheduledActionOutput) DeleteTags(*autoscaling.DeleteTagsInput) (*autoscaling.DeleteTagsOutput, error) DeleteTagsWithContext(aws.Context, *autoscaling.DeleteTagsInput, ...request.Option) (*autoscaling.DeleteTagsOutput, error) DeleteTagsRequest(*autoscaling.DeleteTagsInput) (*request.Request, *autoscaling.DeleteTagsOutput) DeleteWarmPool(*autoscaling.DeleteWarmPoolInput) (*autoscaling.DeleteWarmPoolOutput, error) DeleteWarmPoolWithContext(aws.Context, *autoscaling.DeleteWarmPoolInput, ...request.Option) (*autoscaling.DeleteWarmPoolOutput, error) DeleteWarmPoolRequest(*autoscaling.DeleteWarmPoolInput) (*request.Request, *autoscaling.DeleteWarmPoolOutput) DescribeAccountLimits(*autoscaling.DescribeAccountLimitsInput) (*autoscaling.DescribeAccountLimitsOutput, error) DescribeAccountLimitsWithContext(aws.Context, *autoscaling.DescribeAccountLimitsInput, ...request.Option) (*autoscaling.DescribeAccountLimitsOutput, error) DescribeAccountLimitsRequest(*autoscaling.DescribeAccountLimitsInput) (*request.Request, *autoscaling.DescribeAccountLimitsOutput) DescribeAdjustmentTypes(*autoscaling.DescribeAdjustmentTypesInput) (*autoscaling.DescribeAdjustmentTypesOutput, error) DescribeAdjustmentTypesWithContext(aws.Context, *autoscaling.DescribeAdjustmentTypesInput, ...request.Option) (*autoscaling.DescribeAdjustmentTypesOutput, error) DescribeAdjustmentTypesRequest(*autoscaling.DescribeAdjustmentTypesInput) (*request.Request, *autoscaling.DescribeAdjustmentTypesOutput) DescribeAutoScalingGroups(*autoscaling.DescribeAutoScalingGroupsInput) (*autoscaling.DescribeAutoScalingGroupsOutput, error) DescribeAutoScalingGroupsWithContext(aws.Context, *autoscaling.DescribeAutoScalingGroupsInput, ...request.Option) (*autoscaling.DescribeAutoScalingGroupsOutput, error) DescribeAutoScalingGroupsRequest(*autoscaling.DescribeAutoScalingGroupsInput) (*request.Request, *autoscaling.DescribeAutoScalingGroupsOutput) DescribeAutoScalingGroupsPages(*autoscaling.DescribeAutoScalingGroupsInput, func(*autoscaling.DescribeAutoScalingGroupsOutput, bool) bool) error DescribeAutoScalingGroupsPagesWithContext(aws.Context, *autoscaling.DescribeAutoScalingGroupsInput, func(*autoscaling.DescribeAutoScalingGroupsOutput, bool) bool, ...request.Option) error DescribeAutoScalingInstances(*autoscaling.DescribeAutoScalingInstancesInput) (*autoscaling.DescribeAutoScalingInstancesOutput, error) DescribeAutoScalingInstancesWithContext(aws.Context, *autoscaling.DescribeAutoScalingInstancesInput, ...request.Option) (*autoscaling.DescribeAutoScalingInstancesOutput, error) DescribeAutoScalingInstancesRequest(*autoscaling.DescribeAutoScalingInstancesInput) (*request.Request, *autoscaling.DescribeAutoScalingInstancesOutput) DescribeAutoScalingInstancesPages(*autoscaling.DescribeAutoScalingInstancesInput, func(*autoscaling.DescribeAutoScalingInstancesOutput, bool) bool) error DescribeAutoScalingInstancesPagesWithContext(aws.Context, *autoscaling.DescribeAutoScalingInstancesInput, func(*autoscaling.DescribeAutoScalingInstancesOutput, bool) bool, ...request.Option) error DescribeAutoScalingNotificationTypes(*autoscaling.DescribeAutoScalingNotificationTypesInput) (*autoscaling.DescribeAutoScalingNotificationTypesOutput, error) DescribeAutoScalingNotificationTypesWithContext(aws.Context, *autoscaling.DescribeAutoScalingNotificationTypesInput, ...request.Option) (*autoscaling.DescribeAutoScalingNotificationTypesOutput, error) DescribeAutoScalingNotificationTypesRequest(*autoscaling.DescribeAutoScalingNotificationTypesInput) (*request.Request, *autoscaling.DescribeAutoScalingNotificationTypesOutput) DescribeInstanceRefreshes(*autoscaling.DescribeInstanceRefreshesInput) (*autoscaling.DescribeInstanceRefreshesOutput, error) DescribeInstanceRefreshesWithContext(aws.Context, *autoscaling.DescribeInstanceRefreshesInput, ...request.Option) (*autoscaling.DescribeInstanceRefreshesOutput, error) DescribeInstanceRefreshesRequest(*autoscaling.DescribeInstanceRefreshesInput) (*request.Request, *autoscaling.DescribeInstanceRefreshesOutput) DescribeLaunchConfigurations(*autoscaling.DescribeLaunchConfigurationsInput) (*autoscaling.DescribeLaunchConfigurationsOutput, error) DescribeLaunchConfigurationsWithContext(aws.Context, *autoscaling.DescribeLaunchConfigurationsInput, ...request.Option) (*autoscaling.DescribeLaunchConfigurationsOutput, error) DescribeLaunchConfigurationsRequest(*autoscaling.DescribeLaunchConfigurationsInput) (*request.Request, *autoscaling.DescribeLaunchConfigurationsOutput) DescribeLaunchConfigurationsPages(*autoscaling.DescribeLaunchConfigurationsInput, func(*autoscaling.DescribeLaunchConfigurationsOutput, bool) bool) error DescribeLaunchConfigurationsPagesWithContext(aws.Context, *autoscaling.DescribeLaunchConfigurationsInput, func(*autoscaling.DescribeLaunchConfigurationsOutput, bool) bool, ...request.Option) error DescribeLifecycleHookTypes(*autoscaling.DescribeLifecycleHookTypesInput) (*autoscaling.DescribeLifecycleHookTypesOutput, error) DescribeLifecycleHookTypesWithContext(aws.Context, *autoscaling.DescribeLifecycleHookTypesInput, ...request.Option) (*autoscaling.DescribeLifecycleHookTypesOutput, error) DescribeLifecycleHookTypesRequest(*autoscaling.DescribeLifecycleHookTypesInput) (*request.Request, *autoscaling.DescribeLifecycleHookTypesOutput) DescribeLifecycleHooks(*autoscaling.DescribeLifecycleHooksInput) (*autoscaling.DescribeLifecycleHooksOutput, error) DescribeLifecycleHooksWithContext(aws.Context, *autoscaling.DescribeLifecycleHooksInput, ...request.Option) (*autoscaling.DescribeLifecycleHooksOutput, error) DescribeLifecycleHooksRequest(*autoscaling.DescribeLifecycleHooksInput) (*request.Request, *autoscaling.DescribeLifecycleHooksOutput) DescribeLoadBalancerTargetGroups(*autoscaling.DescribeLoadBalancerTargetGroupsInput) (*autoscaling.DescribeLoadBalancerTargetGroupsOutput, error) DescribeLoadBalancerTargetGroupsWithContext(aws.Context, *autoscaling.DescribeLoadBalancerTargetGroupsInput, ...request.Option) (*autoscaling.DescribeLoadBalancerTargetGroupsOutput, error) DescribeLoadBalancerTargetGroupsRequest(*autoscaling.DescribeLoadBalancerTargetGroupsInput) (*request.Request, *autoscaling.DescribeLoadBalancerTargetGroupsOutput) DescribeLoadBalancers(*autoscaling.DescribeLoadBalancersInput) (*autoscaling.DescribeLoadBalancersOutput, error) DescribeLoadBalancersWithContext(aws.Context, *autoscaling.DescribeLoadBalancersInput, ...request.Option) (*autoscaling.DescribeLoadBalancersOutput, error) DescribeLoadBalancersRequest(*autoscaling.DescribeLoadBalancersInput) (*request.Request, *autoscaling.DescribeLoadBalancersOutput) DescribeMetricCollectionTypes(*autoscaling.DescribeMetricCollectionTypesInput) (*autoscaling.DescribeMetricCollectionTypesOutput, error) DescribeMetricCollectionTypesWithContext(aws.Context, *autoscaling.DescribeMetricCollectionTypesInput, ...request.Option) (*autoscaling.DescribeMetricCollectionTypesOutput, error) DescribeMetricCollectionTypesRequest(*autoscaling.DescribeMetricCollectionTypesInput) (*request.Request, *autoscaling.DescribeMetricCollectionTypesOutput) DescribeNotificationConfigurations(*autoscaling.DescribeNotificationConfigurationsInput) (*autoscaling.DescribeNotificationConfigurationsOutput, error) DescribeNotificationConfigurationsWithContext(aws.Context, *autoscaling.DescribeNotificationConfigurationsInput, ...request.Option) (*autoscaling.DescribeNotificationConfigurationsOutput, error) DescribeNotificationConfigurationsRequest(*autoscaling.DescribeNotificationConfigurationsInput) (*request.Request, *autoscaling.DescribeNotificationConfigurationsOutput) DescribeNotificationConfigurationsPages(*autoscaling.DescribeNotificationConfigurationsInput, func(*autoscaling.DescribeNotificationConfigurationsOutput, bool) bool) error DescribeNotificationConfigurationsPagesWithContext(aws.Context, *autoscaling.DescribeNotificationConfigurationsInput, func(*autoscaling.DescribeNotificationConfigurationsOutput, bool) bool, ...request.Option) error DescribePolicies(*autoscaling.DescribePoliciesInput) (*autoscaling.DescribePoliciesOutput, error) DescribePoliciesWithContext(aws.Context, *autoscaling.DescribePoliciesInput, ...request.Option) (*autoscaling.DescribePoliciesOutput, error) DescribePoliciesRequest(*autoscaling.DescribePoliciesInput) (*request.Request, *autoscaling.DescribePoliciesOutput) DescribePoliciesPages(*autoscaling.DescribePoliciesInput, func(*autoscaling.DescribePoliciesOutput, bool) bool) error DescribePoliciesPagesWithContext(aws.Context, *autoscaling.DescribePoliciesInput, func(*autoscaling.DescribePoliciesOutput, bool) bool, ...request.Option) error DescribeScalingActivities(*autoscaling.DescribeScalingActivitiesInput) (*autoscaling.DescribeScalingActivitiesOutput, error) DescribeScalingActivitiesWithContext(aws.Context, *autoscaling.DescribeScalingActivitiesInput, ...request.Option) (*autoscaling.DescribeScalingActivitiesOutput, error) DescribeScalingActivitiesRequest(*autoscaling.DescribeScalingActivitiesInput) (*request.Request, *autoscaling.DescribeScalingActivitiesOutput) DescribeScalingActivitiesPages(*autoscaling.DescribeScalingActivitiesInput, func(*autoscaling.DescribeScalingActivitiesOutput, bool) bool) error DescribeScalingActivitiesPagesWithContext(aws.Context, *autoscaling.DescribeScalingActivitiesInput, func(*autoscaling.DescribeScalingActivitiesOutput, bool) bool, ...request.Option) error DescribeScalingProcessTypes(*autoscaling.DescribeScalingProcessTypesInput) (*autoscaling.DescribeScalingProcessTypesOutput, error) DescribeScalingProcessTypesWithContext(aws.Context, *autoscaling.DescribeScalingProcessTypesInput, ...request.Option) (*autoscaling.DescribeScalingProcessTypesOutput, error) DescribeScalingProcessTypesRequest(*autoscaling.DescribeScalingProcessTypesInput) (*request.Request, *autoscaling.DescribeScalingProcessTypesOutput) DescribeScheduledActions(*autoscaling.DescribeScheduledActionsInput) (*autoscaling.DescribeScheduledActionsOutput, error) DescribeScheduledActionsWithContext(aws.Context, *autoscaling.DescribeScheduledActionsInput, ...request.Option) (*autoscaling.DescribeScheduledActionsOutput, error) DescribeScheduledActionsRequest(*autoscaling.DescribeScheduledActionsInput) (*request.Request, *autoscaling.DescribeScheduledActionsOutput) DescribeScheduledActionsPages(*autoscaling.DescribeScheduledActionsInput, func(*autoscaling.DescribeScheduledActionsOutput, bool) bool) error DescribeScheduledActionsPagesWithContext(aws.Context, *autoscaling.DescribeScheduledActionsInput, func(*autoscaling.DescribeScheduledActionsOutput, bool) bool, ...request.Option) error DescribeTags(*autoscaling.DescribeTagsInput) (*autoscaling.DescribeTagsOutput, error) DescribeTagsWithContext(aws.Context, *autoscaling.DescribeTagsInput, ...request.Option) (*autoscaling.DescribeTagsOutput, error) DescribeTagsRequest(*autoscaling.DescribeTagsInput) (*request.Request, *autoscaling.DescribeTagsOutput) DescribeTagsPages(*autoscaling.DescribeTagsInput, func(*autoscaling.DescribeTagsOutput, bool) bool) error DescribeTagsPagesWithContext(aws.Context, *autoscaling.DescribeTagsInput, func(*autoscaling.DescribeTagsOutput, bool) bool, ...request.Option) error DescribeTerminationPolicyTypes(*autoscaling.DescribeTerminationPolicyTypesInput) (*autoscaling.DescribeTerminationPolicyTypesOutput, error) DescribeTerminationPolicyTypesWithContext(aws.Context, *autoscaling.DescribeTerminationPolicyTypesInput, ...request.Option) (*autoscaling.DescribeTerminationPolicyTypesOutput, error) DescribeTerminationPolicyTypesRequest(*autoscaling.DescribeTerminationPolicyTypesInput) (*request.Request, *autoscaling.DescribeTerminationPolicyTypesOutput) DescribeWarmPool(*autoscaling.DescribeWarmPoolInput) (*autoscaling.DescribeWarmPoolOutput, error) DescribeWarmPoolWithContext(aws.Context, *autoscaling.DescribeWarmPoolInput, ...request.Option) (*autoscaling.DescribeWarmPoolOutput, error) DescribeWarmPoolRequest(*autoscaling.DescribeWarmPoolInput) (*request.Request, *autoscaling.DescribeWarmPoolOutput) DetachInstances(*autoscaling.DetachInstancesInput) (*autoscaling.DetachInstancesOutput, error) DetachInstancesWithContext(aws.Context, *autoscaling.DetachInstancesInput, ...request.Option) (*autoscaling.DetachInstancesOutput, error) DetachInstancesRequest(*autoscaling.DetachInstancesInput) (*request.Request, *autoscaling.DetachInstancesOutput) DetachLoadBalancerTargetGroups(*autoscaling.DetachLoadBalancerTargetGroupsInput) (*autoscaling.DetachLoadBalancerTargetGroupsOutput, error) DetachLoadBalancerTargetGroupsWithContext(aws.Context, *autoscaling.DetachLoadBalancerTargetGroupsInput, ...request.Option) (*autoscaling.DetachLoadBalancerTargetGroupsOutput, error) DetachLoadBalancerTargetGroupsRequest(*autoscaling.DetachLoadBalancerTargetGroupsInput) (*request.Request, *autoscaling.DetachLoadBalancerTargetGroupsOutput) DetachLoadBalancers(*autoscaling.DetachLoadBalancersInput) (*autoscaling.DetachLoadBalancersOutput, error) DetachLoadBalancersWithContext(aws.Context, *autoscaling.DetachLoadBalancersInput, ...request.Option) (*autoscaling.DetachLoadBalancersOutput, error) DetachLoadBalancersRequest(*autoscaling.DetachLoadBalancersInput) (*request.Request, *autoscaling.DetachLoadBalancersOutput) DisableMetricsCollection(*autoscaling.DisableMetricsCollectionInput) (*autoscaling.DisableMetricsCollectionOutput, error) DisableMetricsCollectionWithContext(aws.Context, *autoscaling.DisableMetricsCollectionInput, ...request.Option) (*autoscaling.DisableMetricsCollectionOutput, error) DisableMetricsCollectionRequest(*autoscaling.DisableMetricsCollectionInput) (*request.Request, *autoscaling.DisableMetricsCollectionOutput) EnableMetricsCollection(*autoscaling.EnableMetricsCollectionInput) (*autoscaling.EnableMetricsCollectionOutput, error) EnableMetricsCollectionWithContext(aws.Context, *autoscaling.EnableMetricsCollectionInput, ...request.Option) (*autoscaling.EnableMetricsCollectionOutput, error) EnableMetricsCollectionRequest(*autoscaling.EnableMetricsCollectionInput) (*request.Request, *autoscaling.EnableMetricsCollectionOutput) EnterStandby(*autoscaling.EnterStandbyInput) (*autoscaling.EnterStandbyOutput, error) EnterStandbyWithContext(aws.Context, *autoscaling.EnterStandbyInput, ...request.Option) (*autoscaling.EnterStandbyOutput, error) EnterStandbyRequest(*autoscaling.EnterStandbyInput) (*request.Request, *autoscaling.EnterStandbyOutput) ExecutePolicy(*autoscaling.ExecutePolicyInput) (*autoscaling.ExecutePolicyOutput, error) ExecutePolicyWithContext(aws.Context, *autoscaling.ExecutePolicyInput, ...request.Option) (*autoscaling.ExecutePolicyOutput, error) ExecutePolicyRequest(*autoscaling.ExecutePolicyInput) (*request.Request, *autoscaling.ExecutePolicyOutput) ExitStandby(*autoscaling.ExitStandbyInput) (*autoscaling.ExitStandbyOutput, error) ExitStandbyWithContext(aws.Context, *autoscaling.ExitStandbyInput, ...request.Option) (*autoscaling.ExitStandbyOutput, error) ExitStandbyRequest(*autoscaling.ExitStandbyInput) (*request.Request, *autoscaling.ExitStandbyOutput) GetPredictiveScalingForecast(*autoscaling.GetPredictiveScalingForecastInput) (*autoscaling.GetPredictiveScalingForecastOutput, error) GetPredictiveScalingForecastWithContext(aws.Context, *autoscaling.GetPredictiveScalingForecastInput, ...request.Option) (*autoscaling.GetPredictiveScalingForecastOutput, error) GetPredictiveScalingForecastRequest(*autoscaling.GetPredictiveScalingForecastInput) (*request.Request, *autoscaling.GetPredictiveScalingForecastOutput) PutLifecycleHook(*autoscaling.PutLifecycleHookInput) (*autoscaling.PutLifecycleHookOutput, error) PutLifecycleHookWithContext(aws.Context, *autoscaling.PutLifecycleHookInput, ...request.Option) (*autoscaling.PutLifecycleHookOutput, error) PutLifecycleHookRequest(*autoscaling.PutLifecycleHookInput) (*request.Request, *autoscaling.PutLifecycleHookOutput) PutNotificationConfiguration(*autoscaling.PutNotificationConfigurationInput) (*autoscaling.PutNotificationConfigurationOutput, error) PutNotificationConfigurationWithContext(aws.Context, *autoscaling.PutNotificationConfigurationInput, ...request.Option) (*autoscaling.PutNotificationConfigurationOutput, error) PutNotificationConfigurationRequest(*autoscaling.PutNotificationConfigurationInput) (*request.Request, *autoscaling.PutNotificationConfigurationOutput) PutScalingPolicy(*autoscaling.PutScalingPolicyInput) (*autoscaling.PutScalingPolicyOutput, error) PutScalingPolicyWithContext(aws.Context, *autoscaling.PutScalingPolicyInput, ...request.Option) (*autoscaling.PutScalingPolicyOutput, error) PutScalingPolicyRequest(*autoscaling.PutScalingPolicyInput) (*request.Request, *autoscaling.PutScalingPolicyOutput) PutScheduledUpdateGroupAction(*autoscaling.PutScheduledUpdateGroupActionInput) (*autoscaling.PutScheduledUpdateGroupActionOutput, error) PutScheduledUpdateGroupActionWithContext(aws.Context, *autoscaling.PutScheduledUpdateGroupActionInput, ...request.Option) (*autoscaling.PutScheduledUpdateGroupActionOutput, error) PutScheduledUpdateGroupActionRequest(*autoscaling.PutScheduledUpdateGroupActionInput) (*request.Request, *autoscaling.PutScheduledUpdateGroupActionOutput) PutWarmPool(*autoscaling.PutWarmPoolInput) (*autoscaling.PutWarmPoolOutput, error) PutWarmPoolWithContext(aws.Context, *autoscaling.PutWarmPoolInput, ...request.Option) (*autoscaling.PutWarmPoolOutput, error) PutWarmPoolRequest(*autoscaling.PutWarmPoolInput) (*request.Request, *autoscaling.PutWarmPoolOutput) RecordLifecycleActionHeartbeat(*autoscaling.RecordLifecycleActionHeartbeatInput) (*autoscaling.RecordLifecycleActionHeartbeatOutput, error) RecordLifecycleActionHeartbeatWithContext(aws.Context, *autoscaling.RecordLifecycleActionHeartbeatInput, ...request.Option) (*autoscaling.RecordLifecycleActionHeartbeatOutput, error) RecordLifecycleActionHeartbeatRequest(*autoscaling.RecordLifecycleActionHeartbeatInput) (*request.Request, *autoscaling.RecordLifecycleActionHeartbeatOutput) ResumeProcesses(*autoscaling.ScalingProcessQuery) (*autoscaling.ResumeProcessesOutput, error) ResumeProcessesWithContext(aws.Context, *autoscaling.ScalingProcessQuery, ...request.Option) (*autoscaling.ResumeProcessesOutput, error) ResumeProcessesRequest(*autoscaling.ScalingProcessQuery) (*request.Request, *autoscaling.ResumeProcessesOutput) SetDesiredCapacity(*autoscaling.SetDesiredCapacityInput) (*autoscaling.SetDesiredCapacityOutput, error) SetDesiredCapacityWithContext(aws.Context, *autoscaling.SetDesiredCapacityInput, ...request.Option) (*autoscaling.SetDesiredCapacityOutput, error) SetDesiredCapacityRequest(*autoscaling.SetDesiredCapacityInput) (*request.Request, *autoscaling.SetDesiredCapacityOutput) SetInstanceHealth(*autoscaling.SetInstanceHealthInput) (*autoscaling.SetInstanceHealthOutput, error) SetInstanceHealthWithContext(aws.Context, *autoscaling.SetInstanceHealthInput, ...request.Option) (*autoscaling.SetInstanceHealthOutput, error) SetInstanceHealthRequest(*autoscaling.SetInstanceHealthInput) (*request.Request, *autoscaling.SetInstanceHealthOutput) SetInstanceProtection(*autoscaling.SetInstanceProtectionInput) (*autoscaling.SetInstanceProtectionOutput, error) SetInstanceProtectionWithContext(aws.Context, *autoscaling.SetInstanceProtectionInput, ...request.Option) (*autoscaling.SetInstanceProtectionOutput, error) SetInstanceProtectionRequest(*autoscaling.SetInstanceProtectionInput) (*request.Request, *autoscaling.SetInstanceProtectionOutput) StartInstanceRefresh(*autoscaling.StartInstanceRefreshInput) (*autoscaling.StartInstanceRefreshOutput, error) StartInstanceRefreshWithContext(aws.Context, *autoscaling.StartInstanceRefreshInput, ...request.Option) (*autoscaling.StartInstanceRefreshOutput, error) StartInstanceRefreshRequest(*autoscaling.StartInstanceRefreshInput) (*request.Request, *autoscaling.StartInstanceRefreshOutput) SuspendProcesses(*autoscaling.ScalingProcessQuery) (*autoscaling.SuspendProcessesOutput, error) SuspendProcessesWithContext(aws.Context, *autoscaling.ScalingProcessQuery, ...request.Option) (*autoscaling.SuspendProcessesOutput, error) SuspendProcessesRequest(*autoscaling.ScalingProcessQuery) (*request.Request, *autoscaling.SuspendProcessesOutput) TerminateInstanceInAutoScalingGroup(*autoscaling.TerminateInstanceInAutoScalingGroupInput) (*autoscaling.TerminateInstanceInAutoScalingGroupOutput, error) TerminateInstanceInAutoScalingGroupWithContext(aws.Context, *autoscaling.TerminateInstanceInAutoScalingGroupInput, ...request.Option) (*autoscaling.TerminateInstanceInAutoScalingGroupOutput, error) TerminateInstanceInAutoScalingGroupRequest(*autoscaling.TerminateInstanceInAutoScalingGroupInput) (*request.Request, *autoscaling.TerminateInstanceInAutoScalingGroupOutput) UpdateAutoScalingGroup(*autoscaling.UpdateAutoScalingGroupInput) (*autoscaling.UpdateAutoScalingGroupOutput, error) UpdateAutoScalingGroupWithContext(aws.Context, *autoscaling.UpdateAutoScalingGroupInput, ...request.Option) (*autoscaling.UpdateAutoScalingGroupOutput, error) UpdateAutoScalingGroupRequest(*autoscaling.UpdateAutoScalingGroupInput) (*request.Request, *autoscaling.UpdateAutoScalingGroupOutput) WaitUntilGroupExists(*autoscaling.DescribeAutoScalingGroupsInput) error WaitUntilGroupExistsWithContext(aws.Context, *autoscaling.DescribeAutoScalingGroupsInput, ...request.WaiterOption) error WaitUntilGroupInService(*autoscaling.DescribeAutoScalingGroupsInput) error WaitUntilGroupInServiceWithContext(aws.Context, *autoscaling.DescribeAutoScalingGroupsInput, ...request.WaiterOption) error WaitUntilGroupNotExists(*autoscaling.DescribeAutoScalingGroupsInput) error WaitUntilGroupNotExistsWithContext(aws.Context, *autoscaling.DescribeAutoScalingGroupsInput, ...request.WaiterOption) error } var _ AutoScalingAPI = (*autoscaling.AutoScaling)(nil)
342
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package autoscalingplans import ( "fmt" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) const opCreateScalingPlan = "CreateScalingPlan" // CreateScalingPlanRequest generates a "aws/request.Request" representing the // client's request for the CreateScalingPlan operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateScalingPlan for more information on using the CreateScalingPlan // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateScalingPlanRequest method. // req, resp := client.CreateScalingPlanRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/CreateScalingPlan func (c *AutoScalingPlans) CreateScalingPlanRequest(input *CreateScalingPlanInput) (req *request.Request, output *CreateScalingPlanOutput) { op := &request.Operation{ Name: opCreateScalingPlan, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateScalingPlanInput{} } output = &CreateScalingPlanOutput{} req = c.newRequest(op, input, output) return } // CreateScalingPlan API operation for AWS Auto Scaling Plans. // // Creates a scaling plan. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Auto Scaling Plans's // API operation CreateScalingPlan for usage and error information. // // Returned Error Types: // * ValidationException // An exception was thrown for a validation issue. Review the parameters provided. // // * LimitExceededException // Your account exceeded a limit. This exception is thrown when a per-account // resource limit is exceeded. // // * ConcurrentUpdateException // Concurrent updates caused an exception, for example, if you request an update // to a scaling plan that already has a pending update. // // * InternalServiceException // The service encountered an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/CreateScalingPlan func (c *AutoScalingPlans) CreateScalingPlan(input *CreateScalingPlanInput) (*CreateScalingPlanOutput, error) { req, out := c.CreateScalingPlanRequest(input) return out, req.Send() } // CreateScalingPlanWithContext is the same as CreateScalingPlan with the addition of // the ability to pass a context and additional request options. // // See CreateScalingPlan for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AutoScalingPlans) CreateScalingPlanWithContext(ctx aws.Context, input *CreateScalingPlanInput, opts ...request.Option) (*CreateScalingPlanOutput, error) { req, out := c.CreateScalingPlanRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteScalingPlan = "DeleteScalingPlan" // DeleteScalingPlanRequest generates a "aws/request.Request" representing the // client's request for the DeleteScalingPlan operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteScalingPlan for more information on using the DeleteScalingPlan // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteScalingPlanRequest method. // req, resp := client.DeleteScalingPlanRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DeleteScalingPlan func (c *AutoScalingPlans) DeleteScalingPlanRequest(input *DeleteScalingPlanInput) (req *request.Request, output *DeleteScalingPlanOutput) { op := &request.Operation{ Name: opDeleteScalingPlan, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteScalingPlanInput{} } output = &DeleteScalingPlanOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteScalingPlan API operation for AWS Auto Scaling Plans. // // Deletes the specified scaling plan. // // Deleting a scaling plan deletes the underlying ScalingInstruction for all // of the scalable resources that are covered by the plan. // // If the plan has launched resources or has scaling activities in progress, // you must delete those resources separately. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Auto Scaling Plans's // API operation DeleteScalingPlan for usage and error information. // // Returned Error Types: // * ValidationException // An exception was thrown for a validation issue. Review the parameters provided. // // * ObjectNotFoundException // The specified object could not be found. // // * ConcurrentUpdateException // Concurrent updates caused an exception, for example, if you request an update // to a scaling plan that already has a pending update. // // * InternalServiceException // The service encountered an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DeleteScalingPlan func (c *AutoScalingPlans) DeleteScalingPlan(input *DeleteScalingPlanInput) (*DeleteScalingPlanOutput, error) { req, out := c.DeleteScalingPlanRequest(input) return out, req.Send() } // DeleteScalingPlanWithContext is the same as DeleteScalingPlan with the addition of // the ability to pass a context and additional request options. // // See DeleteScalingPlan for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AutoScalingPlans) DeleteScalingPlanWithContext(ctx aws.Context, input *DeleteScalingPlanInput, opts ...request.Option) (*DeleteScalingPlanOutput, error) { req, out := c.DeleteScalingPlanRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeScalingPlanResources = "DescribeScalingPlanResources" // DescribeScalingPlanResourcesRequest generates a "aws/request.Request" representing the // client's request for the DescribeScalingPlanResources operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeScalingPlanResources for more information on using the DescribeScalingPlanResources // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeScalingPlanResourcesRequest method. // req, resp := client.DescribeScalingPlanResourcesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DescribeScalingPlanResources func (c *AutoScalingPlans) DescribeScalingPlanResourcesRequest(input *DescribeScalingPlanResourcesInput) (req *request.Request, output *DescribeScalingPlanResourcesOutput) { op := &request.Operation{ Name: opDescribeScalingPlanResources, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeScalingPlanResourcesInput{} } output = &DescribeScalingPlanResourcesOutput{} req = c.newRequest(op, input, output) return } // DescribeScalingPlanResources API operation for AWS Auto Scaling Plans. // // Describes the scalable resources in the specified scaling plan. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Auto Scaling Plans's // API operation DescribeScalingPlanResources for usage and error information. // // Returned Error Types: // * ValidationException // An exception was thrown for a validation issue. Review the parameters provided. // // * InvalidNextTokenException // The token provided is not valid. // // * ConcurrentUpdateException // Concurrent updates caused an exception, for example, if you request an update // to a scaling plan that already has a pending update. // // * InternalServiceException // The service encountered an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DescribeScalingPlanResources func (c *AutoScalingPlans) DescribeScalingPlanResources(input *DescribeScalingPlanResourcesInput) (*DescribeScalingPlanResourcesOutput, error) { req, out := c.DescribeScalingPlanResourcesRequest(input) return out, req.Send() } // DescribeScalingPlanResourcesWithContext is the same as DescribeScalingPlanResources with the addition of // the ability to pass a context and additional request options. // // See DescribeScalingPlanResources for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AutoScalingPlans) DescribeScalingPlanResourcesWithContext(ctx aws.Context, input *DescribeScalingPlanResourcesInput, opts ...request.Option) (*DescribeScalingPlanResourcesOutput, error) { req, out := c.DescribeScalingPlanResourcesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeScalingPlans = "DescribeScalingPlans" // DescribeScalingPlansRequest generates a "aws/request.Request" representing the // client's request for the DescribeScalingPlans operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeScalingPlans for more information on using the DescribeScalingPlans // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeScalingPlansRequest method. // req, resp := client.DescribeScalingPlansRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DescribeScalingPlans func (c *AutoScalingPlans) DescribeScalingPlansRequest(input *DescribeScalingPlansInput) (req *request.Request, output *DescribeScalingPlansOutput) { op := &request.Operation{ Name: opDescribeScalingPlans, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeScalingPlansInput{} } output = &DescribeScalingPlansOutput{} req = c.newRequest(op, input, output) return } // DescribeScalingPlans API operation for AWS Auto Scaling Plans. // // Describes one or more of your scaling plans. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Auto Scaling Plans's // API operation DescribeScalingPlans for usage and error information. // // Returned Error Types: // * ValidationException // An exception was thrown for a validation issue. Review the parameters provided. // // * InvalidNextTokenException // The token provided is not valid. // // * ConcurrentUpdateException // Concurrent updates caused an exception, for example, if you request an update // to a scaling plan that already has a pending update. // // * InternalServiceException // The service encountered an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DescribeScalingPlans func (c *AutoScalingPlans) DescribeScalingPlans(input *DescribeScalingPlansInput) (*DescribeScalingPlansOutput, error) { req, out := c.DescribeScalingPlansRequest(input) return out, req.Send() } // DescribeScalingPlansWithContext is the same as DescribeScalingPlans with the addition of // the ability to pass a context and additional request options. // // See DescribeScalingPlans for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AutoScalingPlans) DescribeScalingPlansWithContext(ctx aws.Context, input *DescribeScalingPlansInput, opts ...request.Option) (*DescribeScalingPlansOutput, error) { req, out := c.DescribeScalingPlansRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetScalingPlanResourceForecastData = "GetScalingPlanResourceForecastData" // GetScalingPlanResourceForecastDataRequest generates a "aws/request.Request" representing the // client's request for the GetScalingPlanResourceForecastData operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetScalingPlanResourceForecastData for more information on using the GetScalingPlanResourceForecastData // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetScalingPlanResourceForecastDataRequest method. // req, resp := client.GetScalingPlanResourceForecastDataRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/GetScalingPlanResourceForecastData func (c *AutoScalingPlans) GetScalingPlanResourceForecastDataRequest(input *GetScalingPlanResourceForecastDataInput) (req *request.Request, output *GetScalingPlanResourceForecastDataOutput) { op := &request.Operation{ Name: opGetScalingPlanResourceForecastData, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &GetScalingPlanResourceForecastDataInput{} } output = &GetScalingPlanResourceForecastDataOutput{} req = c.newRequest(op, input, output) return } // GetScalingPlanResourceForecastData API operation for AWS Auto Scaling Plans. // // Retrieves the forecast data for a scalable resource. // // Capacity forecasts are represented as predicted values, or data points, that // are calculated using historical data points from a specified CloudWatch load // metric. Data points are available for up to 56 days. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Auto Scaling Plans's // API operation GetScalingPlanResourceForecastData for usage and error information. // // Returned Error Types: // * ValidationException // An exception was thrown for a validation issue. Review the parameters provided. // // * InternalServiceException // The service encountered an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/GetScalingPlanResourceForecastData func (c *AutoScalingPlans) GetScalingPlanResourceForecastData(input *GetScalingPlanResourceForecastDataInput) (*GetScalingPlanResourceForecastDataOutput, error) { req, out := c.GetScalingPlanResourceForecastDataRequest(input) return out, req.Send() } // GetScalingPlanResourceForecastDataWithContext is the same as GetScalingPlanResourceForecastData with the addition of // the ability to pass a context and additional request options. // // See GetScalingPlanResourceForecastData for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AutoScalingPlans) GetScalingPlanResourceForecastDataWithContext(ctx aws.Context, input *GetScalingPlanResourceForecastDataInput, opts ...request.Option) (*GetScalingPlanResourceForecastDataOutput, error) { req, out := c.GetScalingPlanResourceForecastDataRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateScalingPlan = "UpdateScalingPlan" // UpdateScalingPlanRequest generates a "aws/request.Request" representing the // client's request for the UpdateScalingPlan operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateScalingPlan for more information on using the UpdateScalingPlan // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateScalingPlanRequest method. // req, resp := client.UpdateScalingPlanRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/UpdateScalingPlan func (c *AutoScalingPlans) UpdateScalingPlanRequest(input *UpdateScalingPlanInput) (req *request.Request, output *UpdateScalingPlanOutput) { op := &request.Operation{ Name: opUpdateScalingPlan, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &UpdateScalingPlanInput{} } output = &UpdateScalingPlanOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // UpdateScalingPlan API operation for AWS Auto Scaling Plans. // // Updates the specified scaling plan. // // You cannot update a scaling plan if it is in the process of being created, // updated, or deleted. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Auto Scaling Plans's // API operation UpdateScalingPlan for usage and error information. // // Returned Error Types: // * ValidationException // An exception was thrown for a validation issue. Review the parameters provided. // // * ConcurrentUpdateException // Concurrent updates caused an exception, for example, if you request an update // to a scaling plan that already has a pending update. // // * InternalServiceException // The service encountered an internal error. // // * ObjectNotFoundException // The specified object could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/UpdateScalingPlan func (c *AutoScalingPlans) UpdateScalingPlan(input *UpdateScalingPlanInput) (*UpdateScalingPlanOutput, error) { req, out := c.UpdateScalingPlanRequest(input) return out, req.Send() } // UpdateScalingPlanWithContext is the same as UpdateScalingPlan with the addition of // the ability to pass a context and additional request options. // // See UpdateScalingPlan for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *AutoScalingPlans) UpdateScalingPlanWithContext(ctx aws.Context, input *UpdateScalingPlanInput, opts ...request.Option) (*UpdateScalingPlanOutput, error) { req, out := c.UpdateScalingPlanRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // Represents an application source. type ApplicationSource struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of a AWS CloudFormation stack. CloudFormationStackARN *string `type:"string"` // A set of tags (up to 50). TagFilters []*TagFilter `type:"list"` } // String returns the string representation func (s ApplicationSource) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ApplicationSource) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ApplicationSource) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ApplicationSource"} if s.TagFilters != nil { for i, v := range s.TagFilters { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TagFilters", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCloudFormationStackARN sets the CloudFormationStackARN field's value. func (s *ApplicationSource) SetCloudFormationStackARN(v string) *ApplicationSource { s.CloudFormationStackARN = &v return s } // SetTagFilters sets the TagFilters field's value. func (s *ApplicationSource) SetTagFilters(v []*TagFilter) *ApplicationSource { s.TagFilters = v return s } // Concurrent updates caused an exception, for example, if you request an update // to a scaling plan that already has a pending update. type ConcurrentUpdateException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s ConcurrentUpdateException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ConcurrentUpdateException) GoString() string { return s.String() } func newErrorConcurrentUpdateException(v protocol.ResponseMetadata) error { return &ConcurrentUpdateException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ConcurrentUpdateException) Code() string { return "ConcurrentUpdateException" } // Message returns the exception's message. func (s *ConcurrentUpdateException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ConcurrentUpdateException) OrigErr() error { return nil } func (s *ConcurrentUpdateException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ConcurrentUpdateException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ConcurrentUpdateException) RequestID() string { return s.RespMetadata.RequestID } type CreateScalingPlanInput struct { _ struct{} `type:"structure"` // A CloudFormation stack or set of tags. You can create one scaling plan per // application source. // // For more information, see ApplicationSource (https://docs.aws.amazon.com/autoscaling/plans/APIReference/API_ApplicationSource.html) // in the AWS Auto Scaling API Reference. // // ApplicationSource is a required field ApplicationSource *ApplicationSource `type:"structure" required:"true"` // The scaling instructions. // // For more information, see ScalingInstruction (https://docs.aws.amazon.com/autoscaling/plans/APIReference/API_ScalingInstruction.html) // in the AWS Auto Scaling API Reference. // // ScalingInstructions is a required field ScalingInstructions []*ScalingInstruction `type:"list" required:"true"` // The name of the scaling plan. Names cannot contain vertical bars, colons, // or forward slashes. // // ScalingPlanName is a required field ScalingPlanName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s CreateScalingPlanInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateScalingPlanInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateScalingPlanInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateScalingPlanInput"} if s.ApplicationSource == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationSource")) } if s.ScalingInstructions == nil { invalidParams.Add(request.NewErrParamRequired("ScalingInstructions")) } if s.ScalingPlanName == nil { invalidParams.Add(request.NewErrParamRequired("ScalingPlanName")) } if s.ScalingPlanName != nil && len(*s.ScalingPlanName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ScalingPlanName", 1)) } if s.ApplicationSource != nil { if err := s.ApplicationSource.Validate(); err != nil { invalidParams.AddNested("ApplicationSource", err.(request.ErrInvalidParams)) } } if s.ScalingInstructions != nil { for i, v := range s.ScalingInstructions { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ScalingInstructions", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApplicationSource sets the ApplicationSource field's value. func (s *CreateScalingPlanInput) SetApplicationSource(v *ApplicationSource) *CreateScalingPlanInput { s.ApplicationSource = v return s } // SetScalingInstructions sets the ScalingInstructions field's value. func (s *CreateScalingPlanInput) SetScalingInstructions(v []*ScalingInstruction) *CreateScalingPlanInput { s.ScalingInstructions = v return s } // SetScalingPlanName sets the ScalingPlanName field's value. func (s *CreateScalingPlanInput) SetScalingPlanName(v string) *CreateScalingPlanInput { s.ScalingPlanName = &v return s } type CreateScalingPlanOutput struct { _ struct{} `type:"structure"` // The version number of the scaling plan. This value is always 1. Currently, // you cannot have multiple scaling plan versions. // // ScalingPlanVersion is a required field ScalingPlanVersion *int64 `type:"long" required:"true"` } // String returns the string representation func (s CreateScalingPlanOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateScalingPlanOutput) GoString() string { return s.String() } // SetScalingPlanVersion sets the ScalingPlanVersion field's value. func (s *CreateScalingPlanOutput) SetScalingPlanVersion(v int64) *CreateScalingPlanOutput { s.ScalingPlanVersion = &v return s } // Represents a CloudWatch metric of your choosing that can be used for predictive // scaling. // // For predictive scaling to work with a customized load metric specification, // AWS Auto Scaling needs access to the Sum and Average statistics that CloudWatch // computes from metric data. // // When you choose a load metric, make sure that the required Sum and Average // statistics for your metric are available in CloudWatch and that they provide // relevant data for predictive scaling. The Sum statistic must represent the // total load on the resource, and the Average statistic must represent the // average load per capacity unit of the resource. For example, there is a metric // that counts the number of requests processed by your Auto Scaling group. // If the Sum statistic represents the total request count processed by the // group, then the Average statistic for the specified metric must represent // the average request count processed by each instance of the group. // // If you publish your own metrics, you can aggregate the data points at a given // interval and then publish the aggregated data points to CloudWatch. Before // AWS Auto Scaling generates the forecast, it sums up all the metric data points // that occurred within each hour to match the granularity period that is used // in the forecast (60 minutes). // // For information about terminology, available metrics, or how to publish new // metrics, see Amazon CloudWatch Concepts (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html) // in the Amazon CloudWatch User Guide. // // After creating your scaling plan, you can use the AWS Auto Scaling console // to visualize forecasts for the specified metric. For more information, see // View Scaling Information for a Resource (https://docs.aws.amazon.com/autoscaling/plans/userguide/gs-create-scaling-plan.html#gs-view-resource) // in the AWS Auto Scaling User Guide. type CustomizedLoadMetricSpecification struct { _ struct{} `type:"structure"` // The dimensions of the metric. // // Conditional: If you published your metric with dimensions, you must specify // the same dimensions in your customized load metric specification. Dimensions []*MetricDimension `type:"list"` // The name of the metric. // // MetricName is a required field MetricName *string `type:"string" required:"true"` // The namespace of the metric. // // Namespace is a required field Namespace *string `type:"string" required:"true"` // The statistic of the metric. The only valid value is Sum. // // Statistic is a required field Statistic *string `type:"string" required:"true" enum:"MetricStatistic"` // The unit of the metric. Unit *string `type:"string"` } // String returns the string representation func (s CustomizedLoadMetricSpecification) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CustomizedLoadMetricSpecification) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CustomizedLoadMetricSpecification) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CustomizedLoadMetricSpecification"} if s.MetricName == nil { invalidParams.Add(request.NewErrParamRequired("MetricName")) } if s.Namespace == nil { invalidParams.Add(request.NewErrParamRequired("Namespace")) } if s.Statistic == nil { invalidParams.Add(request.NewErrParamRequired("Statistic")) } if s.Dimensions != nil { for i, v := range s.Dimensions { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Dimensions", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDimensions sets the Dimensions field's value. func (s *CustomizedLoadMetricSpecification) SetDimensions(v []*MetricDimension) *CustomizedLoadMetricSpecification { s.Dimensions = v return s } // SetMetricName sets the MetricName field's value. func (s *CustomizedLoadMetricSpecification) SetMetricName(v string) *CustomizedLoadMetricSpecification { s.MetricName = &v return s } // SetNamespace sets the Namespace field's value. func (s *CustomizedLoadMetricSpecification) SetNamespace(v string) *CustomizedLoadMetricSpecification { s.Namespace = &v return s } // SetStatistic sets the Statistic field's value. func (s *CustomizedLoadMetricSpecification) SetStatistic(v string) *CustomizedLoadMetricSpecification { s.Statistic = &v return s } // SetUnit sets the Unit field's value. func (s *CustomizedLoadMetricSpecification) SetUnit(v string) *CustomizedLoadMetricSpecification { s.Unit = &v return s } // Represents a CloudWatch metric of your choosing that can be used for dynamic // scaling as part of a target tracking scaling policy. // // To create your customized scaling metric specification: // // * Add values for each required parameter from CloudWatch. You can use // an existing metric, or a new metric that you create. To use your own metric, // you must first publish the metric to CloudWatch. For more information, // see Publish Custom Metrics (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html) // in the Amazon CloudWatch User Guide. // // * Choose a metric that changes proportionally with capacity. The value // of the metric should increase or decrease in inverse proportion to the // number of capacity units. That is, the value of the metric should decrease // when capacity increases. // // For information about terminology, available metrics, or how to publish new // metrics, see Amazon CloudWatch Concepts (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html) // in the Amazon CloudWatch User Guide. type CustomizedScalingMetricSpecification struct { _ struct{} `type:"structure"` // The dimensions of the metric. // // Conditional: If you published your metric with dimensions, you must specify // the same dimensions in your customized scaling metric specification. Dimensions []*MetricDimension `type:"list"` // The name of the metric. // // MetricName is a required field MetricName *string `type:"string" required:"true"` // The namespace of the metric. // // Namespace is a required field Namespace *string `type:"string" required:"true"` // The statistic of the metric. // // Statistic is a required field Statistic *string `type:"string" required:"true" enum:"MetricStatistic"` // The unit of the metric. Unit *string `type:"string"` } // String returns the string representation func (s CustomizedScalingMetricSpecification) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CustomizedScalingMetricSpecification) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CustomizedScalingMetricSpecification) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CustomizedScalingMetricSpecification"} if s.MetricName == nil { invalidParams.Add(request.NewErrParamRequired("MetricName")) } if s.Namespace == nil { invalidParams.Add(request.NewErrParamRequired("Namespace")) } if s.Statistic == nil { invalidParams.Add(request.NewErrParamRequired("Statistic")) } if s.Dimensions != nil { for i, v := range s.Dimensions { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Dimensions", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDimensions sets the Dimensions field's value. func (s *CustomizedScalingMetricSpecification) SetDimensions(v []*MetricDimension) *CustomizedScalingMetricSpecification { s.Dimensions = v return s } // SetMetricName sets the MetricName field's value. func (s *CustomizedScalingMetricSpecification) SetMetricName(v string) *CustomizedScalingMetricSpecification { s.MetricName = &v return s } // SetNamespace sets the Namespace field's value. func (s *CustomizedScalingMetricSpecification) SetNamespace(v string) *CustomizedScalingMetricSpecification { s.Namespace = &v return s } // SetStatistic sets the Statistic field's value. func (s *CustomizedScalingMetricSpecification) SetStatistic(v string) *CustomizedScalingMetricSpecification { s.Statistic = &v return s } // SetUnit sets the Unit field's value. func (s *CustomizedScalingMetricSpecification) SetUnit(v string) *CustomizedScalingMetricSpecification { s.Unit = &v return s } // Represents a single value in the forecast data used for predictive scaling. type Datapoint struct { _ struct{} `type:"structure"` // The time stamp for the data point in UTC format. Timestamp *time.Time `type:"timestamp"` // The value of the data point. Value *float64 `type:"double"` } // String returns the string representation func (s Datapoint) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Datapoint) GoString() string { return s.String() } // SetTimestamp sets the Timestamp field's value. func (s *Datapoint) SetTimestamp(v time.Time) *Datapoint { s.Timestamp = &v return s } // SetValue sets the Value field's value. func (s *Datapoint) SetValue(v float64) *Datapoint { s.Value = &v return s } type DeleteScalingPlanInput struct { _ struct{} `type:"structure"` // The name of the scaling plan. // // ScalingPlanName is a required field ScalingPlanName *string `min:"1" type:"string" required:"true"` // The version number of the scaling plan. Currently, the only valid value is // 1. // // ScalingPlanVersion is a required field ScalingPlanVersion *int64 `type:"long" required:"true"` } // String returns the string representation func (s DeleteScalingPlanInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteScalingPlanInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteScalingPlanInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteScalingPlanInput"} if s.ScalingPlanName == nil { invalidParams.Add(request.NewErrParamRequired("ScalingPlanName")) } if s.ScalingPlanName != nil && len(*s.ScalingPlanName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ScalingPlanName", 1)) } if s.ScalingPlanVersion == nil { invalidParams.Add(request.NewErrParamRequired("ScalingPlanVersion")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetScalingPlanName sets the ScalingPlanName field's value. func (s *DeleteScalingPlanInput) SetScalingPlanName(v string) *DeleteScalingPlanInput { s.ScalingPlanName = &v return s } // SetScalingPlanVersion sets the ScalingPlanVersion field's value. func (s *DeleteScalingPlanInput) SetScalingPlanVersion(v int64) *DeleteScalingPlanInput { s.ScalingPlanVersion = &v return s } type DeleteScalingPlanOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteScalingPlanOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteScalingPlanOutput) GoString() string { return s.String() } type DescribeScalingPlanResourcesInput struct { _ struct{} `type:"structure"` // The maximum number of scalable resources to return. The value must be between // 1 and 50. The default value is 50. MaxResults *int64 `type:"integer"` // The token for the next set of results. NextToken *string `type:"string"` // The name of the scaling plan. // // ScalingPlanName is a required field ScalingPlanName *string `min:"1" type:"string" required:"true"` // The version number of the scaling plan. Currently, the only valid value is // 1. // // ScalingPlanVersion is a required field ScalingPlanVersion *int64 `type:"long" required:"true"` } // String returns the string representation func (s DescribeScalingPlanResourcesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeScalingPlanResourcesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeScalingPlanResourcesInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeScalingPlanResourcesInput"} if s.ScalingPlanName == nil { invalidParams.Add(request.NewErrParamRequired("ScalingPlanName")) } if s.ScalingPlanName != nil && len(*s.ScalingPlanName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ScalingPlanName", 1)) } if s.ScalingPlanVersion == nil { invalidParams.Add(request.NewErrParamRequired("ScalingPlanVersion")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxResults sets the MaxResults field's value. func (s *DescribeScalingPlanResourcesInput) SetMaxResults(v int64) *DescribeScalingPlanResourcesInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeScalingPlanResourcesInput) SetNextToken(v string) *DescribeScalingPlanResourcesInput { s.NextToken = &v return s } // SetScalingPlanName sets the ScalingPlanName field's value. func (s *DescribeScalingPlanResourcesInput) SetScalingPlanName(v string) *DescribeScalingPlanResourcesInput { s.ScalingPlanName = &v return s } // SetScalingPlanVersion sets the ScalingPlanVersion field's value. func (s *DescribeScalingPlanResourcesInput) SetScalingPlanVersion(v int64) *DescribeScalingPlanResourcesInput { s.ScalingPlanVersion = &v return s } type DescribeScalingPlanResourcesOutput struct { _ struct{} `type:"structure"` // The token required to get the next set of results. This value is null if // there are no more results to return. NextToken *string `type:"string"` // Information about the scalable resources. ScalingPlanResources []*ScalingPlanResource `type:"list"` } // String returns the string representation func (s DescribeScalingPlanResourcesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeScalingPlanResourcesOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *DescribeScalingPlanResourcesOutput) SetNextToken(v string) *DescribeScalingPlanResourcesOutput { s.NextToken = &v return s } // SetScalingPlanResources sets the ScalingPlanResources field's value. func (s *DescribeScalingPlanResourcesOutput) SetScalingPlanResources(v []*ScalingPlanResource) *DescribeScalingPlanResourcesOutput { s.ScalingPlanResources = v return s } type DescribeScalingPlansInput struct { _ struct{} `type:"structure"` // The sources for the applications (up to 10). If you specify scaling plan // names, you cannot specify application sources. ApplicationSources []*ApplicationSource `type:"list"` // The maximum number of scalable resources to return. This value can be between // 1 and 50. The default value is 50. MaxResults *int64 `type:"integer"` // The token for the next set of results. NextToken *string `type:"string"` // The names of the scaling plans (up to 10). If you specify application sources, // you cannot specify scaling plan names. ScalingPlanNames []*string `type:"list"` // The version number of the scaling plan. Currently, the only valid value is // 1. // // If you specify a scaling plan version, you must also specify a scaling plan // name. ScalingPlanVersion *int64 `type:"long"` } // String returns the string representation func (s DescribeScalingPlansInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeScalingPlansInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeScalingPlansInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeScalingPlansInput"} if s.ApplicationSources != nil { for i, v := range s.ApplicationSources { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ApplicationSources", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApplicationSources sets the ApplicationSources field's value. func (s *DescribeScalingPlansInput) SetApplicationSources(v []*ApplicationSource) *DescribeScalingPlansInput { s.ApplicationSources = v return s } // SetMaxResults sets the MaxResults field's value. func (s *DescribeScalingPlansInput) SetMaxResults(v int64) *DescribeScalingPlansInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeScalingPlansInput) SetNextToken(v string) *DescribeScalingPlansInput { s.NextToken = &v return s } // SetScalingPlanNames sets the ScalingPlanNames field's value. func (s *DescribeScalingPlansInput) SetScalingPlanNames(v []*string) *DescribeScalingPlansInput { s.ScalingPlanNames = v return s } // SetScalingPlanVersion sets the ScalingPlanVersion field's value. func (s *DescribeScalingPlansInput) SetScalingPlanVersion(v int64) *DescribeScalingPlansInput { s.ScalingPlanVersion = &v return s } type DescribeScalingPlansOutput struct { _ struct{} `type:"structure"` // The token required to get the next set of results. This value is null if // there are no more results to return. NextToken *string `type:"string"` // Information about the scaling plans. ScalingPlans []*ScalingPlan `type:"list"` } // String returns the string representation func (s DescribeScalingPlansOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeScalingPlansOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *DescribeScalingPlansOutput) SetNextToken(v string) *DescribeScalingPlansOutput { s.NextToken = &v return s } // SetScalingPlans sets the ScalingPlans field's value. func (s *DescribeScalingPlansOutput) SetScalingPlans(v []*ScalingPlan) *DescribeScalingPlansOutput { s.ScalingPlans = v return s } type GetScalingPlanResourceForecastDataInput struct { _ struct{} `type:"structure"` // The exclusive end time of the time range for the forecast data to get. The // maximum time duration between the start and end time is seven days. // // Although this parameter can accept a date and time that is more than two // days in the future, the availability of forecast data has limits. AWS Auto // Scaling only issues forecasts for periods of two days in advance. // // EndTime is a required field EndTime *time.Time `type:"timestamp" required:"true"` // The type of forecast data to get. // // * LoadForecast: The load metric forecast. // // * CapacityForecast: The capacity forecast. // // * ScheduledActionMinCapacity: The minimum capacity for each scheduled // scaling action. This data is calculated as the larger of two values: the // capacity forecast or the minimum capacity in the scaling instruction. // // * ScheduledActionMaxCapacity: The maximum capacity for each scheduled // scaling action. The calculation used is determined by the predictive scaling // maximum capacity behavior setting in the scaling instruction. // // ForecastDataType is a required field ForecastDataType *string `type:"string" required:"true" enum:"ForecastDataType"` // The ID of the resource. This string consists of a prefix (autoScalingGroup) // followed by the name of a specified Auto Scaling group (my-asg). Example: // autoScalingGroup/my-asg. // // ResourceId is a required field ResourceId *string `type:"string" required:"true"` // The scalable dimension for the resource. The only valid value is autoscaling:autoScalingGroup:DesiredCapacity. // // ScalableDimension is a required field ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"` // The name of the scaling plan. // // ScalingPlanName is a required field ScalingPlanName *string `min:"1" type:"string" required:"true"` // The version number of the scaling plan. Currently, the only valid value is // 1. // // ScalingPlanVersion is a required field ScalingPlanVersion *int64 `type:"long" required:"true"` // The namespace of the AWS service. The only valid value is autoscaling. // // ServiceNamespace is a required field ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"` // The inclusive start time of the time range for the forecast data to get. // The date and time can be at most 56 days before the current date and time. // // StartTime is a required field StartTime *time.Time `type:"timestamp" required:"true"` } // String returns the string representation func (s GetScalingPlanResourceForecastDataInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetScalingPlanResourceForecastDataInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetScalingPlanResourceForecastDataInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetScalingPlanResourceForecastDataInput"} if s.EndTime == nil { invalidParams.Add(request.NewErrParamRequired("EndTime")) } if s.ForecastDataType == nil { invalidParams.Add(request.NewErrParamRequired("ForecastDataType")) } if s.ResourceId == nil { invalidParams.Add(request.NewErrParamRequired("ResourceId")) } if s.ScalableDimension == nil { invalidParams.Add(request.NewErrParamRequired("ScalableDimension")) } if s.ScalingPlanName == nil { invalidParams.Add(request.NewErrParamRequired("ScalingPlanName")) } if s.ScalingPlanName != nil && len(*s.ScalingPlanName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ScalingPlanName", 1)) } if s.ScalingPlanVersion == nil { invalidParams.Add(request.NewErrParamRequired("ScalingPlanVersion")) } if s.ServiceNamespace == nil { invalidParams.Add(request.NewErrParamRequired("ServiceNamespace")) } if s.StartTime == nil { invalidParams.Add(request.NewErrParamRequired("StartTime")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetEndTime sets the EndTime field's value. func (s *GetScalingPlanResourceForecastDataInput) SetEndTime(v time.Time) *GetScalingPlanResourceForecastDataInput { s.EndTime = &v return s } // SetForecastDataType sets the ForecastDataType field's value. func (s *GetScalingPlanResourceForecastDataInput) SetForecastDataType(v string) *GetScalingPlanResourceForecastDataInput { s.ForecastDataType = &v return s } // SetResourceId sets the ResourceId field's value. func (s *GetScalingPlanResourceForecastDataInput) SetResourceId(v string) *GetScalingPlanResourceForecastDataInput { s.ResourceId = &v return s } // SetScalableDimension sets the ScalableDimension field's value. func (s *GetScalingPlanResourceForecastDataInput) SetScalableDimension(v string) *GetScalingPlanResourceForecastDataInput { s.ScalableDimension = &v return s } // SetScalingPlanName sets the ScalingPlanName field's value. func (s *GetScalingPlanResourceForecastDataInput) SetScalingPlanName(v string) *GetScalingPlanResourceForecastDataInput { s.ScalingPlanName = &v return s } // SetScalingPlanVersion sets the ScalingPlanVersion field's value. func (s *GetScalingPlanResourceForecastDataInput) SetScalingPlanVersion(v int64) *GetScalingPlanResourceForecastDataInput { s.ScalingPlanVersion = &v return s } // SetServiceNamespace sets the ServiceNamespace field's value. func (s *GetScalingPlanResourceForecastDataInput) SetServiceNamespace(v string) *GetScalingPlanResourceForecastDataInput { s.ServiceNamespace = &v return s } // SetStartTime sets the StartTime field's value. func (s *GetScalingPlanResourceForecastDataInput) SetStartTime(v time.Time) *GetScalingPlanResourceForecastDataInput { s.StartTime = &v return s } type GetScalingPlanResourceForecastDataOutput struct { _ struct{} `type:"structure"` // The data points to return. // // Datapoints is a required field Datapoints []*Datapoint `type:"list" required:"true"` } // String returns the string representation func (s GetScalingPlanResourceForecastDataOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetScalingPlanResourceForecastDataOutput) GoString() string { return s.String() } // SetDatapoints sets the Datapoints field's value. func (s *GetScalingPlanResourceForecastDataOutput) SetDatapoints(v []*Datapoint) *GetScalingPlanResourceForecastDataOutput { s.Datapoints = v return s } // The service encountered an internal error. type InternalServiceException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s InternalServiceException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s InternalServiceException) GoString() string { return s.String() } func newErrorInternalServiceException(v protocol.ResponseMetadata) error { return &InternalServiceException{ RespMetadata: v, } } // Code returns the exception type name. func (s *InternalServiceException) Code() string { return "InternalServiceException" } // Message returns the exception's message. func (s *InternalServiceException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *InternalServiceException) OrigErr() error { return nil } func (s *InternalServiceException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *InternalServiceException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *InternalServiceException) RequestID() string { return s.RespMetadata.RequestID } // The token provided is not valid. type InvalidNextTokenException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s InvalidNextTokenException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s InvalidNextTokenException) GoString() string { return s.String() } func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error { return &InvalidNextTokenException{ RespMetadata: v, } } // Code returns the exception type name. func (s *InvalidNextTokenException) Code() string { return "InvalidNextTokenException" } // Message returns the exception's message. func (s *InvalidNextTokenException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *InvalidNextTokenException) OrigErr() error { return nil } func (s *InvalidNextTokenException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *InvalidNextTokenException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *InvalidNextTokenException) RequestID() string { return s.RespMetadata.RequestID } // Your account exceeded a limit. This exception is thrown when a per-account // resource limit is exceeded. type LimitExceededException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s LimitExceededException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s LimitExceededException) GoString() string { return s.String() } func newErrorLimitExceededException(v protocol.ResponseMetadata) error { return &LimitExceededException{ RespMetadata: v, } } // Code returns the exception type name. func (s *LimitExceededException) Code() string { return "LimitExceededException" } // Message returns the exception's message. func (s *LimitExceededException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *LimitExceededException) OrigErr() error { return nil } func (s *LimitExceededException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *LimitExceededException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *LimitExceededException) RequestID() string { return s.RespMetadata.RequestID } // Represents a dimension for a customized metric. type MetricDimension struct { _ struct{} `type:"structure"` // The name of the dimension. // // Name is a required field Name *string `type:"string" required:"true"` // The value of the dimension. // // Value is a required field Value *string `type:"string" required:"true"` } // String returns the string representation func (s MetricDimension) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s MetricDimension) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *MetricDimension) Validate() error { invalidParams := request.ErrInvalidParams{Context: "MetricDimension"} if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Value == nil { invalidParams.Add(request.NewErrParamRequired("Value")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetName sets the Name field's value. func (s *MetricDimension) SetName(v string) *MetricDimension { s.Name = &v return s } // SetValue sets the Value field's value. func (s *MetricDimension) SetValue(v string) *MetricDimension { s.Value = &v return s } // The specified object could not be found. type ObjectNotFoundException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s ObjectNotFoundException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ObjectNotFoundException) GoString() string { return s.String() } func newErrorObjectNotFoundException(v protocol.ResponseMetadata) error { return &ObjectNotFoundException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ObjectNotFoundException) Code() string { return "ObjectNotFoundException" } // Message returns the exception's message. func (s *ObjectNotFoundException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ObjectNotFoundException) OrigErr() error { return nil } func (s *ObjectNotFoundException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ObjectNotFoundException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ObjectNotFoundException) RequestID() string { return s.RespMetadata.RequestID } // Represents a predefined metric that can be used for predictive scaling. // // After creating your scaling plan, you can use the AWS Auto Scaling console // to visualize forecasts for the specified metric. For more information, see // View Scaling Information for a Resource (https://docs.aws.amazon.com/autoscaling/plans/userguide/gs-create-scaling-plan.html#gs-view-resource) // in the AWS Auto Scaling User Guide. type PredefinedLoadMetricSpecification struct { _ struct{} `type:"structure"` // The metric type. // // PredefinedLoadMetricType is a required field PredefinedLoadMetricType *string `type:"string" required:"true" enum:"LoadMetricType"` // Identifies the resource associated with the metric type. You can't specify // a resource label unless the metric type is ALBTargetGroupRequestCount and // there is a target group for an Application Load Balancer attached to the // Auto Scaling group. // // You create the resource label by appending the final portion of the load // balancer ARN and the final portion of the target group ARN into a single // value, separated by a forward slash (/). The format is app/<load-balancer-name>/<load-balancer-id>/targetgroup/<target-group-name>/<target-group-id>, // where: // // * app/<load-balancer-name>/<load-balancer-id> is the final portion of // the load balancer ARN // // * targetgroup/<target-group-name>/<target-group-id> is the final portion // of the target group ARN. // // This is an example: app/EC2Co-EcsEl-1TKLTMITMM0EO/f37c06a68c1748aa/targetgroup/EC2Co-Defau-LDNM7Q3ZH1ZN/6d4ea56ca2d6a18d. // // To find the ARN for an Application Load Balancer, use the DescribeLoadBalancers // (https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeLoadBalancers.html) // API operation. To find the ARN for the target group, use the DescribeTargetGroups // (https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeTargetGroups.html) // API operation. ResourceLabel *string `min:"1" type:"string"` } // String returns the string representation func (s PredefinedLoadMetricSpecification) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s PredefinedLoadMetricSpecification) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *PredefinedLoadMetricSpecification) Validate() error { invalidParams := request.ErrInvalidParams{Context: "PredefinedLoadMetricSpecification"} if s.PredefinedLoadMetricType == nil { invalidParams.Add(request.NewErrParamRequired("PredefinedLoadMetricType")) } if s.ResourceLabel != nil && len(*s.ResourceLabel) < 1 { invalidParams.Add(request.NewErrParamMinLen("ResourceLabel", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetPredefinedLoadMetricType sets the PredefinedLoadMetricType field's value. func (s *PredefinedLoadMetricSpecification) SetPredefinedLoadMetricType(v string) *PredefinedLoadMetricSpecification { s.PredefinedLoadMetricType = &v return s } // SetResourceLabel sets the ResourceLabel field's value. func (s *PredefinedLoadMetricSpecification) SetResourceLabel(v string) *PredefinedLoadMetricSpecification { s.ResourceLabel = &v return s } // Represents a predefined metric that can be used for dynamic scaling as part // of a target tracking scaling policy. type PredefinedScalingMetricSpecification struct { _ struct{} `type:"structure"` // The metric type. The ALBRequestCountPerTarget metric type applies only to // Auto Scaling groups, Spot Fleet requests, and ECS services. // // PredefinedScalingMetricType is a required field PredefinedScalingMetricType *string `type:"string" required:"true" enum:"ScalingMetricType"` // Identifies the resource associated with the metric type. You can't specify // a resource label unless the metric type is ALBRequestCountPerTarget and there // is a target group for an Application Load Balancer attached to the Auto Scaling // group, Spot Fleet request, or ECS service. // // You create the resource label by appending the final portion of the load // balancer ARN and the final portion of the target group ARN into a single // value, separated by a forward slash (/). The format is app/<load-balancer-name>/<load-balancer-id>/targetgroup/<target-group-name>/<target-group-id>, // where: // // * app/<load-balancer-name>/<load-balancer-id> is the final portion of // the load balancer ARN // // * targetgroup/<target-group-name>/<target-group-id> is the final portion // of the target group ARN. // // This is an example: app/EC2Co-EcsEl-1TKLTMITMM0EO/f37c06a68c1748aa/targetgroup/EC2Co-Defau-LDNM7Q3ZH1ZN/6d4ea56ca2d6a18d. // // To find the ARN for an Application Load Balancer, use the DescribeLoadBalancers // (https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeLoadBalancers.html) // API operation. To find the ARN for the target group, use the DescribeTargetGroups // (https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeTargetGroups.html) // API operation. ResourceLabel *string `min:"1" type:"string"` } // String returns the string representation func (s PredefinedScalingMetricSpecification) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s PredefinedScalingMetricSpecification) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *PredefinedScalingMetricSpecification) Validate() error { invalidParams := request.ErrInvalidParams{Context: "PredefinedScalingMetricSpecification"} if s.PredefinedScalingMetricType == nil { invalidParams.Add(request.NewErrParamRequired("PredefinedScalingMetricType")) } if s.ResourceLabel != nil && len(*s.ResourceLabel) < 1 { invalidParams.Add(request.NewErrParamMinLen("ResourceLabel", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetPredefinedScalingMetricType sets the PredefinedScalingMetricType field's value. func (s *PredefinedScalingMetricSpecification) SetPredefinedScalingMetricType(v string) *PredefinedScalingMetricSpecification { s.PredefinedScalingMetricType = &v return s } // SetResourceLabel sets the ResourceLabel field's value. func (s *PredefinedScalingMetricSpecification) SetResourceLabel(v string) *PredefinedScalingMetricSpecification { s.ResourceLabel = &v return s } // Describes a scaling instruction for a scalable resource in a scaling plan. // Each scaling instruction applies to one resource. // // AWS Auto Scaling creates target tracking scaling policies based on the scaling // instructions. Target tracking scaling policies adjust the capacity of your // scalable resource as required to maintain resource utilization at the target // value that you specified. // // AWS Auto Scaling also configures predictive scaling for your Amazon EC2 Auto // Scaling groups using a subset of parameters, including the load metric, the // scaling metric, the target value for the scaling metric, the predictive scaling // mode (forecast and scale or forecast only), and the desired behavior when // the forecast capacity exceeds the maximum capacity of the resource. With // predictive scaling, AWS Auto Scaling generates forecasts with traffic predictions // for the two days ahead and schedules scaling actions that proactively add // and remove resource capacity to match the forecast. // // We recommend waiting a minimum of 24 hours after creating an Auto Scaling // group to configure predictive scaling. At minimum, there must be 24 hours // of historical data to generate a forecast. For more information, see Best // Practices for AWS Auto Scaling (https://docs.aws.amazon.com/autoscaling/plans/userguide/gs-best-practices.html) // in the AWS Auto Scaling User Guide. type ScalingInstruction struct { _ struct{} `type:"structure"` // The customized load metric to use for predictive scaling. This parameter // or a PredefinedLoadMetricSpecification is required when configuring predictive // scaling, and cannot be used otherwise. CustomizedLoadMetricSpecification *CustomizedLoadMetricSpecification `type:"structure"` // Controls whether dynamic scaling by AWS Auto Scaling is disabled. When dynamic // scaling is enabled, AWS Auto Scaling creates target tracking scaling policies // based on the specified target tracking configurations. // // The default is enabled (false). DisableDynamicScaling *bool `type:"boolean"` // The maximum capacity of the resource. The exception to this upper limit is // if you specify a non-default setting for PredictiveScalingMaxCapacityBehavior. // // MaxCapacity is a required field MaxCapacity *int64 `type:"integer" required:"true"` // The minimum capacity of the resource. // // MinCapacity is a required field MinCapacity *int64 `type:"integer" required:"true"` // The predefined load metric to use for predictive scaling. This parameter // or a CustomizedLoadMetricSpecification is required when configuring predictive // scaling, and cannot be used otherwise. PredefinedLoadMetricSpecification *PredefinedLoadMetricSpecification `type:"structure"` // Defines the behavior that should be applied if the forecast capacity approaches // or exceeds the maximum capacity specified for the resource. The default value // is SetForecastCapacityToMaxCapacity. // // The following are possible values: // // * SetForecastCapacityToMaxCapacity - AWS Auto Scaling cannot scale resource // capacity higher than the maximum capacity. The maximum capacity is enforced // as a hard limit. // // * SetMaxCapacityToForecastCapacity - AWS Auto Scaling may scale resource // capacity higher than the maximum capacity to equal but not exceed forecast // capacity. // // * SetMaxCapacityAboveForecastCapacity - AWS Auto Scaling may scale resource // capacity higher than the maximum capacity by a specified buffer value. // The intention is to give the target tracking scaling policy extra capacity // if unexpected traffic occurs. // // Only valid when configuring predictive scaling. PredictiveScalingMaxCapacityBehavior *string `type:"string" enum:"PredictiveScalingMaxCapacityBehavior"` // The size of the capacity buffer to use when the forecast capacity is close // to or exceeds the maximum capacity. The value is specified as a percentage // relative to the forecast capacity. For example, if the buffer is 10, this // means a 10 percent buffer, such that if the forecast capacity is 50, and // the maximum capacity is 40, then the effective maximum capacity is 55. // // Only valid when configuring predictive scaling. Required if the PredictiveScalingMaxCapacityBehavior // is set to SetMaxCapacityAboveForecastCapacity, and cannot be used otherwise. // // The range is 1-100. PredictiveScalingMaxCapacityBuffer *int64 `type:"integer"` // The predictive scaling mode. The default value is ForecastAndScale. Otherwise, // AWS Auto Scaling forecasts capacity but does not create any scheduled scaling // actions based on the capacity forecast. PredictiveScalingMode *string `type:"string" enum:"PredictiveScalingMode"` // The ID of the resource. This string consists of the resource type and unique // identifier. // // * Auto Scaling group - The resource type is autoScalingGroup and the unique // identifier is the name of the Auto Scaling group. Example: autoScalingGroup/my-asg. // // * ECS service - The resource type is service and the unique identifier // is the cluster name and service name. Example: service/default/sample-webapp. // // * Spot Fleet request - The resource type is spot-fleet-request and the // unique identifier is the Spot Fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. // // * DynamoDB table - The resource type is table and the unique identifier // is the resource ID. Example: table/my-table. // // * DynamoDB global secondary index - The resource type is index and the // unique identifier is the resource ID. Example: table/my-table/index/my-table-index. // // * Aurora DB cluster - The resource type is cluster and the unique identifier // is the cluster name. Example: cluster:my-db-cluster. // // ResourceId is a required field ResourceId *string `min:"1" type:"string" required:"true"` // The scalable dimension associated with the resource. // // * autoscaling:autoScalingGroup:DesiredCapacity - The desired capacity // of an Auto Scaling group. // // * ecs:service:DesiredCount - The desired task count of an ECS service. // // * ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot // Fleet request. // // * dynamodb:table:ReadCapacityUnits - The provisioned read capacity for // a DynamoDB table. // // * dynamodb:table:WriteCapacityUnits - The provisioned write capacity for // a DynamoDB table. // // * dynamodb:index:ReadCapacityUnits - The provisioned read capacity for // a DynamoDB global secondary index. // // * dynamodb:index:WriteCapacityUnits - The provisioned write capacity for // a DynamoDB global secondary index. // // * rds:cluster:ReadReplicaCount - The count of Aurora Replicas in an Aurora // DB cluster. Available for Aurora MySQL-compatible edition and Aurora PostgreSQL-compatible // edition. // // ScalableDimension is a required field ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"` // Controls whether a resource's externally created scaling policies are kept // or replaced. // // The default value is KeepExternalPolicies. If the parameter is set to ReplaceExternalPolicies, // any scaling policies that are external to AWS Auto Scaling are deleted and // new target tracking scaling policies created. // // Only valid when configuring dynamic scaling. // // Condition: The number of existing policies to be replaced must be less than // or equal to 50. If there are more than 50 policies to be replaced, AWS Auto // Scaling keeps all existing policies and does not create new ones. ScalingPolicyUpdateBehavior *string `type:"string" enum:"ScalingPolicyUpdateBehavior"` // The amount of time, in seconds, to buffer the run time of scheduled scaling // actions when scaling out. For example, if the forecast says to add capacity // at 10:00 AM, and the buffer time is 5 minutes, then the run time of the corresponding // scheduled scaling action will be 9:55 AM. The intention is to give resources // time to be provisioned. For example, it can take a few minutes to launch // an EC2 instance. The actual amount of time required depends on several factors, // such as the size of the instance and whether there are startup scripts to // complete. // // The value must be less than the forecast interval duration of 3600 seconds // (60 minutes). The default is 300 seconds. // // Only valid when configuring predictive scaling. ScheduledActionBufferTime *int64 `type:"integer"` // The namespace of the AWS service. // // ServiceNamespace is a required field ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"` // The target tracking configurations (up to 10). Each of these structures must // specify a unique scaling metric and a target value for the metric. // // TargetTrackingConfigurations is a required field TargetTrackingConfigurations []*TargetTrackingConfiguration `type:"list" required:"true"` } // String returns the string representation func (s ScalingInstruction) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ScalingInstruction) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ScalingInstruction) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ScalingInstruction"} if s.MaxCapacity == nil { invalidParams.Add(request.NewErrParamRequired("MaxCapacity")) } if s.MinCapacity == nil { invalidParams.Add(request.NewErrParamRequired("MinCapacity")) } if s.ResourceId == nil { invalidParams.Add(request.NewErrParamRequired("ResourceId")) } if s.ResourceId != nil && len(*s.ResourceId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) } if s.ScalableDimension == nil { invalidParams.Add(request.NewErrParamRequired("ScalableDimension")) } if s.ServiceNamespace == nil { invalidParams.Add(request.NewErrParamRequired("ServiceNamespace")) } if s.TargetTrackingConfigurations == nil { invalidParams.Add(request.NewErrParamRequired("TargetTrackingConfigurations")) } if s.CustomizedLoadMetricSpecification != nil { if err := s.CustomizedLoadMetricSpecification.Validate(); err != nil { invalidParams.AddNested("CustomizedLoadMetricSpecification", err.(request.ErrInvalidParams)) } } if s.PredefinedLoadMetricSpecification != nil { if err := s.PredefinedLoadMetricSpecification.Validate(); err != nil { invalidParams.AddNested("PredefinedLoadMetricSpecification", err.(request.ErrInvalidParams)) } } if s.TargetTrackingConfigurations != nil { for i, v := range s.TargetTrackingConfigurations { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TargetTrackingConfigurations", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCustomizedLoadMetricSpecification sets the CustomizedLoadMetricSpecification field's value. func (s *ScalingInstruction) SetCustomizedLoadMetricSpecification(v *CustomizedLoadMetricSpecification) *ScalingInstruction { s.CustomizedLoadMetricSpecification = v return s } // SetDisableDynamicScaling sets the DisableDynamicScaling field's value. func (s *ScalingInstruction) SetDisableDynamicScaling(v bool) *ScalingInstruction { s.DisableDynamicScaling = &v return s } // SetMaxCapacity sets the MaxCapacity field's value. func (s *ScalingInstruction) SetMaxCapacity(v int64) *ScalingInstruction { s.MaxCapacity = &v return s } // SetMinCapacity sets the MinCapacity field's value. func (s *ScalingInstruction) SetMinCapacity(v int64) *ScalingInstruction { s.MinCapacity = &v return s } // SetPredefinedLoadMetricSpecification sets the PredefinedLoadMetricSpecification field's value. func (s *ScalingInstruction) SetPredefinedLoadMetricSpecification(v *PredefinedLoadMetricSpecification) *ScalingInstruction { s.PredefinedLoadMetricSpecification = v return s } // SetPredictiveScalingMaxCapacityBehavior sets the PredictiveScalingMaxCapacityBehavior field's value. func (s *ScalingInstruction) SetPredictiveScalingMaxCapacityBehavior(v string) *ScalingInstruction { s.PredictiveScalingMaxCapacityBehavior = &v return s } // SetPredictiveScalingMaxCapacityBuffer sets the PredictiveScalingMaxCapacityBuffer field's value. func (s *ScalingInstruction) SetPredictiveScalingMaxCapacityBuffer(v int64) *ScalingInstruction { s.PredictiveScalingMaxCapacityBuffer = &v return s } // SetPredictiveScalingMode sets the PredictiveScalingMode field's value. func (s *ScalingInstruction) SetPredictiveScalingMode(v string) *ScalingInstruction { s.PredictiveScalingMode = &v return s } // SetResourceId sets the ResourceId field's value. func (s *ScalingInstruction) SetResourceId(v string) *ScalingInstruction { s.ResourceId = &v return s } // SetScalableDimension sets the ScalableDimension field's value. func (s *ScalingInstruction) SetScalableDimension(v string) *ScalingInstruction { s.ScalableDimension = &v return s } // SetScalingPolicyUpdateBehavior sets the ScalingPolicyUpdateBehavior field's value. func (s *ScalingInstruction) SetScalingPolicyUpdateBehavior(v string) *ScalingInstruction { s.ScalingPolicyUpdateBehavior = &v return s } // SetScheduledActionBufferTime sets the ScheduledActionBufferTime field's value. func (s *ScalingInstruction) SetScheduledActionBufferTime(v int64) *ScalingInstruction { s.ScheduledActionBufferTime = &v return s } // SetServiceNamespace sets the ServiceNamespace field's value. func (s *ScalingInstruction) SetServiceNamespace(v string) *ScalingInstruction { s.ServiceNamespace = &v return s } // SetTargetTrackingConfigurations sets the TargetTrackingConfigurations field's value. func (s *ScalingInstruction) SetTargetTrackingConfigurations(v []*TargetTrackingConfiguration) *ScalingInstruction { s.TargetTrackingConfigurations = v return s } // Represents a scaling plan. type ScalingPlan struct { _ struct{} `type:"structure"` // A CloudFormation stack or a set of tags. You can create one scaling plan // per application source. // // ApplicationSource is a required field ApplicationSource *ApplicationSource `type:"structure" required:"true"` // The Unix time stamp when the scaling plan was created. CreationTime *time.Time `type:"timestamp"` // The scaling instructions. // // ScalingInstructions is a required field ScalingInstructions []*ScalingInstruction `type:"list" required:"true"` // The name of the scaling plan. // // ScalingPlanName is a required field ScalingPlanName *string `min:"1" type:"string" required:"true"` // The version number of the scaling plan. // // ScalingPlanVersion is a required field ScalingPlanVersion *int64 `type:"long" required:"true"` // The status of the scaling plan. // // * Active - The scaling plan is active. // // * ActiveWithProblems - The scaling plan is active, but the scaling configuration // for one or more resources could not be applied. // // * CreationInProgress - The scaling plan is being created. // // * CreationFailed - The scaling plan could not be created. // // * DeletionInProgress - The scaling plan is being deleted. // // * DeletionFailed - The scaling plan could not be deleted. // // * UpdateInProgress - The scaling plan is being updated. // // * UpdateFailed - The scaling plan could not be updated. // // StatusCode is a required field StatusCode *string `type:"string" required:"true" enum:"ScalingPlanStatusCode"` // A simple message about the current status of the scaling plan. StatusMessage *string `type:"string"` // The Unix time stamp when the scaling plan entered the current status. StatusStartTime *time.Time `type:"timestamp"` } // String returns the string representation func (s ScalingPlan) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ScalingPlan) GoString() string { return s.String() } // SetApplicationSource sets the ApplicationSource field's value. func (s *ScalingPlan) SetApplicationSource(v *ApplicationSource) *ScalingPlan { s.ApplicationSource = v return s } // SetCreationTime sets the CreationTime field's value. func (s *ScalingPlan) SetCreationTime(v time.Time) *ScalingPlan { s.CreationTime = &v return s } // SetScalingInstructions sets the ScalingInstructions field's value. func (s *ScalingPlan) SetScalingInstructions(v []*ScalingInstruction) *ScalingPlan { s.ScalingInstructions = v return s } // SetScalingPlanName sets the ScalingPlanName field's value. func (s *ScalingPlan) SetScalingPlanName(v string) *ScalingPlan { s.ScalingPlanName = &v return s } // SetScalingPlanVersion sets the ScalingPlanVersion field's value. func (s *ScalingPlan) SetScalingPlanVersion(v int64) *ScalingPlan { s.ScalingPlanVersion = &v return s } // SetStatusCode sets the StatusCode field's value. func (s *ScalingPlan) SetStatusCode(v string) *ScalingPlan { s.StatusCode = &v return s } // SetStatusMessage sets the StatusMessage field's value. func (s *ScalingPlan) SetStatusMessage(v string) *ScalingPlan { s.StatusMessage = &v return s } // SetStatusStartTime sets the StatusStartTime field's value. func (s *ScalingPlan) SetStatusStartTime(v time.Time) *ScalingPlan { s.StatusStartTime = &v return s } // Represents a scalable resource. type ScalingPlanResource struct { _ struct{} `type:"structure"` // The ID of the resource. This string consists of the resource type and unique // identifier. // // * Auto Scaling group - The resource type is autoScalingGroup and the unique // identifier is the name of the Auto Scaling group. Example: autoScalingGroup/my-asg. // // * ECS service - The resource type is service and the unique identifier // is the cluster name and service name. Example: service/default/sample-webapp. // // * Spot Fleet request - The resource type is spot-fleet-request and the // unique identifier is the Spot Fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE. // // * DynamoDB table - The resource type is table and the unique identifier // is the resource ID. Example: table/my-table. // // * DynamoDB global secondary index - The resource type is index and the // unique identifier is the resource ID. Example: table/my-table/index/my-table-index. // // * Aurora DB cluster - The resource type is cluster and the unique identifier // is the cluster name. Example: cluster:my-db-cluster. // // ResourceId is a required field ResourceId *string `min:"1" type:"string" required:"true"` // The scalable dimension for the resource. // // * autoscaling:autoScalingGroup:DesiredCapacity - The desired capacity // of an Auto Scaling group. // // * ecs:service:DesiredCount - The desired task count of an ECS service. // // * ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot // Fleet request. // // * dynamodb:table:ReadCapacityUnits - The provisioned read capacity for // a DynamoDB table. // // * dynamodb:table:WriteCapacityUnits - The provisioned write capacity for // a DynamoDB table. // // * dynamodb:index:ReadCapacityUnits - The provisioned read capacity for // a DynamoDB global secondary index. // // * dynamodb:index:WriteCapacityUnits - The provisioned write capacity for // a DynamoDB global secondary index. // // * rds:cluster:ReadReplicaCount - The count of Aurora Replicas in an Aurora // DB cluster. Available for Aurora MySQL-compatible edition and Aurora PostgreSQL-compatible // edition. // // ScalableDimension is a required field ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"` // The name of the scaling plan. // // ScalingPlanName is a required field ScalingPlanName *string `min:"1" type:"string" required:"true"` // The version number of the scaling plan. // // ScalingPlanVersion is a required field ScalingPlanVersion *int64 `type:"long" required:"true"` // The scaling policies. ScalingPolicies []*ScalingPolicy `type:"list"` // The scaling status of the resource. // // * Active - The scaling configuration is active. // // * Inactive - The scaling configuration is not active because the scaling // plan is being created or the scaling configuration could not be applied. // Check the status message for more information. // // * PartiallyActive - The scaling configuration is partially active because // the scaling plan is being created or deleted or the scaling configuration // could not be fully applied. Check the status message for more information. // // ScalingStatusCode is a required field ScalingStatusCode *string `type:"string" required:"true" enum:"ScalingStatusCode"` // A simple message about the current scaling status of the resource. ScalingStatusMessage *string `type:"string"` // The namespace of the AWS service. // // ServiceNamespace is a required field ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"` } // String returns the string representation func (s ScalingPlanResource) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ScalingPlanResource) GoString() string { return s.String() } // SetResourceId sets the ResourceId field's value. func (s *ScalingPlanResource) SetResourceId(v string) *ScalingPlanResource { s.ResourceId = &v return s } // SetScalableDimension sets the ScalableDimension field's value. func (s *ScalingPlanResource) SetScalableDimension(v string) *ScalingPlanResource { s.ScalableDimension = &v return s } // SetScalingPlanName sets the ScalingPlanName field's value. func (s *ScalingPlanResource) SetScalingPlanName(v string) *ScalingPlanResource { s.ScalingPlanName = &v return s } // SetScalingPlanVersion sets the ScalingPlanVersion field's value. func (s *ScalingPlanResource) SetScalingPlanVersion(v int64) *ScalingPlanResource { s.ScalingPlanVersion = &v return s } // SetScalingPolicies sets the ScalingPolicies field's value. func (s *ScalingPlanResource) SetScalingPolicies(v []*ScalingPolicy) *ScalingPlanResource { s.ScalingPolicies = v return s } // SetScalingStatusCode sets the ScalingStatusCode field's value. func (s *ScalingPlanResource) SetScalingStatusCode(v string) *ScalingPlanResource { s.ScalingStatusCode = &v return s } // SetScalingStatusMessage sets the ScalingStatusMessage field's value. func (s *ScalingPlanResource) SetScalingStatusMessage(v string) *ScalingPlanResource { s.ScalingStatusMessage = &v return s } // SetServiceNamespace sets the ServiceNamespace field's value. func (s *ScalingPlanResource) SetServiceNamespace(v string) *ScalingPlanResource { s.ServiceNamespace = &v return s } // Represents a scaling policy. type ScalingPolicy struct { _ struct{} `type:"structure"` // The name of the scaling policy. // // PolicyName is a required field PolicyName *string `min:"1" type:"string" required:"true"` // The type of scaling policy. // // PolicyType is a required field PolicyType *string `type:"string" required:"true" enum:"PolicyType"` // The target tracking scaling policy. Includes support for predefined or customized // metrics. TargetTrackingConfiguration *TargetTrackingConfiguration `type:"structure"` } // String returns the string representation func (s ScalingPolicy) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ScalingPolicy) GoString() string { return s.String() } // SetPolicyName sets the PolicyName field's value. func (s *ScalingPolicy) SetPolicyName(v string) *ScalingPolicy { s.PolicyName = &v return s } // SetPolicyType sets the PolicyType field's value. func (s *ScalingPolicy) SetPolicyType(v string) *ScalingPolicy { s.PolicyType = &v return s } // SetTargetTrackingConfiguration sets the TargetTrackingConfiguration field's value. func (s *ScalingPolicy) SetTargetTrackingConfiguration(v *TargetTrackingConfiguration) *ScalingPolicy { s.TargetTrackingConfiguration = v return s } // Represents a tag. type TagFilter struct { _ struct{} `type:"structure"` // The tag key. Key *string `min:"1" type:"string"` // The tag values (0 to 20). Values []*string `type:"list"` } // String returns the string representation func (s TagFilter) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TagFilter) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *TagFilter) Validate() error { invalidParams := request.ErrInvalidParams{Context: "TagFilter"} if s.Key != nil && len(*s.Key) < 1 { invalidParams.Add(request.NewErrParamMinLen("Key", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetKey sets the Key field's value. func (s *TagFilter) SetKey(v string) *TagFilter { s.Key = &v return s } // SetValues sets the Values field's value. func (s *TagFilter) SetValues(v []*string) *TagFilter { s.Values = v return s } // Describes a target tracking configuration to use with AWS Auto Scaling. Used // with ScalingInstruction and ScalingPolicy. type TargetTrackingConfiguration struct { _ struct{} `type:"structure"` // A customized metric. You can specify either a predefined metric or a customized // metric. CustomizedScalingMetricSpecification *CustomizedScalingMetricSpecification `type:"structure"` // Indicates whether scale in by the target tracking scaling policy is disabled. // If the value is true, scale in is disabled and the target tracking scaling // policy doesn't remove capacity from the scalable resource. Otherwise, scale // in is enabled and the target tracking scaling policy can remove capacity // from the scalable resource. // // The default value is false. DisableScaleIn *bool `type:"boolean"` // The estimated time, in seconds, until a newly launched instance can contribute // to the CloudWatch metrics. This value is used only if the resource is an // Auto Scaling group. EstimatedInstanceWarmup *int64 `type:"integer"` // A predefined metric. You can specify either a predefined metric or a customized // metric. PredefinedScalingMetricSpecification *PredefinedScalingMetricSpecification `type:"structure"` // The amount of time, in seconds, after a scale-in activity completes before // another scale-in activity can start. This property is not used if the scalable // resource is an Auto Scaling group. // // With the scale-in cooldown period, the intention is to scale in conservatively // to protect your application’s availability, so scale-in activities are // blocked until the cooldown period has expired. However, if another alarm // triggers a scale-out activity during the scale-in cooldown period, Auto Scaling // scales out the target immediately. In this case, the scale-in cooldown period // stops and doesn't complete. ScaleInCooldown *int64 `type:"integer"` // The amount of time, in seconds, to wait for a previous scale-out activity // to take effect. This property is not used if the scalable resource is an // Auto Scaling group. // // With the scale-out cooldown period, the intention is to continuously (but // not excessively) scale out. After Auto Scaling successfully scales out using // a target tracking scaling policy, it starts to calculate the cooldown time. // The scaling policy won't increase the desired capacity again unless either // a larger scale out is triggered or the cooldown period ends. ScaleOutCooldown *int64 `type:"integer"` // The target value for the metric. Although this property accepts numbers of // type Double, it won't accept values that are either too small or too large. // Values must be in the range of -2^360 to 2^360. // // TargetValue is a required field TargetValue *float64 `type:"double" required:"true"` } // String returns the string representation func (s TargetTrackingConfiguration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TargetTrackingConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *TargetTrackingConfiguration) Validate() error { invalidParams := request.ErrInvalidParams{Context: "TargetTrackingConfiguration"} if s.TargetValue == nil { invalidParams.Add(request.NewErrParamRequired("TargetValue")) } if s.CustomizedScalingMetricSpecification != nil { if err := s.CustomizedScalingMetricSpecification.Validate(); err != nil { invalidParams.AddNested("CustomizedScalingMetricSpecification", err.(request.ErrInvalidParams)) } } if s.PredefinedScalingMetricSpecification != nil { if err := s.PredefinedScalingMetricSpecification.Validate(); err != nil { invalidParams.AddNested("PredefinedScalingMetricSpecification", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCustomizedScalingMetricSpecification sets the CustomizedScalingMetricSpecification field's value. func (s *TargetTrackingConfiguration) SetCustomizedScalingMetricSpecification(v *CustomizedScalingMetricSpecification) *TargetTrackingConfiguration { s.CustomizedScalingMetricSpecification = v return s } // SetDisableScaleIn sets the DisableScaleIn field's value. func (s *TargetTrackingConfiguration) SetDisableScaleIn(v bool) *TargetTrackingConfiguration { s.DisableScaleIn = &v return s } // SetEstimatedInstanceWarmup sets the EstimatedInstanceWarmup field's value. func (s *TargetTrackingConfiguration) SetEstimatedInstanceWarmup(v int64) *TargetTrackingConfiguration { s.EstimatedInstanceWarmup = &v return s } // SetPredefinedScalingMetricSpecification sets the PredefinedScalingMetricSpecification field's value. func (s *TargetTrackingConfiguration) SetPredefinedScalingMetricSpecification(v *PredefinedScalingMetricSpecification) *TargetTrackingConfiguration { s.PredefinedScalingMetricSpecification = v return s } // SetScaleInCooldown sets the ScaleInCooldown field's value. func (s *TargetTrackingConfiguration) SetScaleInCooldown(v int64) *TargetTrackingConfiguration { s.ScaleInCooldown = &v return s } // SetScaleOutCooldown sets the ScaleOutCooldown field's value. func (s *TargetTrackingConfiguration) SetScaleOutCooldown(v int64) *TargetTrackingConfiguration { s.ScaleOutCooldown = &v return s } // SetTargetValue sets the TargetValue field's value. func (s *TargetTrackingConfiguration) SetTargetValue(v float64) *TargetTrackingConfiguration { s.TargetValue = &v return s } type UpdateScalingPlanInput struct { _ struct{} `type:"structure"` // A CloudFormation stack or set of tags. // // For more information, see ApplicationSource (https://docs.aws.amazon.com/autoscaling/plans/APIReference/API_ApplicationSource.html) // in the AWS Auto Scaling API Reference. ApplicationSource *ApplicationSource `type:"structure"` // The scaling instructions. // // For more information, see ScalingInstruction (https://docs.aws.amazon.com/autoscaling/plans/APIReference/API_ScalingInstruction.html) // in the AWS Auto Scaling API Reference. ScalingInstructions []*ScalingInstruction `type:"list"` // The name of the scaling plan. // // ScalingPlanName is a required field ScalingPlanName *string `min:"1" type:"string" required:"true"` // The version number of the scaling plan. The only valid value is 1. Currently, // you cannot have multiple scaling plan versions. // // ScalingPlanVersion is a required field ScalingPlanVersion *int64 `type:"long" required:"true"` } // String returns the string representation func (s UpdateScalingPlanInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateScalingPlanInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateScalingPlanInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateScalingPlanInput"} if s.ScalingPlanName == nil { invalidParams.Add(request.NewErrParamRequired("ScalingPlanName")) } if s.ScalingPlanName != nil && len(*s.ScalingPlanName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ScalingPlanName", 1)) } if s.ScalingPlanVersion == nil { invalidParams.Add(request.NewErrParamRequired("ScalingPlanVersion")) } if s.ApplicationSource != nil { if err := s.ApplicationSource.Validate(); err != nil { invalidParams.AddNested("ApplicationSource", err.(request.ErrInvalidParams)) } } if s.ScalingInstructions != nil { for i, v := range s.ScalingInstructions { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ScalingInstructions", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApplicationSource sets the ApplicationSource field's value. func (s *UpdateScalingPlanInput) SetApplicationSource(v *ApplicationSource) *UpdateScalingPlanInput { s.ApplicationSource = v return s } // SetScalingInstructions sets the ScalingInstructions field's value. func (s *UpdateScalingPlanInput) SetScalingInstructions(v []*ScalingInstruction) *UpdateScalingPlanInput { s.ScalingInstructions = v return s } // SetScalingPlanName sets the ScalingPlanName field's value. func (s *UpdateScalingPlanInput) SetScalingPlanName(v string) *UpdateScalingPlanInput { s.ScalingPlanName = &v return s } // SetScalingPlanVersion sets the ScalingPlanVersion field's value. func (s *UpdateScalingPlanInput) SetScalingPlanVersion(v int64) *UpdateScalingPlanInput { s.ScalingPlanVersion = &v return s } type UpdateScalingPlanOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s UpdateScalingPlanOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateScalingPlanOutput) GoString() string { return s.String() } // An exception was thrown for a validation issue. Review the parameters provided. type ValidationException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s ValidationException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ValidationException) GoString() string { return s.String() } func newErrorValidationException(v protocol.ResponseMetadata) error { return &ValidationException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ValidationException) Code() string { return "ValidationException" } // Message returns the exception's message. func (s *ValidationException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ValidationException) OrigErr() error { return nil } func (s *ValidationException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ValidationException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ValidationException) RequestID() string { return s.RespMetadata.RequestID } const ( // ForecastDataTypeCapacityForecast is a ForecastDataType enum value ForecastDataTypeCapacityForecast = "CapacityForecast" // ForecastDataTypeLoadForecast is a ForecastDataType enum value ForecastDataTypeLoadForecast = "LoadForecast" // ForecastDataTypeScheduledActionMinCapacity is a ForecastDataType enum value ForecastDataTypeScheduledActionMinCapacity = "ScheduledActionMinCapacity" // ForecastDataTypeScheduledActionMaxCapacity is a ForecastDataType enum value ForecastDataTypeScheduledActionMaxCapacity = "ScheduledActionMaxCapacity" ) // ForecastDataType_Values returns all elements of the ForecastDataType enum func ForecastDataType_Values() []string { return []string{ ForecastDataTypeCapacityForecast, ForecastDataTypeLoadForecast, ForecastDataTypeScheduledActionMinCapacity, ForecastDataTypeScheduledActionMaxCapacity, } } const ( // LoadMetricTypeAsgtotalCpuutilization is a LoadMetricType enum value LoadMetricTypeAsgtotalCpuutilization = "ASGTotalCPUUtilization" // LoadMetricTypeAsgtotalNetworkIn is a LoadMetricType enum value LoadMetricTypeAsgtotalNetworkIn = "ASGTotalNetworkIn" // LoadMetricTypeAsgtotalNetworkOut is a LoadMetricType enum value LoadMetricTypeAsgtotalNetworkOut = "ASGTotalNetworkOut" // LoadMetricTypeAlbtargetGroupRequestCount is a LoadMetricType enum value LoadMetricTypeAlbtargetGroupRequestCount = "ALBTargetGroupRequestCount" ) // LoadMetricType_Values returns all elements of the LoadMetricType enum func LoadMetricType_Values() []string { return []string{ LoadMetricTypeAsgtotalCpuutilization, LoadMetricTypeAsgtotalNetworkIn, LoadMetricTypeAsgtotalNetworkOut, LoadMetricTypeAlbtargetGroupRequestCount, } } const ( // MetricStatisticAverage is a MetricStatistic enum value MetricStatisticAverage = "Average" // MetricStatisticMinimum is a MetricStatistic enum value MetricStatisticMinimum = "Minimum" // MetricStatisticMaximum is a MetricStatistic enum value MetricStatisticMaximum = "Maximum" // MetricStatisticSampleCount is a MetricStatistic enum value MetricStatisticSampleCount = "SampleCount" // MetricStatisticSum is a MetricStatistic enum value MetricStatisticSum = "Sum" ) // MetricStatistic_Values returns all elements of the MetricStatistic enum func MetricStatistic_Values() []string { return []string{ MetricStatisticAverage, MetricStatisticMinimum, MetricStatisticMaximum, MetricStatisticSampleCount, MetricStatisticSum, } } const ( // PolicyTypeTargetTrackingScaling is a PolicyType enum value PolicyTypeTargetTrackingScaling = "TargetTrackingScaling" ) // PolicyType_Values returns all elements of the PolicyType enum func PolicyType_Values() []string { return []string{ PolicyTypeTargetTrackingScaling, } } const ( // PredictiveScalingMaxCapacityBehaviorSetForecastCapacityToMaxCapacity is a PredictiveScalingMaxCapacityBehavior enum value PredictiveScalingMaxCapacityBehaviorSetForecastCapacityToMaxCapacity = "SetForecastCapacityToMaxCapacity" // PredictiveScalingMaxCapacityBehaviorSetMaxCapacityToForecastCapacity is a PredictiveScalingMaxCapacityBehavior enum value PredictiveScalingMaxCapacityBehaviorSetMaxCapacityToForecastCapacity = "SetMaxCapacityToForecastCapacity" // PredictiveScalingMaxCapacityBehaviorSetMaxCapacityAboveForecastCapacity is a PredictiveScalingMaxCapacityBehavior enum value PredictiveScalingMaxCapacityBehaviorSetMaxCapacityAboveForecastCapacity = "SetMaxCapacityAboveForecastCapacity" ) // PredictiveScalingMaxCapacityBehavior_Values returns all elements of the PredictiveScalingMaxCapacityBehavior enum func PredictiveScalingMaxCapacityBehavior_Values() []string { return []string{ PredictiveScalingMaxCapacityBehaviorSetForecastCapacityToMaxCapacity, PredictiveScalingMaxCapacityBehaviorSetMaxCapacityToForecastCapacity, PredictiveScalingMaxCapacityBehaviorSetMaxCapacityAboveForecastCapacity, } } const ( // PredictiveScalingModeForecastAndScale is a PredictiveScalingMode enum value PredictiveScalingModeForecastAndScale = "ForecastAndScale" // PredictiveScalingModeForecastOnly is a PredictiveScalingMode enum value PredictiveScalingModeForecastOnly = "ForecastOnly" ) // PredictiveScalingMode_Values returns all elements of the PredictiveScalingMode enum func PredictiveScalingMode_Values() []string { return []string{ PredictiveScalingModeForecastAndScale, PredictiveScalingModeForecastOnly, } } const ( // ScalableDimensionAutoscalingAutoScalingGroupDesiredCapacity is a ScalableDimension enum value ScalableDimensionAutoscalingAutoScalingGroupDesiredCapacity = "autoscaling:autoScalingGroup:DesiredCapacity" // ScalableDimensionEcsServiceDesiredCount is a ScalableDimension enum value ScalableDimensionEcsServiceDesiredCount = "ecs:service:DesiredCount" // ScalableDimensionEc2SpotFleetRequestTargetCapacity is a ScalableDimension enum value ScalableDimensionEc2SpotFleetRequestTargetCapacity = "ec2:spot-fleet-request:TargetCapacity" // ScalableDimensionRdsClusterReadReplicaCount is a ScalableDimension enum value ScalableDimensionRdsClusterReadReplicaCount = "rds:cluster:ReadReplicaCount" // ScalableDimensionDynamodbTableReadCapacityUnits is a ScalableDimension enum value ScalableDimensionDynamodbTableReadCapacityUnits = "dynamodb:table:ReadCapacityUnits" // ScalableDimensionDynamodbTableWriteCapacityUnits is a ScalableDimension enum value ScalableDimensionDynamodbTableWriteCapacityUnits = "dynamodb:table:WriteCapacityUnits" // ScalableDimensionDynamodbIndexReadCapacityUnits is a ScalableDimension enum value ScalableDimensionDynamodbIndexReadCapacityUnits = "dynamodb:index:ReadCapacityUnits" // ScalableDimensionDynamodbIndexWriteCapacityUnits is a ScalableDimension enum value ScalableDimensionDynamodbIndexWriteCapacityUnits = "dynamodb:index:WriteCapacityUnits" ) // ScalableDimension_Values returns all elements of the ScalableDimension enum func ScalableDimension_Values() []string { return []string{ ScalableDimensionAutoscalingAutoScalingGroupDesiredCapacity, ScalableDimensionEcsServiceDesiredCount, ScalableDimensionEc2SpotFleetRequestTargetCapacity, ScalableDimensionRdsClusterReadReplicaCount, ScalableDimensionDynamodbTableReadCapacityUnits, ScalableDimensionDynamodbTableWriteCapacityUnits, ScalableDimensionDynamodbIndexReadCapacityUnits, ScalableDimensionDynamodbIndexWriteCapacityUnits, } } const ( // ScalingMetricTypeAsgaverageCpuutilization is a ScalingMetricType enum value ScalingMetricTypeAsgaverageCpuutilization = "ASGAverageCPUUtilization" // ScalingMetricTypeAsgaverageNetworkIn is a ScalingMetricType enum value ScalingMetricTypeAsgaverageNetworkIn = "ASGAverageNetworkIn" // ScalingMetricTypeAsgaverageNetworkOut is a ScalingMetricType enum value ScalingMetricTypeAsgaverageNetworkOut = "ASGAverageNetworkOut" // ScalingMetricTypeDynamoDbreadCapacityUtilization is a ScalingMetricType enum value ScalingMetricTypeDynamoDbreadCapacityUtilization = "DynamoDBReadCapacityUtilization" // ScalingMetricTypeDynamoDbwriteCapacityUtilization is a ScalingMetricType enum value ScalingMetricTypeDynamoDbwriteCapacityUtilization = "DynamoDBWriteCapacityUtilization" // ScalingMetricTypeEcsserviceAverageCpuutilization is a ScalingMetricType enum value ScalingMetricTypeEcsserviceAverageCpuutilization = "ECSServiceAverageCPUUtilization" // ScalingMetricTypeEcsserviceAverageMemoryUtilization is a ScalingMetricType enum value ScalingMetricTypeEcsserviceAverageMemoryUtilization = "ECSServiceAverageMemoryUtilization" // ScalingMetricTypeAlbrequestCountPerTarget is a ScalingMetricType enum value ScalingMetricTypeAlbrequestCountPerTarget = "ALBRequestCountPerTarget" // ScalingMetricTypeRdsreaderAverageCpuutilization is a ScalingMetricType enum value ScalingMetricTypeRdsreaderAverageCpuutilization = "RDSReaderAverageCPUUtilization" // ScalingMetricTypeRdsreaderAverageDatabaseConnections is a ScalingMetricType enum value ScalingMetricTypeRdsreaderAverageDatabaseConnections = "RDSReaderAverageDatabaseConnections" // ScalingMetricTypeEc2spotFleetRequestAverageCpuutilization is a ScalingMetricType enum value ScalingMetricTypeEc2spotFleetRequestAverageCpuutilization = "EC2SpotFleetRequestAverageCPUUtilization" // ScalingMetricTypeEc2spotFleetRequestAverageNetworkIn is a ScalingMetricType enum value ScalingMetricTypeEc2spotFleetRequestAverageNetworkIn = "EC2SpotFleetRequestAverageNetworkIn" // ScalingMetricTypeEc2spotFleetRequestAverageNetworkOut is a ScalingMetricType enum value ScalingMetricTypeEc2spotFleetRequestAverageNetworkOut = "EC2SpotFleetRequestAverageNetworkOut" ) // ScalingMetricType_Values returns all elements of the ScalingMetricType enum func ScalingMetricType_Values() []string { return []string{ ScalingMetricTypeAsgaverageCpuutilization, ScalingMetricTypeAsgaverageNetworkIn, ScalingMetricTypeAsgaverageNetworkOut, ScalingMetricTypeDynamoDbreadCapacityUtilization, ScalingMetricTypeDynamoDbwriteCapacityUtilization, ScalingMetricTypeEcsserviceAverageCpuutilization, ScalingMetricTypeEcsserviceAverageMemoryUtilization, ScalingMetricTypeAlbrequestCountPerTarget, ScalingMetricTypeRdsreaderAverageCpuutilization, ScalingMetricTypeRdsreaderAverageDatabaseConnections, ScalingMetricTypeEc2spotFleetRequestAverageCpuutilization, ScalingMetricTypeEc2spotFleetRequestAverageNetworkIn, ScalingMetricTypeEc2spotFleetRequestAverageNetworkOut, } } const ( // ScalingPlanStatusCodeActive is a ScalingPlanStatusCode enum value ScalingPlanStatusCodeActive = "Active" // ScalingPlanStatusCodeActiveWithProblems is a ScalingPlanStatusCode enum value ScalingPlanStatusCodeActiveWithProblems = "ActiveWithProblems" // ScalingPlanStatusCodeCreationInProgress is a ScalingPlanStatusCode enum value ScalingPlanStatusCodeCreationInProgress = "CreationInProgress" // ScalingPlanStatusCodeCreationFailed is a ScalingPlanStatusCode enum value ScalingPlanStatusCodeCreationFailed = "CreationFailed" // ScalingPlanStatusCodeDeletionInProgress is a ScalingPlanStatusCode enum value ScalingPlanStatusCodeDeletionInProgress = "DeletionInProgress" // ScalingPlanStatusCodeDeletionFailed is a ScalingPlanStatusCode enum value ScalingPlanStatusCodeDeletionFailed = "DeletionFailed" // ScalingPlanStatusCodeUpdateInProgress is a ScalingPlanStatusCode enum value ScalingPlanStatusCodeUpdateInProgress = "UpdateInProgress" // ScalingPlanStatusCodeUpdateFailed is a ScalingPlanStatusCode enum value ScalingPlanStatusCodeUpdateFailed = "UpdateFailed" ) // ScalingPlanStatusCode_Values returns all elements of the ScalingPlanStatusCode enum func ScalingPlanStatusCode_Values() []string { return []string{ ScalingPlanStatusCodeActive, ScalingPlanStatusCodeActiveWithProblems, ScalingPlanStatusCodeCreationInProgress, ScalingPlanStatusCodeCreationFailed, ScalingPlanStatusCodeDeletionInProgress, ScalingPlanStatusCodeDeletionFailed, ScalingPlanStatusCodeUpdateInProgress, ScalingPlanStatusCodeUpdateFailed, } } const ( // ScalingPolicyUpdateBehaviorKeepExternalPolicies is a ScalingPolicyUpdateBehavior enum value ScalingPolicyUpdateBehaviorKeepExternalPolicies = "KeepExternalPolicies" // ScalingPolicyUpdateBehaviorReplaceExternalPolicies is a ScalingPolicyUpdateBehavior enum value ScalingPolicyUpdateBehaviorReplaceExternalPolicies = "ReplaceExternalPolicies" ) // ScalingPolicyUpdateBehavior_Values returns all elements of the ScalingPolicyUpdateBehavior enum func ScalingPolicyUpdateBehavior_Values() []string { return []string{ ScalingPolicyUpdateBehaviorKeepExternalPolicies, ScalingPolicyUpdateBehaviorReplaceExternalPolicies, } } const ( // ScalingStatusCodeInactive is a ScalingStatusCode enum value ScalingStatusCodeInactive = "Inactive" // ScalingStatusCodePartiallyActive is a ScalingStatusCode enum value ScalingStatusCodePartiallyActive = "PartiallyActive" // ScalingStatusCodeActive is a ScalingStatusCode enum value ScalingStatusCodeActive = "Active" ) // ScalingStatusCode_Values returns all elements of the ScalingStatusCode enum func ScalingStatusCode_Values() []string { return []string{ ScalingStatusCodeInactive, ScalingStatusCodePartiallyActive, ScalingStatusCodeActive, } } const ( // ServiceNamespaceAutoscaling is a ServiceNamespace enum value ServiceNamespaceAutoscaling = "autoscaling" // ServiceNamespaceEcs is a ServiceNamespace enum value ServiceNamespaceEcs = "ecs" // ServiceNamespaceEc2 is a ServiceNamespace enum value ServiceNamespaceEc2 = "ec2" // ServiceNamespaceRds is a ServiceNamespace enum value ServiceNamespaceRds = "rds" // ServiceNamespaceDynamodb is a ServiceNamespace enum value ServiceNamespaceDynamodb = "dynamodb" ) // ServiceNamespace_Values returns all elements of the ServiceNamespace enum func ServiceNamespace_Values() []string { return []string{ ServiceNamespaceAutoscaling, ServiceNamespaceEcs, ServiceNamespaceEc2, ServiceNamespaceRds, ServiceNamespaceDynamodb, } }
3,293
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package autoscalingplans provides the client and types for making API // requests to AWS Auto Scaling Plans. // // Use AWS Auto Scaling to create scaling plans for your applications to automatically // scale your scalable AWS resources. // // API Summary // // You can use the AWS Auto Scaling service API to accomplish the following // tasks: // // * Create and manage scaling plans // // * Define target tracking scaling policies to dynamically scale your resources // based on utilization // // * Scale Amazon EC2 Auto Scaling groups using predictive scaling and dynamic // scaling to scale your Amazon EC2 capacity faster // // * Set minimum and maximum capacity limits // // * Retrieve information on existing scaling plans // // * Access current forecast data and historical forecast data for up to // 56 days previous // // To learn more about AWS Auto Scaling, including information about granting // IAM users required permissions for AWS Auto Scaling actions, see the AWS // Auto Scaling User Guide (https://docs.aws.amazon.com/autoscaling/plans/userguide/what-is-aws-auto-scaling.html). // // See https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06 for more information on this service. // // See autoscalingplans package documentation for more information. // https://docs.aws.amazon.com/sdk-for-go/api/service/autoscalingplans/ // // Using the Client // // To contact AWS Auto Scaling Plans 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 Auto Scaling Plans client AutoScalingPlans for more // information on creating client for this service. // https://docs.aws.amazon.com/sdk-for-go/api/service/autoscalingplans/#New package autoscalingplans
54
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package autoscalingplans import ( "github.com/aws/aws-sdk-go/private/protocol" ) const ( // ErrCodeConcurrentUpdateException for service response error code // "ConcurrentUpdateException". // // Concurrent updates caused an exception, for example, if you request an update // to a scaling plan that already has a pending update. ErrCodeConcurrentUpdateException = "ConcurrentUpdateException" // ErrCodeInternalServiceException for service response error code // "InternalServiceException". // // The service encountered an internal error. ErrCodeInternalServiceException = "InternalServiceException" // ErrCodeInvalidNextTokenException for service response error code // "InvalidNextTokenException". // // The token provided is not valid. ErrCodeInvalidNextTokenException = "InvalidNextTokenException" // ErrCodeLimitExceededException for service response error code // "LimitExceededException". // // Your account exceeded a limit. This exception is thrown when a per-account // resource limit is exceeded. ErrCodeLimitExceededException = "LimitExceededException" // ErrCodeObjectNotFoundException for service response error code // "ObjectNotFoundException". // // The specified object could not be found. ErrCodeObjectNotFoundException = "ObjectNotFoundException" // ErrCodeValidationException for service response error code // "ValidationException". // // An exception was thrown for a validation issue. Review the parameters provided. ErrCodeValidationException = "ValidationException" ) var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "ConcurrentUpdateException": newErrorConcurrentUpdateException, "InternalServiceException": newErrorInternalServiceException, "InvalidNextTokenException": newErrorInvalidNextTokenException, "LimitExceededException": newErrorLimitExceededException, "ObjectNotFoundException": newErrorObjectNotFoundException, "ValidationException": newErrorValidationException, }
58
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package autoscalingplans 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" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) // AutoScalingPlans provides the API operation methods for making requests to // AWS Auto Scaling Plans. See this package's package overview docs // for details on the service. // // AutoScalingPlans methods are safe to use concurrently. It is not safe to // modify mutate any of the struct's properties though. type AutoScalingPlans 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 = "autoscaling" // Name of service. EndpointsID = "autoscaling-plans" // ID to lookup a service endpoint with. ServiceID = "Auto Scaling Plans" // ServiceID is a unique identifier of a specific service. ) // New creates a new instance of the AutoScalingPlans 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: // mySession := session.Must(session.NewSession()) // // // Create a AutoScalingPlans client from just a session. // svc := autoscalingplans.New(mySession) // // // Create a AutoScalingPlans client with additional configuration // svc := autoscalingplans.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *AutoScalingPlans { c := p.ClientConfig(EndpointsID, cfgs...) if c.SigningNameDerived || len(c.SigningName) == 0 { c.SigningName = "autoscaling-plans" } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *AutoScalingPlans { svc := &AutoScalingPlans{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, ServiceID: ServiceID, SigningName: signingName, SigningRegion: signingRegion, PartitionID: partitionID, Endpoint: endpoint, APIVersion: "2018-01-06", JSONVersion: "1.1", TargetPrefix: "AnyScaleScalingPlannerFrontendService", }, handlers, ), } // Handlers svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) svc.Handlers.UnmarshalError.PushBackNamed( protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), ) // Run custom client initialization if present if initClient != nil { initClient(svc.Client) } return svc } // newRequest creates a new request for a AutoScalingPlans operation and runs any // custom request initialization. func (c *AutoScalingPlans) 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 }
107
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package autoscalingplansiface provides an interface to enable mocking the AWS Auto Scaling Plans 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 autoscalingplansiface import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/service/autoscalingplans" ) // AutoScalingPlansAPI provides an interface to enable mocking the // autoscalingplans.AutoScalingPlans 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 Auto Scaling Plans. // func myFunc(svc autoscalingplansiface.AutoScalingPlansAPI) bool { // // Make svc.CreateScalingPlan request // } // // func main() { // sess := session.New() // svc := autoscalingplans.New(sess) // // myFunc(svc) // } // // In your _test.go file: // // // Define a mock struct to be used in your unit tests of myFunc. // type mockAutoScalingPlansClient struct { // autoscalingplansiface.AutoScalingPlansAPI // } // func (m *mockAutoScalingPlansClient) CreateScalingPlan(input *autoscalingplans.CreateScalingPlanInput) (*autoscalingplans.CreateScalingPlanOutput, error) { // // mock response/functionality // } // // func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockAutoScalingPlansClient{} // // 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 AutoScalingPlansAPI interface { CreateScalingPlan(*autoscalingplans.CreateScalingPlanInput) (*autoscalingplans.CreateScalingPlanOutput, error) CreateScalingPlanWithContext(aws.Context, *autoscalingplans.CreateScalingPlanInput, ...request.Option) (*autoscalingplans.CreateScalingPlanOutput, error) CreateScalingPlanRequest(*autoscalingplans.CreateScalingPlanInput) (*request.Request, *autoscalingplans.CreateScalingPlanOutput) DeleteScalingPlan(*autoscalingplans.DeleteScalingPlanInput) (*autoscalingplans.DeleteScalingPlanOutput, error) DeleteScalingPlanWithContext(aws.Context, *autoscalingplans.DeleteScalingPlanInput, ...request.Option) (*autoscalingplans.DeleteScalingPlanOutput, error) DeleteScalingPlanRequest(*autoscalingplans.DeleteScalingPlanInput) (*request.Request, *autoscalingplans.DeleteScalingPlanOutput) DescribeScalingPlanResources(*autoscalingplans.DescribeScalingPlanResourcesInput) (*autoscalingplans.DescribeScalingPlanResourcesOutput, error) DescribeScalingPlanResourcesWithContext(aws.Context, *autoscalingplans.DescribeScalingPlanResourcesInput, ...request.Option) (*autoscalingplans.DescribeScalingPlanResourcesOutput, error) DescribeScalingPlanResourcesRequest(*autoscalingplans.DescribeScalingPlanResourcesInput) (*request.Request, *autoscalingplans.DescribeScalingPlanResourcesOutput) DescribeScalingPlans(*autoscalingplans.DescribeScalingPlansInput) (*autoscalingplans.DescribeScalingPlansOutput, error) DescribeScalingPlansWithContext(aws.Context, *autoscalingplans.DescribeScalingPlansInput, ...request.Option) (*autoscalingplans.DescribeScalingPlansOutput, error) DescribeScalingPlansRequest(*autoscalingplans.DescribeScalingPlansInput) (*request.Request, *autoscalingplans.DescribeScalingPlansOutput) GetScalingPlanResourceForecastData(*autoscalingplans.GetScalingPlanResourceForecastDataInput) (*autoscalingplans.GetScalingPlanResourceForecastDataOutput, error) GetScalingPlanResourceForecastDataWithContext(aws.Context, *autoscalingplans.GetScalingPlanResourceForecastDataInput, ...request.Option) (*autoscalingplans.GetScalingPlanResourceForecastDataOutput, error) GetScalingPlanResourceForecastDataRequest(*autoscalingplans.GetScalingPlanResourceForecastDataInput) (*request.Request, *autoscalingplans.GetScalingPlanResourceForecastDataOutput) UpdateScalingPlan(*autoscalingplans.UpdateScalingPlanInput) (*autoscalingplans.UpdateScalingPlanOutput, error) UpdateScalingPlanWithContext(aws.Context, *autoscalingplans.UpdateScalingPlanInput, ...request.Option) (*autoscalingplans.UpdateScalingPlanOutput, error) UpdateScalingPlanRequest(*autoscalingplans.UpdateScalingPlanInput) (*request.Request, *autoscalingplans.UpdateScalingPlanOutput) } var _ AutoScalingPlansAPI = (*autoscalingplans.AutoScalingPlans)(nil)
89
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package backup provides the client and types for making API // requests to AWS Backup. // // AWS Backup is a unified backup service designed to protect AWS services and // their associated data. AWS Backup simplifies the creation, migration, restoration, // and deletion of backups, while also providing reporting and auditing. // // See https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15 for more information on this service. // // See backup package documentation for more information. // https://docs.aws.amazon.com/sdk-for-go/api/service/backup/ // // Using the Client // // To contact AWS Backup 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 Backup client Backup for more // information on creating client for this service. // https://docs.aws.amazon.com/sdk-for-go/api/service/backup/#New package backup
31
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package backup import ( "github.com/aws/aws-sdk-go/private/protocol" ) const ( // ErrCodeAlreadyExistsException for service response error code // "AlreadyExistsException". // // The required resource already exists. ErrCodeAlreadyExistsException = "AlreadyExistsException" // ErrCodeDependencyFailureException for service response error code // "DependencyFailureException". // // A dependent AWS service or resource returned an error to the AWS Backup service, // and the action cannot be completed. ErrCodeDependencyFailureException = "DependencyFailureException" // ErrCodeInvalidParameterValueException for service response error code // "InvalidParameterValueException". // // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. ErrCodeInvalidParameterValueException = "InvalidParameterValueException" // ErrCodeInvalidRequestException for service response error code // "InvalidRequestException". // // Indicates that something is wrong with the input to the request. For example, // a parameter is of the wrong type. ErrCodeInvalidRequestException = "InvalidRequestException" // ErrCodeInvalidResourceStateException for service response error code // "InvalidResourceStateException". // // AWS Backup is already performing an action on this recovery point. It can't // perform the action you requested until the first action finishes. Try again // later. ErrCodeInvalidResourceStateException = "InvalidResourceStateException" // ErrCodeLimitExceededException for service response error code // "LimitExceededException". // // A limit in the request has been exceeded; for example, a maximum number of // items allowed in a request. ErrCodeLimitExceededException = "LimitExceededException" // ErrCodeMissingParameterValueException for service response error code // "MissingParameterValueException". // // Indicates that a required parameter is missing. ErrCodeMissingParameterValueException = "MissingParameterValueException" // ErrCodeResourceNotFoundException for service response error code // "ResourceNotFoundException". // // A resource that is required for the action doesn't exist. ErrCodeResourceNotFoundException = "ResourceNotFoundException" // ErrCodeServiceUnavailableException for service response error code // "ServiceUnavailableException". // // The request failed due to a temporary failure of the server. ErrCodeServiceUnavailableException = "ServiceUnavailableException" ) var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "AlreadyExistsException": newErrorAlreadyExistsException, "DependencyFailureException": newErrorDependencyFailureException, "InvalidParameterValueException": newErrorInvalidParameterValueException, "InvalidRequestException": newErrorInvalidRequestException, "InvalidResourceStateException": newErrorInvalidResourceStateException, "LimitExceededException": newErrorLimitExceededException, "MissingParameterValueException": newErrorMissingParameterValueException, "ResourceNotFoundException": newErrorResourceNotFoundException, "ServiceUnavailableException": newErrorServiceUnavailableException, }
83
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package backup 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" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) // Backup provides the API operation methods for making requests to // AWS Backup. See this package's package overview docs // for details on the service. // // Backup methods are safe to use concurrently. It is not safe to // modify mutate any of the struct's properties though. type Backup 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 = "Backup" // Name of service. EndpointsID = "backup" // ID to lookup a service endpoint with. ServiceID = "Backup" // ServiceID is a unique identifier of a specific service. ) // New creates a new instance of the Backup 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: // mySession := session.Must(session.NewSession()) // // // Create a Backup client from just a session. // svc := backup.New(mySession) // // // Create a Backup client with additional configuration // svc := backup.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Backup { c := p.ClientConfig(EndpointsID, cfgs...) return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *Backup { svc := &Backup{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, ServiceID: ServiceID, SigningName: signingName, SigningRegion: signingRegion, PartitionID: partitionID, Endpoint: endpoint, APIVersion: "2018-11-15", }, 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( protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), ) // Run custom client initialization if present if initClient != nil { initClient(svc.Client) } return svc } // newRequest creates a new request for a Backup operation and runs any // custom request initialization. func (c *Backup) 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 }
102
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package backupiface provides an interface to enable mocking the AWS Backup 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 backupiface import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/service/backup" ) // BackupAPI provides an interface to enable mocking the // backup.Backup 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 Backup. // func myFunc(svc backupiface.BackupAPI) bool { // // Make svc.CreateBackupPlan request // } // // func main() { // sess := session.New() // svc := backup.New(sess) // // myFunc(svc) // } // // In your _test.go file: // // // Define a mock struct to be used in your unit tests of myFunc. // type mockBackupClient struct { // backupiface.BackupAPI // } // func (m *mockBackupClient) CreateBackupPlan(input *backup.CreateBackupPlanInput) (*backup.CreateBackupPlanOutput, error) { // // mock response/functionality // } // // func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockBackupClient{} // // 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 BackupAPI interface { CreateBackupPlan(*backup.CreateBackupPlanInput) (*backup.CreateBackupPlanOutput, error) CreateBackupPlanWithContext(aws.Context, *backup.CreateBackupPlanInput, ...request.Option) (*backup.CreateBackupPlanOutput, error) CreateBackupPlanRequest(*backup.CreateBackupPlanInput) (*request.Request, *backup.CreateBackupPlanOutput) CreateBackupSelection(*backup.CreateBackupSelectionInput) (*backup.CreateBackupSelectionOutput, error) CreateBackupSelectionWithContext(aws.Context, *backup.CreateBackupSelectionInput, ...request.Option) (*backup.CreateBackupSelectionOutput, error) CreateBackupSelectionRequest(*backup.CreateBackupSelectionInput) (*request.Request, *backup.CreateBackupSelectionOutput) CreateBackupVault(*backup.CreateBackupVaultInput) (*backup.CreateBackupVaultOutput, error) CreateBackupVaultWithContext(aws.Context, *backup.CreateBackupVaultInput, ...request.Option) (*backup.CreateBackupVaultOutput, error) CreateBackupVaultRequest(*backup.CreateBackupVaultInput) (*request.Request, *backup.CreateBackupVaultOutput) DeleteBackupPlan(*backup.DeleteBackupPlanInput) (*backup.DeleteBackupPlanOutput, error) DeleteBackupPlanWithContext(aws.Context, *backup.DeleteBackupPlanInput, ...request.Option) (*backup.DeleteBackupPlanOutput, error) DeleteBackupPlanRequest(*backup.DeleteBackupPlanInput) (*request.Request, *backup.DeleteBackupPlanOutput) DeleteBackupSelection(*backup.DeleteBackupSelectionInput) (*backup.DeleteBackupSelectionOutput, error) DeleteBackupSelectionWithContext(aws.Context, *backup.DeleteBackupSelectionInput, ...request.Option) (*backup.DeleteBackupSelectionOutput, error) DeleteBackupSelectionRequest(*backup.DeleteBackupSelectionInput) (*request.Request, *backup.DeleteBackupSelectionOutput) DeleteBackupVault(*backup.DeleteBackupVaultInput) (*backup.DeleteBackupVaultOutput, error) DeleteBackupVaultWithContext(aws.Context, *backup.DeleteBackupVaultInput, ...request.Option) (*backup.DeleteBackupVaultOutput, error) DeleteBackupVaultRequest(*backup.DeleteBackupVaultInput) (*request.Request, *backup.DeleteBackupVaultOutput) DeleteBackupVaultAccessPolicy(*backup.DeleteBackupVaultAccessPolicyInput) (*backup.DeleteBackupVaultAccessPolicyOutput, error) DeleteBackupVaultAccessPolicyWithContext(aws.Context, *backup.DeleteBackupVaultAccessPolicyInput, ...request.Option) (*backup.DeleteBackupVaultAccessPolicyOutput, error) DeleteBackupVaultAccessPolicyRequest(*backup.DeleteBackupVaultAccessPolicyInput) (*request.Request, *backup.DeleteBackupVaultAccessPolicyOutput) DeleteBackupVaultNotifications(*backup.DeleteBackupVaultNotificationsInput) (*backup.DeleteBackupVaultNotificationsOutput, error) DeleteBackupVaultNotificationsWithContext(aws.Context, *backup.DeleteBackupVaultNotificationsInput, ...request.Option) (*backup.DeleteBackupVaultNotificationsOutput, error) DeleteBackupVaultNotificationsRequest(*backup.DeleteBackupVaultNotificationsInput) (*request.Request, *backup.DeleteBackupVaultNotificationsOutput) DeleteRecoveryPoint(*backup.DeleteRecoveryPointInput) (*backup.DeleteRecoveryPointOutput, error) DeleteRecoveryPointWithContext(aws.Context, *backup.DeleteRecoveryPointInput, ...request.Option) (*backup.DeleteRecoveryPointOutput, error) DeleteRecoveryPointRequest(*backup.DeleteRecoveryPointInput) (*request.Request, *backup.DeleteRecoveryPointOutput) DescribeBackupJob(*backup.DescribeBackupJobInput) (*backup.DescribeBackupJobOutput, error) DescribeBackupJobWithContext(aws.Context, *backup.DescribeBackupJobInput, ...request.Option) (*backup.DescribeBackupJobOutput, error) DescribeBackupJobRequest(*backup.DescribeBackupJobInput) (*request.Request, *backup.DescribeBackupJobOutput) DescribeBackupVault(*backup.DescribeBackupVaultInput) (*backup.DescribeBackupVaultOutput, error) DescribeBackupVaultWithContext(aws.Context, *backup.DescribeBackupVaultInput, ...request.Option) (*backup.DescribeBackupVaultOutput, error) DescribeBackupVaultRequest(*backup.DescribeBackupVaultInput) (*request.Request, *backup.DescribeBackupVaultOutput) DescribeCopyJob(*backup.DescribeCopyJobInput) (*backup.DescribeCopyJobOutput, error) DescribeCopyJobWithContext(aws.Context, *backup.DescribeCopyJobInput, ...request.Option) (*backup.DescribeCopyJobOutput, error) DescribeCopyJobRequest(*backup.DescribeCopyJobInput) (*request.Request, *backup.DescribeCopyJobOutput) DescribeGlobalSettings(*backup.DescribeGlobalSettingsInput) (*backup.DescribeGlobalSettingsOutput, error) DescribeGlobalSettingsWithContext(aws.Context, *backup.DescribeGlobalSettingsInput, ...request.Option) (*backup.DescribeGlobalSettingsOutput, error) DescribeGlobalSettingsRequest(*backup.DescribeGlobalSettingsInput) (*request.Request, *backup.DescribeGlobalSettingsOutput) DescribeProtectedResource(*backup.DescribeProtectedResourceInput) (*backup.DescribeProtectedResourceOutput, error) DescribeProtectedResourceWithContext(aws.Context, *backup.DescribeProtectedResourceInput, ...request.Option) (*backup.DescribeProtectedResourceOutput, error) DescribeProtectedResourceRequest(*backup.DescribeProtectedResourceInput) (*request.Request, *backup.DescribeProtectedResourceOutput) DescribeRecoveryPoint(*backup.DescribeRecoveryPointInput) (*backup.DescribeRecoveryPointOutput, error) DescribeRecoveryPointWithContext(aws.Context, *backup.DescribeRecoveryPointInput, ...request.Option) (*backup.DescribeRecoveryPointOutput, error) DescribeRecoveryPointRequest(*backup.DescribeRecoveryPointInput) (*request.Request, *backup.DescribeRecoveryPointOutput) DescribeRegionSettings(*backup.DescribeRegionSettingsInput) (*backup.DescribeRegionSettingsOutput, error) DescribeRegionSettingsWithContext(aws.Context, *backup.DescribeRegionSettingsInput, ...request.Option) (*backup.DescribeRegionSettingsOutput, error) DescribeRegionSettingsRequest(*backup.DescribeRegionSettingsInput) (*request.Request, *backup.DescribeRegionSettingsOutput) DescribeRestoreJob(*backup.DescribeRestoreJobInput) (*backup.DescribeRestoreJobOutput, error) DescribeRestoreJobWithContext(aws.Context, *backup.DescribeRestoreJobInput, ...request.Option) (*backup.DescribeRestoreJobOutput, error) DescribeRestoreJobRequest(*backup.DescribeRestoreJobInput) (*request.Request, *backup.DescribeRestoreJobOutput) DisassociateRecoveryPoint(*backup.DisassociateRecoveryPointInput) (*backup.DisassociateRecoveryPointOutput, error) DisassociateRecoveryPointWithContext(aws.Context, *backup.DisassociateRecoveryPointInput, ...request.Option) (*backup.DisassociateRecoveryPointOutput, error) DisassociateRecoveryPointRequest(*backup.DisassociateRecoveryPointInput) (*request.Request, *backup.DisassociateRecoveryPointOutput) ExportBackupPlanTemplate(*backup.ExportBackupPlanTemplateInput) (*backup.ExportBackupPlanTemplateOutput, error) ExportBackupPlanTemplateWithContext(aws.Context, *backup.ExportBackupPlanTemplateInput, ...request.Option) (*backup.ExportBackupPlanTemplateOutput, error) ExportBackupPlanTemplateRequest(*backup.ExportBackupPlanTemplateInput) (*request.Request, *backup.ExportBackupPlanTemplateOutput) GetBackupPlan(*backup.GetBackupPlanInput) (*backup.GetBackupPlanOutput, error) GetBackupPlanWithContext(aws.Context, *backup.GetBackupPlanInput, ...request.Option) (*backup.GetBackupPlanOutput, error) GetBackupPlanRequest(*backup.GetBackupPlanInput) (*request.Request, *backup.GetBackupPlanOutput) GetBackupPlanFromJSON(*backup.GetBackupPlanFromJSONInput) (*backup.GetBackupPlanFromJSONOutput, error) GetBackupPlanFromJSONWithContext(aws.Context, *backup.GetBackupPlanFromJSONInput, ...request.Option) (*backup.GetBackupPlanFromJSONOutput, error) GetBackupPlanFromJSONRequest(*backup.GetBackupPlanFromJSONInput) (*request.Request, *backup.GetBackupPlanFromJSONOutput) GetBackupPlanFromTemplate(*backup.GetBackupPlanFromTemplateInput) (*backup.GetBackupPlanFromTemplateOutput, error) GetBackupPlanFromTemplateWithContext(aws.Context, *backup.GetBackupPlanFromTemplateInput, ...request.Option) (*backup.GetBackupPlanFromTemplateOutput, error) GetBackupPlanFromTemplateRequest(*backup.GetBackupPlanFromTemplateInput) (*request.Request, *backup.GetBackupPlanFromTemplateOutput) GetBackupSelection(*backup.GetBackupSelectionInput) (*backup.GetBackupSelectionOutput, error) GetBackupSelectionWithContext(aws.Context, *backup.GetBackupSelectionInput, ...request.Option) (*backup.GetBackupSelectionOutput, error) GetBackupSelectionRequest(*backup.GetBackupSelectionInput) (*request.Request, *backup.GetBackupSelectionOutput) GetBackupVaultAccessPolicy(*backup.GetBackupVaultAccessPolicyInput) (*backup.GetBackupVaultAccessPolicyOutput, error) GetBackupVaultAccessPolicyWithContext(aws.Context, *backup.GetBackupVaultAccessPolicyInput, ...request.Option) (*backup.GetBackupVaultAccessPolicyOutput, error) GetBackupVaultAccessPolicyRequest(*backup.GetBackupVaultAccessPolicyInput) (*request.Request, *backup.GetBackupVaultAccessPolicyOutput) GetBackupVaultNotifications(*backup.GetBackupVaultNotificationsInput) (*backup.GetBackupVaultNotificationsOutput, error) GetBackupVaultNotificationsWithContext(aws.Context, *backup.GetBackupVaultNotificationsInput, ...request.Option) (*backup.GetBackupVaultNotificationsOutput, error) GetBackupVaultNotificationsRequest(*backup.GetBackupVaultNotificationsInput) (*request.Request, *backup.GetBackupVaultNotificationsOutput) GetRecoveryPointRestoreMetadata(*backup.GetRecoveryPointRestoreMetadataInput) (*backup.GetRecoveryPointRestoreMetadataOutput, error) GetRecoveryPointRestoreMetadataWithContext(aws.Context, *backup.GetRecoveryPointRestoreMetadataInput, ...request.Option) (*backup.GetRecoveryPointRestoreMetadataOutput, error) GetRecoveryPointRestoreMetadataRequest(*backup.GetRecoveryPointRestoreMetadataInput) (*request.Request, *backup.GetRecoveryPointRestoreMetadataOutput) GetSupportedResourceTypes(*backup.GetSupportedResourceTypesInput) (*backup.GetSupportedResourceTypesOutput, error) GetSupportedResourceTypesWithContext(aws.Context, *backup.GetSupportedResourceTypesInput, ...request.Option) (*backup.GetSupportedResourceTypesOutput, error) GetSupportedResourceTypesRequest(*backup.GetSupportedResourceTypesInput) (*request.Request, *backup.GetSupportedResourceTypesOutput) ListBackupJobs(*backup.ListBackupJobsInput) (*backup.ListBackupJobsOutput, error) ListBackupJobsWithContext(aws.Context, *backup.ListBackupJobsInput, ...request.Option) (*backup.ListBackupJobsOutput, error) ListBackupJobsRequest(*backup.ListBackupJobsInput) (*request.Request, *backup.ListBackupJobsOutput) ListBackupJobsPages(*backup.ListBackupJobsInput, func(*backup.ListBackupJobsOutput, bool) bool) error ListBackupJobsPagesWithContext(aws.Context, *backup.ListBackupJobsInput, func(*backup.ListBackupJobsOutput, bool) bool, ...request.Option) error ListBackupPlanTemplates(*backup.ListBackupPlanTemplatesInput) (*backup.ListBackupPlanTemplatesOutput, error) ListBackupPlanTemplatesWithContext(aws.Context, *backup.ListBackupPlanTemplatesInput, ...request.Option) (*backup.ListBackupPlanTemplatesOutput, error) ListBackupPlanTemplatesRequest(*backup.ListBackupPlanTemplatesInput) (*request.Request, *backup.ListBackupPlanTemplatesOutput) ListBackupPlanTemplatesPages(*backup.ListBackupPlanTemplatesInput, func(*backup.ListBackupPlanTemplatesOutput, bool) bool) error ListBackupPlanTemplatesPagesWithContext(aws.Context, *backup.ListBackupPlanTemplatesInput, func(*backup.ListBackupPlanTemplatesOutput, bool) bool, ...request.Option) error ListBackupPlanVersions(*backup.ListBackupPlanVersionsInput) (*backup.ListBackupPlanVersionsOutput, error) ListBackupPlanVersionsWithContext(aws.Context, *backup.ListBackupPlanVersionsInput, ...request.Option) (*backup.ListBackupPlanVersionsOutput, error) ListBackupPlanVersionsRequest(*backup.ListBackupPlanVersionsInput) (*request.Request, *backup.ListBackupPlanVersionsOutput) ListBackupPlanVersionsPages(*backup.ListBackupPlanVersionsInput, func(*backup.ListBackupPlanVersionsOutput, bool) bool) error ListBackupPlanVersionsPagesWithContext(aws.Context, *backup.ListBackupPlanVersionsInput, func(*backup.ListBackupPlanVersionsOutput, bool) bool, ...request.Option) error ListBackupPlans(*backup.ListBackupPlansInput) (*backup.ListBackupPlansOutput, error) ListBackupPlansWithContext(aws.Context, *backup.ListBackupPlansInput, ...request.Option) (*backup.ListBackupPlansOutput, error) ListBackupPlansRequest(*backup.ListBackupPlansInput) (*request.Request, *backup.ListBackupPlansOutput) ListBackupPlansPages(*backup.ListBackupPlansInput, func(*backup.ListBackupPlansOutput, bool) bool) error ListBackupPlansPagesWithContext(aws.Context, *backup.ListBackupPlansInput, func(*backup.ListBackupPlansOutput, bool) bool, ...request.Option) error ListBackupSelections(*backup.ListBackupSelectionsInput) (*backup.ListBackupSelectionsOutput, error) ListBackupSelectionsWithContext(aws.Context, *backup.ListBackupSelectionsInput, ...request.Option) (*backup.ListBackupSelectionsOutput, error) ListBackupSelectionsRequest(*backup.ListBackupSelectionsInput) (*request.Request, *backup.ListBackupSelectionsOutput) ListBackupSelectionsPages(*backup.ListBackupSelectionsInput, func(*backup.ListBackupSelectionsOutput, bool) bool) error ListBackupSelectionsPagesWithContext(aws.Context, *backup.ListBackupSelectionsInput, func(*backup.ListBackupSelectionsOutput, bool) bool, ...request.Option) error ListBackupVaults(*backup.ListBackupVaultsInput) (*backup.ListBackupVaultsOutput, error) ListBackupVaultsWithContext(aws.Context, *backup.ListBackupVaultsInput, ...request.Option) (*backup.ListBackupVaultsOutput, error) ListBackupVaultsRequest(*backup.ListBackupVaultsInput) (*request.Request, *backup.ListBackupVaultsOutput) ListBackupVaultsPages(*backup.ListBackupVaultsInput, func(*backup.ListBackupVaultsOutput, bool) bool) error ListBackupVaultsPagesWithContext(aws.Context, *backup.ListBackupVaultsInput, func(*backup.ListBackupVaultsOutput, bool) bool, ...request.Option) error ListCopyJobs(*backup.ListCopyJobsInput) (*backup.ListCopyJobsOutput, error) ListCopyJobsWithContext(aws.Context, *backup.ListCopyJobsInput, ...request.Option) (*backup.ListCopyJobsOutput, error) ListCopyJobsRequest(*backup.ListCopyJobsInput) (*request.Request, *backup.ListCopyJobsOutput) ListCopyJobsPages(*backup.ListCopyJobsInput, func(*backup.ListCopyJobsOutput, bool) bool) error ListCopyJobsPagesWithContext(aws.Context, *backup.ListCopyJobsInput, func(*backup.ListCopyJobsOutput, bool) bool, ...request.Option) error ListProtectedResources(*backup.ListProtectedResourcesInput) (*backup.ListProtectedResourcesOutput, error) ListProtectedResourcesWithContext(aws.Context, *backup.ListProtectedResourcesInput, ...request.Option) (*backup.ListProtectedResourcesOutput, error) ListProtectedResourcesRequest(*backup.ListProtectedResourcesInput) (*request.Request, *backup.ListProtectedResourcesOutput) ListProtectedResourcesPages(*backup.ListProtectedResourcesInput, func(*backup.ListProtectedResourcesOutput, bool) bool) error ListProtectedResourcesPagesWithContext(aws.Context, *backup.ListProtectedResourcesInput, func(*backup.ListProtectedResourcesOutput, bool) bool, ...request.Option) error ListRecoveryPointsByBackupVault(*backup.ListRecoveryPointsByBackupVaultInput) (*backup.ListRecoveryPointsByBackupVaultOutput, error) ListRecoveryPointsByBackupVaultWithContext(aws.Context, *backup.ListRecoveryPointsByBackupVaultInput, ...request.Option) (*backup.ListRecoveryPointsByBackupVaultOutput, error) ListRecoveryPointsByBackupVaultRequest(*backup.ListRecoveryPointsByBackupVaultInput) (*request.Request, *backup.ListRecoveryPointsByBackupVaultOutput) ListRecoveryPointsByBackupVaultPages(*backup.ListRecoveryPointsByBackupVaultInput, func(*backup.ListRecoveryPointsByBackupVaultOutput, bool) bool) error ListRecoveryPointsByBackupVaultPagesWithContext(aws.Context, *backup.ListRecoveryPointsByBackupVaultInput, func(*backup.ListRecoveryPointsByBackupVaultOutput, bool) bool, ...request.Option) error ListRecoveryPointsByResource(*backup.ListRecoveryPointsByResourceInput) (*backup.ListRecoveryPointsByResourceOutput, error) ListRecoveryPointsByResourceWithContext(aws.Context, *backup.ListRecoveryPointsByResourceInput, ...request.Option) (*backup.ListRecoveryPointsByResourceOutput, error) ListRecoveryPointsByResourceRequest(*backup.ListRecoveryPointsByResourceInput) (*request.Request, *backup.ListRecoveryPointsByResourceOutput) ListRecoveryPointsByResourcePages(*backup.ListRecoveryPointsByResourceInput, func(*backup.ListRecoveryPointsByResourceOutput, bool) bool) error ListRecoveryPointsByResourcePagesWithContext(aws.Context, *backup.ListRecoveryPointsByResourceInput, func(*backup.ListRecoveryPointsByResourceOutput, bool) bool, ...request.Option) error ListRestoreJobs(*backup.ListRestoreJobsInput) (*backup.ListRestoreJobsOutput, error) ListRestoreJobsWithContext(aws.Context, *backup.ListRestoreJobsInput, ...request.Option) (*backup.ListRestoreJobsOutput, error) ListRestoreJobsRequest(*backup.ListRestoreJobsInput) (*request.Request, *backup.ListRestoreJobsOutput) ListRestoreJobsPages(*backup.ListRestoreJobsInput, func(*backup.ListRestoreJobsOutput, bool) bool) error ListRestoreJobsPagesWithContext(aws.Context, *backup.ListRestoreJobsInput, func(*backup.ListRestoreJobsOutput, bool) bool, ...request.Option) error ListTags(*backup.ListTagsInput) (*backup.ListTagsOutput, error) ListTagsWithContext(aws.Context, *backup.ListTagsInput, ...request.Option) (*backup.ListTagsOutput, error) ListTagsRequest(*backup.ListTagsInput) (*request.Request, *backup.ListTagsOutput) ListTagsPages(*backup.ListTagsInput, func(*backup.ListTagsOutput, bool) bool) error ListTagsPagesWithContext(aws.Context, *backup.ListTagsInput, func(*backup.ListTagsOutput, bool) bool, ...request.Option) error PutBackupVaultAccessPolicy(*backup.PutBackupVaultAccessPolicyInput) (*backup.PutBackupVaultAccessPolicyOutput, error) PutBackupVaultAccessPolicyWithContext(aws.Context, *backup.PutBackupVaultAccessPolicyInput, ...request.Option) (*backup.PutBackupVaultAccessPolicyOutput, error) PutBackupVaultAccessPolicyRequest(*backup.PutBackupVaultAccessPolicyInput) (*request.Request, *backup.PutBackupVaultAccessPolicyOutput) PutBackupVaultNotifications(*backup.PutBackupVaultNotificationsInput) (*backup.PutBackupVaultNotificationsOutput, error) PutBackupVaultNotificationsWithContext(aws.Context, *backup.PutBackupVaultNotificationsInput, ...request.Option) (*backup.PutBackupVaultNotificationsOutput, error) PutBackupVaultNotificationsRequest(*backup.PutBackupVaultNotificationsInput) (*request.Request, *backup.PutBackupVaultNotificationsOutput) StartBackupJob(*backup.StartBackupJobInput) (*backup.StartBackupJobOutput, error) StartBackupJobWithContext(aws.Context, *backup.StartBackupJobInput, ...request.Option) (*backup.StartBackupJobOutput, error) StartBackupJobRequest(*backup.StartBackupJobInput) (*request.Request, *backup.StartBackupJobOutput) StartCopyJob(*backup.StartCopyJobInput) (*backup.StartCopyJobOutput, error) StartCopyJobWithContext(aws.Context, *backup.StartCopyJobInput, ...request.Option) (*backup.StartCopyJobOutput, error) StartCopyJobRequest(*backup.StartCopyJobInput) (*request.Request, *backup.StartCopyJobOutput) StartRestoreJob(*backup.StartRestoreJobInput) (*backup.StartRestoreJobOutput, error) StartRestoreJobWithContext(aws.Context, *backup.StartRestoreJobInput, ...request.Option) (*backup.StartRestoreJobOutput, error) StartRestoreJobRequest(*backup.StartRestoreJobInput) (*request.Request, *backup.StartRestoreJobOutput) StopBackupJob(*backup.StopBackupJobInput) (*backup.StopBackupJobOutput, error) StopBackupJobWithContext(aws.Context, *backup.StopBackupJobInput, ...request.Option) (*backup.StopBackupJobOutput, error) StopBackupJobRequest(*backup.StopBackupJobInput) (*request.Request, *backup.StopBackupJobOutput) TagResource(*backup.TagResourceInput) (*backup.TagResourceOutput, error) TagResourceWithContext(aws.Context, *backup.TagResourceInput, ...request.Option) (*backup.TagResourceOutput, error) TagResourceRequest(*backup.TagResourceInput) (*request.Request, *backup.TagResourceOutput) UntagResource(*backup.UntagResourceInput) (*backup.UntagResourceOutput, error) UntagResourceWithContext(aws.Context, *backup.UntagResourceInput, ...request.Option) (*backup.UntagResourceOutput, error) UntagResourceRequest(*backup.UntagResourceInput) (*request.Request, *backup.UntagResourceOutput) UpdateBackupPlan(*backup.UpdateBackupPlanInput) (*backup.UpdateBackupPlanOutput, error) UpdateBackupPlanWithContext(aws.Context, *backup.UpdateBackupPlanInput, ...request.Option) (*backup.UpdateBackupPlanOutput, error) UpdateBackupPlanRequest(*backup.UpdateBackupPlanInput) (*request.Request, *backup.UpdateBackupPlanOutput) UpdateGlobalSettings(*backup.UpdateGlobalSettingsInput) (*backup.UpdateGlobalSettingsOutput, error) UpdateGlobalSettingsWithContext(aws.Context, *backup.UpdateGlobalSettingsInput, ...request.Option) (*backup.UpdateGlobalSettingsOutput, error) UpdateGlobalSettingsRequest(*backup.UpdateGlobalSettingsInput) (*request.Request, *backup.UpdateGlobalSettingsOutput) UpdateRecoveryPointLifecycle(*backup.UpdateRecoveryPointLifecycleInput) (*backup.UpdateRecoveryPointLifecycleOutput, error) UpdateRecoveryPointLifecycleWithContext(aws.Context, *backup.UpdateRecoveryPointLifecycleInput, ...request.Option) (*backup.UpdateRecoveryPointLifecycleOutput, error) UpdateRecoveryPointLifecycleRequest(*backup.UpdateRecoveryPointLifecycleInput) (*request.Request, *backup.UpdateRecoveryPointLifecycleOutput) UpdateRegionSettings(*backup.UpdateRegionSettingsInput) (*backup.UpdateRegionSettingsOutput, error) UpdateRegionSettingsWithContext(aws.Context, *backup.UpdateRegionSettingsInput, ...request.Option) (*backup.UpdateRegionSettingsOutput, error) UpdateRegionSettingsRequest(*backup.UpdateRegionSettingsInput) (*request.Request, *backup.UpdateRegionSettingsOutput) } var _ BackupAPI = (*backup.Backup)(nil)
305
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package batch import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) const opCancelJob = "CancelJob" // CancelJobRequest generates a "aws/request.Request" representing the // client's request for the CancelJob operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CancelJob for more information on using the CancelJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CancelJobRequest method. // req, resp := client.CancelJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CancelJob func (c *Batch) CancelJobRequest(input *CancelJobInput) (req *request.Request, output *CancelJobOutput) { op := &request.Operation{ Name: opCancelJob, HTTPMethod: "POST", HTTPPath: "/v1/canceljob", } if input == nil { input = &CancelJobInput{} } output = &CancelJobOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // CancelJob API operation for AWS Batch. // // Cancels a job in an Batch job queue. Jobs that are in the SUBMITTED, PENDING, // or RUNNABLE state are canceled. Jobs that have progressed to STARTING or // RUNNING aren't canceled, but the API operation still succeeds, even if no // job is canceled. These jobs must be terminated with the TerminateJob operation. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Batch's // API operation CancelJob for usage and error information. // // Returned Error Types: // * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that's not valid. // // * ServerException // These errors are usually caused by a server issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CancelJob func (c *Batch) CancelJob(input *CancelJobInput) (*CancelJobOutput, error) { req, out := c.CancelJobRequest(input) return out, req.Send() } // CancelJobWithContext is the same as CancelJob with the addition of // the ability to pass a context and additional request options. // // See CancelJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Batch) CancelJobWithContext(ctx aws.Context, input *CancelJobInput, opts ...request.Option) (*CancelJobOutput, error) { req, out := c.CancelJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateComputeEnvironment = "CreateComputeEnvironment" // CreateComputeEnvironmentRequest generates a "aws/request.Request" representing the // client's request for the CreateComputeEnvironment operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateComputeEnvironment for more information on using the CreateComputeEnvironment // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateComputeEnvironmentRequest method. // req, resp := client.CreateComputeEnvironmentRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateComputeEnvironment func (c *Batch) CreateComputeEnvironmentRequest(input *CreateComputeEnvironmentInput) (req *request.Request, output *CreateComputeEnvironmentOutput) { op := &request.Operation{ Name: opCreateComputeEnvironment, HTTPMethod: "POST", HTTPPath: "/v1/createcomputeenvironment", } if input == nil { input = &CreateComputeEnvironmentInput{} } output = &CreateComputeEnvironmentOutput{} req = c.newRequest(op, input, output) return } // CreateComputeEnvironment API operation for AWS Batch. // // Creates an Batch compute environment. You can create MANAGED or UNMANAGED // compute environments. MANAGED compute environments can use Amazon EC2 or // Fargate resources. UNMANAGED compute environments can only use EC2 resources. // // In a managed compute environment, Batch manages the capacity and instance // types of the compute resources within the environment. This is based on the // compute resource specification that you define or the launch template (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html) // that you specify when you create the compute environment. Either, you can // choose to use EC2 On-Demand Instances and EC2 Spot Instances. Or, you can // use Fargate and Fargate Spot capacity in your managed compute environment. // You can optionally set a maximum price so that Spot Instances only launch // when the Spot Instance price is less than a specified percentage of the On-Demand // price. // // Multi-node parallel jobs aren't supported on Spot Instances. // // In an unmanaged compute environment, you can manage your own EC2 compute // resources and have a lot of flexibility with how you configure your compute // resources. For example, you can use custom AMIs. However, you must verify // that each of your AMIs meet the Amazon ECS container instance AMI specification. // For more information, see container instance AMIs (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container_instance_AMIs.html) // in the Amazon Elastic Container Service Developer Guide. After you created // your unmanaged compute environment, you can use the DescribeComputeEnvironments // operation to find the Amazon ECS cluster that's associated with it. Then, // launch your container instances into that Amazon ECS cluster. For more information, // see Launching an Amazon ECS container instance (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_container_instance.html) // in the Amazon Elastic Container Service Developer Guide. // // Batch doesn't upgrade the AMIs in a compute environment after the environment // is created. For example, it doesn't update the AMIs when a newer version // of the Amazon ECS optimized AMI is available. Therefore, you're responsible // for managing the guest operating system (including its updates and security // patches) and any additional application software or utilities that you install // on the compute resources. To use a new AMI for your Batch jobs, complete // these steps: // // Create a new compute environment with the new AMI. // // Add the compute environment to an existing job queue. // // Remove the earlier compute environment from your job queue. // // Delete the earlier compute environment. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Batch's // API operation CreateComputeEnvironment for usage and error information. // // Returned Error Types: // * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that's not valid. // // * ServerException // These errors are usually caused by a server issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateComputeEnvironment func (c *Batch) CreateComputeEnvironment(input *CreateComputeEnvironmentInput) (*CreateComputeEnvironmentOutput, error) { req, out := c.CreateComputeEnvironmentRequest(input) return out, req.Send() } // CreateComputeEnvironmentWithContext is the same as CreateComputeEnvironment with the addition of // the ability to pass a context and additional request options. // // See CreateComputeEnvironment for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Batch) CreateComputeEnvironmentWithContext(ctx aws.Context, input *CreateComputeEnvironmentInput, opts ...request.Option) (*CreateComputeEnvironmentOutput, error) { req, out := c.CreateComputeEnvironmentRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateJobQueue = "CreateJobQueue" // CreateJobQueueRequest generates a "aws/request.Request" representing the // client's request for the CreateJobQueue operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateJobQueue for more information on using the CreateJobQueue // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateJobQueueRequest method. // req, resp := client.CreateJobQueueRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateJobQueue func (c *Batch) CreateJobQueueRequest(input *CreateJobQueueInput) (req *request.Request, output *CreateJobQueueOutput) { op := &request.Operation{ Name: opCreateJobQueue, HTTPMethod: "POST", HTTPPath: "/v1/createjobqueue", } if input == nil { input = &CreateJobQueueInput{} } output = &CreateJobQueueOutput{} req = c.newRequest(op, input, output) return } // CreateJobQueue API operation for AWS Batch. // // Creates an Batch job queue. When you create a job queue, you associate one // or more compute environments to the queue and assign an order of preference // for the compute environments. // // You also set a priority to the job queue that determines the order that the // Batch scheduler places jobs onto its associated compute environments. For // example, if a compute environment is associated with more than one job queue, // the job queue with a higher priority is given preference for scheduling jobs // to that compute environment. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Batch's // API operation CreateJobQueue for usage and error information. // // Returned Error Types: // * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that's not valid. // // * ServerException // These errors are usually caused by a server issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateJobQueue func (c *Batch) CreateJobQueue(input *CreateJobQueueInput) (*CreateJobQueueOutput, error) { req, out := c.CreateJobQueueRequest(input) return out, req.Send() } // CreateJobQueueWithContext is the same as CreateJobQueue with the addition of // the ability to pass a context and additional request options. // // See CreateJobQueue for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Batch) CreateJobQueueWithContext(ctx aws.Context, input *CreateJobQueueInput, opts ...request.Option) (*CreateJobQueueOutput, error) { req, out := c.CreateJobQueueRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteComputeEnvironment = "DeleteComputeEnvironment" // DeleteComputeEnvironmentRequest generates a "aws/request.Request" representing the // client's request for the DeleteComputeEnvironment operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteComputeEnvironment for more information on using the DeleteComputeEnvironment // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteComputeEnvironmentRequest method. // req, resp := client.DeleteComputeEnvironmentRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteComputeEnvironment func (c *Batch) DeleteComputeEnvironmentRequest(input *DeleteComputeEnvironmentInput) (req *request.Request, output *DeleteComputeEnvironmentOutput) { op := &request.Operation{ Name: opDeleteComputeEnvironment, HTTPMethod: "POST", HTTPPath: "/v1/deletecomputeenvironment", } if input == nil { input = &DeleteComputeEnvironmentInput{} } output = &DeleteComputeEnvironmentOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteComputeEnvironment API operation for AWS Batch. // // Deletes an Batch compute environment. // // Before you can delete a compute environment, you must set its state to DISABLED // with the UpdateComputeEnvironment API operation and disassociate it from // any job queues with the UpdateJobQueue API operation. Compute environments // that use Fargate resources must terminate all active jobs on that compute // environment before deleting the compute environment. If this isn't done, // the compute environment enters an invalid state. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Batch's // API operation DeleteComputeEnvironment for usage and error information. // // Returned Error Types: // * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that's not valid. // // * ServerException // These errors are usually caused by a server issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteComputeEnvironment func (c *Batch) DeleteComputeEnvironment(input *DeleteComputeEnvironmentInput) (*DeleteComputeEnvironmentOutput, error) { req, out := c.DeleteComputeEnvironmentRequest(input) return out, req.Send() } // DeleteComputeEnvironmentWithContext is the same as DeleteComputeEnvironment with the addition of // the ability to pass a context and additional request options. // // See DeleteComputeEnvironment for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Batch) DeleteComputeEnvironmentWithContext(ctx aws.Context, input *DeleteComputeEnvironmentInput, opts ...request.Option) (*DeleteComputeEnvironmentOutput, error) { req, out := c.DeleteComputeEnvironmentRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteJobQueue = "DeleteJobQueue" // DeleteJobQueueRequest generates a "aws/request.Request" representing the // client's request for the DeleteJobQueue operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteJobQueue for more information on using the DeleteJobQueue // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteJobQueueRequest method. // req, resp := client.DeleteJobQueueRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteJobQueue func (c *Batch) DeleteJobQueueRequest(input *DeleteJobQueueInput) (req *request.Request, output *DeleteJobQueueOutput) { op := &request.Operation{ Name: opDeleteJobQueue, HTTPMethod: "POST", HTTPPath: "/v1/deletejobqueue", } if input == nil { input = &DeleteJobQueueInput{} } output = &DeleteJobQueueOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteJobQueue API operation for AWS Batch. // // Deletes the specified job queue. You must first disable submissions for a // queue with the UpdateJobQueue operation. All jobs in the queue are eventually // terminated when you delete a job queue. The jobs are terminated at a rate // of about 16 jobs each second. // // It's not necessary to disassociate compute environments from a queue before // submitting a DeleteJobQueue request. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Batch's // API operation DeleteJobQueue for usage and error information. // // Returned Error Types: // * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that's not valid. // // * ServerException // These errors are usually caused by a server issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteJobQueue func (c *Batch) DeleteJobQueue(input *DeleteJobQueueInput) (*DeleteJobQueueOutput, error) { req, out := c.DeleteJobQueueRequest(input) return out, req.Send() } // DeleteJobQueueWithContext is the same as DeleteJobQueue with the addition of // the ability to pass a context and additional request options. // // See DeleteJobQueue for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Batch) DeleteJobQueueWithContext(ctx aws.Context, input *DeleteJobQueueInput, opts ...request.Option) (*DeleteJobQueueOutput, error) { req, out := c.DeleteJobQueueRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeregisterJobDefinition = "DeregisterJobDefinition" // DeregisterJobDefinitionRequest generates a "aws/request.Request" representing the // client's request for the DeregisterJobDefinition operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeregisterJobDefinition for more information on using the DeregisterJobDefinition // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeregisterJobDefinitionRequest method. // req, resp := client.DeregisterJobDefinitionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeregisterJobDefinition func (c *Batch) DeregisterJobDefinitionRequest(input *DeregisterJobDefinitionInput) (req *request.Request, output *DeregisterJobDefinitionOutput) { op := &request.Operation{ Name: opDeregisterJobDefinition, HTTPMethod: "POST", HTTPPath: "/v1/deregisterjobdefinition", } if input == nil { input = &DeregisterJobDefinitionInput{} } output = &DeregisterJobDefinitionOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeregisterJobDefinition API operation for AWS Batch. // // Deregisters an Batch job definition. Job definitions are permanently deleted // after 180 days. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Batch's // API operation DeregisterJobDefinition for usage and error information. // // Returned Error Types: // * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that's not valid. // // * ServerException // These errors are usually caused by a server issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeregisterJobDefinition func (c *Batch) DeregisterJobDefinition(input *DeregisterJobDefinitionInput) (*DeregisterJobDefinitionOutput, error) { req, out := c.DeregisterJobDefinitionRequest(input) return out, req.Send() } // DeregisterJobDefinitionWithContext is the same as DeregisterJobDefinition with the addition of // the ability to pass a context and additional request options. // // See DeregisterJobDefinition for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Batch) DeregisterJobDefinitionWithContext(ctx aws.Context, input *DeregisterJobDefinitionInput, opts ...request.Option) (*DeregisterJobDefinitionOutput, error) { req, out := c.DeregisterJobDefinitionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeComputeEnvironments = "DescribeComputeEnvironments" // DescribeComputeEnvironmentsRequest generates a "aws/request.Request" representing the // client's request for the DescribeComputeEnvironments operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeComputeEnvironments for more information on using the DescribeComputeEnvironments // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeComputeEnvironmentsRequest method. // req, resp := client.DescribeComputeEnvironmentsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeComputeEnvironments func (c *Batch) DescribeComputeEnvironmentsRequest(input *DescribeComputeEnvironmentsInput) (req *request.Request, output *DescribeComputeEnvironmentsOutput) { op := &request.Operation{ Name: opDescribeComputeEnvironments, HTTPMethod: "POST", HTTPPath: "/v1/describecomputeenvironments", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, LimitToken: "maxResults", TruncationToken: "", }, } if input == nil { input = &DescribeComputeEnvironmentsInput{} } output = &DescribeComputeEnvironmentsOutput{} req = c.newRequest(op, input, output) return } // DescribeComputeEnvironments API operation for AWS Batch. // // Describes one or more of your compute environments. // // If you're using an unmanaged compute environment, you can use the DescribeComputeEnvironment // operation to determine the ecsClusterArn that you should launch your Amazon // ECS container instances into. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Batch's // API operation DescribeComputeEnvironments for usage and error information. // // Returned Error Types: // * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that's not valid. // // * ServerException // These errors are usually caused by a server issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeComputeEnvironments func (c *Batch) DescribeComputeEnvironments(input *DescribeComputeEnvironmentsInput) (*DescribeComputeEnvironmentsOutput, error) { req, out := c.DescribeComputeEnvironmentsRequest(input) return out, req.Send() } // DescribeComputeEnvironmentsWithContext is the same as DescribeComputeEnvironments with the addition of // the ability to pass a context and additional request options. // // See DescribeComputeEnvironments for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Batch) DescribeComputeEnvironmentsWithContext(ctx aws.Context, input *DescribeComputeEnvironmentsInput, opts ...request.Option) (*DescribeComputeEnvironmentsOutput, error) { req, out := c.DescribeComputeEnvironmentsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // DescribeComputeEnvironmentsPages iterates over the pages of a DescribeComputeEnvironments operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See DescribeComputeEnvironments method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a DescribeComputeEnvironments operation. // pageNum := 0 // err := client.DescribeComputeEnvironmentsPages(params, // func(page *batch.DescribeComputeEnvironmentsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *Batch) DescribeComputeEnvironmentsPages(input *DescribeComputeEnvironmentsInput, fn func(*DescribeComputeEnvironmentsOutput, bool) bool) error { return c.DescribeComputeEnvironmentsPagesWithContext(aws.BackgroundContext(), input, fn) } // DescribeComputeEnvironmentsPagesWithContext same as DescribeComputeEnvironmentsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Batch) DescribeComputeEnvironmentsPagesWithContext(ctx aws.Context, input *DescribeComputeEnvironmentsInput, fn func(*DescribeComputeEnvironmentsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *DescribeComputeEnvironmentsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.DescribeComputeEnvironmentsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*DescribeComputeEnvironmentsOutput), !p.HasNextPage()) { break } } return p.Err() } const opDescribeJobDefinitions = "DescribeJobDefinitions" // DescribeJobDefinitionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeJobDefinitions operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeJobDefinitions for more information on using the DescribeJobDefinitions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeJobDefinitionsRequest method. // req, resp := client.DescribeJobDefinitionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobDefinitions func (c *Batch) DescribeJobDefinitionsRequest(input *DescribeJobDefinitionsInput) (req *request.Request, output *DescribeJobDefinitionsOutput) { op := &request.Operation{ Name: opDescribeJobDefinitions, HTTPMethod: "POST", HTTPPath: "/v1/describejobdefinitions", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, LimitToken: "maxResults", TruncationToken: "", }, } if input == nil { input = &DescribeJobDefinitionsInput{} } output = &DescribeJobDefinitionsOutput{} req = c.newRequest(op, input, output) return } // DescribeJobDefinitions API operation for AWS Batch. // // Describes a list of job definitions. You can specify a status (such as ACTIVE) // to only return job definitions that match that status. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Batch's // API operation DescribeJobDefinitions for usage and error information. // // Returned Error Types: // * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that's not valid. // // * ServerException // These errors are usually caused by a server issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobDefinitions func (c *Batch) DescribeJobDefinitions(input *DescribeJobDefinitionsInput) (*DescribeJobDefinitionsOutput, error) { req, out := c.DescribeJobDefinitionsRequest(input) return out, req.Send() } // DescribeJobDefinitionsWithContext is the same as DescribeJobDefinitions with the addition of // the ability to pass a context and additional request options. // // See DescribeJobDefinitions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Batch) DescribeJobDefinitionsWithContext(ctx aws.Context, input *DescribeJobDefinitionsInput, opts ...request.Option) (*DescribeJobDefinitionsOutput, error) { req, out := c.DescribeJobDefinitionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // DescribeJobDefinitionsPages iterates over the pages of a DescribeJobDefinitions operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See DescribeJobDefinitions method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a DescribeJobDefinitions operation. // pageNum := 0 // err := client.DescribeJobDefinitionsPages(params, // func(page *batch.DescribeJobDefinitionsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *Batch) DescribeJobDefinitionsPages(input *DescribeJobDefinitionsInput, fn func(*DescribeJobDefinitionsOutput, bool) bool) error { return c.DescribeJobDefinitionsPagesWithContext(aws.BackgroundContext(), input, fn) } // DescribeJobDefinitionsPagesWithContext same as DescribeJobDefinitionsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Batch) DescribeJobDefinitionsPagesWithContext(ctx aws.Context, input *DescribeJobDefinitionsInput, fn func(*DescribeJobDefinitionsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *DescribeJobDefinitionsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.DescribeJobDefinitionsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*DescribeJobDefinitionsOutput), !p.HasNextPage()) { break } } return p.Err() } const opDescribeJobQueues = "DescribeJobQueues" // DescribeJobQueuesRequest generates a "aws/request.Request" representing the // client's request for the DescribeJobQueues operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeJobQueues for more information on using the DescribeJobQueues // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeJobQueuesRequest method. // req, resp := client.DescribeJobQueuesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobQueues func (c *Batch) DescribeJobQueuesRequest(input *DescribeJobQueuesInput) (req *request.Request, output *DescribeJobQueuesOutput) { op := &request.Operation{ Name: opDescribeJobQueues, HTTPMethod: "POST", HTTPPath: "/v1/describejobqueues", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, LimitToken: "maxResults", TruncationToken: "", }, } if input == nil { input = &DescribeJobQueuesInput{} } output = &DescribeJobQueuesOutput{} req = c.newRequest(op, input, output) return } // DescribeJobQueues API operation for AWS Batch. // // Describes one or more of your job queues. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Batch's // API operation DescribeJobQueues for usage and error information. // // Returned Error Types: // * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that's not valid. // // * ServerException // These errors are usually caused by a server issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobQueues func (c *Batch) DescribeJobQueues(input *DescribeJobQueuesInput) (*DescribeJobQueuesOutput, error) { req, out := c.DescribeJobQueuesRequest(input) return out, req.Send() } // DescribeJobQueuesWithContext is the same as DescribeJobQueues with the addition of // the ability to pass a context and additional request options. // // See DescribeJobQueues for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Batch) DescribeJobQueuesWithContext(ctx aws.Context, input *DescribeJobQueuesInput, opts ...request.Option) (*DescribeJobQueuesOutput, error) { req, out := c.DescribeJobQueuesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // DescribeJobQueuesPages iterates over the pages of a DescribeJobQueues operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See DescribeJobQueues method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a DescribeJobQueues operation. // pageNum := 0 // err := client.DescribeJobQueuesPages(params, // func(page *batch.DescribeJobQueuesOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *Batch) DescribeJobQueuesPages(input *DescribeJobQueuesInput, fn func(*DescribeJobQueuesOutput, bool) bool) error { return c.DescribeJobQueuesPagesWithContext(aws.BackgroundContext(), input, fn) } // DescribeJobQueuesPagesWithContext same as DescribeJobQueuesPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Batch) DescribeJobQueuesPagesWithContext(ctx aws.Context, input *DescribeJobQueuesInput, fn func(*DescribeJobQueuesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *DescribeJobQueuesInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.DescribeJobQueuesRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*DescribeJobQueuesOutput), !p.HasNextPage()) { break } } return p.Err() } const opDescribeJobs = "DescribeJobs" // DescribeJobsRequest generates a "aws/request.Request" representing the // client's request for the DescribeJobs operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeJobs for more information on using the DescribeJobs // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeJobsRequest method. // req, resp := client.DescribeJobsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobs func (c *Batch) DescribeJobsRequest(input *DescribeJobsInput) (req *request.Request, output *DescribeJobsOutput) { op := &request.Operation{ Name: opDescribeJobs, HTTPMethod: "POST", HTTPPath: "/v1/describejobs", } if input == nil { input = &DescribeJobsInput{} } output = &DescribeJobsOutput{} req = c.newRequest(op, input, output) return } // DescribeJobs API operation for AWS Batch. // // Describes a list of Batch jobs. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Batch's // API operation DescribeJobs for usage and error information. // // Returned Error Types: // * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that's not valid. // // * ServerException // These errors are usually caused by a server issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobs func (c *Batch) DescribeJobs(input *DescribeJobsInput) (*DescribeJobsOutput, error) { req, out := c.DescribeJobsRequest(input) return out, req.Send() } // DescribeJobsWithContext is the same as DescribeJobs with the addition of // the ability to pass a context and additional request options. // // See DescribeJobs for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Batch) DescribeJobsWithContext(ctx aws.Context, input *DescribeJobsInput, opts ...request.Option) (*DescribeJobsOutput, error) { req, out := c.DescribeJobsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opListJobs = "ListJobs" // ListJobsRequest generates a "aws/request.Request" representing the // client's request for the ListJobs operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListJobs for more information on using the ListJobs // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListJobsRequest method. // req, resp := client.ListJobsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListJobs func (c *Batch) ListJobsRequest(input *ListJobsInput) (req *request.Request, output *ListJobsOutput) { op := &request.Operation{ Name: opListJobs, HTTPMethod: "POST", HTTPPath: "/v1/listjobs", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, LimitToken: "maxResults", TruncationToken: "", }, } if input == nil { input = &ListJobsInput{} } output = &ListJobsOutput{} req = c.newRequest(op, input, output) return } // ListJobs API operation for AWS Batch. // // Returns a list of Batch jobs. // // You must specify only one of the following items: // // * A job queue ID to return a list of jobs in that job queue // // * A multi-node parallel job ID to return a list of nodes for that job // // * An array job ID to return a list of the children for that job // // You can filter the results by job status with the jobStatus parameter. If // you don't specify a status, only RUNNING jobs are returned. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Batch's // API operation ListJobs for usage and error information. // // Returned Error Types: // * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that's not valid. // // * ServerException // These errors are usually caused by a server issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListJobs func (c *Batch) ListJobs(input *ListJobsInput) (*ListJobsOutput, error) { req, out := c.ListJobsRequest(input) return out, req.Send() } // ListJobsWithContext is the same as ListJobs with the addition of // the ability to pass a context and additional request options. // // See ListJobs for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Batch) ListJobsWithContext(ctx aws.Context, input *ListJobsInput, opts ...request.Option) (*ListJobsOutput, error) { req, out := c.ListJobsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListJobsPages iterates over the pages of a ListJobs operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListJobs method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListJobs operation. // pageNum := 0 // err := client.ListJobsPages(params, // func(page *batch.ListJobsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *Batch) ListJobsPages(input *ListJobsInput, fn func(*ListJobsOutput, bool) bool) error { return c.ListJobsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListJobsPagesWithContext same as ListJobsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Batch) ListJobsPagesWithContext(ctx aws.Context, input *ListJobsInput, fn func(*ListJobsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListJobsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListJobsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListJobsOutput), !p.HasNextPage()) { break } } return p.Err() } const opListTagsForResource = "ListTagsForResource" // ListTagsForResourceRequest generates a "aws/request.Request" representing the // client's request for the ListTagsForResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListTagsForResource for more information on using the ListTagsForResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListTagsForResourceRequest method. // req, resp := client.ListTagsForResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListTagsForResource func (c *Batch) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { op := &request.Operation{ Name: opListTagsForResource, HTTPMethod: "GET", HTTPPath: "/v1/tags/{resourceArn}", } if input == nil { input = &ListTagsForResourceInput{} } output = &ListTagsForResourceOutput{} req = c.newRequest(op, input, output) return } // ListTagsForResource API operation for AWS Batch. // // Lists the tags for an Batch resource. Batch resources that support tags are // compute environments, jobs, job definitions, and job queues. ARNs for child // jobs of array and multi-node parallel (MNP) jobs are not supported. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Batch's // API operation ListTagsForResource for usage and error information. // // Returned Error Types: // * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that's not valid. // // * ServerException // These errors are usually caused by a server issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListTagsForResource func (c *Batch) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) return out, req.Send() } // ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of // the ability to pass a context and additional request options. // // See ListTagsForResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Batch) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opRegisterJobDefinition = "RegisterJobDefinition" // RegisterJobDefinitionRequest generates a "aws/request.Request" representing the // client's request for the RegisterJobDefinition operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See RegisterJobDefinition for more information on using the RegisterJobDefinition // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the RegisterJobDefinitionRequest method. // req, resp := client.RegisterJobDefinitionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/RegisterJobDefinition func (c *Batch) RegisterJobDefinitionRequest(input *RegisterJobDefinitionInput) (req *request.Request, output *RegisterJobDefinitionOutput) { op := &request.Operation{ Name: opRegisterJobDefinition, HTTPMethod: "POST", HTTPPath: "/v1/registerjobdefinition", } if input == nil { input = &RegisterJobDefinitionInput{} } output = &RegisterJobDefinitionOutput{} req = c.newRequest(op, input, output) return } // RegisterJobDefinition API operation for AWS Batch. // // Registers an Batch job definition. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Batch's // API operation RegisterJobDefinition for usage and error information. // // Returned Error Types: // * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that's not valid. // // * ServerException // These errors are usually caused by a server issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/RegisterJobDefinition func (c *Batch) RegisterJobDefinition(input *RegisterJobDefinitionInput) (*RegisterJobDefinitionOutput, error) { req, out := c.RegisterJobDefinitionRequest(input) return out, req.Send() } // RegisterJobDefinitionWithContext is the same as RegisterJobDefinition with the addition of // the ability to pass a context and additional request options. // // See RegisterJobDefinition for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Batch) RegisterJobDefinitionWithContext(ctx aws.Context, input *RegisterJobDefinitionInput, opts ...request.Option) (*RegisterJobDefinitionOutput, error) { req, out := c.RegisterJobDefinitionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opSubmitJob = "SubmitJob" // SubmitJobRequest generates a "aws/request.Request" representing the // client's request for the SubmitJob operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See SubmitJob for more information on using the SubmitJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the SubmitJobRequest method. // req, resp := client.SubmitJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/SubmitJob func (c *Batch) SubmitJobRequest(input *SubmitJobInput) (req *request.Request, output *SubmitJobOutput) { op := &request.Operation{ Name: opSubmitJob, HTTPMethod: "POST", HTTPPath: "/v1/submitjob", } if input == nil { input = &SubmitJobInput{} } output = &SubmitJobOutput{} req = c.newRequest(op, input, output) return } // SubmitJob API operation for AWS Batch. // // Submits an Batch job from a job definition. Parameters that are specified // during SubmitJob override parameters defined in the job definition. vCPU // and memory requirements that are specified in the ResourceRequirements objects // in the job definition are the exception. They can't be overridden this way // using the memory and vcpus parameters. Rather, you must specify updates to // job definition parameters in a ResourceRequirements object that's included // in the containerOverrides parameter. // // Jobs that run on Fargate resources can't be guaranteed to run for more than // 14 days. This is because, after 14 days, Fargate resources might become unavailable // and job might be terminated. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Batch's // API operation SubmitJob for usage and error information. // // Returned Error Types: // * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that's not valid. // // * ServerException // These errors are usually caused by a server issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/SubmitJob func (c *Batch) SubmitJob(input *SubmitJobInput) (*SubmitJobOutput, error) { req, out := c.SubmitJobRequest(input) return out, req.Send() } // SubmitJobWithContext is the same as SubmitJob with the addition of // the ability to pass a context and additional request options. // // See SubmitJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Batch) SubmitJobWithContext(ctx aws.Context, input *SubmitJobInput, opts ...request.Option) (*SubmitJobOutput, error) { req, out := c.SubmitJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opTagResource = "TagResource" // TagResourceRequest generates a "aws/request.Request" representing the // client's request for the TagResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See TagResource for more information on using the TagResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the TagResourceRequest method. // req, resp := client.TagResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/TagResource func (c *Batch) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { op := &request.Operation{ Name: opTagResource, HTTPMethod: "POST", HTTPPath: "/v1/tags/{resourceArn}", } if input == nil { input = &TagResourceInput{} } output = &TagResourceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // TagResource API operation for AWS Batch. // // Associates the specified tags to a resource with the specified resourceArn. // If existing tags on a resource aren't specified in the request parameters, // they aren't changed. When a resource is deleted, the tags that are associated // with that resource are deleted as well. Batch resources that support tags // are compute environments, jobs, job definitions, and job queues. ARNs for // child jobs of array and multi-node parallel (MNP) jobs are not supported. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Batch's // API operation TagResource for usage and error information. // // Returned Error Types: // * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that's not valid. // // * ServerException // These errors are usually caused by a server issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/TagResource func (c *Batch) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { req, out := c.TagResourceRequest(input) return out, req.Send() } // TagResourceWithContext is the same as TagResource with the addition of // the ability to pass a context and additional request options. // // See TagResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Batch) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { req, out := c.TagResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opTerminateJob = "TerminateJob" // TerminateJobRequest generates a "aws/request.Request" representing the // client's request for the TerminateJob operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See TerminateJob for more information on using the TerminateJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the TerminateJobRequest method. // req, resp := client.TerminateJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/TerminateJob func (c *Batch) TerminateJobRequest(input *TerminateJobInput) (req *request.Request, output *TerminateJobOutput) { op := &request.Operation{ Name: opTerminateJob, HTTPMethod: "POST", HTTPPath: "/v1/terminatejob", } if input == nil { input = &TerminateJobInput{} } output = &TerminateJobOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // TerminateJob API operation for AWS Batch. // // Terminates a job in a job queue. Jobs that are in the STARTING or RUNNING // state are terminated, which causes them to transition to FAILED. Jobs that // have not progressed to the STARTING state are cancelled. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Batch's // API operation TerminateJob for usage and error information. // // Returned Error Types: // * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that's not valid. // // * ServerException // These errors are usually caused by a server issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/TerminateJob func (c *Batch) TerminateJob(input *TerminateJobInput) (*TerminateJobOutput, error) { req, out := c.TerminateJobRequest(input) return out, req.Send() } // TerminateJobWithContext is the same as TerminateJob with the addition of // the ability to pass a context and additional request options. // // See TerminateJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Batch) TerminateJobWithContext(ctx aws.Context, input *TerminateJobInput, opts ...request.Option) (*TerminateJobOutput, error) { req, out := c.TerminateJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUntagResource = "UntagResource" // UntagResourceRequest generates a "aws/request.Request" representing the // client's request for the UntagResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UntagResource for more information on using the UntagResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UntagResourceRequest method. // req, resp := client.UntagResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UntagResource func (c *Batch) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { op := &request.Operation{ Name: opUntagResource, HTTPMethod: "DELETE", HTTPPath: "/v1/tags/{resourceArn}", } if input == nil { input = &UntagResourceInput{} } output = &UntagResourceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // UntagResource API operation for AWS Batch. // // Deletes specified tags from an Batch resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Batch's // API operation UntagResource for usage and error information. // // Returned Error Types: // * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that's not valid. // // * ServerException // These errors are usually caused by a server issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UntagResource func (c *Batch) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { req, out := c.UntagResourceRequest(input) return out, req.Send() } // UntagResourceWithContext is the same as UntagResource with the addition of // the ability to pass a context and additional request options. // // See UntagResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Batch) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { req, out := c.UntagResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateComputeEnvironment = "UpdateComputeEnvironment" // UpdateComputeEnvironmentRequest generates a "aws/request.Request" representing the // client's request for the UpdateComputeEnvironment operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateComputeEnvironment for more information on using the UpdateComputeEnvironment // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateComputeEnvironmentRequest method. // req, resp := client.UpdateComputeEnvironmentRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateComputeEnvironment func (c *Batch) UpdateComputeEnvironmentRequest(input *UpdateComputeEnvironmentInput) (req *request.Request, output *UpdateComputeEnvironmentOutput) { op := &request.Operation{ Name: opUpdateComputeEnvironment, HTTPMethod: "POST", HTTPPath: "/v1/updatecomputeenvironment", } if input == nil { input = &UpdateComputeEnvironmentInput{} } output = &UpdateComputeEnvironmentOutput{} req = c.newRequest(op, input, output) return } // UpdateComputeEnvironment API operation for AWS Batch. // // Updates an Batch compute environment. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Batch's // API operation UpdateComputeEnvironment for usage and error information. // // Returned Error Types: // * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that's not valid. // // * ServerException // These errors are usually caused by a server issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateComputeEnvironment func (c *Batch) UpdateComputeEnvironment(input *UpdateComputeEnvironmentInput) (*UpdateComputeEnvironmentOutput, error) { req, out := c.UpdateComputeEnvironmentRequest(input) return out, req.Send() } // UpdateComputeEnvironmentWithContext is the same as UpdateComputeEnvironment with the addition of // the ability to pass a context and additional request options. // // See UpdateComputeEnvironment for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Batch) UpdateComputeEnvironmentWithContext(ctx aws.Context, input *UpdateComputeEnvironmentInput, opts ...request.Option) (*UpdateComputeEnvironmentOutput, error) { req, out := c.UpdateComputeEnvironmentRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateJobQueue = "UpdateJobQueue" // UpdateJobQueueRequest generates a "aws/request.Request" representing the // client's request for the UpdateJobQueue operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateJobQueue for more information on using the UpdateJobQueue // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateJobQueueRequest method. // req, resp := client.UpdateJobQueueRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateJobQueue func (c *Batch) UpdateJobQueueRequest(input *UpdateJobQueueInput) (req *request.Request, output *UpdateJobQueueOutput) { op := &request.Operation{ Name: opUpdateJobQueue, HTTPMethod: "POST", HTTPPath: "/v1/updatejobqueue", } if input == nil { input = &UpdateJobQueueInput{} } output = &UpdateJobQueueOutput{} req = c.newRequest(op, input, output) return } // UpdateJobQueue API operation for AWS Batch. // // Updates a job queue. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Batch's // API operation UpdateJobQueue for usage and error information. // // Returned Error Types: // * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that's not valid. // // * ServerException // These errors are usually caused by a server issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateJobQueue func (c *Batch) UpdateJobQueue(input *UpdateJobQueueInput) (*UpdateJobQueueOutput, error) { req, out := c.UpdateJobQueueRequest(input) return out, req.Send() } // UpdateJobQueueWithContext is the same as UpdateJobQueue with the addition of // the ability to pass a context and additional request options. // // See UpdateJobQueue for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Batch) UpdateJobQueueWithContext(ctx aws.Context, input *UpdateJobQueueInput, opts ...request.Option) (*UpdateJobQueueOutput, error) { req, out := c.UpdateJobQueueRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // An object representing an Batch array job. type ArrayProperties struct { _ struct{} `type:"structure"` // The size of the array job. Size *int64 `locationName:"size" type:"integer"` } // String returns the string representation func (s ArrayProperties) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ArrayProperties) GoString() string { return s.String() } // SetSize sets the Size field's value. func (s *ArrayProperties) SetSize(v int64) *ArrayProperties { s.Size = &v return s } // An object representing the array properties of a job. type ArrayPropertiesDetail struct { _ struct{} `type:"structure"` // The job index within the array that's associated with this job. This parameter // is returned for array job children. Index *int64 `locationName:"index" type:"integer"` // The size of the array job. This parameter is returned for parent array jobs. Size *int64 `locationName:"size" type:"integer"` // A summary of the number of array job children in each available job status. // This parameter is returned for parent array jobs. StatusSummary map[string]*int64 `locationName:"statusSummary" type:"map"` } // String returns the string representation func (s ArrayPropertiesDetail) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ArrayPropertiesDetail) GoString() string { return s.String() } // SetIndex sets the Index field's value. func (s *ArrayPropertiesDetail) SetIndex(v int64) *ArrayPropertiesDetail { s.Index = &v return s } // SetSize sets the Size field's value. func (s *ArrayPropertiesDetail) SetSize(v int64) *ArrayPropertiesDetail { s.Size = &v return s } // SetStatusSummary sets the StatusSummary field's value. func (s *ArrayPropertiesDetail) SetStatusSummary(v map[string]*int64) *ArrayPropertiesDetail { s.StatusSummary = v return s } // An object representing the array properties of a job. type ArrayPropertiesSummary struct { _ struct{} `type:"structure"` // The job index within the array that's associated with this job. This parameter // is returned for children of array jobs. Index *int64 `locationName:"index" type:"integer"` // The size of the array job. This parameter is returned for parent array jobs. Size *int64 `locationName:"size" type:"integer"` } // String returns the string representation func (s ArrayPropertiesSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ArrayPropertiesSummary) GoString() string { return s.String() } // SetIndex sets the Index field's value. func (s *ArrayPropertiesSummary) SetIndex(v int64) *ArrayPropertiesSummary { s.Index = &v return s } // SetSize sets the Size field's value. func (s *ArrayPropertiesSummary) SetSize(v int64) *ArrayPropertiesSummary { s.Size = &v return s } // An object representing the details of a container that's part of a job attempt. type AttemptContainerDetail struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the Amazon ECS container instance that // hosts the job attempt. ContainerInstanceArn *string `locationName:"containerInstanceArn" type:"string"` // The exit code for the job attempt. A non-zero exit code is considered a failure. ExitCode *int64 `locationName:"exitCode" type:"integer"` // The name of the CloudWatch Logs log stream associated with the container. // The log group for Batch jobs is /aws/batch/job. Each container attempt receives // a log stream name when they reach the RUNNING status. LogStreamName *string `locationName:"logStreamName" type:"string"` // The network interfaces associated with the job attempt. NetworkInterfaces []*NetworkInterface `locationName:"networkInterfaces" type:"list"` // A short (255 max characters) human-readable string to provide additional // details about a running or stopped container. Reason *string `locationName:"reason" type:"string"` // The Amazon Resource Name (ARN) of the Amazon ECS task that's associated with // the job attempt. Each container attempt receives a task ARN when they reach // the STARTING status. TaskArn *string `locationName:"taskArn" type:"string"` } // String returns the string representation func (s AttemptContainerDetail) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AttemptContainerDetail) GoString() string { return s.String() } // SetContainerInstanceArn sets the ContainerInstanceArn field's value. func (s *AttemptContainerDetail) SetContainerInstanceArn(v string) *AttemptContainerDetail { s.ContainerInstanceArn = &v return s } // SetExitCode sets the ExitCode field's value. func (s *AttemptContainerDetail) SetExitCode(v int64) *AttemptContainerDetail { s.ExitCode = &v return s } // SetLogStreamName sets the LogStreamName field's value. func (s *AttemptContainerDetail) SetLogStreamName(v string) *AttemptContainerDetail { s.LogStreamName = &v return s } // SetNetworkInterfaces sets the NetworkInterfaces field's value. func (s *AttemptContainerDetail) SetNetworkInterfaces(v []*NetworkInterface) *AttemptContainerDetail { s.NetworkInterfaces = v return s } // SetReason sets the Reason field's value. func (s *AttemptContainerDetail) SetReason(v string) *AttemptContainerDetail { s.Reason = &v return s } // SetTaskArn sets the TaskArn field's value. func (s *AttemptContainerDetail) SetTaskArn(v string) *AttemptContainerDetail { s.TaskArn = &v return s } // An object representing a job attempt. type AttemptDetail struct { _ struct{} `type:"structure"` // Details about the container in this job attempt. Container *AttemptContainerDetail `locationName:"container" type:"structure"` // The Unix timestamp (in milliseconds) for when the attempt was started (when // the attempt transitioned from the STARTING state to the RUNNING state). StartedAt *int64 `locationName:"startedAt" type:"long"` // A short, human-readable string to provide additional details about the current // status of the job attempt. StatusReason *string `locationName:"statusReason" type:"string"` // The Unix timestamp (in milliseconds) for when the attempt was stopped (when // the attempt transitioned from the RUNNING state to a terminal state, such // as SUCCEEDED or FAILED). StoppedAt *int64 `locationName:"stoppedAt" type:"long"` } // String returns the string representation func (s AttemptDetail) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AttemptDetail) GoString() string { return s.String() } // SetContainer sets the Container field's value. func (s *AttemptDetail) SetContainer(v *AttemptContainerDetail) *AttemptDetail { s.Container = v return s } // SetStartedAt sets the StartedAt field's value. func (s *AttemptDetail) SetStartedAt(v int64) *AttemptDetail { s.StartedAt = &v return s } // SetStatusReason sets the StatusReason field's value. func (s *AttemptDetail) SetStatusReason(v string) *AttemptDetail { s.StatusReason = &v return s } // SetStoppedAt sets the StoppedAt field's value. func (s *AttemptDetail) SetStoppedAt(v int64) *AttemptDetail { s.StoppedAt = &v return s } // Contains the parameters for CancelJob. type CancelJobInput struct { _ struct{} `type:"structure"` // The Batch job ID of the job to cancel. // // JobId is a required field JobId *string `locationName:"jobId" type:"string" required:"true"` // A message to attach to the job that explains the reason for canceling it. // This message is returned by future DescribeJobs operations on the job. This // message is also recorded in the Batch activity logs. // // Reason is a required field Reason *string `locationName:"reason" type:"string" required:"true"` } // String returns the string representation func (s CancelJobInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CancelJobInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CancelJobInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CancelJobInput"} if s.JobId == nil { invalidParams.Add(request.NewErrParamRequired("JobId")) } if s.Reason == nil { invalidParams.Add(request.NewErrParamRequired("Reason")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetJobId sets the JobId field's value. func (s *CancelJobInput) SetJobId(v string) *CancelJobInput { s.JobId = &v return s } // SetReason sets the Reason field's value. func (s *CancelJobInput) SetReason(v string) *CancelJobInput { s.Reason = &v return s } type CancelJobOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s CancelJobOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CancelJobOutput) GoString() string { return s.String() } // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that's not valid. type ClientException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s ClientException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ClientException) GoString() string { return s.String() } func newErrorClientException(v protocol.ResponseMetadata) error { return &ClientException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ClientException) Code() string { return "ClientException" } // Message returns the exception's message. func (s *ClientException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ClientException) OrigErr() error { return nil } func (s *ClientException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ClientException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ClientException) RequestID() string { return s.RespMetadata.RequestID } // An object representing an Batch compute environment. type ComputeEnvironmentDetail struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the compute environment. // // ComputeEnvironmentArn is a required field ComputeEnvironmentArn *string `locationName:"computeEnvironmentArn" type:"string" required:"true"` // The name of the compute environment. Up to 128 letters (uppercase and lowercase), // numbers, hyphens, and underscores are allowed. // // ComputeEnvironmentName is a required field ComputeEnvironmentName *string `locationName:"computeEnvironmentName" type:"string" required:"true"` // The compute resources defined for the compute environment. For more information, // see Compute Environments (https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html) // in the Batch User Guide. ComputeResources *ComputeResource `locationName:"computeResources" type:"structure"` // The Amazon Resource Name (ARN) of the underlying Amazon ECS cluster used // by the compute environment. // // EcsClusterArn is a required field EcsClusterArn *string `locationName:"ecsClusterArn" type:"string" required:"true"` // The service role associated with the compute environment that allows Batch // to make calls to Amazon Web Services API operations on your behalf. For more // information, see Batch service IAM role (https://docs.aws.amazon.com/batch/latest/userguide/service_IAM_role.html) // in the Batch User Guide. ServiceRole *string `locationName:"serviceRole" type:"string"` // The state of the compute environment. The valid values are ENABLED or DISABLED. // // If the state is ENABLED, then the Batch scheduler can attempt to place jobs // from an associated job queue on the compute resources within the environment. // If the compute environment is managed, then it can scale its instances out // or in automatically, based on the job queue demand. // // If the state is DISABLED, then the Batch scheduler doesn't attempt to place // jobs within the environment. Jobs in a STARTING or RUNNING state continue // to progress normally. Managed compute environments in the DISABLED state // don't scale out. However, they scale in to minvCpus value after instances // become idle. State *string `locationName:"state" type:"string" enum:"CEState"` // The current status of the compute environment (for example, CREATING or VALID). Status *string `locationName:"status" type:"string" enum:"CEStatus"` // A short, human-readable string to provide additional details about the current // status of the compute environment. StatusReason *string `locationName:"statusReason" type:"string"` // The tags applied to the compute environment. Tags map[string]*string `locationName:"tags" min:"1" type:"map"` // The type of the compute environment: MANAGED or UNMANAGED. For more information, // see Compute Environments (https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html) // in the Batch User Guide. Type *string `locationName:"type" type:"string" enum:"CEType"` } // String returns the string representation func (s ComputeEnvironmentDetail) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ComputeEnvironmentDetail) GoString() string { return s.String() } // SetComputeEnvironmentArn sets the ComputeEnvironmentArn field's value. func (s *ComputeEnvironmentDetail) SetComputeEnvironmentArn(v string) *ComputeEnvironmentDetail { s.ComputeEnvironmentArn = &v return s } // SetComputeEnvironmentName sets the ComputeEnvironmentName field's value. func (s *ComputeEnvironmentDetail) SetComputeEnvironmentName(v string) *ComputeEnvironmentDetail { s.ComputeEnvironmentName = &v return s } // SetComputeResources sets the ComputeResources field's value. func (s *ComputeEnvironmentDetail) SetComputeResources(v *ComputeResource) *ComputeEnvironmentDetail { s.ComputeResources = v return s } // SetEcsClusterArn sets the EcsClusterArn field's value. func (s *ComputeEnvironmentDetail) SetEcsClusterArn(v string) *ComputeEnvironmentDetail { s.EcsClusterArn = &v return s } // SetServiceRole sets the ServiceRole field's value. func (s *ComputeEnvironmentDetail) SetServiceRole(v string) *ComputeEnvironmentDetail { s.ServiceRole = &v return s } // SetState sets the State field's value. func (s *ComputeEnvironmentDetail) SetState(v string) *ComputeEnvironmentDetail { s.State = &v return s } // SetStatus sets the Status field's value. func (s *ComputeEnvironmentDetail) SetStatus(v string) *ComputeEnvironmentDetail { s.Status = &v return s } // SetStatusReason sets the StatusReason field's value. func (s *ComputeEnvironmentDetail) SetStatusReason(v string) *ComputeEnvironmentDetail { s.StatusReason = &v return s } // SetTags sets the Tags field's value. func (s *ComputeEnvironmentDetail) SetTags(v map[string]*string) *ComputeEnvironmentDetail { s.Tags = v return s } // SetType sets the Type field's value. func (s *ComputeEnvironmentDetail) SetType(v string) *ComputeEnvironmentDetail { s.Type = &v return s } // The order in which compute environments are tried for job placement within // a queue. Compute environments are tried in ascending order. For example, // if two compute environments are associated with a job queue, the compute // environment with a lower order integer value is tried for job placement first. // Compute environments must be in the VALID state before you can associate // them with a job queue. All of the compute environments must be either EC2 // (EC2 or SPOT) or Fargate (FARGATE or FARGATE_SPOT); EC2 and Fargate compute // environments can't be mixed. // // All compute environments that are associated with a job queue must share // the same architecture. Batch doesn't support mixing compute environment architecture // types in a single job queue. type ComputeEnvironmentOrder struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the compute environment. // // ComputeEnvironment is a required field ComputeEnvironment *string `locationName:"computeEnvironment" type:"string" required:"true"` // The order of the compute environment. Compute environments are tried in ascending // order. For example, if two compute environments are associated with a job // queue, the compute environment with a lower order integer value is tried // for job placement first. // // Order is a required field Order *int64 `locationName:"order" type:"integer" required:"true"` } // String returns the string representation func (s ComputeEnvironmentOrder) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ComputeEnvironmentOrder) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ComputeEnvironmentOrder) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ComputeEnvironmentOrder"} if s.ComputeEnvironment == nil { invalidParams.Add(request.NewErrParamRequired("ComputeEnvironment")) } if s.Order == nil { invalidParams.Add(request.NewErrParamRequired("Order")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetComputeEnvironment sets the ComputeEnvironment field's value. func (s *ComputeEnvironmentOrder) SetComputeEnvironment(v string) *ComputeEnvironmentOrder { s.ComputeEnvironment = &v return s } // SetOrder sets the Order field's value. func (s *ComputeEnvironmentOrder) SetOrder(v int64) *ComputeEnvironmentOrder { s.Order = &v return s } // An object representing an Batch compute resource. For more information, see // Compute Environments (https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html) // in the Batch User Guide. type ComputeResource struct { _ struct{} `type:"structure"` // The allocation strategy to use for the compute resource if not enough instances // of the best fitting instance type can be allocated. This might be because // of availability of the instance type in the Region or Amazon EC2 service // limits (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-resource-limits.html). // For more information, see Allocation Strategies (https://docs.aws.amazon.com/batch/latest/userguide/allocation-strategies.html) // in the Batch User Guide. // // This parameter isn't applicable to jobs that are running on Fargate resources, // and shouldn't be specified. // // BEST_FIT (default) // // Batch selects an instance type that best fits the needs of the jobs with // a preference for the lowest-cost instance type. If additional instances of // the selected instance type aren't available, Batch waits for the additional // instances to be available. If there aren't enough instances available, or // if the user is reaching Amazon EC2 service limits (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-resource-limits.html) // then additional jobs aren't run until the currently running jobs have completed. // This allocation strategy keeps costs lower but can limit scaling. If you // are using Spot Fleets with BEST_FIT then the Spot Fleet IAM Role must be // specified. // // BEST_FIT_PROGRESSIVE // // Batch will select additional instance types that are large enough to meet // the requirements of the jobs in the queue, with a preference for instance // types with a lower cost per unit vCPU. If additional instances of the previously // selected instance types aren't available, Batch will select new instance // types. // // SPOT_CAPACITY_OPTIMIZED // // Batch will select one or more instance types that are large enough to meet // the requirements of the jobs in the queue, with a preference for instance // types that are less likely to be interrupted. This allocation strategy is // only available for Spot Instance compute resources. // // With both BEST_FIT_PROGRESSIVE and SPOT_CAPACITY_OPTIMIZED strategies, Batch // might need to go above maxvCpus to meet your capacity requirements. In this // event, Batch never exceeds maxvCpus by more than a single instance. AllocationStrategy *string `locationName:"allocationStrategy" type:"string" enum:"CRAllocationStrategy"` // The maximum percentage that a Spot Instance price can be when compared with // the On-Demand price for that instance type before instances are launched. // For example, if your maximum percentage is 20%, then the Spot price must // be less than 20% of the current On-Demand price for that Amazon EC2 instance. // You always pay the lowest (market) price and never more than your maximum // percentage. If you leave this field empty, the default value is 100% of the // On-Demand price. // // This parameter isn't applicable to jobs that are running on Fargate resources, // and shouldn't be specified. BidPercentage *int64 `locationName:"bidPercentage" type:"integer"` // The desired number of Amazon EC2 vCPUS in the compute environment. Batch // modifies this value between the minimum and maximum values, based on job // queue demand. // // This parameter isn't applicable to jobs that are running on Fargate resources, // and shouldn't be specified. DesiredvCpus *int64 `locationName:"desiredvCpus" type:"integer"` // Provides information used to select Amazon Machine Images (AMIs) for EC2 // instances in the compute environment. If Ec2Configuration isn't specified, // the default is ECS_AL1. // // This parameter isn't applicable to jobs that are running on Fargate resources, // and shouldn't be specified. Ec2Configuration []*Ec2Configuration `locationName:"ec2Configuration" type:"list"` // The Amazon EC2 key pair that's used for instances launched in the compute // environment. You can use this key pair to log in to your instances with SSH. // // This parameter isn't applicable to jobs that are running on Fargate resources, // and shouldn't be specified. Ec2KeyPair *string `locationName:"ec2KeyPair" type:"string"` // The Amazon Machine Image (AMI) ID used for instances launched in the compute // environment. This parameter is overridden by the imageIdOverride member of // the Ec2Configuration structure. // // This parameter isn't applicable to jobs that are running on Fargate resources, // and shouldn't be specified. // // The AMI that you choose for a compute environment must match the architecture // of the instance types that you intend to use for that compute environment. // For example, if your compute environment uses A1 instance types, the compute // resource AMI that you choose must support ARM instances. Amazon ECS vends // both x86 and ARM versions of the Amazon ECS-optimized Amazon Linux 2 AMI. // For more information, see Amazon ECS-optimized Amazon Linux 2 AMI (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#ecs-optimized-ami-linux-variants.html) // in the Amazon Elastic Container Service Developer Guide. // // Deprecated: This field is deprecated, use ec2Configuration[].imageIdOverride instead. ImageId *string `locationName:"imageId" deprecated:"true" type:"string"` // The Amazon ECS instance profile applied to Amazon EC2 instances in a compute // environment. You can specify the short name or full Amazon Resource Name // (ARN) of an instance profile. For example, ecsInstanceRole or arn:aws:iam::<aws_account_id>:instance-profile/ecsInstanceRole // . For more information, see Amazon ECS Instance Role (https://docs.aws.amazon.com/batch/latest/userguide/instance_IAM_role.html) // in the Batch User Guide. // // This parameter isn't applicable to jobs that are running on Fargate resources, // and shouldn't be specified. InstanceRole *string `locationName:"instanceRole" type:"string"` // The instances types that can be launched. You can specify instance families // to launch any instance type within those families (for example, c5 or p3), // or you can specify specific sizes within a family (such as c5.8xlarge). You // can also choose optimal to select instance types (from the C4, M4, and R4 // instance families) that match the demand of your job queues. // // This parameter isn't applicable to jobs that are running on Fargate resources, // and shouldn't be specified. // // When you create a compute environment, the instance types that you select // for the compute environment must share the same architecture. For example, // you can't mix x86 and ARM instances in the same compute environment. // // Currently, optimal uses instance types from the C4, M4, and R4 instance families. // In Regions that don't have instance types from those instance families, instance // types from the C5, M5. and R5 instance families are used. InstanceTypes []*string `locationName:"instanceTypes" type:"list"` // The launch template to use for your compute resources. Any other compute // resource parameters that you specify in a CreateComputeEnvironment API operation // override the same parameters in the launch template. You must specify either // the launch template ID or launch template name in the request, but not both. // For more information, see Launch Template Support (https://docs.aws.amazon.com/batch/latest/userguide/launch-templates.html) // in the Batch User Guide. // // This parameter isn't applicable to jobs that are running on Fargate resources, // and shouldn't be specified. LaunchTemplate *LaunchTemplateSpecification `locationName:"launchTemplate" type:"structure"` // The maximum number of Amazon EC2 vCPUs that a compute environment can reach. // // With both BEST_FIT_PROGRESSIVE and SPOT_CAPACITY_OPTIMIZED allocation strategies, // Batch might need to exceed maxvCpus to meet your capacity requirements. In // this event, Batch never exceeds maxvCpus by more than a single instance. // For example, no more than a single instance from among those specified in // your compute environment is allocated. // // MaxvCpus is a required field MaxvCpus *int64 `locationName:"maxvCpus" type:"integer" required:"true"` // The minimum number of Amazon EC2 vCPUs that an environment should maintain // (even if the compute environment is DISABLED). // // This parameter isn't applicable to jobs that are running on Fargate resources, // and shouldn't be specified. MinvCpus *int64 `locationName:"minvCpus" type:"integer"` // The Amazon EC2 placement group to associate with your compute resources. // If you intend to submit multi-node parallel jobs to your compute environment, // you should consider creating a cluster placement group and associate it with // your compute resources. This keeps your multi-node parallel job on a logical // grouping of instances within a single Availability Zone with high network // flow potential. For more information, see Placement Groups (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html) // in the Amazon EC2 User Guide for Linux Instances. // // This parameter isn't applicable to jobs that are running on Fargate resources, // and shouldn't be specified. PlacementGroup *string `locationName:"placementGroup" type:"string"` // The Amazon EC2 security groups associated with instances launched in the // compute environment. One or more security groups must be specified, either // in securityGroupIds or using a launch template referenced in launchTemplate. // This parameter is required for jobs that are running on Fargate resources // and must contain at least one security group. Fargate doesn't support launch // templates. If security groups are specified using both securityGroupIds and // launchTemplate, the values in securityGroupIds are used. SecurityGroupIds []*string `locationName:"securityGroupIds" type:"list"` // The Amazon Resource Name (ARN) of the Amazon EC2 Spot Fleet IAM role applied // to a SPOT compute environment. This role is required if the allocation strategy // set to BEST_FIT or if the allocation strategy isn't specified. For more information, // see Amazon EC2 Spot Fleet Role (https://docs.aws.amazon.com/batch/latest/userguide/spot_fleet_IAM_role.html) // in the Batch User Guide. // // This parameter isn't applicable to jobs that are running on Fargate resources, // and shouldn't be specified. // // To tag your Spot Instances on creation, the Spot Fleet IAM role specified // here must use the newer AmazonEC2SpotFleetTaggingRole managed policy. The // previously recommended AmazonEC2SpotFleetRole managed policy doesn't have // the required permissions to tag Spot Instances. For more information, see // Spot Instances not tagged on creation (https://docs.aws.amazon.com/batch/latest/userguide/troubleshooting.html#spot-instance-no-tag) // in the Batch User Guide. SpotIamFleetRole *string `locationName:"spotIamFleetRole" type:"string"` // The VPC subnets where the compute resources are launched. These subnets must // be within the same VPC. Fargate compute resources can contain up to 16 subnets. // For more information, see VPCs and Subnets (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html) // in the Amazon VPC User Guide. // // Subnets is a required field Subnets []*string `locationName:"subnets" type:"list" required:"true"` // Key-value pair tags to be applied to EC2 resources that are launched in the // compute environment. For Batch, these take the form of "String1": "String2", // where String1 is the tag key and String2 is the tag value−for example, // { "Name": "Batch Instance - C4OnDemand" }. This is helpful for recognizing // your Batch instances in the Amazon EC2 console. These tags can't be updated // or removed after the compute environment is created.Aany changes to these // tags require that you create a new compute environment and remove the old // compute environment. These tags aren't seen when using the Batch ListTagsForResource // API operation. // // This parameter isn't applicable to jobs that are running on Fargate resources, // and shouldn't be specified. Tags map[string]*string `locationName:"tags" type:"map"` // The type of compute environment: EC2, SPOT, FARGATE, or FARGATE_SPOT. For // more information, see Compute Environments (https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html) // in the Batch User Guide. // // If you choose SPOT, you must also specify an Amazon EC2 Spot Fleet role with // the spotIamFleetRole parameter. For more information, see Amazon EC2 Spot // Fleet role (https://docs.aws.amazon.com/batch/latest/userguide/spot_fleet_IAM_role.html) // in the Batch User Guide. // // Type is a required field Type *string `locationName:"type" type:"string" required:"true" enum:"CRType"` } // String returns the string representation func (s ComputeResource) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ComputeResource) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ComputeResource) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ComputeResource"} if s.MaxvCpus == nil { invalidParams.Add(request.NewErrParamRequired("MaxvCpus")) } if s.Subnets == nil { invalidParams.Add(request.NewErrParamRequired("Subnets")) } if s.Type == nil { invalidParams.Add(request.NewErrParamRequired("Type")) } if s.Ec2Configuration != nil { for i, v := range s.Ec2Configuration { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Ec2Configuration", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAllocationStrategy sets the AllocationStrategy field's value. func (s *ComputeResource) SetAllocationStrategy(v string) *ComputeResource { s.AllocationStrategy = &v return s } // SetBidPercentage sets the BidPercentage field's value. func (s *ComputeResource) SetBidPercentage(v int64) *ComputeResource { s.BidPercentage = &v return s } // SetDesiredvCpus sets the DesiredvCpus field's value. func (s *ComputeResource) SetDesiredvCpus(v int64) *ComputeResource { s.DesiredvCpus = &v return s } // SetEc2Configuration sets the Ec2Configuration field's value. func (s *ComputeResource) SetEc2Configuration(v []*Ec2Configuration) *ComputeResource { s.Ec2Configuration = v return s } // SetEc2KeyPair sets the Ec2KeyPair field's value. func (s *ComputeResource) SetEc2KeyPair(v string) *ComputeResource { s.Ec2KeyPair = &v return s } // SetImageId sets the ImageId field's value. func (s *ComputeResource) SetImageId(v string) *ComputeResource { s.ImageId = &v return s } // SetInstanceRole sets the InstanceRole field's value. func (s *ComputeResource) SetInstanceRole(v string) *ComputeResource { s.InstanceRole = &v return s } // SetInstanceTypes sets the InstanceTypes field's value. func (s *ComputeResource) SetInstanceTypes(v []*string) *ComputeResource { s.InstanceTypes = v return s } // SetLaunchTemplate sets the LaunchTemplate field's value. func (s *ComputeResource) SetLaunchTemplate(v *LaunchTemplateSpecification) *ComputeResource { s.LaunchTemplate = v return s } // SetMaxvCpus sets the MaxvCpus field's value. func (s *ComputeResource) SetMaxvCpus(v int64) *ComputeResource { s.MaxvCpus = &v return s } // SetMinvCpus sets the MinvCpus field's value. func (s *ComputeResource) SetMinvCpus(v int64) *ComputeResource { s.MinvCpus = &v return s } // SetPlacementGroup sets the PlacementGroup field's value. func (s *ComputeResource) SetPlacementGroup(v string) *ComputeResource { s.PlacementGroup = &v return s } // SetSecurityGroupIds sets the SecurityGroupIds field's value. func (s *ComputeResource) SetSecurityGroupIds(v []*string) *ComputeResource { s.SecurityGroupIds = v return s } // SetSpotIamFleetRole sets the SpotIamFleetRole field's value. func (s *ComputeResource) SetSpotIamFleetRole(v string) *ComputeResource { s.SpotIamFleetRole = &v return s } // SetSubnets sets the Subnets field's value. func (s *ComputeResource) SetSubnets(v []*string) *ComputeResource { s.Subnets = v return s } // SetTags sets the Tags field's value. func (s *ComputeResource) SetTags(v map[string]*string) *ComputeResource { s.Tags = v return s } // SetType sets the Type field's value. func (s *ComputeResource) SetType(v string) *ComputeResource { s.Type = &v return s } // An object representing the attributes of a compute environment that can be // updated. For more information, see Compute Environments (https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html) // in the Batch User Guide. type ComputeResourceUpdate struct { _ struct{} `type:"structure"` // The desired number of Amazon EC2 vCPUS in the compute environment. // // This parameter isn't applicable to jobs that are running on Fargate resources, // and shouldn't be specified. DesiredvCpus *int64 `locationName:"desiredvCpus" type:"integer"` // The maximum number of Amazon EC2 vCPUs that an environment can reach. // // With both BEST_FIT_PROGRESSIVE and SPOT_CAPACITY_OPTIMIZED allocation strategies, // Batch might need to exceed maxvCpus to meet your capacity requirements. In // this event, Batch never exceeds maxvCpus by more than a single instance. // That is, no more than a single instance from among those specified in your // compute environment. MaxvCpus *int64 `locationName:"maxvCpus" type:"integer"` // The minimum number of Amazon EC2 vCPUs that an environment should maintain. // // This parameter isn't applicable to jobs that are running on Fargate resources, // and shouldn't be specified. MinvCpus *int64 `locationName:"minvCpus" type:"integer"` // The Amazon EC2 security groups associated with instances launched in the // compute environment. This parameter is required for Fargate compute resources, // where it can contain up to 5 security groups. This can't be specified for // EC2 compute resources. Providing an empty list is handled as if this parameter // wasn't specified and no change is made. SecurityGroupIds []*string `locationName:"securityGroupIds" type:"list"` // The VPC subnets where the compute resources are launched. Fargate compute // resources can contain up to 16 subnets. Providing an empty list will be handled // as if this parameter wasn't specified and no change is made. This can't be // specified for EC2 compute resources. For more information, see VPCs and Subnets // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html) in the // Amazon VPC User Guide. Subnets []*string `locationName:"subnets" type:"list"` } // String returns the string representation func (s ComputeResourceUpdate) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ComputeResourceUpdate) GoString() string { return s.String() } // SetDesiredvCpus sets the DesiredvCpus field's value. func (s *ComputeResourceUpdate) SetDesiredvCpus(v int64) *ComputeResourceUpdate { s.DesiredvCpus = &v return s } // SetMaxvCpus sets the MaxvCpus field's value. func (s *ComputeResourceUpdate) SetMaxvCpus(v int64) *ComputeResourceUpdate { s.MaxvCpus = &v return s } // SetMinvCpus sets the MinvCpus field's value. func (s *ComputeResourceUpdate) SetMinvCpus(v int64) *ComputeResourceUpdate { s.MinvCpus = &v return s } // SetSecurityGroupIds sets the SecurityGroupIds field's value. func (s *ComputeResourceUpdate) SetSecurityGroupIds(v []*string) *ComputeResourceUpdate { s.SecurityGroupIds = v return s } // SetSubnets sets the Subnets field's value. func (s *ComputeResourceUpdate) SetSubnets(v []*string) *ComputeResourceUpdate { s.Subnets = v return s } // An object representing the details of a container that's part of a job. type ContainerDetail struct { _ struct{} `type:"structure"` // The command that's passed to the container. Command []*string `locationName:"command" type:"list"` // The Amazon Resource Name (ARN) of the container instance that the container // is running on. ContainerInstanceArn *string `locationName:"containerInstanceArn" type:"string"` // The environment variables to pass to a container. // // Environment variables must not start with AWS_BATCH; this naming convention // is reserved for variables that are set by the Batch service. Environment []*KeyValuePair `locationName:"environment" type:"list"` // The Amazon Resource Name (ARN) of the execution role that Batch can assume. // For more information, see Batch execution IAM role (https://docs.aws.amazon.com/batch/latest/userguide/execution-IAM-role.html) // in the Batch User Guide. ExecutionRoleArn *string `locationName:"executionRoleArn" type:"string"` // The exit code to return upon completion. ExitCode *int64 `locationName:"exitCode" type:"integer"` // The platform configuration for jobs that are running on Fargate resources. // Jobs that are running on EC2 resources must not specify this parameter. FargatePlatformConfiguration *FargatePlatformConfiguration `locationName:"fargatePlatformConfiguration" type:"structure"` // The image used to start the container. Image *string `locationName:"image" type:"string"` // The instance type of the underlying host infrastructure of a multi-node parallel // job. // // This parameter isn't applicable to jobs that are running on Fargate resources. InstanceType *string `locationName:"instanceType" type:"string"` // The Amazon Resource Name (ARN) associated with the job upon execution. JobRoleArn *string `locationName:"jobRoleArn" type:"string"` // Linux-specific modifications that are applied to the container, such as details // for device mappings. LinuxParameters *LinuxParameters `locationName:"linuxParameters" type:"structure"` // The log configuration specification for the container. // // This parameter maps to LogConfig in the Create a container (https://docs.docker.com/engine/api/v1.23/#create-a-container) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.23/) // and the --log-driver option to docker run (https://docs.docker.com/engine/reference/run/). // By default, containers use the same logging driver that the Docker daemon // uses. However, the container might use a different logging driver than the // Docker daemon by specifying a log driver with this parameter in the container // definition. To use a different logging driver for a container, the log system // must be configured properly on the container instance. Or, alternatively, // it must be configured on a different log server for remote logging options. // For more information on the options for different supported log drivers, // see Configure logging drivers (https://docs.docker.com/engine/admin/logging/overview/) // in the Docker documentation. // // Batch currently supports a subset of the logging drivers available to the // Docker daemon (shown in the LogConfiguration data type). Additional log drivers // might be available in future releases of the Amazon ECS container agent. // // This parameter requires version 1.18 of the Docker Remote API or greater // on your container instance. To check the Docker Remote API version on your // container instance, log into your container instance and run the following // command: sudo docker version | grep "Server API version" // // The Amazon ECS container agent running on a container instance must register // the logging drivers available on that instance with the ECS_AVAILABLE_LOGGING_DRIVERS // environment variable before containers placed on that instance can use these // log configuration options. For more information, see Amazon ECS Container // Agent Configuration (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html) // in the Amazon Elastic Container Service Developer Guide. LogConfiguration *LogConfiguration `locationName:"logConfiguration" type:"structure"` // The name of the CloudWatch Logs log stream associated with the container. // The log group for Batch jobs is /aws/batch/job. Each container attempt receives // a log stream name when they reach the RUNNING status. LogStreamName *string `locationName:"logStreamName" type:"string"` // For jobs run on EC2 resources that didn't specify memory requirements using // ResourceRequirement, the number of MiB of memory reserved for the job. For // other jobs, including all run on Fargate resources, see resourceRequirements. Memory *int64 `locationName:"memory" type:"integer"` // The mount points for data volumes in your container. MountPoints []*MountPoint `locationName:"mountPoints" type:"list"` // The network configuration for jobs that are running on Fargate resources. // Jobs that are running on EC2 resources must not specify this parameter. NetworkConfiguration *NetworkConfiguration `locationName:"networkConfiguration" type:"structure"` // The network interfaces associated with the job. NetworkInterfaces []*NetworkInterface `locationName:"networkInterfaces" type:"list"` // When this parameter is true, the container is given elevated permissions // on the host container instance (similar to the root user). The default value // is false. // // This parameter isn't applicable to jobs that are running on Fargate resources // and shouldn't be provided, or specified as false. Privileged *bool `locationName:"privileged" type:"boolean"` // When this parameter is true, the container is given read-only access to its // root file system. This parameter maps to ReadonlyRootfs in the Create a container // (https://docs.docker.com/engine/api/v1.23/#create-a-container) section of // the Docker Remote API (https://docs.docker.com/engine/api/v1.23/) and the // --read-only option to docker run (https://docs.docker.com/engine/reference/commandline/run/). ReadonlyRootFilesystem *bool `locationName:"readonlyRootFilesystem" type:"boolean"` // A short (255 max characters) human-readable string to provide additional // details about a running or stopped container. Reason *string `locationName:"reason" type:"string"` // The type and amount of resources to assign to a container. The supported // resources include GPU, MEMORY, and VCPU. ResourceRequirements []*ResourceRequirement `locationName:"resourceRequirements" type:"list"` // The secrets to pass to the container. For more information, see Specifying // sensitive data (https://docs.aws.amazon.com/batch/latest/userguide/specifying-sensitive-data.html) // in the Batch User Guide. Secrets []*Secret `locationName:"secrets" type:"list"` // The Amazon Resource Name (ARN) of the Amazon ECS task that's associated with // the container job. Each container attempt receives a task ARN when they reach // the STARTING status. TaskArn *string `locationName:"taskArn" type:"string"` // A list of ulimit values to set in the container. This parameter maps to Ulimits // in the Create a container (https://docs.docker.com/engine/api/v1.23/#create-a-container) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.23/) // and the --ulimit option to docker run (https://docs.docker.com/engine/reference/run/). // // This parameter isn't applicable to jobs that are running on Fargate resources. Ulimits []*Ulimit `locationName:"ulimits" type:"list"` // The user name to use inside the container. This parameter maps to User in // the Create a container (https://docs.docker.com/engine/api/v1.23/#create-a-container) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.23/) // and the --user option to docker run (https://docs.docker.com/engine/reference/run/). User *string `locationName:"user" type:"string"` // The number of vCPUs reserved for the container. For jobs that run on EC2 // resources, you can specify the vCPU requirement for the job using resourceRequirements, // but you can't specify the vCPU requirements in both the vcpus and resourceRequirement // object. This parameter maps to CpuShares in the Create a container (https://docs.docker.com/engine/api/v1.23/#create-a-container) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.23/) // and the --cpu-shares option to docker run (https://docs.docker.com/engine/reference/run/). // Each vCPU is equivalent to 1,024 CPU shares. You must specify at least one // vCPU. This is required but can be specified in several places. It must be // specified for each node at least once. // // This parameter isn't applicable to jobs that run on Fargate resources. For // jobs that run on Fargate resources, you must specify the vCPU requirement // for the job using resourceRequirements. Vcpus *int64 `locationName:"vcpus" type:"integer"` // A list of volumes associated with the job. Volumes []*Volume `locationName:"volumes" type:"list"` } // String returns the string representation func (s ContainerDetail) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ContainerDetail) GoString() string { return s.String() } // SetCommand sets the Command field's value. func (s *ContainerDetail) SetCommand(v []*string) *ContainerDetail { s.Command = v return s } // SetContainerInstanceArn sets the ContainerInstanceArn field's value. func (s *ContainerDetail) SetContainerInstanceArn(v string) *ContainerDetail { s.ContainerInstanceArn = &v return s } // SetEnvironment sets the Environment field's value. func (s *ContainerDetail) SetEnvironment(v []*KeyValuePair) *ContainerDetail { s.Environment = v return s } // SetExecutionRoleArn sets the ExecutionRoleArn field's value. func (s *ContainerDetail) SetExecutionRoleArn(v string) *ContainerDetail { s.ExecutionRoleArn = &v return s } // SetExitCode sets the ExitCode field's value. func (s *ContainerDetail) SetExitCode(v int64) *ContainerDetail { s.ExitCode = &v return s } // SetFargatePlatformConfiguration sets the FargatePlatformConfiguration field's value. func (s *ContainerDetail) SetFargatePlatformConfiguration(v *FargatePlatformConfiguration) *ContainerDetail { s.FargatePlatformConfiguration = v return s } // SetImage sets the Image field's value. func (s *ContainerDetail) SetImage(v string) *ContainerDetail { s.Image = &v return s } // SetInstanceType sets the InstanceType field's value. func (s *ContainerDetail) SetInstanceType(v string) *ContainerDetail { s.InstanceType = &v return s } // SetJobRoleArn sets the JobRoleArn field's value. func (s *ContainerDetail) SetJobRoleArn(v string) *ContainerDetail { s.JobRoleArn = &v return s } // SetLinuxParameters sets the LinuxParameters field's value. func (s *ContainerDetail) SetLinuxParameters(v *LinuxParameters) *ContainerDetail { s.LinuxParameters = v return s } // SetLogConfiguration sets the LogConfiguration field's value. func (s *ContainerDetail) SetLogConfiguration(v *LogConfiguration) *ContainerDetail { s.LogConfiguration = v return s } // SetLogStreamName sets the LogStreamName field's value. func (s *ContainerDetail) SetLogStreamName(v string) *ContainerDetail { s.LogStreamName = &v return s } // SetMemory sets the Memory field's value. func (s *ContainerDetail) SetMemory(v int64) *ContainerDetail { s.Memory = &v return s } // SetMountPoints sets the MountPoints field's value. func (s *ContainerDetail) SetMountPoints(v []*MountPoint) *ContainerDetail { s.MountPoints = v return s } // SetNetworkConfiguration sets the NetworkConfiguration field's value. func (s *ContainerDetail) SetNetworkConfiguration(v *NetworkConfiguration) *ContainerDetail { s.NetworkConfiguration = v return s } // SetNetworkInterfaces sets the NetworkInterfaces field's value. func (s *ContainerDetail) SetNetworkInterfaces(v []*NetworkInterface) *ContainerDetail { s.NetworkInterfaces = v return s } // SetPrivileged sets the Privileged field's value. func (s *ContainerDetail) SetPrivileged(v bool) *ContainerDetail { s.Privileged = &v return s } // SetReadonlyRootFilesystem sets the ReadonlyRootFilesystem field's value. func (s *ContainerDetail) SetReadonlyRootFilesystem(v bool) *ContainerDetail { s.ReadonlyRootFilesystem = &v return s } // SetReason sets the Reason field's value. func (s *ContainerDetail) SetReason(v string) *ContainerDetail { s.Reason = &v return s } // SetResourceRequirements sets the ResourceRequirements field's value. func (s *ContainerDetail) SetResourceRequirements(v []*ResourceRequirement) *ContainerDetail { s.ResourceRequirements = v return s } // SetSecrets sets the Secrets field's value. func (s *ContainerDetail) SetSecrets(v []*Secret) *ContainerDetail { s.Secrets = v return s } // SetTaskArn sets the TaskArn field's value. func (s *ContainerDetail) SetTaskArn(v string) *ContainerDetail { s.TaskArn = &v return s } // SetUlimits sets the Ulimits field's value. func (s *ContainerDetail) SetUlimits(v []*Ulimit) *ContainerDetail { s.Ulimits = v return s } // SetUser sets the User field's value. func (s *ContainerDetail) SetUser(v string) *ContainerDetail { s.User = &v return s } // SetVcpus sets the Vcpus field's value. func (s *ContainerDetail) SetVcpus(v int64) *ContainerDetail { s.Vcpus = &v return s } // SetVolumes sets the Volumes field's value. func (s *ContainerDetail) SetVolumes(v []*Volume) *ContainerDetail { s.Volumes = v return s } // The overrides that should be sent to a container. type ContainerOverrides struct { _ struct{} `type:"structure"` // The command to send to the container that overrides the default command from // the Docker image or the job definition. Command []*string `locationName:"command" type:"list"` // The environment variables to send to the container. You can add new environment // variables, which are added to the container at launch, or you can override // the existing environment variables from the Docker image or the job definition. // // Environment variables must not start with AWS_BATCH; this naming convention // is reserved for variables that are set by the Batch service. Environment []*KeyValuePair `locationName:"environment" type:"list"` // The instance type to use for a multi-node parallel job. // // This parameter isn't applicable to single-node container jobs or jobs that // run on Fargate resources, and shouldn't be provided. InstanceType *string `locationName:"instanceType" type:"string"` // This parameter indicates the amount of memory (in MiB) that's reserved for // the job. It overrides the memory parameter set in the job definition, but // doesn't override any memory requirement specified in the ResourceRequirement // structure in the job definition. To override memory requirements that are // specified in the ResourceRequirement structure in the job definition, ResourceRequirement // must be specified in the SubmitJob request, with type set to MEMORY and value // set to the new value. // // This parameter is supported for jobs that run on EC2 resources, but isn't // supported for jobs that run on Fargate resources. For these resources, use // resourceRequirement instead. // // Deprecated: This field is deprecated, use resourceRequirements instead. Memory *int64 `locationName:"memory" deprecated:"true" type:"integer"` // The type and amount of resources to assign to a container. This overrides // the settings in the job definition. The supported resources include GPU, // MEMORY, and VCPU. ResourceRequirements []*ResourceRequirement `locationName:"resourceRequirements" type:"list"` // This parameter indicates the number of vCPUs reserved for the container.It // overrides the vcpus parameter that's set in the job definition, but doesn't // override any vCPU requirement specified in the resourceRequirement structure // in the job definition. To override vCPU requirements that are specified in // the ResourceRequirement structure in the job definition, ResourceRequirement // must be specified in the SubmitJob request, with type set to VCPU and value // set to the new value. // // This parameter maps to CpuShares in the Create a container (https://docs.docker.com/engine/api/v1.23/#create-a-container) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.23/) // and the --cpu-shares option to docker run (https://docs.docker.com/engine/reference/run/). // Each vCPU is equivalent to 1,024 CPU shares. You must specify at least one // vCPU. // // This parameter is supported for jobs that run on EC2 resources, but isn't // supported for jobs that run on Fargate resources. For Fargate resources, // you can only use resourceRequirement. For EC2 resources, you can use either // this parameter or resourceRequirement but not both. // // Deprecated: This field is deprecated, use resourceRequirements instead. Vcpus *int64 `locationName:"vcpus" deprecated:"true" type:"integer"` } // String returns the string representation func (s ContainerOverrides) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ContainerOverrides) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ContainerOverrides) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ContainerOverrides"} if s.ResourceRequirements != nil { for i, v := range s.ResourceRequirements { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ResourceRequirements", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCommand sets the Command field's value. func (s *ContainerOverrides) SetCommand(v []*string) *ContainerOverrides { s.Command = v return s } // SetEnvironment sets the Environment field's value. func (s *ContainerOverrides) SetEnvironment(v []*KeyValuePair) *ContainerOverrides { s.Environment = v return s } // SetInstanceType sets the InstanceType field's value. func (s *ContainerOverrides) SetInstanceType(v string) *ContainerOverrides { s.InstanceType = &v return s } // SetMemory sets the Memory field's value. func (s *ContainerOverrides) SetMemory(v int64) *ContainerOverrides { s.Memory = &v return s } // SetResourceRequirements sets the ResourceRequirements field's value. func (s *ContainerOverrides) SetResourceRequirements(v []*ResourceRequirement) *ContainerOverrides { s.ResourceRequirements = v return s } // SetVcpus sets the Vcpus field's value. func (s *ContainerOverrides) SetVcpus(v int64) *ContainerOverrides { s.Vcpus = &v return s } // Container properties are used in job definitions to describe the container // that's launched as part of a job. type ContainerProperties struct { _ struct{} `type:"structure"` // The command that's passed to the container. This parameter maps to Cmd in // the Create a container (https://docs.docker.com/engine/api/v1.23/#create-a-container) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.23/) // and the COMMAND parameter to docker run (https://docs.docker.com/engine/reference/run/). // For more information, see https://docs.docker.com/engine/reference/builder/#cmd // (https://docs.docker.com/engine/reference/builder/#cmd). Command []*string `locationName:"command" type:"list"` // The environment variables to pass to a container. This parameter maps to // Env in the Create a container (https://docs.docker.com/engine/api/v1.23/#create-a-container) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.23/) // and the --env option to docker run (https://docs.docker.com/engine/reference/run/). // // We don't recommend using plaintext environment variables for sensitive information, // such as credential data. // // Environment variables must not start with AWS_BATCH; this naming convention // is reserved for variables that are set by the Batch service. Environment []*KeyValuePair `locationName:"environment" type:"list"` // The Amazon Resource Name (ARN) of the execution role that Batch can assume. // For jobs that run on Fargate resources, you must provide an execution role. // For more information, see Batch execution IAM role (https://docs.aws.amazon.com/batch/latest/userguide/execution-IAM-role.html) // in the Batch User Guide. ExecutionRoleArn *string `locationName:"executionRoleArn" type:"string"` // The platform configuration for jobs that are running on Fargate resources. // Jobs that are running on EC2 resources must not specify this parameter. FargatePlatformConfiguration *FargatePlatformConfiguration `locationName:"fargatePlatformConfiguration" type:"structure"` // The image used to start a container. This string is passed directly to the // Docker daemon. Images in the Docker Hub registry are available by default. // Other repositories are specified with repository-url/image:tag . Up to 255 // letters (uppercase and lowercase), numbers, hyphens, underscores, colons, // periods, forward slashes, and number signs are allowed. This parameter maps // to Image in the Create a container (https://docs.docker.com/engine/api/v1.23/#create-a-container) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.23/) // and the IMAGE parameter of docker run (https://docs.docker.com/engine/reference/run/). // // Docker image architecture must match the processor architecture of the compute // resources that they're scheduled on. For example, ARM-based Docker images // can only run on ARM-based compute resources. // // * Images in Amazon ECR repositories use the full registry and repository // URI (for example, 012345678910.dkr.ecr.<region-name>.amazonaws.com/<repository-name>). // // * Images in official repositories on Docker Hub use a single name (for // example, ubuntu or mongo). // // * Images in other repositories on Docker Hub are qualified with an organization // name (for example, amazon/amazon-ecs-agent). // // * Images in other online repositories are qualified further by a domain // name (for example, quay.io/assemblyline/ubuntu). Image *string `locationName:"image" type:"string"` // The instance type to use for a multi-node parallel job. All node groups in // a multi-node parallel job must use the same instance type. // // This parameter isn't applicable to single-node container jobs or jobs that // run on Fargate resources, and shouldn't be provided. InstanceType *string `locationName:"instanceType" type:"string"` // The Amazon Resource Name (ARN) of the IAM role that the container can assume // for Amazon Web Services permissions. For more information, see IAM Roles // for Tasks (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html) // in the Amazon Elastic Container Service Developer Guide. JobRoleArn *string `locationName:"jobRoleArn" type:"string"` // Linux-specific modifications that are applied to the container, such as details // for device mappings. LinuxParameters *LinuxParameters `locationName:"linuxParameters" type:"structure"` // The log configuration specification for the container. // // This parameter maps to LogConfig in the Create a container (https://docs.docker.com/engine/api/v1.23/#create-a-container) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.23/) // and the --log-driver option to docker run (https://docs.docker.com/engine/reference/run/). // By default, containers use the same logging driver that the Docker daemon // uses. However the container might use a different logging driver than the // Docker daemon by specifying a log driver with this parameter in the container // definition. To use a different logging driver for a container, the log system // must be configured properly on the container instance (or on a different // log server for remote logging options). For more information on the options // for different supported log drivers, see Configure logging drivers (https://docs.docker.com/engine/admin/logging/overview/) // in the Docker documentation. // // Batch currently supports a subset of the logging drivers available to the // Docker daemon (shown in the LogConfiguration data type). // // This parameter requires version 1.18 of the Docker Remote API or greater // on your container instance. To check the Docker Remote API version on your // container instance, log into your container instance and run the following // command: sudo docker version | grep "Server API version" // // The Amazon ECS container agent running on a container instance must register // the logging drivers available on that instance with the ECS_AVAILABLE_LOGGING_DRIVERS // environment variable before containers placed on that instance can use these // log configuration options. For more information, see Amazon ECS Container // Agent Configuration (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html) // in the Amazon Elastic Container Service Developer Guide. LogConfiguration *LogConfiguration `locationName:"logConfiguration" type:"structure"` // This parameter indicates the memory hard limit (in MiB) for a container. // If your container attempts to exceed the specified number, it's terminated. // You must specify at least 4 MiB of memory for a job using this parameter. // The memory hard limit can be specified in several places. It must be specified // for each node at least once. // // This parameter maps to Memory in the Create a container (https://docs.docker.com/engine/api/v1.23/#create-a-container) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.23/) // and the --memory option to docker run (https://docs.docker.com/engine/reference/run/). // // This parameter is supported on EC2 resources but isn't supported on Fargate // resources. For Fargate resources, you should specify the memory requirement // using resourceRequirement. You can also do this for EC2 resources. // // If you're trying to maximize your resource utilization by providing your // jobs as much memory as possible for a particular instance type, see Memory // Management (https://docs.aws.amazon.com/batch/latest/userguide/memory-management.html) // in the Batch User Guide. // // Deprecated: This field is deprecated, use resourceRequirements instead. Memory *int64 `locationName:"memory" deprecated:"true" type:"integer"` // The mount points for data volumes in your container. This parameter maps // to Volumes in the Create a container (https://docs.docker.com/engine/api/v1.23/#create-a-container) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.23/) // and the --volume option to docker run (https://docs.docker.com/engine/reference/run/). MountPoints []*MountPoint `locationName:"mountPoints" type:"list"` // The network configuration for jobs that are running on Fargate resources. // Jobs that are running on EC2 resources must not specify this parameter. NetworkConfiguration *NetworkConfiguration `locationName:"networkConfiguration" type:"structure"` // When this parameter is true, the container is given elevated permissions // on the host container instance (similar to the root user). This parameter // maps to Privileged in the Create a container (https://docs.docker.com/engine/api/v1.23/#create-a-container) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.23/) // and the --privileged option to docker run (https://docs.docker.com/engine/reference/run/). // The default value is false. // // This parameter isn't applicable to jobs that are running on Fargate resources // and shouldn't be provided, or specified as false. Privileged *bool `locationName:"privileged" type:"boolean"` // When this parameter is true, the container is given read-only access to its // root file system. This parameter maps to ReadonlyRootfs in the Create a container // (https://docs.docker.com/engine/api/v1.23/#create-a-container) section of // the Docker Remote API (https://docs.docker.com/engine/api/v1.23/) and the // --read-only option to docker run. ReadonlyRootFilesystem *bool `locationName:"readonlyRootFilesystem" type:"boolean"` // The type and amount of resources to assign to a container. The supported // resources include GPU, MEMORY, and VCPU. ResourceRequirements []*ResourceRequirement `locationName:"resourceRequirements" type:"list"` // The secrets for the container. For more information, see Specifying sensitive // data (https://docs.aws.amazon.com/batch/latest/userguide/specifying-sensitive-data.html) // in the Batch User Guide. Secrets []*Secret `locationName:"secrets" type:"list"` // A list of ulimits to set in the container. This parameter maps to Ulimits // in the Create a container (https://docs.docker.com/engine/api/v1.23/#create-a-container) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.23/) // and the --ulimit option to docker run (https://docs.docker.com/engine/reference/run/). // // This parameter isn't applicable to jobs that are running on Fargate resources // and shouldn't be provided. Ulimits []*Ulimit `locationName:"ulimits" type:"list"` // The user name to use inside the container. This parameter maps to User in // the Create a container (https://docs.docker.com/engine/api/v1.23/#create-a-container) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.23/) // and the --user option to docker run (https://docs.docker.com/engine/reference/run/). User *string `locationName:"user" type:"string"` // The number of vCPUs reserved for the job. Each vCPU is equivalent to 1,024 // CPU shares. This parameter maps to CpuShares in the Create a container (https://docs.docker.com/engine/api/v1.23/#create-a-container) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.23/) // and the --cpu-shares option to docker run (https://docs.docker.com/engine/reference/run/). // The number of vCPUs must be specified but can be specified in several places. // You must specify it at least once for each node. // // This parameter is supported on EC2 resources but isn't supported for jobs // that run on Fargate resources. For these resources, use resourceRequirement // instead. You can use this parameter or resourceRequirements structure but // not both. // // This parameter isn't applicable to jobs that are running on Fargate resources // and shouldn't be provided. For jobs that run on Fargate resources, you must // specify the vCPU requirement for the job using resourceRequirements. // // Deprecated: This field is deprecated, use resourceRequirements instead. Vcpus *int64 `locationName:"vcpus" deprecated:"true" type:"integer"` // A list of data volumes used in a job. Volumes []*Volume `locationName:"volumes" type:"list"` } // String returns the string representation func (s ContainerProperties) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ContainerProperties) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ContainerProperties) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ContainerProperties"} if s.LinuxParameters != nil { if err := s.LinuxParameters.Validate(); err != nil { invalidParams.AddNested("LinuxParameters", err.(request.ErrInvalidParams)) } } if s.LogConfiguration != nil { if err := s.LogConfiguration.Validate(); err != nil { invalidParams.AddNested("LogConfiguration", err.(request.ErrInvalidParams)) } } if s.ResourceRequirements != nil { for i, v := range s.ResourceRequirements { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ResourceRequirements", i), err.(request.ErrInvalidParams)) } } } if s.Secrets != nil { for i, v := range s.Secrets { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Secrets", i), err.(request.ErrInvalidParams)) } } } if s.Ulimits != nil { for i, v := range s.Ulimits { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Ulimits", i), err.(request.ErrInvalidParams)) } } } if s.Volumes != nil { for i, v := range s.Volumes { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Volumes", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCommand sets the Command field's value. func (s *ContainerProperties) SetCommand(v []*string) *ContainerProperties { s.Command = v return s } // SetEnvironment sets the Environment field's value. func (s *ContainerProperties) SetEnvironment(v []*KeyValuePair) *ContainerProperties { s.Environment = v return s } // SetExecutionRoleArn sets the ExecutionRoleArn field's value. func (s *ContainerProperties) SetExecutionRoleArn(v string) *ContainerProperties { s.ExecutionRoleArn = &v return s } // SetFargatePlatformConfiguration sets the FargatePlatformConfiguration field's value. func (s *ContainerProperties) SetFargatePlatformConfiguration(v *FargatePlatformConfiguration) *ContainerProperties { s.FargatePlatformConfiguration = v return s } // SetImage sets the Image field's value. func (s *ContainerProperties) SetImage(v string) *ContainerProperties { s.Image = &v return s } // SetInstanceType sets the InstanceType field's value. func (s *ContainerProperties) SetInstanceType(v string) *ContainerProperties { s.InstanceType = &v return s } // SetJobRoleArn sets the JobRoleArn field's value. func (s *ContainerProperties) SetJobRoleArn(v string) *ContainerProperties { s.JobRoleArn = &v return s } // SetLinuxParameters sets the LinuxParameters field's value. func (s *ContainerProperties) SetLinuxParameters(v *LinuxParameters) *ContainerProperties { s.LinuxParameters = v return s } // SetLogConfiguration sets the LogConfiguration field's value. func (s *ContainerProperties) SetLogConfiguration(v *LogConfiguration) *ContainerProperties { s.LogConfiguration = v return s } // SetMemory sets the Memory field's value. func (s *ContainerProperties) SetMemory(v int64) *ContainerProperties { s.Memory = &v return s } // SetMountPoints sets the MountPoints field's value. func (s *ContainerProperties) SetMountPoints(v []*MountPoint) *ContainerProperties { s.MountPoints = v return s } // SetNetworkConfiguration sets the NetworkConfiguration field's value. func (s *ContainerProperties) SetNetworkConfiguration(v *NetworkConfiguration) *ContainerProperties { s.NetworkConfiguration = v return s } // SetPrivileged sets the Privileged field's value. func (s *ContainerProperties) SetPrivileged(v bool) *ContainerProperties { s.Privileged = &v return s } // SetReadonlyRootFilesystem sets the ReadonlyRootFilesystem field's value. func (s *ContainerProperties) SetReadonlyRootFilesystem(v bool) *ContainerProperties { s.ReadonlyRootFilesystem = &v return s } // SetResourceRequirements sets the ResourceRequirements field's value. func (s *ContainerProperties) SetResourceRequirements(v []*ResourceRequirement) *ContainerProperties { s.ResourceRequirements = v return s } // SetSecrets sets the Secrets field's value. func (s *ContainerProperties) SetSecrets(v []*Secret) *ContainerProperties { s.Secrets = v return s } // SetUlimits sets the Ulimits field's value. func (s *ContainerProperties) SetUlimits(v []*Ulimit) *ContainerProperties { s.Ulimits = v return s } // SetUser sets the User field's value. func (s *ContainerProperties) SetUser(v string) *ContainerProperties { s.User = &v return s } // SetVcpus sets the Vcpus field's value. func (s *ContainerProperties) SetVcpus(v int64) *ContainerProperties { s.Vcpus = &v return s } // SetVolumes sets the Volumes field's value. func (s *ContainerProperties) SetVolumes(v []*Volume) *ContainerProperties { s.Volumes = v return s } // An object representing summary details of a container within a job. type ContainerSummary struct { _ struct{} `type:"structure"` // The exit code to return upon completion. ExitCode *int64 `locationName:"exitCode" type:"integer"` // A short (255 max characters) human-readable string to provide additional // details about a running or stopped container. Reason *string `locationName:"reason" type:"string"` } // String returns the string representation func (s ContainerSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ContainerSummary) GoString() string { return s.String() } // SetExitCode sets the ExitCode field's value. func (s *ContainerSummary) SetExitCode(v int64) *ContainerSummary { s.ExitCode = &v return s } // SetReason sets the Reason field's value. func (s *ContainerSummary) SetReason(v string) *ContainerSummary { s.Reason = &v return s } // Contains the parameters for CreateComputeEnvironment. type CreateComputeEnvironmentInput struct { _ struct{} `type:"structure"` // The name for your compute environment. Up to 128 letters (uppercase and lowercase), // numbers, hyphens, and underscores are allowed. // // ComputeEnvironmentName is a required field ComputeEnvironmentName *string `locationName:"computeEnvironmentName" type:"string" required:"true"` // Details about the compute resources managed by the compute environment. This // parameter is required for managed compute environments. For more information, // see Compute Environments (https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html) // in the Batch User Guide. ComputeResources *ComputeResource `locationName:"computeResources" type:"structure"` // The full Amazon Resource Name (ARN) of the IAM role that allows Batch to // make calls to other Amazon Web Services services on your behalf. For more // information, see Batch service IAM role (https://docs.aws.amazon.com/batch/latest/userguide/service_IAM_role.html) // in the Batch User Guide. // // If your account already created the Batch service-linked role, that role // is used by default for your compute environment unless you specify a different // role here. If the Batch service-linked role doesn't exist in your account, // and no role is specified here, the service attempts to create the Batch service-linked // role in your account. // // If your specified role has a path other than /, then you must specify either // the full role ARN (recommended) or prefix the role name with the path. For // example, if a role with the name bar has a path of /foo/ then you would specify // /foo/bar as the role name. For more information, see Friendly names and paths // (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-friendly-names) // in the IAM User Guide. // // Depending on how you created your Batch service role, its ARN might contain // the service-role path prefix. When you only specify the name of the service // role, Batch assumes that your ARN doesn't use the service-role path prefix. // Because of this, we recommend that you specify the full ARN of your service // role when you create compute environments. ServiceRole *string `locationName:"serviceRole" type:"string"` // The state of the compute environment. If the state is ENABLED, then the compute // environment accepts jobs from a queue and can scale out automatically based // on queues. // // If the state is ENABLED, then the Batch scheduler can attempt to place jobs // from an associated job queue on the compute resources within the environment. // If the compute environment is managed, then it can scale its instances out // or in automatically, based on the job queue demand. // // If the state is DISABLED, then the Batch scheduler doesn't attempt to place // jobs within the environment. Jobs in a STARTING or RUNNING state continue // to progress normally. Managed compute environments in the DISABLED state // don't scale out. However, they scale in to minvCpus value after instances // become idle. State *string `locationName:"state" type:"string" enum:"CEState"` // The tags that you apply to the compute environment to help you categorize // and organize your resources. Each tag consists of a key and an optional value. // For more information, see Tagging Amazon Web Services Resources (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) // in Amazon Web Services General Reference. // // These tags can be updated or removed using the TagResource (https://docs.aws.amazon.com/batch/latest/APIReference/API_TagResource.html) // and UntagResource (https://docs.aws.amazon.com/batch/latest/APIReference/API_UntagResource.html) // API operations. These tags don't propagate to the underlying compute resources. Tags map[string]*string `locationName:"tags" min:"1" type:"map"` // The type of the compute environment: MANAGED or UNMANAGED. For more information, // see Compute Environments (https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html) // in the Batch User Guide. // // Type is a required field Type *string `locationName:"type" type:"string" required:"true" enum:"CEType"` } // String returns the string representation func (s CreateComputeEnvironmentInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateComputeEnvironmentInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateComputeEnvironmentInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateComputeEnvironmentInput"} if s.ComputeEnvironmentName == nil { invalidParams.Add(request.NewErrParamRequired("ComputeEnvironmentName")) } if s.Tags != nil && len(s.Tags) < 1 { invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) } if s.Type == nil { invalidParams.Add(request.NewErrParamRequired("Type")) } if s.ComputeResources != nil { if err := s.ComputeResources.Validate(); err != nil { invalidParams.AddNested("ComputeResources", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetComputeEnvironmentName sets the ComputeEnvironmentName field's value. func (s *CreateComputeEnvironmentInput) SetComputeEnvironmentName(v string) *CreateComputeEnvironmentInput { s.ComputeEnvironmentName = &v return s } // SetComputeResources sets the ComputeResources field's value. func (s *CreateComputeEnvironmentInput) SetComputeResources(v *ComputeResource) *CreateComputeEnvironmentInput { s.ComputeResources = v return s } // SetServiceRole sets the ServiceRole field's value. func (s *CreateComputeEnvironmentInput) SetServiceRole(v string) *CreateComputeEnvironmentInput { s.ServiceRole = &v return s } // SetState sets the State field's value. func (s *CreateComputeEnvironmentInput) SetState(v string) *CreateComputeEnvironmentInput { s.State = &v return s } // SetTags sets the Tags field's value. func (s *CreateComputeEnvironmentInput) SetTags(v map[string]*string) *CreateComputeEnvironmentInput { s.Tags = v return s } // SetType sets the Type field's value. func (s *CreateComputeEnvironmentInput) SetType(v string) *CreateComputeEnvironmentInput { s.Type = &v return s } type CreateComputeEnvironmentOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the compute environment. ComputeEnvironmentArn *string `locationName:"computeEnvironmentArn" type:"string"` // The name of the compute environment. Up to 128 letters (uppercase and lowercase), // numbers, hyphens, and underscores are allowed. ComputeEnvironmentName *string `locationName:"computeEnvironmentName" type:"string"` } // String returns the string representation func (s CreateComputeEnvironmentOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateComputeEnvironmentOutput) GoString() string { return s.String() } // SetComputeEnvironmentArn sets the ComputeEnvironmentArn field's value. func (s *CreateComputeEnvironmentOutput) SetComputeEnvironmentArn(v string) *CreateComputeEnvironmentOutput { s.ComputeEnvironmentArn = &v return s } // SetComputeEnvironmentName sets the ComputeEnvironmentName field's value. func (s *CreateComputeEnvironmentOutput) SetComputeEnvironmentName(v string) *CreateComputeEnvironmentOutput { s.ComputeEnvironmentName = &v return s } // Contains the parameters for CreateJobQueue. type CreateJobQueueInput struct { _ struct{} `type:"structure"` // The set of compute environments mapped to a job queue and their order relative // to each other. The job scheduler uses this parameter to determine which compute // environment should run a specific job. Compute environments must be in the // VALID state before you can associate them with a job queue. You can associate // up to three compute environments with a job queue. All of the compute environments // must be either EC2 (EC2 or SPOT) or Fargate (FARGATE or FARGATE_SPOT); EC2 // and Fargate compute environments can't be mixed. // // All compute environments that are associated with a job queue must share // the same architecture. Batch doesn't support mixing compute environment architecture // types in a single job queue. // // ComputeEnvironmentOrder is a required field ComputeEnvironmentOrder []*ComputeEnvironmentOrder `locationName:"computeEnvironmentOrder" type:"list" required:"true"` // The name of the job queue. Up to 128 letters (uppercase and lowercase), numbers, // and underscores are allowed. // // JobQueueName is a required field JobQueueName *string `locationName:"jobQueueName" type:"string" required:"true"` // The priority of the job queue. Job queues with a higher priority (or a higher // integer value for the priority parameter) are evaluated first when associated // with the same compute environment. Priority is determined in descending order. // For example, a job queue with a priority value of 10 is given scheduling // preference over a job queue with a priority value of 1. All of the compute // environments must be either EC2 (EC2 or SPOT) or Fargate (FARGATE or FARGATE_SPOT); // EC2 and Fargate compute environments can't be mixed. // // Priority is a required field Priority *int64 `locationName:"priority" type:"integer" required:"true"` // The state of the job queue. If the job queue state is ENABLED, it is able // to accept jobs. If the job queue state is DISABLED, new jobs can't be added // to the queue, but jobs already in the queue can finish. State *string `locationName:"state" type:"string" enum:"JQState"` // The tags that you apply to the job queue to help you categorize and organize // your resources. Each tag consists of a key and an optional value. For more // information, see Tagging your Batch resources (https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html) // in Batch User Guide. Tags map[string]*string `locationName:"tags" min:"1" type:"map"` } // String returns the string representation func (s CreateJobQueueInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateJobQueueInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateJobQueueInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateJobQueueInput"} if s.ComputeEnvironmentOrder == nil { invalidParams.Add(request.NewErrParamRequired("ComputeEnvironmentOrder")) } if s.JobQueueName == nil { invalidParams.Add(request.NewErrParamRequired("JobQueueName")) } if s.Priority == nil { invalidParams.Add(request.NewErrParamRequired("Priority")) } if s.Tags != nil && len(s.Tags) < 1 { invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) } if s.ComputeEnvironmentOrder != nil { for i, v := range s.ComputeEnvironmentOrder { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ComputeEnvironmentOrder", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetComputeEnvironmentOrder sets the ComputeEnvironmentOrder field's value. func (s *CreateJobQueueInput) SetComputeEnvironmentOrder(v []*ComputeEnvironmentOrder) *CreateJobQueueInput { s.ComputeEnvironmentOrder = v return s } // SetJobQueueName sets the JobQueueName field's value. func (s *CreateJobQueueInput) SetJobQueueName(v string) *CreateJobQueueInput { s.JobQueueName = &v return s } // SetPriority sets the Priority field's value. func (s *CreateJobQueueInput) SetPriority(v int64) *CreateJobQueueInput { s.Priority = &v return s } // SetState sets the State field's value. func (s *CreateJobQueueInput) SetState(v string) *CreateJobQueueInput { s.State = &v return s } // SetTags sets the Tags field's value. func (s *CreateJobQueueInput) SetTags(v map[string]*string) *CreateJobQueueInput { s.Tags = v return s } type CreateJobQueueOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the job queue. // // JobQueueArn is a required field JobQueueArn *string `locationName:"jobQueueArn" type:"string" required:"true"` // The name of the job queue. // // JobQueueName is a required field JobQueueName *string `locationName:"jobQueueName" type:"string" required:"true"` } // String returns the string representation func (s CreateJobQueueOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateJobQueueOutput) GoString() string { return s.String() } // SetJobQueueArn sets the JobQueueArn field's value. func (s *CreateJobQueueOutput) SetJobQueueArn(v string) *CreateJobQueueOutput { s.JobQueueArn = &v return s } // SetJobQueueName sets the JobQueueName field's value. func (s *CreateJobQueueOutput) SetJobQueueName(v string) *CreateJobQueueOutput { s.JobQueueName = &v return s } // Contains the parameters for DeleteComputeEnvironment. type DeleteComputeEnvironmentInput struct { _ struct{} `type:"structure"` // The name or Amazon Resource Name (ARN) of the compute environment to delete. // // ComputeEnvironment is a required field ComputeEnvironment *string `locationName:"computeEnvironment" type:"string" required:"true"` } // String returns the string representation func (s DeleteComputeEnvironmentInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteComputeEnvironmentInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteComputeEnvironmentInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteComputeEnvironmentInput"} if s.ComputeEnvironment == nil { invalidParams.Add(request.NewErrParamRequired("ComputeEnvironment")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetComputeEnvironment sets the ComputeEnvironment field's value. func (s *DeleteComputeEnvironmentInput) SetComputeEnvironment(v string) *DeleteComputeEnvironmentInput { s.ComputeEnvironment = &v return s } type DeleteComputeEnvironmentOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteComputeEnvironmentOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteComputeEnvironmentOutput) GoString() string { return s.String() } // Contains the parameters for DeleteJobQueue. type DeleteJobQueueInput struct { _ struct{} `type:"structure"` // The short name or full Amazon Resource Name (ARN) of the queue to delete. // // JobQueue is a required field JobQueue *string `locationName:"jobQueue" type:"string" required:"true"` } // String returns the string representation func (s DeleteJobQueueInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteJobQueueInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteJobQueueInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteJobQueueInput"} if s.JobQueue == nil { invalidParams.Add(request.NewErrParamRequired("JobQueue")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetJobQueue sets the JobQueue field's value. func (s *DeleteJobQueueInput) SetJobQueue(v string) *DeleteJobQueueInput { s.JobQueue = &v return s } type DeleteJobQueueOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteJobQueueOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteJobQueueOutput) GoString() string { return s.String() } type DeregisterJobDefinitionInput struct { _ struct{} `type:"structure"` // The name and revision (name:revision) or full Amazon Resource Name (ARN) // of the job definition to deregister. // // JobDefinition is a required field JobDefinition *string `locationName:"jobDefinition" type:"string" required:"true"` } // String returns the string representation func (s DeregisterJobDefinitionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeregisterJobDefinitionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeregisterJobDefinitionInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeregisterJobDefinitionInput"} if s.JobDefinition == nil { invalidParams.Add(request.NewErrParamRequired("JobDefinition")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetJobDefinition sets the JobDefinition field's value. func (s *DeregisterJobDefinitionInput) SetJobDefinition(v string) *DeregisterJobDefinitionInput { s.JobDefinition = &v return s } type DeregisterJobDefinitionOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeregisterJobDefinitionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeregisterJobDefinitionOutput) GoString() string { return s.String() } // Contains the parameters for DescribeComputeEnvironments. type DescribeComputeEnvironmentsInput struct { _ struct{} `type:"structure"` // A list of up to 100 compute environment names or full Amazon Resource Name // (ARN) entries. ComputeEnvironments []*string `locationName:"computeEnvironments" type:"list"` // The maximum number of cluster results returned by DescribeComputeEnvironments // in paginated output. When this parameter is used, DescribeComputeEnvironments // only returns maxResults results in a single page along with a nextToken response // element. The remaining results of the initial request can be seen by sending // another DescribeComputeEnvironments request with the returned nextToken value. // This value can be between 1 and 100. If this parameter isn't used, then DescribeComputeEnvironments // returns up to 100 results and a nextToken value if applicable. MaxResults *int64 `locationName:"maxResults" type:"integer"` // The nextToken value returned from a previous paginated DescribeComputeEnvironments // request where maxResults was used and the results exceeded the value of that // parameter. Pagination continues from the end of the previous results that // returned the nextToken value. This value is null when there are no more results // to return. // // This token should be treated as an opaque identifier that's only used to // retrieve the next items in a list and not for other programmatic purposes. NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation func (s DescribeComputeEnvironmentsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeComputeEnvironmentsInput) GoString() string { return s.String() } // SetComputeEnvironments sets the ComputeEnvironments field's value. func (s *DescribeComputeEnvironmentsInput) SetComputeEnvironments(v []*string) *DescribeComputeEnvironmentsInput { s.ComputeEnvironments = v return s } // SetMaxResults sets the MaxResults field's value. func (s *DescribeComputeEnvironmentsInput) SetMaxResults(v int64) *DescribeComputeEnvironmentsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeComputeEnvironmentsInput) SetNextToken(v string) *DescribeComputeEnvironmentsInput { s.NextToken = &v return s } type DescribeComputeEnvironmentsOutput struct { _ struct{} `type:"structure"` // The list of compute environments. ComputeEnvironments []*ComputeEnvironmentDetail `locationName:"computeEnvironments" type:"list"` // The nextToken value to include in a future DescribeComputeEnvironments request. // When the results of a DescribeJobDefinitions request exceed maxResults, this // value can be used to retrieve the next page of results. This value is null // when there are no more results to return. NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation func (s DescribeComputeEnvironmentsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeComputeEnvironmentsOutput) GoString() string { return s.String() } // SetComputeEnvironments sets the ComputeEnvironments field's value. func (s *DescribeComputeEnvironmentsOutput) SetComputeEnvironments(v []*ComputeEnvironmentDetail) *DescribeComputeEnvironmentsOutput { s.ComputeEnvironments = v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeComputeEnvironmentsOutput) SetNextToken(v string) *DescribeComputeEnvironmentsOutput { s.NextToken = &v return s } // Contains the parameters for DescribeJobDefinitions. type DescribeJobDefinitionsInput struct { _ struct{} `type:"structure"` // The name of the job definition to describe. JobDefinitionName *string `locationName:"jobDefinitionName" type:"string"` // A list of up to 100 job definitions. Each entry in the list can either be // an ARN of the form arn:aws:batch:${Region}:${Account}:job-definition/${JobDefinitionName}:${Revision} // or a short version using the form ${JobDefinitionName}:${Revision}. JobDefinitions []*string `locationName:"jobDefinitions" type:"list"` // The maximum number of results returned by DescribeJobDefinitions in paginated // output. When this parameter is used, DescribeJobDefinitions only returns // maxResults results in a single page and a nextToken response element. The // remaining results of the initial request can be seen by sending another DescribeJobDefinitions // request with the returned nextToken value. This value can be between 1 and // 100. If this parameter isn't used, then DescribeJobDefinitions returns up // to 100 results and a nextToken value if applicable. MaxResults *int64 `locationName:"maxResults" type:"integer"` // The nextToken value returned from a previous paginated DescribeJobDefinitions // request where maxResults was used and the results exceeded the value of that // parameter. Pagination continues from the end of the previous results that // returned the nextToken value. This value is null when there are no more results // to return. // // This token should be treated as an opaque identifier that's only used to // retrieve the next items in a list and not for other programmatic purposes. NextToken *string `locationName:"nextToken" type:"string"` // The status used to filter job definitions. Status *string `locationName:"status" type:"string"` } // String returns the string representation func (s DescribeJobDefinitionsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeJobDefinitionsInput) GoString() string { return s.String() } // SetJobDefinitionName sets the JobDefinitionName field's value. func (s *DescribeJobDefinitionsInput) SetJobDefinitionName(v string) *DescribeJobDefinitionsInput { s.JobDefinitionName = &v return s } // SetJobDefinitions sets the JobDefinitions field's value. func (s *DescribeJobDefinitionsInput) SetJobDefinitions(v []*string) *DescribeJobDefinitionsInput { s.JobDefinitions = v return s } // SetMaxResults sets the MaxResults field's value. func (s *DescribeJobDefinitionsInput) SetMaxResults(v int64) *DescribeJobDefinitionsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeJobDefinitionsInput) SetNextToken(v string) *DescribeJobDefinitionsInput { s.NextToken = &v return s } // SetStatus sets the Status field's value. func (s *DescribeJobDefinitionsInput) SetStatus(v string) *DescribeJobDefinitionsInput { s.Status = &v return s } type DescribeJobDefinitionsOutput struct { _ struct{} `type:"structure"` // The list of job definitions. JobDefinitions []*JobDefinition `locationName:"jobDefinitions" type:"list"` // The nextToken value to include in a future DescribeJobDefinitions request. // When the results of a DescribeJobDefinitions request exceed maxResults, this // value can be used to retrieve the next page of results. This value is null // when there are no more results to return. NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation func (s DescribeJobDefinitionsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeJobDefinitionsOutput) GoString() string { return s.String() } // SetJobDefinitions sets the JobDefinitions field's value. func (s *DescribeJobDefinitionsOutput) SetJobDefinitions(v []*JobDefinition) *DescribeJobDefinitionsOutput { s.JobDefinitions = v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeJobDefinitionsOutput) SetNextToken(v string) *DescribeJobDefinitionsOutput { s.NextToken = &v return s } // Contains the parameters for DescribeJobQueues. type DescribeJobQueuesInput struct { _ struct{} `type:"structure"` // A list of up to 100 queue names or full queue Amazon Resource Name (ARN) // entries. JobQueues []*string `locationName:"jobQueues" type:"list"` // The maximum number of results returned by DescribeJobQueues in paginated // output. When this parameter is used, DescribeJobQueues only returns maxResults // results in a single page and a nextToken response element. The remaining // results of the initial request can be seen by sending another DescribeJobQueues // request with the returned nextToken value. This value can be between 1 and // 100. If this parameter isn't used, then DescribeJobQueues returns up to 100 // results and a nextToken value if applicable. MaxResults *int64 `locationName:"maxResults" type:"integer"` // The nextToken value returned from a previous paginated DescribeJobQueues // request where maxResults was used and the results exceeded the value of that // parameter. Pagination continues from the end of the previous results that // returned the nextToken value. This value is null when there are no more results // to return. // // This token should be treated as an opaque identifier that's only used to // retrieve the next items in a list and not for other programmatic purposes. NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation func (s DescribeJobQueuesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeJobQueuesInput) GoString() string { return s.String() } // SetJobQueues sets the JobQueues field's value. func (s *DescribeJobQueuesInput) SetJobQueues(v []*string) *DescribeJobQueuesInput { s.JobQueues = v return s } // SetMaxResults sets the MaxResults field's value. func (s *DescribeJobQueuesInput) SetMaxResults(v int64) *DescribeJobQueuesInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeJobQueuesInput) SetNextToken(v string) *DescribeJobQueuesInput { s.NextToken = &v return s } type DescribeJobQueuesOutput struct { _ struct{} `type:"structure"` // The list of job queues. JobQueues []*JobQueueDetail `locationName:"jobQueues" type:"list"` // The nextToken value to include in a future DescribeJobQueues request. When // the results of a DescribeJobQueues request exceed maxResults, this value // can be used to retrieve the next page of results. This value is null when // there are no more results to return. NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation func (s DescribeJobQueuesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeJobQueuesOutput) GoString() string { return s.String() } // SetJobQueues sets the JobQueues field's value. func (s *DescribeJobQueuesOutput) SetJobQueues(v []*JobQueueDetail) *DescribeJobQueuesOutput { s.JobQueues = v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeJobQueuesOutput) SetNextToken(v string) *DescribeJobQueuesOutput { s.NextToken = &v return s } // Contains the parameters for DescribeJobs. type DescribeJobsInput struct { _ struct{} `type:"structure"` // A list of up to 100 job IDs. // // Jobs is a required field Jobs []*string `locationName:"jobs" type:"list" required:"true"` } // String returns the string representation func (s DescribeJobsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeJobsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeJobsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeJobsInput"} if s.Jobs == nil { invalidParams.Add(request.NewErrParamRequired("Jobs")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetJobs sets the Jobs field's value. func (s *DescribeJobsInput) SetJobs(v []*string) *DescribeJobsInput { s.Jobs = v return s } type DescribeJobsOutput struct { _ struct{} `type:"structure"` // The list of jobs. Jobs []*JobDetail `locationName:"jobs" type:"list"` } // String returns the string representation func (s DescribeJobsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeJobsOutput) GoString() string { return s.String() } // SetJobs sets the Jobs field's value. func (s *DescribeJobsOutput) SetJobs(v []*JobDetail) *DescribeJobsOutput { s.Jobs = v return s } // An object representing a container instance host device. // // This object isn't applicable to jobs that are running on Fargate resources // and shouldn't be provided. type Device struct { _ struct{} `type:"structure"` // The path inside the container that's used to expose the host device. By default, // the hostPath value is used. ContainerPath *string `locationName:"containerPath" type:"string"` // The path for the device on the host container instance. // // HostPath is a required field HostPath *string `locationName:"hostPath" type:"string" required:"true"` // The explicit permissions to provide to the container for the device. By default, // the container has permissions for read, write, and mknod for the device. Permissions []*string `locationName:"permissions" type:"list"` } // String returns the string representation func (s Device) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Device) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *Device) Validate() error { invalidParams := request.ErrInvalidParams{Context: "Device"} if s.HostPath == nil { invalidParams.Add(request.NewErrParamRequired("HostPath")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetContainerPath sets the ContainerPath field's value. func (s *Device) SetContainerPath(v string) *Device { s.ContainerPath = &v return s } // SetHostPath sets the HostPath field's value. func (s *Device) SetHostPath(v string) *Device { s.HostPath = &v return s } // SetPermissions sets the Permissions field's value. func (s *Device) SetPermissions(v []*string) *Device { s.Permissions = v return s } // The authorization configuration details for the Amazon EFS file system. type EFSAuthorizationConfig struct { _ struct{} `type:"structure"` // The Amazon EFS access point ID to use. If an access point is specified, the // root directory value specified in the EFSVolumeConfiguration must either // be omitted or set to / which will enforce the path set on the EFS access // point. If an access point is used, transit encryption must be enabled in // the EFSVolumeConfiguration. For more information, see Working with Amazon // EFS Access Points (https://docs.aws.amazon.com/efs/latest/ug/efs-access-points.html) // in the Amazon Elastic File System User Guide. AccessPointId *string `locationName:"accessPointId" type:"string"` // Whether or not to use the Batch job IAM role defined in a job definition // when mounting the Amazon EFS file system. If enabled, transit encryption // must be enabled in the EFSVolumeConfiguration. If this parameter is omitted, // the default value of DISABLED is used. For more information, see Using Amazon // EFS Access Points (https://docs.aws.amazon.com/batch/latest/userguide/efs-volumes.html#efs-volume-accesspoints) // in the Batch User Guide. EFS IAM authorization requires that TransitEncryption // be ENABLED and that a JobRoleArn is specified. Iam *string `locationName:"iam" type:"string" enum:"EFSAuthorizationConfigIAM"` } // String returns the string representation func (s EFSAuthorizationConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s EFSAuthorizationConfig) GoString() string { return s.String() } // SetAccessPointId sets the AccessPointId field's value. func (s *EFSAuthorizationConfig) SetAccessPointId(v string) *EFSAuthorizationConfig { s.AccessPointId = &v return s } // SetIam sets the Iam field's value. func (s *EFSAuthorizationConfig) SetIam(v string) *EFSAuthorizationConfig { s.Iam = &v return s } // This is used when you're using an Amazon Elastic File System file system // for job storage. For more information, see Amazon EFS Volumes (https://docs.aws.amazon.com/batch/latest/userguide/efs-volumes.html) // in the Batch User Guide. type EFSVolumeConfiguration struct { _ struct{} `type:"structure"` // The authorization configuration details for the Amazon EFS file system. AuthorizationConfig *EFSAuthorizationConfig `locationName:"authorizationConfig" type:"structure"` // The Amazon EFS file system ID to use. // // FileSystemId is a required field FileSystemId *string `locationName:"fileSystemId" type:"string" required:"true"` // The directory within the Amazon EFS file system to mount as the root directory // inside the host. If this parameter is omitted, the root of the Amazon EFS // volume is used instead. Specifying / has the same effect as omitting this // parameter. The maximum length is 4,096 characters. // // If an EFS access point is specified in the authorizationConfig, the root // directory parameter must either be omitted or set to /, which enforces the // path set on the Amazon EFS access point. RootDirectory *string `locationName:"rootDirectory" type:"string"` // Determines whether to enable encryption for Amazon EFS data in transit between // the Amazon ECS host and the Amazon EFS server. Transit encryption must be // enabled if Amazon EFS IAM authorization is used. If this parameter is omitted, // the default value of DISABLED is used. For more information, see Encrypting // data in transit (https://docs.aws.amazon.com/efs/latest/ug/encryption-in-transit.html) // in the Amazon Elastic File System User Guide. TransitEncryption *string `locationName:"transitEncryption" type:"string" enum:"EFSTransitEncryption"` // The port to use when sending encrypted data between the Amazon ECS host and // the Amazon EFS server. If you don't specify a transit encryption port, it // uses the port selection strategy that the Amazon EFS mount helper uses. The // value must be between 0 and 65,535. For more information, see EFS Mount Helper // (https://docs.aws.amazon.com/efs/latest/ug/efs-mount-helper.html) in the // Amazon Elastic File System User Guide. TransitEncryptionPort *int64 `locationName:"transitEncryptionPort" type:"integer"` } // String returns the string representation func (s EFSVolumeConfiguration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s EFSVolumeConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *EFSVolumeConfiguration) Validate() error { invalidParams := request.ErrInvalidParams{Context: "EFSVolumeConfiguration"} if s.FileSystemId == nil { invalidParams.Add(request.NewErrParamRequired("FileSystemId")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAuthorizationConfig sets the AuthorizationConfig field's value. func (s *EFSVolumeConfiguration) SetAuthorizationConfig(v *EFSAuthorizationConfig) *EFSVolumeConfiguration { s.AuthorizationConfig = v return s } // SetFileSystemId sets the FileSystemId field's value. func (s *EFSVolumeConfiguration) SetFileSystemId(v string) *EFSVolumeConfiguration { s.FileSystemId = &v return s } // SetRootDirectory sets the RootDirectory field's value. func (s *EFSVolumeConfiguration) SetRootDirectory(v string) *EFSVolumeConfiguration { s.RootDirectory = &v return s } // SetTransitEncryption sets the TransitEncryption field's value. func (s *EFSVolumeConfiguration) SetTransitEncryption(v string) *EFSVolumeConfiguration { s.TransitEncryption = &v return s } // SetTransitEncryptionPort sets the TransitEncryptionPort field's value. func (s *EFSVolumeConfiguration) SetTransitEncryptionPort(v int64) *EFSVolumeConfiguration { s.TransitEncryptionPort = &v return s } // Provides information used to select Amazon Machine Images (AMIs) for instances // in the compute environment. If Ec2Configuration isn't specified, the default // is currently ECS_AL1 (Amazon Linux (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#alami)) // for non-GPU, non AWSGraviton instances. Starting on March 31, 2021, this // default will be changing to ECS_AL2 (Amazon Linux 2 (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#al2ami)). // // This object isn't applicable to jobs that are running on Fargate resources. type Ec2Configuration struct { _ struct{} `type:"structure"` // The AMI ID used for instances launched in the compute environment that match // the image type. This setting overrides the imageId set in the computeResource // object. ImageIdOverride *string `locationName:"imageIdOverride" min:"1" type:"string"` // The image type to match with the instance type to select an AMI. If the imageIdOverride // parameter isn't specified, then a recent Amazon ECS-optimized AMI (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html) // (ECS_AL1) is used. Starting on March 31, 2021, this default will be changing // to ECS_AL2 (Amazon Linux 2 (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#al2ami)). // // ECS_AL2 // // Amazon Linux 2 (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#al2ami)− // Default for all Amazon Web Services Graviton-based instance families (for // example, C6g, M6g, R6g, and T4g) and can be used for all non-GPU instance // types. // // ECS_AL2_NVIDIA // // Amazon Linux 2 (GPU) (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#gpuami)−Default // for all GPU instance families (for example P4 and G4) and can be used for // all non Amazon Web Services Graviton-based instance types. // // ECS_AL1 // // Amazon Linux (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#alami)−Default // for all non-GPU, non Amazon Web Services Graviton instance families. Amazon // Linux is reaching the end-of-life of standard support. For more information, // see Amazon Linux AMI (http://aws.amazon.com/amazon-linux-ami/). // // ImageType is a required field ImageType *string `locationName:"imageType" min:"1" type:"string" required:"true"` } // String returns the string representation func (s Ec2Configuration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Ec2Configuration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *Ec2Configuration) Validate() error { invalidParams := request.ErrInvalidParams{Context: "Ec2Configuration"} if s.ImageIdOverride != nil && len(*s.ImageIdOverride) < 1 { invalidParams.Add(request.NewErrParamMinLen("ImageIdOverride", 1)) } if s.ImageType == nil { invalidParams.Add(request.NewErrParamRequired("ImageType")) } if s.ImageType != nil && len(*s.ImageType) < 1 { invalidParams.Add(request.NewErrParamMinLen("ImageType", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetImageIdOverride sets the ImageIdOverride field's value. func (s *Ec2Configuration) SetImageIdOverride(v string) *Ec2Configuration { s.ImageIdOverride = &v return s } // SetImageType sets the ImageType field's value. func (s *Ec2Configuration) SetImageType(v string) *Ec2Configuration { s.ImageType = &v return s } // Specifies a set of conditions to be met, and an action to take (RETRY or // EXIT) if all conditions are met. type EvaluateOnExit struct { _ struct{} `type:"structure"` // Specifies the action to take if all of the specified conditions (onStatusReason, // onReason, and onExitCode) are met. The values aren't case sensitive. // // Action is a required field Action *string `locationName:"action" type:"string" required:"true" enum:"RetryAction"` // Contains a glob pattern to match against the decimal representation of the // ExitCode returned for a job. The pattern can be up to 512 characters in length. // It can contain only numbers, and can optionally end with an asterisk (*) // so that only the start of the string needs to be an exact match. OnExitCode *string `locationName:"onExitCode" type:"string"` // Contains a glob pattern to match against the Reason returned for a job. The // pattern can be up to 512 characters in length. It can contain letters, numbers, // periods (.), colons (:), and white space (including spaces and tabs). It // can optionally end with an asterisk (*) so that only the start of the string // needs to be an exact match. OnReason *string `locationName:"onReason" type:"string"` // Contains a glob pattern to match against the StatusReason returned for a // job. The pattern can be up to 512 characters in length. It can contain letters, // numbers, periods (.), colons (:), and white space (including spaces or tabs). // It can optionally end with an asterisk (*) so that only the start of the // string needs to be an exact match. OnStatusReason *string `locationName:"onStatusReason" type:"string"` } // String returns the string representation func (s EvaluateOnExit) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s EvaluateOnExit) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *EvaluateOnExit) Validate() error { invalidParams := request.ErrInvalidParams{Context: "EvaluateOnExit"} if s.Action == nil { invalidParams.Add(request.NewErrParamRequired("Action")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAction sets the Action field's value. func (s *EvaluateOnExit) SetAction(v string) *EvaluateOnExit { s.Action = &v return s } // SetOnExitCode sets the OnExitCode field's value. func (s *EvaluateOnExit) SetOnExitCode(v string) *EvaluateOnExit { s.OnExitCode = &v return s } // SetOnReason sets the OnReason field's value. func (s *EvaluateOnExit) SetOnReason(v string) *EvaluateOnExit { s.OnReason = &v return s } // SetOnStatusReason sets the OnStatusReason field's value. func (s *EvaluateOnExit) SetOnStatusReason(v string) *EvaluateOnExit { s.OnStatusReason = &v return s } // The platform configuration for jobs that are running on Fargate resources. // Jobs that run on EC2 resources must not specify this parameter. type FargatePlatformConfiguration struct { _ struct{} `type:"structure"` // The Fargate platform version where the jobs are running. A platform version // is specified only for jobs that are running on Fargate resources. If one // isn't specified, the LATEST platform version is used by default. This uses // a recent, approved version of the Fargate platform for compute resources. // For more information, see Fargate platform versions (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html) // in the Amazon Elastic Container Service Developer Guide. PlatformVersion *string `locationName:"platformVersion" type:"string"` } // String returns the string representation func (s FargatePlatformConfiguration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s FargatePlatformConfiguration) GoString() string { return s.String() } // SetPlatformVersion sets the PlatformVersion field's value. func (s *FargatePlatformConfiguration) SetPlatformVersion(v string) *FargatePlatformConfiguration { s.PlatformVersion = &v return s } // Determine whether your data volume persists on the host container instance // and where it is stored. If this parameter is empty, then the Docker daemon // assigns a host path for your data volume, but the data isn't guaranteed to // persist after the containers associated with it stop running. type Host struct { _ struct{} `type:"structure"` // The path on the host container instance that's presented to the container. // If this parameter is empty, then the Docker daemon has assigned a host path // for you. If this parameter contains a file location, then the data volume // persists at the specified location on the host container instance until you // delete it manually. If the source path location doesn't exist on the host // container instance, the Docker daemon creates it. If the location does exist, // the contents of the source path folder are exported. // // This parameter isn't applicable to jobs that run on Fargate resources and // shouldn't be provided. SourcePath *string `locationName:"sourcePath" type:"string"` } // String returns the string representation func (s Host) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Host) GoString() string { return s.String() } // SetSourcePath sets the SourcePath field's value. func (s *Host) SetSourcePath(v string) *Host { s.SourcePath = &v return s } // An object representing an Batch job definition. type JobDefinition struct { _ struct{} `type:"structure"` // An object with various properties specific to container-based jobs. ContainerProperties *ContainerProperties `locationName:"containerProperties" type:"structure"` // The Amazon Resource Name (ARN) for the job definition. // // JobDefinitionArn is a required field JobDefinitionArn *string `locationName:"jobDefinitionArn" type:"string" required:"true"` // The name of the job definition. // // JobDefinitionName is a required field JobDefinitionName *string `locationName:"jobDefinitionName" type:"string" required:"true"` // An object with various properties specific to multi-node parallel jobs. // // If the job runs on Fargate resources, then you must not specify nodeProperties; // use containerProperties instead. NodeProperties *NodeProperties `locationName:"nodeProperties" type:"structure"` // Default parameters or parameter substitution placeholders that are set in // the job definition. Parameters are specified as a key-value pair mapping. // Parameters in a SubmitJob request override any corresponding parameter defaults // from the job definition. For more information about specifying parameters, // see Job Definition Parameters (https://docs.aws.amazon.com/batch/latest/userguide/job_definition_parameters.html) // in the Batch User Guide. Parameters map[string]*string `locationName:"parameters" type:"map"` // The platform capabilities required by the job definition. If no value is // specified, it defaults to EC2. Jobs run on Fargate resources specify FARGATE. PlatformCapabilities []*string `locationName:"platformCapabilities" type:"list"` // Specifies whether to propagate the tags from the job or job definition to // the corresponding Amazon ECS task. If no value is specified, the tags aren't // propagated. Tags can only be propagated to the tasks during task creation. // For tags with the same name, job tags are given priority over job definitions // tags. If the total number of combined tags from the job and job definition // is over 50, the job is moved to the FAILED state. PropagateTags *bool `locationName:"propagateTags" type:"boolean"` // The retry strategy to use for failed jobs that are submitted with this job // definition. RetryStrategy *RetryStrategy `locationName:"retryStrategy" type:"structure"` // The revision of the job definition. // // Revision is a required field Revision *int64 `locationName:"revision" type:"integer" required:"true"` // The status of the job definition. Status *string `locationName:"status" type:"string"` // The tags applied to the job definition. Tags map[string]*string `locationName:"tags" min:"1" type:"map"` // The timeout configuration for jobs that are submitted with this job definition. // You can specify a timeout duration after which Batch terminates your jobs // if they haven't finished. Timeout *JobTimeout `locationName:"timeout" type:"structure"` // The type of job definition. If the job is run on Fargate resources, then // multinode isn't supported. For more information about multi-node parallel // jobs, see Creating a multi-node parallel job definition (https://docs.aws.amazon.com/batch/latest/userguide/multi-node-job-def.html) // in the Batch User Guide. // // Type is a required field Type *string `locationName:"type" type:"string" required:"true"` } // String returns the string representation func (s JobDefinition) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s JobDefinition) GoString() string { return s.String() } // SetContainerProperties sets the ContainerProperties field's value. func (s *JobDefinition) SetContainerProperties(v *ContainerProperties) *JobDefinition { s.ContainerProperties = v return s } // SetJobDefinitionArn sets the JobDefinitionArn field's value. func (s *JobDefinition) SetJobDefinitionArn(v string) *JobDefinition { s.JobDefinitionArn = &v return s } // SetJobDefinitionName sets the JobDefinitionName field's value. func (s *JobDefinition) SetJobDefinitionName(v string) *JobDefinition { s.JobDefinitionName = &v return s } // SetNodeProperties sets the NodeProperties field's value. func (s *JobDefinition) SetNodeProperties(v *NodeProperties) *JobDefinition { s.NodeProperties = v return s } // SetParameters sets the Parameters field's value. func (s *JobDefinition) SetParameters(v map[string]*string) *JobDefinition { s.Parameters = v return s } // SetPlatformCapabilities sets the PlatformCapabilities field's value. func (s *JobDefinition) SetPlatformCapabilities(v []*string) *JobDefinition { s.PlatformCapabilities = v return s } // SetPropagateTags sets the PropagateTags field's value. func (s *JobDefinition) SetPropagateTags(v bool) *JobDefinition { s.PropagateTags = &v return s } // SetRetryStrategy sets the RetryStrategy field's value. func (s *JobDefinition) SetRetryStrategy(v *RetryStrategy) *JobDefinition { s.RetryStrategy = v return s } // SetRevision sets the Revision field's value. func (s *JobDefinition) SetRevision(v int64) *JobDefinition { s.Revision = &v return s } // SetStatus sets the Status field's value. func (s *JobDefinition) SetStatus(v string) *JobDefinition { s.Status = &v return s } // SetTags sets the Tags field's value. func (s *JobDefinition) SetTags(v map[string]*string) *JobDefinition { s.Tags = v return s } // SetTimeout sets the Timeout field's value. func (s *JobDefinition) SetTimeout(v *JobTimeout) *JobDefinition { s.Timeout = v return s } // SetType sets the Type field's value. func (s *JobDefinition) SetType(v string) *JobDefinition { s.Type = &v return s } // An object representing an Batch job dependency. type JobDependency struct { _ struct{} `type:"structure"` // The job ID of the Batch job associated with this dependency. JobId *string `locationName:"jobId" type:"string"` // The type of the job dependency. Type *string `locationName:"type" type:"string" enum:"ArrayJobDependency"` } // String returns the string representation func (s JobDependency) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s JobDependency) GoString() string { return s.String() } // SetJobId sets the JobId field's value. func (s *JobDependency) SetJobId(v string) *JobDependency { s.JobId = &v return s } // SetType sets the Type field's value. func (s *JobDependency) SetType(v string) *JobDependency { s.Type = &v return s } // An object representing an Batch job. type JobDetail struct { _ struct{} `type:"structure"` // The array properties of the job, if it is an array job. ArrayProperties *ArrayPropertiesDetail `locationName:"arrayProperties" type:"structure"` // A list of job attempts associated with this job. Attempts []*AttemptDetail `locationName:"attempts" type:"list"` // An object representing the details of the container that's associated with // the job. Container *ContainerDetail `locationName:"container" type:"structure"` // The Unix timestamp (in milliseconds) for when the job was created. For non-array // jobs and parent array jobs, this is when the job entered the SUBMITTED state // (at the time SubmitJob was called). For array child jobs, this is when the // child job was spawned by its parent and entered the PENDING state. CreatedAt *int64 `locationName:"createdAt" type:"long"` // A list of job IDs that this job depends on. DependsOn []*JobDependency `locationName:"dependsOn" type:"list"` // The Amazon Resource Name (ARN) of the job. JobArn *string `locationName:"jobArn" type:"string"` // The job definition that's used by this job. // // JobDefinition is a required field JobDefinition *string `locationName:"jobDefinition" type:"string" required:"true"` // The ID for the job. // // JobId is a required field JobId *string `locationName:"jobId" type:"string" required:"true"` // The name of the job. // // JobName is a required field JobName *string `locationName:"jobName" type:"string" required:"true"` // The Amazon Resource Name (ARN) of the job queue that the job is associated // with. // // JobQueue is a required field JobQueue *string `locationName:"jobQueue" type:"string" required:"true"` // An object representing the details of a node that's associated with a multi-node // parallel job. NodeDetails *NodeDetails `locationName:"nodeDetails" type:"structure"` // An object representing the node properties of a multi-node parallel job. // // This isn't applicable to jobs that are running on Fargate resources. NodeProperties *NodeProperties `locationName:"nodeProperties" type:"structure"` // Additional parameters passed to the job that replace parameter substitution // placeholders or override any corresponding parameter defaults from the job // definition. Parameters map[string]*string `locationName:"parameters" type:"map"` // The platform capabilities required by the job definition. If no value is // specified, it defaults to EC2. Jobs run on Fargate resources specify FARGATE. PlatformCapabilities []*string `locationName:"platformCapabilities" type:"list"` // Specifies whether to propagate the tags from the job or job definition to // the corresponding Amazon ECS task. If no value is specified, the tags aren't // propagated. Tags can only be propagated to the tasks during task creation. // For tags with the same name, job tags are given priority over job definitions // tags. If the total number of combined tags from the job and job definition // is over 50, the job is moved to the FAILED state. PropagateTags *bool `locationName:"propagateTags" type:"boolean"` // The retry strategy to use for this job if an attempt fails. RetryStrategy *RetryStrategy `locationName:"retryStrategy" type:"structure"` // The Unix timestamp (in milliseconds) for when the job was started (when the // job transitioned from the STARTING state to the RUNNING state). This parameter // isn't provided for child jobs of array jobs or multi-node parallel jobs. // // StartedAt is a required field StartedAt *int64 `locationName:"startedAt" type:"long" required:"true"` // The current status for the job. // // If your jobs don't progress to STARTING, see Jobs Stuck in RUNNABLE Status // (https://docs.aws.amazon.com/batch/latest/userguide/troubleshooting.html#job_stuck_in_runnable) // in the troubleshooting section of the Batch User Guide. // // Status is a required field Status *string `locationName:"status" type:"string" required:"true" enum:"JobStatus"` // A short, human-readable string to provide additional details about the current // status of the job. StatusReason *string `locationName:"statusReason" type:"string"` // The Unix timestamp (in milliseconds) for when the job was stopped (when the // job transitioned from the RUNNING state to a terminal state, such as SUCCEEDED // or FAILED). StoppedAt *int64 `locationName:"stoppedAt" type:"long"` // The tags applied to the job. Tags map[string]*string `locationName:"tags" min:"1" type:"map"` // The timeout configuration for the job. Timeout *JobTimeout `locationName:"timeout" type:"structure"` } // String returns the string representation func (s JobDetail) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s JobDetail) GoString() string { return s.String() } // SetArrayProperties sets the ArrayProperties field's value. func (s *JobDetail) SetArrayProperties(v *ArrayPropertiesDetail) *JobDetail { s.ArrayProperties = v return s } // SetAttempts sets the Attempts field's value. func (s *JobDetail) SetAttempts(v []*AttemptDetail) *JobDetail { s.Attempts = v return s } // SetContainer sets the Container field's value. func (s *JobDetail) SetContainer(v *ContainerDetail) *JobDetail { s.Container = v return s } // SetCreatedAt sets the CreatedAt field's value. func (s *JobDetail) SetCreatedAt(v int64) *JobDetail { s.CreatedAt = &v return s } // SetDependsOn sets the DependsOn field's value. func (s *JobDetail) SetDependsOn(v []*JobDependency) *JobDetail { s.DependsOn = v return s } // SetJobArn sets the JobArn field's value. func (s *JobDetail) SetJobArn(v string) *JobDetail { s.JobArn = &v return s } // SetJobDefinition sets the JobDefinition field's value. func (s *JobDetail) SetJobDefinition(v string) *JobDetail { s.JobDefinition = &v return s } // SetJobId sets the JobId field's value. func (s *JobDetail) SetJobId(v string) *JobDetail { s.JobId = &v return s } // SetJobName sets the JobName field's value. func (s *JobDetail) SetJobName(v string) *JobDetail { s.JobName = &v return s } // SetJobQueue sets the JobQueue field's value. func (s *JobDetail) SetJobQueue(v string) *JobDetail { s.JobQueue = &v return s } // SetNodeDetails sets the NodeDetails field's value. func (s *JobDetail) SetNodeDetails(v *NodeDetails) *JobDetail { s.NodeDetails = v return s } // SetNodeProperties sets the NodeProperties field's value. func (s *JobDetail) SetNodeProperties(v *NodeProperties) *JobDetail { s.NodeProperties = v return s } // SetParameters sets the Parameters field's value. func (s *JobDetail) SetParameters(v map[string]*string) *JobDetail { s.Parameters = v return s } // SetPlatformCapabilities sets the PlatformCapabilities field's value. func (s *JobDetail) SetPlatformCapabilities(v []*string) *JobDetail { s.PlatformCapabilities = v return s } // SetPropagateTags sets the PropagateTags field's value. func (s *JobDetail) SetPropagateTags(v bool) *JobDetail { s.PropagateTags = &v return s } // SetRetryStrategy sets the RetryStrategy field's value. func (s *JobDetail) SetRetryStrategy(v *RetryStrategy) *JobDetail { s.RetryStrategy = v return s } // SetStartedAt sets the StartedAt field's value. func (s *JobDetail) SetStartedAt(v int64) *JobDetail { s.StartedAt = &v return s } // SetStatus sets the Status field's value. func (s *JobDetail) SetStatus(v string) *JobDetail { s.Status = &v return s } // SetStatusReason sets the StatusReason field's value. func (s *JobDetail) SetStatusReason(v string) *JobDetail { s.StatusReason = &v return s } // SetStoppedAt sets the StoppedAt field's value. func (s *JobDetail) SetStoppedAt(v int64) *JobDetail { s.StoppedAt = &v return s } // SetTags sets the Tags field's value. func (s *JobDetail) SetTags(v map[string]*string) *JobDetail { s.Tags = v return s } // SetTimeout sets the Timeout field's value. func (s *JobDetail) SetTimeout(v *JobTimeout) *JobDetail { s.Timeout = v return s } // An object representing the details of an Batch job queue. type JobQueueDetail struct { _ struct{} `type:"structure"` // The compute environments that are attached to the job queue and the order // that job placement is preferred. Compute environments are selected for job // placement in ascending order. // // ComputeEnvironmentOrder is a required field ComputeEnvironmentOrder []*ComputeEnvironmentOrder `locationName:"computeEnvironmentOrder" type:"list" required:"true"` // The Amazon Resource Name (ARN) of the job queue. // // JobQueueArn is a required field JobQueueArn *string `locationName:"jobQueueArn" type:"string" required:"true"` // The name of the job queue. // // JobQueueName is a required field JobQueueName *string `locationName:"jobQueueName" type:"string" required:"true"` // The priority of the job queue. Job queues with a higher priority (or a higher // integer value for the priority parameter) are evaluated first when associated // with the same compute environment. Priority is determined in descending order, // for example, a job queue with a priority value of 10 is given scheduling // preference over a job queue with a priority value of 1. All of the compute // environments must be either EC2 (EC2 or SPOT) or Fargate (FARGATE or FARGATE_SPOT); // EC2 and Fargate compute environments can't be mixed. // // Priority is a required field Priority *int64 `locationName:"priority" type:"integer" required:"true"` // Describes the ability of the queue to accept new jobs. If the job queue state // is ENABLED, it's able to accept jobs. If the job queue state is DISABLED, // new jobs can't be added to the queue, but jobs already in the queue can finish. // // State is a required field State *string `locationName:"state" type:"string" required:"true" enum:"JQState"` // The status of the job queue (for example, CREATING or VALID). Status *string `locationName:"status" type:"string" enum:"JQStatus"` // A short, human-readable string to provide additional details about the current // status of the job queue. StatusReason *string `locationName:"statusReason" type:"string"` // The tags applied to the job queue. For more information, see Tagging your // Batch resources (https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html) // in Batch User Guide. Tags map[string]*string `locationName:"tags" min:"1" type:"map"` } // String returns the string representation func (s JobQueueDetail) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s JobQueueDetail) GoString() string { return s.String() } // SetComputeEnvironmentOrder sets the ComputeEnvironmentOrder field's value. func (s *JobQueueDetail) SetComputeEnvironmentOrder(v []*ComputeEnvironmentOrder) *JobQueueDetail { s.ComputeEnvironmentOrder = v return s } // SetJobQueueArn sets the JobQueueArn field's value. func (s *JobQueueDetail) SetJobQueueArn(v string) *JobQueueDetail { s.JobQueueArn = &v return s } // SetJobQueueName sets the JobQueueName field's value. func (s *JobQueueDetail) SetJobQueueName(v string) *JobQueueDetail { s.JobQueueName = &v return s } // SetPriority sets the Priority field's value. func (s *JobQueueDetail) SetPriority(v int64) *JobQueueDetail { s.Priority = &v return s } // SetState sets the State field's value. func (s *JobQueueDetail) SetState(v string) *JobQueueDetail { s.State = &v return s } // SetStatus sets the Status field's value. func (s *JobQueueDetail) SetStatus(v string) *JobQueueDetail { s.Status = &v return s } // SetStatusReason sets the StatusReason field's value. func (s *JobQueueDetail) SetStatusReason(v string) *JobQueueDetail { s.StatusReason = &v return s } // SetTags sets the Tags field's value. func (s *JobQueueDetail) SetTags(v map[string]*string) *JobQueueDetail { s.Tags = v return s } // An object representing summary details of a job. type JobSummary struct { _ struct{} `type:"structure"` // The array properties of the job, if it is an array job. ArrayProperties *ArrayPropertiesSummary `locationName:"arrayProperties" type:"structure"` // An object representing the details of the container that's associated with // the job. Container *ContainerSummary `locationName:"container" type:"structure"` // The Unix timestamp for when the job was created. For non-array jobs and parent // array jobs, this is when the job entered the SUBMITTED state (at the time // SubmitJob was called). For array child jobs, this is when the child job was // spawned by its parent and entered the PENDING state. CreatedAt *int64 `locationName:"createdAt" type:"long"` // The Amazon Resource Name (ARN) of the job. JobArn *string `locationName:"jobArn" type:"string"` // The Amazon Resource Name (ARN) of the job definition. JobDefinition *string `locationName:"jobDefinition" type:"string"` // The ID of the job. // // JobId is a required field JobId *string `locationName:"jobId" type:"string" required:"true"` // The name of the job. // // JobName is a required field JobName *string `locationName:"jobName" type:"string" required:"true"` // The node properties for a single node in a job summary list. // // This isn't applicable to jobs that are running on Fargate resources. NodeProperties *NodePropertiesSummary `locationName:"nodeProperties" type:"structure"` // The Unix timestamp for when the job was started (when the job transitioned // from the STARTING state to the RUNNING state). StartedAt *int64 `locationName:"startedAt" type:"long"` // The current status for the job. Status *string `locationName:"status" type:"string" enum:"JobStatus"` // A short, human-readable string to provide additional details about the current // status of the job. StatusReason *string `locationName:"statusReason" type:"string"` // The Unix timestamp for when the job was stopped (when the job transitioned // from the RUNNING state to a terminal state, such as SUCCEEDED or FAILED). StoppedAt *int64 `locationName:"stoppedAt" type:"long"` } // String returns the string representation func (s JobSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s JobSummary) GoString() string { return s.String() } // SetArrayProperties sets the ArrayProperties field's value. func (s *JobSummary) SetArrayProperties(v *ArrayPropertiesSummary) *JobSummary { s.ArrayProperties = v return s } // SetContainer sets the Container field's value. func (s *JobSummary) SetContainer(v *ContainerSummary) *JobSummary { s.Container = v return s } // SetCreatedAt sets the CreatedAt field's value. func (s *JobSummary) SetCreatedAt(v int64) *JobSummary { s.CreatedAt = &v return s } // SetJobArn sets the JobArn field's value. func (s *JobSummary) SetJobArn(v string) *JobSummary { s.JobArn = &v return s } // SetJobDefinition sets the JobDefinition field's value. func (s *JobSummary) SetJobDefinition(v string) *JobSummary { s.JobDefinition = &v return s } // SetJobId sets the JobId field's value. func (s *JobSummary) SetJobId(v string) *JobSummary { s.JobId = &v return s } // SetJobName sets the JobName field's value. func (s *JobSummary) SetJobName(v string) *JobSummary { s.JobName = &v return s } // SetNodeProperties sets the NodeProperties field's value. func (s *JobSummary) SetNodeProperties(v *NodePropertiesSummary) *JobSummary { s.NodeProperties = v return s } // SetStartedAt sets the StartedAt field's value. func (s *JobSummary) SetStartedAt(v int64) *JobSummary { s.StartedAt = &v return s } // SetStatus sets the Status field's value. func (s *JobSummary) SetStatus(v string) *JobSummary { s.Status = &v return s } // SetStatusReason sets the StatusReason field's value. func (s *JobSummary) SetStatusReason(v string) *JobSummary { s.StatusReason = &v return s } // SetStoppedAt sets the StoppedAt field's value. func (s *JobSummary) SetStoppedAt(v int64) *JobSummary { s.StoppedAt = &v return s } // An object representing a job timeout configuration. type JobTimeout struct { _ struct{} `type:"structure"` // The time duration in seconds (measured from the job attempt's startedAt timestamp) // after which Batch terminates your jobs if they have not finished. The minimum // value for the timeout is 60 seconds. AttemptDurationSeconds *int64 `locationName:"attemptDurationSeconds" type:"integer"` } // String returns the string representation func (s JobTimeout) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s JobTimeout) GoString() string { return s.String() } // SetAttemptDurationSeconds sets the AttemptDurationSeconds field's value. func (s *JobTimeout) SetAttemptDurationSeconds(v int64) *JobTimeout { s.AttemptDurationSeconds = &v return s } // A key-value pair object. type KeyValuePair struct { _ struct{} `type:"structure"` // The name of the key-value pair. For environment variables, this is the name // of the environment variable. Name *string `locationName:"name" type:"string"` // The value of the key-value pair. For environment variables, this is the value // of the environment variable. Value *string `locationName:"value" type:"string"` } // String returns the string representation func (s KeyValuePair) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s KeyValuePair) GoString() string { return s.String() } // SetName sets the Name field's value. func (s *KeyValuePair) SetName(v string) *KeyValuePair { s.Name = &v return s } // SetValue sets the Value field's value. func (s *KeyValuePair) SetValue(v string) *KeyValuePair { s.Value = &v return s } // A filter name and value pair that's used to return a more specific list of // results from a ListJobs API operation. type KeyValuesPair struct { _ struct{} `type:"structure"` // The name of the filter. Filter names are case sensitive. Name *string `locationName:"name" type:"string"` // The filter values. Values []*string `locationName:"values" type:"list"` } // String returns the string representation func (s KeyValuesPair) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s KeyValuesPair) GoString() string { return s.String() } // SetName sets the Name field's value. func (s *KeyValuesPair) SetName(v string) *KeyValuesPair { s.Name = &v return s } // SetValues sets the Values field's value. func (s *KeyValuesPair) SetValues(v []*string) *KeyValuesPair { s.Values = v return s } // An object representing a launch template associated with a compute resource. // You must specify either the launch template ID or launch template name in // the request, but not both. // // If security groups are specified using both the securityGroupIds parameter // of CreateComputeEnvironment and the launch template, the values in the securityGroupIds // parameter of CreateComputeEnvironment will be used. // // This object isn't applicable to jobs that are running on Fargate resources. type LaunchTemplateSpecification struct { _ struct{} `type:"structure"` // The ID of the launch template. LaunchTemplateId *string `locationName:"launchTemplateId" type:"string"` // The name of the launch template. LaunchTemplateName *string `locationName:"launchTemplateName" type:"string"` // The version number of the launch template, $Latest, or $Default. // // If the value is $Latest, the latest version of the launch template is used. // If the value is $Default, the default version of the launch template is used. // // After the compute environment is created, the launch template version that's // used isn't changed, even if the $Default or $Latest version for the launch // template is updated. To use a new launch template version, create a new compute // environment, add the new compute environment to the existing job queue, remove // the old compute environment from the job queue, and delete the old compute // environment. // // Default: $Default. Version *string `locationName:"version" type:"string"` } // String returns the string representation func (s LaunchTemplateSpecification) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s LaunchTemplateSpecification) GoString() string { return s.String() } // SetLaunchTemplateId sets the LaunchTemplateId field's value. func (s *LaunchTemplateSpecification) SetLaunchTemplateId(v string) *LaunchTemplateSpecification { s.LaunchTemplateId = &v return s } // SetLaunchTemplateName sets the LaunchTemplateName field's value. func (s *LaunchTemplateSpecification) SetLaunchTemplateName(v string) *LaunchTemplateSpecification { s.LaunchTemplateName = &v return s } // SetVersion sets the Version field's value. func (s *LaunchTemplateSpecification) SetVersion(v string) *LaunchTemplateSpecification { s.Version = &v return s } // Linux-specific modifications that are applied to the container, such as details // for device mappings. type LinuxParameters struct { _ struct{} `type:"structure"` // Any host devices to expose to the container. This parameter maps to Devices // in the Create a container (https://docs.docker.com/engine/api/v1.23/#create-a-container) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.23/) // and the --device option to docker run (https://docs.docker.com/engine/reference/run/). // // This parameter isn't applicable to jobs that are running on Fargate resources // and shouldn't be provided. Devices []*Device `locationName:"devices" type:"list"` // If true, run an init process inside the container that forwards signals and // reaps processes. This parameter maps to the --init option to docker run (https://docs.docker.com/engine/reference/run/). // This parameter requires version 1.25 of the Docker Remote API or greater // on your container instance. To check the Docker Remote API version on your // container instance, log into your container instance and run the following // command: sudo docker version | grep "Server API version" InitProcessEnabled *bool `locationName:"initProcessEnabled" type:"boolean"` // The total amount of swap memory (in MiB) a container can use. This parameter // is translated to the --memory-swap option to docker run (https://docs.docker.com/engine/reference/run/) // where the value is the sum of the container memory plus the maxSwap value. // For more information, see --memory-swap details (https://docs.docker.com/config/containers/resource_constraints/#--memory-swap-details) // in the Docker documentation. // // If a maxSwap value of 0 is specified, the container doesn't use swap. Accepted // values are 0 or any positive integer. If the maxSwap parameter is omitted, // the container doesn't use the swap configuration for the container instance // it is running on. A maxSwap value must be set for the swappiness parameter // to be used. // // This parameter isn't applicable to jobs that are running on Fargate resources // and shouldn't be provided. MaxSwap *int64 `locationName:"maxSwap" type:"integer"` // The value for the size (in MiB) of the /dev/shm volume. This parameter maps // to the --shm-size option to docker run (https://docs.docker.com/engine/reference/run/). // // This parameter isn't applicable to jobs that are running on Fargate resources // and shouldn't be provided. SharedMemorySize *int64 `locationName:"sharedMemorySize" type:"integer"` // This allows you to tune a container's memory swappiness behavior. A swappiness // value of 0 causes swapping not to happen unless absolutely necessary. A swappiness // value of 100 causes pages to be swapped very aggressively. Accepted values // are whole numbers between 0 and 100. If the swappiness parameter isn't specified, // a default value of 60 is used. If a value isn't specified for maxSwap, then // this parameter is ignored. If maxSwap is set to 0, the container doesn't // use swap. This parameter maps to the --memory-swappiness option to docker // run (https://docs.docker.com/engine/reference/run/). // // Consider the following when you use a per-container swap configuration. // // * Swap space must be enabled and allocated on the container instance for // the containers to use. The Amazon ECS optimized AMIs don't have swap enabled // by default. You must enable swap on the instance to use this feature. // For more information, see Instance Store Swap Volumes (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-store-swap-volumes.html) // in the Amazon EC2 User Guide for Linux Instances or How do I allocate // memory to work as swap space in an Amazon EC2 instance by using a swap // file? (http://aws.amazon.com/premiumsupport/knowledge-center/ec2-memory-swap-file/) // // * The swap space parameters are only supported for job definitions using // EC2 resources. // // * If the maxSwap and swappiness parameters are omitted from a job definition, // each container will have a default swappiness value of 60, and the total // swap usage will be limited to two times the memory reservation of the // container. // // This parameter isn't applicable to jobs that are running on Fargate resources // and shouldn't be provided. Swappiness *int64 `locationName:"swappiness" type:"integer"` // The container path, mount options, and size (in MiB) of the tmpfs mount. // This parameter maps to the --tmpfs option to docker run (https://docs.docker.com/engine/reference/run/). // // This parameter isn't applicable to jobs that are running on Fargate resources // and shouldn't be provided. Tmpfs []*Tmpfs `locationName:"tmpfs" type:"list"` } // String returns the string representation func (s LinuxParameters) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s LinuxParameters) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *LinuxParameters) Validate() error { invalidParams := request.ErrInvalidParams{Context: "LinuxParameters"} if s.Devices != nil { for i, v := range s.Devices { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Devices", i), err.(request.ErrInvalidParams)) } } } if s.Tmpfs != nil { for i, v := range s.Tmpfs { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tmpfs", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDevices sets the Devices field's value. func (s *LinuxParameters) SetDevices(v []*Device) *LinuxParameters { s.Devices = v return s } // SetInitProcessEnabled sets the InitProcessEnabled field's value. func (s *LinuxParameters) SetInitProcessEnabled(v bool) *LinuxParameters { s.InitProcessEnabled = &v return s } // SetMaxSwap sets the MaxSwap field's value. func (s *LinuxParameters) SetMaxSwap(v int64) *LinuxParameters { s.MaxSwap = &v return s } // SetSharedMemorySize sets the SharedMemorySize field's value. func (s *LinuxParameters) SetSharedMemorySize(v int64) *LinuxParameters { s.SharedMemorySize = &v return s } // SetSwappiness sets the Swappiness field's value. func (s *LinuxParameters) SetSwappiness(v int64) *LinuxParameters { s.Swappiness = &v return s } // SetTmpfs sets the Tmpfs field's value. func (s *LinuxParameters) SetTmpfs(v []*Tmpfs) *LinuxParameters { s.Tmpfs = v return s } // Contains the parameters for ListJobs. type ListJobsInput struct { _ struct{} `type:"structure"` // The job ID for an array job. Specifying an array job ID with this parameter // lists all child jobs from within the specified array. ArrayJobId *string `locationName:"arrayJobId" type:"string"` // The filter to apply to the query. Only one filter can be used at a time. // When the filter is used, jobStatus is ignored. The filter doesn't apply to // child jobs in an array or multi-node parallel (MNP) jobs. The results are // sorted by the createdAt field, with the most recent jobs being first. // // JOB_NAME // // The value of the filter is a case-insensitive match for the job name. If // the value ends with an asterisk (*), the filter will match any job name that // begins with the string before the '*'. This corresponds to the jobName value. // For example, test1 matches both Test1 and test1, and test1* matches both // test1 and Test10. When the JOB_NAME filter is used, the results are grouped // by the job name and version. // // JOB_DEFINITION // // The value for the filter is the name or Amazon Resource Name (ARN) of the // job definition. This corresponds to the jobDefinition value. The value is // case sensitive. When the value for the filter is the job definition name, // the results include all the jobs that used any revision of that job definition // name. If the value ends with an asterisk (*), the filter will match any job // definition name that begins with the string before the '*'. For example, // jd1 matches only jd1, and jd1* matches both jd1 and jd1A. The version of // the job definition that's used doesn't affect the sort order. When the JOB_DEFINITION // filter is used and the ARN is used (which is in the form arn:${Partition}:batch:${Region}:${Account}:job-definition/${JobDefinitionName}:${Revision}), // the results include jobs that used the specified revision of the job definition. // Asterisk (*) is not supported when the ARN is used. // // BEFORE_CREATED_AT // // The value for the filter is the time that's before the job was created. This // corresponds to the createdAt value. The value is a string representation // of the number of seconds since 00:00:00 UTC (midnight) on January 1, 1970. // // AFTER_CREATED_AT // // The value for the filter is the time that's after the job was created. This // corresponds to the createdAt value. The value is a string representation // of the number of seconds since 00:00:00 UTC (midnight) on January 1, 1970. Filters []*KeyValuesPair `locationName:"filters" type:"list"` // The name or full Amazon Resource Name (ARN) of the job queue used to list // jobs. JobQueue *string `locationName:"jobQueue" type:"string"` // The job status used to filter jobs in the specified queue. If the filters // parameter is specified, the jobStatus parameter is ignored and jobs with // any status are returned. If you don't specify a status, only RUNNING jobs // are returned. JobStatus *string `locationName:"jobStatus" type:"string" enum:"JobStatus"` // The maximum number of results returned by ListJobs in paginated output. When // this parameter is used, ListJobs only returns maxResults results in a single // page and a nextToken response element. The remaining results of the initial // request can be seen by sending another ListJobs request with the returned // nextToken value. This value can be between 1 and 100. If this parameter isn't // used, then ListJobs returns up to 100 results and a nextToken value if applicable. MaxResults *int64 `locationName:"maxResults" type:"integer"` // The job ID for a multi-node parallel job. Specifying a multi-node parallel // job ID with this parameter lists all nodes that are associated with the specified // job. MultiNodeJobId *string `locationName:"multiNodeJobId" type:"string"` // The nextToken value returned from a previous paginated ListJobs request where // maxResults was used and the results exceeded the value of that parameter. // Pagination continues from the end of the previous results that returned the // nextToken value. This value is null when there are no more results to return. // // This token should be treated as an opaque identifier that's only used to // retrieve the next items in a list and not for other programmatic purposes. NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation func (s ListJobsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListJobsInput) GoString() string { return s.String() } // SetArrayJobId sets the ArrayJobId field's value. func (s *ListJobsInput) SetArrayJobId(v string) *ListJobsInput { s.ArrayJobId = &v return s } // SetFilters sets the Filters field's value. func (s *ListJobsInput) SetFilters(v []*KeyValuesPair) *ListJobsInput { s.Filters = v return s } // SetJobQueue sets the JobQueue field's value. func (s *ListJobsInput) SetJobQueue(v string) *ListJobsInput { s.JobQueue = &v return s } // SetJobStatus sets the JobStatus field's value. func (s *ListJobsInput) SetJobStatus(v string) *ListJobsInput { s.JobStatus = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListJobsInput) SetMaxResults(v int64) *ListJobsInput { s.MaxResults = &v return s } // SetMultiNodeJobId sets the MultiNodeJobId field's value. func (s *ListJobsInput) SetMultiNodeJobId(v string) *ListJobsInput { s.MultiNodeJobId = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListJobsInput) SetNextToken(v string) *ListJobsInput { s.NextToken = &v return s } type ListJobsOutput struct { _ struct{} `type:"structure"` // A list of job summaries that match the request. // // JobSummaryList is a required field JobSummaryList []*JobSummary `locationName:"jobSummaryList" type:"list" required:"true"` // The nextToken value to include in a future ListJobs request. When the results // of a ListJobs request exceed maxResults, this value can be used to retrieve // the next page of results. This value is null when there are no more results // to return. NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation func (s ListJobsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListJobsOutput) GoString() string { return s.String() } // SetJobSummaryList sets the JobSummaryList field's value. func (s *ListJobsOutput) SetJobSummaryList(v []*JobSummary) *ListJobsOutput { s.JobSummaryList = v return s } // SetNextToken sets the NextToken field's value. func (s *ListJobsOutput) SetNextToken(v string) *ListJobsOutput { s.NextToken = &v return s } type ListTagsForResourceInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) that identifies the resource that tags are // listed for. Batch resources that support tags are compute environments, jobs, // job definitions, and job queues. ARNs for child jobs of array and multi-node // parallel (MNP) jobs are not supported. // // ResourceArn is a required field ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` } // String returns the string representation func (s ListTagsForResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListTagsForResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListTagsForResourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} if s.ResourceArn == nil { invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetResourceArn sets the ResourceArn field's value. func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { s.ResourceArn = &v return s } type ListTagsForResourceOutput struct { _ struct{} `type:"structure"` // The tags for the resource. Tags map[string]*string `locationName:"tags" min:"1" type:"map"` } // String returns the string representation func (s ListTagsForResourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListTagsForResourceOutput) GoString() string { return s.String() } // SetTags sets the Tags field's value. func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput { s.Tags = v return s } // Log configuration options to send to a custom log driver for the container. type LogConfiguration struct { _ struct{} `type:"structure"` // The log driver to use for the container. The valid values listed for this // parameter are log drivers that the Amazon ECS container agent can communicate // with by default. // // The supported log drivers are awslogs, fluentd, gelf, json-file, journald, // logentries, syslog, and splunk. // // Jobs that are running on Fargate resources are restricted to the awslogs // and splunk log drivers. // // awslogs // // Specifies the Amazon CloudWatch Logs logging driver. For more information, // see Using the awslogs Log Driver (https://docs.aws.amazon.com/batch/latest/userguide/using_awslogs.html) // in the Batch User Guide and Amazon CloudWatch Logs logging driver (https://docs.docker.com/config/containers/logging/awslogs/) // in the Docker documentation. // // fluentd // // Specifies the Fluentd logging driver. For more information, including usage // and options, see Fluentd logging driver (https://docs.docker.com/config/containers/logging/fluentd/) // in the Docker documentation. // // gelf // // Specifies the Graylog Extended Format (GELF) logging driver. For more information, // including usage and options, see Graylog Extended Format logging driver (https://docs.docker.com/config/containers/logging/gelf/) // in the Docker documentation. // // journald // // Specifies the journald logging driver. For more information, including usage // and options, see Journald logging driver (https://docs.docker.com/config/containers/logging/journald/) // in the Docker documentation. // // json-file // // Specifies the JSON file logging driver. For more information, including usage // and options, see JSON File logging driver (https://docs.docker.com/config/containers/logging/json-file/) // in the Docker documentation. // // splunk // // Specifies the Splunk logging driver. For more information, including usage // and options, see Splunk logging driver (https://docs.docker.com/config/containers/logging/splunk/) // in the Docker documentation. // // syslog // // Specifies the syslog logging driver. For more information, including usage // and options, see Syslog logging driver (https://docs.docker.com/config/containers/logging/syslog/) // in the Docker documentation. // // If you have a custom driver that's not listed earlier that you want to work // with the Amazon ECS container agent, you can fork the Amazon ECS container // agent project that's available on GitHub (https://github.com/aws/amazon-ecs-agent) // and customize it to work with that driver. We encourage you to submit pull // requests for changes that you want to have included. However, Amazon Web // Services doesn't currently support running modified copies of this software. // // This parameter requires version 1.18 of the Docker Remote API or greater // on your container instance. To check the Docker Remote API version on your // container instance, log into your container instance and run the following // command: sudo docker version | grep "Server API version" // // LogDriver is a required field LogDriver *string `locationName:"logDriver" type:"string" required:"true" enum:"LogDriver"` // The configuration options to send to the log driver. This parameter requires // version 1.19 of the Docker Remote API or greater on your container instance. // To check the Docker Remote API version on your container instance, log into // your container instance and run the following command: sudo docker version // | grep "Server API version" Options map[string]*string `locationName:"options" type:"map"` // The secrets to pass to the log configuration. For more information, see Specifying // Sensitive Data (https://docs.aws.amazon.com/batch/latest/userguide/specifying-sensitive-data.html) // in the Batch User Guide. SecretOptions []*Secret `locationName:"secretOptions" type:"list"` } // String returns the string representation func (s LogConfiguration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s LogConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *LogConfiguration) Validate() error { invalidParams := request.ErrInvalidParams{Context: "LogConfiguration"} if s.LogDriver == nil { invalidParams.Add(request.NewErrParamRequired("LogDriver")) } if s.SecretOptions != nil { for i, v := range s.SecretOptions { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SecretOptions", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetLogDriver sets the LogDriver field's value. func (s *LogConfiguration) SetLogDriver(v string) *LogConfiguration { s.LogDriver = &v return s } // SetOptions sets the Options field's value. func (s *LogConfiguration) SetOptions(v map[string]*string) *LogConfiguration { s.Options = v return s } // SetSecretOptions sets the SecretOptions field's value. func (s *LogConfiguration) SetSecretOptions(v []*Secret) *LogConfiguration { s.SecretOptions = v return s } // Details on a Docker volume mount point that's used in a job's container properties. // This parameter maps to Volumes in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.19/#create-a-container) // section of the Docker Remote API and the --volume option to docker run. type MountPoint struct { _ struct{} `type:"structure"` // The path on the container where the host volume is mounted. ContainerPath *string `locationName:"containerPath" type:"string"` // If this value is true, the container has read-only access to the volume. // Otherwise, the container can write to the volume. The default value is false. ReadOnly *bool `locationName:"readOnly" type:"boolean"` // The name of the volume to mount. SourceVolume *string `locationName:"sourceVolume" type:"string"` } // String returns the string representation func (s MountPoint) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s MountPoint) GoString() string { return s.String() } // SetContainerPath sets the ContainerPath field's value. func (s *MountPoint) SetContainerPath(v string) *MountPoint { s.ContainerPath = &v return s } // SetReadOnly sets the ReadOnly field's value. func (s *MountPoint) SetReadOnly(v bool) *MountPoint { s.ReadOnly = &v return s } // SetSourceVolume sets the SourceVolume field's value. func (s *MountPoint) SetSourceVolume(v string) *MountPoint { s.SourceVolume = &v return s } // The network configuration for jobs that are running on Fargate resources. // Jobs that are running on EC2 resources must not specify this parameter. type NetworkConfiguration struct { _ struct{} `type:"structure"` // Indicates whether the job should have a public IP address. For a job that // is running on Fargate resources in a private subnet to send outbound traffic // to the internet (for example, to pull container images), the private subnet // requires a NAT gateway be attached to route requests to the internet. For // more information, see Amazon ECS task networking (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html). // The default value is "DISABLED". AssignPublicIp *string `locationName:"assignPublicIp" type:"string" enum:"AssignPublicIp"` } // String returns the string representation func (s NetworkConfiguration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s NetworkConfiguration) GoString() string { return s.String() } // SetAssignPublicIp sets the AssignPublicIp field's value. func (s *NetworkConfiguration) SetAssignPublicIp(v string) *NetworkConfiguration { s.AssignPublicIp = &v return s } // An object representing the elastic network interface for a multi-node parallel // job node. type NetworkInterface struct { _ struct{} `type:"structure"` // The attachment ID for the network interface. AttachmentId *string `locationName:"attachmentId" type:"string"` // The private IPv6 address for the network interface. Ipv6Address *string `locationName:"ipv6Address" type:"string"` // The private IPv4 address for the network interface. PrivateIpv4Address *string `locationName:"privateIpv4Address" type:"string"` } // String returns the string representation func (s NetworkInterface) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s NetworkInterface) GoString() string { return s.String() } // SetAttachmentId sets the AttachmentId field's value. func (s *NetworkInterface) SetAttachmentId(v string) *NetworkInterface { s.AttachmentId = &v return s } // SetIpv6Address sets the Ipv6Address field's value. func (s *NetworkInterface) SetIpv6Address(v string) *NetworkInterface { s.Ipv6Address = &v return s } // SetPrivateIpv4Address sets the PrivateIpv4Address field's value. func (s *NetworkInterface) SetPrivateIpv4Address(v string) *NetworkInterface { s.PrivateIpv4Address = &v return s } // An object representing the details of a multi-node parallel job node. type NodeDetails struct { _ struct{} `type:"structure"` // Specifies whether the current node is the main node for a multi-node parallel // job. IsMainNode *bool `locationName:"isMainNode" type:"boolean"` // The node index for the node. Node index numbering begins at zero. This index // is also available on the node with the AWS_BATCH_JOB_NODE_INDEX environment // variable. NodeIndex *int64 `locationName:"nodeIndex" type:"integer"` } // String returns the string representation func (s NodeDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s NodeDetails) GoString() string { return s.String() } // SetIsMainNode sets the IsMainNode field's value. func (s *NodeDetails) SetIsMainNode(v bool) *NodeDetails { s.IsMainNode = &v return s } // SetNodeIndex sets the NodeIndex field's value. func (s *NodeDetails) SetNodeIndex(v int64) *NodeDetails { s.NodeIndex = &v return s } // Object representing any node overrides to a job definition that's used in // a SubmitJob API operation. // // This isn't applicable to jobs that are running on Fargate resources and shouldn't // be provided; use containerOverrides instead. type NodeOverrides struct { _ struct{} `type:"structure"` // The node property overrides for the job. NodePropertyOverrides []*NodePropertyOverride `locationName:"nodePropertyOverrides" type:"list"` // The number of nodes to use with a multi-node parallel job. This value overrides // the number of nodes that are specified in the job definition. To use this // override: // // * There must be at least one node range in your job definition that has // an open upper boundary (such as : or n:). // // * The lower boundary of the node range specified in the job definition // must be fewer than the number of nodes specified in the override. // // * The main node index specified in the job definition must be fewer than // the number of nodes specified in the override. NumNodes *int64 `locationName:"numNodes" type:"integer"` } // String returns the string representation func (s NodeOverrides) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s NodeOverrides) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *NodeOverrides) Validate() error { invalidParams := request.ErrInvalidParams{Context: "NodeOverrides"} if s.NodePropertyOverrides != nil { for i, v := range s.NodePropertyOverrides { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "NodePropertyOverrides", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetNodePropertyOverrides sets the NodePropertyOverrides field's value. func (s *NodeOverrides) SetNodePropertyOverrides(v []*NodePropertyOverride) *NodeOverrides { s.NodePropertyOverrides = v return s } // SetNumNodes sets the NumNodes field's value. func (s *NodeOverrides) SetNumNodes(v int64) *NodeOverrides { s.NumNodes = &v return s } // An object representing the node properties of a multi-node parallel job. type NodeProperties struct { _ struct{} `type:"structure"` // Specifies the node index for the main node of a multi-node parallel job. // This node index value must be fewer than the number of nodes. // // MainNode is a required field MainNode *int64 `locationName:"mainNode" type:"integer" required:"true"` // A list of node ranges and their properties associated with a multi-node parallel // job. // // NodeRangeProperties is a required field NodeRangeProperties []*NodeRangeProperty `locationName:"nodeRangeProperties" type:"list" required:"true"` // The number of nodes associated with a multi-node parallel job. // // NumNodes is a required field NumNodes *int64 `locationName:"numNodes" type:"integer" required:"true"` } // String returns the string representation func (s NodeProperties) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s NodeProperties) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *NodeProperties) Validate() error { invalidParams := request.ErrInvalidParams{Context: "NodeProperties"} if s.MainNode == nil { invalidParams.Add(request.NewErrParamRequired("MainNode")) } if s.NodeRangeProperties == nil { invalidParams.Add(request.NewErrParamRequired("NodeRangeProperties")) } if s.NumNodes == nil { invalidParams.Add(request.NewErrParamRequired("NumNodes")) } if s.NodeRangeProperties != nil { for i, v := range s.NodeRangeProperties { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "NodeRangeProperties", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMainNode sets the MainNode field's value. func (s *NodeProperties) SetMainNode(v int64) *NodeProperties { s.MainNode = &v return s } // SetNodeRangeProperties sets the NodeRangeProperties field's value. func (s *NodeProperties) SetNodeRangeProperties(v []*NodeRangeProperty) *NodeProperties { s.NodeRangeProperties = v return s } // SetNumNodes sets the NumNodes field's value. func (s *NodeProperties) SetNumNodes(v int64) *NodeProperties { s.NumNodes = &v return s } // An object representing the properties of a node that's associated with a // multi-node parallel job. type NodePropertiesSummary struct { _ struct{} `type:"structure"` // Specifies whether the current node is the main node for a multi-node parallel // job. IsMainNode *bool `locationName:"isMainNode" type:"boolean"` // The node index for the node. Node index numbering begins at zero. This index // is also available on the node with the AWS_BATCH_JOB_NODE_INDEX environment // variable. NodeIndex *int64 `locationName:"nodeIndex" type:"integer"` // The number of nodes associated with a multi-node parallel job. NumNodes *int64 `locationName:"numNodes" type:"integer"` } // String returns the string representation func (s NodePropertiesSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s NodePropertiesSummary) GoString() string { return s.String() } // SetIsMainNode sets the IsMainNode field's value. func (s *NodePropertiesSummary) SetIsMainNode(v bool) *NodePropertiesSummary { s.IsMainNode = &v return s } // SetNodeIndex sets the NodeIndex field's value. func (s *NodePropertiesSummary) SetNodeIndex(v int64) *NodePropertiesSummary { s.NodeIndex = &v return s } // SetNumNodes sets the NumNodes field's value. func (s *NodePropertiesSummary) SetNumNodes(v int64) *NodePropertiesSummary { s.NumNodes = &v return s } // Object representing any node overrides to a job definition that's used in // a SubmitJob API operation. type NodePropertyOverride struct { _ struct{} `type:"structure"` // The overrides that should be sent to a node range. ContainerOverrides *ContainerOverrides `locationName:"containerOverrides" type:"structure"` // The range of nodes, using node index values, that's used to override. A range // of 0:3 indicates nodes with index values of 0 through 3. If the starting // range value is omitted (:n), then 0 is used to start the range. If the ending // range value is omitted (n:), then the highest possible node index is used // to end the range. // // TargetNodes is a required field TargetNodes *string `locationName:"targetNodes" type:"string" required:"true"` } // String returns the string representation func (s NodePropertyOverride) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s NodePropertyOverride) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *NodePropertyOverride) Validate() error { invalidParams := request.ErrInvalidParams{Context: "NodePropertyOverride"} if s.TargetNodes == nil { invalidParams.Add(request.NewErrParamRequired("TargetNodes")) } if s.ContainerOverrides != nil { if err := s.ContainerOverrides.Validate(); err != nil { invalidParams.AddNested("ContainerOverrides", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetContainerOverrides sets the ContainerOverrides field's value. func (s *NodePropertyOverride) SetContainerOverrides(v *ContainerOverrides) *NodePropertyOverride { s.ContainerOverrides = v return s } // SetTargetNodes sets the TargetNodes field's value. func (s *NodePropertyOverride) SetTargetNodes(v string) *NodePropertyOverride { s.TargetNodes = &v return s } // An object representing the properties of the node range for a multi-node // parallel job. type NodeRangeProperty struct { _ struct{} `type:"structure"` // The container details for the node range. Container *ContainerProperties `locationName:"container" type:"structure"` // The range of nodes, using node index values. A range of 0:3 indicates nodes // with index values of 0 through 3. If the starting range value is omitted // (:n), then 0 is used to start the range. If the ending range value is omitted // (n:), then the highest possible node index is used to end the range. Your // accumulative node ranges must account for all nodes (0:n). You can nest node // ranges, for example 0:10 and 4:5, in which case the 4:5 range properties // override the 0:10 properties. // // TargetNodes is a required field TargetNodes *string `locationName:"targetNodes" type:"string" required:"true"` } // String returns the string representation func (s NodeRangeProperty) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s NodeRangeProperty) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *NodeRangeProperty) Validate() error { invalidParams := request.ErrInvalidParams{Context: "NodeRangeProperty"} if s.TargetNodes == nil { invalidParams.Add(request.NewErrParamRequired("TargetNodes")) } if s.Container != nil { if err := s.Container.Validate(); err != nil { invalidParams.AddNested("Container", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetContainer sets the Container field's value. func (s *NodeRangeProperty) SetContainer(v *ContainerProperties) *NodeRangeProperty { s.Container = v return s } // SetTargetNodes sets the TargetNodes field's value. func (s *NodeRangeProperty) SetTargetNodes(v string) *NodeRangeProperty { s.TargetNodes = &v return s } // Contains the parameters for RegisterJobDefinition. type RegisterJobDefinitionInput struct { _ struct{} `type:"structure"` // An object with various properties specific to single-node container-based // jobs. If the job definition's type parameter is container, then you must // specify either containerProperties or nodeProperties. // // If the job runs on Fargate resources, then you must not specify nodeProperties; // use only containerProperties. ContainerProperties *ContainerProperties `locationName:"containerProperties" type:"structure"` // The name of the job definition to register. Up to 128 letters (uppercase // and lowercase), numbers, hyphens, and underscores are allowed. // // JobDefinitionName is a required field JobDefinitionName *string `locationName:"jobDefinitionName" type:"string" required:"true"` // An object with various properties specific to multi-node parallel jobs. If // you specify node properties for a job, it becomes a multi-node parallel job. // For more information, see Multi-node Parallel Jobs (https://docs.aws.amazon.com/batch/latest/userguide/multi-node-parallel-jobs.html) // in the Batch User Guide. If the job definition's type parameter is container, // then you must specify either containerProperties or nodeProperties. // // If the job runs on Fargate resources, then you must not specify nodeProperties; // use containerProperties instead. NodeProperties *NodeProperties `locationName:"nodeProperties" type:"structure"` // Default parameter substitution placeholders to set in the job definition. // Parameters are specified as a key-value pair mapping. Parameters in a SubmitJob // request override any corresponding parameter defaults from the job definition. Parameters map[string]*string `locationName:"parameters" type:"map"` // The platform capabilities required by the job definition. If no value is // specified, it defaults to EC2. To run the job on Fargate resources, specify // FARGATE. PlatformCapabilities []*string `locationName:"platformCapabilities" type:"list"` // Specifies whether to propagate the tags from the job or job definition to // the corresponding Amazon ECS task. If no value is specified, the tags are // not propagated. Tags can only be propagated to the tasks during task creation. // For tags with the same name, job tags are given priority over job definitions // tags. If the total number of combined tags from the job and job definition // is over 50, the job is moved to the FAILED state. PropagateTags *bool `locationName:"propagateTags" type:"boolean"` // The retry strategy to use for failed jobs that are submitted with this job // definition. Any retry strategy that's specified during a SubmitJob operation // overrides the retry strategy defined here. If a job is terminated due to // a timeout, it isn't retried. RetryStrategy *RetryStrategy `locationName:"retryStrategy" type:"structure"` // The tags that you apply to the job definition to help you categorize and // organize your resources. Each tag consists of a key and an optional value. // For more information, see Tagging Amazon Web Services Resources (https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html) // in Batch User Guide. Tags map[string]*string `locationName:"tags" min:"1" type:"map"` // The timeout configuration for jobs that are submitted with this job definition, // after which Batch terminates your jobs if they have not finished. If a job // is terminated due to a timeout, it isn't retried. The minimum value for the // timeout is 60 seconds. Any timeout configuration that's specified during // a SubmitJob operation overrides the timeout configuration defined here. For // more information, see Job Timeouts (https://docs.aws.amazon.com/batch/latest/userguide/job_timeouts.html) // in the Batch User Guide. Timeout *JobTimeout `locationName:"timeout" type:"structure"` // The type of job definition. For more information about multi-node parallel // jobs, see Creating a multi-node parallel job definition (https://docs.aws.amazon.com/batch/latest/userguide/multi-node-job-def.html) // in the Batch User Guide. // // If the job is run on Fargate resources, then multinode isn't supported. // // Type is a required field Type *string `locationName:"type" type:"string" required:"true" enum:"JobDefinitionType"` } // String returns the string representation func (s RegisterJobDefinitionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s RegisterJobDefinitionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *RegisterJobDefinitionInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "RegisterJobDefinitionInput"} if s.JobDefinitionName == nil { invalidParams.Add(request.NewErrParamRequired("JobDefinitionName")) } if s.Tags != nil && len(s.Tags) < 1 { invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) } if s.Type == nil { invalidParams.Add(request.NewErrParamRequired("Type")) } if s.ContainerProperties != nil { if err := s.ContainerProperties.Validate(); err != nil { invalidParams.AddNested("ContainerProperties", err.(request.ErrInvalidParams)) } } if s.NodeProperties != nil { if err := s.NodeProperties.Validate(); err != nil { invalidParams.AddNested("NodeProperties", err.(request.ErrInvalidParams)) } } if s.RetryStrategy != nil { if err := s.RetryStrategy.Validate(); err != nil { invalidParams.AddNested("RetryStrategy", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetContainerProperties sets the ContainerProperties field's value. func (s *RegisterJobDefinitionInput) SetContainerProperties(v *ContainerProperties) *RegisterJobDefinitionInput { s.ContainerProperties = v return s } // SetJobDefinitionName sets the JobDefinitionName field's value. func (s *RegisterJobDefinitionInput) SetJobDefinitionName(v string) *RegisterJobDefinitionInput { s.JobDefinitionName = &v return s } // SetNodeProperties sets the NodeProperties field's value. func (s *RegisterJobDefinitionInput) SetNodeProperties(v *NodeProperties) *RegisterJobDefinitionInput { s.NodeProperties = v return s } // SetParameters sets the Parameters field's value. func (s *RegisterJobDefinitionInput) SetParameters(v map[string]*string) *RegisterJobDefinitionInput { s.Parameters = v return s } // SetPlatformCapabilities sets the PlatformCapabilities field's value. func (s *RegisterJobDefinitionInput) SetPlatformCapabilities(v []*string) *RegisterJobDefinitionInput { s.PlatformCapabilities = v return s } // SetPropagateTags sets the PropagateTags field's value. func (s *RegisterJobDefinitionInput) SetPropagateTags(v bool) *RegisterJobDefinitionInput { s.PropagateTags = &v return s } // SetRetryStrategy sets the RetryStrategy field's value. func (s *RegisterJobDefinitionInput) SetRetryStrategy(v *RetryStrategy) *RegisterJobDefinitionInput { s.RetryStrategy = v return s } // SetTags sets the Tags field's value. func (s *RegisterJobDefinitionInput) SetTags(v map[string]*string) *RegisterJobDefinitionInput { s.Tags = v return s } // SetTimeout sets the Timeout field's value. func (s *RegisterJobDefinitionInput) SetTimeout(v *JobTimeout) *RegisterJobDefinitionInput { s.Timeout = v return s } // SetType sets the Type field's value. func (s *RegisterJobDefinitionInput) SetType(v string) *RegisterJobDefinitionInput { s.Type = &v return s } type RegisterJobDefinitionOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the job definition. // // JobDefinitionArn is a required field JobDefinitionArn *string `locationName:"jobDefinitionArn" type:"string" required:"true"` // The name of the job definition. // // JobDefinitionName is a required field JobDefinitionName *string `locationName:"jobDefinitionName" type:"string" required:"true"` // The revision of the job definition. // // Revision is a required field Revision *int64 `locationName:"revision" type:"integer" required:"true"` } // String returns the string representation func (s RegisterJobDefinitionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s RegisterJobDefinitionOutput) GoString() string { return s.String() } // SetJobDefinitionArn sets the JobDefinitionArn field's value. func (s *RegisterJobDefinitionOutput) SetJobDefinitionArn(v string) *RegisterJobDefinitionOutput { s.JobDefinitionArn = &v return s } // SetJobDefinitionName sets the JobDefinitionName field's value. func (s *RegisterJobDefinitionOutput) SetJobDefinitionName(v string) *RegisterJobDefinitionOutput { s.JobDefinitionName = &v return s } // SetRevision sets the Revision field's value. func (s *RegisterJobDefinitionOutput) SetRevision(v int64) *RegisterJobDefinitionOutput { s.Revision = &v return s } // The type and amount of a resource to assign to a container. The supported // resources include GPU, MEMORY, and VCPU. type ResourceRequirement struct { _ struct{} `type:"structure"` // The type of resource to assign to a container. The supported resources include // GPU, MEMORY, and VCPU. // // Type is a required field Type *string `locationName:"type" type:"string" required:"true" enum:"ResourceType"` // The quantity of the specified resource to reserve for the container. The // values vary based on the type specified. // // type="GPU" // // The number of physical GPUs to reserve for the container. The number of GPUs // reserved for all containers in a job shouldn't exceed the number of available // GPUs on the compute resource that the job is launched on. // // GPUs are not available for jobs that are running on Fargate resources. // // type="MEMORY" // // The memory hard limit (in MiB) present to the container. This parameter is // supported for jobs that are running on EC2 resources. If your container attempts // to exceed the memory specified, the container is terminated. This parameter // maps to Memory in the Create a container (https://docs.docker.com/engine/api/v1.23/#create-a-container) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.23/) // and the --memory option to docker run (https://docs.docker.com/engine/reference/run/). // You must specify at least 4 MiB of memory for a job. This is required but // can be specified in several places for multi-node parallel (MNP) jobs. It // must be specified for each node at least once. This parameter maps to Memory // in the Create a container (https://docs.docker.com/engine/api/v1.23/#create-a-container) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.23/) // and the --memory option to docker run (https://docs.docker.com/engine/reference/run/). // // If you're trying to maximize your resource utilization by providing your // jobs as much memory as possible for a particular instance type, see Memory // Management (https://docs.aws.amazon.com/batch/latest/userguide/memory-management.html) // in the Batch User Guide. // // For jobs that are running on Fargate resources, then value is the hard limit // (in MiB), and must match one of the supported values and the VCPU values // must be one of the values supported for that memory value. // // value = 512 // // VCPU = 0.25 // // value = 1024 // // VCPU = 0.25 or 0.5 // // value = 2048 // // VCPU = 0.25, 0.5, or 1 // // value = 3072 // // VCPU = 0.5, or 1 // // value = 4096 // // VCPU = 0.5, 1, or 2 // // value = 5120, 6144, or 7168 // // VCPU = 1 or 2 // // value = 8192 // // VCPU = 1, 2, or 4 // // value = 9216, 10240, 11264, 12288, 13312, 14336, 15360, or 16384 // // VCPU = 2 or 4 // // value = 17408, 18432, 19456, 20480, 21504, 22528, 23552, 24576, 25600, 26624, // 27648, 28672, 29696, or 30720 // // VCPU = 4 // // type="VCPU" // // The number of vCPUs reserved for the container. This parameter maps to CpuShares // in the Create a container (https://docs.docker.com/engine/api/v1.23/#create-a-container) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.23/) // and the --cpu-shares option to docker run (https://docs.docker.com/engine/reference/run/). // Each vCPU is equivalent to 1,024 CPU shares. For EC2 resources, you must // specify at least one vCPU. This is required but can be specified in several // places; it must be specified for each node at least once. // // For jobs that are running on Fargate resources, then value must match one // of the supported values and the MEMORY values must be one of the values supported // for that VCPU value. The supported values are 0.25, 0.5, 1, 2, and 4 // // value = 0.25 // // MEMORY = 512, 1024, or 2048 // // value = 0.5 // // MEMORY = 1024, 2048, 3072, or 4096 // // value = 1 // // MEMORY = 2048, 3072, 4096, 5120, 6144, 7168, or 8192 // // value = 2 // // MEMORY = 4096, 5120, 6144, 7168, 8192, 9216, 10240, 11264, 12288, 13312, // 14336, 15360, or 16384 // // value = 4 // // MEMORY = 8192, 9216, 10240, 11264, 12288, 13312, 14336, 15360, 16384, 17408, // 18432, 19456, 20480, 21504, 22528, 23552, 24576, 25600, 26624, 27648, 28672, // 29696, or 30720 // // Value is a required field Value *string `locationName:"value" type:"string" required:"true"` } // String returns the string representation func (s ResourceRequirement) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ResourceRequirement) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ResourceRequirement) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ResourceRequirement"} if s.Type == nil { invalidParams.Add(request.NewErrParamRequired("Type")) } if s.Value == nil { invalidParams.Add(request.NewErrParamRequired("Value")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetType sets the Type field's value. func (s *ResourceRequirement) SetType(v string) *ResourceRequirement { s.Type = &v return s } // SetValue sets the Value field's value. func (s *ResourceRequirement) SetValue(v string) *ResourceRequirement { s.Value = &v return s } // The retry strategy associated with a job. For more information, see Automated // job retries (https://docs.aws.amazon.com/batch/latest/userguide/job_retries.html) // in the Batch User Guide. type RetryStrategy struct { _ struct{} `type:"structure"` // The number of times to move a job to the RUNNABLE status. You can specify // between 1 and 10 attempts. If the value of attempts is greater than one, // the job is retried on failure the same number of attempts as the value. Attempts *int64 `locationName:"attempts" type:"integer"` // Array of up to 5 objects that specify conditions under which the job should // be retried or failed. If this parameter is specified, then the attempts parameter // must also be specified. EvaluateOnExit []*EvaluateOnExit `locationName:"evaluateOnExit" type:"list"` } // String returns the string representation func (s RetryStrategy) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s RetryStrategy) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *RetryStrategy) Validate() error { invalidParams := request.ErrInvalidParams{Context: "RetryStrategy"} if s.EvaluateOnExit != nil { for i, v := range s.EvaluateOnExit { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "EvaluateOnExit", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAttempts sets the Attempts field's value. func (s *RetryStrategy) SetAttempts(v int64) *RetryStrategy { s.Attempts = &v return s } // SetEvaluateOnExit sets the EvaluateOnExit field's value. func (s *RetryStrategy) SetEvaluateOnExit(v []*EvaluateOnExit) *RetryStrategy { s.EvaluateOnExit = v return s } // An object representing the secret to expose to your container. Secrets can // be exposed to a container in the following ways: // // * To inject sensitive data into your containers as environment variables, // use the secrets container definition parameter. // // * To reference sensitive information in the log configuration of a container, // use the secretOptions container definition parameter. // // For more information, see Specifying sensitive data (https://docs.aws.amazon.com/batch/latest/userguide/specifying-sensitive-data.html) // in the Batch User Guide. type Secret struct { _ struct{} `type:"structure"` // The name of the secret. // // Name is a required field Name *string `locationName:"name" type:"string" required:"true"` // The secret to expose to the container. The supported values are either the // full ARN of the Secrets Manager secret or the full ARN of the parameter in // the Amazon Web Services Systems Manager Parameter Store. // // If the Amazon Web Services Systems Manager Parameter Store parameter exists // in the same Region as the job you're launching, then you can use either the // full ARN or name of the parameter. If the parameter exists in a different // Region, then the full ARN must be specified. // // ValueFrom is a required field ValueFrom *string `locationName:"valueFrom" type:"string" required:"true"` } // String returns the string representation func (s Secret) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Secret) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *Secret) Validate() error { invalidParams := request.ErrInvalidParams{Context: "Secret"} if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.ValueFrom == nil { invalidParams.Add(request.NewErrParamRequired("ValueFrom")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetName sets the Name field's value. func (s *Secret) SetName(v string) *Secret { s.Name = &v return s } // SetValueFrom sets the ValueFrom field's value. func (s *Secret) SetValueFrom(v string) *Secret { s.ValueFrom = &v return s } // These errors are usually caused by a server issue. type ServerException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s ServerException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ServerException) GoString() string { return s.String() } func newErrorServerException(v protocol.ResponseMetadata) error { return &ServerException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ServerException) Code() string { return "ServerException" } // Message returns the exception's message. func (s *ServerException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ServerException) OrigErr() error { return nil } func (s *ServerException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ServerException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ServerException) RequestID() string { return s.RespMetadata.RequestID } // Contains the parameters for SubmitJob. type SubmitJobInput struct { _ struct{} `type:"structure"` // The array properties for the submitted job, such as the size of the array. // The array size can be between 2 and 10,000. If you specify array properties // for a job, it becomes an array job. For more information, see Array Jobs // (https://docs.aws.amazon.com/batch/latest/userguide/array_jobs.html) in the // Batch User Guide. ArrayProperties *ArrayProperties `locationName:"arrayProperties" type:"structure"` // A list of container overrides in the JSON format that specify the name of // a container in the specified job definition and the overrides it should receive. // You can override the default command for a container, which is specified // in the job definition or the Docker image, with a command override. You can // also override existing environment variables on a container or add new environment // variables to it with an environment override. ContainerOverrides *ContainerOverrides `locationName:"containerOverrides" type:"structure"` // A list of dependencies for the job. A job can depend upon a maximum of 20 // jobs. You can specify a SEQUENTIAL type dependency without specifying a job // ID for array jobs so that each child array job completes sequentially, starting // at index 0. You can also specify an N_TO_N type dependency with a job ID // for array jobs. In that case, each index child of this job must wait for // the corresponding index child of each dependency to complete before it can // begin. DependsOn []*JobDependency `locationName:"dependsOn" type:"list"` // The job definition used by this job. This value can be one of name, name:revision, // or the Amazon Resource Name (ARN) for the job definition. If name is specified // without a revision then the latest active revision is used. // // JobDefinition is a required field JobDefinition *string `locationName:"jobDefinition" type:"string" required:"true"` // The name of the job. The first character must be alphanumeric, and up to // 128 letters (uppercase and lowercase), numbers, hyphens, and underscores // are allowed. // // JobName is a required field JobName *string `locationName:"jobName" type:"string" required:"true"` // The job queue where the job is submitted. You can specify either the name // or the Amazon Resource Name (ARN) of the queue. // // JobQueue is a required field JobQueue *string `locationName:"jobQueue" type:"string" required:"true"` // A list of node overrides in JSON format that specify the node range to target // and the container overrides for that node range. // // This parameter isn't applicable to jobs that are running on Fargate resources; // use containerOverrides instead. NodeOverrides *NodeOverrides `locationName:"nodeOverrides" type:"structure"` // Additional parameters passed to the job that replace parameter substitution // placeholders that are set in the job definition. Parameters are specified // as a key and value pair mapping. Parameters in a SubmitJob request override // any corresponding parameter defaults from the job definition. Parameters map[string]*string `locationName:"parameters" type:"map"` // Specifies whether to propagate the tags from the job or job definition to // the corresponding Amazon ECS task. If no value is specified, the tags aren't // propagated. Tags can only be propagated to the tasks during task creation. // For tags with the same name, job tags are given priority over job definitions // tags. If the total number of combined tags from the job and job definition // is over 50, the job is moved to the FAILED state. When specified, this overrides // the tag propagation setting in the job definition. PropagateTags *bool `locationName:"propagateTags" type:"boolean"` // The retry strategy to use for failed jobs from this SubmitJob operation. // When a retry strategy is specified here, it overrides the retry strategy // defined in the job definition. RetryStrategy *RetryStrategy `locationName:"retryStrategy" type:"structure"` // The tags that you apply to the job request to help you categorize and organize // your resources. Each tag consists of a key and an optional value. For more // information, see Tagging Amazon Web Services Resources (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) // in Amazon Web Services General Reference. Tags map[string]*string `locationName:"tags" min:"1" type:"map"` // The timeout configuration for this SubmitJob operation. You can specify a // timeout duration after which Batch terminates your jobs if they haven't finished. // If a job is terminated due to a timeout, it isn't retried. The minimum value // for the timeout is 60 seconds. This configuration overrides any timeout configuration // specified in the job definition. For array jobs, child jobs have the same // timeout configuration as the parent job. For more information, see Job Timeouts // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/job_timeouts.html) // in the Amazon Elastic Container Service Developer Guide. Timeout *JobTimeout `locationName:"timeout" type:"structure"` } // String returns the string representation func (s SubmitJobInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s SubmitJobInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *SubmitJobInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "SubmitJobInput"} if s.JobDefinition == nil { invalidParams.Add(request.NewErrParamRequired("JobDefinition")) } if s.JobName == nil { invalidParams.Add(request.NewErrParamRequired("JobName")) } if s.JobQueue == nil { invalidParams.Add(request.NewErrParamRequired("JobQueue")) } if s.Tags != nil && len(s.Tags) < 1 { invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) } if s.ContainerOverrides != nil { if err := s.ContainerOverrides.Validate(); err != nil { invalidParams.AddNested("ContainerOverrides", err.(request.ErrInvalidParams)) } } if s.NodeOverrides != nil { if err := s.NodeOverrides.Validate(); err != nil { invalidParams.AddNested("NodeOverrides", err.(request.ErrInvalidParams)) } } if s.RetryStrategy != nil { if err := s.RetryStrategy.Validate(); err != nil { invalidParams.AddNested("RetryStrategy", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetArrayProperties sets the ArrayProperties field's value. func (s *SubmitJobInput) SetArrayProperties(v *ArrayProperties) *SubmitJobInput { s.ArrayProperties = v return s } // SetContainerOverrides sets the ContainerOverrides field's value. func (s *SubmitJobInput) SetContainerOverrides(v *ContainerOverrides) *SubmitJobInput { s.ContainerOverrides = v return s } // SetDependsOn sets the DependsOn field's value. func (s *SubmitJobInput) SetDependsOn(v []*JobDependency) *SubmitJobInput { s.DependsOn = v return s } // SetJobDefinition sets the JobDefinition field's value. func (s *SubmitJobInput) SetJobDefinition(v string) *SubmitJobInput { s.JobDefinition = &v return s } // SetJobName sets the JobName field's value. func (s *SubmitJobInput) SetJobName(v string) *SubmitJobInput { s.JobName = &v return s } // SetJobQueue sets the JobQueue field's value. func (s *SubmitJobInput) SetJobQueue(v string) *SubmitJobInput { s.JobQueue = &v return s } // SetNodeOverrides sets the NodeOverrides field's value. func (s *SubmitJobInput) SetNodeOverrides(v *NodeOverrides) *SubmitJobInput { s.NodeOverrides = v return s } // SetParameters sets the Parameters field's value. func (s *SubmitJobInput) SetParameters(v map[string]*string) *SubmitJobInput { s.Parameters = v return s } // SetPropagateTags sets the PropagateTags field's value. func (s *SubmitJobInput) SetPropagateTags(v bool) *SubmitJobInput { s.PropagateTags = &v return s } // SetRetryStrategy sets the RetryStrategy field's value. func (s *SubmitJobInput) SetRetryStrategy(v *RetryStrategy) *SubmitJobInput { s.RetryStrategy = v return s } // SetTags sets the Tags field's value. func (s *SubmitJobInput) SetTags(v map[string]*string) *SubmitJobInput { s.Tags = v return s } // SetTimeout sets the Timeout field's value. func (s *SubmitJobInput) SetTimeout(v *JobTimeout) *SubmitJobInput { s.Timeout = v return s } type SubmitJobOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) for the job. JobArn *string `locationName:"jobArn" type:"string"` // The unique identifier for the job. // // JobId is a required field JobId *string `locationName:"jobId" type:"string" required:"true"` // The name of the job. // // JobName is a required field JobName *string `locationName:"jobName" type:"string" required:"true"` } // String returns the string representation func (s SubmitJobOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s SubmitJobOutput) GoString() string { return s.String() } // SetJobArn sets the JobArn field's value. func (s *SubmitJobOutput) SetJobArn(v string) *SubmitJobOutput { s.JobArn = &v return s } // SetJobId sets the JobId field's value. func (s *SubmitJobOutput) SetJobId(v string) *SubmitJobOutput { s.JobId = &v return s } // SetJobName sets the JobName field's value. func (s *SubmitJobOutput) SetJobName(v string) *SubmitJobOutput { s.JobName = &v return s } type TagResourceInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the resource that tags are added to. Batch // resources that support tags are compute environments, jobs, job definitions, // and job queues. ARNs for child jobs of array and multi-node parallel (MNP) // jobs are not supported. // // ResourceArn is a required field ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` // The tags that you apply to the resource to help you categorize and organize // your resources. Each tag consists of a key and an optional value. For more // information, see Tagging Amazon Web Services Resources (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) // in Amazon Web Services General Reference. // // Tags is a required field Tags map[string]*string `locationName:"tags" min:"1" type:"map" required:"true"` } // String returns the string representation func (s TagResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TagResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *TagResourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} if s.ResourceArn == nil { invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) } if s.Tags == nil { invalidParams.Add(request.NewErrParamRequired("Tags")) } if s.Tags != nil && len(s.Tags) < 1 { invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetResourceArn sets the ResourceArn field's value. func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { s.ResourceArn = &v return s } // SetTags sets the Tags field's value. func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput { s.Tags = v return s } type TagResourceOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s TagResourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TagResourceOutput) GoString() string { return s.String() } // Contains the parameters for TerminateJob. type TerminateJobInput struct { _ struct{} `type:"structure"` // The Batch job ID of the job to terminate. // // JobId is a required field JobId *string `locationName:"jobId" type:"string" required:"true"` // A message to attach to the job that explains the reason for canceling it. // This message is returned by future DescribeJobs operations on the job. This // message is also recorded in the Batch activity logs. // // Reason is a required field Reason *string `locationName:"reason" type:"string" required:"true"` } // String returns the string representation func (s TerminateJobInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TerminateJobInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *TerminateJobInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "TerminateJobInput"} if s.JobId == nil { invalidParams.Add(request.NewErrParamRequired("JobId")) } if s.Reason == nil { invalidParams.Add(request.NewErrParamRequired("Reason")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetJobId sets the JobId field's value. func (s *TerminateJobInput) SetJobId(v string) *TerminateJobInput { s.JobId = &v return s } // SetReason sets the Reason field's value. func (s *TerminateJobInput) SetReason(v string) *TerminateJobInput { s.Reason = &v return s } type TerminateJobOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s TerminateJobOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TerminateJobOutput) GoString() string { return s.String() } // The container path, mount options, and size of the tmpfs mount. // // This object isn't applicable to jobs that are running on Fargate resources. type Tmpfs struct { _ struct{} `type:"structure"` // The absolute file path in the container where the tmpfs volume is mounted. // // ContainerPath is a required field ContainerPath *string `locationName:"containerPath" type:"string" required:"true"` // The list of tmpfs volume mount options. // // Valid values: "defaults" | "ro" | "rw" | "suid" | "nosuid" | "dev" | "nodev" // | "exec" | "noexec" | "sync" | "async" | "dirsync" | "remount" | "mand" | // "nomand" | "atime" | "noatime" | "diratime" | "nodiratime" | "bind" | "rbind" // | "unbindable" | "runbindable" | "private" | "rprivate" | "shared" | "rshared" // | "slave" | "rslave" | "relatime" | "norelatime" | "strictatime" | "nostrictatime" // | "mode" | "uid" | "gid" | "nr_inodes" | "nr_blocks" | "mpol" MountOptions []*string `locationName:"mountOptions" type:"list"` // The size (in MiB) of the tmpfs volume. // // Size is a required field Size *int64 `locationName:"size" type:"integer" required:"true"` } // String returns the string representation func (s Tmpfs) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Tmpfs) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *Tmpfs) Validate() error { invalidParams := request.ErrInvalidParams{Context: "Tmpfs"} if s.ContainerPath == nil { invalidParams.Add(request.NewErrParamRequired("ContainerPath")) } if s.Size == nil { invalidParams.Add(request.NewErrParamRequired("Size")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetContainerPath sets the ContainerPath field's value. func (s *Tmpfs) SetContainerPath(v string) *Tmpfs { s.ContainerPath = &v return s } // SetMountOptions sets the MountOptions field's value. func (s *Tmpfs) SetMountOptions(v []*string) *Tmpfs { s.MountOptions = v return s } // SetSize sets the Size field's value. func (s *Tmpfs) SetSize(v int64) *Tmpfs { s.Size = &v return s } // The ulimit settings to pass to the container. // // This object isn't applicable to jobs that are running on Fargate resources. type Ulimit struct { _ struct{} `type:"structure"` // The hard limit for the ulimit type. // // HardLimit is a required field HardLimit *int64 `locationName:"hardLimit" type:"integer" required:"true"` // The type of the ulimit. // // Name is a required field Name *string `locationName:"name" type:"string" required:"true"` // The soft limit for the ulimit type. // // SoftLimit is a required field SoftLimit *int64 `locationName:"softLimit" type:"integer" required:"true"` } // String returns the string representation func (s Ulimit) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Ulimit) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *Ulimit) Validate() error { invalidParams := request.ErrInvalidParams{Context: "Ulimit"} if s.HardLimit == nil { invalidParams.Add(request.NewErrParamRequired("HardLimit")) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.SoftLimit == nil { invalidParams.Add(request.NewErrParamRequired("SoftLimit")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetHardLimit sets the HardLimit field's value. func (s *Ulimit) SetHardLimit(v int64) *Ulimit { s.HardLimit = &v return s } // SetName sets the Name field's value. func (s *Ulimit) SetName(v string) *Ulimit { s.Name = &v return s } // SetSoftLimit sets the SoftLimit field's value. func (s *Ulimit) SetSoftLimit(v int64) *Ulimit { s.SoftLimit = &v return s } type UntagResourceInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the resource from which to delete tags. // Batch resources that support tags are compute environments, jobs, job definitions, // and job queues. ARNs for child jobs of array and multi-node parallel (MNP) // jobs are not supported. // // ResourceArn is a required field ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` // The keys of the tags to be removed. // // TagKeys is a required field TagKeys []*string `location:"querystring" locationName:"tagKeys" min:"1" type:"list" required:"true"` } // String returns the string representation func (s UntagResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UntagResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UntagResourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} if s.ResourceArn == nil { invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) } if s.TagKeys == nil { invalidParams.Add(request.NewErrParamRequired("TagKeys")) } if s.TagKeys != nil && len(s.TagKeys) < 1 { invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetResourceArn sets the ResourceArn field's value. func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { s.ResourceArn = &v return s } // SetTagKeys sets the TagKeys field's value. func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { s.TagKeys = v return s } type UntagResourceOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s UntagResourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UntagResourceOutput) GoString() string { return s.String() } // Contains the parameters for UpdateComputeEnvironment. type UpdateComputeEnvironmentInput struct { _ struct{} `type:"structure"` // The name or full Amazon Resource Name (ARN) of the compute environment to // update. // // ComputeEnvironment is a required field ComputeEnvironment *string `locationName:"computeEnvironment" type:"string" required:"true"` // Details of the compute resources managed by the compute environment. Required // for a managed compute environment. For more information, see Compute Environments // (https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html) // in the Batch User Guide. ComputeResources *ComputeResourceUpdate `locationName:"computeResources" type:"structure"` // The full Amazon Resource Name (ARN) of the IAM role that allows Batch to // make calls to other Amazon Web Services services on your behalf. For more // information, see Batch service IAM role (https://docs.aws.amazon.com/batch/latest/userguide/service_IAM_role.html) // in the Batch User Guide. // // If the compute environment has a service-linked role, it can't be changed // to use a regular IAM role. Likewise, if the compute environment has a regular // IAM role, it can't be changed to use a service-linked role. // // If your specified role has a path other than /, then you must either specify // the full role ARN (this is recommended) or prefix the role name with the // path. // // Depending on how you created your Batch service role, its ARN might contain // the service-role path prefix. When you only specify the name of the service // role, Batch assumes that your ARN doesn't use the service-role path prefix. // Because of this, we recommend that you specify the full ARN of your service // role when you create compute environments. ServiceRole *string `locationName:"serviceRole" type:"string"` // The state of the compute environment. Compute environments in the ENABLED // state can accept jobs from a queue and scale in or out automatically based // on the workload demand of its associated queues. // // If the state is ENABLED, then the Batch scheduler can attempt to place jobs // from an associated job queue on the compute resources within the environment. // If the compute environment is managed, then it can scale its instances out // or in automatically, based on the job queue demand. // // If the state is DISABLED, then the Batch scheduler doesn't attempt to place // jobs within the environment. Jobs in a STARTING or RUNNING state continue // to progress normally. Managed compute environments in the DISABLED state // don't scale out. However, they scale in to minvCpus value after instances // become idle. State *string `locationName:"state" type:"string" enum:"CEState"` } // String returns the string representation func (s UpdateComputeEnvironmentInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateComputeEnvironmentInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateComputeEnvironmentInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateComputeEnvironmentInput"} if s.ComputeEnvironment == nil { invalidParams.Add(request.NewErrParamRequired("ComputeEnvironment")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetComputeEnvironment sets the ComputeEnvironment field's value. func (s *UpdateComputeEnvironmentInput) SetComputeEnvironment(v string) *UpdateComputeEnvironmentInput { s.ComputeEnvironment = &v return s } // SetComputeResources sets the ComputeResources field's value. func (s *UpdateComputeEnvironmentInput) SetComputeResources(v *ComputeResourceUpdate) *UpdateComputeEnvironmentInput { s.ComputeResources = v return s } // SetServiceRole sets the ServiceRole field's value. func (s *UpdateComputeEnvironmentInput) SetServiceRole(v string) *UpdateComputeEnvironmentInput { s.ServiceRole = &v return s } // SetState sets the State field's value. func (s *UpdateComputeEnvironmentInput) SetState(v string) *UpdateComputeEnvironmentInput { s.State = &v return s } type UpdateComputeEnvironmentOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the compute environment. ComputeEnvironmentArn *string `locationName:"computeEnvironmentArn" type:"string"` // The name of the compute environment. Up to 128 letters (uppercase and lowercase), // numbers, hyphens, and underscores are allowed. ComputeEnvironmentName *string `locationName:"computeEnvironmentName" type:"string"` } // String returns the string representation func (s UpdateComputeEnvironmentOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateComputeEnvironmentOutput) GoString() string { return s.String() } // SetComputeEnvironmentArn sets the ComputeEnvironmentArn field's value. func (s *UpdateComputeEnvironmentOutput) SetComputeEnvironmentArn(v string) *UpdateComputeEnvironmentOutput { s.ComputeEnvironmentArn = &v return s } // SetComputeEnvironmentName sets the ComputeEnvironmentName field's value. func (s *UpdateComputeEnvironmentOutput) SetComputeEnvironmentName(v string) *UpdateComputeEnvironmentOutput { s.ComputeEnvironmentName = &v return s } // Contains the parameters for UpdateJobQueue. type UpdateJobQueueInput struct { _ struct{} `type:"structure"` // Details the set of compute environments mapped to a job queue and their order // relative to each other. This is one of the parameters used by the job scheduler // to determine which compute environment should run a given job. Compute environments // must be in the VALID state before you can associate them with a job queue. // All of the compute environments must be either EC2 (EC2 or SPOT) or Fargate // (FARGATE or FARGATE_SPOT). EC2 and Fargate compute environments can't be // mixed. // // All compute environments that are associated with a job queue must share // the same architecture. Batch doesn't support mixing compute environment architecture // types in a single job queue. ComputeEnvironmentOrder []*ComputeEnvironmentOrder `locationName:"computeEnvironmentOrder" type:"list"` // The name or the Amazon Resource Name (ARN) of the job queue. // // JobQueue is a required field JobQueue *string `locationName:"jobQueue" type:"string" required:"true"` // The priority of the job queue. Job queues with a higher priority (or a higher // integer value for the priority parameter) are evaluated first when associated // with the same compute environment. Priority is determined in descending order, // for example, a job queue with a priority value of 10 is given scheduling // preference over a job queue with a priority value of 1. All of the compute // environments must be either EC2 (EC2 or SPOT) or Fargate (FARGATE or FARGATE_SPOT). // EC2 and Fargate compute environments can't be mixed. Priority *int64 `locationName:"priority" type:"integer"` // Describes the queue's ability to accept new jobs. If the job queue state // is ENABLED, it can accept jobs. If the job queue state is DISABLED, new jobs // can't be added to the queue, but jobs already in the queue can finish. State *string `locationName:"state" type:"string" enum:"JQState"` } // String returns the string representation func (s UpdateJobQueueInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateJobQueueInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateJobQueueInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateJobQueueInput"} if s.JobQueue == nil { invalidParams.Add(request.NewErrParamRequired("JobQueue")) } if s.ComputeEnvironmentOrder != nil { for i, v := range s.ComputeEnvironmentOrder { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ComputeEnvironmentOrder", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetComputeEnvironmentOrder sets the ComputeEnvironmentOrder field's value. func (s *UpdateJobQueueInput) SetComputeEnvironmentOrder(v []*ComputeEnvironmentOrder) *UpdateJobQueueInput { s.ComputeEnvironmentOrder = v return s } // SetJobQueue sets the JobQueue field's value. func (s *UpdateJobQueueInput) SetJobQueue(v string) *UpdateJobQueueInput { s.JobQueue = &v return s } // SetPriority sets the Priority field's value. func (s *UpdateJobQueueInput) SetPriority(v int64) *UpdateJobQueueInput { s.Priority = &v return s } // SetState sets the State field's value. func (s *UpdateJobQueueInput) SetState(v string) *UpdateJobQueueInput { s.State = &v return s } type UpdateJobQueueOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the job queue. JobQueueArn *string `locationName:"jobQueueArn" type:"string"` // The name of the job queue. JobQueueName *string `locationName:"jobQueueName" type:"string"` } // String returns the string representation func (s UpdateJobQueueOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateJobQueueOutput) GoString() string { return s.String() } // SetJobQueueArn sets the JobQueueArn field's value. func (s *UpdateJobQueueOutput) SetJobQueueArn(v string) *UpdateJobQueueOutput { s.JobQueueArn = &v return s } // SetJobQueueName sets the JobQueueName field's value. func (s *UpdateJobQueueOutput) SetJobQueueName(v string) *UpdateJobQueueOutput { s.JobQueueName = &v return s } // A data volume used in a job's container properties. type Volume struct { _ struct{} `type:"structure"` // This parameter is specified when you are using an Amazon Elastic File System // file system for job storage. Jobs that are running on Fargate resources must // specify a platformVersion of at least 1.4.0. EfsVolumeConfiguration *EFSVolumeConfiguration `locationName:"efsVolumeConfiguration" type:"structure"` // The contents of the host parameter determine whether your data volume persists // on the host container instance and where it is stored. If the host parameter // is empty, then the Docker daemon assigns a host path for your data volume. // However, the data isn't guaranteed to persist after the containers associated // with it stop running. // // This parameter isn't applicable to jobs that are running on Fargate resources // and shouldn't be provided. Host *Host `locationName:"host" type:"structure"` // The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, // hyphens, and underscores are allowed. This name is referenced in the sourceVolume // parameter of container definition mountPoints. Name *string `locationName:"name" type:"string"` } // String returns the string representation func (s Volume) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Volume) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *Volume) Validate() error { invalidParams := request.ErrInvalidParams{Context: "Volume"} if s.EfsVolumeConfiguration != nil { if err := s.EfsVolumeConfiguration.Validate(); err != nil { invalidParams.AddNested("EfsVolumeConfiguration", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetEfsVolumeConfiguration sets the EfsVolumeConfiguration field's value. func (s *Volume) SetEfsVolumeConfiguration(v *EFSVolumeConfiguration) *Volume { s.EfsVolumeConfiguration = v return s } // SetHost sets the Host field's value. func (s *Volume) SetHost(v *Host) *Volume { s.Host = v return s } // SetName sets the Name field's value. func (s *Volume) SetName(v string) *Volume { s.Name = &v return s } const ( // ArrayJobDependencyNToN is a ArrayJobDependency enum value ArrayJobDependencyNToN = "N_TO_N" // ArrayJobDependencySequential is a ArrayJobDependency enum value ArrayJobDependencySequential = "SEQUENTIAL" ) // ArrayJobDependency_Values returns all elements of the ArrayJobDependency enum func ArrayJobDependency_Values() []string { return []string{ ArrayJobDependencyNToN, ArrayJobDependencySequential, } } const ( // AssignPublicIpEnabled is a AssignPublicIp enum value AssignPublicIpEnabled = "ENABLED" // AssignPublicIpDisabled is a AssignPublicIp enum value AssignPublicIpDisabled = "DISABLED" ) // AssignPublicIp_Values returns all elements of the AssignPublicIp enum func AssignPublicIp_Values() []string { return []string{ AssignPublicIpEnabled, AssignPublicIpDisabled, } } const ( // CEStateEnabled is a CEState enum value CEStateEnabled = "ENABLED" // CEStateDisabled is a CEState enum value CEStateDisabled = "DISABLED" ) // CEState_Values returns all elements of the CEState enum func CEState_Values() []string { return []string{ CEStateEnabled, CEStateDisabled, } } const ( // CEStatusCreating is a CEStatus enum value CEStatusCreating = "CREATING" // CEStatusUpdating is a CEStatus enum value CEStatusUpdating = "UPDATING" // CEStatusDeleting is a CEStatus enum value CEStatusDeleting = "DELETING" // CEStatusDeleted is a CEStatus enum value CEStatusDeleted = "DELETED" // CEStatusValid is a CEStatus enum value CEStatusValid = "VALID" // CEStatusInvalid is a CEStatus enum value CEStatusInvalid = "INVALID" ) // CEStatus_Values returns all elements of the CEStatus enum func CEStatus_Values() []string { return []string{ CEStatusCreating, CEStatusUpdating, CEStatusDeleting, CEStatusDeleted, CEStatusValid, CEStatusInvalid, } } const ( // CETypeManaged is a CEType enum value CETypeManaged = "MANAGED" // CETypeUnmanaged is a CEType enum value CETypeUnmanaged = "UNMANAGED" ) // CEType_Values returns all elements of the CEType enum func CEType_Values() []string { return []string{ CETypeManaged, CETypeUnmanaged, } } const ( // CRAllocationStrategyBestFit is a CRAllocationStrategy enum value CRAllocationStrategyBestFit = "BEST_FIT" // CRAllocationStrategyBestFitProgressive is a CRAllocationStrategy enum value CRAllocationStrategyBestFitProgressive = "BEST_FIT_PROGRESSIVE" // CRAllocationStrategySpotCapacityOptimized is a CRAllocationStrategy enum value CRAllocationStrategySpotCapacityOptimized = "SPOT_CAPACITY_OPTIMIZED" ) // CRAllocationStrategy_Values returns all elements of the CRAllocationStrategy enum func CRAllocationStrategy_Values() []string { return []string{ CRAllocationStrategyBestFit, CRAllocationStrategyBestFitProgressive, CRAllocationStrategySpotCapacityOptimized, } } const ( // CRTypeEc2 is a CRType enum value CRTypeEc2 = "EC2" // CRTypeSpot is a CRType enum value CRTypeSpot = "SPOT" // CRTypeFargate is a CRType enum value CRTypeFargate = "FARGATE" // CRTypeFargateSpot is a CRType enum value CRTypeFargateSpot = "FARGATE_SPOT" ) // CRType_Values returns all elements of the CRType enum func CRType_Values() []string { return []string{ CRTypeEc2, CRTypeSpot, CRTypeFargate, CRTypeFargateSpot, } } const ( // DeviceCgroupPermissionRead is a DeviceCgroupPermission enum value DeviceCgroupPermissionRead = "READ" // DeviceCgroupPermissionWrite is a DeviceCgroupPermission enum value DeviceCgroupPermissionWrite = "WRITE" // DeviceCgroupPermissionMknod is a DeviceCgroupPermission enum value DeviceCgroupPermissionMknod = "MKNOD" ) // DeviceCgroupPermission_Values returns all elements of the DeviceCgroupPermission enum func DeviceCgroupPermission_Values() []string { return []string{ DeviceCgroupPermissionRead, DeviceCgroupPermissionWrite, DeviceCgroupPermissionMknod, } } const ( // EFSAuthorizationConfigIAMEnabled is a EFSAuthorizationConfigIAM enum value EFSAuthorizationConfigIAMEnabled = "ENABLED" // EFSAuthorizationConfigIAMDisabled is a EFSAuthorizationConfigIAM enum value EFSAuthorizationConfigIAMDisabled = "DISABLED" ) // EFSAuthorizationConfigIAM_Values returns all elements of the EFSAuthorizationConfigIAM enum func EFSAuthorizationConfigIAM_Values() []string { return []string{ EFSAuthorizationConfigIAMEnabled, EFSAuthorizationConfigIAMDisabled, } } const ( // EFSTransitEncryptionEnabled is a EFSTransitEncryption enum value EFSTransitEncryptionEnabled = "ENABLED" // EFSTransitEncryptionDisabled is a EFSTransitEncryption enum value EFSTransitEncryptionDisabled = "DISABLED" ) // EFSTransitEncryption_Values returns all elements of the EFSTransitEncryption enum func EFSTransitEncryption_Values() []string { return []string{ EFSTransitEncryptionEnabled, EFSTransitEncryptionDisabled, } } const ( // JQStateEnabled is a JQState enum value JQStateEnabled = "ENABLED" // JQStateDisabled is a JQState enum value JQStateDisabled = "DISABLED" ) // JQState_Values returns all elements of the JQState enum func JQState_Values() []string { return []string{ JQStateEnabled, JQStateDisabled, } } const ( // JQStatusCreating is a JQStatus enum value JQStatusCreating = "CREATING" // JQStatusUpdating is a JQStatus enum value JQStatusUpdating = "UPDATING" // JQStatusDeleting is a JQStatus enum value JQStatusDeleting = "DELETING" // JQStatusDeleted is a JQStatus enum value JQStatusDeleted = "DELETED" // JQStatusValid is a JQStatus enum value JQStatusValid = "VALID" // JQStatusInvalid is a JQStatus enum value JQStatusInvalid = "INVALID" ) // JQStatus_Values returns all elements of the JQStatus enum func JQStatus_Values() []string { return []string{ JQStatusCreating, JQStatusUpdating, JQStatusDeleting, JQStatusDeleted, JQStatusValid, JQStatusInvalid, } } const ( // JobDefinitionTypeContainer is a JobDefinitionType enum value JobDefinitionTypeContainer = "container" // JobDefinitionTypeMultinode is a JobDefinitionType enum value JobDefinitionTypeMultinode = "multinode" ) // JobDefinitionType_Values returns all elements of the JobDefinitionType enum func JobDefinitionType_Values() []string { return []string{ JobDefinitionTypeContainer, JobDefinitionTypeMultinode, } } const ( // JobStatusSubmitted is a JobStatus enum value JobStatusSubmitted = "SUBMITTED" // JobStatusPending is a JobStatus enum value JobStatusPending = "PENDING" // JobStatusRunnable is a JobStatus enum value JobStatusRunnable = "RUNNABLE" // JobStatusStarting is a JobStatus enum value JobStatusStarting = "STARTING" // JobStatusRunning is a JobStatus enum value JobStatusRunning = "RUNNING" // JobStatusSucceeded is a JobStatus enum value JobStatusSucceeded = "SUCCEEDED" // JobStatusFailed is a JobStatus enum value JobStatusFailed = "FAILED" ) // JobStatus_Values returns all elements of the JobStatus enum func JobStatus_Values() []string { return []string{ JobStatusSubmitted, JobStatusPending, JobStatusRunnable, JobStatusStarting, JobStatusRunning, JobStatusSucceeded, JobStatusFailed, } } const ( // LogDriverJsonFile is a LogDriver enum value LogDriverJsonFile = "json-file" // LogDriverSyslog is a LogDriver enum value LogDriverSyslog = "syslog" // LogDriverJournald is a LogDriver enum value LogDriverJournald = "journald" // LogDriverGelf is a LogDriver enum value LogDriverGelf = "gelf" // LogDriverFluentd is a LogDriver enum value LogDriverFluentd = "fluentd" // LogDriverAwslogs is a LogDriver enum value LogDriverAwslogs = "awslogs" // LogDriverSplunk is a LogDriver enum value LogDriverSplunk = "splunk" ) // LogDriver_Values returns all elements of the LogDriver enum func LogDriver_Values() []string { return []string{ LogDriverJsonFile, LogDriverSyslog, LogDriverJournald, LogDriverGelf, LogDriverFluentd, LogDriverAwslogs, LogDriverSplunk, } } const ( // PlatformCapabilityEc2 is a PlatformCapability enum value PlatformCapabilityEc2 = "EC2" // PlatformCapabilityFargate is a PlatformCapability enum value PlatformCapabilityFargate = "FARGATE" ) // PlatformCapability_Values returns all elements of the PlatformCapability enum func PlatformCapability_Values() []string { return []string{ PlatformCapabilityEc2, PlatformCapabilityFargate, } } const ( // ResourceTypeGpu is a ResourceType enum value ResourceTypeGpu = "GPU" // ResourceTypeVcpu is a ResourceType enum value ResourceTypeVcpu = "VCPU" // ResourceTypeMemory is a ResourceType enum value ResourceTypeMemory = "MEMORY" ) // ResourceType_Values returns all elements of the ResourceType enum func ResourceType_Values() []string { return []string{ ResourceTypeGpu, ResourceTypeVcpu, ResourceTypeMemory, } } const ( // RetryActionRetry is a RetryAction enum value RetryActionRetry = "RETRY" // RetryActionExit is a RetryAction enum value RetryActionExit = "EXIT" ) // RetryAction_Values returns all elements of the RetryAction enum func RetryAction_Values() []string { return []string{ RetryActionRetry, RetryActionExit, } }
8,876
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package batch provides the client and types for making API // requests to AWS Batch. // // Using Batch, you can run batch computing workloads on the Cloud. Batch computing // is a common means for developers, scientists, and engineers to access large // amounts of compute resources. Batch uses the advantages of this computing // workload to remove the undifferentiated heavy lifting of configuring and // managing required infrastructure. At the same time, it also adopts a familiar // batch computing software approach. Given these advantages, Batch can help // you to efficiently provision resources in response to jobs submitted, thus // effectively helping you to eliminate capacity constraints, reduce compute // costs, and deliver your results more quickly. // // As a fully managed service, Batch can run batch computing workloads of any // scale. Batch automatically provisions compute resources and optimizes workload // distribution based on the quantity and scale of your specific workloads. // With Batch, there's no need to install or manage batch computing software. // This means that you can focus your time and energy on analyzing results and // solving your specific problems. // // See https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10 for more information on this service. // // See batch package documentation for more information. // https://docs.aws.amazon.com/sdk-for-go/api/service/batch/ // // Using the Client // // To contact AWS Batch 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 Batch client Batch for more // information on creating client for this service. // https://docs.aws.amazon.com/sdk-for-go/api/service/batch/#New package batch
44
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package batch import ( "github.com/aws/aws-sdk-go/private/protocol" ) const ( // ErrCodeClientException for service response error code // "ClientException". // // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that's not valid. ErrCodeClientException = "ClientException" // ErrCodeServerException for service response error code // "ServerException". // // These errors are usually caused by a server issue. ErrCodeServerException = "ServerException" ) var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "ClientException": newErrorClientException, "ServerException": newErrorServerException, }
30
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package batch_test import ( "fmt" "strings" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/batch" ) var _ time.Duration var _ strings.Reader var _ aws.Config func parseTime(layout, value string) *time.Time { t, err := time.Parse(layout, value) if err != nil { panic(err) } return &t } // To cancel a job // // This example cancels a job with the specified job ID. func ExampleBatch_CancelJob_shared00() { svc := batch.New(session.New()) input := &batch.CancelJobInput{ JobId: aws.String("1d828f65-7a4d-42e8-996d-3b900ed59dc4"), Reason: aws.String("Cancelling job."), } result, err := svc.CancelJob(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case batch.ErrCodeClientException: fmt.Println(batch.ErrCodeClientException, aerr.Error()) case batch.ErrCodeServerException: fmt.Println(batch.ErrCodeServerException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To create a managed EC2 compute environment // // This example creates a managed compute environment with specific C4 instance types // that are launched on demand. The compute environment is called C4OnDemand. func ExampleBatch_CreateComputeEnvironment_shared00() { svc := batch.New(session.New()) input := &batch.CreateComputeEnvironmentInput{ ComputeEnvironmentName: aws.String("C4OnDemand"), ComputeResources: &batch.ComputeResource{ DesiredvCpus: aws.Int64(48), Ec2KeyPair: aws.String("id_rsa"), InstanceRole: aws.String("ecsInstanceRole"), InstanceTypes: []*string{ aws.String("c4.large"), aws.String("c4.xlarge"), aws.String("c4.2xlarge"), aws.String("c4.4xlarge"), aws.String("c4.8xlarge"), }, MaxvCpus: aws.Int64(128), MinvCpus: aws.Int64(0), SecurityGroupIds: []*string{ aws.String("sg-cf5093b2"), }, Subnets: []*string{ aws.String("subnet-220c0e0a"), aws.String("subnet-1a95556d"), aws.String("subnet-978f6dce"), }, Tags: map[string]*string{ "Name": aws.String("Batch Instance - C4OnDemand"), }, Type: aws.String("EC2"), }, ServiceRole: aws.String("arn:aws:iam::012345678910:role/AWSBatchServiceRole"), State: aws.String("ENABLED"), Type: aws.String("MANAGED"), } result, err := svc.CreateComputeEnvironment(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case batch.ErrCodeClientException: fmt.Println(batch.ErrCodeClientException, aerr.Error()) case batch.ErrCodeServerException: fmt.Println(batch.ErrCodeServerException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To create a managed EC2 Spot compute environment // // This example creates a managed compute environment with the M4 instance type that // is launched when the Spot bid price is at or below 20% of the On-Demand price for // the instance type. The compute environment is called M4Spot. func ExampleBatch_CreateComputeEnvironment_shared01() { svc := batch.New(session.New()) input := &batch.CreateComputeEnvironmentInput{ ComputeEnvironmentName: aws.String("M4Spot"), ComputeResources: &batch.ComputeResource{ BidPercentage: aws.Int64(20), DesiredvCpus: aws.Int64(4), Ec2KeyPair: aws.String("id_rsa"), InstanceRole: aws.String("ecsInstanceRole"), InstanceTypes: []*string{ aws.String("m4"), }, MaxvCpus: aws.Int64(128), MinvCpus: aws.Int64(0), SecurityGroupIds: []*string{ aws.String("sg-cf5093b2"), }, SpotIamFleetRole: aws.String("arn:aws:iam::012345678910:role/aws-ec2-spot-fleet-role"), Subnets: []*string{ aws.String("subnet-220c0e0a"), aws.String("subnet-1a95556d"), aws.String("subnet-978f6dce"), }, Tags: map[string]*string{ "Name": aws.String("Batch Instance - M4Spot"), }, Type: aws.String("SPOT"), }, ServiceRole: aws.String("arn:aws:iam::012345678910:role/AWSBatchServiceRole"), State: aws.String("ENABLED"), Type: aws.String("MANAGED"), } result, err := svc.CreateComputeEnvironment(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case batch.ErrCodeClientException: fmt.Println(batch.ErrCodeClientException, aerr.Error()) case batch.ErrCodeServerException: fmt.Println(batch.ErrCodeServerException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To create a job queue with a single compute environment // // This example creates a job queue called LowPriority that uses the M4Spot compute // environment. func ExampleBatch_CreateJobQueue_shared00() { svc := batch.New(session.New()) input := &batch.CreateJobQueueInput{ ComputeEnvironmentOrder: []*batch.ComputeEnvironmentOrder{ { ComputeEnvironment: aws.String("M4Spot"), Order: aws.Int64(1), }, }, JobQueueName: aws.String("LowPriority"), Priority: aws.Int64(1), State: aws.String("ENABLED"), } result, err := svc.CreateJobQueue(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case batch.ErrCodeClientException: fmt.Println(batch.ErrCodeClientException, aerr.Error()) case batch.ErrCodeServerException: fmt.Println(batch.ErrCodeServerException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To create a job queue with multiple compute environments // // This example creates a job queue called HighPriority that uses the C4OnDemand compute // environment with an order of 1 and the M4Spot compute environment with an order of // 2. func ExampleBatch_CreateJobQueue_shared01() { svc := batch.New(session.New()) input := &batch.CreateJobQueueInput{ ComputeEnvironmentOrder: []*batch.ComputeEnvironmentOrder{ { ComputeEnvironment: aws.String("C4OnDemand"), Order: aws.Int64(1), }, { ComputeEnvironment: aws.String("M4Spot"), Order: aws.Int64(2), }, }, JobQueueName: aws.String("HighPriority"), Priority: aws.Int64(10), State: aws.String("ENABLED"), } result, err := svc.CreateJobQueue(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case batch.ErrCodeClientException: fmt.Println(batch.ErrCodeClientException, aerr.Error()) case batch.ErrCodeServerException: fmt.Println(batch.ErrCodeServerException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To delete a compute environment // // This example deletes the P2OnDemand compute environment. func ExampleBatch_DeleteComputeEnvironment_shared00() { svc := batch.New(session.New()) input := &batch.DeleteComputeEnvironmentInput{ ComputeEnvironment: aws.String("P2OnDemand"), } result, err := svc.DeleteComputeEnvironment(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case batch.ErrCodeClientException: fmt.Println(batch.ErrCodeClientException, aerr.Error()) case batch.ErrCodeServerException: fmt.Println(batch.ErrCodeServerException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To delete a job queue // // This example deletes the GPGPU job queue. func ExampleBatch_DeleteJobQueue_shared00() { svc := batch.New(session.New()) input := &batch.DeleteJobQueueInput{ JobQueue: aws.String("GPGPU"), } result, err := svc.DeleteJobQueue(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case batch.ErrCodeClientException: fmt.Println(batch.ErrCodeClientException, aerr.Error()) case batch.ErrCodeServerException: fmt.Println(batch.ErrCodeServerException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To deregister a job definition // // This example deregisters a job definition called sleep10. func ExampleBatch_DeregisterJobDefinition_shared00() { svc := batch.New(session.New()) input := &batch.DeregisterJobDefinitionInput{ JobDefinition: aws.String("sleep10"), } result, err := svc.DeregisterJobDefinition(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case batch.ErrCodeClientException: fmt.Println(batch.ErrCodeClientException, aerr.Error()) case batch.ErrCodeServerException: fmt.Println(batch.ErrCodeServerException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To describe a compute environment // // This example describes the P2OnDemand compute environment. func ExampleBatch_DescribeComputeEnvironments_shared00() { svc := batch.New(session.New()) input := &batch.DescribeComputeEnvironmentsInput{ ComputeEnvironments: []*string{ aws.String("P2OnDemand"), }, } result, err := svc.DescribeComputeEnvironments(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case batch.ErrCodeClientException: fmt.Println(batch.ErrCodeClientException, aerr.Error()) case batch.ErrCodeServerException: fmt.Println(batch.ErrCodeServerException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To describe active job definitions // // This example describes all of your active job definitions. func ExampleBatch_DescribeJobDefinitions_shared00() { svc := batch.New(session.New()) input := &batch.DescribeJobDefinitionsInput{ Status: aws.String("ACTIVE"), } result, err := svc.DescribeJobDefinitions(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case batch.ErrCodeClientException: fmt.Println(batch.ErrCodeClientException, aerr.Error()) case batch.ErrCodeServerException: fmt.Println(batch.ErrCodeServerException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To describe a job queue // // This example describes the HighPriority job queue. func ExampleBatch_DescribeJobQueues_shared00() { svc := batch.New(session.New()) input := &batch.DescribeJobQueuesInput{ JobQueues: []*string{ aws.String("HighPriority"), }, } result, err := svc.DescribeJobQueues(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case batch.ErrCodeClientException: fmt.Println(batch.ErrCodeClientException, aerr.Error()) case batch.ErrCodeServerException: fmt.Println(batch.ErrCodeServerException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To describe a specific job // // This example describes a job with the specified job ID. func ExampleBatch_DescribeJobs_shared00() { svc := batch.New(session.New()) input := &batch.DescribeJobsInput{ Jobs: []*string{ aws.String("24fa2d7a-64c4-49d2-8b47-f8da4fbde8e9"), }, } result, err := svc.DescribeJobs(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case batch.ErrCodeClientException: fmt.Println(batch.ErrCodeClientException, aerr.Error()) case batch.ErrCodeServerException: fmt.Println(batch.ErrCodeServerException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To list running jobs // // This example lists the running jobs in the HighPriority job queue. func ExampleBatch_ListJobs_shared00() { svc := batch.New(session.New()) input := &batch.ListJobsInput{ JobQueue: aws.String("HighPriority"), } result, err := svc.ListJobs(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case batch.ErrCodeClientException: fmt.Println(batch.ErrCodeClientException, aerr.Error()) case batch.ErrCodeServerException: fmt.Println(batch.ErrCodeServerException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To list submitted jobs // // This example lists jobs in the HighPriority job queue that are in the SUBMITTED job // status. func ExampleBatch_ListJobs_shared01() { svc := batch.New(session.New()) input := &batch.ListJobsInput{ JobQueue: aws.String("HighPriority"), JobStatus: aws.String("SUBMITTED"), } result, err := svc.ListJobs(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case batch.ErrCodeClientException: fmt.Println(batch.ErrCodeClientException, aerr.Error()) case batch.ErrCodeServerException: fmt.Println(batch.ErrCodeServerException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // ListTagsForResource Example // // This demonstrates calling the ListTagsForResource action. func ExampleBatch_ListTagsForResource_shared00() { svc := batch.New(session.New()) input := &batch.ListTagsForResourceInput{ ResourceArn: aws.String("arn:aws:batch:us-east-1:123456789012:job-definition/sleep30:1"), } result, err := svc.ListTagsForResource(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case batch.ErrCodeClientException: fmt.Println(batch.ErrCodeClientException, aerr.Error()) case batch.ErrCodeServerException: fmt.Println(batch.ErrCodeServerException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To register a job definition // // This example registers a job definition for a simple container job. func ExampleBatch_RegisterJobDefinition_shared00() { svc := batch.New(session.New()) input := &batch.RegisterJobDefinitionInput{ ContainerProperties: &batch.ContainerProperties{ Command: []*string{ aws.String("sleep"), aws.String("10"), }, Image: aws.String("busybox"), Memory: aws.Int64(128), Vcpus: aws.Int64(1), }, JobDefinitionName: aws.String("sleep10"), Type: aws.String("container"), } result, err := svc.RegisterJobDefinition(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case batch.ErrCodeClientException: fmt.Println(batch.ErrCodeClientException, aerr.Error()) case batch.ErrCodeServerException: fmt.Println(batch.ErrCodeServerException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // RegisterJobDefinition with tags // // This demonstrates calling the RegisterJobDefinition action, including tags. func ExampleBatch_RegisterJobDefinition_shared01() { svc := batch.New(session.New()) input := &batch.RegisterJobDefinitionInput{ ContainerProperties: &batch.ContainerProperties{ Command: []*string{ aws.String("sleep"), aws.String("30"), }, Image: aws.String("busybox"), Memory: aws.Int64(128), Vcpus: aws.Int64(1), }, JobDefinitionName: aws.String("sleep30"), Tags: map[string]*string{ "Department": aws.String("Engineering"), "User": aws.String("JaneDoe"), }, Type: aws.String("container"), } result, err := svc.RegisterJobDefinition(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case batch.ErrCodeClientException: fmt.Println(batch.ErrCodeClientException, aerr.Error()) case batch.ErrCodeServerException: fmt.Println(batch.ErrCodeServerException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To submit a job to a queue // // This example submits a simple container job called example to the HighPriority job // queue. func ExampleBatch_SubmitJob_shared00() { svc := batch.New(session.New()) input := &batch.SubmitJobInput{ JobDefinition: aws.String("sleep60"), JobName: aws.String("example"), JobQueue: aws.String("HighPriority"), } result, err := svc.SubmitJob(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case batch.ErrCodeClientException: fmt.Println(batch.ErrCodeClientException, aerr.Error()) case batch.ErrCodeServerException: fmt.Println(batch.ErrCodeServerException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // TagResource Example // // This demonstrates calling the TagResource action. func ExampleBatch_TagResource_shared00() { svc := batch.New(session.New()) input := &batch.TagResourceInput{ ResourceArn: aws.String("arn:aws:batch:us-east-1:123456789012:job-definition/sleep30:1"), Tags: map[string]*string{ "Stage": aws.String("Alpha"), }, } result, err := svc.TagResource(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case batch.ErrCodeClientException: fmt.Println(batch.ErrCodeClientException, aerr.Error()) case batch.ErrCodeServerException: fmt.Println(batch.ErrCodeServerException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To terminate a job // // This example terminates a job with the specified job ID. func ExampleBatch_TerminateJob_shared00() { svc := batch.New(session.New()) input := &batch.TerminateJobInput{ JobId: aws.String("61e743ed-35e4-48da-b2de-5c8333821c84"), Reason: aws.String("Terminating job."), } result, err := svc.TerminateJob(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case batch.ErrCodeClientException: fmt.Println(batch.ErrCodeClientException, aerr.Error()) case batch.ErrCodeServerException: fmt.Println(batch.ErrCodeServerException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // UntagResource Example // // This demonstrates calling the UntagResource action. func ExampleBatch_UntagResource_shared00() { svc := batch.New(session.New()) input := &batch.UntagResourceInput{ ResourceArn: aws.String("arn:aws:batch:us-east-1:123456789012:job-definition/sleep30:1"), TagKeys: []*string{ aws.String("Stage"), }, } result, err := svc.UntagResource(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case batch.ErrCodeClientException: fmt.Println(batch.ErrCodeClientException, aerr.Error()) case batch.ErrCodeServerException: fmt.Println(batch.ErrCodeServerException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To update a compute environment // // This example disables the P2OnDemand compute environment so it can be deleted. func ExampleBatch_UpdateComputeEnvironment_shared00() { svc := batch.New(session.New()) input := &batch.UpdateComputeEnvironmentInput{ ComputeEnvironment: aws.String("P2OnDemand"), State: aws.String("DISABLED"), } result, err := svc.UpdateComputeEnvironment(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case batch.ErrCodeClientException: fmt.Println(batch.ErrCodeClientException, aerr.Error()) case batch.ErrCodeServerException: fmt.Println(batch.ErrCodeServerException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) } // To update a job queue // // This example disables a job queue so that it can be deleted. func ExampleBatch_UpdateJobQueue_shared00() { svc := batch.New(session.New()) input := &batch.UpdateJobQueueInput{ JobQueue: aws.String("GPGPU"), State: aws.String("DISABLED"), } result, err := svc.UpdateJobQueue(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case batch.ErrCodeClientException: fmt.Println(batch.ErrCodeClientException, aerr.Error()) case batch.ErrCodeServerException: fmt.Println(batch.ErrCodeServerException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) } return } fmt.Println(result) }
867
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // +build go1.15,integration package batch_test import ( "context" "testing" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/awstesting/integration" "github.com/aws/aws-sdk-go/service/batch" ) var _ aws.Config var _ awserr.Error var _ request.Request func TestInteg_00_DescribeComputeEnvironments(t *testing.T) { ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) defer cancelFn() sess := integration.SessionWithDefaultRegion("us-west-2") svc := batch.New(sess) params := &batch.DescribeComputeEnvironmentsInput{} _, err := svc.DescribeComputeEnvironmentsWithContext(ctx, params, func(r *request.Request) { r.Handlers.Validate.RemoveByName("core.ValidateParametersHandler") }) if err != nil { t.Errorf("expect no error, got %v", err) } }
37
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package batch 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" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) // Batch provides the API operation methods for making requests to // AWS Batch. See this package's package overview docs // for details on the service. // // Batch methods are safe to use concurrently. It is not safe to // modify mutate any of the struct's properties though. type Batch 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 = "batch" // Name of service. EndpointsID = ServiceName // ID to lookup a service endpoint with. ServiceID = "Batch" // ServiceID is a unique identifier of a specific service. ) // New creates a new instance of the Batch 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: // mySession := session.Must(session.NewSession()) // // // Create a Batch client from just a session. // svc := batch.New(mySession) // // // Create a Batch client with additional configuration // svc := batch.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Batch { c := p.ClientConfig(EndpointsID, cfgs...) return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *Batch { svc := &Batch{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, ServiceID: ServiceID, SigningName: signingName, SigningRegion: signingRegion, PartitionID: partitionID, Endpoint: endpoint, APIVersion: "2016-08-10", }, 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( protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), ) // Run custom client initialization if present if initClient != nil { initClient(svc.Client) } return svc } // newRequest creates a new request for a Batch operation and runs any // custom request initialization. func (c *Batch) 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 }
102
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package batchiface provides an interface to enable mocking the AWS Batch 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 batchiface import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/service/batch" ) // BatchAPI provides an interface to enable mocking the // batch.Batch 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 Batch. // func myFunc(svc batchiface.BatchAPI) bool { // // Make svc.CancelJob request // } // // func main() { // sess := session.New() // svc := batch.New(sess) // // myFunc(svc) // } // // In your _test.go file: // // // Define a mock struct to be used in your unit tests of myFunc. // type mockBatchClient struct { // batchiface.BatchAPI // } // func (m *mockBatchClient) CancelJob(input *batch.CancelJobInput) (*batch.CancelJobOutput, error) { // // mock response/functionality // } // // func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockBatchClient{} // // 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 BatchAPI interface { CancelJob(*batch.CancelJobInput) (*batch.CancelJobOutput, error) CancelJobWithContext(aws.Context, *batch.CancelJobInput, ...request.Option) (*batch.CancelJobOutput, error) CancelJobRequest(*batch.CancelJobInput) (*request.Request, *batch.CancelJobOutput) CreateComputeEnvironment(*batch.CreateComputeEnvironmentInput) (*batch.CreateComputeEnvironmentOutput, error) CreateComputeEnvironmentWithContext(aws.Context, *batch.CreateComputeEnvironmentInput, ...request.Option) (*batch.CreateComputeEnvironmentOutput, error) CreateComputeEnvironmentRequest(*batch.CreateComputeEnvironmentInput) (*request.Request, *batch.CreateComputeEnvironmentOutput) CreateJobQueue(*batch.CreateJobQueueInput) (*batch.CreateJobQueueOutput, error) CreateJobQueueWithContext(aws.Context, *batch.CreateJobQueueInput, ...request.Option) (*batch.CreateJobQueueOutput, error) CreateJobQueueRequest(*batch.CreateJobQueueInput) (*request.Request, *batch.CreateJobQueueOutput) DeleteComputeEnvironment(*batch.DeleteComputeEnvironmentInput) (*batch.DeleteComputeEnvironmentOutput, error) DeleteComputeEnvironmentWithContext(aws.Context, *batch.DeleteComputeEnvironmentInput, ...request.Option) (*batch.DeleteComputeEnvironmentOutput, error) DeleteComputeEnvironmentRequest(*batch.DeleteComputeEnvironmentInput) (*request.Request, *batch.DeleteComputeEnvironmentOutput) DeleteJobQueue(*batch.DeleteJobQueueInput) (*batch.DeleteJobQueueOutput, error) DeleteJobQueueWithContext(aws.Context, *batch.DeleteJobQueueInput, ...request.Option) (*batch.DeleteJobQueueOutput, error) DeleteJobQueueRequest(*batch.DeleteJobQueueInput) (*request.Request, *batch.DeleteJobQueueOutput) DeregisterJobDefinition(*batch.DeregisterJobDefinitionInput) (*batch.DeregisterJobDefinitionOutput, error) DeregisterJobDefinitionWithContext(aws.Context, *batch.DeregisterJobDefinitionInput, ...request.Option) (*batch.DeregisterJobDefinitionOutput, error) DeregisterJobDefinitionRequest(*batch.DeregisterJobDefinitionInput) (*request.Request, *batch.DeregisterJobDefinitionOutput) DescribeComputeEnvironments(*batch.DescribeComputeEnvironmentsInput) (*batch.DescribeComputeEnvironmentsOutput, error) DescribeComputeEnvironmentsWithContext(aws.Context, *batch.DescribeComputeEnvironmentsInput, ...request.Option) (*batch.DescribeComputeEnvironmentsOutput, error) DescribeComputeEnvironmentsRequest(*batch.DescribeComputeEnvironmentsInput) (*request.Request, *batch.DescribeComputeEnvironmentsOutput) DescribeComputeEnvironmentsPages(*batch.DescribeComputeEnvironmentsInput, func(*batch.DescribeComputeEnvironmentsOutput, bool) bool) error DescribeComputeEnvironmentsPagesWithContext(aws.Context, *batch.DescribeComputeEnvironmentsInput, func(*batch.DescribeComputeEnvironmentsOutput, bool) bool, ...request.Option) error DescribeJobDefinitions(*batch.DescribeJobDefinitionsInput) (*batch.DescribeJobDefinitionsOutput, error) DescribeJobDefinitionsWithContext(aws.Context, *batch.DescribeJobDefinitionsInput, ...request.Option) (*batch.DescribeJobDefinitionsOutput, error) DescribeJobDefinitionsRequest(*batch.DescribeJobDefinitionsInput) (*request.Request, *batch.DescribeJobDefinitionsOutput) DescribeJobDefinitionsPages(*batch.DescribeJobDefinitionsInput, func(*batch.DescribeJobDefinitionsOutput, bool) bool) error DescribeJobDefinitionsPagesWithContext(aws.Context, *batch.DescribeJobDefinitionsInput, func(*batch.DescribeJobDefinitionsOutput, bool) bool, ...request.Option) error DescribeJobQueues(*batch.DescribeJobQueuesInput) (*batch.DescribeJobQueuesOutput, error) DescribeJobQueuesWithContext(aws.Context, *batch.DescribeJobQueuesInput, ...request.Option) (*batch.DescribeJobQueuesOutput, error) DescribeJobQueuesRequest(*batch.DescribeJobQueuesInput) (*request.Request, *batch.DescribeJobQueuesOutput) DescribeJobQueuesPages(*batch.DescribeJobQueuesInput, func(*batch.DescribeJobQueuesOutput, bool) bool) error DescribeJobQueuesPagesWithContext(aws.Context, *batch.DescribeJobQueuesInput, func(*batch.DescribeJobQueuesOutput, bool) bool, ...request.Option) error DescribeJobs(*batch.DescribeJobsInput) (*batch.DescribeJobsOutput, error) DescribeJobsWithContext(aws.Context, *batch.DescribeJobsInput, ...request.Option) (*batch.DescribeJobsOutput, error) DescribeJobsRequest(*batch.DescribeJobsInput) (*request.Request, *batch.DescribeJobsOutput) ListJobs(*batch.ListJobsInput) (*batch.ListJobsOutput, error) ListJobsWithContext(aws.Context, *batch.ListJobsInput, ...request.Option) (*batch.ListJobsOutput, error) ListJobsRequest(*batch.ListJobsInput) (*request.Request, *batch.ListJobsOutput) ListJobsPages(*batch.ListJobsInput, func(*batch.ListJobsOutput, bool) bool) error ListJobsPagesWithContext(aws.Context, *batch.ListJobsInput, func(*batch.ListJobsOutput, bool) bool, ...request.Option) error ListTagsForResource(*batch.ListTagsForResourceInput) (*batch.ListTagsForResourceOutput, error) ListTagsForResourceWithContext(aws.Context, *batch.ListTagsForResourceInput, ...request.Option) (*batch.ListTagsForResourceOutput, error) ListTagsForResourceRequest(*batch.ListTagsForResourceInput) (*request.Request, *batch.ListTagsForResourceOutput) RegisterJobDefinition(*batch.RegisterJobDefinitionInput) (*batch.RegisterJobDefinitionOutput, error) RegisterJobDefinitionWithContext(aws.Context, *batch.RegisterJobDefinitionInput, ...request.Option) (*batch.RegisterJobDefinitionOutput, error) RegisterJobDefinitionRequest(*batch.RegisterJobDefinitionInput) (*request.Request, *batch.RegisterJobDefinitionOutput) SubmitJob(*batch.SubmitJobInput) (*batch.SubmitJobOutput, error) SubmitJobWithContext(aws.Context, *batch.SubmitJobInput, ...request.Option) (*batch.SubmitJobOutput, error) SubmitJobRequest(*batch.SubmitJobInput) (*request.Request, *batch.SubmitJobOutput) TagResource(*batch.TagResourceInput) (*batch.TagResourceOutput, error) TagResourceWithContext(aws.Context, *batch.TagResourceInput, ...request.Option) (*batch.TagResourceOutput, error) TagResourceRequest(*batch.TagResourceInput) (*request.Request, *batch.TagResourceOutput) TerminateJob(*batch.TerminateJobInput) (*batch.TerminateJobOutput, error) TerminateJobWithContext(aws.Context, *batch.TerminateJobInput, ...request.Option) (*batch.TerminateJobOutput, error) TerminateJobRequest(*batch.TerminateJobInput) (*request.Request, *batch.TerminateJobOutput) UntagResource(*batch.UntagResourceInput) (*batch.UntagResourceOutput, error) UntagResourceWithContext(aws.Context, *batch.UntagResourceInput, ...request.Option) (*batch.UntagResourceOutput, error) UntagResourceRequest(*batch.UntagResourceInput) (*request.Request, *batch.UntagResourceOutput) UpdateComputeEnvironment(*batch.UpdateComputeEnvironmentInput) (*batch.UpdateComputeEnvironmentOutput, error) UpdateComputeEnvironmentWithContext(aws.Context, *batch.UpdateComputeEnvironmentInput, ...request.Option) (*batch.UpdateComputeEnvironmentOutput, error) UpdateComputeEnvironmentRequest(*batch.UpdateComputeEnvironmentInput) (*request.Request, *batch.UpdateComputeEnvironmentOutput) UpdateJobQueue(*batch.UpdateJobQueueInput) (*batch.UpdateJobQueueOutput, error) UpdateJobQueueWithContext(aws.Context, *batch.UpdateJobQueueInput, ...request.Option) (*batch.UpdateJobQueueOutput, error) UpdateJobQueueRequest(*batch.UpdateJobQueueInput) (*request.Request, *batch.UpdateJobQueueOutput) } var _ BatchAPI = (*batch.Batch)(nil)
153
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package braket import ( "fmt" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) const opCancelQuantumTask = "CancelQuantumTask" // CancelQuantumTaskRequest generates a "aws/request.Request" representing the // client's request for the CancelQuantumTask operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CancelQuantumTask for more information on using the CancelQuantumTask // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CancelQuantumTaskRequest method. // req, resp := client.CancelQuantumTaskRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CancelQuantumTask func (c *Braket) CancelQuantumTaskRequest(input *CancelQuantumTaskInput) (req *request.Request, output *CancelQuantumTaskOutput) { op := &request.Operation{ Name: opCancelQuantumTask, HTTPMethod: "PUT", HTTPPath: "/quantum-task/{quantumTaskArn}/cancel", } if input == nil { input = &CancelQuantumTaskInput{} } output = &CancelQuantumTaskOutput{} req = c.newRequest(op, input, output) return } // CancelQuantumTask API operation for Braket. // // Cancels the specified task. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Braket's // API operation CancelQuantumTask for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The specified resource was not found. // // * AccessDeniedException // You do not have sufficient access to perform this action. // // * ConflictException // An error occurred due to a conflict. // // * ThrottlingException // The throttling rate limit is met. // // * InternalServiceException // The request processing has failed because of an unknown error, exception, // or failure. // // * ValidationException // The input fails to satisfy the constraints specified by an AWS service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CancelQuantumTask func (c *Braket) CancelQuantumTask(input *CancelQuantumTaskInput) (*CancelQuantumTaskOutput, error) { req, out := c.CancelQuantumTaskRequest(input) return out, req.Send() } // CancelQuantumTaskWithContext is the same as CancelQuantumTask with the addition of // the ability to pass a context and additional request options. // // See CancelQuantumTask for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Braket) CancelQuantumTaskWithContext(ctx aws.Context, input *CancelQuantumTaskInput, opts ...request.Option) (*CancelQuantumTaskOutput, error) { req, out := c.CancelQuantumTaskRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateQuantumTask = "CreateQuantumTask" // CreateQuantumTaskRequest generates a "aws/request.Request" representing the // client's request for the CreateQuantumTask operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateQuantumTask for more information on using the CreateQuantumTask // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateQuantumTaskRequest method. // req, resp := client.CreateQuantumTaskRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CreateQuantumTask func (c *Braket) CreateQuantumTaskRequest(input *CreateQuantumTaskInput) (req *request.Request, output *CreateQuantumTaskOutput) { op := &request.Operation{ Name: opCreateQuantumTask, HTTPMethod: "POST", HTTPPath: "/quantum-task", } if input == nil { input = &CreateQuantumTaskInput{} } output = &CreateQuantumTaskOutput{} req = c.newRequest(op, input, output) return } // CreateQuantumTask API operation for Braket. // // Creates a quantum task. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Braket's // API operation CreateQuantumTask for usage and error information. // // Returned Error Types: // * AccessDeniedException // You do not have sufficient access to perform this action. // // * ThrottlingException // The throttling rate limit is met. // // * DeviceOfflineException // The specified device is currently offline. // // * InternalServiceException // The request processing has failed because of an unknown error, exception, // or failure. // // * ServiceQuotaExceededException // The request failed because a service quota is exceeded. // // * ValidationException // The input fails to satisfy the constraints specified by an AWS service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CreateQuantumTask func (c *Braket) CreateQuantumTask(input *CreateQuantumTaskInput) (*CreateQuantumTaskOutput, error) { req, out := c.CreateQuantumTaskRequest(input) return out, req.Send() } // CreateQuantumTaskWithContext is the same as CreateQuantumTask with the addition of // the ability to pass a context and additional request options. // // See CreateQuantumTask for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Braket) CreateQuantumTaskWithContext(ctx aws.Context, input *CreateQuantumTaskInput, opts ...request.Option) (*CreateQuantumTaskOutput, error) { req, out := c.CreateQuantumTaskRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetDevice = "GetDevice" // GetDeviceRequest generates a "aws/request.Request" representing the // client's request for the GetDevice operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetDevice for more information on using the GetDevice // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetDeviceRequest method. // req, resp := client.GetDeviceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetDevice func (c *Braket) GetDeviceRequest(input *GetDeviceInput) (req *request.Request, output *GetDeviceOutput) { op := &request.Operation{ Name: opGetDevice, HTTPMethod: "GET", HTTPPath: "/device/{deviceArn}", } if input == nil { input = &GetDeviceInput{} } output = &GetDeviceOutput{} req = c.newRequest(op, input, output) return } // GetDevice API operation for Braket. // // Retrieves the devices available in Amazon Braket. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Braket's // API operation GetDevice for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The specified resource was not found. // // * AccessDeniedException // You do not have sufficient access to perform this action. // // * ThrottlingException // The throttling rate limit is met. // // * DeviceOfflineException // The specified device is currently offline. // // * DeviceRetiredException // The specified device has been retired. // // * InternalServiceException // The request processing has failed because of an unknown error, exception, // or failure. // // * ValidationException // The input fails to satisfy the constraints specified by an AWS service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetDevice func (c *Braket) GetDevice(input *GetDeviceInput) (*GetDeviceOutput, error) { req, out := c.GetDeviceRequest(input) return out, req.Send() } // GetDeviceWithContext is the same as GetDevice with the addition of // the ability to pass a context and additional request options. // // See GetDevice for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Braket) GetDeviceWithContext(ctx aws.Context, input *GetDeviceInput, opts ...request.Option) (*GetDeviceOutput, error) { req, out := c.GetDeviceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetQuantumTask = "GetQuantumTask" // GetQuantumTaskRequest generates a "aws/request.Request" representing the // client's request for the GetQuantumTask operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetQuantumTask for more information on using the GetQuantumTask // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetQuantumTaskRequest method. // req, resp := client.GetQuantumTaskRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetQuantumTask func (c *Braket) GetQuantumTaskRequest(input *GetQuantumTaskInput) (req *request.Request, output *GetQuantumTaskOutput) { op := &request.Operation{ Name: opGetQuantumTask, HTTPMethod: "GET", HTTPPath: "/quantum-task/{quantumTaskArn}", } if input == nil { input = &GetQuantumTaskInput{} } output = &GetQuantumTaskOutput{} req = c.newRequest(op, input, output) return } // GetQuantumTask API operation for Braket. // // Retrieves the specified quantum task. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Braket's // API operation GetQuantumTask for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The specified resource was not found. // // * AccessDeniedException // You do not have sufficient access to perform this action. // // * ThrottlingException // The throttling rate limit is met. // // * InternalServiceException // The request processing has failed because of an unknown error, exception, // or failure. // // * ValidationException // The input fails to satisfy the constraints specified by an AWS service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetQuantumTask func (c *Braket) GetQuantumTask(input *GetQuantumTaskInput) (*GetQuantumTaskOutput, error) { req, out := c.GetQuantumTaskRequest(input) return out, req.Send() } // GetQuantumTaskWithContext is the same as GetQuantumTask with the addition of // the ability to pass a context and additional request options. // // See GetQuantumTask for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Braket) GetQuantumTaskWithContext(ctx aws.Context, input *GetQuantumTaskInput, opts ...request.Option) (*GetQuantumTaskOutput, error) { req, out := c.GetQuantumTaskRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opListTagsForResource = "ListTagsForResource" // ListTagsForResourceRequest generates a "aws/request.Request" representing the // client's request for the ListTagsForResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListTagsForResource for more information on using the ListTagsForResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListTagsForResourceRequest method. // req, resp := client.ListTagsForResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/ListTagsForResource func (c *Braket) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { op := &request.Operation{ Name: opListTagsForResource, HTTPMethod: "GET", HTTPPath: "/tags/{resourceArn}", } if input == nil { input = &ListTagsForResourceInput{} } output = &ListTagsForResourceOutput{} req = c.newRequest(op, input, output) return } // ListTagsForResource API operation for Braket. // // Shows the tags associated with this resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Braket's // API operation ListTagsForResource for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The specified resource was not found. // // * InternalServiceException // The request processing has failed because of an unknown error, exception, // or failure. // // * ValidationException // The input fails to satisfy the constraints specified by an AWS service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/ListTagsForResource func (c *Braket) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) return out, req.Send() } // ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of // the ability to pass a context and additional request options. // // See ListTagsForResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Braket) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opSearchDevices = "SearchDevices" // SearchDevicesRequest generates a "aws/request.Request" representing the // client's request for the SearchDevices operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See SearchDevices for more information on using the SearchDevices // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the SearchDevicesRequest method. // req, resp := client.SearchDevicesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchDevices func (c *Braket) SearchDevicesRequest(input *SearchDevicesInput) (req *request.Request, output *SearchDevicesOutput) { op := &request.Operation{ Name: opSearchDevices, HTTPMethod: "POST", HTTPPath: "/devices", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, LimitToken: "maxResults", TruncationToken: "", }, } if input == nil { input = &SearchDevicesInput{} } output = &SearchDevicesOutput{} req = c.newRequest(op, input, output) return } // SearchDevices API operation for Braket. // // Searches for devices using the specified filters. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Braket's // API operation SearchDevices for usage and error information. // // Returned Error Types: // * AccessDeniedException // You do not have sufficient access to perform this action. // // * ThrottlingException // The throttling rate limit is met. // // * InternalServiceException // The request processing has failed because of an unknown error, exception, // or failure. // // * ValidationException // The input fails to satisfy the constraints specified by an AWS service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchDevices func (c *Braket) SearchDevices(input *SearchDevicesInput) (*SearchDevicesOutput, error) { req, out := c.SearchDevicesRequest(input) return out, req.Send() } // SearchDevicesWithContext is the same as SearchDevices with the addition of // the ability to pass a context and additional request options. // // See SearchDevices for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Braket) SearchDevicesWithContext(ctx aws.Context, input *SearchDevicesInput, opts ...request.Option) (*SearchDevicesOutput, error) { req, out := c.SearchDevicesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // SearchDevicesPages iterates over the pages of a SearchDevices operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See SearchDevices method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a SearchDevices operation. // pageNum := 0 // err := client.SearchDevicesPages(params, // func(page *braket.SearchDevicesOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *Braket) SearchDevicesPages(input *SearchDevicesInput, fn func(*SearchDevicesOutput, bool) bool) error { return c.SearchDevicesPagesWithContext(aws.BackgroundContext(), input, fn) } // SearchDevicesPagesWithContext same as SearchDevicesPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Braket) SearchDevicesPagesWithContext(ctx aws.Context, input *SearchDevicesInput, fn func(*SearchDevicesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *SearchDevicesInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.SearchDevicesRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*SearchDevicesOutput), !p.HasNextPage()) { break } } return p.Err() } const opSearchQuantumTasks = "SearchQuantumTasks" // SearchQuantumTasksRequest generates a "aws/request.Request" representing the // client's request for the SearchQuantumTasks operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See SearchQuantumTasks for more information on using the SearchQuantumTasks // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the SearchQuantumTasksRequest method. // req, resp := client.SearchQuantumTasksRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchQuantumTasks func (c *Braket) SearchQuantumTasksRequest(input *SearchQuantumTasksInput) (req *request.Request, output *SearchQuantumTasksOutput) { op := &request.Operation{ Name: opSearchQuantumTasks, HTTPMethod: "POST", HTTPPath: "/quantum-tasks", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, LimitToken: "maxResults", TruncationToken: "", }, } if input == nil { input = &SearchQuantumTasksInput{} } output = &SearchQuantumTasksOutput{} req = c.newRequest(op, input, output) return } // SearchQuantumTasks API operation for Braket. // // Searches for tasks that match the specified filter values. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Braket's // API operation SearchQuantumTasks for usage and error information. // // Returned Error Types: // * AccessDeniedException // You do not have sufficient access to perform this action. // // * ThrottlingException // The throttling rate limit is met. // // * InternalServiceException // The request processing has failed because of an unknown error, exception, // or failure. // // * ValidationException // The input fails to satisfy the constraints specified by an AWS service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchQuantumTasks func (c *Braket) SearchQuantumTasks(input *SearchQuantumTasksInput) (*SearchQuantumTasksOutput, error) { req, out := c.SearchQuantumTasksRequest(input) return out, req.Send() } // SearchQuantumTasksWithContext is the same as SearchQuantumTasks with the addition of // the ability to pass a context and additional request options. // // See SearchQuantumTasks for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Braket) SearchQuantumTasksWithContext(ctx aws.Context, input *SearchQuantumTasksInput, opts ...request.Option) (*SearchQuantumTasksOutput, error) { req, out := c.SearchQuantumTasksRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // SearchQuantumTasksPages iterates over the pages of a SearchQuantumTasks operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See SearchQuantumTasks method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a SearchQuantumTasks operation. // pageNum := 0 // err := client.SearchQuantumTasksPages(params, // func(page *braket.SearchQuantumTasksOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *Braket) SearchQuantumTasksPages(input *SearchQuantumTasksInput, fn func(*SearchQuantumTasksOutput, bool) bool) error { return c.SearchQuantumTasksPagesWithContext(aws.BackgroundContext(), input, fn) } // SearchQuantumTasksPagesWithContext same as SearchQuantumTasksPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Braket) SearchQuantumTasksPagesWithContext(ctx aws.Context, input *SearchQuantumTasksInput, fn func(*SearchQuantumTasksOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *SearchQuantumTasksInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.SearchQuantumTasksRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*SearchQuantumTasksOutput), !p.HasNextPage()) { break } } return p.Err() } const opTagResource = "TagResource" // TagResourceRequest generates a "aws/request.Request" representing the // client's request for the TagResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See TagResource for more information on using the TagResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the TagResourceRequest method. // req, resp := client.TagResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/TagResource func (c *Braket) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { op := &request.Operation{ Name: opTagResource, HTTPMethod: "POST", HTTPPath: "/tags/{resourceArn}", } if input == nil { input = &TagResourceInput{} } output = &TagResourceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // TagResource API operation for Braket. // // Add a tag to the specified resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Braket's // API operation TagResource for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The specified resource was not found. // // * InternalServiceException // The request processing has failed because of an unknown error, exception, // or failure. // // * ValidationException // The input fails to satisfy the constraints specified by an AWS service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/TagResource func (c *Braket) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { req, out := c.TagResourceRequest(input) return out, req.Send() } // TagResourceWithContext is the same as TagResource with the addition of // the ability to pass a context and additional request options. // // See TagResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Braket) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { req, out := c.TagResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUntagResource = "UntagResource" // UntagResourceRequest generates a "aws/request.Request" representing the // client's request for the UntagResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UntagResource for more information on using the UntagResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UntagResourceRequest method. // req, resp := client.UntagResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/UntagResource func (c *Braket) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { op := &request.Operation{ Name: opUntagResource, HTTPMethod: "DELETE", HTTPPath: "/tags/{resourceArn}", } if input == nil { input = &UntagResourceInput{} } output = &UntagResourceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // UntagResource API operation for Braket. // // Remove tags from a resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Braket's // API operation UntagResource for usage and error information. // // Returned Error Types: // * ResourceNotFoundException // The specified resource was not found. // // * InternalServiceException // The request processing has failed because of an unknown error, exception, // or failure. // // * ValidationException // The input fails to satisfy the constraints specified by an AWS service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/UntagResource func (c *Braket) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { req, out := c.UntagResourceRequest(input) return out, req.Send() } // UntagResourceWithContext is the same as UntagResource with the addition of // the ability to pass a context and additional request options. // // See UntagResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Braket) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { req, out := c.UntagResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // You do not have sufficient access to perform this action. type AccessDeniedException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s AccessDeniedException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AccessDeniedException) GoString() string { return s.String() } func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { return &AccessDeniedException{ RespMetadata: v, } } // Code returns the exception type name. func (s *AccessDeniedException) Code() string { return "AccessDeniedException" } // Message returns the exception's message. func (s *AccessDeniedException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *AccessDeniedException) OrigErr() error { return nil } func (s *AccessDeniedException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *AccessDeniedException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *AccessDeniedException) RequestID() string { return s.RespMetadata.RequestID } type CancelQuantumTaskInput struct { _ struct{} `type:"structure"` // The client token associated with the request. ClientToken *string `locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"` // The ARN of the task to cancel. // // QuantumTaskArn is a required field QuantumTaskArn *string `location:"uri" locationName:"quantumTaskArn" min:"1" type:"string" required:"true"` } // String returns the string representation func (s CancelQuantumTaskInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CancelQuantumTaskInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CancelQuantumTaskInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CancelQuantumTaskInput"} if s.ClientToken != nil && len(*s.ClientToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1)) } if s.QuantumTaskArn == nil { invalidParams.Add(request.NewErrParamRequired("QuantumTaskArn")) } if s.QuantumTaskArn != nil && len(*s.QuantumTaskArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("QuantumTaskArn", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetClientToken sets the ClientToken field's value. func (s *CancelQuantumTaskInput) SetClientToken(v string) *CancelQuantumTaskInput { s.ClientToken = &v return s } // SetQuantumTaskArn sets the QuantumTaskArn field's value. func (s *CancelQuantumTaskInput) SetQuantumTaskArn(v string) *CancelQuantumTaskInput { s.QuantumTaskArn = &v return s } type CancelQuantumTaskOutput struct { _ struct{} `type:"structure"` // The status of the cancellation request. // // CancellationStatus is a required field CancellationStatus *string `locationName:"cancellationStatus" type:"string" required:"true" enum:"CancellationStatus"` // The ARN of the task. // // QuantumTaskArn is a required field QuantumTaskArn *string `locationName:"quantumTaskArn" min:"1" type:"string" required:"true"` } // String returns the string representation func (s CancelQuantumTaskOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CancelQuantumTaskOutput) GoString() string { return s.String() } // SetCancellationStatus sets the CancellationStatus field's value. func (s *CancelQuantumTaskOutput) SetCancellationStatus(v string) *CancelQuantumTaskOutput { s.CancellationStatus = &v return s } // SetQuantumTaskArn sets the QuantumTaskArn field's value. func (s *CancelQuantumTaskOutput) SetQuantumTaskArn(v string) *CancelQuantumTaskOutput { s.QuantumTaskArn = &v return s } // An error occurred due to a conflict. type ConflictException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s ConflictException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ConflictException) GoString() string { return s.String() } func newErrorConflictException(v protocol.ResponseMetadata) error { return &ConflictException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ConflictException) Code() string { return "ConflictException" } // Message returns the exception's message. func (s *ConflictException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ConflictException) OrigErr() error { return nil } func (s *ConflictException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ConflictException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ConflictException) RequestID() string { return s.RespMetadata.RequestID } type CreateQuantumTaskInput struct { _ struct{} `type:"structure"` // The action associated with the task. // // Action is a required field Action aws.JSONValue `locationName:"action" type:"jsonvalue" required:"true"` // The client token associated with the request. ClientToken *string `locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"` // The ARN of the device to run the task on. // // DeviceArn is a required field DeviceArn *string `locationName:"deviceArn" min:"1" type:"string" required:"true"` // The parameters for the device to run the task on. DeviceParameters aws.JSONValue `locationName:"deviceParameters" type:"jsonvalue"` // The S3 bucket to store task result files in. // // OutputS3Bucket is a required field OutputS3Bucket *string `locationName:"outputS3Bucket" min:"3" type:"string" required:"true"` // The key prefix for the location in the S3 bucket to store task results in. // // OutputS3KeyPrefix is a required field OutputS3KeyPrefix *string `locationName:"outputS3KeyPrefix" min:"1" type:"string" required:"true"` // The number of shots to use for the task. // // Shots is a required field Shots *int64 `locationName:"shots" type:"long" required:"true"` // Tags to be added to the quantum task you're creating. Tags map[string]*string `locationName:"tags" type:"map"` } // String returns the string representation func (s CreateQuantumTaskInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateQuantumTaskInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateQuantumTaskInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateQuantumTaskInput"} if s.Action == nil { invalidParams.Add(request.NewErrParamRequired("Action")) } if s.ClientToken != nil && len(*s.ClientToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1)) } if s.DeviceArn == nil { invalidParams.Add(request.NewErrParamRequired("DeviceArn")) } if s.DeviceArn != nil && len(*s.DeviceArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("DeviceArn", 1)) } if s.OutputS3Bucket == nil { invalidParams.Add(request.NewErrParamRequired("OutputS3Bucket")) } if s.OutputS3Bucket != nil && len(*s.OutputS3Bucket) < 3 { invalidParams.Add(request.NewErrParamMinLen("OutputS3Bucket", 3)) } if s.OutputS3KeyPrefix == nil { invalidParams.Add(request.NewErrParamRequired("OutputS3KeyPrefix")) } if s.OutputS3KeyPrefix != nil && len(*s.OutputS3KeyPrefix) < 1 { invalidParams.Add(request.NewErrParamMinLen("OutputS3KeyPrefix", 1)) } if s.Shots == nil { invalidParams.Add(request.NewErrParamRequired("Shots")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAction sets the Action field's value. func (s *CreateQuantumTaskInput) SetAction(v aws.JSONValue) *CreateQuantumTaskInput { s.Action = v return s } // SetClientToken sets the ClientToken field's value. func (s *CreateQuantumTaskInput) SetClientToken(v string) *CreateQuantumTaskInput { s.ClientToken = &v return s } // SetDeviceArn sets the DeviceArn field's value. func (s *CreateQuantumTaskInput) SetDeviceArn(v string) *CreateQuantumTaskInput { s.DeviceArn = &v return s } // SetDeviceParameters sets the DeviceParameters field's value. func (s *CreateQuantumTaskInput) SetDeviceParameters(v aws.JSONValue) *CreateQuantumTaskInput { s.DeviceParameters = v return s } // SetOutputS3Bucket sets the OutputS3Bucket field's value. func (s *CreateQuantumTaskInput) SetOutputS3Bucket(v string) *CreateQuantumTaskInput { s.OutputS3Bucket = &v return s } // SetOutputS3KeyPrefix sets the OutputS3KeyPrefix field's value. func (s *CreateQuantumTaskInput) SetOutputS3KeyPrefix(v string) *CreateQuantumTaskInput { s.OutputS3KeyPrefix = &v return s } // SetShots sets the Shots field's value. func (s *CreateQuantumTaskInput) SetShots(v int64) *CreateQuantumTaskInput { s.Shots = &v return s } // SetTags sets the Tags field's value. func (s *CreateQuantumTaskInput) SetTags(v map[string]*string) *CreateQuantumTaskInput { s.Tags = v return s } type CreateQuantumTaskOutput struct { _ struct{} `type:"structure"` // The ARN of the task created by the request. // // QuantumTaskArn is a required field QuantumTaskArn *string `locationName:"quantumTaskArn" min:"1" type:"string" required:"true"` } // String returns the string representation func (s CreateQuantumTaskOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateQuantumTaskOutput) GoString() string { return s.String() } // SetQuantumTaskArn sets the QuantumTaskArn field's value. func (s *CreateQuantumTaskOutput) SetQuantumTaskArn(v string) *CreateQuantumTaskOutput { s.QuantumTaskArn = &v return s } // The specified device is currently offline. type DeviceOfflineException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s DeviceOfflineException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeviceOfflineException) GoString() string { return s.String() } func newErrorDeviceOfflineException(v protocol.ResponseMetadata) error { return &DeviceOfflineException{ RespMetadata: v, } } // Code returns the exception type name. func (s *DeviceOfflineException) Code() string { return "DeviceOfflineException" } // Message returns the exception's message. func (s *DeviceOfflineException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *DeviceOfflineException) OrigErr() error { return nil } func (s *DeviceOfflineException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *DeviceOfflineException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *DeviceOfflineException) RequestID() string { return s.RespMetadata.RequestID } // The specified device has been retired. type DeviceRetiredException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s DeviceRetiredException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeviceRetiredException) GoString() string { return s.String() } func newErrorDeviceRetiredException(v protocol.ResponseMetadata) error { return &DeviceRetiredException{ RespMetadata: v, } } // Code returns the exception type name. func (s *DeviceRetiredException) Code() string { return "DeviceRetiredException" } // Message returns the exception's message. func (s *DeviceRetiredException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *DeviceRetiredException) OrigErr() error { return nil } func (s *DeviceRetiredException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *DeviceRetiredException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *DeviceRetiredException) RequestID() string { return s.RespMetadata.RequestID } // Includes information about the device. type DeviceSummary struct { _ struct{} `type:"structure"` // The ARN of the device. // // DeviceArn is a required field DeviceArn *string `locationName:"deviceArn" min:"1" type:"string" required:"true"` // The name of the device. // // DeviceName is a required field DeviceName *string `locationName:"deviceName" type:"string" required:"true"` // The status of the device. // // DeviceStatus is a required field DeviceStatus *string `locationName:"deviceStatus" type:"string" required:"true" enum:"DeviceStatus"` // The type of the device. // // DeviceType is a required field DeviceType *string `locationName:"deviceType" type:"string" required:"true" enum:"DeviceType"` // The provider of the device. // // ProviderName is a required field ProviderName *string `locationName:"providerName" type:"string" required:"true"` } // String returns the string representation func (s DeviceSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeviceSummary) GoString() string { return s.String() } // SetDeviceArn sets the DeviceArn field's value. func (s *DeviceSummary) SetDeviceArn(v string) *DeviceSummary { s.DeviceArn = &v return s } // SetDeviceName sets the DeviceName field's value. func (s *DeviceSummary) SetDeviceName(v string) *DeviceSummary { s.DeviceName = &v return s } // SetDeviceStatus sets the DeviceStatus field's value. func (s *DeviceSummary) SetDeviceStatus(v string) *DeviceSummary { s.DeviceStatus = &v return s } // SetDeviceType sets the DeviceType field's value. func (s *DeviceSummary) SetDeviceType(v string) *DeviceSummary { s.DeviceType = &v return s } // SetProviderName sets the ProviderName field's value. func (s *DeviceSummary) SetProviderName(v string) *DeviceSummary { s.ProviderName = &v return s } type GetDeviceInput struct { _ struct{} `type:"structure"` // The ARN of the device to retrieve. // // DeviceArn is a required field DeviceArn *string `location:"uri" locationName:"deviceArn" min:"1" type:"string" required:"true"` } // String returns the string representation func (s GetDeviceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetDeviceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetDeviceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetDeviceInput"} if s.DeviceArn == nil { invalidParams.Add(request.NewErrParamRequired("DeviceArn")) } if s.DeviceArn != nil && len(*s.DeviceArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("DeviceArn", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDeviceArn sets the DeviceArn field's value. func (s *GetDeviceInput) SetDeviceArn(v string) *GetDeviceInput { s.DeviceArn = &v return s } type GetDeviceOutput struct { _ struct{} `type:"structure"` // The ARN of the device. // // DeviceArn is a required field DeviceArn *string `locationName:"deviceArn" min:"1" type:"string" required:"true"` // Details about the capabilities of the device. // // DeviceCapabilities is a required field DeviceCapabilities aws.JSONValue `locationName:"deviceCapabilities" type:"jsonvalue" required:"true"` // The name of the device. // // DeviceName is a required field DeviceName *string `locationName:"deviceName" type:"string" required:"true"` // The status of the device. // // DeviceStatus is a required field DeviceStatus *string `locationName:"deviceStatus" type:"string" required:"true" enum:"DeviceStatus"` // The type of the device. // // DeviceType is a required field DeviceType *string `locationName:"deviceType" type:"string" required:"true" enum:"DeviceType"` // The name of the partner company for the device. // // ProviderName is a required field ProviderName *string `locationName:"providerName" type:"string" required:"true"` } // String returns the string representation func (s GetDeviceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetDeviceOutput) GoString() string { return s.String() } // SetDeviceArn sets the DeviceArn field's value. func (s *GetDeviceOutput) SetDeviceArn(v string) *GetDeviceOutput { s.DeviceArn = &v return s } // SetDeviceCapabilities sets the DeviceCapabilities field's value. func (s *GetDeviceOutput) SetDeviceCapabilities(v aws.JSONValue) *GetDeviceOutput { s.DeviceCapabilities = v return s } // SetDeviceName sets the DeviceName field's value. func (s *GetDeviceOutput) SetDeviceName(v string) *GetDeviceOutput { s.DeviceName = &v return s } // SetDeviceStatus sets the DeviceStatus field's value. func (s *GetDeviceOutput) SetDeviceStatus(v string) *GetDeviceOutput { s.DeviceStatus = &v return s } // SetDeviceType sets the DeviceType field's value. func (s *GetDeviceOutput) SetDeviceType(v string) *GetDeviceOutput { s.DeviceType = &v return s } // SetProviderName sets the ProviderName field's value. func (s *GetDeviceOutput) SetProviderName(v string) *GetDeviceOutput { s.ProviderName = &v return s } type GetQuantumTaskInput struct { _ struct{} `type:"structure"` // the ARN of the task to retrieve. // // QuantumTaskArn is a required field QuantumTaskArn *string `location:"uri" locationName:"quantumTaskArn" min:"1" type:"string" required:"true"` } // String returns the string representation func (s GetQuantumTaskInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetQuantumTaskInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetQuantumTaskInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetQuantumTaskInput"} if s.QuantumTaskArn == nil { invalidParams.Add(request.NewErrParamRequired("QuantumTaskArn")) } if s.QuantumTaskArn != nil && len(*s.QuantumTaskArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("QuantumTaskArn", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetQuantumTaskArn sets the QuantumTaskArn field's value. func (s *GetQuantumTaskInput) SetQuantumTaskArn(v string) *GetQuantumTaskInput { s.QuantumTaskArn = &v return s } type GetQuantumTaskOutput struct { _ struct{} `type:"structure"` // The time at which the task was created. // // CreatedAt is a required field CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"iso8601" required:"true"` // The ARN of the device the task was run on. // // DeviceArn is a required field DeviceArn *string `locationName:"deviceArn" min:"1" type:"string" required:"true"` // The parameters for the device on which the task ran. // // DeviceParameters is a required field DeviceParameters aws.JSONValue `locationName:"deviceParameters" type:"jsonvalue" required:"true"` // The time at which the task ended. EndedAt *time.Time `locationName:"endedAt" type:"timestamp" timestampFormat:"iso8601"` // The reason that a task failed. FailureReason *string `locationName:"failureReason" type:"string"` // The S3 bucket where task results are stored. // // OutputS3Bucket is a required field OutputS3Bucket *string `locationName:"outputS3Bucket" type:"string" required:"true"` // The folder in the S3 bucket where task results are stored. // // OutputS3Directory is a required field OutputS3Directory *string `locationName:"outputS3Directory" type:"string" required:"true"` // The ARN of the task. // // QuantumTaskArn is a required field QuantumTaskArn *string `locationName:"quantumTaskArn" min:"1" type:"string" required:"true"` // The number of shots used in the task. // // Shots is a required field Shots *int64 `locationName:"shots" type:"long" required:"true"` // The status of the task. // // Status is a required field Status *string `locationName:"status" type:"string" required:"true" enum:"QuantumTaskStatus"` // The tags that belong to this task. Tags map[string]*string `locationName:"tags" type:"map"` } // String returns the string representation func (s GetQuantumTaskOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetQuantumTaskOutput) GoString() string { return s.String() } // SetCreatedAt sets the CreatedAt field's value. func (s *GetQuantumTaskOutput) SetCreatedAt(v time.Time) *GetQuantumTaskOutput { s.CreatedAt = &v return s } // SetDeviceArn sets the DeviceArn field's value. func (s *GetQuantumTaskOutput) SetDeviceArn(v string) *GetQuantumTaskOutput { s.DeviceArn = &v return s } // SetDeviceParameters sets the DeviceParameters field's value. func (s *GetQuantumTaskOutput) SetDeviceParameters(v aws.JSONValue) *GetQuantumTaskOutput { s.DeviceParameters = v return s } // SetEndedAt sets the EndedAt field's value. func (s *GetQuantumTaskOutput) SetEndedAt(v time.Time) *GetQuantumTaskOutput { s.EndedAt = &v return s } // SetFailureReason sets the FailureReason field's value. func (s *GetQuantumTaskOutput) SetFailureReason(v string) *GetQuantumTaskOutput { s.FailureReason = &v return s } // SetOutputS3Bucket sets the OutputS3Bucket field's value. func (s *GetQuantumTaskOutput) SetOutputS3Bucket(v string) *GetQuantumTaskOutput { s.OutputS3Bucket = &v return s } // SetOutputS3Directory sets the OutputS3Directory field's value. func (s *GetQuantumTaskOutput) SetOutputS3Directory(v string) *GetQuantumTaskOutput { s.OutputS3Directory = &v return s } // SetQuantumTaskArn sets the QuantumTaskArn field's value. func (s *GetQuantumTaskOutput) SetQuantumTaskArn(v string) *GetQuantumTaskOutput { s.QuantumTaskArn = &v return s } // SetShots sets the Shots field's value. func (s *GetQuantumTaskOutput) SetShots(v int64) *GetQuantumTaskOutput { s.Shots = &v return s } // SetStatus sets the Status field's value. func (s *GetQuantumTaskOutput) SetStatus(v string) *GetQuantumTaskOutput { s.Status = &v return s } // SetTags sets the Tags field's value. func (s *GetQuantumTaskOutput) SetTags(v map[string]*string) *GetQuantumTaskOutput { s.Tags = v return s } // The request processing has failed because of an unknown error, exception, // or failure. type InternalServiceException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s InternalServiceException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s InternalServiceException) GoString() string { return s.String() } func newErrorInternalServiceException(v protocol.ResponseMetadata) error { return &InternalServiceException{ RespMetadata: v, } } // Code returns the exception type name. func (s *InternalServiceException) Code() string { return "InternalServiceException" } // Message returns the exception's message. func (s *InternalServiceException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *InternalServiceException) OrigErr() error { return nil } func (s *InternalServiceException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *InternalServiceException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *InternalServiceException) RequestID() string { return s.RespMetadata.RequestID } type ListTagsForResourceInput struct { _ struct{} `type:"structure"` // Specify the resourceArn for the resource whose tags to display. // // ResourceArn is a required field ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` } // String returns the string representation func (s ListTagsForResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListTagsForResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListTagsForResourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} if s.ResourceArn == nil { invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetResourceArn sets the ResourceArn field's value. func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { s.ResourceArn = &v return s } type ListTagsForResourceOutput struct { _ struct{} `type:"structure"` // Displays the key, value pairs of tags associated with this resource. Tags map[string]*string `locationName:"tags" type:"map"` } // String returns the string representation func (s ListTagsForResourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListTagsForResourceOutput) GoString() string { return s.String() } // SetTags sets the Tags field's value. func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput { s.Tags = v return s } // Includes information about a quantum task. type QuantumTaskSummary struct { _ struct{} `type:"structure"` // The time at which the task was created. // // CreatedAt is a required field CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"iso8601" required:"true"` // The ARN of the device the task ran on. // // DeviceArn is a required field DeviceArn *string `locationName:"deviceArn" min:"1" type:"string" required:"true"` // The time at which the task finished. EndedAt *time.Time `locationName:"endedAt" type:"timestamp" timestampFormat:"iso8601"` // The S3 bucket where the task result file is stored.. // // OutputS3Bucket is a required field OutputS3Bucket *string `locationName:"outputS3Bucket" type:"string" required:"true"` // The folder in the S3 bucket where the task result file is stored. // // OutputS3Directory is a required field OutputS3Directory *string `locationName:"outputS3Directory" type:"string" required:"true"` // The ARN of the task. // // QuantumTaskArn is a required field QuantumTaskArn *string `locationName:"quantumTaskArn" min:"1" type:"string" required:"true"` // The shots used for the task. // // Shots is a required field Shots *int64 `locationName:"shots" type:"long" required:"true"` // The status of the task. // // Status is a required field Status *string `locationName:"status" type:"string" required:"true" enum:"QuantumTaskStatus"` // Displays the key, value pairs of tags associated with this quantum task. Tags map[string]*string `locationName:"tags" type:"map"` } // String returns the string representation func (s QuantumTaskSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s QuantumTaskSummary) GoString() string { return s.String() } // SetCreatedAt sets the CreatedAt field's value. func (s *QuantumTaskSummary) SetCreatedAt(v time.Time) *QuantumTaskSummary { s.CreatedAt = &v return s } // SetDeviceArn sets the DeviceArn field's value. func (s *QuantumTaskSummary) SetDeviceArn(v string) *QuantumTaskSummary { s.DeviceArn = &v return s } // SetEndedAt sets the EndedAt field's value. func (s *QuantumTaskSummary) SetEndedAt(v time.Time) *QuantumTaskSummary { s.EndedAt = &v return s } // SetOutputS3Bucket sets the OutputS3Bucket field's value. func (s *QuantumTaskSummary) SetOutputS3Bucket(v string) *QuantumTaskSummary { s.OutputS3Bucket = &v return s } // SetOutputS3Directory sets the OutputS3Directory field's value. func (s *QuantumTaskSummary) SetOutputS3Directory(v string) *QuantumTaskSummary { s.OutputS3Directory = &v return s } // SetQuantumTaskArn sets the QuantumTaskArn field's value. func (s *QuantumTaskSummary) SetQuantumTaskArn(v string) *QuantumTaskSummary { s.QuantumTaskArn = &v return s } // SetShots sets the Shots field's value. func (s *QuantumTaskSummary) SetShots(v int64) *QuantumTaskSummary { s.Shots = &v return s } // SetStatus sets the Status field's value. func (s *QuantumTaskSummary) SetStatus(v string) *QuantumTaskSummary { s.Status = &v return s } // SetTags sets the Tags field's value. func (s *QuantumTaskSummary) SetTags(v map[string]*string) *QuantumTaskSummary { s.Tags = v return s } // The specified resource was not found. type ResourceNotFoundException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s ResourceNotFoundException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ResourceNotFoundException) GoString() string { return s.String() } func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { return &ResourceNotFoundException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ResourceNotFoundException) Code() string { return "ResourceNotFoundException" } // Message returns the exception's message. func (s *ResourceNotFoundException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ResourceNotFoundException) OrigErr() error { return nil } func (s *ResourceNotFoundException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ResourceNotFoundException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ResourceNotFoundException) RequestID() string { return s.RespMetadata.RequestID } // The filter to use for searching devices. type SearchDevicesFilter struct { _ struct{} `type:"structure"` // The name to use to filter results. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` // The values to use to filter results. // // Values is a required field Values []*string `locationName:"values" min:"1" type:"list" required:"true"` } // String returns the string representation func (s SearchDevicesFilter) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s SearchDevicesFilter) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *SearchDevicesFilter) Validate() error { invalidParams := request.ErrInvalidParams{Context: "SearchDevicesFilter"} if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if s.Values == nil { invalidParams.Add(request.NewErrParamRequired("Values")) } if s.Values != nil && len(s.Values) < 1 { invalidParams.Add(request.NewErrParamMinLen("Values", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetName sets the Name field's value. func (s *SearchDevicesFilter) SetName(v string) *SearchDevicesFilter { s.Name = &v return s } // SetValues sets the Values field's value. func (s *SearchDevicesFilter) SetValues(v []*string) *SearchDevicesFilter { s.Values = v return s } type SearchDevicesInput struct { _ struct{} `type:"structure"` // The filter values to use to search for a device. // // Filters is a required field Filters []*SearchDevicesFilter `locationName:"filters" type:"list" required:"true"` // The maximum number of results to return in the response. MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` // A token used for pagination of results returned in the response. Use the // token returned from the previous request continue results where the previous // request ended. NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation func (s SearchDevicesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s SearchDevicesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *SearchDevicesInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "SearchDevicesInput"} if s.Filters == nil { invalidParams.Add(request.NewErrParamRequired("Filters")) } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if s.Filters != nil { for i, v := range s.Filters { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetFilters sets the Filters field's value. func (s *SearchDevicesInput) SetFilters(v []*SearchDevicesFilter) *SearchDevicesInput { s.Filters = v return s } // SetMaxResults sets the MaxResults field's value. func (s *SearchDevicesInput) SetMaxResults(v int64) *SearchDevicesInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *SearchDevicesInput) SetNextToken(v string) *SearchDevicesInput { s.NextToken = &v return s } type SearchDevicesOutput struct { _ struct{} `type:"structure"` // An array of DeviceSummary objects for devices that match the specified filter // values. // // Devices is a required field Devices []*DeviceSummary `locationName:"devices" type:"list" required:"true"` // A token used for pagination of results, or null if there are no additional // results. Use the token value in a subsequent request to continue results // where the previous request ended. NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation func (s SearchDevicesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s SearchDevicesOutput) GoString() string { return s.String() } // SetDevices sets the Devices field's value. func (s *SearchDevicesOutput) SetDevices(v []*DeviceSummary) *SearchDevicesOutput { s.Devices = v return s } // SetNextToken sets the NextToken field's value. func (s *SearchDevicesOutput) SetNextToken(v string) *SearchDevicesOutput { s.NextToken = &v return s } // A filter to use to search for tasks. type SearchQuantumTasksFilter struct { _ struct{} `type:"structure"` // The name of the device used for the task. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` // An operator to use in the filter. // // Operator is a required field Operator *string `locationName:"operator" type:"string" required:"true" enum:"SearchQuantumTasksFilterOperator"` // The values to use for the filter. // // Values is a required field Values []*string `locationName:"values" min:"1" type:"list" required:"true"` } // String returns the string representation func (s SearchQuantumTasksFilter) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s SearchQuantumTasksFilter) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *SearchQuantumTasksFilter) Validate() error { invalidParams := request.ErrInvalidParams{Context: "SearchQuantumTasksFilter"} if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if s.Operator == nil { invalidParams.Add(request.NewErrParamRequired("Operator")) } if s.Values == nil { invalidParams.Add(request.NewErrParamRequired("Values")) } if s.Values != nil && len(s.Values) < 1 { invalidParams.Add(request.NewErrParamMinLen("Values", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetName sets the Name field's value. func (s *SearchQuantumTasksFilter) SetName(v string) *SearchQuantumTasksFilter { s.Name = &v return s } // SetOperator sets the Operator field's value. func (s *SearchQuantumTasksFilter) SetOperator(v string) *SearchQuantumTasksFilter { s.Operator = &v return s } // SetValues sets the Values field's value. func (s *SearchQuantumTasksFilter) SetValues(v []*string) *SearchQuantumTasksFilter { s.Values = v return s } type SearchQuantumTasksInput struct { _ struct{} `type:"structure"` // Array of SearchQuantumTasksFilter objects. // // Filters is a required field Filters []*SearchQuantumTasksFilter `locationName:"filters" type:"list" required:"true"` // Maximum number of results to return in the response. MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` // A token used for pagination of results returned in the response. Use the // token returned from the previous request continue results where the previous // request ended. NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation func (s SearchQuantumTasksInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s SearchQuantumTasksInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *SearchQuantumTasksInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "SearchQuantumTasksInput"} if s.Filters == nil { invalidParams.Add(request.NewErrParamRequired("Filters")) } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if s.Filters != nil { for i, v := range s.Filters { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetFilters sets the Filters field's value. func (s *SearchQuantumTasksInput) SetFilters(v []*SearchQuantumTasksFilter) *SearchQuantumTasksInput { s.Filters = v return s } // SetMaxResults sets the MaxResults field's value. func (s *SearchQuantumTasksInput) SetMaxResults(v int64) *SearchQuantumTasksInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *SearchQuantumTasksInput) SetNextToken(v string) *SearchQuantumTasksInput { s.NextToken = &v return s } type SearchQuantumTasksOutput struct { _ struct{} `type:"structure"` // A token used for pagination of results, or null if there are no additional // results. Use the token value in a subsequent request to continue results // where the previous request ended. NextToken *string `locationName:"nextToken" type:"string"` // An array of QuantumTaskSummary objects for tasks that match the specified // filters. // // QuantumTasks is a required field QuantumTasks []*QuantumTaskSummary `locationName:"quantumTasks" type:"list" required:"true"` } // String returns the string representation func (s SearchQuantumTasksOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s SearchQuantumTasksOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *SearchQuantumTasksOutput) SetNextToken(v string) *SearchQuantumTasksOutput { s.NextToken = &v return s } // SetQuantumTasks sets the QuantumTasks field's value. func (s *SearchQuantumTasksOutput) SetQuantumTasks(v []*QuantumTaskSummary) *SearchQuantumTasksOutput { s.QuantumTasks = v return s } // The request failed because a service quota is exceeded. type ServiceQuotaExceededException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s ServiceQuotaExceededException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ServiceQuotaExceededException) GoString() string { return s.String() } func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error { return &ServiceQuotaExceededException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ServiceQuotaExceededException) Code() string { return "ServiceQuotaExceededException" } // Message returns the exception's message. func (s *ServiceQuotaExceededException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ServiceQuotaExceededException) OrigErr() error { return nil } func (s *ServiceQuotaExceededException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ServiceQuotaExceededException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ServiceQuotaExceededException) RequestID() string { return s.RespMetadata.RequestID } type TagResourceInput struct { _ struct{} `type:"structure"` // Specify the resourceArn of the resource to which a tag will be added. // // ResourceArn is a required field ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` // Specify the tags to add to the resource. // // Tags is a required field Tags map[string]*string `locationName:"tags" type:"map" required:"true"` } // String returns the string representation func (s TagResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TagResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *TagResourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} if s.ResourceArn == nil { invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) } if s.Tags == nil { invalidParams.Add(request.NewErrParamRequired("Tags")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetResourceArn sets the ResourceArn field's value. func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { s.ResourceArn = &v return s } // SetTags sets the Tags field's value. func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput { s.Tags = v return s } type TagResourceOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s TagResourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TagResourceOutput) GoString() string { return s.String() } // The throttling rate limit is met. type ThrottlingException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s ThrottlingException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ThrottlingException) GoString() string { return s.String() } func newErrorThrottlingException(v protocol.ResponseMetadata) error { return &ThrottlingException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ThrottlingException) Code() string { return "ThrottlingException" } // Message returns the exception's message. func (s *ThrottlingException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ThrottlingException) OrigErr() error { return nil } func (s *ThrottlingException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ThrottlingException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ThrottlingException) RequestID() string { return s.RespMetadata.RequestID } type UntagResourceInput struct { _ struct{} `type:"structure"` // Specify the resourceArn for the resource from which to remove the tags. // // ResourceArn is a required field ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` // Specify the keys for the tags to remove from the resource. // // TagKeys is a required field TagKeys []*string `location:"querystring" locationName:"tagKeys" type:"list" required:"true"` } // String returns the string representation func (s UntagResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UntagResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UntagResourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} if s.ResourceArn == nil { invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) } if s.TagKeys == nil { invalidParams.Add(request.NewErrParamRequired("TagKeys")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetResourceArn sets the ResourceArn field's value. func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { s.ResourceArn = &v return s } // SetTagKeys sets the TagKeys field's value. func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { s.TagKeys = v return s } type UntagResourceOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s UntagResourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UntagResourceOutput) GoString() string { return s.String() } // The input fails to satisfy the constraints specified by an AWS service. type ValidationException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation func (s ValidationException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ValidationException) GoString() string { return s.String() } func newErrorValidationException(v protocol.ResponseMetadata) error { return &ValidationException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ValidationException) Code() string { return "ValidationException" } // Message returns the exception's message. func (s *ValidationException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ValidationException) OrigErr() error { return nil } func (s *ValidationException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ValidationException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ValidationException) RequestID() string { return s.RespMetadata.RequestID } const ( // CancellationStatusCancelling is a CancellationStatus enum value CancellationStatusCancelling = "CANCELLING" // CancellationStatusCancelled is a CancellationStatus enum value CancellationStatusCancelled = "CANCELLED" ) // CancellationStatus_Values returns all elements of the CancellationStatus enum func CancellationStatus_Values() []string { return []string{ CancellationStatusCancelling, CancellationStatusCancelled, } } const ( // DeviceStatusOnline is a DeviceStatus enum value DeviceStatusOnline = "ONLINE" // DeviceStatusOffline is a DeviceStatus enum value DeviceStatusOffline = "OFFLINE" // DeviceStatusRetired is a DeviceStatus enum value DeviceStatusRetired = "RETIRED" ) // DeviceStatus_Values returns all elements of the DeviceStatus enum func DeviceStatus_Values() []string { return []string{ DeviceStatusOnline, DeviceStatusOffline, DeviceStatusRetired, } } const ( // DeviceTypeQpu is a DeviceType enum value DeviceTypeQpu = "QPU" // DeviceTypeSimulator is a DeviceType enum value DeviceTypeSimulator = "SIMULATOR" ) // DeviceType_Values returns all elements of the DeviceType enum func DeviceType_Values() []string { return []string{ DeviceTypeQpu, DeviceTypeSimulator, } } const ( // QuantumTaskStatusCreated is a QuantumTaskStatus enum value QuantumTaskStatusCreated = "CREATED" // QuantumTaskStatusQueued is a QuantumTaskStatus enum value QuantumTaskStatusQueued = "QUEUED" // QuantumTaskStatusRunning is a QuantumTaskStatus enum value QuantumTaskStatusRunning = "RUNNING" // QuantumTaskStatusCompleted is a QuantumTaskStatus enum value QuantumTaskStatusCompleted = "COMPLETED" // QuantumTaskStatusFailed is a QuantumTaskStatus enum value QuantumTaskStatusFailed = "FAILED" // QuantumTaskStatusCancelling is a QuantumTaskStatus enum value QuantumTaskStatusCancelling = "CANCELLING" // QuantumTaskStatusCancelled is a QuantumTaskStatus enum value QuantumTaskStatusCancelled = "CANCELLED" ) // QuantumTaskStatus_Values returns all elements of the QuantumTaskStatus enum func QuantumTaskStatus_Values() []string { return []string{ QuantumTaskStatusCreated, QuantumTaskStatusQueued, QuantumTaskStatusRunning, QuantumTaskStatusCompleted, QuantumTaskStatusFailed, QuantumTaskStatusCancelling, QuantumTaskStatusCancelled, } } const ( // SearchQuantumTasksFilterOperatorLt is a SearchQuantumTasksFilterOperator enum value SearchQuantumTasksFilterOperatorLt = "LT" // SearchQuantumTasksFilterOperatorLte is a SearchQuantumTasksFilterOperator enum value SearchQuantumTasksFilterOperatorLte = "LTE" // SearchQuantumTasksFilterOperatorEqual is a SearchQuantumTasksFilterOperator enum value SearchQuantumTasksFilterOperatorEqual = "EQUAL" // SearchQuantumTasksFilterOperatorGt is a SearchQuantumTasksFilterOperator enum value SearchQuantumTasksFilterOperatorGt = "GT" // SearchQuantumTasksFilterOperatorGte is a SearchQuantumTasksFilterOperator enum value SearchQuantumTasksFilterOperatorGte = "GTE" // SearchQuantumTasksFilterOperatorBetween is a SearchQuantumTasksFilterOperator enum value SearchQuantumTasksFilterOperatorBetween = "BETWEEN" ) // SearchQuantumTasksFilterOperator_Values returns all elements of the SearchQuantumTasksFilterOperator enum func SearchQuantumTasksFilterOperator_Values() []string { return []string{ SearchQuantumTasksFilterOperatorLt, SearchQuantumTasksFilterOperatorLte, SearchQuantumTasksFilterOperatorEqual, SearchQuantumTasksFilterOperatorGt, SearchQuantumTasksFilterOperatorGte, SearchQuantumTasksFilterOperatorBetween, } }
2,842
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package braket provides the client and types for making API // requests to Braket. // // The Amazon Braket API Reference provides information about the operations // and structures supported in Amazon Braket. // // See https://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01 for more information on this service. // // See braket package documentation for more information. // https://docs.aws.amazon.com/sdk-for-go/api/service/braket/ // // Using the Client // // To contact Braket 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 Braket client Braket for more // information on creating client for this service. // https://docs.aws.amazon.com/sdk-for-go/api/service/braket/#New package braket
30
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package braket import ( "github.com/aws/aws-sdk-go/private/protocol" ) const ( // ErrCodeAccessDeniedException for service response error code // "AccessDeniedException". // // You do not have sufficient access to perform this action. ErrCodeAccessDeniedException = "AccessDeniedException" // ErrCodeConflictException for service response error code // "ConflictException". // // An error occurred due to a conflict. ErrCodeConflictException = "ConflictException" // ErrCodeDeviceOfflineException for service response error code // "DeviceOfflineException". // // The specified device is currently offline. ErrCodeDeviceOfflineException = "DeviceOfflineException" // ErrCodeDeviceRetiredException for service response error code // "DeviceRetiredException". // // The specified device has been retired. ErrCodeDeviceRetiredException = "DeviceRetiredException" // ErrCodeInternalServiceException for service response error code // "InternalServiceException". // // The request processing has failed because of an unknown error, exception, // or failure. ErrCodeInternalServiceException = "InternalServiceException" // ErrCodeResourceNotFoundException for service response error code // "ResourceNotFoundException". // // The specified resource was not found. ErrCodeResourceNotFoundException = "ResourceNotFoundException" // ErrCodeServiceQuotaExceededException for service response error code // "ServiceQuotaExceededException". // // The request failed because a service quota is exceeded. ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException" // ErrCodeThrottlingException for service response error code // "ThrottlingException". // // The throttling rate limit is met. ErrCodeThrottlingException = "ThrottlingException" // ErrCodeValidationException for service response error code // "ValidationException". // // The input fails to satisfy the constraints specified by an AWS service. ErrCodeValidationException = "ValidationException" ) var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "AccessDeniedException": newErrorAccessDeniedException, "ConflictException": newErrorConflictException, "DeviceOfflineException": newErrorDeviceOfflineException, "DeviceRetiredException": newErrorDeviceRetiredException, "InternalServiceException": newErrorInternalServiceException, "ResourceNotFoundException": newErrorResourceNotFoundException, "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, "ThrottlingException": newErrorThrottlingException, "ValidationException": newErrorValidationException, }
78
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package braket 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" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) // Braket provides the API operation methods for making requests to // Braket. See this package's package overview docs // for details on the service. // // Braket methods are safe to use concurrently. It is not safe to // modify mutate any of the struct's properties though. type Braket 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 = "Braket" // Name of service. EndpointsID = "braket" // ID to lookup a service endpoint with. ServiceID = "Braket" // ServiceID is a unique identifier of a specific service. ) // New creates a new instance of the Braket 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: // mySession := session.Must(session.NewSession()) // // // Create a Braket client from just a session. // svc := braket.New(mySession) // // // Create a Braket client with additional configuration // svc := braket.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Braket { c := p.ClientConfig(EndpointsID, cfgs...) if c.SigningNameDerived || len(c.SigningName) == 0 { c.SigningName = "braket" } return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *Braket { svc := &Braket{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, ServiceID: ServiceID, SigningName: signingName, SigningRegion: signingRegion, PartitionID: partitionID, Endpoint: endpoint, APIVersion: "2019-09-01", }, 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( protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), ) // Run custom client initialization if present if initClient != nil { initClient(svc.Client) } return svc } // newRequest creates a new request for a Braket operation and runs any // custom request initialization. func (c *Braket) 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 }
105
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package braketiface provides an interface to enable mocking the Braket 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 braketiface import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/service/braket" ) // BraketAPI provides an interface to enable mocking the // braket.Braket 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 // // Braket. // func myFunc(svc braketiface.BraketAPI) bool { // // Make svc.CancelQuantumTask request // } // // func main() { // sess := session.New() // svc := braket.New(sess) // // myFunc(svc) // } // // In your _test.go file: // // // Define a mock struct to be used in your unit tests of myFunc. // type mockBraketClient struct { // braketiface.BraketAPI // } // func (m *mockBraketClient) CancelQuantumTask(input *braket.CancelQuantumTaskInput) (*braket.CancelQuantumTaskOutput, error) { // // mock response/functionality // } // // func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockBraketClient{} // // 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 BraketAPI interface { CancelQuantumTask(*braket.CancelQuantumTaskInput) (*braket.CancelQuantumTaskOutput, error) CancelQuantumTaskWithContext(aws.Context, *braket.CancelQuantumTaskInput, ...request.Option) (*braket.CancelQuantumTaskOutput, error) CancelQuantumTaskRequest(*braket.CancelQuantumTaskInput) (*request.Request, *braket.CancelQuantumTaskOutput) CreateQuantumTask(*braket.CreateQuantumTaskInput) (*braket.CreateQuantumTaskOutput, error) CreateQuantumTaskWithContext(aws.Context, *braket.CreateQuantumTaskInput, ...request.Option) (*braket.CreateQuantumTaskOutput, error) CreateQuantumTaskRequest(*braket.CreateQuantumTaskInput) (*request.Request, *braket.CreateQuantumTaskOutput) GetDevice(*braket.GetDeviceInput) (*braket.GetDeviceOutput, error) GetDeviceWithContext(aws.Context, *braket.GetDeviceInput, ...request.Option) (*braket.GetDeviceOutput, error) GetDeviceRequest(*braket.GetDeviceInput) (*request.Request, *braket.GetDeviceOutput) GetQuantumTask(*braket.GetQuantumTaskInput) (*braket.GetQuantumTaskOutput, error) GetQuantumTaskWithContext(aws.Context, *braket.GetQuantumTaskInput, ...request.Option) (*braket.GetQuantumTaskOutput, error) GetQuantumTaskRequest(*braket.GetQuantumTaskInput) (*request.Request, *braket.GetQuantumTaskOutput) ListTagsForResource(*braket.ListTagsForResourceInput) (*braket.ListTagsForResourceOutput, error) ListTagsForResourceWithContext(aws.Context, *braket.ListTagsForResourceInput, ...request.Option) (*braket.ListTagsForResourceOutput, error) ListTagsForResourceRequest(*braket.ListTagsForResourceInput) (*request.Request, *braket.ListTagsForResourceOutput) SearchDevices(*braket.SearchDevicesInput) (*braket.SearchDevicesOutput, error) SearchDevicesWithContext(aws.Context, *braket.SearchDevicesInput, ...request.Option) (*braket.SearchDevicesOutput, error) SearchDevicesRequest(*braket.SearchDevicesInput) (*request.Request, *braket.SearchDevicesOutput) SearchDevicesPages(*braket.SearchDevicesInput, func(*braket.SearchDevicesOutput, bool) bool) error SearchDevicesPagesWithContext(aws.Context, *braket.SearchDevicesInput, func(*braket.SearchDevicesOutput, bool) bool, ...request.Option) error SearchQuantumTasks(*braket.SearchQuantumTasksInput) (*braket.SearchQuantumTasksOutput, error) SearchQuantumTasksWithContext(aws.Context, *braket.SearchQuantumTasksInput, ...request.Option) (*braket.SearchQuantumTasksOutput, error) SearchQuantumTasksRequest(*braket.SearchQuantumTasksInput) (*request.Request, *braket.SearchQuantumTasksOutput) SearchQuantumTasksPages(*braket.SearchQuantumTasksInput, func(*braket.SearchQuantumTasksOutput, bool) bool) error SearchQuantumTasksPagesWithContext(aws.Context, *braket.SearchQuantumTasksInput, func(*braket.SearchQuantumTasksOutput, bool) bool, ...request.Option) error TagResource(*braket.TagResourceInput) (*braket.TagResourceOutput, error) TagResourceWithContext(aws.Context, *braket.TagResourceInput, ...request.Option) (*braket.TagResourceOutput, error) TagResourceRequest(*braket.TagResourceInput) (*request.Request, *braket.TagResourceOutput) UntagResource(*braket.UntagResourceInput) (*braket.UntagResourceOutput, error) UntagResourceWithContext(aws.Context, *braket.UntagResourceInput, ...request.Option) (*braket.UntagResourceOutput, error) UntagResourceRequest(*braket.UntagResourceInput) (*request.Request, *braket.UntagResourceOutput) } var _ BraketAPI = (*braket.Braket)(nil)
107
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package budgets import ( "fmt" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) const opCreateBudget = "CreateBudget" // CreateBudgetRequest generates a "aws/request.Request" representing the // client's request for the CreateBudget operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateBudget for more information on using the CreateBudget // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateBudgetRequest method. // req, resp := client.CreateBudgetRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } func (c *Budgets) CreateBudgetRequest(input *CreateBudgetInput) (req *request.Request, output *CreateBudgetOutput) { op := &request.Operation{ Name: opCreateBudget, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateBudgetInput{} } output = &CreateBudgetOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // CreateBudget API operation for AWS Budgets. // // Creates a budget and, if included, notifications and subscribers. // // Only one of BudgetLimit or PlannedBudgetLimits can be present in the syntax // at one time. Use the syntax that matches your case. The Request Syntax section // shows the BudgetLimit syntax. For PlannedBudgetLimits, see the Examples (https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_CreateBudget.html#API_CreateBudget_Examples) // section. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Budgets's // API operation CreateBudget for usage and error information. // // Returned Error Types: // * InvalidParameterException // An error on the client occurred. Typically, the cause is an invalid input // value. // // * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // // * CreationLimitExceededException // You've exceeded the notification or subscriber limit. // // * DuplicateRecordException // The budget name already exists. Budget names must be unique within an account. // // * AccessDeniedException // You are not authorized to use this operation with the given parameters. // func (c *Budgets) CreateBudget(input *CreateBudgetInput) (*CreateBudgetOutput, error) { req, out := c.CreateBudgetRequest(input) return out, req.Send() } // CreateBudgetWithContext is the same as CreateBudget with the addition of // the ability to pass a context and additional request options. // // See CreateBudget for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Budgets) CreateBudgetWithContext(ctx aws.Context, input *CreateBudgetInput, opts ...request.Option) (*CreateBudgetOutput, error) { req, out := c.CreateBudgetRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateBudgetAction = "CreateBudgetAction" // CreateBudgetActionRequest generates a "aws/request.Request" representing the // client's request for the CreateBudgetAction operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateBudgetAction for more information on using the CreateBudgetAction // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateBudgetActionRequest method. // req, resp := client.CreateBudgetActionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } func (c *Budgets) CreateBudgetActionRequest(input *CreateBudgetActionInput) (req *request.Request, output *CreateBudgetActionOutput) { op := &request.Operation{ Name: opCreateBudgetAction, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateBudgetActionInput{} } output = &CreateBudgetActionOutput{} req = c.newRequest(op, input, output) return } // CreateBudgetAction API operation for AWS Budgets. // // Creates a budget action. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Budgets's // API operation CreateBudgetAction for usage and error information. // // Returned Error Types: // * InvalidParameterException // An error on the client occurred. Typically, the cause is an invalid input // value. // // * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // // * CreationLimitExceededException // You've exceeded the notification or subscriber limit. // // * DuplicateRecordException // The budget name already exists. Budget names must be unique within an account. // // * NotFoundException // We can’t locate the resource that you specified. // // * AccessDeniedException // You are not authorized to use this operation with the given parameters. // func (c *Budgets) CreateBudgetAction(input *CreateBudgetActionInput) (*CreateBudgetActionOutput, error) { req, out := c.CreateBudgetActionRequest(input) return out, req.Send() } // CreateBudgetActionWithContext is the same as CreateBudgetAction with the addition of // the ability to pass a context and additional request options. // // See CreateBudgetAction for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Budgets) CreateBudgetActionWithContext(ctx aws.Context, input *CreateBudgetActionInput, opts ...request.Option) (*CreateBudgetActionOutput, error) { req, out := c.CreateBudgetActionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateNotification = "CreateNotification" // CreateNotificationRequest generates a "aws/request.Request" representing the // client's request for the CreateNotification operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateNotification for more information on using the CreateNotification // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateNotificationRequest method. // req, resp := client.CreateNotificationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } func (c *Budgets) CreateNotificationRequest(input *CreateNotificationInput) (req *request.Request, output *CreateNotificationOutput) { op := &request.Operation{ Name: opCreateNotification, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateNotificationInput{} } output = &CreateNotificationOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // CreateNotification API operation for AWS Budgets. // // Creates a notification. You must create the budget before you create the // associated notification. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Budgets's // API operation CreateNotification for usage and error information. // // Returned Error Types: // * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // // * InvalidParameterException // An error on the client occurred. Typically, the cause is an invalid input // value. // // * NotFoundException // We can’t locate the resource that you specified. // // * CreationLimitExceededException // You've exceeded the notification or subscriber limit. // // * DuplicateRecordException // The budget name already exists. Budget names must be unique within an account. // // * AccessDeniedException // You are not authorized to use this operation with the given parameters. // func (c *Budgets) CreateNotification(input *CreateNotificationInput) (*CreateNotificationOutput, error) { req, out := c.CreateNotificationRequest(input) return out, req.Send() } // CreateNotificationWithContext is the same as CreateNotification with the addition of // the ability to pass a context and additional request options. // // See CreateNotification for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Budgets) CreateNotificationWithContext(ctx aws.Context, input *CreateNotificationInput, opts ...request.Option) (*CreateNotificationOutput, error) { req, out := c.CreateNotificationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateSubscriber = "CreateSubscriber" // CreateSubscriberRequest generates a "aws/request.Request" representing the // client's request for the CreateSubscriber operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateSubscriber for more information on using the CreateSubscriber // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateSubscriberRequest method. // req, resp := client.CreateSubscriberRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } func (c *Budgets) CreateSubscriberRequest(input *CreateSubscriberInput) (req *request.Request, output *CreateSubscriberOutput) { op := &request.Operation{ Name: opCreateSubscriber, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateSubscriberInput{} } output = &CreateSubscriberOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // CreateSubscriber API operation for AWS Budgets. // // Creates a subscriber. You must create the associated budget and notification // before you create the subscriber. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Budgets's // API operation CreateSubscriber for usage and error information. // // Returned Error Types: // * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // // * InvalidParameterException // An error on the client occurred. Typically, the cause is an invalid input // value. // // * CreationLimitExceededException // You've exceeded the notification or subscriber limit. // // * DuplicateRecordException // The budget name already exists. Budget names must be unique within an account. // // * NotFoundException // We can’t locate the resource that you specified. // // * AccessDeniedException // You are not authorized to use this operation with the given parameters. // func (c *Budgets) CreateSubscriber(input *CreateSubscriberInput) (*CreateSubscriberOutput, error) { req, out := c.CreateSubscriberRequest(input) return out, req.Send() } // CreateSubscriberWithContext is the same as CreateSubscriber with the addition of // the ability to pass a context and additional request options. // // See CreateSubscriber for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Budgets) CreateSubscriberWithContext(ctx aws.Context, input *CreateSubscriberInput, opts ...request.Option) (*CreateSubscriberOutput, error) { req, out := c.CreateSubscriberRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteBudget = "DeleteBudget" // DeleteBudgetRequest generates a "aws/request.Request" representing the // client's request for the DeleteBudget operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteBudget for more information on using the DeleteBudget // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteBudgetRequest method. // req, resp := client.DeleteBudgetRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } func (c *Budgets) DeleteBudgetRequest(input *DeleteBudgetInput) (req *request.Request, output *DeleteBudgetOutput) { op := &request.Operation{ Name: opDeleteBudget, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteBudgetInput{} } output = &DeleteBudgetOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteBudget API operation for AWS Budgets. // // Deletes a budget. You can delete your budget at any time. // // Deleting a budget also deletes the notifications and subscribers that are // associated with that budget. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Budgets's // API operation DeleteBudget for usage and error information. // // Returned Error Types: // * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // // * InvalidParameterException // An error on the client occurred. Typically, the cause is an invalid input // value. // // * NotFoundException // We can’t locate the resource that you specified. // // * AccessDeniedException // You are not authorized to use this operation with the given parameters. // func (c *Budgets) DeleteBudget(input *DeleteBudgetInput) (*DeleteBudgetOutput, error) { req, out := c.DeleteBudgetRequest(input) return out, req.Send() } // DeleteBudgetWithContext is the same as DeleteBudget with the addition of // the ability to pass a context and additional request options. // // See DeleteBudget for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Budgets) DeleteBudgetWithContext(ctx aws.Context, input *DeleteBudgetInput, opts ...request.Option) (*DeleteBudgetOutput, error) { req, out := c.DeleteBudgetRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteBudgetAction = "DeleteBudgetAction" // DeleteBudgetActionRequest generates a "aws/request.Request" representing the // client's request for the DeleteBudgetAction operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteBudgetAction for more information on using the DeleteBudgetAction // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteBudgetActionRequest method. // req, resp := client.DeleteBudgetActionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } func (c *Budgets) DeleteBudgetActionRequest(input *DeleteBudgetActionInput) (req *request.Request, output *DeleteBudgetActionOutput) { op := &request.Operation{ Name: opDeleteBudgetAction, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteBudgetActionInput{} } output = &DeleteBudgetActionOutput{} req = c.newRequest(op, input, output) return } // DeleteBudgetAction API operation for AWS Budgets. // // Deletes a budget action. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Budgets's // API operation DeleteBudgetAction for usage and error information. // // Returned Error Types: // * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // // * InvalidParameterException // An error on the client occurred. Typically, the cause is an invalid input // value. // // * NotFoundException // We can’t locate the resource that you specified. // // * AccessDeniedException // You are not authorized to use this operation with the given parameters. // // * ResourceLockedException // The request was received and recognized by the server, but the server rejected // that particular method for the requested resource. // func (c *Budgets) DeleteBudgetAction(input *DeleteBudgetActionInput) (*DeleteBudgetActionOutput, error) { req, out := c.DeleteBudgetActionRequest(input) return out, req.Send() } // DeleteBudgetActionWithContext is the same as DeleteBudgetAction with the addition of // the ability to pass a context and additional request options. // // See DeleteBudgetAction for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Budgets) DeleteBudgetActionWithContext(ctx aws.Context, input *DeleteBudgetActionInput, opts ...request.Option) (*DeleteBudgetActionOutput, error) { req, out := c.DeleteBudgetActionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteNotification = "DeleteNotification" // DeleteNotificationRequest generates a "aws/request.Request" representing the // client's request for the DeleteNotification operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteNotification for more information on using the DeleteNotification // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteNotificationRequest method. // req, resp := client.DeleteNotificationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } func (c *Budgets) DeleteNotificationRequest(input *DeleteNotificationInput) (req *request.Request, output *DeleteNotificationOutput) { op := &request.Operation{ Name: opDeleteNotification, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteNotificationInput{} } output = &DeleteNotificationOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteNotification API operation for AWS Budgets. // // Deletes a notification. // // Deleting a notification also deletes the subscribers that are associated // with the notification. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Budgets's // API operation DeleteNotification for usage and error information. // // Returned Error Types: // * InvalidParameterException // An error on the client occurred. Typically, the cause is an invalid input // value. // // * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // // * NotFoundException // We can’t locate the resource that you specified. // // * AccessDeniedException // You are not authorized to use this operation with the given parameters. // func (c *Budgets) DeleteNotification(input *DeleteNotificationInput) (*DeleteNotificationOutput, error) { req, out := c.DeleteNotificationRequest(input) return out, req.Send() } // DeleteNotificationWithContext is the same as DeleteNotification with the addition of // the ability to pass a context and additional request options. // // See DeleteNotification for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Budgets) DeleteNotificationWithContext(ctx aws.Context, input *DeleteNotificationInput, opts ...request.Option) (*DeleteNotificationOutput, error) { req, out := c.DeleteNotificationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteSubscriber = "DeleteSubscriber" // DeleteSubscriberRequest generates a "aws/request.Request" representing the // client's request for the DeleteSubscriber operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteSubscriber for more information on using the DeleteSubscriber // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteSubscriberRequest method. // req, resp := client.DeleteSubscriberRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } func (c *Budgets) DeleteSubscriberRequest(input *DeleteSubscriberInput) (req *request.Request, output *DeleteSubscriberOutput) { op := &request.Operation{ Name: opDeleteSubscriber, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteSubscriberInput{} } output = &DeleteSubscriberOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteSubscriber API operation for AWS Budgets. // // Deletes a subscriber. // // Deleting the last subscriber to a notification also deletes the notification. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Budgets's // API operation DeleteSubscriber for usage and error information. // // Returned Error Types: // * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // // * InvalidParameterException // An error on the client occurred. Typically, the cause is an invalid input // value. // // * NotFoundException // We can’t locate the resource that you specified. // // * AccessDeniedException // You are not authorized to use this operation with the given parameters. // func (c *Budgets) DeleteSubscriber(input *DeleteSubscriberInput) (*DeleteSubscriberOutput, error) { req, out := c.DeleteSubscriberRequest(input) return out, req.Send() } // DeleteSubscriberWithContext is the same as DeleteSubscriber with the addition of // the ability to pass a context and additional request options. // // See DeleteSubscriber for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Budgets) DeleteSubscriberWithContext(ctx aws.Context, input *DeleteSubscriberInput, opts ...request.Option) (*DeleteSubscriberOutput, error) { req, out := c.DeleteSubscriberRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeBudget = "DescribeBudget" // DescribeBudgetRequest generates a "aws/request.Request" representing the // client's request for the DescribeBudget operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeBudget for more information on using the DescribeBudget // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeBudgetRequest method. // req, resp := client.DescribeBudgetRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } func (c *Budgets) DescribeBudgetRequest(input *DescribeBudgetInput) (req *request.Request, output *DescribeBudgetOutput) { op := &request.Operation{ Name: opDescribeBudget, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeBudgetInput{} } output = &DescribeBudgetOutput{} req = c.newRequest(op, input, output) return } // DescribeBudget API operation for AWS Budgets. // // Describes a budget. // // The Request Syntax section shows the BudgetLimit syntax. For PlannedBudgetLimits, // see the Examples (https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_DescribeBudget.html#API_DescribeBudget_Examples) // section. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Budgets's // API operation DescribeBudget for usage and error information. // // Returned Error Types: // * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // // * InvalidParameterException // An error on the client occurred. Typically, the cause is an invalid input // value. // // * NotFoundException // We can’t locate the resource that you specified. // // * AccessDeniedException // You are not authorized to use this operation with the given parameters. // func (c *Budgets) DescribeBudget(input *DescribeBudgetInput) (*DescribeBudgetOutput, error) { req, out := c.DescribeBudgetRequest(input) return out, req.Send() } // DescribeBudgetWithContext is the same as DescribeBudget with the addition of // the ability to pass a context and additional request options. // // See DescribeBudget for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Budgets) DescribeBudgetWithContext(ctx aws.Context, input *DescribeBudgetInput, opts ...request.Option) (*DescribeBudgetOutput, error) { req, out := c.DescribeBudgetRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeBudgetAction = "DescribeBudgetAction" // DescribeBudgetActionRequest generates a "aws/request.Request" representing the // client's request for the DescribeBudgetAction operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeBudgetAction for more information on using the DescribeBudgetAction // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeBudgetActionRequest method. // req, resp := client.DescribeBudgetActionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } func (c *Budgets) DescribeBudgetActionRequest(input *DescribeBudgetActionInput) (req *request.Request, output *DescribeBudgetActionOutput) { op := &request.Operation{ Name: opDescribeBudgetAction, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeBudgetActionInput{} } output = &DescribeBudgetActionOutput{} req = c.newRequest(op, input, output) return } // DescribeBudgetAction API operation for AWS Budgets. // // Describes a budget action detail. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Budgets's // API operation DescribeBudgetAction for usage and error information. // // Returned Error Types: // * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // // * InvalidParameterException // An error on the client occurred. Typically, the cause is an invalid input // value. // // * NotFoundException // We can’t locate the resource that you specified. // // * AccessDeniedException // You are not authorized to use this operation with the given parameters. // func (c *Budgets) DescribeBudgetAction(input *DescribeBudgetActionInput) (*DescribeBudgetActionOutput, error) { req, out := c.DescribeBudgetActionRequest(input) return out, req.Send() } // DescribeBudgetActionWithContext is the same as DescribeBudgetAction with the addition of // the ability to pass a context and additional request options. // // See DescribeBudgetAction for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Budgets) DescribeBudgetActionWithContext(ctx aws.Context, input *DescribeBudgetActionInput, opts ...request.Option) (*DescribeBudgetActionOutput, error) { req, out := c.DescribeBudgetActionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeBudgetActionHistories = "DescribeBudgetActionHistories" // DescribeBudgetActionHistoriesRequest generates a "aws/request.Request" representing the // client's request for the DescribeBudgetActionHistories operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeBudgetActionHistories for more information on using the DescribeBudgetActionHistories // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeBudgetActionHistoriesRequest method. // req, resp := client.DescribeBudgetActionHistoriesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } func (c *Budgets) DescribeBudgetActionHistoriesRequest(input *DescribeBudgetActionHistoriesInput) (req *request.Request, output *DescribeBudgetActionHistoriesOutput) { op := &request.Operation{ Name: opDescribeBudgetActionHistories, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &DescribeBudgetActionHistoriesInput{} } output = &DescribeBudgetActionHistoriesOutput{} req = c.newRequest(op, input, output) return } // DescribeBudgetActionHistories API operation for AWS Budgets. // // Describes a budget action history detail. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Budgets's // API operation DescribeBudgetActionHistories for usage and error information. // // Returned Error Types: // * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // // * InvalidParameterException // An error on the client occurred. Typically, the cause is an invalid input // value. // // * NotFoundException // We can’t locate the resource that you specified. // // * AccessDeniedException // You are not authorized to use this operation with the given parameters. // // * InvalidNextTokenException // The pagination token is invalid. // func (c *Budgets) DescribeBudgetActionHistories(input *DescribeBudgetActionHistoriesInput) (*DescribeBudgetActionHistoriesOutput, error) { req, out := c.DescribeBudgetActionHistoriesRequest(input) return out, req.Send() } // DescribeBudgetActionHistoriesWithContext is the same as DescribeBudgetActionHistories with the addition of // the ability to pass a context and additional request options. // // See DescribeBudgetActionHistories for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Budgets) DescribeBudgetActionHistoriesWithContext(ctx aws.Context, input *DescribeBudgetActionHistoriesInput, opts ...request.Option) (*DescribeBudgetActionHistoriesOutput, error) { req, out := c.DescribeBudgetActionHistoriesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // DescribeBudgetActionHistoriesPages iterates over the pages of a DescribeBudgetActionHistories operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See DescribeBudgetActionHistories method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a DescribeBudgetActionHistories operation. // pageNum := 0 // err := client.DescribeBudgetActionHistoriesPages(params, // func(page *budgets.DescribeBudgetActionHistoriesOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *Budgets) DescribeBudgetActionHistoriesPages(input *DescribeBudgetActionHistoriesInput, fn func(*DescribeBudgetActionHistoriesOutput, bool) bool) error { return c.DescribeBudgetActionHistoriesPagesWithContext(aws.BackgroundContext(), input, fn) } // DescribeBudgetActionHistoriesPagesWithContext same as DescribeBudgetActionHistoriesPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Budgets) DescribeBudgetActionHistoriesPagesWithContext(ctx aws.Context, input *DescribeBudgetActionHistoriesInput, fn func(*DescribeBudgetActionHistoriesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *DescribeBudgetActionHistoriesInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.DescribeBudgetActionHistoriesRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*DescribeBudgetActionHistoriesOutput), !p.HasNextPage()) { break } } return p.Err() } const opDescribeBudgetActionsForAccount = "DescribeBudgetActionsForAccount" // DescribeBudgetActionsForAccountRequest generates a "aws/request.Request" representing the // client's request for the DescribeBudgetActionsForAccount operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeBudgetActionsForAccount for more information on using the DescribeBudgetActionsForAccount // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeBudgetActionsForAccountRequest method. // req, resp := client.DescribeBudgetActionsForAccountRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } func (c *Budgets) DescribeBudgetActionsForAccountRequest(input *DescribeBudgetActionsForAccountInput) (req *request.Request, output *DescribeBudgetActionsForAccountOutput) { op := &request.Operation{ Name: opDescribeBudgetActionsForAccount, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &DescribeBudgetActionsForAccountInput{} } output = &DescribeBudgetActionsForAccountOutput{} req = c.newRequest(op, input, output) return } // DescribeBudgetActionsForAccount API operation for AWS Budgets. // // Describes all of the budget actions for an account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Budgets's // API operation DescribeBudgetActionsForAccount for usage and error information. // // Returned Error Types: // * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // // * InvalidParameterException // An error on the client occurred. Typically, the cause is an invalid input // value. // // * AccessDeniedException // You are not authorized to use this operation with the given parameters. // // * InvalidNextTokenException // The pagination token is invalid. // func (c *Budgets) DescribeBudgetActionsForAccount(input *DescribeBudgetActionsForAccountInput) (*DescribeBudgetActionsForAccountOutput, error) { req, out := c.DescribeBudgetActionsForAccountRequest(input) return out, req.Send() } // DescribeBudgetActionsForAccountWithContext is the same as DescribeBudgetActionsForAccount with the addition of // the ability to pass a context and additional request options. // // See DescribeBudgetActionsForAccount for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Budgets) DescribeBudgetActionsForAccountWithContext(ctx aws.Context, input *DescribeBudgetActionsForAccountInput, opts ...request.Option) (*DescribeBudgetActionsForAccountOutput, error) { req, out := c.DescribeBudgetActionsForAccountRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // DescribeBudgetActionsForAccountPages iterates over the pages of a DescribeBudgetActionsForAccount operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See DescribeBudgetActionsForAccount method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a DescribeBudgetActionsForAccount operation. // pageNum := 0 // err := client.DescribeBudgetActionsForAccountPages(params, // func(page *budgets.DescribeBudgetActionsForAccountOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *Budgets) DescribeBudgetActionsForAccountPages(input *DescribeBudgetActionsForAccountInput, fn func(*DescribeBudgetActionsForAccountOutput, bool) bool) error { return c.DescribeBudgetActionsForAccountPagesWithContext(aws.BackgroundContext(), input, fn) } // DescribeBudgetActionsForAccountPagesWithContext same as DescribeBudgetActionsForAccountPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Budgets) DescribeBudgetActionsForAccountPagesWithContext(ctx aws.Context, input *DescribeBudgetActionsForAccountInput, fn func(*DescribeBudgetActionsForAccountOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *DescribeBudgetActionsForAccountInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.DescribeBudgetActionsForAccountRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*DescribeBudgetActionsForAccountOutput), !p.HasNextPage()) { break } } return p.Err() } const opDescribeBudgetActionsForBudget = "DescribeBudgetActionsForBudget" // DescribeBudgetActionsForBudgetRequest generates a "aws/request.Request" representing the // client's request for the DescribeBudgetActionsForBudget operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeBudgetActionsForBudget for more information on using the DescribeBudgetActionsForBudget // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeBudgetActionsForBudgetRequest method. // req, resp := client.DescribeBudgetActionsForBudgetRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } func (c *Budgets) DescribeBudgetActionsForBudgetRequest(input *DescribeBudgetActionsForBudgetInput) (req *request.Request, output *DescribeBudgetActionsForBudgetOutput) { op := &request.Operation{ Name: opDescribeBudgetActionsForBudget, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &DescribeBudgetActionsForBudgetInput{} } output = &DescribeBudgetActionsForBudgetOutput{} req = c.newRequest(op, input, output) return } // DescribeBudgetActionsForBudget API operation for AWS Budgets. // // Describes all of the budget actions for a budget. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Budgets's // API operation DescribeBudgetActionsForBudget for usage and error information. // // Returned Error Types: // * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // // * InvalidParameterException // An error on the client occurred. Typically, the cause is an invalid input // value. // // * NotFoundException // We can’t locate the resource that you specified. // // * AccessDeniedException // You are not authorized to use this operation with the given parameters. // // * InvalidNextTokenException // The pagination token is invalid. // func (c *Budgets) DescribeBudgetActionsForBudget(input *DescribeBudgetActionsForBudgetInput) (*DescribeBudgetActionsForBudgetOutput, error) { req, out := c.DescribeBudgetActionsForBudgetRequest(input) return out, req.Send() } // DescribeBudgetActionsForBudgetWithContext is the same as DescribeBudgetActionsForBudget with the addition of // the ability to pass a context and additional request options. // // See DescribeBudgetActionsForBudget for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Budgets) DescribeBudgetActionsForBudgetWithContext(ctx aws.Context, input *DescribeBudgetActionsForBudgetInput, opts ...request.Option) (*DescribeBudgetActionsForBudgetOutput, error) { req, out := c.DescribeBudgetActionsForBudgetRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // DescribeBudgetActionsForBudgetPages iterates over the pages of a DescribeBudgetActionsForBudget operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See DescribeBudgetActionsForBudget method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a DescribeBudgetActionsForBudget operation. // pageNum := 0 // err := client.DescribeBudgetActionsForBudgetPages(params, // func(page *budgets.DescribeBudgetActionsForBudgetOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *Budgets) DescribeBudgetActionsForBudgetPages(input *DescribeBudgetActionsForBudgetInput, fn func(*DescribeBudgetActionsForBudgetOutput, bool) bool) error { return c.DescribeBudgetActionsForBudgetPagesWithContext(aws.BackgroundContext(), input, fn) } // DescribeBudgetActionsForBudgetPagesWithContext same as DescribeBudgetActionsForBudgetPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Budgets) DescribeBudgetActionsForBudgetPagesWithContext(ctx aws.Context, input *DescribeBudgetActionsForBudgetInput, fn func(*DescribeBudgetActionsForBudgetOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *DescribeBudgetActionsForBudgetInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.DescribeBudgetActionsForBudgetRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*DescribeBudgetActionsForBudgetOutput), !p.HasNextPage()) { break } } return p.Err() } const opDescribeBudgetPerformanceHistory = "DescribeBudgetPerformanceHistory" // DescribeBudgetPerformanceHistoryRequest generates a "aws/request.Request" representing the // client's request for the DescribeBudgetPerformanceHistory operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeBudgetPerformanceHistory for more information on using the DescribeBudgetPerformanceHistory // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeBudgetPerformanceHistoryRequest method. // req, resp := client.DescribeBudgetPerformanceHistoryRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } func (c *Budgets) DescribeBudgetPerformanceHistoryRequest(input *DescribeBudgetPerformanceHistoryInput) (req *request.Request, output *DescribeBudgetPerformanceHistoryOutput) { op := &request.Operation{ Name: opDescribeBudgetPerformanceHistory, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &DescribeBudgetPerformanceHistoryInput{} } output = &DescribeBudgetPerformanceHistoryOutput{} req = c.newRequest(op, input, output) return } // DescribeBudgetPerformanceHistory API operation for AWS Budgets. // // Describes the history for DAILY, MONTHLY, and QUARTERLY budgets. Budget history // isn't available for ANNUAL budgets. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Budgets's // API operation DescribeBudgetPerformanceHistory for usage and error information. // // Returned Error Types: // * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // // * InvalidParameterException // An error on the client occurred. Typically, the cause is an invalid input // value. // // * NotFoundException // We can’t locate the resource that you specified. // // * InvalidNextTokenException // The pagination token is invalid. // // * ExpiredNextTokenException // The pagination token expired. // // * AccessDeniedException // You are not authorized to use this operation with the given parameters. // func (c *Budgets) DescribeBudgetPerformanceHistory(input *DescribeBudgetPerformanceHistoryInput) (*DescribeBudgetPerformanceHistoryOutput, error) { req, out := c.DescribeBudgetPerformanceHistoryRequest(input) return out, req.Send() } // DescribeBudgetPerformanceHistoryWithContext is the same as DescribeBudgetPerformanceHistory with the addition of // the ability to pass a context and additional request options. // // See DescribeBudgetPerformanceHistory for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Budgets) DescribeBudgetPerformanceHistoryWithContext(ctx aws.Context, input *DescribeBudgetPerformanceHistoryInput, opts ...request.Option) (*DescribeBudgetPerformanceHistoryOutput, error) { req, out := c.DescribeBudgetPerformanceHistoryRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // DescribeBudgetPerformanceHistoryPages iterates over the pages of a DescribeBudgetPerformanceHistory operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See DescribeBudgetPerformanceHistory method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a DescribeBudgetPerformanceHistory operation. // pageNum := 0 // err := client.DescribeBudgetPerformanceHistoryPages(params, // func(page *budgets.DescribeBudgetPerformanceHistoryOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *Budgets) DescribeBudgetPerformanceHistoryPages(input *DescribeBudgetPerformanceHistoryInput, fn func(*DescribeBudgetPerformanceHistoryOutput, bool) bool) error { return c.DescribeBudgetPerformanceHistoryPagesWithContext(aws.BackgroundContext(), input, fn) } // DescribeBudgetPerformanceHistoryPagesWithContext same as DescribeBudgetPerformanceHistoryPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Budgets) DescribeBudgetPerformanceHistoryPagesWithContext(ctx aws.Context, input *DescribeBudgetPerformanceHistoryInput, fn func(*DescribeBudgetPerformanceHistoryOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *DescribeBudgetPerformanceHistoryInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.DescribeBudgetPerformanceHistoryRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*DescribeBudgetPerformanceHistoryOutput), !p.HasNextPage()) { break } } return p.Err() } const opDescribeBudgets = "DescribeBudgets" // DescribeBudgetsRequest generates a "aws/request.Request" representing the // client's request for the DescribeBudgets operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeBudgets for more information on using the DescribeBudgets // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeBudgetsRequest method. // req, resp := client.DescribeBudgetsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } func (c *Budgets) DescribeBudgetsRequest(input *DescribeBudgetsInput) (req *request.Request, output *DescribeBudgetsOutput) { op := &request.Operation{ Name: opDescribeBudgets, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &DescribeBudgetsInput{} } output = &DescribeBudgetsOutput{} req = c.newRequest(op, input, output) return } // DescribeBudgets API operation for AWS Budgets. // // Lists the budgets that are associated with an account. // // The Request Syntax section shows the BudgetLimit syntax. For PlannedBudgetLimits, // see the Examples (https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_DescribeBudgets.html#API_DescribeBudgets_Examples) // section. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Budgets's // API operation DescribeBudgets for usage and error information. // // Returned Error Types: // * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // // * InvalidParameterException // An error on the client occurred. Typically, the cause is an invalid input // value. // // * NotFoundException // We can’t locate the resource that you specified. // // * InvalidNextTokenException // The pagination token is invalid. // // * ExpiredNextTokenException // The pagination token expired. // // * AccessDeniedException // You are not authorized to use this operation with the given parameters. // func (c *Budgets) DescribeBudgets(input *DescribeBudgetsInput) (*DescribeBudgetsOutput, error) { req, out := c.DescribeBudgetsRequest(input) return out, req.Send() } // DescribeBudgetsWithContext is the same as DescribeBudgets with the addition of // the ability to pass a context and additional request options. // // See DescribeBudgets for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Budgets) DescribeBudgetsWithContext(ctx aws.Context, input *DescribeBudgetsInput, opts ...request.Option) (*DescribeBudgetsOutput, error) { req, out := c.DescribeBudgetsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // DescribeBudgetsPages iterates over the pages of a DescribeBudgets operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See DescribeBudgets method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a DescribeBudgets operation. // pageNum := 0 // err := client.DescribeBudgetsPages(params, // func(page *budgets.DescribeBudgetsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *Budgets) DescribeBudgetsPages(input *DescribeBudgetsInput, fn func(*DescribeBudgetsOutput, bool) bool) error { return c.DescribeBudgetsPagesWithContext(aws.BackgroundContext(), input, fn) } // DescribeBudgetsPagesWithContext same as DescribeBudgetsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Budgets) DescribeBudgetsPagesWithContext(ctx aws.Context, input *DescribeBudgetsInput, fn func(*DescribeBudgetsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *DescribeBudgetsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.DescribeBudgetsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*DescribeBudgetsOutput), !p.HasNextPage()) { break } } return p.Err() } const opDescribeNotificationsForBudget = "DescribeNotificationsForBudget" // DescribeNotificationsForBudgetRequest generates a "aws/request.Request" representing the // client's request for the DescribeNotificationsForBudget operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeNotificationsForBudget for more information on using the DescribeNotificationsForBudget // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeNotificationsForBudgetRequest method. // req, resp := client.DescribeNotificationsForBudgetRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } func (c *Budgets) DescribeNotificationsForBudgetRequest(input *DescribeNotificationsForBudgetInput) (req *request.Request, output *DescribeNotificationsForBudgetOutput) { op := &request.Operation{ Name: opDescribeNotificationsForBudget, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &DescribeNotificationsForBudgetInput{} } output = &DescribeNotificationsForBudgetOutput{} req = c.newRequest(op, input, output) return } // DescribeNotificationsForBudget API operation for AWS Budgets. // // Lists the notifications that are associated with a budget. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Budgets's // API operation DescribeNotificationsForBudget for usage and error information. // // Returned Error Types: // * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // // * InvalidParameterException // An error on the client occurred. Typically, the cause is an invalid input // value. // // * NotFoundException // We can’t locate the resource that you specified. // // * InvalidNextTokenException // The pagination token is invalid. // // * ExpiredNextTokenException // The pagination token expired. // // * AccessDeniedException // You are not authorized to use this operation with the given parameters. // func (c *Budgets) DescribeNotificationsForBudget(input *DescribeNotificationsForBudgetInput) (*DescribeNotificationsForBudgetOutput, error) { req, out := c.DescribeNotificationsForBudgetRequest(input) return out, req.Send() } // DescribeNotificationsForBudgetWithContext is the same as DescribeNotificationsForBudget with the addition of // the ability to pass a context and additional request options. // // See DescribeNotificationsForBudget for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Budgets) DescribeNotificationsForBudgetWithContext(ctx aws.Context, input *DescribeNotificationsForBudgetInput, opts ...request.Option) (*DescribeNotificationsForBudgetOutput, error) { req, out := c.DescribeNotificationsForBudgetRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // DescribeNotificationsForBudgetPages iterates over the pages of a DescribeNotificationsForBudget operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See DescribeNotificationsForBudget method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a DescribeNotificationsForBudget operation. // pageNum := 0 // err := client.DescribeNotificationsForBudgetPages(params, // func(page *budgets.DescribeNotificationsForBudgetOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *Budgets) DescribeNotificationsForBudgetPages(input *DescribeNotificationsForBudgetInput, fn func(*DescribeNotificationsForBudgetOutput, bool) bool) error { return c.DescribeNotificationsForBudgetPagesWithContext(aws.BackgroundContext(), input, fn) } // DescribeNotificationsForBudgetPagesWithContext same as DescribeNotificationsForBudgetPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Budgets) DescribeNotificationsForBudgetPagesWithContext(ctx aws.Context, input *DescribeNotificationsForBudgetInput, fn func(*DescribeNotificationsForBudgetOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *DescribeNotificationsForBudgetInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.DescribeNotificationsForBudgetRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*DescribeNotificationsForBudgetOutput), !p.HasNextPage()) { break } } return p.Err() } const opDescribeSubscribersForNotification = "DescribeSubscribersForNotification" // DescribeSubscribersForNotificationRequest generates a "aws/request.Request" representing the // client's request for the DescribeSubscribersForNotification operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeSubscribersForNotification for more information on using the DescribeSubscribersForNotification // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeSubscribersForNotificationRequest method. // req, resp := client.DescribeSubscribersForNotificationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } func (c *Budgets) DescribeSubscribersForNotificationRequest(input *DescribeSubscribersForNotificationInput) (req *request.Request, output *DescribeSubscribersForNotificationOutput) { op := &request.Operation{ Name: opDescribeSubscribersForNotification, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &DescribeSubscribersForNotificationInput{} } output = &DescribeSubscribersForNotificationOutput{} req = c.newRequest(op, input, output) return } // DescribeSubscribersForNotification API operation for AWS Budgets. // // Lists the subscribers that are associated with a notification. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Budgets's // API operation DescribeSubscribersForNotification for usage and error information. // // Returned Error Types: // * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // // * NotFoundException // We can’t locate the resource that you specified. // // * InvalidParameterException // An error on the client occurred. Typically, the cause is an invalid input // value. // // * InvalidNextTokenException // The pagination token is invalid. // // * ExpiredNextTokenException // The pagination token expired. // // * AccessDeniedException // You are not authorized to use this operation with the given parameters. // func (c *Budgets) DescribeSubscribersForNotification(input *DescribeSubscribersForNotificationInput) (*DescribeSubscribersForNotificationOutput, error) { req, out := c.DescribeSubscribersForNotificationRequest(input) return out, req.Send() } // DescribeSubscribersForNotificationWithContext is the same as DescribeSubscribersForNotification with the addition of // the ability to pass a context and additional request options. // // See DescribeSubscribersForNotification for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Budgets) DescribeSubscribersForNotificationWithContext(ctx aws.Context, input *DescribeSubscribersForNotificationInput, opts ...request.Option) (*DescribeSubscribersForNotificationOutput, error) { req, out := c.DescribeSubscribersForNotificationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // DescribeSubscribersForNotificationPages iterates over the pages of a DescribeSubscribersForNotification operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See DescribeSubscribersForNotification method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a DescribeSubscribersForNotification operation. // pageNum := 0 // err := client.DescribeSubscribersForNotificationPages(params, // func(page *budgets.DescribeSubscribersForNotificationOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *Budgets) DescribeSubscribersForNotificationPages(input *DescribeSubscribersForNotificationInput, fn func(*DescribeSubscribersForNotificationOutput, bool) bool) error { return c.DescribeSubscribersForNotificationPagesWithContext(aws.BackgroundContext(), input, fn) } // DescribeSubscribersForNotificationPagesWithContext same as DescribeSubscribersForNotificationPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Budgets) DescribeSubscribersForNotificationPagesWithContext(ctx aws.Context, input *DescribeSubscribersForNotificationInput, fn func(*DescribeSubscribersForNotificationOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *DescribeSubscribersForNotificationInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.DescribeSubscribersForNotificationRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*DescribeSubscribersForNotificationOutput), !p.HasNextPage()) { break } } return p.Err() } const opExecuteBudgetAction = "ExecuteBudgetAction" // ExecuteBudgetActionRequest generates a "aws/request.Request" representing the // client's request for the ExecuteBudgetAction operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ExecuteBudgetAction for more information on using the ExecuteBudgetAction // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ExecuteBudgetActionRequest method. // req, resp := client.ExecuteBudgetActionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } func (c *Budgets) ExecuteBudgetActionRequest(input *ExecuteBudgetActionInput) (req *request.Request, output *ExecuteBudgetActionOutput) { op := &request.Operation{ Name: opExecuteBudgetAction, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &ExecuteBudgetActionInput{} } output = &ExecuteBudgetActionOutput{} req = c.newRequest(op, input, output) return } // ExecuteBudgetAction API operation for AWS Budgets. // // Executes a budget action. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Budgets's // API operation ExecuteBudgetAction for usage and error information. // // Returned Error Types: // * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // // * InvalidParameterException // An error on the client occurred. Typically, the cause is an invalid input // value. // // * NotFoundException // We can’t locate the resource that you specified. // // * AccessDeniedException // You are not authorized to use this operation with the given parameters. // // * ResourceLockedException // The request was received and recognized by the server, but the server rejected // that particular method for the requested resource. // func (c *Budgets) ExecuteBudgetAction(input *ExecuteBudgetActionInput) (*ExecuteBudgetActionOutput, error) { req, out := c.ExecuteBudgetActionRequest(input) return out, req.Send() } // ExecuteBudgetActionWithContext is the same as ExecuteBudgetAction with the addition of // the ability to pass a context and additional request options. // // See ExecuteBudgetAction for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Budgets) ExecuteBudgetActionWithContext(ctx aws.Context, input *ExecuteBudgetActionInput, opts ...request.Option) (*ExecuteBudgetActionOutput, error) { req, out := c.ExecuteBudgetActionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateBudget = "UpdateBudget" // UpdateBudgetRequest generates a "aws/request.Request" representing the // client's request for the UpdateBudget operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateBudget for more information on using the UpdateBudget // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateBudgetRequest method. // req, resp := client.UpdateBudgetRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } func (c *Budgets) UpdateBudgetRequest(input *UpdateBudgetInput) (req *request.Request, output *UpdateBudgetOutput) { op := &request.Operation{ Name: opUpdateBudget, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &UpdateBudgetInput{} } output = &UpdateBudgetOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // UpdateBudget API operation for AWS Budgets. // // Updates a budget. You can change every part of a budget except for the budgetName // and the calculatedSpend. When you modify a budget, the calculatedSpend drops // to zero until AWS has new usage data to use for forecasting. // // Only one of BudgetLimit or PlannedBudgetLimits can be present in the syntax // at one time. Use the syntax that matches your case. The Request Syntax section // shows the BudgetLimit syntax. For PlannedBudgetLimits, see the Examples (https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_UpdateBudget.html#API_UpdateBudget_Examples) // section. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Budgets's // API operation UpdateBudget for usage and error information. // // Returned Error Types: // * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // // * InvalidParameterException // An error on the client occurred. Typically, the cause is an invalid input // value. // // * NotFoundException // We can’t locate the resource that you specified. // // * AccessDeniedException // You are not authorized to use this operation with the given parameters. // func (c *Budgets) UpdateBudget(input *UpdateBudgetInput) (*UpdateBudgetOutput, error) { req, out := c.UpdateBudgetRequest(input) return out, req.Send() } // UpdateBudgetWithContext is the same as UpdateBudget with the addition of // the ability to pass a context and additional request options. // // See UpdateBudget for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Budgets) UpdateBudgetWithContext(ctx aws.Context, input *UpdateBudgetInput, opts ...request.Option) (*UpdateBudgetOutput, error) { req, out := c.UpdateBudgetRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateBudgetAction = "UpdateBudgetAction" // UpdateBudgetActionRequest generates a "aws/request.Request" representing the // client's request for the UpdateBudgetAction operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateBudgetAction for more information on using the UpdateBudgetAction // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateBudgetActionRequest method. // req, resp := client.UpdateBudgetActionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } func (c *Budgets) UpdateBudgetActionRequest(input *UpdateBudgetActionInput) (req *request.Request, output *UpdateBudgetActionOutput) { op := &request.Operation{ Name: opUpdateBudgetAction, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &UpdateBudgetActionInput{} } output = &UpdateBudgetActionOutput{} req = c.newRequest(op, input, output) return } // UpdateBudgetAction API operation for AWS Budgets. // // Updates a budget action. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Budgets's // API operation UpdateBudgetAction for usage and error information. // // Returned Error Types: // * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // // * InvalidParameterException // An error on the client occurred. Typically, the cause is an invalid input // value. // // * NotFoundException // We can’t locate the resource that you specified. // // * AccessDeniedException // You are not authorized to use this operation with the given parameters. // // * ResourceLockedException // The request was received and recognized by the server, but the server rejected // that particular method for the requested resource. // func (c *Budgets) UpdateBudgetAction(input *UpdateBudgetActionInput) (*UpdateBudgetActionOutput, error) { req, out := c.UpdateBudgetActionRequest(input) return out, req.Send() } // UpdateBudgetActionWithContext is the same as UpdateBudgetAction with the addition of // the ability to pass a context and additional request options. // // See UpdateBudgetAction for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Budgets) UpdateBudgetActionWithContext(ctx aws.Context, input *UpdateBudgetActionInput, opts ...request.Option) (*UpdateBudgetActionOutput, error) { req, out := c.UpdateBudgetActionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateNotification = "UpdateNotification" // UpdateNotificationRequest generates a "aws/request.Request" representing the // client's request for the UpdateNotification operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateNotification for more information on using the UpdateNotification // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateNotificationRequest method. // req, resp := client.UpdateNotificationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } func (c *Budgets) UpdateNotificationRequest(input *UpdateNotificationInput) (req *request.Request, output *UpdateNotificationOutput) { op := &request.Operation{ Name: opUpdateNotification, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &UpdateNotificationInput{} } output = &UpdateNotificationOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // UpdateNotification API operation for AWS Budgets. // // Updates a notification. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Budgets's // API operation UpdateNotification for usage and error information. // // Returned Error Types: // * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // // * InvalidParameterException // An error on the client occurred. Typically, the cause is an invalid input // value. // // * NotFoundException // We can’t locate the resource that you specified. // // * DuplicateRecordException // The budget name already exists. Budget names must be unique within an account. // // * AccessDeniedException // You are not authorized to use this operation with the given parameters. // func (c *Budgets) UpdateNotification(input *UpdateNotificationInput) (*UpdateNotificationOutput, error) { req, out := c.UpdateNotificationRequest(input) return out, req.Send() } // UpdateNotificationWithContext is the same as UpdateNotification with the addition of // the ability to pass a context and additional request options. // // See UpdateNotification for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Budgets) UpdateNotificationWithContext(ctx aws.Context, input *UpdateNotificationInput, opts ...request.Option) (*UpdateNotificationOutput, error) { req, out := c.UpdateNotificationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateSubscriber = "UpdateSubscriber" // UpdateSubscriberRequest generates a "aws/request.Request" representing the // client's request for the UpdateSubscriber operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateSubscriber for more information on using the UpdateSubscriber // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateSubscriberRequest method. // req, resp := client.UpdateSubscriberRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } func (c *Budgets) UpdateSubscriberRequest(input *UpdateSubscriberInput) (req *request.Request, output *UpdateSubscriberOutput) { op := &request.Operation{ Name: opUpdateSubscriber, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &UpdateSubscriberInput{} } output = &UpdateSubscriberOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // UpdateSubscriber API operation for AWS Budgets. // // Updates a subscriber. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Budgets's // API operation UpdateSubscriber for usage and error information. // // Returned Error Types: // * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // // * InvalidParameterException // An error on the client occurred. Typically, the cause is an invalid input // value. // // * NotFoundException // We can’t locate the resource that you specified. // // * DuplicateRecordException // The budget name already exists. Budget names must be unique within an account. // // * AccessDeniedException // You are not authorized to use this operation with the given parameters. // func (c *Budgets) UpdateSubscriber(input *UpdateSubscriberInput) (*UpdateSubscriberOutput, error) { req, out := c.UpdateSubscriberRequest(input) return out, req.Send() } // UpdateSubscriberWithContext is the same as UpdateSubscriber with the addition of // the ability to pass a context and additional request options. // // See UpdateSubscriber for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *Budgets) UpdateSubscriberWithContext(ctx aws.Context, input *UpdateSubscriberInput, opts ...request.Option) (*UpdateSubscriberOutput, error) { req, out := c.UpdateSubscriberRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // You are not authorized to use this operation with the given parameters. type AccessDeniedException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` // The error message the exception carries. Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s AccessDeniedException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AccessDeniedException) GoString() string { return s.String() } func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { return &AccessDeniedException{ RespMetadata: v, } } // Code returns the exception type name. func (s *AccessDeniedException) Code() string { return "AccessDeniedException" } // Message returns the exception's message. func (s *AccessDeniedException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *AccessDeniedException) OrigErr() error { return nil } func (s *AccessDeniedException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *AccessDeniedException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *AccessDeniedException) RequestID() string { return s.RespMetadata.RequestID } // A budget action resource. type Action struct { _ struct{} `type:"structure"` // A system-generated universally unique identifier (UUID) for the action. // // ActionId is a required field ActionId *string `min:"36" type:"string" required:"true"` // The trigger threshold of the action. // // ActionThreshold is a required field ActionThreshold *ActionThreshold `type:"structure" required:"true"` // The type of action. This defines the type of tasks that can be carried out // by this action. This field also determines the format for definition. // // ActionType is a required field ActionType *string `type:"string" required:"true" enum:"ActionType"` // This specifies if the action needs manual or automatic approval. // // ApprovalModel is a required field ApprovalModel *string `type:"string" required:"true" enum:"ApprovalModel"` // A string that represents the budget name. The ":" and "\" characters aren't // allowed. // // BudgetName is a required field BudgetName *string `min:"1" type:"string" required:"true"` // Where you specify all of the type-specific parameters. // // Definition is a required field Definition *Definition `type:"structure" required:"true"` // The role passed for action execution and reversion. Roles and actions must // be in the same account. // // ExecutionRoleArn is a required field ExecutionRoleArn *string `min:"32" type:"string" required:"true"` // The type of a notification. It must be ACTUAL or FORECASTED. // // NotificationType is a required field NotificationType *string `type:"string" required:"true" enum:"NotificationType"` // The status of action. // // Status is a required field Status *string `type:"string" required:"true" enum:"ActionStatus"` // A list of subscribers. // // Subscribers is a required field Subscribers []*Subscriber `min:"1" type:"list" required:"true"` } // String returns the string representation func (s Action) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Action) GoString() string { return s.String() } // SetActionId sets the ActionId field's value. func (s *Action) SetActionId(v string) *Action { s.ActionId = &v return s } // SetActionThreshold sets the ActionThreshold field's value. func (s *Action) SetActionThreshold(v *ActionThreshold) *Action { s.ActionThreshold = v return s } // SetActionType sets the ActionType field's value. func (s *Action) SetActionType(v string) *Action { s.ActionType = &v return s } // SetApprovalModel sets the ApprovalModel field's value. func (s *Action) SetApprovalModel(v string) *Action { s.ApprovalModel = &v return s } // SetBudgetName sets the BudgetName field's value. func (s *Action) SetBudgetName(v string) *Action { s.BudgetName = &v return s } // SetDefinition sets the Definition field's value. func (s *Action) SetDefinition(v *Definition) *Action { s.Definition = v return s } // SetExecutionRoleArn sets the ExecutionRoleArn field's value. func (s *Action) SetExecutionRoleArn(v string) *Action { s.ExecutionRoleArn = &v return s } // SetNotificationType sets the NotificationType field's value. func (s *Action) SetNotificationType(v string) *Action { s.NotificationType = &v return s } // SetStatus sets the Status field's value. func (s *Action) SetStatus(v string) *Action { s.Status = &v return s } // SetSubscribers sets the Subscribers field's value. func (s *Action) SetSubscribers(v []*Subscriber) *Action { s.Subscribers = v return s } // The historical records for a budget action. type ActionHistory struct { _ struct{} `type:"structure"` // The description of details of the event. // // ActionHistoryDetails is a required field ActionHistoryDetails *ActionHistoryDetails `type:"structure" required:"true"` // This distinguishes between whether the events are triggered by the user or // generated by the system. // // EventType is a required field EventType *string `type:"string" required:"true" enum:"EventType"` // The status of action at the time of the event. // // Status is a required field Status *string `type:"string" required:"true" enum:"ActionStatus"` // A generic time stamp. In Java, it is transformed to a Date object. // // Timestamp is a required field Timestamp *time.Time `type:"timestamp" required:"true"` } // String returns the string representation func (s ActionHistory) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ActionHistory) GoString() string { return s.String() } // SetActionHistoryDetails sets the ActionHistoryDetails field's value. func (s *ActionHistory) SetActionHistoryDetails(v *ActionHistoryDetails) *ActionHistory { s.ActionHistoryDetails = v return s } // SetEventType sets the EventType field's value. func (s *ActionHistory) SetEventType(v string) *ActionHistory { s.EventType = &v return s } // SetStatus sets the Status field's value. func (s *ActionHistory) SetStatus(v string) *ActionHistory { s.Status = &v return s } // SetTimestamp sets the Timestamp field's value. func (s *ActionHistory) SetTimestamp(v time.Time) *ActionHistory { s.Timestamp = &v return s } // The description of details of the event. type ActionHistoryDetails struct { _ struct{} `type:"structure"` // The budget action resource. // // Action is a required field Action *Action `type:"structure" required:"true"` // A generic string. // // Message is a required field Message *string `type:"string" required:"true"` } // String returns the string representation func (s ActionHistoryDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ActionHistoryDetails) GoString() string { return s.String() } // SetAction sets the Action field's value. func (s *ActionHistoryDetails) SetAction(v *Action) *ActionHistoryDetails { s.Action = v return s } // SetMessage sets the Message field's value. func (s *ActionHistoryDetails) SetMessage(v string) *ActionHistoryDetails { s.Message = &v return s } // The trigger threshold of the action. type ActionThreshold struct { _ struct{} `type:"structure"` // The type of threshold for a notification. // // ActionThresholdType is a required field ActionThresholdType *string `type:"string" required:"true" enum:"ThresholdType"` // The threshold of a notification. // // ActionThresholdValue is a required field ActionThresholdValue *float64 `type:"double" required:"true"` } // String returns the string representation func (s ActionThreshold) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ActionThreshold) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ActionThreshold) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ActionThreshold"} if s.ActionThresholdType == nil { invalidParams.Add(request.NewErrParamRequired("ActionThresholdType")) } if s.ActionThresholdValue == nil { invalidParams.Add(request.NewErrParamRequired("ActionThresholdValue")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetActionThresholdType sets the ActionThresholdType field's value. func (s *ActionThreshold) SetActionThresholdType(v string) *ActionThreshold { s.ActionThresholdType = &v return s } // SetActionThresholdValue sets the ActionThresholdValue field's value. func (s *ActionThreshold) SetActionThresholdValue(v float64) *ActionThreshold { s.ActionThresholdValue = &v return s } // Represents the output of the CreateBudget operation. The content consists // of the detailed metadata and data file information, and the current status // of the budget object. // // This is the ARN pattern for a budget: // // arn:aws:budgets::AccountId:budget/budgetName type Budget struct { _ struct{} `type:"structure"` // The total amount of cost, usage, RI utilization, RI coverage, Savings Plans // utilization, or Savings Plans coverage that you want to track with your budget. // // BudgetLimit is required for cost or usage budgets, but optional for RI or // Savings Plans utilization or coverage budgets. RI and Savings Plans utilization // or coverage budgets default to 100, which is the only valid value for RI // or Savings Plans utilization or coverage budgets. You can't use BudgetLimit // with PlannedBudgetLimits for CreateBudget and UpdateBudget actions. BudgetLimit *Spend `type:"structure"` // The name of a budget. The name must be unique within an account. The : and // \ characters aren't allowed in BudgetName. // // BudgetName is a required field BudgetName *string `min:"1" type:"string" required:"true"` // Whether this budget tracks costs, usage, RI utilization, RI coverage, Savings // Plans utilization, or Savings Plans coverage. // // BudgetType is a required field BudgetType *string `type:"string" required:"true" enum:"BudgetType"` // The actual and forecasted cost or usage that the budget tracks. CalculatedSpend *CalculatedSpend `type:"structure"` // The cost filters, such as service or tag, that are applied to a budget. // // AWS Budgets supports the following services as a filter for RI budgets: // // * Amazon Elastic Compute Cloud - Compute // // * Amazon Redshift // // * Amazon Relational Database Service // // * Amazon ElastiCache // // * Amazon Elasticsearch Service CostFilters map[string][]*string `type:"map"` // The types of costs that are included in this COST budget. // // USAGE, RI_UTILIZATION, RI_COVERAGE, SAVINGS_PLANS_UTILIZATION, and SAVINGS_PLANS_COVERAGE // budgets do not have CostTypes. CostTypes *CostTypes `type:"structure"` // The last time that you updated this budget. LastUpdatedTime *time.Time `type:"timestamp"` // A map containing multiple BudgetLimit, including current or future limits. // // PlannedBudgetLimits is available for cost or usage budget and supports monthly // and quarterly TimeUnit. // // For monthly budgets, provide 12 months of PlannedBudgetLimits values. This // must start from the current month and include the next 11 months. The key // is the start of the month, UTC in epoch seconds. // // For quarterly budgets, provide 4 quarters of PlannedBudgetLimits value entries // in standard calendar quarter increments. This must start from the current // quarter and include the next 3 quarters. The key is the start of the quarter, // UTC in epoch seconds. // // If the planned budget expires before 12 months for monthly or 4 quarters // for quarterly, provide the PlannedBudgetLimits values only for the remaining // periods. // // If the budget begins at a date in the future, provide PlannedBudgetLimits // values from the start date of the budget. // // After all of the BudgetLimit values in PlannedBudgetLimits are used, the // budget continues to use the last limit as the BudgetLimit. At that point, // the planned budget provides the same experience as a fixed budget. // // DescribeBudget and DescribeBudgets response along with PlannedBudgetLimits // will also contain BudgetLimit representing the current month or quarter limit // present in PlannedBudgetLimits. This only applies to budgets created with // PlannedBudgetLimits. Budgets created without PlannedBudgetLimits will only // contain BudgetLimit, and no PlannedBudgetLimits. PlannedBudgetLimits map[string]*Spend `type:"map"` // The period of time that is covered by a budget. The period has a start date // and an end date. The start date must come before the end date. The end date // must come before 06/15/87 00:00 UTC. // // If you create your budget and don't specify a start date, AWS defaults to // the start of your chosen time period (DAILY, MONTHLY, QUARTERLY, or ANNUALLY). // For example, if you created your budget on January 24, 2018, chose DAILY, // and didn't set a start date, AWS set your start date to 01/24/18 00:00 UTC. // If you chose MONTHLY, AWS set your start date to 01/01/18 00:00 UTC. If you // didn't specify an end date, AWS set your end date to 06/15/87 00:00 UTC. // The defaults are the same for the AWS Billing and Cost Management console // and the API. // // You can change either date with the UpdateBudget operation. // // After the end date, AWS deletes the budget and all associated notifications // and subscribers. TimePeriod *TimePeriod `type:"structure"` // The length of time until a budget resets the actual and forecasted spend. // // TimeUnit is a required field TimeUnit *string `type:"string" required:"true" enum:"TimeUnit"` } // String returns the string representation func (s Budget) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Budget) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *Budget) Validate() error { invalidParams := request.ErrInvalidParams{Context: "Budget"} if s.BudgetName == nil { invalidParams.Add(request.NewErrParamRequired("BudgetName")) } if s.BudgetName != nil && len(*s.BudgetName) < 1 { invalidParams.Add(request.NewErrParamMinLen("BudgetName", 1)) } if s.BudgetType == nil { invalidParams.Add(request.NewErrParamRequired("BudgetType")) } if s.TimeUnit == nil { invalidParams.Add(request.NewErrParamRequired("TimeUnit")) } if s.BudgetLimit != nil { if err := s.BudgetLimit.Validate(); err != nil { invalidParams.AddNested("BudgetLimit", err.(request.ErrInvalidParams)) } } if s.CalculatedSpend != nil { if err := s.CalculatedSpend.Validate(); err != nil { invalidParams.AddNested("CalculatedSpend", err.(request.ErrInvalidParams)) } } if s.PlannedBudgetLimits != nil { for i, v := range s.PlannedBudgetLimits { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PlannedBudgetLimits", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetBudgetLimit sets the BudgetLimit field's value. func (s *Budget) SetBudgetLimit(v *Spend) *Budget { s.BudgetLimit = v return s } // SetBudgetName sets the BudgetName field's value. func (s *Budget) SetBudgetName(v string) *Budget { s.BudgetName = &v return s } // SetBudgetType sets the BudgetType field's value. func (s *Budget) SetBudgetType(v string) *Budget { s.BudgetType = &v return s } // SetCalculatedSpend sets the CalculatedSpend field's value. func (s *Budget) SetCalculatedSpend(v *CalculatedSpend) *Budget { s.CalculatedSpend = v return s } // SetCostFilters sets the CostFilters field's value. func (s *Budget) SetCostFilters(v map[string][]*string) *Budget { s.CostFilters = v return s } // SetCostTypes sets the CostTypes field's value. func (s *Budget) SetCostTypes(v *CostTypes) *Budget { s.CostTypes = v return s } // SetLastUpdatedTime sets the LastUpdatedTime field's value. func (s *Budget) SetLastUpdatedTime(v time.Time) *Budget { s.LastUpdatedTime = &v return s } // SetPlannedBudgetLimits sets the PlannedBudgetLimits field's value. func (s *Budget) SetPlannedBudgetLimits(v map[string]*Spend) *Budget { s.PlannedBudgetLimits = v return s } // SetTimePeriod sets the TimePeriod field's value. func (s *Budget) SetTimePeriod(v *TimePeriod) *Budget { s.TimePeriod = v return s } // SetTimeUnit sets the TimeUnit field's value. func (s *Budget) SetTimeUnit(v string) *Budget { s.TimeUnit = &v return s } // A history of the state of a budget at the end of the budget's specified time // period. type BudgetPerformanceHistory struct { _ struct{} `type:"structure"` // A string that represents the budget name. The ":" and "\" characters aren't // allowed. BudgetName *string `min:"1" type:"string"` // The type of a budget. It must be one of the following types: // // COST, USAGE, RI_UTILIZATION, RI_COVERAGE, SAVINGS_PLANS_UTILIZATION, or SAVINGS_PLANS_COVERAGE. BudgetType *string `type:"string" enum:"BudgetType"` // A list of amounts of cost or usage that you created budgets for, compared // to your actual costs or usage. BudgetedAndActualAmountsList []*BudgetedAndActualAmounts `type:"list"` // The history of the cost filters for a budget during the specified time period. CostFilters map[string][]*string `type:"map"` // The history of the cost types for a budget during the specified time period. CostTypes *CostTypes `type:"structure"` // The time unit of the budget, such as MONTHLY or QUARTERLY. TimeUnit *string `type:"string" enum:"TimeUnit"` } // String returns the string representation func (s BudgetPerformanceHistory) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s BudgetPerformanceHistory) GoString() string { return s.String() } // SetBudgetName sets the BudgetName field's value. func (s *BudgetPerformanceHistory) SetBudgetName(v string) *BudgetPerformanceHistory { s.BudgetName = &v return s } // SetBudgetType sets the BudgetType field's value. func (s *BudgetPerformanceHistory) SetBudgetType(v string) *BudgetPerformanceHistory { s.BudgetType = &v return s } // SetBudgetedAndActualAmountsList sets the BudgetedAndActualAmountsList field's value. func (s *BudgetPerformanceHistory) SetBudgetedAndActualAmountsList(v []*BudgetedAndActualAmounts) *BudgetPerformanceHistory { s.BudgetedAndActualAmountsList = v return s } // SetCostFilters sets the CostFilters field's value. func (s *BudgetPerformanceHistory) SetCostFilters(v map[string][]*string) *BudgetPerformanceHistory { s.CostFilters = v return s } // SetCostTypes sets the CostTypes field's value. func (s *BudgetPerformanceHistory) SetCostTypes(v *CostTypes) *BudgetPerformanceHistory { s.CostTypes = v return s } // SetTimeUnit sets the TimeUnit field's value. func (s *BudgetPerformanceHistory) SetTimeUnit(v string) *BudgetPerformanceHistory { s.TimeUnit = &v return s } // The amount of cost or usage that you created the budget for, compared to // your actual costs or usage. type BudgetedAndActualAmounts struct { _ struct{} `type:"structure"` // Your actual costs or usage for a budget period. ActualAmount *Spend `type:"structure"` // The amount of cost or usage that you created the budget for. BudgetedAmount *Spend `type:"structure"` // The time period covered by this budget comparison. TimePeriod *TimePeriod `type:"structure"` } // String returns the string representation func (s BudgetedAndActualAmounts) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s BudgetedAndActualAmounts) GoString() string { return s.String() } // SetActualAmount sets the ActualAmount field's value. func (s *BudgetedAndActualAmounts) SetActualAmount(v *Spend) *BudgetedAndActualAmounts { s.ActualAmount = v return s } // SetBudgetedAmount sets the BudgetedAmount field's value. func (s *BudgetedAndActualAmounts) SetBudgetedAmount(v *Spend) *BudgetedAndActualAmounts { s.BudgetedAmount = v return s } // SetTimePeriod sets the TimePeriod field's value. func (s *BudgetedAndActualAmounts) SetTimePeriod(v *TimePeriod) *BudgetedAndActualAmounts { s.TimePeriod = v return s } // The spend objects that are associated with this budget. The actualSpend tracks // how much you've used, cost, usage, RI units, or Savings Plans units and the // forecastedSpend tracks how much you are predicted to spend based on your // historical usage profile. // // For example, if it is the 20th of the month and you have spent 50 dollars // on Amazon EC2, your actualSpend is 50 USD, and your forecastedSpend is 75 // USD. type CalculatedSpend struct { _ struct{} `type:"structure"` // The amount of cost, usage, RI units, or Savings Plans units that you have // used. // // ActualSpend is a required field ActualSpend *Spend `type:"structure" required:"true"` // The amount of cost, usage, RI units, or Savings Plans units that you are // forecasted to use. ForecastedSpend *Spend `type:"structure"` } // String returns the string representation func (s CalculatedSpend) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CalculatedSpend) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CalculatedSpend) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CalculatedSpend"} if s.ActualSpend == nil { invalidParams.Add(request.NewErrParamRequired("ActualSpend")) } if s.ActualSpend != nil { if err := s.ActualSpend.Validate(); err != nil { invalidParams.AddNested("ActualSpend", err.(request.ErrInvalidParams)) } } if s.ForecastedSpend != nil { if err := s.ForecastedSpend.Validate(); err != nil { invalidParams.AddNested("ForecastedSpend", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetActualSpend sets the ActualSpend field's value. func (s *CalculatedSpend) SetActualSpend(v *Spend) *CalculatedSpend { s.ActualSpend = v return s } // SetForecastedSpend sets the ForecastedSpend field's value. func (s *CalculatedSpend) SetForecastedSpend(v *Spend) *CalculatedSpend { s.ForecastedSpend = v return s } // The types of cost that are included in a COST budget, such as tax and subscriptions. // // USAGE, RI_UTILIZATION, RI_COVERAGE, SAVINGS_PLANS_UTILIZATION, and SAVINGS_PLANS_COVERAGE // budgets do not have CostTypes. type CostTypes struct { _ struct{} `type:"structure"` // Specifies whether a budget includes credits. // // The default value is true. IncludeCredit *bool `type:"boolean"` // Specifies whether a budget includes discounts. // // The default value is true. IncludeDiscount *bool `type:"boolean"` // Specifies whether a budget includes non-RI subscription costs. // // The default value is true. IncludeOtherSubscription *bool `type:"boolean"` // Specifies whether a budget includes recurring fees such as monthly RI fees. // // The default value is true. IncludeRecurring *bool `type:"boolean"` // Specifies whether a budget includes refunds. // // The default value is true. IncludeRefund *bool `type:"boolean"` // Specifies whether a budget includes subscriptions. // // The default value is true. IncludeSubscription *bool `type:"boolean"` // Specifies whether a budget includes support subscription fees. // // The default value is true. IncludeSupport *bool `type:"boolean"` // Specifies whether a budget includes taxes. // // The default value is true. IncludeTax *bool `type:"boolean"` // Specifies whether a budget includes upfront RI costs. // // The default value is true. IncludeUpfront *bool `type:"boolean"` // Specifies whether a budget uses the amortized rate. // // The default value is false. UseAmortized *bool `type:"boolean"` // Specifies whether a budget uses a blended rate. // // The default value is false. UseBlended *bool `type:"boolean"` } // String returns the string representation func (s CostTypes) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CostTypes) GoString() string { return s.String() } // SetIncludeCredit sets the IncludeCredit field's value. func (s *CostTypes) SetIncludeCredit(v bool) *CostTypes { s.IncludeCredit = &v return s } // SetIncludeDiscount sets the IncludeDiscount field's value. func (s *CostTypes) SetIncludeDiscount(v bool) *CostTypes { s.IncludeDiscount = &v return s } // SetIncludeOtherSubscription sets the IncludeOtherSubscription field's value. func (s *CostTypes) SetIncludeOtherSubscription(v bool) *CostTypes { s.IncludeOtherSubscription = &v return s } // SetIncludeRecurring sets the IncludeRecurring field's value. func (s *CostTypes) SetIncludeRecurring(v bool) *CostTypes { s.IncludeRecurring = &v return s } // SetIncludeRefund sets the IncludeRefund field's value. func (s *CostTypes) SetIncludeRefund(v bool) *CostTypes { s.IncludeRefund = &v return s } // SetIncludeSubscription sets the IncludeSubscription field's value. func (s *CostTypes) SetIncludeSubscription(v bool) *CostTypes { s.IncludeSubscription = &v return s } // SetIncludeSupport sets the IncludeSupport field's value. func (s *CostTypes) SetIncludeSupport(v bool) *CostTypes { s.IncludeSupport = &v return s } // SetIncludeTax sets the IncludeTax field's value. func (s *CostTypes) SetIncludeTax(v bool) *CostTypes { s.IncludeTax = &v return s } // SetIncludeUpfront sets the IncludeUpfront field's value. func (s *CostTypes) SetIncludeUpfront(v bool) *CostTypes { s.IncludeUpfront = &v return s } // SetUseAmortized sets the UseAmortized field's value. func (s *CostTypes) SetUseAmortized(v bool) *CostTypes { s.UseAmortized = &v return s } // SetUseBlended sets the UseBlended field's value. func (s *CostTypes) SetUseBlended(v bool) *CostTypes { s.UseBlended = &v return s } type CreateBudgetActionInput struct { _ struct{} `type:"structure"` // The account ID of the user. It should be a 12-digit number. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // The trigger threshold of the action. // // ActionThreshold is a required field ActionThreshold *ActionThreshold `type:"structure" required:"true"` // The type of action. This defines the type of tasks that can be carried out // by this action. This field also determines the format for definition. // // ActionType is a required field ActionType *string `type:"string" required:"true" enum:"ActionType"` // This specifies if the action needs manual or automatic approval. // // ApprovalModel is a required field ApprovalModel *string `type:"string" required:"true" enum:"ApprovalModel"` // A string that represents the budget name. The ":" and "\" characters aren't // allowed. // // BudgetName is a required field BudgetName *string `min:"1" type:"string" required:"true"` // Specifies all of the type-specific parameters. // // Definition is a required field Definition *Definition `type:"structure" required:"true"` // The role passed for action execution and reversion. Roles and actions must // be in the same account. // // ExecutionRoleArn is a required field ExecutionRoleArn *string `min:"32" type:"string" required:"true"` // The type of a notification. It must be ACTUAL or FORECASTED. // // NotificationType is a required field NotificationType *string `type:"string" required:"true" enum:"NotificationType"` // A list of subscribers. // // Subscribers is a required field Subscribers []*Subscriber `min:"1" type:"list" required:"true"` } // String returns the string representation func (s CreateBudgetActionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateBudgetActionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateBudgetActionInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateBudgetActionInput"} if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } if s.AccountId != nil && len(*s.AccountId) < 12 { invalidParams.Add(request.NewErrParamMinLen("AccountId", 12)) } if s.ActionThreshold == nil { invalidParams.Add(request.NewErrParamRequired("ActionThreshold")) } if s.ActionType == nil { invalidParams.Add(request.NewErrParamRequired("ActionType")) } if s.ApprovalModel == nil { invalidParams.Add(request.NewErrParamRequired("ApprovalModel")) } if s.BudgetName == nil { invalidParams.Add(request.NewErrParamRequired("BudgetName")) } if s.BudgetName != nil && len(*s.BudgetName) < 1 { invalidParams.Add(request.NewErrParamMinLen("BudgetName", 1)) } if s.Definition == nil { invalidParams.Add(request.NewErrParamRequired("Definition")) } if s.ExecutionRoleArn == nil { invalidParams.Add(request.NewErrParamRequired("ExecutionRoleArn")) } if s.ExecutionRoleArn != nil && len(*s.ExecutionRoleArn) < 32 { invalidParams.Add(request.NewErrParamMinLen("ExecutionRoleArn", 32)) } if s.NotificationType == nil { invalidParams.Add(request.NewErrParamRequired("NotificationType")) } if s.Subscribers == nil { invalidParams.Add(request.NewErrParamRequired("Subscribers")) } if s.Subscribers != nil && len(s.Subscribers) < 1 { invalidParams.Add(request.NewErrParamMinLen("Subscribers", 1)) } if s.ActionThreshold != nil { if err := s.ActionThreshold.Validate(); err != nil { invalidParams.AddNested("ActionThreshold", err.(request.ErrInvalidParams)) } } if s.Definition != nil { if err := s.Definition.Validate(); err != nil { invalidParams.AddNested("Definition", err.(request.ErrInvalidParams)) } } if s.Subscribers != nil { for i, v := range s.Subscribers { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Subscribers", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAccountId sets the AccountId field's value. func (s *CreateBudgetActionInput) SetAccountId(v string) *CreateBudgetActionInput { s.AccountId = &v return s } // SetActionThreshold sets the ActionThreshold field's value. func (s *CreateBudgetActionInput) SetActionThreshold(v *ActionThreshold) *CreateBudgetActionInput { s.ActionThreshold = v return s } // SetActionType sets the ActionType field's value. func (s *CreateBudgetActionInput) SetActionType(v string) *CreateBudgetActionInput { s.ActionType = &v return s } // SetApprovalModel sets the ApprovalModel field's value. func (s *CreateBudgetActionInput) SetApprovalModel(v string) *CreateBudgetActionInput { s.ApprovalModel = &v return s } // SetBudgetName sets the BudgetName field's value. func (s *CreateBudgetActionInput) SetBudgetName(v string) *CreateBudgetActionInput { s.BudgetName = &v return s } // SetDefinition sets the Definition field's value. func (s *CreateBudgetActionInput) SetDefinition(v *Definition) *CreateBudgetActionInput { s.Definition = v return s } // SetExecutionRoleArn sets the ExecutionRoleArn field's value. func (s *CreateBudgetActionInput) SetExecutionRoleArn(v string) *CreateBudgetActionInput { s.ExecutionRoleArn = &v return s } // SetNotificationType sets the NotificationType field's value. func (s *CreateBudgetActionInput) SetNotificationType(v string) *CreateBudgetActionInput { s.NotificationType = &v return s } // SetSubscribers sets the Subscribers field's value. func (s *CreateBudgetActionInput) SetSubscribers(v []*Subscriber) *CreateBudgetActionInput { s.Subscribers = v return s } type CreateBudgetActionOutput struct { _ struct{} `type:"structure"` // The account ID of the user. It should be a 12-digit number. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // A system-generated universally unique identifier (UUID) for the action. // // ActionId is a required field ActionId *string `min:"36" type:"string" required:"true"` // A string that represents the budget name. The ":" and "\" characters aren't // allowed. // // BudgetName is a required field BudgetName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s CreateBudgetActionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateBudgetActionOutput) GoString() string { return s.String() } // SetAccountId sets the AccountId field's value. func (s *CreateBudgetActionOutput) SetAccountId(v string) *CreateBudgetActionOutput { s.AccountId = &v return s } // SetActionId sets the ActionId field's value. func (s *CreateBudgetActionOutput) SetActionId(v string) *CreateBudgetActionOutput { s.ActionId = &v return s } // SetBudgetName sets the BudgetName field's value. func (s *CreateBudgetActionOutput) SetBudgetName(v string) *CreateBudgetActionOutput { s.BudgetName = &v return s } // Request of CreateBudget type CreateBudgetInput struct { _ struct{} `type:"structure"` // The accountId that is associated with the budget. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // The budget object that you want to create. // // Budget is a required field Budget *Budget `type:"structure" required:"true"` // A notification that you want to associate with a budget. A budget can have // up to five notifications, and each notification can have one SNS subscriber // and up to 10 email subscribers. If you include notifications and subscribers // in your CreateBudget call, AWS creates the notifications and subscribers // for you. NotificationsWithSubscribers []*NotificationWithSubscribers `type:"list"` } // String returns the string representation func (s CreateBudgetInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateBudgetInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateBudgetInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateBudgetInput"} if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } if s.AccountId != nil && len(*s.AccountId) < 12 { invalidParams.Add(request.NewErrParamMinLen("AccountId", 12)) } if s.Budget == nil { invalidParams.Add(request.NewErrParamRequired("Budget")) } if s.Budget != nil { if err := s.Budget.Validate(); err != nil { invalidParams.AddNested("Budget", err.(request.ErrInvalidParams)) } } if s.NotificationsWithSubscribers != nil { for i, v := range s.NotificationsWithSubscribers { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "NotificationsWithSubscribers", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAccountId sets the AccountId field's value. func (s *CreateBudgetInput) SetAccountId(v string) *CreateBudgetInput { s.AccountId = &v return s } // SetBudget sets the Budget field's value. func (s *CreateBudgetInput) SetBudget(v *Budget) *CreateBudgetInput { s.Budget = v return s } // SetNotificationsWithSubscribers sets the NotificationsWithSubscribers field's value. func (s *CreateBudgetInput) SetNotificationsWithSubscribers(v []*NotificationWithSubscribers) *CreateBudgetInput { s.NotificationsWithSubscribers = v return s } // Response of CreateBudget type CreateBudgetOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s CreateBudgetOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateBudgetOutput) GoString() string { return s.String() } // Request of CreateNotification type CreateNotificationInput struct { _ struct{} `type:"structure"` // The accountId that is associated with the budget that you want to create // a notification for. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // The name of the budget that you want AWS to notify you about. Budget names // must be unique within an account. // // BudgetName is a required field BudgetName *string `min:"1" type:"string" required:"true"` // The notification that you want to create. // // Notification is a required field Notification *Notification `type:"structure" required:"true"` // A list of subscribers that you want to associate with the notification. Each // notification can have one SNS subscriber and up to 10 email subscribers. // // Subscribers is a required field Subscribers []*Subscriber `min:"1" type:"list" required:"true"` } // String returns the string representation func (s CreateNotificationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateNotificationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateNotificationInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateNotificationInput"} if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } if s.AccountId != nil && len(*s.AccountId) < 12 { invalidParams.Add(request.NewErrParamMinLen("AccountId", 12)) } if s.BudgetName == nil { invalidParams.Add(request.NewErrParamRequired("BudgetName")) } if s.BudgetName != nil && len(*s.BudgetName) < 1 { invalidParams.Add(request.NewErrParamMinLen("BudgetName", 1)) } if s.Notification == nil { invalidParams.Add(request.NewErrParamRequired("Notification")) } if s.Subscribers == nil { invalidParams.Add(request.NewErrParamRequired("Subscribers")) } if s.Subscribers != nil && len(s.Subscribers) < 1 { invalidParams.Add(request.NewErrParamMinLen("Subscribers", 1)) } if s.Notification != nil { if err := s.Notification.Validate(); err != nil { invalidParams.AddNested("Notification", err.(request.ErrInvalidParams)) } } if s.Subscribers != nil { for i, v := range s.Subscribers { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Subscribers", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAccountId sets the AccountId field's value. func (s *CreateNotificationInput) SetAccountId(v string) *CreateNotificationInput { s.AccountId = &v return s } // SetBudgetName sets the BudgetName field's value. func (s *CreateNotificationInput) SetBudgetName(v string) *CreateNotificationInput { s.BudgetName = &v return s } // SetNotification sets the Notification field's value. func (s *CreateNotificationInput) SetNotification(v *Notification) *CreateNotificationInput { s.Notification = v return s } // SetSubscribers sets the Subscribers field's value. func (s *CreateNotificationInput) SetSubscribers(v []*Subscriber) *CreateNotificationInput { s.Subscribers = v return s } // Response of CreateNotification type CreateNotificationOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s CreateNotificationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateNotificationOutput) GoString() string { return s.String() } // Request of CreateSubscriber type CreateSubscriberInput struct { _ struct{} `type:"structure"` // The accountId that is associated with the budget that you want to create // a subscriber for. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // The name of the budget that you want to subscribe to. Budget names must be // unique within an account. // // BudgetName is a required field BudgetName *string `min:"1" type:"string" required:"true"` // The notification that you want to create a subscriber for. // // Notification is a required field Notification *Notification `type:"structure" required:"true"` // The subscriber that you want to associate with a budget notification. // // Subscriber is a required field Subscriber *Subscriber `type:"structure" required:"true"` } // String returns the string representation func (s CreateSubscriberInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateSubscriberInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateSubscriberInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateSubscriberInput"} if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } if s.AccountId != nil && len(*s.AccountId) < 12 { invalidParams.Add(request.NewErrParamMinLen("AccountId", 12)) } if s.BudgetName == nil { invalidParams.Add(request.NewErrParamRequired("BudgetName")) } if s.BudgetName != nil && len(*s.BudgetName) < 1 { invalidParams.Add(request.NewErrParamMinLen("BudgetName", 1)) } if s.Notification == nil { invalidParams.Add(request.NewErrParamRequired("Notification")) } if s.Subscriber == nil { invalidParams.Add(request.NewErrParamRequired("Subscriber")) } if s.Notification != nil { if err := s.Notification.Validate(); err != nil { invalidParams.AddNested("Notification", err.(request.ErrInvalidParams)) } } if s.Subscriber != nil { if err := s.Subscriber.Validate(); err != nil { invalidParams.AddNested("Subscriber", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAccountId sets the AccountId field's value. func (s *CreateSubscriberInput) SetAccountId(v string) *CreateSubscriberInput { s.AccountId = &v return s } // SetBudgetName sets the BudgetName field's value. func (s *CreateSubscriberInput) SetBudgetName(v string) *CreateSubscriberInput { s.BudgetName = &v return s } // SetNotification sets the Notification field's value. func (s *CreateSubscriberInput) SetNotification(v *Notification) *CreateSubscriberInput { s.Notification = v return s } // SetSubscriber sets the Subscriber field's value. func (s *CreateSubscriberInput) SetSubscriber(v *Subscriber) *CreateSubscriberInput { s.Subscriber = v return s } // Response of CreateSubscriber type CreateSubscriberOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s CreateSubscriberOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateSubscriberOutput) GoString() string { return s.String() } // You've exceeded the notification or subscriber limit. type CreationLimitExceededException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` // The error message the exception carries. Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s CreationLimitExceededException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreationLimitExceededException) GoString() string { return s.String() } func newErrorCreationLimitExceededException(v protocol.ResponseMetadata) error { return &CreationLimitExceededException{ RespMetadata: v, } } // Code returns the exception type name. func (s *CreationLimitExceededException) Code() string { return "CreationLimitExceededException" } // Message returns the exception's message. func (s *CreationLimitExceededException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *CreationLimitExceededException) OrigErr() error { return nil } func (s *CreationLimitExceededException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *CreationLimitExceededException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *CreationLimitExceededException) RequestID() string { return s.RespMetadata.RequestID } // Specifies all of the type-specific parameters. type Definition struct { _ struct{} `type:"structure"` // The AWS Identity and Access Management (IAM) action definition details. IamActionDefinition *IamActionDefinition `type:"structure"` // The service control policies (SCPs) action definition details. ScpActionDefinition *ScpActionDefinition `type:"structure"` // The AWS Systems Manager (SSM) action definition details. SsmActionDefinition *SsmActionDefinition `type:"structure"` } // String returns the string representation func (s Definition) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Definition) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *Definition) Validate() error { invalidParams := request.ErrInvalidParams{Context: "Definition"} if s.IamActionDefinition != nil { if err := s.IamActionDefinition.Validate(); err != nil { invalidParams.AddNested("IamActionDefinition", err.(request.ErrInvalidParams)) } } if s.ScpActionDefinition != nil { if err := s.ScpActionDefinition.Validate(); err != nil { invalidParams.AddNested("ScpActionDefinition", err.(request.ErrInvalidParams)) } } if s.SsmActionDefinition != nil { if err := s.SsmActionDefinition.Validate(); err != nil { invalidParams.AddNested("SsmActionDefinition", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetIamActionDefinition sets the IamActionDefinition field's value. func (s *Definition) SetIamActionDefinition(v *IamActionDefinition) *Definition { s.IamActionDefinition = v return s } // SetScpActionDefinition sets the ScpActionDefinition field's value. func (s *Definition) SetScpActionDefinition(v *ScpActionDefinition) *Definition { s.ScpActionDefinition = v return s } // SetSsmActionDefinition sets the SsmActionDefinition field's value. func (s *Definition) SetSsmActionDefinition(v *SsmActionDefinition) *Definition { s.SsmActionDefinition = v return s } type DeleteBudgetActionInput struct { _ struct{} `type:"structure"` // The account ID of the user. It should be a 12-digit number. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // A system-generated universally unique identifier (UUID) for the action. // // ActionId is a required field ActionId *string `min:"36" type:"string" required:"true"` // A string that represents the budget name. The ":" and "\" characters aren't // allowed. // // BudgetName is a required field BudgetName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DeleteBudgetActionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteBudgetActionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteBudgetActionInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteBudgetActionInput"} if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } if s.AccountId != nil && len(*s.AccountId) < 12 { invalidParams.Add(request.NewErrParamMinLen("AccountId", 12)) } if s.ActionId == nil { invalidParams.Add(request.NewErrParamRequired("ActionId")) } if s.ActionId != nil && len(*s.ActionId) < 36 { invalidParams.Add(request.NewErrParamMinLen("ActionId", 36)) } if s.BudgetName == nil { invalidParams.Add(request.NewErrParamRequired("BudgetName")) } if s.BudgetName != nil && len(*s.BudgetName) < 1 { invalidParams.Add(request.NewErrParamMinLen("BudgetName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAccountId sets the AccountId field's value. func (s *DeleteBudgetActionInput) SetAccountId(v string) *DeleteBudgetActionInput { s.AccountId = &v return s } // SetActionId sets the ActionId field's value. func (s *DeleteBudgetActionInput) SetActionId(v string) *DeleteBudgetActionInput { s.ActionId = &v return s } // SetBudgetName sets the BudgetName field's value. func (s *DeleteBudgetActionInput) SetBudgetName(v string) *DeleteBudgetActionInput { s.BudgetName = &v return s } type DeleteBudgetActionOutput struct { _ struct{} `type:"structure"` // The account ID of the user. It should be a 12-digit number. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // A budget action resource. // // Action is a required field Action *Action `type:"structure" required:"true"` // A string that represents the budget name. The ":" and "\" characters aren't // allowed. // // BudgetName is a required field BudgetName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DeleteBudgetActionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteBudgetActionOutput) GoString() string { return s.String() } // SetAccountId sets the AccountId field's value. func (s *DeleteBudgetActionOutput) SetAccountId(v string) *DeleteBudgetActionOutput { s.AccountId = &v return s } // SetAction sets the Action field's value. func (s *DeleteBudgetActionOutput) SetAction(v *Action) *DeleteBudgetActionOutput { s.Action = v return s } // SetBudgetName sets the BudgetName field's value. func (s *DeleteBudgetActionOutput) SetBudgetName(v string) *DeleteBudgetActionOutput { s.BudgetName = &v return s } // Request of DeleteBudget type DeleteBudgetInput struct { _ struct{} `type:"structure"` // The accountId that is associated with the budget that you want to delete. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // The name of the budget that you want to delete. // // BudgetName is a required field BudgetName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DeleteBudgetInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteBudgetInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteBudgetInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteBudgetInput"} if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } if s.AccountId != nil && len(*s.AccountId) < 12 { invalidParams.Add(request.NewErrParamMinLen("AccountId", 12)) } if s.BudgetName == nil { invalidParams.Add(request.NewErrParamRequired("BudgetName")) } if s.BudgetName != nil && len(*s.BudgetName) < 1 { invalidParams.Add(request.NewErrParamMinLen("BudgetName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAccountId sets the AccountId field's value. func (s *DeleteBudgetInput) SetAccountId(v string) *DeleteBudgetInput { s.AccountId = &v return s } // SetBudgetName sets the BudgetName field's value. func (s *DeleteBudgetInput) SetBudgetName(v string) *DeleteBudgetInput { s.BudgetName = &v return s } // Response of DeleteBudget type DeleteBudgetOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteBudgetOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteBudgetOutput) GoString() string { return s.String() } // Request of DeleteNotification type DeleteNotificationInput struct { _ struct{} `type:"structure"` // The accountId that is associated with the budget whose notification you want // to delete. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // The name of the budget whose notification you want to delete. // // BudgetName is a required field BudgetName *string `min:"1" type:"string" required:"true"` // The notification that you want to delete. // // Notification is a required field Notification *Notification `type:"structure" required:"true"` } // String returns the string representation func (s DeleteNotificationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteNotificationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteNotificationInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteNotificationInput"} if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } if s.AccountId != nil && len(*s.AccountId) < 12 { invalidParams.Add(request.NewErrParamMinLen("AccountId", 12)) } if s.BudgetName == nil { invalidParams.Add(request.NewErrParamRequired("BudgetName")) } if s.BudgetName != nil && len(*s.BudgetName) < 1 { invalidParams.Add(request.NewErrParamMinLen("BudgetName", 1)) } if s.Notification == nil { invalidParams.Add(request.NewErrParamRequired("Notification")) } if s.Notification != nil { if err := s.Notification.Validate(); err != nil { invalidParams.AddNested("Notification", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAccountId sets the AccountId field's value. func (s *DeleteNotificationInput) SetAccountId(v string) *DeleteNotificationInput { s.AccountId = &v return s } // SetBudgetName sets the BudgetName field's value. func (s *DeleteNotificationInput) SetBudgetName(v string) *DeleteNotificationInput { s.BudgetName = &v return s } // SetNotification sets the Notification field's value. func (s *DeleteNotificationInput) SetNotification(v *Notification) *DeleteNotificationInput { s.Notification = v return s } // Response of DeleteNotification type DeleteNotificationOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteNotificationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteNotificationOutput) GoString() string { return s.String() } // Request of DeleteSubscriber type DeleteSubscriberInput struct { _ struct{} `type:"structure"` // The accountId that is associated with the budget whose subscriber you want // to delete. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // The name of the budget whose subscriber you want to delete. // // BudgetName is a required field BudgetName *string `min:"1" type:"string" required:"true"` // The notification whose subscriber you want to delete. // // Notification is a required field Notification *Notification `type:"structure" required:"true"` // The subscriber that you want to delete. // // Subscriber is a required field Subscriber *Subscriber `type:"structure" required:"true"` } // String returns the string representation func (s DeleteSubscriberInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteSubscriberInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteSubscriberInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteSubscriberInput"} if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } if s.AccountId != nil && len(*s.AccountId) < 12 { invalidParams.Add(request.NewErrParamMinLen("AccountId", 12)) } if s.BudgetName == nil { invalidParams.Add(request.NewErrParamRequired("BudgetName")) } if s.BudgetName != nil && len(*s.BudgetName) < 1 { invalidParams.Add(request.NewErrParamMinLen("BudgetName", 1)) } if s.Notification == nil { invalidParams.Add(request.NewErrParamRequired("Notification")) } if s.Subscriber == nil { invalidParams.Add(request.NewErrParamRequired("Subscriber")) } if s.Notification != nil { if err := s.Notification.Validate(); err != nil { invalidParams.AddNested("Notification", err.(request.ErrInvalidParams)) } } if s.Subscriber != nil { if err := s.Subscriber.Validate(); err != nil { invalidParams.AddNested("Subscriber", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAccountId sets the AccountId field's value. func (s *DeleteSubscriberInput) SetAccountId(v string) *DeleteSubscriberInput { s.AccountId = &v return s } // SetBudgetName sets the BudgetName field's value. func (s *DeleteSubscriberInput) SetBudgetName(v string) *DeleteSubscriberInput { s.BudgetName = &v return s } // SetNotification sets the Notification field's value. func (s *DeleteSubscriberInput) SetNotification(v *Notification) *DeleteSubscriberInput { s.Notification = v return s } // SetSubscriber sets the Subscriber field's value. func (s *DeleteSubscriberInput) SetSubscriber(v *Subscriber) *DeleteSubscriberInput { s.Subscriber = v return s } // Response of DeleteSubscriber type DeleteSubscriberOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteSubscriberOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteSubscriberOutput) GoString() string { return s.String() } type DescribeBudgetActionHistoriesInput struct { _ struct{} `type:"structure"` // The account ID of the user. It should be a 12-digit number. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // A system-generated universally unique identifier (UUID) for the action. // // ActionId is a required field ActionId *string `min:"36" type:"string" required:"true"` // A string that represents the budget name. The ":" and "\" characters aren't // allowed. // // BudgetName is a required field BudgetName *string `min:"1" type:"string" required:"true"` // An integer that represents how many entries a paginated response contains. // The maximum is 100. MaxResults *int64 `min:"1" type:"integer"` // A generic string. NextToken *string `type:"string"` // The period of time that is covered by a budget. The period has a start date // and an end date. The start date must come before the end date. There are // no restrictions on the end date. TimePeriod *TimePeriod `type:"structure"` } // String returns the string representation func (s DescribeBudgetActionHistoriesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeBudgetActionHistoriesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeBudgetActionHistoriesInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeBudgetActionHistoriesInput"} if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } if s.AccountId != nil && len(*s.AccountId) < 12 { invalidParams.Add(request.NewErrParamMinLen("AccountId", 12)) } if s.ActionId == nil { invalidParams.Add(request.NewErrParamRequired("ActionId")) } if s.ActionId != nil && len(*s.ActionId) < 36 { invalidParams.Add(request.NewErrParamMinLen("ActionId", 36)) } if s.BudgetName == nil { invalidParams.Add(request.NewErrParamRequired("BudgetName")) } if s.BudgetName != nil && len(*s.BudgetName) < 1 { invalidParams.Add(request.NewErrParamMinLen("BudgetName", 1)) } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAccountId sets the AccountId field's value. func (s *DescribeBudgetActionHistoriesInput) SetAccountId(v string) *DescribeBudgetActionHistoriesInput { s.AccountId = &v return s } // SetActionId sets the ActionId field's value. func (s *DescribeBudgetActionHistoriesInput) SetActionId(v string) *DescribeBudgetActionHistoriesInput { s.ActionId = &v return s } // SetBudgetName sets the BudgetName field's value. func (s *DescribeBudgetActionHistoriesInput) SetBudgetName(v string) *DescribeBudgetActionHistoriesInput { s.BudgetName = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *DescribeBudgetActionHistoriesInput) SetMaxResults(v int64) *DescribeBudgetActionHistoriesInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeBudgetActionHistoriesInput) SetNextToken(v string) *DescribeBudgetActionHistoriesInput { s.NextToken = &v return s } // SetTimePeriod sets the TimePeriod field's value. func (s *DescribeBudgetActionHistoriesInput) SetTimePeriod(v *TimePeriod) *DescribeBudgetActionHistoriesInput { s.TimePeriod = v return s } type DescribeBudgetActionHistoriesOutput struct { _ struct{} `type:"structure"` // The historical record of the budget action resource. // // ActionHistories is a required field ActionHistories []*ActionHistory `type:"list" required:"true"` // A generic string. NextToken *string `type:"string"` } // String returns the string representation func (s DescribeBudgetActionHistoriesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeBudgetActionHistoriesOutput) GoString() string { return s.String() } // SetActionHistories sets the ActionHistories field's value. func (s *DescribeBudgetActionHistoriesOutput) SetActionHistories(v []*ActionHistory) *DescribeBudgetActionHistoriesOutput { s.ActionHistories = v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeBudgetActionHistoriesOutput) SetNextToken(v string) *DescribeBudgetActionHistoriesOutput { s.NextToken = &v return s } type DescribeBudgetActionInput struct { _ struct{} `type:"structure"` // The account ID of the user. It should be a 12-digit number. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // A system-generated universally unique identifier (UUID) for the action. // // ActionId is a required field ActionId *string `min:"36" type:"string" required:"true"` // A string that represents the budget name. The ":" and "\" characters aren't // allowed. // // BudgetName is a required field BudgetName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DescribeBudgetActionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeBudgetActionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeBudgetActionInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeBudgetActionInput"} if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } if s.AccountId != nil && len(*s.AccountId) < 12 { invalidParams.Add(request.NewErrParamMinLen("AccountId", 12)) } if s.ActionId == nil { invalidParams.Add(request.NewErrParamRequired("ActionId")) } if s.ActionId != nil && len(*s.ActionId) < 36 { invalidParams.Add(request.NewErrParamMinLen("ActionId", 36)) } if s.BudgetName == nil { invalidParams.Add(request.NewErrParamRequired("BudgetName")) } if s.BudgetName != nil && len(*s.BudgetName) < 1 { invalidParams.Add(request.NewErrParamMinLen("BudgetName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAccountId sets the AccountId field's value. func (s *DescribeBudgetActionInput) SetAccountId(v string) *DescribeBudgetActionInput { s.AccountId = &v return s } // SetActionId sets the ActionId field's value. func (s *DescribeBudgetActionInput) SetActionId(v string) *DescribeBudgetActionInput { s.ActionId = &v return s } // SetBudgetName sets the BudgetName field's value. func (s *DescribeBudgetActionInput) SetBudgetName(v string) *DescribeBudgetActionInput { s.BudgetName = &v return s } type DescribeBudgetActionOutput struct { _ struct{} `type:"structure"` // The account ID of the user. It should be a 12-digit number. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // A budget action resource. // // Action is a required field Action *Action `type:"structure" required:"true"` // A string that represents the budget name. The ":" and "\" characters aren't // allowed. // // BudgetName is a required field BudgetName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DescribeBudgetActionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeBudgetActionOutput) GoString() string { return s.String() } // SetAccountId sets the AccountId field's value. func (s *DescribeBudgetActionOutput) SetAccountId(v string) *DescribeBudgetActionOutput { s.AccountId = &v return s } // SetAction sets the Action field's value. func (s *DescribeBudgetActionOutput) SetAction(v *Action) *DescribeBudgetActionOutput { s.Action = v return s } // SetBudgetName sets the BudgetName field's value. func (s *DescribeBudgetActionOutput) SetBudgetName(v string) *DescribeBudgetActionOutput { s.BudgetName = &v return s } type DescribeBudgetActionsForAccountInput struct { _ struct{} `type:"structure"` // The account ID of the user. It should be a 12-digit number. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // An integer that represents how many entries a paginated response contains. // The maximum is 100. MaxResults *int64 `min:"1" type:"integer"` // A generic string. NextToken *string `type:"string"` } // String returns the string representation func (s DescribeBudgetActionsForAccountInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeBudgetActionsForAccountInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeBudgetActionsForAccountInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeBudgetActionsForAccountInput"} if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } if s.AccountId != nil && len(*s.AccountId) < 12 { invalidParams.Add(request.NewErrParamMinLen("AccountId", 12)) } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAccountId sets the AccountId field's value. func (s *DescribeBudgetActionsForAccountInput) SetAccountId(v string) *DescribeBudgetActionsForAccountInput { s.AccountId = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *DescribeBudgetActionsForAccountInput) SetMaxResults(v int64) *DescribeBudgetActionsForAccountInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeBudgetActionsForAccountInput) SetNextToken(v string) *DescribeBudgetActionsForAccountInput { s.NextToken = &v return s } type DescribeBudgetActionsForAccountOutput struct { _ struct{} `type:"structure"` // A list of the budget action resources information. // // Actions is a required field Actions []*Action `type:"list" required:"true"` // A generic string. NextToken *string `type:"string"` } // String returns the string representation func (s DescribeBudgetActionsForAccountOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeBudgetActionsForAccountOutput) GoString() string { return s.String() } // SetActions sets the Actions field's value. func (s *DescribeBudgetActionsForAccountOutput) SetActions(v []*Action) *DescribeBudgetActionsForAccountOutput { s.Actions = v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeBudgetActionsForAccountOutput) SetNextToken(v string) *DescribeBudgetActionsForAccountOutput { s.NextToken = &v return s } type DescribeBudgetActionsForBudgetInput struct { _ struct{} `type:"structure"` // The account ID of the user. It should be a 12-digit number. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // A string that represents the budget name. The ":" and "\" characters aren't // allowed. // // BudgetName is a required field BudgetName *string `min:"1" type:"string" required:"true"` // An integer that represents how many entries a paginated response contains. // The maximum is 100. MaxResults *int64 `min:"1" type:"integer"` // A generic string. NextToken *string `type:"string"` } // String returns the string representation func (s DescribeBudgetActionsForBudgetInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeBudgetActionsForBudgetInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeBudgetActionsForBudgetInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeBudgetActionsForBudgetInput"} if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } if s.AccountId != nil && len(*s.AccountId) < 12 { invalidParams.Add(request.NewErrParamMinLen("AccountId", 12)) } if s.BudgetName == nil { invalidParams.Add(request.NewErrParamRequired("BudgetName")) } if s.BudgetName != nil && len(*s.BudgetName) < 1 { invalidParams.Add(request.NewErrParamMinLen("BudgetName", 1)) } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAccountId sets the AccountId field's value. func (s *DescribeBudgetActionsForBudgetInput) SetAccountId(v string) *DescribeBudgetActionsForBudgetInput { s.AccountId = &v return s } // SetBudgetName sets the BudgetName field's value. func (s *DescribeBudgetActionsForBudgetInput) SetBudgetName(v string) *DescribeBudgetActionsForBudgetInput { s.BudgetName = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *DescribeBudgetActionsForBudgetInput) SetMaxResults(v int64) *DescribeBudgetActionsForBudgetInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeBudgetActionsForBudgetInput) SetNextToken(v string) *DescribeBudgetActionsForBudgetInput { s.NextToken = &v return s } type DescribeBudgetActionsForBudgetOutput struct { _ struct{} `type:"structure"` // A list of the budget action resources information. // // Actions is a required field Actions []*Action `type:"list" required:"true"` // A generic string. NextToken *string `type:"string"` } // String returns the string representation func (s DescribeBudgetActionsForBudgetOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeBudgetActionsForBudgetOutput) GoString() string { return s.String() } // SetActions sets the Actions field's value. func (s *DescribeBudgetActionsForBudgetOutput) SetActions(v []*Action) *DescribeBudgetActionsForBudgetOutput { s.Actions = v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeBudgetActionsForBudgetOutput) SetNextToken(v string) *DescribeBudgetActionsForBudgetOutput { s.NextToken = &v return s } // Request of DescribeBudget type DescribeBudgetInput struct { _ struct{} `type:"structure"` // The accountId that is associated with the budget that you want a description // of. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // The name of the budget that you want a description of. // // BudgetName is a required field BudgetName *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s DescribeBudgetInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeBudgetInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeBudgetInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeBudgetInput"} if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } if s.AccountId != nil && len(*s.AccountId) < 12 { invalidParams.Add(request.NewErrParamMinLen("AccountId", 12)) } if s.BudgetName == nil { invalidParams.Add(request.NewErrParamRequired("BudgetName")) } if s.BudgetName != nil && len(*s.BudgetName) < 1 { invalidParams.Add(request.NewErrParamMinLen("BudgetName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAccountId sets the AccountId field's value. func (s *DescribeBudgetInput) SetAccountId(v string) *DescribeBudgetInput { s.AccountId = &v return s } // SetBudgetName sets the BudgetName field's value. func (s *DescribeBudgetInput) SetBudgetName(v string) *DescribeBudgetInput { s.BudgetName = &v return s } // Response of DescribeBudget type DescribeBudgetOutput struct { _ struct{} `type:"structure"` // The description of the budget. Budget *Budget `type:"structure"` } // String returns the string representation func (s DescribeBudgetOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeBudgetOutput) GoString() string { return s.String() } // SetBudget sets the Budget field's value. func (s *DescribeBudgetOutput) SetBudget(v *Budget) *DescribeBudgetOutput { s.Budget = v return s } type DescribeBudgetPerformanceHistoryInput struct { _ struct{} `type:"structure"` // The account ID of the user. It should be a 12-digit number. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // A string that represents the budget name. The ":" and "\" characters aren't // allowed. // // BudgetName is a required field BudgetName *string `min:"1" type:"string" required:"true"` // An integer that represents how many entries a paginated response contains. // The maximum is 100. MaxResults *int64 `min:"1" type:"integer"` // A generic string. NextToken *string `type:"string"` // Retrieves how often the budget went into an ALARM state for the specified // time period. TimePeriod *TimePeriod `type:"structure"` } // String returns the string representation func (s DescribeBudgetPerformanceHistoryInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeBudgetPerformanceHistoryInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeBudgetPerformanceHistoryInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeBudgetPerformanceHistoryInput"} if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } if s.AccountId != nil && len(*s.AccountId) < 12 { invalidParams.Add(request.NewErrParamMinLen("AccountId", 12)) } if s.BudgetName == nil { invalidParams.Add(request.NewErrParamRequired("BudgetName")) } if s.BudgetName != nil && len(*s.BudgetName) < 1 { invalidParams.Add(request.NewErrParamMinLen("BudgetName", 1)) } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAccountId sets the AccountId field's value. func (s *DescribeBudgetPerformanceHistoryInput) SetAccountId(v string) *DescribeBudgetPerformanceHistoryInput { s.AccountId = &v return s } // SetBudgetName sets the BudgetName field's value. func (s *DescribeBudgetPerformanceHistoryInput) SetBudgetName(v string) *DescribeBudgetPerformanceHistoryInput { s.BudgetName = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *DescribeBudgetPerformanceHistoryInput) SetMaxResults(v int64) *DescribeBudgetPerformanceHistoryInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeBudgetPerformanceHistoryInput) SetNextToken(v string) *DescribeBudgetPerformanceHistoryInput { s.NextToken = &v return s } // SetTimePeriod sets the TimePeriod field's value. func (s *DescribeBudgetPerformanceHistoryInput) SetTimePeriod(v *TimePeriod) *DescribeBudgetPerformanceHistoryInput { s.TimePeriod = v return s } type DescribeBudgetPerformanceHistoryOutput struct { _ struct{} `type:"structure"` // The history of how often the budget has gone into an ALARM state. // // For DAILY budgets, the history saves the state of the budget for the last // 60 days. For MONTHLY budgets, the history saves the state of the budget for // the current month plus the last 12 months. For QUARTERLY budgets, the history // saves the state of the budget for the last four quarters. BudgetPerformanceHistory *BudgetPerformanceHistory `type:"structure"` // A generic string. NextToken *string `type:"string"` } // String returns the string representation func (s DescribeBudgetPerformanceHistoryOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeBudgetPerformanceHistoryOutput) GoString() string { return s.String() } // SetBudgetPerformanceHistory sets the BudgetPerformanceHistory field's value. func (s *DescribeBudgetPerformanceHistoryOutput) SetBudgetPerformanceHistory(v *BudgetPerformanceHistory) *DescribeBudgetPerformanceHistoryOutput { s.BudgetPerformanceHistory = v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeBudgetPerformanceHistoryOutput) SetNextToken(v string) *DescribeBudgetPerformanceHistoryOutput { s.NextToken = &v return s } // Request of DescribeBudgets type DescribeBudgetsInput struct { _ struct{} `type:"structure"` // The accountId that is associated with the budgets that you want descriptions // of. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // An optional integer that represents how many entries a paginated response // contains. The maximum is 100. MaxResults *int64 `min:"1" type:"integer"` // The pagination token that you include in your request to indicate the next // set of results that you want to retrieve. NextToken *string `type:"string"` } // String returns the string representation func (s DescribeBudgetsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeBudgetsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeBudgetsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeBudgetsInput"} if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } if s.AccountId != nil && len(*s.AccountId) < 12 { invalidParams.Add(request.NewErrParamMinLen("AccountId", 12)) } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAccountId sets the AccountId field's value. func (s *DescribeBudgetsInput) SetAccountId(v string) *DescribeBudgetsInput { s.AccountId = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *DescribeBudgetsInput) SetMaxResults(v int64) *DescribeBudgetsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeBudgetsInput) SetNextToken(v string) *DescribeBudgetsInput { s.NextToken = &v return s } // Response of DescribeBudgets type DescribeBudgetsOutput struct { _ struct{} `type:"structure"` // A list of budgets. Budgets []*Budget `type:"list"` // The pagination token in the service response that indicates the next set // of results that you can retrieve. NextToken *string `type:"string"` } // String returns the string representation func (s DescribeBudgetsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeBudgetsOutput) GoString() string { return s.String() } // SetBudgets sets the Budgets field's value. func (s *DescribeBudgetsOutput) SetBudgets(v []*Budget) *DescribeBudgetsOutput { s.Budgets = v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeBudgetsOutput) SetNextToken(v string) *DescribeBudgetsOutput { s.NextToken = &v return s } // Request of DescribeNotificationsForBudget type DescribeNotificationsForBudgetInput struct { _ struct{} `type:"structure"` // The accountId that is associated with the budget whose notifications you // want descriptions of. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // The name of the budget whose notifications you want descriptions of. // // BudgetName is a required field BudgetName *string `min:"1" type:"string" required:"true"` // An optional integer that represents how many entries a paginated response // contains. The maximum is 100. MaxResults *int64 `min:"1" type:"integer"` // The pagination token that you include in your request to indicate the next // set of results that you want to retrieve. NextToken *string `type:"string"` } // String returns the string representation func (s DescribeNotificationsForBudgetInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeNotificationsForBudgetInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeNotificationsForBudgetInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeNotificationsForBudgetInput"} if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } if s.AccountId != nil && len(*s.AccountId) < 12 { invalidParams.Add(request.NewErrParamMinLen("AccountId", 12)) } if s.BudgetName == nil { invalidParams.Add(request.NewErrParamRequired("BudgetName")) } if s.BudgetName != nil && len(*s.BudgetName) < 1 { invalidParams.Add(request.NewErrParamMinLen("BudgetName", 1)) } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAccountId sets the AccountId field's value. func (s *DescribeNotificationsForBudgetInput) SetAccountId(v string) *DescribeNotificationsForBudgetInput { s.AccountId = &v return s } // SetBudgetName sets the BudgetName field's value. func (s *DescribeNotificationsForBudgetInput) SetBudgetName(v string) *DescribeNotificationsForBudgetInput { s.BudgetName = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *DescribeNotificationsForBudgetInput) SetMaxResults(v int64) *DescribeNotificationsForBudgetInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeNotificationsForBudgetInput) SetNextToken(v string) *DescribeNotificationsForBudgetInput { s.NextToken = &v return s } // Response of GetNotificationsForBudget type DescribeNotificationsForBudgetOutput struct { _ struct{} `type:"structure"` // The pagination token in the service response that indicates the next set // of results that you can retrieve. NextToken *string `type:"string"` // A list of notifications that are associated with a budget. Notifications []*Notification `type:"list"` } // String returns the string representation func (s DescribeNotificationsForBudgetOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeNotificationsForBudgetOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *DescribeNotificationsForBudgetOutput) SetNextToken(v string) *DescribeNotificationsForBudgetOutput { s.NextToken = &v return s } // SetNotifications sets the Notifications field's value. func (s *DescribeNotificationsForBudgetOutput) SetNotifications(v []*Notification) *DescribeNotificationsForBudgetOutput { s.Notifications = v return s } // Request of DescribeSubscribersForNotification type DescribeSubscribersForNotificationInput struct { _ struct{} `type:"structure"` // The accountId that is associated with the budget whose subscribers you want // descriptions of. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // The name of the budget whose subscribers you want descriptions of. // // BudgetName is a required field BudgetName *string `min:"1" type:"string" required:"true"` // An optional integer that represents how many entries a paginated response // contains. The maximum is 100. MaxResults *int64 `min:"1" type:"integer"` // The pagination token that you include in your request to indicate the next // set of results that you want to retrieve. NextToken *string `type:"string"` // The notification whose subscribers you want to list. // // Notification is a required field Notification *Notification `type:"structure" required:"true"` } // String returns the string representation func (s DescribeSubscribersForNotificationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeSubscribersForNotificationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeSubscribersForNotificationInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeSubscribersForNotificationInput"} if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } if s.AccountId != nil && len(*s.AccountId) < 12 { invalidParams.Add(request.NewErrParamMinLen("AccountId", 12)) } if s.BudgetName == nil { invalidParams.Add(request.NewErrParamRequired("BudgetName")) } if s.BudgetName != nil && len(*s.BudgetName) < 1 { invalidParams.Add(request.NewErrParamMinLen("BudgetName", 1)) } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if s.Notification == nil { invalidParams.Add(request.NewErrParamRequired("Notification")) } if s.Notification != nil { if err := s.Notification.Validate(); err != nil { invalidParams.AddNested("Notification", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAccountId sets the AccountId field's value. func (s *DescribeSubscribersForNotificationInput) SetAccountId(v string) *DescribeSubscribersForNotificationInput { s.AccountId = &v return s } // SetBudgetName sets the BudgetName field's value. func (s *DescribeSubscribersForNotificationInput) SetBudgetName(v string) *DescribeSubscribersForNotificationInput { s.BudgetName = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *DescribeSubscribersForNotificationInput) SetMaxResults(v int64) *DescribeSubscribersForNotificationInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *DescribeSubscribersForNotificationInput) SetNextToken(v string) *DescribeSubscribersForNotificationInput { s.NextToken = &v return s } // SetNotification sets the Notification field's value. func (s *DescribeSubscribersForNotificationInput) SetNotification(v *Notification) *DescribeSubscribersForNotificationInput { s.Notification = v return s } // Response of DescribeSubscribersForNotification type DescribeSubscribersForNotificationOutput struct { _ struct{} `type:"structure"` // The pagination token in the service response that indicates the next set // of results that you can retrieve. NextToken *string `type:"string"` // A list of subscribers that are associated with a notification. Subscribers []*Subscriber `min:"1" type:"list"` } // String returns the string representation func (s DescribeSubscribersForNotificationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeSubscribersForNotificationOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *DescribeSubscribersForNotificationOutput) SetNextToken(v string) *DescribeSubscribersForNotificationOutput { s.NextToken = &v return s } // SetSubscribers sets the Subscribers field's value. func (s *DescribeSubscribersForNotificationOutput) SetSubscribers(v []*Subscriber) *DescribeSubscribersForNotificationOutput { s.Subscribers = v return s } // The budget name already exists. Budget names must be unique within an account. type DuplicateRecordException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` // The error message the exception carries. Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s DuplicateRecordException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DuplicateRecordException) GoString() string { return s.String() } func newErrorDuplicateRecordException(v protocol.ResponseMetadata) error { return &DuplicateRecordException{ RespMetadata: v, } } // Code returns the exception type name. func (s *DuplicateRecordException) Code() string { return "DuplicateRecordException" } // Message returns the exception's message. func (s *DuplicateRecordException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *DuplicateRecordException) OrigErr() error { return nil } func (s *DuplicateRecordException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *DuplicateRecordException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *DuplicateRecordException) RequestID() string { return s.RespMetadata.RequestID } type ExecuteBudgetActionInput struct { _ struct{} `type:"structure"` // The account ID of the user. It should be a 12-digit number. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // A system-generated universally unique identifier (UUID) for the action. // // ActionId is a required field ActionId *string `min:"36" type:"string" required:"true"` // A string that represents the budget name. The ":" and "\" characters aren't // allowed. // // BudgetName is a required field BudgetName *string `min:"1" type:"string" required:"true"` // The type of execution. // // ExecutionType is a required field ExecutionType *string `type:"string" required:"true" enum:"ExecutionType"` } // String returns the string representation func (s ExecuteBudgetActionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ExecuteBudgetActionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ExecuteBudgetActionInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ExecuteBudgetActionInput"} if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } if s.AccountId != nil && len(*s.AccountId) < 12 { invalidParams.Add(request.NewErrParamMinLen("AccountId", 12)) } if s.ActionId == nil { invalidParams.Add(request.NewErrParamRequired("ActionId")) } if s.ActionId != nil && len(*s.ActionId) < 36 { invalidParams.Add(request.NewErrParamMinLen("ActionId", 36)) } if s.BudgetName == nil { invalidParams.Add(request.NewErrParamRequired("BudgetName")) } if s.BudgetName != nil && len(*s.BudgetName) < 1 { invalidParams.Add(request.NewErrParamMinLen("BudgetName", 1)) } if s.ExecutionType == nil { invalidParams.Add(request.NewErrParamRequired("ExecutionType")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAccountId sets the AccountId field's value. func (s *ExecuteBudgetActionInput) SetAccountId(v string) *ExecuteBudgetActionInput { s.AccountId = &v return s } // SetActionId sets the ActionId field's value. func (s *ExecuteBudgetActionInput) SetActionId(v string) *ExecuteBudgetActionInput { s.ActionId = &v return s } // SetBudgetName sets the BudgetName field's value. func (s *ExecuteBudgetActionInput) SetBudgetName(v string) *ExecuteBudgetActionInput { s.BudgetName = &v return s } // SetExecutionType sets the ExecutionType field's value. func (s *ExecuteBudgetActionInput) SetExecutionType(v string) *ExecuteBudgetActionInput { s.ExecutionType = &v return s } type ExecuteBudgetActionOutput struct { _ struct{} `type:"structure"` // The account ID of the user. It should be a 12-digit number. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // A system-generated universally unique identifier (UUID) for the action. // // ActionId is a required field ActionId *string `min:"36" type:"string" required:"true"` // A string that represents the budget name. The ":" and "\" characters aren't // allowed. // // BudgetName is a required field BudgetName *string `min:"1" type:"string" required:"true"` // The type of execution. // // ExecutionType is a required field ExecutionType *string `type:"string" required:"true" enum:"ExecutionType"` } // String returns the string representation func (s ExecuteBudgetActionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ExecuteBudgetActionOutput) GoString() string { return s.String() } // SetAccountId sets the AccountId field's value. func (s *ExecuteBudgetActionOutput) SetAccountId(v string) *ExecuteBudgetActionOutput { s.AccountId = &v return s } // SetActionId sets the ActionId field's value. func (s *ExecuteBudgetActionOutput) SetActionId(v string) *ExecuteBudgetActionOutput { s.ActionId = &v return s } // SetBudgetName sets the BudgetName field's value. func (s *ExecuteBudgetActionOutput) SetBudgetName(v string) *ExecuteBudgetActionOutput { s.BudgetName = &v return s } // SetExecutionType sets the ExecutionType field's value. func (s *ExecuteBudgetActionOutput) SetExecutionType(v string) *ExecuteBudgetActionOutput { s.ExecutionType = &v return s } // The pagination token expired. type ExpiredNextTokenException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` // The error message the exception carries. Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s ExpiredNextTokenException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ExpiredNextTokenException) GoString() string { return s.String() } func newErrorExpiredNextTokenException(v protocol.ResponseMetadata) error { return &ExpiredNextTokenException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ExpiredNextTokenException) Code() string { return "ExpiredNextTokenException" } // Message returns the exception's message. func (s *ExpiredNextTokenException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ExpiredNextTokenException) OrigErr() error { return nil } func (s *ExpiredNextTokenException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ExpiredNextTokenException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ExpiredNextTokenException) RequestID() string { return s.RespMetadata.RequestID } // The AWS Identity and Access Management (IAM) action definition details. type IamActionDefinition struct { _ struct{} `type:"structure"` // A list of groups to be attached. There must be at least one group. Groups []*string `min:"1" type:"list"` // The Amazon Resource Name (ARN) of the policy to be attached. // // PolicyArn is a required field PolicyArn *string `min:"25" type:"string" required:"true"` // A list of roles to be attached. There must be at least one role. Roles []*string `min:"1" type:"list"` // A list of users to be attached. There must be at least one user. Users []*string `min:"1" type:"list"` } // String returns the string representation func (s IamActionDefinition) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s IamActionDefinition) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *IamActionDefinition) Validate() error { invalidParams := request.ErrInvalidParams{Context: "IamActionDefinition"} if s.Groups != nil && len(s.Groups) < 1 { invalidParams.Add(request.NewErrParamMinLen("Groups", 1)) } if s.PolicyArn == nil { invalidParams.Add(request.NewErrParamRequired("PolicyArn")) } if s.PolicyArn != nil && len(*s.PolicyArn) < 25 { invalidParams.Add(request.NewErrParamMinLen("PolicyArn", 25)) } if s.Roles != nil && len(s.Roles) < 1 { invalidParams.Add(request.NewErrParamMinLen("Roles", 1)) } if s.Users != nil && len(s.Users) < 1 { invalidParams.Add(request.NewErrParamMinLen("Users", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetGroups sets the Groups field's value. func (s *IamActionDefinition) SetGroups(v []*string) *IamActionDefinition { s.Groups = v return s } // SetPolicyArn sets the PolicyArn field's value. func (s *IamActionDefinition) SetPolicyArn(v string) *IamActionDefinition { s.PolicyArn = &v return s } // SetRoles sets the Roles field's value. func (s *IamActionDefinition) SetRoles(v []*string) *IamActionDefinition { s.Roles = v return s } // SetUsers sets the Users field's value. func (s *IamActionDefinition) SetUsers(v []*string) *IamActionDefinition { s.Users = v return s } // An error on the server occurred during the processing of your request. Try // again later. type InternalErrorException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` // The error message the exception carries. Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s InternalErrorException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s InternalErrorException) GoString() string { return s.String() } func newErrorInternalErrorException(v protocol.ResponseMetadata) error { return &InternalErrorException{ RespMetadata: v, } } // Code returns the exception type name. func (s *InternalErrorException) Code() string { return "InternalErrorException" } // Message returns the exception's message. func (s *InternalErrorException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *InternalErrorException) OrigErr() error { return nil } func (s *InternalErrorException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *InternalErrorException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *InternalErrorException) RequestID() string { return s.RespMetadata.RequestID } // The pagination token is invalid. type InvalidNextTokenException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` // The error message the exception carries. Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s InvalidNextTokenException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s InvalidNextTokenException) GoString() string { return s.String() } func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error { return &InvalidNextTokenException{ RespMetadata: v, } } // Code returns the exception type name. func (s *InvalidNextTokenException) Code() string { return "InvalidNextTokenException" } // Message returns the exception's message. func (s *InvalidNextTokenException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *InvalidNextTokenException) OrigErr() error { return nil } func (s *InvalidNextTokenException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *InvalidNextTokenException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *InvalidNextTokenException) RequestID() string { return s.RespMetadata.RequestID } // An error on the client occurred. Typically, the cause is an invalid input // value. type InvalidParameterException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` // The error message the exception carries. Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s InvalidParameterException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s InvalidParameterException) GoString() string { return s.String() } func newErrorInvalidParameterException(v protocol.ResponseMetadata) error { return &InvalidParameterException{ RespMetadata: v, } } // Code returns the exception type name. func (s *InvalidParameterException) Code() string { return "InvalidParameterException" } // Message returns the exception's message. func (s *InvalidParameterException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *InvalidParameterException) OrigErr() error { return nil } func (s *InvalidParameterException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *InvalidParameterException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *InvalidParameterException) RequestID() string { return s.RespMetadata.RequestID } // We can’t locate the resource that you specified. type NotFoundException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` // The error message the exception carries. Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s NotFoundException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s NotFoundException) GoString() string { return s.String() } func newErrorNotFoundException(v protocol.ResponseMetadata) error { return &NotFoundException{ RespMetadata: v, } } // Code returns the exception type name. func (s *NotFoundException) Code() string { return "NotFoundException" } // Message returns the exception's message. func (s *NotFoundException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *NotFoundException) OrigErr() error { return nil } func (s *NotFoundException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *NotFoundException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *NotFoundException) RequestID() string { return s.RespMetadata.RequestID } // A notification that is associated with a budget. A budget can have up to // ten notifications. // // Each notification must have at least one subscriber. A notification can have // one SNS subscriber and up to 10 email subscribers, for a total of 11 subscribers. // // For example, if you have a budget for 200 dollars and you want to be notified // when you go over 160 dollars, create a notification with the following parameters: // // * A notificationType of ACTUAL // // * A thresholdType of PERCENTAGE // // * A comparisonOperator of GREATER_THAN // // * A notification threshold of 80 type Notification struct { _ struct{} `type:"structure"` // The comparison that is used for this notification. // // ComparisonOperator is a required field ComparisonOperator *string `type:"string" required:"true" enum:"ComparisonOperator"` // Whether this notification is in alarm. If a budget notification is in the // ALARM state, you have passed the set threshold for the budget. NotificationState *string `type:"string" enum:"NotificationState"` // Whether the notification is for how much you have spent (ACTUAL) or for how // much you're forecasted to spend (FORECASTED). // // NotificationType is a required field NotificationType *string `type:"string" required:"true" enum:"NotificationType"` // The threshold that is associated with a notification. Thresholds are always // a percentage, and many customers find value being alerted between 50% - 200% // of the budgeted amount. The maximum limit for your threshold is 1,000,000% // above the budgeted amount. // // Threshold is a required field Threshold *float64 `type:"double" required:"true"` // The type of threshold for a notification. For ABSOLUTE_VALUE thresholds, // AWS notifies you when you go over or are forecasted to go over your total // cost threshold. For PERCENTAGE thresholds, AWS notifies you when you go over // or are forecasted to go over a certain percentage of your forecasted spend. // For example, if you have a budget for 200 dollars and you have a PERCENTAGE // threshold of 80%, AWS notifies you when you go over 160 dollars. ThresholdType *string `type:"string" enum:"ThresholdType"` } // String returns the string representation func (s Notification) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Notification) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *Notification) Validate() error { invalidParams := request.ErrInvalidParams{Context: "Notification"} if s.ComparisonOperator == nil { invalidParams.Add(request.NewErrParamRequired("ComparisonOperator")) } if s.NotificationType == nil { invalidParams.Add(request.NewErrParamRequired("NotificationType")) } if s.Threshold == nil { invalidParams.Add(request.NewErrParamRequired("Threshold")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetComparisonOperator sets the ComparisonOperator field's value. func (s *Notification) SetComparisonOperator(v string) *Notification { s.ComparisonOperator = &v return s } // SetNotificationState sets the NotificationState field's value. func (s *Notification) SetNotificationState(v string) *Notification { s.NotificationState = &v return s } // SetNotificationType sets the NotificationType field's value. func (s *Notification) SetNotificationType(v string) *Notification { s.NotificationType = &v return s } // SetThreshold sets the Threshold field's value. func (s *Notification) SetThreshold(v float64) *Notification { s.Threshold = &v return s } // SetThresholdType sets the ThresholdType field's value. func (s *Notification) SetThresholdType(v string) *Notification { s.ThresholdType = &v return s } // A notification with subscribers. A notification can have one SNS subscriber // and up to 10 email subscribers, for a total of 11 subscribers. type NotificationWithSubscribers struct { _ struct{} `type:"structure"` // The notification that is associated with a budget. // // Notification is a required field Notification *Notification `type:"structure" required:"true"` // A list of subscribers who are subscribed to this notification. // // Subscribers is a required field Subscribers []*Subscriber `min:"1" type:"list" required:"true"` } // String returns the string representation func (s NotificationWithSubscribers) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s NotificationWithSubscribers) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *NotificationWithSubscribers) Validate() error { invalidParams := request.ErrInvalidParams{Context: "NotificationWithSubscribers"} if s.Notification == nil { invalidParams.Add(request.NewErrParamRequired("Notification")) } if s.Subscribers == nil { invalidParams.Add(request.NewErrParamRequired("Subscribers")) } if s.Subscribers != nil && len(s.Subscribers) < 1 { invalidParams.Add(request.NewErrParamMinLen("Subscribers", 1)) } if s.Notification != nil { if err := s.Notification.Validate(); err != nil { invalidParams.AddNested("Notification", err.(request.ErrInvalidParams)) } } if s.Subscribers != nil { for i, v := range s.Subscribers { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Subscribers", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetNotification sets the Notification field's value. func (s *NotificationWithSubscribers) SetNotification(v *Notification) *NotificationWithSubscribers { s.Notification = v return s } // SetSubscribers sets the Subscribers field's value. func (s *NotificationWithSubscribers) SetSubscribers(v []*Subscriber) *NotificationWithSubscribers { s.Subscribers = v return s } // The request was received and recognized by the server, but the server rejected // that particular method for the requested resource. type ResourceLockedException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` // The error message the exception carries. Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s ResourceLockedException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ResourceLockedException) GoString() string { return s.String() } func newErrorResourceLockedException(v protocol.ResponseMetadata) error { return &ResourceLockedException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ResourceLockedException) Code() string { return "ResourceLockedException" } // Message returns the exception's message. func (s *ResourceLockedException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ResourceLockedException) OrigErr() error { return nil } func (s *ResourceLockedException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ResourceLockedException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ResourceLockedException) RequestID() string { return s.RespMetadata.RequestID } // The service control policies (SCP) action definition details. type ScpActionDefinition struct { _ struct{} `type:"structure"` // The policy ID attached. // // PolicyId is a required field PolicyId *string `min:"10" type:"string" required:"true"` // A list of target IDs. // // TargetIds is a required field TargetIds []*string `min:"1" type:"list" required:"true"` } // String returns the string representation func (s ScpActionDefinition) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ScpActionDefinition) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ScpActionDefinition) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ScpActionDefinition"} if s.PolicyId == nil { invalidParams.Add(request.NewErrParamRequired("PolicyId")) } if s.PolicyId != nil && len(*s.PolicyId) < 10 { invalidParams.Add(request.NewErrParamMinLen("PolicyId", 10)) } if s.TargetIds == nil { invalidParams.Add(request.NewErrParamRequired("TargetIds")) } if s.TargetIds != nil && len(s.TargetIds) < 1 { invalidParams.Add(request.NewErrParamMinLen("TargetIds", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetPolicyId sets the PolicyId field's value. func (s *ScpActionDefinition) SetPolicyId(v string) *ScpActionDefinition { s.PolicyId = &v return s } // SetTargetIds sets the TargetIds field's value. func (s *ScpActionDefinition) SetTargetIds(v []*string) *ScpActionDefinition { s.TargetIds = v return s } // The amount of cost or usage that is measured for a budget. // // For example, a Spend for 3 GB of S3 usage would have the following parameters: // // * An Amount of 3 // // * A unit of GB type Spend struct { _ struct{} `type:"structure"` // The cost or usage amount that is associated with a budget forecast, actual // spend, or budget threshold. // // Amount is a required field Amount *string `min:"1" type:"string" required:"true"` // The unit of measurement that is used for the budget forecast, actual spend, // or budget threshold, such as dollars or GB. // // Unit is a required field Unit *string `min:"1" type:"string" required:"true"` } // String returns the string representation func (s Spend) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Spend) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *Spend) Validate() error { invalidParams := request.ErrInvalidParams{Context: "Spend"} if s.Amount == nil { invalidParams.Add(request.NewErrParamRequired("Amount")) } if s.Amount != nil && len(*s.Amount) < 1 { invalidParams.Add(request.NewErrParamMinLen("Amount", 1)) } if s.Unit == nil { invalidParams.Add(request.NewErrParamRequired("Unit")) } if s.Unit != nil && len(*s.Unit) < 1 { invalidParams.Add(request.NewErrParamMinLen("Unit", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAmount sets the Amount field's value. func (s *Spend) SetAmount(v string) *Spend { s.Amount = &v return s } // SetUnit sets the Unit field's value. func (s *Spend) SetUnit(v string) *Spend { s.Unit = &v return s } // The AWS Systems Manager (SSM) action definition details. type SsmActionDefinition struct { _ struct{} `type:"structure"` // The action subType. // // ActionSubType is a required field ActionSubType *string `type:"string" required:"true" enum:"ActionSubType"` // The EC2 and RDS instance IDs. // // InstanceIds is a required field InstanceIds []*string `min:"1" type:"list" required:"true"` // The Region to run the SSM document. // // Region is a required field Region *string `min:"9" type:"string" required:"true"` } // String returns the string representation func (s SsmActionDefinition) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s SsmActionDefinition) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *SsmActionDefinition) Validate() error { invalidParams := request.ErrInvalidParams{Context: "SsmActionDefinition"} if s.ActionSubType == nil { invalidParams.Add(request.NewErrParamRequired("ActionSubType")) } if s.InstanceIds == nil { invalidParams.Add(request.NewErrParamRequired("InstanceIds")) } if s.InstanceIds != nil && len(s.InstanceIds) < 1 { invalidParams.Add(request.NewErrParamMinLen("InstanceIds", 1)) } if s.Region == nil { invalidParams.Add(request.NewErrParamRequired("Region")) } if s.Region != nil && len(*s.Region) < 9 { invalidParams.Add(request.NewErrParamMinLen("Region", 9)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetActionSubType sets the ActionSubType field's value. func (s *SsmActionDefinition) SetActionSubType(v string) *SsmActionDefinition { s.ActionSubType = &v return s } // SetInstanceIds sets the InstanceIds field's value. func (s *SsmActionDefinition) SetInstanceIds(v []*string) *SsmActionDefinition { s.InstanceIds = v return s } // SetRegion sets the Region field's value. func (s *SsmActionDefinition) SetRegion(v string) *SsmActionDefinition { s.Region = &v return s } // The subscriber to a budget notification. The subscriber consists of a subscription // type and either an Amazon SNS topic or an email address. // // For example, an email subscriber would have the following parameters: // // * A subscriptionType of EMAIL // // * An address of example@example.com type Subscriber struct { _ struct{} `type:"structure"` // The address that AWS sends budget notifications to, either an SNS topic or // an email. // // When you create a subscriber, the value of Address can't contain line breaks. // // Address is a required field Address *string `min:"1" type:"string" required:"true" sensitive:"true"` // The type of notification that AWS sends to a subscriber. // // SubscriptionType is a required field SubscriptionType *string `type:"string" required:"true" enum:"SubscriptionType"` } // String returns the string representation func (s Subscriber) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Subscriber) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *Subscriber) Validate() error { invalidParams := request.ErrInvalidParams{Context: "Subscriber"} if s.Address == nil { invalidParams.Add(request.NewErrParamRequired("Address")) } if s.Address != nil && len(*s.Address) < 1 { invalidParams.Add(request.NewErrParamMinLen("Address", 1)) } if s.SubscriptionType == nil { invalidParams.Add(request.NewErrParamRequired("SubscriptionType")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAddress sets the Address field's value. func (s *Subscriber) SetAddress(v string) *Subscriber { s.Address = &v return s } // SetSubscriptionType sets the SubscriptionType field's value. func (s *Subscriber) SetSubscriptionType(v string) *Subscriber { s.SubscriptionType = &v return s } // The period of time that is covered by a budget. The period has a start date // and an end date. The start date must come before the end date. There are // no restrictions on the end date. type TimePeriod struct { _ struct{} `type:"structure"` // The end date for a budget. If you didn't specify an end date, AWS set your // end date to 06/15/87 00:00 UTC. The defaults are the same for the AWS Billing // and Cost Management console and the API. // // After the end date, AWS deletes the budget and all associated notifications // and subscribers. You can change your end date with the UpdateBudget operation. End *time.Time `type:"timestamp"` // The start date for a budget. If you created your budget and didn't specify // a start date, AWS defaults to the start of your chosen time period (DAILY, // MONTHLY, QUARTERLY, or ANNUALLY). For example, if you created your budget // on January 24, 2018, chose DAILY, and didn't set a start date, AWS set your // start date to 01/24/18 00:00 UTC. If you chose MONTHLY, AWS set your start // date to 01/01/18 00:00 UTC. The defaults are the same for the AWS Billing // and Cost Management console and the API. // // You can change your start date with the UpdateBudget operation. Start *time.Time `type:"timestamp"` } // String returns the string representation func (s TimePeriod) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s TimePeriod) GoString() string { return s.String() } // SetEnd sets the End field's value. func (s *TimePeriod) SetEnd(v time.Time) *TimePeriod { s.End = &v return s } // SetStart sets the Start field's value. func (s *TimePeriod) SetStart(v time.Time) *TimePeriod { s.Start = &v return s } type UpdateBudgetActionInput struct { _ struct{} `type:"structure"` // The account ID of the user. It should be a 12-digit number. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // A system-generated universally unique identifier (UUID) for the action. // // ActionId is a required field ActionId *string `min:"36" type:"string" required:"true"` // The trigger threshold of the action. ActionThreshold *ActionThreshold `type:"structure"` // This specifies if the action needs manual or automatic approval. ApprovalModel *string `type:"string" enum:"ApprovalModel"` // A string that represents the budget name. The ":" and "\" characters aren't // allowed. // // BudgetName is a required field BudgetName *string `min:"1" type:"string" required:"true"` // Specifies all of the type-specific parameters. Definition *Definition `type:"structure"` // The role passed for action execution and reversion. Roles and actions must // be in the same account. ExecutionRoleArn *string `min:"32" type:"string"` // The type of a notification. It must be ACTUAL or FORECASTED. NotificationType *string `type:"string" enum:"NotificationType"` // A list of subscribers. Subscribers []*Subscriber `min:"1" type:"list"` } // String returns the string representation func (s UpdateBudgetActionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateBudgetActionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateBudgetActionInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateBudgetActionInput"} if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } if s.AccountId != nil && len(*s.AccountId) < 12 { invalidParams.Add(request.NewErrParamMinLen("AccountId", 12)) } if s.ActionId == nil { invalidParams.Add(request.NewErrParamRequired("ActionId")) } if s.ActionId != nil && len(*s.ActionId) < 36 { invalidParams.Add(request.NewErrParamMinLen("ActionId", 36)) } if s.BudgetName == nil { invalidParams.Add(request.NewErrParamRequired("BudgetName")) } if s.BudgetName != nil && len(*s.BudgetName) < 1 { invalidParams.Add(request.NewErrParamMinLen("BudgetName", 1)) } if s.ExecutionRoleArn != nil && len(*s.ExecutionRoleArn) < 32 { invalidParams.Add(request.NewErrParamMinLen("ExecutionRoleArn", 32)) } if s.Subscribers != nil && len(s.Subscribers) < 1 { invalidParams.Add(request.NewErrParamMinLen("Subscribers", 1)) } if s.ActionThreshold != nil { if err := s.ActionThreshold.Validate(); err != nil { invalidParams.AddNested("ActionThreshold", err.(request.ErrInvalidParams)) } } if s.Definition != nil { if err := s.Definition.Validate(); err != nil { invalidParams.AddNested("Definition", err.(request.ErrInvalidParams)) } } if s.Subscribers != nil { for i, v := range s.Subscribers { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Subscribers", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAccountId sets the AccountId field's value. func (s *UpdateBudgetActionInput) SetAccountId(v string) *UpdateBudgetActionInput { s.AccountId = &v return s } // SetActionId sets the ActionId field's value. func (s *UpdateBudgetActionInput) SetActionId(v string) *UpdateBudgetActionInput { s.ActionId = &v return s } // SetActionThreshold sets the ActionThreshold field's value. func (s *UpdateBudgetActionInput) SetActionThreshold(v *ActionThreshold) *UpdateBudgetActionInput { s.ActionThreshold = v return s } // SetApprovalModel sets the ApprovalModel field's value. func (s *UpdateBudgetActionInput) SetApprovalModel(v string) *UpdateBudgetActionInput { s.ApprovalModel = &v return s } // SetBudgetName sets the BudgetName field's value. func (s *UpdateBudgetActionInput) SetBudgetName(v string) *UpdateBudgetActionInput { s.BudgetName = &v return s } // SetDefinition sets the Definition field's value. func (s *UpdateBudgetActionInput) SetDefinition(v *Definition) *UpdateBudgetActionInput { s.Definition = v return s } // SetExecutionRoleArn sets the ExecutionRoleArn field's value. func (s *UpdateBudgetActionInput) SetExecutionRoleArn(v string) *UpdateBudgetActionInput { s.ExecutionRoleArn = &v return s } // SetNotificationType sets the NotificationType field's value. func (s *UpdateBudgetActionInput) SetNotificationType(v string) *UpdateBudgetActionInput { s.NotificationType = &v return s } // SetSubscribers sets the Subscribers field's value. func (s *UpdateBudgetActionInput) SetSubscribers(v []*Subscriber) *UpdateBudgetActionInput { s.Subscribers = v return s } type UpdateBudgetActionOutput struct { _ struct{} `type:"structure"` // The account ID of the user. It should be a 12-digit number. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // A string that represents the budget name. The ":" and "\" characters aren't // allowed. // // BudgetName is a required field BudgetName *string `min:"1" type:"string" required:"true"` // The updated action resource information. // // NewAction is a required field NewAction *Action `type:"structure" required:"true"` // The previous action resource information. // // OldAction is a required field OldAction *Action `type:"structure" required:"true"` } // String returns the string representation func (s UpdateBudgetActionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateBudgetActionOutput) GoString() string { return s.String() } // SetAccountId sets the AccountId field's value. func (s *UpdateBudgetActionOutput) SetAccountId(v string) *UpdateBudgetActionOutput { s.AccountId = &v return s } // SetBudgetName sets the BudgetName field's value. func (s *UpdateBudgetActionOutput) SetBudgetName(v string) *UpdateBudgetActionOutput { s.BudgetName = &v return s } // SetNewAction sets the NewAction field's value. func (s *UpdateBudgetActionOutput) SetNewAction(v *Action) *UpdateBudgetActionOutput { s.NewAction = v return s } // SetOldAction sets the OldAction field's value. func (s *UpdateBudgetActionOutput) SetOldAction(v *Action) *UpdateBudgetActionOutput { s.OldAction = v return s } // Request of UpdateBudget type UpdateBudgetInput struct { _ struct{} `type:"structure"` // The accountId that is associated with the budget that you want to update. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // The budget that you want to update your budget to. // // NewBudget is a required field NewBudget *Budget `type:"structure" required:"true"` } // String returns the string representation func (s UpdateBudgetInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateBudgetInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateBudgetInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateBudgetInput"} if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } if s.AccountId != nil && len(*s.AccountId) < 12 { invalidParams.Add(request.NewErrParamMinLen("AccountId", 12)) } if s.NewBudget == nil { invalidParams.Add(request.NewErrParamRequired("NewBudget")) } if s.NewBudget != nil { if err := s.NewBudget.Validate(); err != nil { invalidParams.AddNested("NewBudget", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAccountId sets the AccountId field's value. func (s *UpdateBudgetInput) SetAccountId(v string) *UpdateBudgetInput { s.AccountId = &v return s } // SetNewBudget sets the NewBudget field's value. func (s *UpdateBudgetInput) SetNewBudget(v *Budget) *UpdateBudgetInput { s.NewBudget = v return s } // Response of UpdateBudget type UpdateBudgetOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s UpdateBudgetOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateBudgetOutput) GoString() string { return s.String() } // Request of UpdateNotification type UpdateNotificationInput struct { _ struct{} `type:"structure"` // The accountId that is associated with the budget whose notification you want // to update. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // The name of the budget whose notification you want to update. // // BudgetName is a required field BudgetName *string `min:"1" type:"string" required:"true"` // The updated notification to be associated with a budget. // // NewNotification is a required field NewNotification *Notification `type:"structure" required:"true"` // The previous notification that is associated with a budget. // // OldNotification is a required field OldNotification *Notification `type:"structure" required:"true"` } // String returns the string representation func (s UpdateNotificationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateNotificationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateNotificationInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateNotificationInput"} if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } if s.AccountId != nil && len(*s.AccountId) < 12 { invalidParams.Add(request.NewErrParamMinLen("AccountId", 12)) } if s.BudgetName == nil { invalidParams.Add(request.NewErrParamRequired("BudgetName")) } if s.BudgetName != nil && len(*s.BudgetName) < 1 { invalidParams.Add(request.NewErrParamMinLen("BudgetName", 1)) } if s.NewNotification == nil { invalidParams.Add(request.NewErrParamRequired("NewNotification")) } if s.OldNotification == nil { invalidParams.Add(request.NewErrParamRequired("OldNotification")) } if s.NewNotification != nil { if err := s.NewNotification.Validate(); err != nil { invalidParams.AddNested("NewNotification", err.(request.ErrInvalidParams)) } } if s.OldNotification != nil { if err := s.OldNotification.Validate(); err != nil { invalidParams.AddNested("OldNotification", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAccountId sets the AccountId field's value. func (s *UpdateNotificationInput) SetAccountId(v string) *UpdateNotificationInput { s.AccountId = &v return s } // SetBudgetName sets the BudgetName field's value. func (s *UpdateNotificationInput) SetBudgetName(v string) *UpdateNotificationInput { s.BudgetName = &v return s } // SetNewNotification sets the NewNotification field's value. func (s *UpdateNotificationInput) SetNewNotification(v *Notification) *UpdateNotificationInput { s.NewNotification = v return s } // SetOldNotification sets the OldNotification field's value. func (s *UpdateNotificationInput) SetOldNotification(v *Notification) *UpdateNotificationInput { s.OldNotification = v return s } // Response of UpdateNotification type UpdateNotificationOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s UpdateNotificationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateNotificationOutput) GoString() string { return s.String() } // Request of UpdateSubscriber type UpdateSubscriberInput struct { _ struct{} `type:"structure"` // The accountId that is associated with the budget whose subscriber you want // to update. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // The name of the budget whose subscriber you want to update. // // BudgetName is a required field BudgetName *string `min:"1" type:"string" required:"true"` // The updated subscriber that is associated with a budget notification. // // NewSubscriber is a required field NewSubscriber *Subscriber `type:"structure" required:"true"` // The notification whose subscriber you want to update. // // Notification is a required field Notification *Notification `type:"structure" required:"true"` // The previous subscriber that is associated with a budget notification. // // OldSubscriber is a required field OldSubscriber *Subscriber `type:"structure" required:"true"` } // String returns the string representation func (s UpdateSubscriberInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateSubscriberInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateSubscriberInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateSubscriberInput"} if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } if s.AccountId != nil && len(*s.AccountId) < 12 { invalidParams.Add(request.NewErrParamMinLen("AccountId", 12)) } if s.BudgetName == nil { invalidParams.Add(request.NewErrParamRequired("BudgetName")) } if s.BudgetName != nil && len(*s.BudgetName) < 1 { invalidParams.Add(request.NewErrParamMinLen("BudgetName", 1)) } if s.NewSubscriber == nil { invalidParams.Add(request.NewErrParamRequired("NewSubscriber")) } if s.Notification == nil { invalidParams.Add(request.NewErrParamRequired("Notification")) } if s.OldSubscriber == nil { invalidParams.Add(request.NewErrParamRequired("OldSubscriber")) } if s.NewSubscriber != nil { if err := s.NewSubscriber.Validate(); err != nil { invalidParams.AddNested("NewSubscriber", err.(request.ErrInvalidParams)) } } if s.Notification != nil { if err := s.Notification.Validate(); err != nil { invalidParams.AddNested("Notification", err.(request.ErrInvalidParams)) } } if s.OldSubscriber != nil { if err := s.OldSubscriber.Validate(); err != nil { invalidParams.AddNested("OldSubscriber", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAccountId sets the AccountId field's value. func (s *UpdateSubscriberInput) SetAccountId(v string) *UpdateSubscriberInput { s.AccountId = &v return s } // SetBudgetName sets the BudgetName field's value. func (s *UpdateSubscriberInput) SetBudgetName(v string) *UpdateSubscriberInput { s.BudgetName = &v return s } // SetNewSubscriber sets the NewSubscriber field's value. func (s *UpdateSubscriberInput) SetNewSubscriber(v *Subscriber) *UpdateSubscriberInput { s.NewSubscriber = v return s } // SetNotification sets the Notification field's value. func (s *UpdateSubscriberInput) SetNotification(v *Notification) *UpdateSubscriberInput { s.Notification = v return s } // SetOldSubscriber sets the OldSubscriber field's value. func (s *UpdateSubscriberInput) SetOldSubscriber(v *Subscriber) *UpdateSubscriberInput { s.OldSubscriber = v return s } // Response of UpdateSubscriber type UpdateSubscriberOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s UpdateSubscriberOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateSubscriberOutput) GoString() string { return s.String() } const ( // ActionStatusStandby is a ActionStatus enum value ActionStatusStandby = "STANDBY" // ActionStatusPending is a ActionStatus enum value ActionStatusPending = "PENDING" // ActionStatusExecutionInProgress is a ActionStatus enum value ActionStatusExecutionInProgress = "EXECUTION_IN_PROGRESS" // ActionStatusExecutionSuccess is a ActionStatus enum value ActionStatusExecutionSuccess = "EXECUTION_SUCCESS" // ActionStatusExecutionFailure is a ActionStatus enum value ActionStatusExecutionFailure = "EXECUTION_FAILURE" // ActionStatusReverseInProgress is a ActionStatus enum value ActionStatusReverseInProgress = "REVERSE_IN_PROGRESS" // ActionStatusReverseSuccess is a ActionStatus enum value ActionStatusReverseSuccess = "REVERSE_SUCCESS" // ActionStatusReverseFailure is a ActionStatus enum value ActionStatusReverseFailure = "REVERSE_FAILURE" // ActionStatusResetInProgress is a ActionStatus enum value ActionStatusResetInProgress = "RESET_IN_PROGRESS" // ActionStatusResetFailure is a ActionStatus enum value ActionStatusResetFailure = "RESET_FAILURE" ) // ActionStatus_Values returns all elements of the ActionStatus enum func ActionStatus_Values() []string { return []string{ ActionStatusStandby, ActionStatusPending, ActionStatusExecutionInProgress, ActionStatusExecutionSuccess, ActionStatusExecutionFailure, ActionStatusReverseInProgress, ActionStatusReverseSuccess, ActionStatusReverseFailure, ActionStatusResetInProgress, ActionStatusResetFailure, } } const ( // ActionSubTypeStopEc2Instances is a ActionSubType enum value ActionSubTypeStopEc2Instances = "STOP_EC2_INSTANCES" // ActionSubTypeStopRdsInstances is a ActionSubType enum value ActionSubTypeStopRdsInstances = "STOP_RDS_INSTANCES" ) // ActionSubType_Values returns all elements of the ActionSubType enum func ActionSubType_Values() []string { return []string{ ActionSubTypeStopEc2Instances, ActionSubTypeStopRdsInstances, } } const ( // ActionTypeApplyIamPolicy is a ActionType enum value ActionTypeApplyIamPolicy = "APPLY_IAM_POLICY" // ActionTypeApplyScpPolicy is a ActionType enum value ActionTypeApplyScpPolicy = "APPLY_SCP_POLICY" // ActionTypeRunSsmDocuments is a ActionType enum value ActionTypeRunSsmDocuments = "RUN_SSM_DOCUMENTS" ) // ActionType_Values returns all elements of the ActionType enum func ActionType_Values() []string { return []string{ ActionTypeApplyIamPolicy, ActionTypeApplyScpPolicy, ActionTypeRunSsmDocuments, } } const ( // ApprovalModelAutomatic is a ApprovalModel enum value ApprovalModelAutomatic = "AUTOMATIC" // ApprovalModelManual is a ApprovalModel enum value ApprovalModelManual = "MANUAL" ) // ApprovalModel_Values returns all elements of the ApprovalModel enum func ApprovalModel_Values() []string { return []string{ ApprovalModelAutomatic, ApprovalModelManual, } } // The type of a budget. It must be one of the following types: // // COST, USAGE, RI_UTILIZATION, RI_COVERAGE, SAVINGS_PLANS_UTILIZATION, or SAVINGS_PLANS_COVERAGE. const ( // BudgetTypeUsage is a BudgetType enum value BudgetTypeUsage = "USAGE" // BudgetTypeCost is a BudgetType enum value BudgetTypeCost = "COST" // BudgetTypeRiUtilization is a BudgetType enum value BudgetTypeRiUtilization = "RI_UTILIZATION" // BudgetTypeRiCoverage is a BudgetType enum value BudgetTypeRiCoverage = "RI_COVERAGE" // BudgetTypeSavingsPlansUtilization is a BudgetType enum value BudgetTypeSavingsPlansUtilization = "SAVINGS_PLANS_UTILIZATION" // BudgetTypeSavingsPlansCoverage is a BudgetType enum value BudgetTypeSavingsPlansCoverage = "SAVINGS_PLANS_COVERAGE" ) // BudgetType_Values returns all elements of the BudgetType enum func BudgetType_Values() []string { return []string{ BudgetTypeUsage, BudgetTypeCost, BudgetTypeRiUtilization, BudgetTypeRiCoverage, BudgetTypeSavingsPlansUtilization, BudgetTypeSavingsPlansCoverage, } } // The comparison operator of a notification. Currently the service supports // the following operators: // // GREATER_THAN, LESS_THAN, EQUAL_TO const ( // ComparisonOperatorGreaterThan is a ComparisonOperator enum value ComparisonOperatorGreaterThan = "GREATER_THAN" // ComparisonOperatorLessThan is a ComparisonOperator enum value ComparisonOperatorLessThan = "LESS_THAN" // ComparisonOperatorEqualTo is a ComparisonOperator enum value ComparisonOperatorEqualTo = "EQUAL_TO" ) // ComparisonOperator_Values returns all elements of the ComparisonOperator enum func ComparisonOperator_Values() []string { return []string{ ComparisonOperatorGreaterThan, ComparisonOperatorLessThan, ComparisonOperatorEqualTo, } } const ( // EventTypeSystem is a EventType enum value EventTypeSystem = "SYSTEM" // EventTypeCreateAction is a EventType enum value EventTypeCreateAction = "CREATE_ACTION" // EventTypeDeleteAction is a EventType enum value EventTypeDeleteAction = "DELETE_ACTION" // EventTypeUpdateAction is a EventType enum value EventTypeUpdateAction = "UPDATE_ACTION" // EventTypeExecuteAction is a EventType enum value EventTypeExecuteAction = "EXECUTE_ACTION" ) // EventType_Values returns all elements of the EventType enum func EventType_Values() []string { return []string{ EventTypeSystem, EventTypeCreateAction, EventTypeDeleteAction, EventTypeUpdateAction, EventTypeExecuteAction, } } const ( // ExecutionTypeApproveBudgetAction is a ExecutionType enum value ExecutionTypeApproveBudgetAction = "APPROVE_BUDGET_ACTION" // ExecutionTypeRetryBudgetAction is a ExecutionType enum value ExecutionTypeRetryBudgetAction = "RETRY_BUDGET_ACTION" // ExecutionTypeReverseBudgetAction is a ExecutionType enum value ExecutionTypeReverseBudgetAction = "REVERSE_BUDGET_ACTION" // ExecutionTypeResetBudgetAction is a ExecutionType enum value ExecutionTypeResetBudgetAction = "RESET_BUDGET_ACTION" ) // ExecutionType_Values returns all elements of the ExecutionType enum func ExecutionType_Values() []string { return []string{ ExecutionTypeApproveBudgetAction, ExecutionTypeRetryBudgetAction, ExecutionTypeReverseBudgetAction, ExecutionTypeResetBudgetAction, } } const ( // NotificationStateOk is a NotificationState enum value NotificationStateOk = "OK" // NotificationStateAlarm is a NotificationState enum value NotificationStateAlarm = "ALARM" ) // NotificationState_Values returns all elements of the NotificationState enum func NotificationState_Values() []string { return []string{ NotificationStateOk, NotificationStateAlarm, } } // The type of a notification. It must be ACTUAL or FORECASTED. const ( // NotificationTypeActual is a NotificationType enum value NotificationTypeActual = "ACTUAL" // NotificationTypeForecasted is a NotificationType enum value NotificationTypeForecasted = "FORECASTED" ) // NotificationType_Values returns all elements of the NotificationType enum func NotificationType_Values() []string { return []string{ NotificationTypeActual, NotificationTypeForecasted, } } // The subscription type of the subscriber. It can be SMS or EMAIL. const ( // SubscriptionTypeSns is a SubscriptionType enum value SubscriptionTypeSns = "SNS" // SubscriptionTypeEmail is a SubscriptionType enum value SubscriptionTypeEmail = "EMAIL" ) // SubscriptionType_Values returns all elements of the SubscriptionType enum func SubscriptionType_Values() []string { return []string{ SubscriptionTypeSns, SubscriptionTypeEmail, } } // The type of threshold for a notification. const ( // ThresholdTypePercentage is a ThresholdType enum value ThresholdTypePercentage = "PERCENTAGE" // ThresholdTypeAbsoluteValue is a ThresholdType enum value ThresholdTypeAbsoluteValue = "ABSOLUTE_VALUE" ) // ThresholdType_Values returns all elements of the ThresholdType enum func ThresholdType_Values() []string { return []string{ ThresholdTypePercentage, ThresholdTypeAbsoluteValue, } } // The time unit of the budget, such as MONTHLY or QUARTERLY. const ( // TimeUnitDaily is a TimeUnit enum value TimeUnitDaily = "DAILY" // TimeUnitMonthly is a TimeUnit enum value TimeUnitMonthly = "MONTHLY" // TimeUnitQuarterly is a TimeUnit enum value TimeUnitQuarterly = "QUARTERLY" // TimeUnitAnnually is a TimeUnit enum value TimeUnitAnnually = "ANNUALLY" ) // TimeUnit_Values returns all elements of the TimeUnit enum func TimeUnit_Values() []string { return []string{ TimeUnitDaily, TimeUnitMonthly, TimeUnitQuarterly, TimeUnitAnnually, } }
7,436
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package budgets provides the client and types for making API // requests to AWS Budgets. // // The AWS Budgets API enables you to use AWS Budgets to plan your service usage, // service costs, and instance reservations. The API reference provides descriptions, // syntax, and usage examples for each of the actions and data types for AWS // Budgets. // // Budgets provide you with a way to see the following information: // // * How close your plan is to your budgeted amount or to the free tier limits // // * Your usage-to-date, including how much you've used of your Reserved // Instances (RIs) // // * Your current estimated charges from AWS, and how much your predicted // usage will accrue in charges by the end of the month // // * How much of your budget has been used // // AWS updates your budget status several times a day. Budgets track your unblended // costs, subscriptions, refunds, and RIs. You can create the following types // of budgets: // // * Cost budgets - Plan how much you want to spend on a service. // // * Usage budgets - Plan how much you want to use one or more services. // // * RI utilization budgets - Define a utilization threshold, and receive // alerts when your RI usage falls below that threshold. This lets you see // if your RIs are unused or under-utilized. // // * RI coverage budgets - Define a coverage threshold, and receive alerts // when the number of your instance hours that are covered by RIs fall below // that threshold. This lets you see how much of your instance usage is covered // by a reservation. // // Service Endpoint // // The AWS Budgets API provides the following endpoint: // // * https://budgets.amazonaws.com // // For information about costs that are associated with the AWS Budgets API, // see AWS Cost Management Pricing (https://aws.amazon.com/aws-cost-management/pricing/). // // See budgets package documentation for more information. // https://docs.aws.amazon.com/sdk-for-go/api/service/budgets/ // // Using the Client // // To contact AWS Budgets 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 Budgets client Budgets for more // information on creating client for this service. // https://docs.aws.amazon.com/sdk-for-go/api/service/budgets/#New package budgets
68
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package budgets import ( "github.com/aws/aws-sdk-go/private/protocol" ) const ( // ErrCodeAccessDeniedException for service response error code // "AccessDeniedException". // // You are not authorized to use this operation with the given parameters. ErrCodeAccessDeniedException = "AccessDeniedException" // ErrCodeCreationLimitExceededException for service response error code // "CreationLimitExceededException". // // You've exceeded the notification or subscriber limit. ErrCodeCreationLimitExceededException = "CreationLimitExceededException" // ErrCodeDuplicateRecordException for service response error code // "DuplicateRecordException". // // The budget name already exists. Budget names must be unique within an account. ErrCodeDuplicateRecordException = "DuplicateRecordException" // ErrCodeExpiredNextTokenException for service response error code // "ExpiredNextTokenException". // // The pagination token expired. ErrCodeExpiredNextTokenException = "ExpiredNextTokenException" // ErrCodeInternalErrorException for service response error code // "InternalErrorException". // // An error on the server occurred during the processing of your request. Try // again later. ErrCodeInternalErrorException = "InternalErrorException" // ErrCodeInvalidNextTokenException for service response error code // "InvalidNextTokenException". // // The pagination token is invalid. ErrCodeInvalidNextTokenException = "InvalidNextTokenException" // ErrCodeInvalidParameterException for service response error code // "InvalidParameterException". // // An error on the client occurred. Typically, the cause is an invalid input // value. ErrCodeInvalidParameterException = "InvalidParameterException" // ErrCodeNotFoundException for service response error code // "NotFoundException". // // We can’t locate the resource that you specified. ErrCodeNotFoundException = "NotFoundException" // ErrCodeResourceLockedException for service response error code // "ResourceLockedException". // // The request was received and recognized by the server, but the server rejected // that particular method for the requested resource. ErrCodeResourceLockedException = "ResourceLockedException" ) var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "AccessDeniedException": newErrorAccessDeniedException, "CreationLimitExceededException": newErrorCreationLimitExceededException, "DuplicateRecordException": newErrorDuplicateRecordException, "ExpiredNextTokenException": newErrorExpiredNextTokenException, "InternalErrorException": newErrorInternalErrorException, "InvalidNextTokenException": newErrorInvalidNextTokenException, "InvalidParameterException": newErrorInvalidParameterException, "NotFoundException": newErrorNotFoundException, "ResourceLockedException": newErrorResourceLockedException, }
80
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package budgets 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" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) // Budgets provides the API operation methods for making requests to // AWS Budgets. See this package's package overview docs // for details on the service. // // Budgets methods are safe to use concurrently. It is not safe to // modify mutate any of the struct's properties though. type Budgets 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 = "budgets" // Name of service. EndpointsID = ServiceName // ID to lookup a service endpoint with. ServiceID = "Budgets" // ServiceID is a unique identifier of a specific service. ) // New creates a new instance of the Budgets 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: // mySession := session.Must(session.NewSession()) // // // Create a Budgets client from just a session. // svc := budgets.New(mySession) // // // Create a Budgets client with additional configuration // svc := budgets.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Budgets { c := p.ClientConfig(EndpointsID, cfgs...) return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *Budgets { svc := &Budgets{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, ServiceID: ServiceID, SigningName: signingName, SigningRegion: signingRegion, PartitionID: partitionID, Endpoint: endpoint, APIVersion: "2016-10-20", JSONVersion: "1.1", TargetPrefix: "AWSBudgetServiceGateway", }, handlers, ), } // Handlers svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) svc.Handlers.UnmarshalError.PushBackNamed( protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), ) // Run custom client initialization if present if initClient != nil { initClient(svc.Client) } return svc } // newRequest creates a new request for a Budgets operation and runs any // custom request initialization. func (c *Budgets) 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 }
104
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package budgetsiface provides an interface to enable mocking the AWS Budgets 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 budgetsiface import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/service/budgets" ) // BudgetsAPI provides an interface to enable mocking the // budgets.Budgets 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 Budgets. // func myFunc(svc budgetsiface.BudgetsAPI) bool { // // Make svc.CreateBudget request // } // // func main() { // sess := session.New() // svc := budgets.New(sess) // // myFunc(svc) // } // // In your _test.go file: // // // Define a mock struct to be used in your unit tests of myFunc. // type mockBudgetsClient struct { // budgetsiface.BudgetsAPI // } // func (m *mockBudgetsClient) CreateBudget(input *budgets.CreateBudgetInput) (*budgets.CreateBudgetOutput, error) { // // mock response/functionality // } // // func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockBudgetsClient{} // // 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 BudgetsAPI interface { CreateBudget(*budgets.CreateBudgetInput) (*budgets.CreateBudgetOutput, error) CreateBudgetWithContext(aws.Context, *budgets.CreateBudgetInput, ...request.Option) (*budgets.CreateBudgetOutput, error) CreateBudgetRequest(*budgets.CreateBudgetInput) (*request.Request, *budgets.CreateBudgetOutput) CreateBudgetAction(*budgets.CreateBudgetActionInput) (*budgets.CreateBudgetActionOutput, error) CreateBudgetActionWithContext(aws.Context, *budgets.CreateBudgetActionInput, ...request.Option) (*budgets.CreateBudgetActionOutput, error) CreateBudgetActionRequest(*budgets.CreateBudgetActionInput) (*request.Request, *budgets.CreateBudgetActionOutput) CreateNotification(*budgets.CreateNotificationInput) (*budgets.CreateNotificationOutput, error) CreateNotificationWithContext(aws.Context, *budgets.CreateNotificationInput, ...request.Option) (*budgets.CreateNotificationOutput, error) CreateNotificationRequest(*budgets.CreateNotificationInput) (*request.Request, *budgets.CreateNotificationOutput) CreateSubscriber(*budgets.CreateSubscriberInput) (*budgets.CreateSubscriberOutput, error) CreateSubscriberWithContext(aws.Context, *budgets.CreateSubscriberInput, ...request.Option) (*budgets.CreateSubscriberOutput, error) CreateSubscriberRequest(*budgets.CreateSubscriberInput) (*request.Request, *budgets.CreateSubscriberOutput) DeleteBudget(*budgets.DeleteBudgetInput) (*budgets.DeleteBudgetOutput, error) DeleteBudgetWithContext(aws.Context, *budgets.DeleteBudgetInput, ...request.Option) (*budgets.DeleteBudgetOutput, error) DeleteBudgetRequest(*budgets.DeleteBudgetInput) (*request.Request, *budgets.DeleteBudgetOutput) DeleteBudgetAction(*budgets.DeleteBudgetActionInput) (*budgets.DeleteBudgetActionOutput, error) DeleteBudgetActionWithContext(aws.Context, *budgets.DeleteBudgetActionInput, ...request.Option) (*budgets.DeleteBudgetActionOutput, error) DeleteBudgetActionRequest(*budgets.DeleteBudgetActionInput) (*request.Request, *budgets.DeleteBudgetActionOutput) DeleteNotification(*budgets.DeleteNotificationInput) (*budgets.DeleteNotificationOutput, error) DeleteNotificationWithContext(aws.Context, *budgets.DeleteNotificationInput, ...request.Option) (*budgets.DeleteNotificationOutput, error) DeleteNotificationRequest(*budgets.DeleteNotificationInput) (*request.Request, *budgets.DeleteNotificationOutput) DeleteSubscriber(*budgets.DeleteSubscriberInput) (*budgets.DeleteSubscriberOutput, error) DeleteSubscriberWithContext(aws.Context, *budgets.DeleteSubscriberInput, ...request.Option) (*budgets.DeleteSubscriberOutput, error) DeleteSubscriberRequest(*budgets.DeleteSubscriberInput) (*request.Request, *budgets.DeleteSubscriberOutput) DescribeBudget(*budgets.DescribeBudgetInput) (*budgets.DescribeBudgetOutput, error) DescribeBudgetWithContext(aws.Context, *budgets.DescribeBudgetInput, ...request.Option) (*budgets.DescribeBudgetOutput, error) DescribeBudgetRequest(*budgets.DescribeBudgetInput) (*request.Request, *budgets.DescribeBudgetOutput) DescribeBudgetAction(*budgets.DescribeBudgetActionInput) (*budgets.DescribeBudgetActionOutput, error) DescribeBudgetActionWithContext(aws.Context, *budgets.DescribeBudgetActionInput, ...request.Option) (*budgets.DescribeBudgetActionOutput, error) DescribeBudgetActionRequest(*budgets.DescribeBudgetActionInput) (*request.Request, *budgets.DescribeBudgetActionOutput) DescribeBudgetActionHistories(*budgets.DescribeBudgetActionHistoriesInput) (*budgets.DescribeBudgetActionHistoriesOutput, error) DescribeBudgetActionHistoriesWithContext(aws.Context, *budgets.DescribeBudgetActionHistoriesInput, ...request.Option) (*budgets.DescribeBudgetActionHistoriesOutput, error) DescribeBudgetActionHistoriesRequest(*budgets.DescribeBudgetActionHistoriesInput) (*request.Request, *budgets.DescribeBudgetActionHistoriesOutput) DescribeBudgetActionHistoriesPages(*budgets.DescribeBudgetActionHistoriesInput, func(*budgets.DescribeBudgetActionHistoriesOutput, bool) bool) error DescribeBudgetActionHistoriesPagesWithContext(aws.Context, *budgets.DescribeBudgetActionHistoriesInput, func(*budgets.DescribeBudgetActionHistoriesOutput, bool) bool, ...request.Option) error DescribeBudgetActionsForAccount(*budgets.DescribeBudgetActionsForAccountInput) (*budgets.DescribeBudgetActionsForAccountOutput, error) DescribeBudgetActionsForAccountWithContext(aws.Context, *budgets.DescribeBudgetActionsForAccountInput, ...request.Option) (*budgets.DescribeBudgetActionsForAccountOutput, error) DescribeBudgetActionsForAccountRequest(*budgets.DescribeBudgetActionsForAccountInput) (*request.Request, *budgets.DescribeBudgetActionsForAccountOutput) DescribeBudgetActionsForAccountPages(*budgets.DescribeBudgetActionsForAccountInput, func(*budgets.DescribeBudgetActionsForAccountOutput, bool) bool) error DescribeBudgetActionsForAccountPagesWithContext(aws.Context, *budgets.DescribeBudgetActionsForAccountInput, func(*budgets.DescribeBudgetActionsForAccountOutput, bool) bool, ...request.Option) error DescribeBudgetActionsForBudget(*budgets.DescribeBudgetActionsForBudgetInput) (*budgets.DescribeBudgetActionsForBudgetOutput, error) DescribeBudgetActionsForBudgetWithContext(aws.Context, *budgets.DescribeBudgetActionsForBudgetInput, ...request.Option) (*budgets.DescribeBudgetActionsForBudgetOutput, error) DescribeBudgetActionsForBudgetRequest(*budgets.DescribeBudgetActionsForBudgetInput) (*request.Request, *budgets.DescribeBudgetActionsForBudgetOutput) DescribeBudgetActionsForBudgetPages(*budgets.DescribeBudgetActionsForBudgetInput, func(*budgets.DescribeBudgetActionsForBudgetOutput, bool) bool) error DescribeBudgetActionsForBudgetPagesWithContext(aws.Context, *budgets.DescribeBudgetActionsForBudgetInput, func(*budgets.DescribeBudgetActionsForBudgetOutput, bool) bool, ...request.Option) error DescribeBudgetPerformanceHistory(*budgets.DescribeBudgetPerformanceHistoryInput) (*budgets.DescribeBudgetPerformanceHistoryOutput, error) DescribeBudgetPerformanceHistoryWithContext(aws.Context, *budgets.DescribeBudgetPerformanceHistoryInput, ...request.Option) (*budgets.DescribeBudgetPerformanceHistoryOutput, error) DescribeBudgetPerformanceHistoryRequest(*budgets.DescribeBudgetPerformanceHistoryInput) (*request.Request, *budgets.DescribeBudgetPerformanceHistoryOutput) DescribeBudgetPerformanceHistoryPages(*budgets.DescribeBudgetPerformanceHistoryInput, func(*budgets.DescribeBudgetPerformanceHistoryOutput, bool) bool) error DescribeBudgetPerformanceHistoryPagesWithContext(aws.Context, *budgets.DescribeBudgetPerformanceHistoryInput, func(*budgets.DescribeBudgetPerformanceHistoryOutput, bool) bool, ...request.Option) error DescribeBudgets(*budgets.DescribeBudgetsInput) (*budgets.DescribeBudgetsOutput, error) DescribeBudgetsWithContext(aws.Context, *budgets.DescribeBudgetsInput, ...request.Option) (*budgets.DescribeBudgetsOutput, error) DescribeBudgetsRequest(*budgets.DescribeBudgetsInput) (*request.Request, *budgets.DescribeBudgetsOutput) DescribeBudgetsPages(*budgets.DescribeBudgetsInput, func(*budgets.DescribeBudgetsOutput, bool) bool) error DescribeBudgetsPagesWithContext(aws.Context, *budgets.DescribeBudgetsInput, func(*budgets.DescribeBudgetsOutput, bool) bool, ...request.Option) error DescribeNotificationsForBudget(*budgets.DescribeNotificationsForBudgetInput) (*budgets.DescribeNotificationsForBudgetOutput, error) DescribeNotificationsForBudgetWithContext(aws.Context, *budgets.DescribeNotificationsForBudgetInput, ...request.Option) (*budgets.DescribeNotificationsForBudgetOutput, error) DescribeNotificationsForBudgetRequest(*budgets.DescribeNotificationsForBudgetInput) (*request.Request, *budgets.DescribeNotificationsForBudgetOutput) DescribeNotificationsForBudgetPages(*budgets.DescribeNotificationsForBudgetInput, func(*budgets.DescribeNotificationsForBudgetOutput, bool) bool) error DescribeNotificationsForBudgetPagesWithContext(aws.Context, *budgets.DescribeNotificationsForBudgetInput, func(*budgets.DescribeNotificationsForBudgetOutput, bool) bool, ...request.Option) error DescribeSubscribersForNotification(*budgets.DescribeSubscribersForNotificationInput) (*budgets.DescribeSubscribersForNotificationOutput, error) DescribeSubscribersForNotificationWithContext(aws.Context, *budgets.DescribeSubscribersForNotificationInput, ...request.Option) (*budgets.DescribeSubscribersForNotificationOutput, error) DescribeSubscribersForNotificationRequest(*budgets.DescribeSubscribersForNotificationInput) (*request.Request, *budgets.DescribeSubscribersForNotificationOutput) DescribeSubscribersForNotificationPages(*budgets.DescribeSubscribersForNotificationInput, func(*budgets.DescribeSubscribersForNotificationOutput, bool) bool) error DescribeSubscribersForNotificationPagesWithContext(aws.Context, *budgets.DescribeSubscribersForNotificationInput, func(*budgets.DescribeSubscribersForNotificationOutput, bool) bool, ...request.Option) error ExecuteBudgetAction(*budgets.ExecuteBudgetActionInput) (*budgets.ExecuteBudgetActionOutput, error) ExecuteBudgetActionWithContext(aws.Context, *budgets.ExecuteBudgetActionInput, ...request.Option) (*budgets.ExecuteBudgetActionOutput, error) ExecuteBudgetActionRequest(*budgets.ExecuteBudgetActionInput) (*request.Request, *budgets.ExecuteBudgetActionOutput) UpdateBudget(*budgets.UpdateBudgetInput) (*budgets.UpdateBudgetOutput, error) UpdateBudgetWithContext(aws.Context, *budgets.UpdateBudgetInput, ...request.Option) (*budgets.UpdateBudgetOutput, error) UpdateBudgetRequest(*budgets.UpdateBudgetInput) (*request.Request, *budgets.UpdateBudgetOutput) UpdateBudgetAction(*budgets.UpdateBudgetActionInput) (*budgets.UpdateBudgetActionOutput, error) UpdateBudgetActionWithContext(aws.Context, *budgets.UpdateBudgetActionInput, ...request.Option) (*budgets.UpdateBudgetActionOutput, error) UpdateBudgetActionRequest(*budgets.UpdateBudgetActionInput) (*request.Request, *budgets.UpdateBudgetActionOutput) UpdateNotification(*budgets.UpdateNotificationInput) (*budgets.UpdateNotificationOutput, error) UpdateNotificationWithContext(aws.Context, *budgets.UpdateNotificationInput, ...request.Option) (*budgets.UpdateNotificationOutput, error) UpdateNotificationRequest(*budgets.UpdateNotificationInput) (*request.Request, *budgets.UpdateNotificationOutput) UpdateSubscriber(*budgets.UpdateSubscriberInput) (*budgets.UpdateSubscriberOutput, error) UpdateSubscriberWithContext(aws.Context, *budgets.UpdateSubscriberInput, ...request.Option) (*budgets.UpdateSubscriberOutput, error) UpdateSubscriberRequest(*budgets.UpdateSubscriberInput) (*request.Request, *budgets.UpdateSubscriberOutput) } var _ BudgetsAPI = (*budgets.Budgets)(nil)
174
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package chime provides the client and types for making API // requests to Amazon Chime. // // The Amazon Chime API (application programming interface) is designed for // developers to perform key tasks, such as creating and managing Amazon Chime // accounts, users, and Voice Connectors. This guide provides detailed information // about the Amazon Chime API, including operations, types, inputs and outputs, // and error codes. It also includes some server-side API actions to use with // the Amazon Chime SDK. For more information about the Amazon Chime SDK, see // Using the Amazon Chime SDK (https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html) // in the Amazon Chime Developer Guide. // // You can use an AWS SDK, the AWS Command Line Interface (AWS CLI), or the // REST API to make API calls. We recommend using an AWS SDK or the AWS CLI. // Each API operation includes links to information about using it with a language-specific // AWS SDK or the AWS CLI. // // Using an AWS SDK // // You don't need to write code to calculate a signature for request authentication. // The SDK clients authenticate your requests by using access keys that you // provide. For more information about AWS SDKs, see the AWS Developer Center // (http://aws.amazon.com/developer/). // // Using the AWS CLI // // Use your access keys with the AWS CLI to make API calls. For information // about setting up the AWS CLI, see Installing the AWS Command Line Interface // (https://docs.aws.amazon.com/cli/latest/userguide/installing.html) in the // AWS Command Line Interface User Guide. For a list of available Amazon Chime // commands, see the Amazon Chime commands (https://docs.aws.amazon.com/cli/latest/reference/chime/index.html) // in the AWS CLI Command Reference. // // Using REST APIs // // If you use REST to make API calls, you must authenticate your request by // providing a signature. Amazon Chime supports signature version 4. For more // information, see Signature Version 4 Signing Process (https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html) // in the Amazon Web Services General Reference. // // When making REST API calls, use the service name chime and REST endpoint // https://service.chime.aws.amazon.com. // // Administrative permissions are controlled using AWS Identity and Access Management // (IAM). For more information, see Identity and Access Management for Amazon // Chime (https://docs.aws.amazon.com/chime/latest/ag/security-iam.html) in // the Amazon Chime Administration Guide. // // See https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01 for more information on this service. // // See chime package documentation for more information. // https://docs.aws.amazon.com/sdk-for-go/api/service/chime/ // // Using the Client // // To contact Amazon Chime 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 Amazon Chime client Chime for more // information on creating client for this service. // https://docs.aws.amazon.com/sdk-for-go/api/service/chime/#New package chime
72
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package chime import ( "github.com/aws/aws-sdk-go/private/protocol" ) const ( // ErrCodeAccessDeniedException for service response error code // "AccessDeniedException". // // You don't have permissions to perform the requested operation. ErrCodeAccessDeniedException = "AccessDeniedException" // ErrCodeBadRequestException for service response error code // "BadRequestException". // // The input parameters don't match the service's restrictions. ErrCodeBadRequestException = "BadRequestException" // ErrCodeConflictException for service response error code // "ConflictException". // // The request could not be processed because of conflict in the current state // of the resource. ErrCodeConflictException = "ConflictException" // ErrCodeForbiddenException for service response error code // "ForbiddenException". // // The client is permanently forbidden from making the request. ErrCodeForbiddenException = "ForbiddenException" // ErrCodeNotFoundException for service response error code // "NotFoundException". // // One or more of the resources in the request does not exist in the system. ErrCodeNotFoundException = "NotFoundException" // ErrCodeResourceLimitExceededException for service response error code // "ResourceLimitExceededException". // // The request exceeds the resource limit. ErrCodeResourceLimitExceededException = "ResourceLimitExceededException" // ErrCodeServiceFailureException for service response error code // "ServiceFailureException". // // The service encountered an unexpected error. ErrCodeServiceFailureException = "ServiceFailureException" // ErrCodeServiceUnavailableException for service response error code // "ServiceUnavailableException". // // The service is currently unavailable. ErrCodeServiceUnavailableException = "ServiceUnavailableException" // ErrCodeThrottledClientException for service response error code // "ThrottledClientException". // // The client exceeded its request rate limit. ErrCodeThrottledClientException = "ThrottledClientException" // ErrCodeUnauthorizedClientException for service response error code // "UnauthorizedClientException". // // The client is not currently authorized to make the request. ErrCodeUnauthorizedClientException = "UnauthorizedClientException" // ErrCodeUnprocessableEntityException for service response error code // "UnprocessableEntityException". // // The request was well-formed but was unable to be followed due to semantic // errors. ErrCodeUnprocessableEntityException = "UnprocessableEntityException" ) var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "AccessDeniedException": newErrorAccessDeniedException, "BadRequestException": newErrorBadRequestException, "ConflictException": newErrorConflictException, "ForbiddenException": newErrorForbiddenException, "NotFoundException": newErrorNotFoundException, "ResourceLimitExceededException": newErrorResourceLimitExceededException, "ServiceFailureException": newErrorServiceFailureException, "ServiceUnavailableException": newErrorServiceUnavailableException, "ThrottledClientException": newErrorThrottledClientException, "UnauthorizedClientException": newErrorUnauthorizedClientException, "UnprocessableEntityException": newErrorUnprocessableEntityException, }
93
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package chime 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" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) // Chime provides the API operation methods for making requests to // Amazon Chime. See this package's package overview docs // for details on the service. // // Chime methods are safe to use concurrently. It is not safe to // modify mutate any of the struct's properties though. type Chime 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 = "Chime" // Name of service. EndpointsID = "chime" // ID to lookup a service endpoint with. ServiceID = "Chime" // ServiceID is a unique identifier of a specific service. ) // New creates a new instance of the Chime 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: // mySession := session.Must(session.NewSession()) // // // Create a Chime client from just a session. // svc := chime.New(mySession) // // // Create a Chime client with additional configuration // svc := chime.New(mySession, aws.NewConfig().WithRegion("us-west-2")) func New(p client.ConfigProvider, cfgs ...*aws.Config) *Chime { c := p.ClientConfig(EndpointsID, cfgs...) return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName) } // newClient creates, initializes and returns a new service client instance. func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *Chime { svc := &Chime{ Client: client.New( cfg, metadata.ClientInfo{ ServiceName: ServiceName, ServiceID: ServiceID, SigningName: signingName, SigningRegion: signingRegion, PartitionID: partitionID, Endpoint: endpoint, APIVersion: "2018-05-01", }, 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( protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), ) // Run custom client initialization if present if initClient != nil { initClient(svc.Client) } return svc } // newRequest creates a new request for a Chime operation and runs any // custom request initialization. func (c *Chime) 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 }
102
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package chimeiface provides an interface to enable mocking the Amazon Chime 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 chimeiface import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/service/chime" ) // ChimeAPI provides an interface to enable mocking the // chime.Chime 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 // // Amazon Chime. // func myFunc(svc chimeiface.ChimeAPI) bool { // // Make svc.AssociatePhoneNumberWithUser request // } // // func main() { // sess := session.New() // svc := chime.New(sess) // // myFunc(svc) // } // // In your _test.go file: // // // Define a mock struct to be used in your unit tests of myFunc. // type mockChimeClient struct { // chimeiface.ChimeAPI // } // func (m *mockChimeClient) AssociatePhoneNumberWithUser(input *chime.AssociatePhoneNumberWithUserInput) (*chime.AssociatePhoneNumberWithUserOutput, error) { // // mock response/functionality // } // // func TestMyFunc(t *testing.T) { // // Setup Test // mockSvc := &mockChimeClient{} // // 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 ChimeAPI interface { AssociatePhoneNumberWithUser(*chime.AssociatePhoneNumberWithUserInput) (*chime.AssociatePhoneNumberWithUserOutput, error) AssociatePhoneNumberWithUserWithContext(aws.Context, *chime.AssociatePhoneNumberWithUserInput, ...request.Option) (*chime.AssociatePhoneNumberWithUserOutput, error) AssociatePhoneNumberWithUserRequest(*chime.AssociatePhoneNumberWithUserInput) (*request.Request, *chime.AssociatePhoneNumberWithUserOutput) AssociatePhoneNumbersWithVoiceConnector(*chime.AssociatePhoneNumbersWithVoiceConnectorInput) (*chime.AssociatePhoneNumbersWithVoiceConnectorOutput, error) AssociatePhoneNumbersWithVoiceConnectorWithContext(aws.Context, *chime.AssociatePhoneNumbersWithVoiceConnectorInput, ...request.Option) (*chime.AssociatePhoneNumbersWithVoiceConnectorOutput, error) AssociatePhoneNumbersWithVoiceConnectorRequest(*chime.AssociatePhoneNumbersWithVoiceConnectorInput) (*request.Request, *chime.AssociatePhoneNumbersWithVoiceConnectorOutput) AssociatePhoneNumbersWithVoiceConnectorGroup(*chime.AssociatePhoneNumbersWithVoiceConnectorGroupInput) (*chime.AssociatePhoneNumbersWithVoiceConnectorGroupOutput, error) AssociatePhoneNumbersWithVoiceConnectorGroupWithContext(aws.Context, *chime.AssociatePhoneNumbersWithVoiceConnectorGroupInput, ...request.Option) (*chime.AssociatePhoneNumbersWithVoiceConnectorGroupOutput, error) AssociatePhoneNumbersWithVoiceConnectorGroupRequest(*chime.AssociatePhoneNumbersWithVoiceConnectorGroupInput) (*request.Request, *chime.AssociatePhoneNumbersWithVoiceConnectorGroupOutput) AssociateSigninDelegateGroupsWithAccount(*chime.AssociateSigninDelegateGroupsWithAccountInput) (*chime.AssociateSigninDelegateGroupsWithAccountOutput, error) AssociateSigninDelegateGroupsWithAccountWithContext(aws.Context, *chime.AssociateSigninDelegateGroupsWithAccountInput, ...request.Option) (*chime.AssociateSigninDelegateGroupsWithAccountOutput, error) AssociateSigninDelegateGroupsWithAccountRequest(*chime.AssociateSigninDelegateGroupsWithAccountInput) (*request.Request, *chime.AssociateSigninDelegateGroupsWithAccountOutput) BatchCreateAttendee(*chime.BatchCreateAttendeeInput) (*chime.BatchCreateAttendeeOutput, error) BatchCreateAttendeeWithContext(aws.Context, *chime.BatchCreateAttendeeInput, ...request.Option) (*chime.BatchCreateAttendeeOutput, error) BatchCreateAttendeeRequest(*chime.BatchCreateAttendeeInput) (*request.Request, *chime.BatchCreateAttendeeOutput) BatchCreateChannelMembership(*chime.BatchCreateChannelMembershipInput) (*chime.BatchCreateChannelMembershipOutput, error) BatchCreateChannelMembershipWithContext(aws.Context, *chime.BatchCreateChannelMembershipInput, ...request.Option) (*chime.BatchCreateChannelMembershipOutput, error) BatchCreateChannelMembershipRequest(*chime.BatchCreateChannelMembershipInput) (*request.Request, *chime.BatchCreateChannelMembershipOutput) BatchCreateRoomMembership(*chime.BatchCreateRoomMembershipInput) (*chime.BatchCreateRoomMembershipOutput, error) BatchCreateRoomMembershipWithContext(aws.Context, *chime.BatchCreateRoomMembershipInput, ...request.Option) (*chime.BatchCreateRoomMembershipOutput, error) BatchCreateRoomMembershipRequest(*chime.BatchCreateRoomMembershipInput) (*request.Request, *chime.BatchCreateRoomMembershipOutput) BatchDeletePhoneNumber(*chime.BatchDeletePhoneNumberInput) (*chime.BatchDeletePhoneNumberOutput, error) BatchDeletePhoneNumberWithContext(aws.Context, *chime.BatchDeletePhoneNumberInput, ...request.Option) (*chime.BatchDeletePhoneNumberOutput, error) BatchDeletePhoneNumberRequest(*chime.BatchDeletePhoneNumberInput) (*request.Request, *chime.BatchDeletePhoneNumberOutput) BatchSuspendUser(*chime.BatchSuspendUserInput) (*chime.BatchSuspendUserOutput, error) BatchSuspendUserWithContext(aws.Context, *chime.BatchSuspendUserInput, ...request.Option) (*chime.BatchSuspendUserOutput, error) BatchSuspendUserRequest(*chime.BatchSuspendUserInput) (*request.Request, *chime.BatchSuspendUserOutput) BatchUnsuspendUser(*chime.BatchUnsuspendUserInput) (*chime.BatchUnsuspendUserOutput, error) BatchUnsuspendUserWithContext(aws.Context, *chime.BatchUnsuspendUserInput, ...request.Option) (*chime.BatchUnsuspendUserOutput, error) BatchUnsuspendUserRequest(*chime.BatchUnsuspendUserInput) (*request.Request, *chime.BatchUnsuspendUserOutput) BatchUpdatePhoneNumber(*chime.BatchUpdatePhoneNumberInput) (*chime.BatchUpdatePhoneNumberOutput, error) BatchUpdatePhoneNumberWithContext(aws.Context, *chime.BatchUpdatePhoneNumberInput, ...request.Option) (*chime.BatchUpdatePhoneNumberOutput, error) BatchUpdatePhoneNumberRequest(*chime.BatchUpdatePhoneNumberInput) (*request.Request, *chime.BatchUpdatePhoneNumberOutput) BatchUpdateUser(*chime.BatchUpdateUserInput) (*chime.BatchUpdateUserOutput, error) BatchUpdateUserWithContext(aws.Context, *chime.BatchUpdateUserInput, ...request.Option) (*chime.BatchUpdateUserOutput, error) BatchUpdateUserRequest(*chime.BatchUpdateUserInput) (*request.Request, *chime.BatchUpdateUserOutput) CreateAccount(*chime.CreateAccountInput) (*chime.CreateAccountOutput, error) CreateAccountWithContext(aws.Context, *chime.CreateAccountInput, ...request.Option) (*chime.CreateAccountOutput, error) CreateAccountRequest(*chime.CreateAccountInput) (*request.Request, *chime.CreateAccountOutput) CreateAppInstance(*chime.CreateAppInstanceInput) (*chime.CreateAppInstanceOutput, error) CreateAppInstanceWithContext(aws.Context, *chime.CreateAppInstanceInput, ...request.Option) (*chime.CreateAppInstanceOutput, error) CreateAppInstanceRequest(*chime.CreateAppInstanceInput) (*request.Request, *chime.CreateAppInstanceOutput) CreateAppInstanceAdmin(*chime.CreateAppInstanceAdminInput) (*chime.CreateAppInstanceAdminOutput, error) CreateAppInstanceAdminWithContext(aws.Context, *chime.CreateAppInstanceAdminInput, ...request.Option) (*chime.CreateAppInstanceAdminOutput, error) CreateAppInstanceAdminRequest(*chime.CreateAppInstanceAdminInput) (*request.Request, *chime.CreateAppInstanceAdminOutput) CreateAppInstanceUser(*chime.CreateAppInstanceUserInput) (*chime.CreateAppInstanceUserOutput, error) CreateAppInstanceUserWithContext(aws.Context, *chime.CreateAppInstanceUserInput, ...request.Option) (*chime.CreateAppInstanceUserOutput, error) CreateAppInstanceUserRequest(*chime.CreateAppInstanceUserInput) (*request.Request, *chime.CreateAppInstanceUserOutput) CreateAttendee(*chime.CreateAttendeeInput) (*chime.CreateAttendeeOutput, error) CreateAttendeeWithContext(aws.Context, *chime.CreateAttendeeInput, ...request.Option) (*chime.CreateAttendeeOutput, error) CreateAttendeeRequest(*chime.CreateAttendeeInput) (*request.Request, *chime.CreateAttendeeOutput) CreateBot(*chime.CreateBotInput) (*chime.CreateBotOutput, error) CreateBotWithContext(aws.Context, *chime.CreateBotInput, ...request.Option) (*chime.CreateBotOutput, error) CreateBotRequest(*chime.CreateBotInput) (*request.Request, *chime.CreateBotOutput) CreateChannel(*chime.CreateChannelInput) (*chime.CreateChannelOutput, error) CreateChannelWithContext(aws.Context, *chime.CreateChannelInput, ...request.Option) (*chime.CreateChannelOutput, error) CreateChannelRequest(*chime.CreateChannelInput) (*request.Request, *chime.CreateChannelOutput) CreateChannelBan(*chime.CreateChannelBanInput) (*chime.CreateChannelBanOutput, error) CreateChannelBanWithContext(aws.Context, *chime.CreateChannelBanInput, ...request.Option) (*chime.CreateChannelBanOutput, error) CreateChannelBanRequest(*chime.CreateChannelBanInput) (*request.Request, *chime.CreateChannelBanOutput) CreateChannelMembership(*chime.CreateChannelMembershipInput) (*chime.CreateChannelMembershipOutput, error) CreateChannelMembershipWithContext(aws.Context, *chime.CreateChannelMembershipInput, ...request.Option) (*chime.CreateChannelMembershipOutput, error) CreateChannelMembershipRequest(*chime.CreateChannelMembershipInput) (*request.Request, *chime.CreateChannelMembershipOutput) CreateChannelModerator(*chime.CreateChannelModeratorInput) (*chime.CreateChannelModeratorOutput, error) CreateChannelModeratorWithContext(aws.Context, *chime.CreateChannelModeratorInput, ...request.Option) (*chime.CreateChannelModeratorOutput, error) CreateChannelModeratorRequest(*chime.CreateChannelModeratorInput) (*request.Request, *chime.CreateChannelModeratorOutput) CreateMediaCapturePipeline(*chime.CreateMediaCapturePipelineInput) (*chime.CreateMediaCapturePipelineOutput, error) CreateMediaCapturePipelineWithContext(aws.Context, *chime.CreateMediaCapturePipelineInput, ...request.Option) (*chime.CreateMediaCapturePipelineOutput, error) CreateMediaCapturePipelineRequest(*chime.CreateMediaCapturePipelineInput) (*request.Request, *chime.CreateMediaCapturePipelineOutput) CreateMeeting(*chime.CreateMeetingInput) (*chime.CreateMeetingOutput, error) CreateMeetingWithContext(aws.Context, *chime.CreateMeetingInput, ...request.Option) (*chime.CreateMeetingOutput, error) CreateMeetingRequest(*chime.CreateMeetingInput) (*request.Request, *chime.CreateMeetingOutput) CreateMeetingDialOut(*chime.CreateMeetingDialOutInput) (*chime.CreateMeetingDialOutOutput, error) CreateMeetingDialOutWithContext(aws.Context, *chime.CreateMeetingDialOutInput, ...request.Option) (*chime.CreateMeetingDialOutOutput, error) CreateMeetingDialOutRequest(*chime.CreateMeetingDialOutInput) (*request.Request, *chime.CreateMeetingDialOutOutput) CreateMeetingWithAttendees(*chime.CreateMeetingWithAttendeesInput) (*chime.CreateMeetingWithAttendeesOutput, error) CreateMeetingWithAttendeesWithContext(aws.Context, *chime.CreateMeetingWithAttendeesInput, ...request.Option) (*chime.CreateMeetingWithAttendeesOutput, error) CreateMeetingWithAttendeesRequest(*chime.CreateMeetingWithAttendeesInput) (*request.Request, *chime.CreateMeetingWithAttendeesOutput) CreatePhoneNumberOrder(*chime.CreatePhoneNumberOrderInput) (*chime.CreatePhoneNumberOrderOutput, error) CreatePhoneNumberOrderWithContext(aws.Context, *chime.CreatePhoneNumberOrderInput, ...request.Option) (*chime.CreatePhoneNumberOrderOutput, error) CreatePhoneNumberOrderRequest(*chime.CreatePhoneNumberOrderInput) (*request.Request, *chime.CreatePhoneNumberOrderOutput) CreateProxySession(*chime.CreateProxySessionInput) (*chime.CreateProxySessionOutput, error) CreateProxySessionWithContext(aws.Context, *chime.CreateProxySessionInput, ...request.Option) (*chime.CreateProxySessionOutput, error) CreateProxySessionRequest(*chime.CreateProxySessionInput) (*request.Request, *chime.CreateProxySessionOutput) CreateRoom(*chime.CreateRoomInput) (*chime.CreateRoomOutput, error) CreateRoomWithContext(aws.Context, *chime.CreateRoomInput, ...request.Option) (*chime.CreateRoomOutput, error) CreateRoomRequest(*chime.CreateRoomInput) (*request.Request, *chime.CreateRoomOutput) CreateRoomMembership(*chime.CreateRoomMembershipInput) (*chime.CreateRoomMembershipOutput, error) CreateRoomMembershipWithContext(aws.Context, *chime.CreateRoomMembershipInput, ...request.Option) (*chime.CreateRoomMembershipOutput, error) CreateRoomMembershipRequest(*chime.CreateRoomMembershipInput) (*request.Request, *chime.CreateRoomMembershipOutput) CreateSipMediaApplication(*chime.CreateSipMediaApplicationInput) (*chime.CreateSipMediaApplicationOutput, error) CreateSipMediaApplicationWithContext(aws.Context, *chime.CreateSipMediaApplicationInput, ...request.Option) (*chime.CreateSipMediaApplicationOutput, error) CreateSipMediaApplicationRequest(*chime.CreateSipMediaApplicationInput) (*request.Request, *chime.CreateSipMediaApplicationOutput) CreateSipMediaApplicationCall(*chime.CreateSipMediaApplicationCallInput) (*chime.CreateSipMediaApplicationCallOutput, error) CreateSipMediaApplicationCallWithContext(aws.Context, *chime.CreateSipMediaApplicationCallInput, ...request.Option) (*chime.CreateSipMediaApplicationCallOutput, error) CreateSipMediaApplicationCallRequest(*chime.CreateSipMediaApplicationCallInput) (*request.Request, *chime.CreateSipMediaApplicationCallOutput) CreateSipRule(*chime.CreateSipRuleInput) (*chime.CreateSipRuleOutput, error) CreateSipRuleWithContext(aws.Context, *chime.CreateSipRuleInput, ...request.Option) (*chime.CreateSipRuleOutput, error) CreateSipRuleRequest(*chime.CreateSipRuleInput) (*request.Request, *chime.CreateSipRuleOutput) CreateUser(*chime.CreateUserInput) (*chime.CreateUserOutput, error) CreateUserWithContext(aws.Context, *chime.CreateUserInput, ...request.Option) (*chime.CreateUserOutput, error) CreateUserRequest(*chime.CreateUserInput) (*request.Request, *chime.CreateUserOutput) CreateVoiceConnector(*chime.CreateVoiceConnectorInput) (*chime.CreateVoiceConnectorOutput, error) CreateVoiceConnectorWithContext(aws.Context, *chime.CreateVoiceConnectorInput, ...request.Option) (*chime.CreateVoiceConnectorOutput, error) CreateVoiceConnectorRequest(*chime.CreateVoiceConnectorInput) (*request.Request, *chime.CreateVoiceConnectorOutput) CreateVoiceConnectorGroup(*chime.CreateVoiceConnectorGroupInput) (*chime.CreateVoiceConnectorGroupOutput, error) CreateVoiceConnectorGroupWithContext(aws.Context, *chime.CreateVoiceConnectorGroupInput, ...request.Option) (*chime.CreateVoiceConnectorGroupOutput, error) CreateVoiceConnectorGroupRequest(*chime.CreateVoiceConnectorGroupInput) (*request.Request, *chime.CreateVoiceConnectorGroupOutput) DeleteAccount(*chime.DeleteAccountInput) (*chime.DeleteAccountOutput, error) DeleteAccountWithContext(aws.Context, *chime.DeleteAccountInput, ...request.Option) (*chime.DeleteAccountOutput, error) DeleteAccountRequest(*chime.DeleteAccountInput) (*request.Request, *chime.DeleteAccountOutput) DeleteAppInstance(*chime.DeleteAppInstanceInput) (*chime.DeleteAppInstanceOutput, error) DeleteAppInstanceWithContext(aws.Context, *chime.DeleteAppInstanceInput, ...request.Option) (*chime.DeleteAppInstanceOutput, error) DeleteAppInstanceRequest(*chime.DeleteAppInstanceInput) (*request.Request, *chime.DeleteAppInstanceOutput) DeleteAppInstanceAdmin(*chime.DeleteAppInstanceAdminInput) (*chime.DeleteAppInstanceAdminOutput, error) DeleteAppInstanceAdminWithContext(aws.Context, *chime.DeleteAppInstanceAdminInput, ...request.Option) (*chime.DeleteAppInstanceAdminOutput, error) DeleteAppInstanceAdminRequest(*chime.DeleteAppInstanceAdminInput) (*request.Request, *chime.DeleteAppInstanceAdminOutput) DeleteAppInstanceStreamingConfigurations(*chime.DeleteAppInstanceStreamingConfigurationsInput) (*chime.DeleteAppInstanceStreamingConfigurationsOutput, error) DeleteAppInstanceStreamingConfigurationsWithContext(aws.Context, *chime.DeleteAppInstanceStreamingConfigurationsInput, ...request.Option) (*chime.DeleteAppInstanceStreamingConfigurationsOutput, error) DeleteAppInstanceStreamingConfigurationsRequest(*chime.DeleteAppInstanceStreamingConfigurationsInput) (*request.Request, *chime.DeleteAppInstanceStreamingConfigurationsOutput) DeleteAppInstanceUser(*chime.DeleteAppInstanceUserInput) (*chime.DeleteAppInstanceUserOutput, error) DeleteAppInstanceUserWithContext(aws.Context, *chime.DeleteAppInstanceUserInput, ...request.Option) (*chime.DeleteAppInstanceUserOutput, error) DeleteAppInstanceUserRequest(*chime.DeleteAppInstanceUserInput) (*request.Request, *chime.DeleteAppInstanceUserOutput) DeleteAttendee(*chime.DeleteAttendeeInput) (*chime.DeleteAttendeeOutput, error) DeleteAttendeeWithContext(aws.Context, *chime.DeleteAttendeeInput, ...request.Option) (*chime.DeleteAttendeeOutput, error) DeleteAttendeeRequest(*chime.DeleteAttendeeInput) (*request.Request, *chime.DeleteAttendeeOutput) DeleteChannel(*chime.DeleteChannelInput) (*chime.DeleteChannelOutput, error) DeleteChannelWithContext(aws.Context, *chime.DeleteChannelInput, ...request.Option) (*chime.DeleteChannelOutput, error) DeleteChannelRequest(*chime.DeleteChannelInput) (*request.Request, *chime.DeleteChannelOutput) DeleteChannelBan(*chime.DeleteChannelBanInput) (*chime.DeleteChannelBanOutput, error) DeleteChannelBanWithContext(aws.Context, *chime.DeleteChannelBanInput, ...request.Option) (*chime.DeleteChannelBanOutput, error) DeleteChannelBanRequest(*chime.DeleteChannelBanInput) (*request.Request, *chime.DeleteChannelBanOutput) DeleteChannelMembership(*chime.DeleteChannelMembershipInput) (*chime.DeleteChannelMembershipOutput, error) DeleteChannelMembershipWithContext(aws.Context, *chime.DeleteChannelMembershipInput, ...request.Option) (*chime.DeleteChannelMembershipOutput, error) DeleteChannelMembershipRequest(*chime.DeleteChannelMembershipInput) (*request.Request, *chime.DeleteChannelMembershipOutput) DeleteChannelMessage(*chime.DeleteChannelMessageInput) (*chime.DeleteChannelMessageOutput, error) DeleteChannelMessageWithContext(aws.Context, *chime.DeleteChannelMessageInput, ...request.Option) (*chime.DeleteChannelMessageOutput, error) DeleteChannelMessageRequest(*chime.DeleteChannelMessageInput) (*request.Request, *chime.DeleteChannelMessageOutput) DeleteChannelModerator(*chime.DeleteChannelModeratorInput) (*chime.DeleteChannelModeratorOutput, error) DeleteChannelModeratorWithContext(aws.Context, *chime.DeleteChannelModeratorInput, ...request.Option) (*chime.DeleteChannelModeratorOutput, error) DeleteChannelModeratorRequest(*chime.DeleteChannelModeratorInput) (*request.Request, *chime.DeleteChannelModeratorOutput) DeleteEventsConfiguration(*chime.DeleteEventsConfigurationInput) (*chime.DeleteEventsConfigurationOutput, error) DeleteEventsConfigurationWithContext(aws.Context, *chime.DeleteEventsConfigurationInput, ...request.Option) (*chime.DeleteEventsConfigurationOutput, error) DeleteEventsConfigurationRequest(*chime.DeleteEventsConfigurationInput) (*request.Request, *chime.DeleteEventsConfigurationOutput) DeleteMediaCapturePipeline(*chime.DeleteMediaCapturePipelineInput) (*chime.DeleteMediaCapturePipelineOutput, error) DeleteMediaCapturePipelineWithContext(aws.Context, *chime.DeleteMediaCapturePipelineInput, ...request.Option) (*chime.DeleteMediaCapturePipelineOutput, error) DeleteMediaCapturePipelineRequest(*chime.DeleteMediaCapturePipelineInput) (*request.Request, *chime.DeleteMediaCapturePipelineOutput) DeleteMeeting(*chime.DeleteMeetingInput) (*chime.DeleteMeetingOutput, error) DeleteMeetingWithContext(aws.Context, *chime.DeleteMeetingInput, ...request.Option) (*chime.DeleteMeetingOutput, error) DeleteMeetingRequest(*chime.DeleteMeetingInput) (*request.Request, *chime.DeleteMeetingOutput) DeletePhoneNumber(*chime.DeletePhoneNumberInput) (*chime.DeletePhoneNumberOutput, error) DeletePhoneNumberWithContext(aws.Context, *chime.DeletePhoneNumberInput, ...request.Option) (*chime.DeletePhoneNumberOutput, error) DeletePhoneNumberRequest(*chime.DeletePhoneNumberInput) (*request.Request, *chime.DeletePhoneNumberOutput) DeleteProxySession(*chime.DeleteProxySessionInput) (*chime.DeleteProxySessionOutput, error) DeleteProxySessionWithContext(aws.Context, *chime.DeleteProxySessionInput, ...request.Option) (*chime.DeleteProxySessionOutput, error) DeleteProxySessionRequest(*chime.DeleteProxySessionInput) (*request.Request, *chime.DeleteProxySessionOutput) DeleteRoom(*chime.DeleteRoomInput) (*chime.DeleteRoomOutput, error) DeleteRoomWithContext(aws.Context, *chime.DeleteRoomInput, ...request.Option) (*chime.DeleteRoomOutput, error) DeleteRoomRequest(*chime.DeleteRoomInput) (*request.Request, *chime.DeleteRoomOutput) DeleteRoomMembership(*chime.DeleteRoomMembershipInput) (*chime.DeleteRoomMembershipOutput, error) DeleteRoomMembershipWithContext(aws.Context, *chime.DeleteRoomMembershipInput, ...request.Option) (*chime.DeleteRoomMembershipOutput, error) DeleteRoomMembershipRequest(*chime.DeleteRoomMembershipInput) (*request.Request, *chime.DeleteRoomMembershipOutput) DeleteSipMediaApplication(*chime.DeleteSipMediaApplicationInput) (*chime.DeleteSipMediaApplicationOutput, error) DeleteSipMediaApplicationWithContext(aws.Context, *chime.DeleteSipMediaApplicationInput, ...request.Option) (*chime.DeleteSipMediaApplicationOutput, error) DeleteSipMediaApplicationRequest(*chime.DeleteSipMediaApplicationInput) (*request.Request, *chime.DeleteSipMediaApplicationOutput) DeleteSipRule(*chime.DeleteSipRuleInput) (*chime.DeleteSipRuleOutput, error) DeleteSipRuleWithContext(aws.Context, *chime.DeleteSipRuleInput, ...request.Option) (*chime.DeleteSipRuleOutput, error) DeleteSipRuleRequest(*chime.DeleteSipRuleInput) (*request.Request, *chime.DeleteSipRuleOutput) DeleteVoiceConnector(*chime.DeleteVoiceConnectorInput) (*chime.DeleteVoiceConnectorOutput, error) DeleteVoiceConnectorWithContext(aws.Context, *chime.DeleteVoiceConnectorInput, ...request.Option) (*chime.DeleteVoiceConnectorOutput, error) DeleteVoiceConnectorRequest(*chime.DeleteVoiceConnectorInput) (*request.Request, *chime.DeleteVoiceConnectorOutput) DeleteVoiceConnectorEmergencyCallingConfiguration(*chime.DeleteVoiceConnectorEmergencyCallingConfigurationInput) (*chime.DeleteVoiceConnectorEmergencyCallingConfigurationOutput, error) DeleteVoiceConnectorEmergencyCallingConfigurationWithContext(aws.Context, *chime.DeleteVoiceConnectorEmergencyCallingConfigurationInput, ...request.Option) (*chime.DeleteVoiceConnectorEmergencyCallingConfigurationOutput, error) DeleteVoiceConnectorEmergencyCallingConfigurationRequest(*chime.DeleteVoiceConnectorEmergencyCallingConfigurationInput) (*request.Request, *chime.DeleteVoiceConnectorEmergencyCallingConfigurationOutput) DeleteVoiceConnectorGroup(*chime.DeleteVoiceConnectorGroupInput) (*chime.DeleteVoiceConnectorGroupOutput, error) DeleteVoiceConnectorGroupWithContext(aws.Context, *chime.DeleteVoiceConnectorGroupInput, ...request.Option) (*chime.DeleteVoiceConnectorGroupOutput, error) DeleteVoiceConnectorGroupRequest(*chime.DeleteVoiceConnectorGroupInput) (*request.Request, *chime.DeleteVoiceConnectorGroupOutput) DeleteVoiceConnectorOrigination(*chime.DeleteVoiceConnectorOriginationInput) (*chime.DeleteVoiceConnectorOriginationOutput, error) DeleteVoiceConnectorOriginationWithContext(aws.Context, *chime.DeleteVoiceConnectorOriginationInput, ...request.Option) (*chime.DeleteVoiceConnectorOriginationOutput, error) DeleteVoiceConnectorOriginationRequest(*chime.DeleteVoiceConnectorOriginationInput) (*request.Request, *chime.DeleteVoiceConnectorOriginationOutput) DeleteVoiceConnectorProxy(*chime.DeleteVoiceConnectorProxyInput) (*chime.DeleteVoiceConnectorProxyOutput, error) DeleteVoiceConnectorProxyWithContext(aws.Context, *chime.DeleteVoiceConnectorProxyInput, ...request.Option) (*chime.DeleteVoiceConnectorProxyOutput, error) DeleteVoiceConnectorProxyRequest(*chime.DeleteVoiceConnectorProxyInput) (*request.Request, *chime.DeleteVoiceConnectorProxyOutput) DeleteVoiceConnectorStreamingConfiguration(*chime.DeleteVoiceConnectorStreamingConfigurationInput) (*chime.DeleteVoiceConnectorStreamingConfigurationOutput, error) DeleteVoiceConnectorStreamingConfigurationWithContext(aws.Context, *chime.DeleteVoiceConnectorStreamingConfigurationInput, ...request.Option) (*chime.DeleteVoiceConnectorStreamingConfigurationOutput, error) DeleteVoiceConnectorStreamingConfigurationRequest(*chime.DeleteVoiceConnectorStreamingConfigurationInput) (*request.Request, *chime.DeleteVoiceConnectorStreamingConfigurationOutput) DeleteVoiceConnectorTermination(*chime.DeleteVoiceConnectorTerminationInput) (*chime.DeleteVoiceConnectorTerminationOutput, error) DeleteVoiceConnectorTerminationWithContext(aws.Context, *chime.DeleteVoiceConnectorTerminationInput, ...request.Option) (*chime.DeleteVoiceConnectorTerminationOutput, error) DeleteVoiceConnectorTerminationRequest(*chime.DeleteVoiceConnectorTerminationInput) (*request.Request, *chime.DeleteVoiceConnectorTerminationOutput) DeleteVoiceConnectorTerminationCredentials(*chime.DeleteVoiceConnectorTerminationCredentialsInput) (*chime.DeleteVoiceConnectorTerminationCredentialsOutput, error) DeleteVoiceConnectorTerminationCredentialsWithContext(aws.Context, *chime.DeleteVoiceConnectorTerminationCredentialsInput, ...request.Option) (*chime.DeleteVoiceConnectorTerminationCredentialsOutput, error) DeleteVoiceConnectorTerminationCredentialsRequest(*chime.DeleteVoiceConnectorTerminationCredentialsInput) (*request.Request, *chime.DeleteVoiceConnectorTerminationCredentialsOutput) DescribeAppInstance(*chime.DescribeAppInstanceInput) (*chime.DescribeAppInstanceOutput, error) DescribeAppInstanceWithContext(aws.Context, *chime.DescribeAppInstanceInput, ...request.Option) (*chime.DescribeAppInstanceOutput, error) DescribeAppInstanceRequest(*chime.DescribeAppInstanceInput) (*request.Request, *chime.DescribeAppInstanceOutput) DescribeAppInstanceAdmin(*chime.DescribeAppInstanceAdminInput) (*chime.DescribeAppInstanceAdminOutput, error) DescribeAppInstanceAdminWithContext(aws.Context, *chime.DescribeAppInstanceAdminInput, ...request.Option) (*chime.DescribeAppInstanceAdminOutput, error) DescribeAppInstanceAdminRequest(*chime.DescribeAppInstanceAdminInput) (*request.Request, *chime.DescribeAppInstanceAdminOutput) DescribeAppInstanceUser(*chime.DescribeAppInstanceUserInput) (*chime.DescribeAppInstanceUserOutput, error) DescribeAppInstanceUserWithContext(aws.Context, *chime.DescribeAppInstanceUserInput, ...request.Option) (*chime.DescribeAppInstanceUserOutput, error) DescribeAppInstanceUserRequest(*chime.DescribeAppInstanceUserInput) (*request.Request, *chime.DescribeAppInstanceUserOutput) DescribeChannel(*chime.DescribeChannelInput) (*chime.DescribeChannelOutput, error) DescribeChannelWithContext(aws.Context, *chime.DescribeChannelInput, ...request.Option) (*chime.DescribeChannelOutput, error) DescribeChannelRequest(*chime.DescribeChannelInput) (*request.Request, *chime.DescribeChannelOutput) DescribeChannelBan(*chime.DescribeChannelBanInput) (*chime.DescribeChannelBanOutput, error) DescribeChannelBanWithContext(aws.Context, *chime.DescribeChannelBanInput, ...request.Option) (*chime.DescribeChannelBanOutput, error) DescribeChannelBanRequest(*chime.DescribeChannelBanInput) (*request.Request, *chime.DescribeChannelBanOutput) DescribeChannelMembership(*chime.DescribeChannelMembershipInput) (*chime.DescribeChannelMembershipOutput, error) DescribeChannelMembershipWithContext(aws.Context, *chime.DescribeChannelMembershipInput, ...request.Option) (*chime.DescribeChannelMembershipOutput, error) DescribeChannelMembershipRequest(*chime.DescribeChannelMembershipInput) (*request.Request, *chime.DescribeChannelMembershipOutput) DescribeChannelMembershipForAppInstanceUser(*chime.DescribeChannelMembershipForAppInstanceUserInput) (*chime.DescribeChannelMembershipForAppInstanceUserOutput, error) DescribeChannelMembershipForAppInstanceUserWithContext(aws.Context, *chime.DescribeChannelMembershipForAppInstanceUserInput, ...request.Option) (*chime.DescribeChannelMembershipForAppInstanceUserOutput, error) DescribeChannelMembershipForAppInstanceUserRequest(*chime.DescribeChannelMembershipForAppInstanceUserInput) (*request.Request, *chime.DescribeChannelMembershipForAppInstanceUserOutput) DescribeChannelModeratedByAppInstanceUser(*chime.DescribeChannelModeratedByAppInstanceUserInput) (*chime.DescribeChannelModeratedByAppInstanceUserOutput, error) DescribeChannelModeratedByAppInstanceUserWithContext(aws.Context, *chime.DescribeChannelModeratedByAppInstanceUserInput, ...request.Option) (*chime.DescribeChannelModeratedByAppInstanceUserOutput, error) DescribeChannelModeratedByAppInstanceUserRequest(*chime.DescribeChannelModeratedByAppInstanceUserInput) (*request.Request, *chime.DescribeChannelModeratedByAppInstanceUserOutput) DescribeChannelModerator(*chime.DescribeChannelModeratorInput) (*chime.DescribeChannelModeratorOutput, error) DescribeChannelModeratorWithContext(aws.Context, *chime.DescribeChannelModeratorInput, ...request.Option) (*chime.DescribeChannelModeratorOutput, error) DescribeChannelModeratorRequest(*chime.DescribeChannelModeratorInput) (*request.Request, *chime.DescribeChannelModeratorOutput) DisassociatePhoneNumberFromUser(*chime.DisassociatePhoneNumberFromUserInput) (*chime.DisassociatePhoneNumberFromUserOutput, error) DisassociatePhoneNumberFromUserWithContext(aws.Context, *chime.DisassociatePhoneNumberFromUserInput, ...request.Option) (*chime.DisassociatePhoneNumberFromUserOutput, error) DisassociatePhoneNumberFromUserRequest(*chime.DisassociatePhoneNumberFromUserInput) (*request.Request, *chime.DisassociatePhoneNumberFromUserOutput) DisassociatePhoneNumbersFromVoiceConnector(*chime.DisassociatePhoneNumbersFromVoiceConnectorInput) (*chime.DisassociatePhoneNumbersFromVoiceConnectorOutput, error) DisassociatePhoneNumbersFromVoiceConnectorWithContext(aws.Context, *chime.DisassociatePhoneNumbersFromVoiceConnectorInput, ...request.Option) (*chime.DisassociatePhoneNumbersFromVoiceConnectorOutput, error) DisassociatePhoneNumbersFromVoiceConnectorRequest(*chime.DisassociatePhoneNumbersFromVoiceConnectorInput) (*request.Request, *chime.DisassociatePhoneNumbersFromVoiceConnectorOutput) DisassociatePhoneNumbersFromVoiceConnectorGroup(*chime.DisassociatePhoneNumbersFromVoiceConnectorGroupInput) (*chime.DisassociatePhoneNumbersFromVoiceConnectorGroupOutput, error) DisassociatePhoneNumbersFromVoiceConnectorGroupWithContext(aws.Context, *chime.DisassociatePhoneNumbersFromVoiceConnectorGroupInput, ...request.Option) (*chime.DisassociatePhoneNumbersFromVoiceConnectorGroupOutput, error) DisassociatePhoneNumbersFromVoiceConnectorGroupRequest(*chime.DisassociatePhoneNumbersFromVoiceConnectorGroupInput) (*request.Request, *chime.DisassociatePhoneNumbersFromVoiceConnectorGroupOutput) DisassociateSigninDelegateGroupsFromAccount(*chime.DisassociateSigninDelegateGroupsFromAccountInput) (*chime.DisassociateSigninDelegateGroupsFromAccountOutput, error) DisassociateSigninDelegateGroupsFromAccountWithContext(aws.Context, *chime.DisassociateSigninDelegateGroupsFromAccountInput, ...request.Option) (*chime.DisassociateSigninDelegateGroupsFromAccountOutput, error) DisassociateSigninDelegateGroupsFromAccountRequest(*chime.DisassociateSigninDelegateGroupsFromAccountInput) (*request.Request, *chime.DisassociateSigninDelegateGroupsFromAccountOutput) GetAccount(*chime.GetAccountInput) (*chime.GetAccountOutput, error) GetAccountWithContext(aws.Context, *chime.GetAccountInput, ...request.Option) (*chime.GetAccountOutput, error) GetAccountRequest(*chime.GetAccountInput) (*request.Request, *chime.GetAccountOutput) GetAccountSettings(*chime.GetAccountSettingsInput) (*chime.GetAccountSettingsOutput, error) GetAccountSettingsWithContext(aws.Context, *chime.GetAccountSettingsInput, ...request.Option) (*chime.GetAccountSettingsOutput, error) GetAccountSettingsRequest(*chime.GetAccountSettingsInput) (*request.Request, *chime.GetAccountSettingsOutput) GetAppInstanceRetentionSettings(*chime.GetAppInstanceRetentionSettingsInput) (*chime.GetAppInstanceRetentionSettingsOutput, error) GetAppInstanceRetentionSettingsWithContext(aws.Context, *chime.GetAppInstanceRetentionSettingsInput, ...request.Option) (*chime.GetAppInstanceRetentionSettingsOutput, error) GetAppInstanceRetentionSettingsRequest(*chime.GetAppInstanceRetentionSettingsInput) (*request.Request, *chime.GetAppInstanceRetentionSettingsOutput) GetAppInstanceStreamingConfigurations(*chime.GetAppInstanceStreamingConfigurationsInput) (*chime.GetAppInstanceStreamingConfigurationsOutput, error) GetAppInstanceStreamingConfigurationsWithContext(aws.Context, *chime.GetAppInstanceStreamingConfigurationsInput, ...request.Option) (*chime.GetAppInstanceStreamingConfigurationsOutput, error) GetAppInstanceStreamingConfigurationsRequest(*chime.GetAppInstanceStreamingConfigurationsInput) (*request.Request, *chime.GetAppInstanceStreamingConfigurationsOutput) GetAttendee(*chime.GetAttendeeInput) (*chime.GetAttendeeOutput, error) GetAttendeeWithContext(aws.Context, *chime.GetAttendeeInput, ...request.Option) (*chime.GetAttendeeOutput, error) GetAttendeeRequest(*chime.GetAttendeeInput) (*request.Request, *chime.GetAttendeeOutput) GetBot(*chime.GetBotInput) (*chime.GetBotOutput, error) GetBotWithContext(aws.Context, *chime.GetBotInput, ...request.Option) (*chime.GetBotOutput, error) GetBotRequest(*chime.GetBotInput) (*request.Request, *chime.GetBotOutput) GetChannelMessage(*chime.GetChannelMessageInput) (*chime.GetChannelMessageOutput, error) GetChannelMessageWithContext(aws.Context, *chime.GetChannelMessageInput, ...request.Option) (*chime.GetChannelMessageOutput, error) GetChannelMessageRequest(*chime.GetChannelMessageInput) (*request.Request, *chime.GetChannelMessageOutput) GetEventsConfiguration(*chime.GetEventsConfigurationInput) (*chime.GetEventsConfigurationOutput, error) GetEventsConfigurationWithContext(aws.Context, *chime.GetEventsConfigurationInput, ...request.Option) (*chime.GetEventsConfigurationOutput, error) GetEventsConfigurationRequest(*chime.GetEventsConfigurationInput) (*request.Request, *chime.GetEventsConfigurationOutput) GetGlobalSettings(*chime.GetGlobalSettingsInput) (*chime.GetGlobalSettingsOutput, error) GetGlobalSettingsWithContext(aws.Context, *chime.GetGlobalSettingsInput, ...request.Option) (*chime.GetGlobalSettingsOutput, error) GetGlobalSettingsRequest(*chime.GetGlobalSettingsInput) (*request.Request, *chime.GetGlobalSettingsOutput) GetMediaCapturePipeline(*chime.GetMediaCapturePipelineInput) (*chime.GetMediaCapturePipelineOutput, error) GetMediaCapturePipelineWithContext(aws.Context, *chime.GetMediaCapturePipelineInput, ...request.Option) (*chime.GetMediaCapturePipelineOutput, error) GetMediaCapturePipelineRequest(*chime.GetMediaCapturePipelineInput) (*request.Request, *chime.GetMediaCapturePipelineOutput) GetMeeting(*chime.GetMeetingInput) (*chime.GetMeetingOutput, error) GetMeetingWithContext(aws.Context, *chime.GetMeetingInput, ...request.Option) (*chime.GetMeetingOutput, error) GetMeetingRequest(*chime.GetMeetingInput) (*request.Request, *chime.GetMeetingOutput) GetMessagingSessionEndpoint(*chime.GetMessagingSessionEndpointInput) (*chime.GetMessagingSessionEndpointOutput, error) GetMessagingSessionEndpointWithContext(aws.Context, *chime.GetMessagingSessionEndpointInput, ...request.Option) (*chime.GetMessagingSessionEndpointOutput, error) GetMessagingSessionEndpointRequest(*chime.GetMessagingSessionEndpointInput) (*request.Request, *chime.GetMessagingSessionEndpointOutput) GetPhoneNumber(*chime.GetPhoneNumberInput) (*chime.GetPhoneNumberOutput, error) GetPhoneNumberWithContext(aws.Context, *chime.GetPhoneNumberInput, ...request.Option) (*chime.GetPhoneNumberOutput, error) GetPhoneNumberRequest(*chime.GetPhoneNumberInput) (*request.Request, *chime.GetPhoneNumberOutput) GetPhoneNumberOrder(*chime.GetPhoneNumberOrderInput) (*chime.GetPhoneNumberOrderOutput, error) GetPhoneNumberOrderWithContext(aws.Context, *chime.GetPhoneNumberOrderInput, ...request.Option) (*chime.GetPhoneNumberOrderOutput, error) GetPhoneNumberOrderRequest(*chime.GetPhoneNumberOrderInput) (*request.Request, *chime.GetPhoneNumberOrderOutput) GetPhoneNumberSettings(*chime.GetPhoneNumberSettingsInput) (*chime.GetPhoneNumberSettingsOutput, error) GetPhoneNumberSettingsWithContext(aws.Context, *chime.GetPhoneNumberSettingsInput, ...request.Option) (*chime.GetPhoneNumberSettingsOutput, error) GetPhoneNumberSettingsRequest(*chime.GetPhoneNumberSettingsInput) (*request.Request, *chime.GetPhoneNumberSettingsOutput) GetProxySession(*chime.GetProxySessionInput) (*chime.GetProxySessionOutput, error) GetProxySessionWithContext(aws.Context, *chime.GetProxySessionInput, ...request.Option) (*chime.GetProxySessionOutput, error) GetProxySessionRequest(*chime.GetProxySessionInput) (*request.Request, *chime.GetProxySessionOutput) GetRetentionSettings(*chime.GetRetentionSettingsInput) (*chime.GetRetentionSettingsOutput, error) GetRetentionSettingsWithContext(aws.Context, *chime.GetRetentionSettingsInput, ...request.Option) (*chime.GetRetentionSettingsOutput, error) GetRetentionSettingsRequest(*chime.GetRetentionSettingsInput) (*request.Request, *chime.GetRetentionSettingsOutput) GetRoom(*chime.GetRoomInput) (*chime.GetRoomOutput, error) GetRoomWithContext(aws.Context, *chime.GetRoomInput, ...request.Option) (*chime.GetRoomOutput, error) GetRoomRequest(*chime.GetRoomInput) (*request.Request, *chime.GetRoomOutput) GetSipMediaApplication(*chime.GetSipMediaApplicationInput) (*chime.GetSipMediaApplicationOutput, error) GetSipMediaApplicationWithContext(aws.Context, *chime.GetSipMediaApplicationInput, ...request.Option) (*chime.GetSipMediaApplicationOutput, error) GetSipMediaApplicationRequest(*chime.GetSipMediaApplicationInput) (*request.Request, *chime.GetSipMediaApplicationOutput) GetSipMediaApplicationLoggingConfiguration(*chime.GetSipMediaApplicationLoggingConfigurationInput) (*chime.GetSipMediaApplicationLoggingConfigurationOutput, error) GetSipMediaApplicationLoggingConfigurationWithContext(aws.Context, *chime.GetSipMediaApplicationLoggingConfigurationInput, ...request.Option) (*chime.GetSipMediaApplicationLoggingConfigurationOutput, error) GetSipMediaApplicationLoggingConfigurationRequest(*chime.GetSipMediaApplicationLoggingConfigurationInput) (*request.Request, *chime.GetSipMediaApplicationLoggingConfigurationOutput) GetSipRule(*chime.GetSipRuleInput) (*chime.GetSipRuleOutput, error) GetSipRuleWithContext(aws.Context, *chime.GetSipRuleInput, ...request.Option) (*chime.GetSipRuleOutput, error) GetSipRuleRequest(*chime.GetSipRuleInput) (*request.Request, *chime.GetSipRuleOutput) GetUser(*chime.GetUserInput) (*chime.GetUserOutput, error) GetUserWithContext(aws.Context, *chime.GetUserInput, ...request.Option) (*chime.GetUserOutput, error) GetUserRequest(*chime.GetUserInput) (*request.Request, *chime.GetUserOutput) GetUserSettings(*chime.GetUserSettingsInput) (*chime.GetUserSettingsOutput, error) GetUserSettingsWithContext(aws.Context, *chime.GetUserSettingsInput, ...request.Option) (*chime.GetUserSettingsOutput, error) GetUserSettingsRequest(*chime.GetUserSettingsInput) (*request.Request, *chime.GetUserSettingsOutput) GetVoiceConnector(*chime.GetVoiceConnectorInput) (*chime.GetVoiceConnectorOutput, error) GetVoiceConnectorWithContext(aws.Context, *chime.GetVoiceConnectorInput, ...request.Option) (*chime.GetVoiceConnectorOutput, error) GetVoiceConnectorRequest(*chime.GetVoiceConnectorInput) (*request.Request, *chime.GetVoiceConnectorOutput) GetVoiceConnectorEmergencyCallingConfiguration(*chime.GetVoiceConnectorEmergencyCallingConfigurationInput) (*chime.GetVoiceConnectorEmergencyCallingConfigurationOutput, error) GetVoiceConnectorEmergencyCallingConfigurationWithContext(aws.Context, *chime.GetVoiceConnectorEmergencyCallingConfigurationInput, ...request.Option) (*chime.GetVoiceConnectorEmergencyCallingConfigurationOutput, error) GetVoiceConnectorEmergencyCallingConfigurationRequest(*chime.GetVoiceConnectorEmergencyCallingConfigurationInput) (*request.Request, *chime.GetVoiceConnectorEmergencyCallingConfigurationOutput) GetVoiceConnectorGroup(*chime.GetVoiceConnectorGroupInput) (*chime.GetVoiceConnectorGroupOutput, error) GetVoiceConnectorGroupWithContext(aws.Context, *chime.GetVoiceConnectorGroupInput, ...request.Option) (*chime.GetVoiceConnectorGroupOutput, error) GetVoiceConnectorGroupRequest(*chime.GetVoiceConnectorGroupInput) (*request.Request, *chime.GetVoiceConnectorGroupOutput) GetVoiceConnectorLoggingConfiguration(*chime.GetVoiceConnectorLoggingConfigurationInput) (*chime.GetVoiceConnectorLoggingConfigurationOutput, error) GetVoiceConnectorLoggingConfigurationWithContext(aws.Context, *chime.GetVoiceConnectorLoggingConfigurationInput, ...request.Option) (*chime.GetVoiceConnectorLoggingConfigurationOutput, error) GetVoiceConnectorLoggingConfigurationRequest(*chime.GetVoiceConnectorLoggingConfigurationInput) (*request.Request, *chime.GetVoiceConnectorLoggingConfigurationOutput) GetVoiceConnectorOrigination(*chime.GetVoiceConnectorOriginationInput) (*chime.GetVoiceConnectorOriginationOutput, error) GetVoiceConnectorOriginationWithContext(aws.Context, *chime.GetVoiceConnectorOriginationInput, ...request.Option) (*chime.GetVoiceConnectorOriginationOutput, error) GetVoiceConnectorOriginationRequest(*chime.GetVoiceConnectorOriginationInput) (*request.Request, *chime.GetVoiceConnectorOriginationOutput) GetVoiceConnectorProxy(*chime.GetVoiceConnectorProxyInput) (*chime.GetVoiceConnectorProxyOutput, error) GetVoiceConnectorProxyWithContext(aws.Context, *chime.GetVoiceConnectorProxyInput, ...request.Option) (*chime.GetVoiceConnectorProxyOutput, error) GetVoiceConnectorProxyRequest(*chime.GetVoiceConnectorProxyInput) (*request.Request, *chime.GetVoiceConnectorProxyOutput) GetVoiceConnectorStreamingConfiguration(*chime.GetVoiceConnectorStreamingConfigurationInput) (*chime.GetVoiceConnectorStreamingConfigurationOutput, error) GetVoiceConnectorStreamingConfigurationWithContext(aws.Context, *chime.GetVoiceConnectorStreamingConfigurationInput, ...request.Option) (*chime.GetVoiceConnectorStreamingConfigurationOutput, error) GetVoiceConnectorStreamingConfigurationRequest(*chime.GetVoiceConnectorStreamingConfigurationInput) (*request.Request, *chime.GetVoiceConnectorStreamingConfigurationOutput) GetVoiceConnectorTermination(*chime.GetVoiceConnectorTerminationInput) (*chime.GetVoiceConnectorTerminationOutput, error) GetVoiceConnectorTerminationWithContext(aws.Context, *chime.GetVoiceConnectorTerminationInput, ...request.Option) (*chime.GetVoiceConnectorTerminationOutput, error) GetVoiceConnectorTerminationRequest(*chime.GetVoiceConnectorTerminationInput) (*request.Request, *chime.GetVoiceConnectorTerminationOutput) GetVoiceConnectorTerminationHealth(*chime.GetVoiceConnectorTerminationHealthInput) (*chime.GetVoiceConnectorTerminationHealthOutput, error) GetVoiceConnectorTerminationHealthWithContext(aws.Context, *chime.GetVoiceConnectorTerminationHealthInput, ...request.Option) (*chime.GetVoiceConnectorTerminationHealthOutput, error) GetVoiceConnectorTerminationHealthRequest(*chime.GetVoiceConnectorTerminationHealthInput) (*request.Request, *chime.GetVoiceConnectorTerminationHealthOutput) InviteUsers(*chime.InviteUsersInput) (*chime.InviteUsersOutput, error) InviteUsersWithContext(aws.Context, *chime.InviteUsersInput, ...request.Option) (*chime.InviteUsersOutput, error) InviteUsersRequest(*chime.InviteUsersInput) (*request.Request, *chime.InviteUsersOutput) ListAccounts(*chime.ListAccountsInput) (*chime.ListAccountsOutput, error) ListAccountsWithContext(aws.Context, *chime.ListAccountsInput, ...request.Option) (*chime.ListAccountsOutput, error) ListAccountsRequest(*chime.ListAccountsInput) (*request.Request, *chime.ListAccountsOutput) ListAccountsPages(*chime.ListAccountsInput, func(*chime.ListAccountsOutput, bool) bool) error ListAccountsPagesWithContext(aws.Context, *chime.ListAccountsInput, func(*chime.ListAccountsOutput, bool) bool, ...request.Option) error ListAppInstanceAdmins(*chime.ListAppInstanceAdminsInput) (*chime.ListAppInstanceAdminsOutput, error) ListAppInstanceAdminsWithContext(aws.Context, *chime.ListAppInstanceAdminsInput, ...request.Option) (*chime.ListAppInstanceAdminsOutput, error) ListAppInstanceAdminsRequest(*chime.ListAppInstanceAdminsInput) (*request.Request, *chime.ListAppInstanceAdminsOutput) ListAppInstanceAdminsPages(*chime.ListAppInstanceAdminsInput, func(*chime.ListAppInstanceAdminsOutput, bool) bool) error ListAppInstanceAdminsPagesWithContext(aws.Context, *chime.ListAppInstanceAdminsInput, func(*chime.ListAppInstanceAdminsOutput, bool) bool, ...request.Option) error ListAppInstanceUsers(*chime.ListAppInstanceUsersInput) (*chime.ListAppInstanceUsersOutput, error) ListAppInstanceUsersWithContext(aws.Context, *chime.ListAppInstanceUsersInput, ...request.Option) (*chime.ListAppInstanceUsersOutput, error) ListAppInstanceUsersRequest(*chime.ListAppInstanceUsersInput) (*request.Request, *chime.ListAppInstanceUsersOutput) ListAppInstanceUsersPages(*chime.ListAppInstanceUsersInput, func(*chime.ListAppInstanceUsersOutput, bool) bool) error ListAppInstanceUsersPagesWithContext(aws.Context, *chime.ListAppInstanceUsersInput, func(*chime.ListAppInstanceUsersOutput, bool) bool, ...request.Option) error ListAppInstances(*chime.ListAppInstancesInput) (*chime.ListAppInstancesOutput, error) ListAppInstancesWithContext(aws.Context, *chime.ListAppInstancesInput, ...request.Option) (*chime.ListAppInstancesOutput, error) ListAppInstancesRequest(*chime.ListAppInstancesInput) (*request.Request, *chime.ListAppInstancesOutput) ListAppInstancesPages(*chime.ListAppInstancesInput, func(*chime.ListAppInstancesOutput, bool) bool) error ListAppInstancesPagesWithContext(aws.Context, *chime.ListAppInstancesInput, func(*chime.ListAppInstancesOutput, bool) bool, ...request.Option) error ListAttendeeTags(*chime.ListAttendeeTagsInput) (*chime.ListAttendeeTagsOutput, error) ListAttendeeTagsWithContext(aws.Context, *chime.ListAttendeeTagsInput, ...request.Option) (*chime.ListAttendeeTagsOutput, error) ListAttendeeTagsRequest(*chime.ListAttendeeTagsInput) (*request.Request, *chime.ListAttendeeTagsOutput) ListAttendees(*chime.ListAttendeesInput) (*chime.ListAttendeesOutput, error) ListAttendeesWithContext(aws.Context, *chime.ListAttendeesInput, ...request.Option) (*chime.ListAttendeesOutput, error) ListAttendeesRequest(*chime.ListAttendeesInput) (*request.Request, *chime.ListAttendeesOutput) ListAttendeesPages(*chime.ListAttendeesInput, func(*chime.ListAttendeesOutput, bool) bool) error ListAttendeesPagesWithContext(aws.Context, *chime.ListAttendeesInput, func(*chime.ListAttendeesOutput, bool) bool, ...request.Option) error ListBots(*chime.ListBotsInput) (*chime.ListBotsOutput, error) ListBotsWithContext(aws.Context, *chime.ListBotsInput, ...request.Option) (*chime.ListBotsOutput, error) ListBotsRequest(*chime.ListBotsInput) (*request.Request, *chime.ListBotsOutput) ListBotsPages(*chime.ListBotsInput, func(*chime.ListBotsOutput, bool) bool) error ListBotsPagesWithContext(aws.Context, *chime.ListBotsInput, func(*chime.ListBotsOutput, bool) bool, ...request.Option) error ListChannelBans(*chime.ListChannelBansInput) (*chime.ListChannelBansOutput, error) ListChannelBansWithContext(aws.Context, *chime.ListChannelBansInput, ...request.Option) (*chime.ListChannelBansOutput, error) ListChannelBansRequest(*chime.ListChannelBansInput) (*request.Request, *chime.ListChannelBansOutput) ListChannelBansPages(*chime.ListChannelBansInput, func(*chime.ListChannelBansOutput, bool) bool) error ListChannelBansPagesWithContext(aws.Context, *chime.ListChannelBansInput, func(*chime.ListChannelBansOutput, bool) bool, ...request.Option) error ListChannelMemberships(*chime.ListChannelMembershipsInput) (*chime.ListChannelMembershipsOutput, error) ListChannelMembershipsWithContext(aws.Context, *chime.ListChannelMembershipsInput, ...request.Option) (*chime.ListChannelMembershipsOutput, error) ListChannelMembershipsRequest(*chime.ListChannelMembershipsInput) (*request.Request, *chime.ListChannelMembershipsOutput) ListChannelMembershipsPages(*chime.ListChannelMembershipsInput, func(*chime.ListChannelMembershipsOutput, bool) bool) error ListChannelMembershipsPagesWithContext(aws.Context, *chime.ListChannelMembershipsInput, func(*chime.ListChannelMembershipsOutput, bool) bool, ...request.Option) error ListChannelMembershipsForAppInstanceUser(*chime.ListChannelMembershipsForAppInstanceUserInput) (*chime.ListChannelMembershipsForAppInstanceUserOutput, error) ListChannelMembershipsForAppInstanceUserWithContext(aws.Context, *chime.ListChannelMembershipsForAppInstanceUserInput, ...request.Option) (*chime.ListChannelMembershipsForAppInstanceUserOutput, error) ListChannelMembershipsForAppInstanceUserRequest(*chime.ListChannelMembershipsForAppInstanceUserInput) (*request.Request, *chime.ListChannelMembershipsForAppInstanceUserOutput) ListChannelMembershipsForAppInstanceUserPages(*chime.ListChannelMembershipsForAppInstanceUserInput, func(*chime.ListChannelMembershipsForAppInstanceUserOutput, bool) bool) error ListChannelMembershipsForAppInstanceUserPagesWithContext(aws.Context, *chime.ListChannelMembershipsForAppInstanceUserInput, func(*chime.ListChannelMembershipsForAppInstanceUserOutput, bool) bool, ...request.Option) error ListChannelMessages(*chime.ListChannelMessagesInput) (*chime.ListChannelMessagesOutput, error) ListChannelMessagesWithContext(aws.Context, *chime.ListChannelMessagesInput, ...request.Option) (*chime.ListChannelMessagesOutput, error) ListChannelMessagesRequest(*chime.ListChannelMessagesInput) (*request.Request, *chime.ListChannelMessagesOutput) ListChannelMessagesPages(*chime.ListChannelMessagesInput, func(*chime.ListChannelMessagesOutput, bool) bool) error ListChannelMessagesPagesWithContext(aws.Context, *chime.ListChannelMessagesInput, func(*chime.ListChannelMessagesOutput, bool) bool, ...request.Option) error ListChannelModerators(*chime.ListChannelModeratorsInput) (*chime.ListChannelModeratorsOutput, error) ListChannelModeratorsWithContext(aws.Context, *chime.ListChannelModeratorsInput, ...request.Option) (*chime.ListChannelModeratorsOutput, error) ListChannelModeratorsRequest(*chime.ListChannelModeratorsInput) (*request.Request, *chime.ListChannelModeratorsOutput) ListChannelModeratorsPages(*chime.ListChannelModeratorsInput, func(*chime.ListChannelModeratorsOutput, bool) bool) error ListChannelModeratorsPagesWithContext(aws.Context, *chime.ListChannelModeratorsInput, func(*chime.ListChannelModeratorsOutput, bool) bool, ...request.Option) error ListChannels(*chime.ListChannelsInput) (*chime.ListChannelsOutput, error) ListChannelsWithContext(aws.Context, *chime.ListChannelsInput, ...request.Option) (*chime.ListChannelsOutput, error) ListChannelsRequest(*chime.ListChannelsInput) (*request.Request, *chime.ListChannelsOutput) ListChannelsPages(*chime.ListChannelsInput, func(*chime.ListChannelsOutput, bool) bool) error ListChannelsPagesWithContext(aws.Context, *chime.ListChannelsInput, func(*chime.ListChannelsOutput, bool) bool, ...request.Option) error ListChannelsModeratedByAppInstanceUser(*chime.ListChannelsModeratedByAppInstanceUserInput) (*chime.ListChannelsModeratedByAppInstanceUserOutput, error) ListChannelsModeratedByAppInstanceUserWithContext(aws.Context, *chime.ListChannelsModeratedByAppInstanceUserInput, ...request.Option) (*chime.ListChannelsModeratedByAppInstanceUserOutput, error) ListChannelsModeratedByAppInstanceUserRequest(*chime.ListChannelsModeratedByAppInstanceUserInput) (*request.Request, *chime.ListChannelsModeratedByAppInstanceUserOutput) ListChannelsModeratedByAppInstanceUserPages(*chime.ListChannelsModeratedByAppInstanceUserInput, func(*chime.ListChannelsModeratedByAppInstanceUserOutput, bool) bool) error ListChannelsModeratedByAppInstanceUserPagesWithContext(aws.Context, *chime.ListChannelsModeratedByAppInstanceUserInput, func(*chime.ListChannelsModeratedByAppInstanceUserOutput, bool) bool, ...request.Option) error ListMediaCapturePipelines(*chime.ListMediaCapturePipelinesInput) (*chime.ListMediaCapturePipelinesOutput, error) ListMediaCapturePipelinesWithContext(aws.Context, *chime.ListMediaCapturePipelinesInput, ...request.Option) (*chime.ListMediaCapturePipelinesOutput, error) ListMediaCapturePipelinesRequest(*chime.ListMediaCapturePipelinesInput) (*request.Request, *chime.ListMediaCapturePipelinesOutput) ListMediaCapturePipelinesPages(*chime.ListMediaCapturePipelinesInput, func(*chime.ListMediaCapturePipelinesOutput, bool) bool) error ListMediaCapturePipelinesPagesWithContext(aws.Context, *chime.ListMediaCapturePipelinesInput, func(*chime.ListMediaCapturePipelinesOutput, bool) bool, ...request.Option) error ListMeetingTags(*chime.ListMeetingTagsInput) (*chime.ListMeetingTagsOutput, error) ListMeetingTagsWithContext(aws.Context, *chime.ListMeetingTagsInput, ...request.Option) (*chime.ListMeetingTagsOutput, error) ListMeetingTagsRequest(*chime.ListMeetingTagsInput) (*request.Request, *chime.ListMeetingTagsOutput) ListMeetings(*chime.ListMeetingsInput) (*chime.ListMeetingsOutput, error) ListMeetingsWithContext(aws.Context, *chime.ListMeetingsInput, ...request.Option) (*chime.ListMeetingsOutput, error) ListMeetingsRequest(*chime.ListMeetingsInput) (*request.Request, *chime.ListMeetingsOutput) ListMeetingsPages(*chime.ListMeetingsInput, func(*chime.ListMeetingsOutput, bool) bool) error ListMeetingsPagesWithContext(aws.Context, *chime.ListMeetingsInput, func(*chime.ListMeetingsOutput, bool) bool, ...request.Option) error ListPhoneNumberOrders(*chime.ListPhoneNumberOrdersInput) (*chime.ListPhoneNumberOrdersOutput, error) ListPhoneNumberOrdersWithContext(aws.Context, *chime.ListPhoneNumberOrdersInput, ...request.Option) (*chime.ListPhoneNumberOrdersOutput, error) ListPhoneNumberOrdersRequest(*chime.ListPhoneNumberOrdersInput) (*request.Request, *chime.ListPhoneNumberOrdersOutput) ListPhoneNumberOrdersPages(*chime.ListPhoneNumberOrdersInput, func(*chime.ListPhoneNumberOrdersOutput, bool) bool) error ListPhoneNumberOrdersPagesWithContext(aws.Context, *chime.ListPhoneNumberOrdersInput, func(*chime.ListPhoneNumberOrdersOutput, bool) bool, ...request.Option) error ListPhoneNumbers(*chime.ListPhoneNumbersInput) (*chime.ListPhoneNumbersOutput, error) ListPhoneNumbersWithContext(aws.Context, *chime.ListPhoneNumbersInput, ...request.Option) (*chime.ListPhoneNumbersOutput, error) ListPhoneNumbersRequest(*chime.ListPhoneNumbersInput) (*request.Request, *chime.ListPhoneNumbersOutput) ListPhoneNumbersPages(*chime.ListPhoneNumbersInput, func(*chime.ListPhoneNumbersOutput, bool) bool) error ListPhoneNumbersPagesWithContext(aws.Context, *chime.ListPhoneNumbersInput, func(*chime.ListPhoneNumbersOutput, bool) bool, ...request.Option) error ListProxySessions(*chime.ListProxySessionsInput) (*chime.ListProxySessionsOutput, error) ListProxySessionsWithContext(aws.Context, *chime.ListProxySessionsInput, ...request.Option) (*chime.ListProxySessionsOutput, error) ListProxySessionsRequest(*chime.ListProxySessionsInput) (*request.Request, *chime.ListProxySessionsOutput) ListProxySessionsPages(*chime.ListProxySessionsInput, func(*chime.ListProxySessionsOutput, bool) bool) error ListProxySessionsPagesWithContext(aws.Context, *chime.ListProxySessionsInput, func(*chime.ListProxySessionsOutput, bool) bool, ...request.Option) error ListRoomMemberships(*chime.ListRoomMembershipsInput) (*chime.ListRoomMembershipsOutput, error) ListRoomMembershipsWithContext(aws.Context, *chime.ListRoomMembershipsInput, ...request.Option) (*chime.ListRoomMembershipsOutput, error) ListRoomMembershipsRequest(*chime.ListRoomMembershipsInput) (*request.Request, *chime.ListRoomMembershipsOutput) ListRoomMembershipsPages(*chime.ListRoomMembershipsInput, func(*chime.ListRoomMembershipsOutput, bool) bool) error ListRoomMembershipsPagesWithContext(aws.Context, *chime.ListRoomMembershipsInput, func(*chime.ListRoomMembershipsOutput, bool) bool, ...request.Option) error ListRooms(*chime.ListRoomsInput) (*chime.ListRoomsOutput, error) ListRoomsWithContext(aws.Context, *chime.ListRoomsInput, ...request.Option) (*chime.ListRoomsOutput, error) ListRoomsRequest(*chime.ListRoomsInput) (*request.Request, *chime.ListRoomsOutput) ListRoomsPages(*chime.ListRoomsInput, func(*chime.ListRoomsOutput, bool) bool) error ListRoomsPagesWithContext(aws.Context, *chime.ListRoomsInput, func(*chime.ListRoomsOutput, bool) bool, ...request.Option) error ListSipMediaApplications(*chime.ListSipMediaApplicationsInput) (*chime.ListSipMediaApplicationsOutput, error) ListSipMediaApplicationsWithContext(aws.Context, *chime.ListSipMediaApplicationsInput, ...request.Option) (*chime.ListSipMediaApplicationsOutput, error) ListSipMediaApplicationsRequest(*chime.ListSipMediaApplicationsInput) (*request.Request, *chime.ListSipMediaApplicationsOutput) ListSipMediaApplicationsPages(*chime.ListSipMediaApplicationsInput, func(*chime.ListSipMediaApplicationsOutput, bool) bool) error ListSipMediaApplicationsPagesWithContext(aws.Context, *chime.ListSipMediaApplicationsInput, func(*chime.ListSipMediaApplicationsOutput, bool) bool, ...request.Option) error ListSipRules(*chime.ListSipRulesInput) (*chime.ListSipRulesOutput, error) ListSipRulesWithContext(aws.Context, *chime.ListSipRulesInput, ...request.Option) (*chime.ListSipRulesOutput, error) ListSipRulesRequest(*chime.ListSipRulesInput) (*request.Request, *chime.ListSipRulesOutput) ListSipRulesPages(*chime.ListSipRulesInput, func(*chime.ListSipRulesOutput, bool) bool) error ListSipRulesPagesWithContext(aws.Context, *chime.ListSipRulesInput, func(*chime.ListSipRulesOutput, bool) bool, ...request.Option) error ListSupportedPhoneNumberCountries(*chime.ListSupportedPhoneNumberCountriesInput) (*chime.ListSupportedPhoneNumberCountriesOutput, error) ListSupportedPhoneNumberCountriesWithContext(aws.Context, *chime.ListSupportedPhoneNumberCountriesInput, ...request.Option) (*chime.ListSupportedPhoneNumberCountriesOutput, error) ListSupportedPhoneNumberCountriesRequest(*chime.ListSupportedPhoneNumberCountriesInput) (*request.Request, *chime.ListSupportedPhoneNumberCountriesOutput) ListTagsForResource(*chime.ListTagsForResourceInput) (*chime.ListTagsForResourceOutput, error) ListTagsForResourceWithContext(aws.Context, *chime.ListTagsForResourceInput, ...request.Option) (*chime.ListTagsForResourceOutput, error) ListTagsForResourceRequest(*chime.ListTagsForResourceInput) (*request.Request, *chime.ListTagsForResourceOutput) ListUsers(*chime.ListUsersInput) (*chime.ListUsersOutput, error) ListUsersWithContext(aws.Context, *chime.ListUsersInput, ...request.Option) (*chime.ListUsersOutput, error) ListUsersRequest(*chime.ListUsersInput) (*request.Request, *chime.ListUsersOutput) ListUsersPages(*chime.ListUsersInput, func(*chime.ListUsersOutput, bool) bool) error ListUsersPagesWithContext(aws.Context, *chime.ListUsersInput, func(*chime.ListUsersOutput, bool) bool, ...request.Option) error ListVoiceConnectorGroups(*chime.ListVoiceConnectorGroupsInput) (*chime.ListVoiceConnectorGroupsOutput, error) ListVoiceConnectorGroupsWithContext(aws.Context, *chime.ListVoiceConnectorGroupsInput, ...request.Option) (*chime.ListVoiceConnectorGroupsOutput, error) ListVoiceConnectorGroupsRequest(*chime.ListVoiceConnectorGroupsInput) (*request.Request, *chime.ListVoiceConnectorGroupsOutput) ListVoiceConnectorGroupsPages(*chime.ListVoiceConnectorGroupsInput, func(*chime.ListVoiceConnectorGroupsOutput, bool) bool) error ListVoiceConnectorGroupsPagesWithContext(aws.Context, *chime.ListVoiceConnectorGroupsInput, func(*chime.ListVoiceConnectorGroupsOutput, bool) bool, ...request.Option) error ListVoiceConnectorTerminationCredentials(*chime.ListVoiceConnectorTerminationCredentialsInput) (*chime.ListVoiceConnectorTerminationCredentialsOutput, error) ListVoiceConnectorTerminationCredentialsWithContext(aws.Context, *chime.ListVoiceConnectorTerminationCredentialsInput, ...request.Option) (*chime.ListVoiceConnectorTerminationCredentialsOutput, error) ListVoiceConnectorTerminationCredentialsRequest(*chime.ListVoiceConnectorTerminationCredentialsInput) (*request.Request, *chime.ListVoiceConnectorTerminationCredentialsOutput) ListVoiceConnectors(*chime.ListVoiceConnectorsInput) (*chime.ListVoiceConnectorsOutput, error) ListVoiceConnectorsWithContext(aws.Context, *chime.ListVoiceConnectorsInput, ...request.Option) (*chime.ListVoiceConnectorsOutput, error) ListVoiceConnectorsRequest(*chime.ListVoiceConnectorsInput) (*request.Request, *chime.ListVoiceConnectorsOutput) ListVoiceConnectorsPages(*chime.ListVoiceConnectorsInput, func(*chime.ListVoiceConnectorsOutput, bool) bool) error ListVoiceConnectorsPagesWithContext(aws.Context, *chime.ListVoiceConnectorsInput, func(*chime.ListVoiceConnectorsOutput, bool) bool, ...request.Option) error LogoutUser(*chime.LogoutUserInput) (*chime.LogoutUserOutput, error) LogoutUserWithContext(aws.Context, *chime.LogoutUserInput, ...request.Option) (*chime.LogoutUserOutput, error) LogoutUserRequest(*chime.LogoutUserInput) (*request.Request, *chime.LogoutUserOutput) PutAppInstanceRetentionSettings(*chime.PutAppInstanceRetentionSettingsInput) (*chime.PutAppInstanceRetentionSettingsOutput, error) PutAppInstanceRetentionSettingsWithContext(aws.Context, *chime.PutAppInstanceRetentionSettingsInput, ...request.Option) (*chime.PutAppInstanceRetentionSettingsOutput, error) PutAppInstanceRetentionSettingsRequest(*chime.PutAppInstanceRetentionSettingsInput) (*request.Request, *chime.PutAppInstanceRetentionSettingsOutput) PutAppInstanceStreamingConfigurations(*chime.PutAppInstanceStreamingConfigurationsInput) (*chime.PutAppInstanceStreamingConfigurationsOutput, error) PutAppInstanceStreamingConfigurationsWithContext(aws.Context, *chime.PutAppInstanceStreamingConfigurationsInput, ...request.Option) (*chime.PutAppInstanceStreamingConfigurationsOutput, error) PutAppInstanceStreamingConfigurationsRequest(*chime.PutAppInstanceStreamingConfigurationsInput) (*request.Request, *chime.PutAppInstanceStreamingConfigurationsOutput) PutEventsConfiguration(*chime.PutEventsConfigurationInput) (*chime.PutEventsConfigurationOutput, error) PutEventsConfigurationWithContext(aws.Context, *chime.PutEventsConfigurationInput, ...request.Option) (*chime.PutEventsConfigurationOutput, error) PutEventsConfigurationRequest(*chime.PutEventsConfigurationInput) (*request.Request, *chime.PutEventsConfigurationOutput) PutRetentionSettings(*chime.PutRetentionSettingsInput) (*chime.PutRetentionSettingsOutput, error) PutRetentionSettingsWithContext(aws.Context, *chime.PutRetentionSettingsInput, ...request.Option) (*chime.PutRetentionSettingsOutput, error) PutRetentionSettingsRequest(*chime.PutRetentionSettingsInput) (*request.Request, *chime.PutRetentionSettingsOutput) PutSipMediaApplicationLoggingConfiguration(*chime.PutSipMediaApplicationLoggingConfigurationInput) (*chime.PutSipMediaApplicationLoggingConfigurationOutput, error) PutSipMediaApplicationLoggingConfigurationWithContext(aws.Context, *chime.PutSipMediaApplicationLoggingConfigurationInput, ...request.Option) (*chime.PutSipMediaApplicationLoggingConfigurationOutput, error) PutSipMediaApplicationLoggingConfigurationRequest(*chime.PutSipMediaApplicationLoggingConfigurationInput) (*request.Request, *chime.PutSipMediaApplicationLoggingConfigurationOutput) PutVoiceConnectorEmergencyCallingConfiguration(*chime.PutVoiceConnectorEmergencyCallingConfigurationInput) (*chime.PutVoiceConnectorEmergencyCallingConfigurationOutput, error) PutVoiceConnectorEmergencyCallingConfigurationWithContext(aws.Context, *chime.PutVoiceConnectorEmergencyCallingConfigurationInput, ...request.Option) (*chime.PutVoiceConnectorEmergencyCallingConfigurationOutput, error) PutVoiceConnectorEmergencyCallingConfigurationRequest(*chime.PutVoiceConnectorEmergencyCallingConfigurationInput) (*request.Request, *chime.PutVoiceConnectorEmergencyCallingConfigurationOutput) PutVoiceConnectorLoggingConfiguration(*chime.PutVoiceConnectorLoggingConfigurationInput) (*chime.PutVoiceConnectorLoggingConfigurationOutput, error) PutVoiceConnectorLoggingConfigurationWithContext(aws.Context, *chime.PutVoiceConnectorLoggingConfigurationInput, ...request.Option) (*chime.PutVoiceConnectorLoggingConfigurationOutput, error) PutVoiceConnectorLoggingConfigurationRequest(*chime.PutVoiceConnectorLoggingConfigurationInput) (*request.Request, *chime.PutVoiceConnectorLoggingConfigurationOutput) PutVoiceConnectorOrigination(*chime.PutVoiceConnectorOriginationInput) (*chime.PutVoiceConnectorOriginationOutput, error) PutVoiceConnectorOriginationWithContext(aws.Context, *chime.PutVoiceConnectorOriginationInput, ...request.Option) (*chime.PutVoiceConnectorOriginationOutput, error) PutVoiceConnectorOriginationRequest(*chime.PutVoiceConnectorOriginationInput) (*request.Request, *chime.PutVoiceConnectorOriginationOutput) PutVoiceConnectorProxy(*chime.PutVoiceConnectorProxyInput) (*chime.PutVoiceConnectorProxyOutput, error) PutVoiceConnectorProxyWithContext(aws.Context, *chime.PutVoiceConnectorProxyInput, ...request.Option) (*chime.PutVoiceConnectorProxyOutput, error) PutVoiceConnectorProxyRequest(*chime.PutVoiceConnectorProxyInput) (*request.Request, *chime.PutVoiceConnectorProxyOutput) PutVoiceConnectorStreamingConfiguration(*chime.PutVoiceConnectorStreamingConfigurationInput) (*chime.PutVoiceConnectorStreamingConfigurationOutput, error) PutVoiceConnectorStreamingConfigurationWithContext(aws.Context, *chime.PutVoiceConnectorStreamingConfigurationInput, ...request.Option) (*chime.PutVoiceConnectorStreamingConfigurationOutput, error) PutVoiceConnectorStreamingConfigurationRequest(*chime.PutVoiceConnectorStreamingConfigurationInput) (*request.Request, *chime.PutVoiceConnectorStreamingConfigurationOutput) PutVoiceConnectorTermination(*chime.PutVoiceConnectorTerminationInput) (*chime.PutVoiceConnectorTerminationOutput, error) PutVoiceConnectorTerminationWithContext(aws.Context, *chime.PutVoiceConnectorTerminationInput, ...request.Option) (*chime.PutVoiceConnectorTerminationOutput, error) PutVoiceConnectorTerminationRequest(*chime.PutVoiceConnectorTerminationInput) (*request.Request, *chime.PutVoiceConnectorTerminationOutput) PutVoiceConnectorTerminationCredentials(*chime.PutVoiceConnectorTerminationCredentialsInput) (*chime.PutVoiceConnectorTerminationCredentialsOutput, error) PutVoiceConnectorTerminationCredentialsWithContext(aws.Context, *chime.PutVoiceConnectorTerminationCredentialsInput, ...request.Option) (*chime.PutVoiceConnectorTerminationCredentialsOutput, error) PutVoiceConnectorTerminationCredentialsRequest(*chime.PutVoiceConnectorTerminationCredentialsInput) (*request.Request, *chime.PutVoiceConnectorTerminationCredentialsOutput) RedactChannelMessage(*chime.RedactChannelMessageInput) (*chime.RedactChannelMessageOutput, error) RedactChannelMessageWithContext(aws.Context, *chime.RedactChannelMessageInput, ...request.Option) (*chime.RedactChannelMessageOutput, error) RedactChannelMessageRequest(*chime.RedactChannelMessageInput) (*request.Request, *chime.RedactChannelMessageOutput) RedactConversationMessage(*chime.RedactConversationMessageInput) (*chime.RedactConversationMessageOutput, error) RedactConversationMessageWithContext(aws.Context, *chime.RedactConversationMessageInput, ...request.Option) (*chime.RedactConversationMessageOutput, error) RedactConversationMessageRequest(*chime.RedactConversationMessageInput) (*request.Request, *chime.RedactConversationMessageOutput) RedactRoomMessage(*chime.RedactRoomMessageInput) (*chime.RedactRoomMessageOutput, error) RedactRoomMessageWithContext(aws.Context, *chime.RedactRoomMessageInput, ...request.Option) (*chime.RedactRoomMessageOutput, error) RedactRoomMessageRequest(*chime.RedactRoomMessageInput) (*request.Request, *chime.RedactRoomMessageOutput) RegenerateSecurityToken(*chime.RegenerateSecurityTokenInput) (*chime.RegenerateSecurityTokenOutput, error) RegenerateSecurityTokenWithContext(aws.Context, *chime.RegenerateSecurityTokenInput, ...request.Option) (*chime.RegenerateSecurityTokenOutput, error) RegenerateSecurityTokenRequest(*chime.RegenerateSecurityTokenInput) (*request.Request, *chime.RegenerateSecurityTokenOutput) ResetPersonalPIN(*chime.ResetPersonalPINInput) (*chime.ResetPersonalPINOutput, error) ResetPersonalPINWithContext(aws.Context, *chime.ResetPersonalPINInput, ...request.Option) (*chime.ResetPersonalPINOutput, error) ResetPersonalPINRequest(*chime.ResetPersonalPINInput) (*request.Request, *chime.ResetPersonalPINOutput) RestorePhoneNumber(*chime.RestorePhoneNumberInput) (*chime.RestorePhoneNumberOutput, error) RestorePhoneNumberWithContext(aws.Context, *chime.RestorePhoneNumberInput, ...request.Option) (*chime.RestorePhoneNumberOutput, error) RestorePhoneNumberRequest(*chime.RestorePhoneNumberInput) (*request.Request, *chime.RestorePhoneNumberOutput) SearchAvailablePhoneNumbers(*chime.SearchAvailablePhoneNumbersInput) (*chime.SearchAvailablePhoneNumbersOutput, error) SearchAvailablePhoneNumbersWithContext(aws.Context, *chime.SearchAvailablePhoneNumbersInput, ...request.Option) (*chime.SearchAvailablePhoneNumbersOutput, error) SearchAvailablePhoneNumbersRequest(*chime.SearchAvailablePhoneNumbersInput) (*request.Request, *chime.SearchAvailablePhoneNumbersOutput) SearchAvailablePhoneNumbersPages(*chime.SearchAvailablePhoneNumbersInput, func(*chime.SearchAvailablePhoneNumbersOutput, bool) bool) error SearchAvailablePhoneNumbersPagesWithContext(aws.Context, *chime.SearchAvailablePhoneNumbersInput, func(*chime.SearchAvailablePhoneNumbersOutput, bool) bool, ...request.Option) error SendChannelMessage(*chime.SendChannelMessageInput) (*chime.SendChannelMessageOutput, error) SendChannelMessageWithContext(aws.Context, *chime.SendChannelMessageInput, ...request.Option) (*chime.SendChannelMessageOutput, error) SendChannelMessageRequest(*chime.SendChannelMessageInput) (*request.Request, *chime.SendChannelMessageOutput) StartMeetingTranscription(*chime.StartMeetingTranscriptionInput) (*chime.StartMeetingTranscriptionOutput, error) StartMeetingTranscriptionWithContext(aws.Context, *chime.StartMeetingTranscriptionInput, ...request.Option) (*chime.StartMeetingTranscriptionOutput, error) StartMeetingTranscriptionRequest(*chime.StartMeetingTranscriptionInput) (*request.Request, *chime.StartMeetingTranscriptionOutput) StopMeetingTranscription(*chime.StopMeetingTranscriptionInput) (*chime.StopMeetingTranscriptionOutput, error) StopMeetingTranscriptionWithContext(aws.Context, *chime.StopMeetingTranscriptionInput, ...request.Option) (*chime.StopMeetingTranscriptionOutput, error) StopMeetingTranscriptionRequest(*chime.StopMeetingTranscriptionInput) (*request.Request, *chime.StopMeetingTranscriptionOutput) TagAttendee(*chime.TagAttendeeInput) (*chime.TagAttendeeOutput, error) TagAttendeeWithContext(aws.Context, *chime.TagAttendeeInput, ...request.Option) (*chime.TagAttendeeOutput, error) TagAttendeeRequest(*chime.TagAttendeeInput) (*request.Request, *chime.TagAttendeeOutput) TagMeeting(*chime.TagMeetingInput) (*chime.TagMeetingOutput, error) TagMeetingWithContext(aws.Context, *chime.TagMeetingInput, ...request.Option) (*chime.TagMeetingOutput, error) TagMeetingRequest(*chime.TagMeetingInput) (*request.Request, *chime.TagMeetingOutput) TagResource(*chime.TagResourceInput) (*chime.TagResourceOutput, error) TagResourceWithContext(aws.Context, *chime.TagResourceInput, ...request.Option) (*chime.TagResourceOutput, error) TagResourceRequest(*chime.TagResourceInput) (*request.Request, *chime.TagResourceOutput) UntagAttendee(*chime.UntagAttendeeInput) (*chime.UntagAttendeeOutput, error) UntagAttendeeWithContext(aws.Context, *chime.UntagAttendeeInput, ...request.Option) (*chime.UntagAttendeeOutput, error) UntagAttendeeRequest(*chime.UntagAttendeeInput) (*request.Request, *chime.UntagAttendeeOutput) UntagMeeting(*chime.UntagMeetingInput) (*chime.UntagMeetingOutput, error) UntagMeetingWithContext(aws.Context, *chime.UntagMeetingInput, ...request.Option) (*chime.UntagMeetingOutput, error) UntagMeetingRequest(*chime.UntagMeetingInput) (*request.Request, *chime.UntagMeetingOutput) UntagResource(*chime.UntagResourceInput) (*chime.UntagResourceOutput, error) UntagResourceWithContext(aws.Context, *chime.UntagResourceInput, ...request.Option) (*chime.UntagResourceOutput, error) UntagResourceRequest(*chime.UntagResourceInput) (*request.Request, *chime.UntagResourceOutput) UpdateAccount(*chime.UpdateAccountInput) (*chime.UpdateAccountOutput, error) UpdateAccountWithContext(aws.Context, *chime.UpdateAccountInput, ...request.Option) (*chime.UpdateAccountOutput, error) UpdateAccountRequest(*chime.UpdateAccountInput) (*request.Request, *chime.UpdateAccountOutput) UpdateAccountSettings(*chime.UpdateAccountSettingsInput) (*chime.UpdateAccountSettingsOutput, error) UpdateAccountSettingsWithContext(aws.Context, *chime.UpdateAccountSettingsInput, ...request.Option) (*chime.UpdateAccountSettingsOutput, error) UpdateAccountSettingsRequest(*chime.UpdateAccountSettingsInput) (*request.Request, *chime.UpdateAccountSettingsOutput) UpdateAppInstance(*chime.UpdateAppInstanceInput) (*chime.UpdateAppInstanceOutput, error) UpdateAppInstanceWithContext(aws.Context, *chime.UpdateAppInstanceInput, ...request.Option) (*chime.UpdateAppInstanceOutput, error) UpdateAppInstanceRequest(*chime.UpdateAppInstanceInput) (*request.Request, *chime.UpdateAppInstanceOutput) UpdateAppInstanceUser(*chime.UpdateAppInstanceUserInput) (*chime.UpdateAppInstanceUserOutput, error) UpdateAppInstanceUserWithContext(aws.Context, *chime.UpdateAppInstanceUserInput, ...request.Option) (*chime.UpdateAppInstanceUserOutput, error) UpdateAppInstanceUserRequest(*chime.UpdateAppInstanceUserInput) (*request.Request, *chime.UpdateAppInstanceUserOutput) UpdateBot(*chime.UpdateBotInput) (*chime.UpdateBotOutput, error) UpdateBotWithContext(aws.Context, *chime.UpdateBotInput, ...request.Option) (*chime.UpdateBotOutput, error) UpdateBotRequest(*chime.UpdateBotInput) (*request.Request, *chime.UpdateBotOutput) UpdateChannel(*chime.UpdateChannelInput) (*chime.UpdateChannelOutput, error) UpdateChannelWithContext(aws.Context, *chime.UpdateChannelInput, ...request.Option) (*chime.UpdateChannelOutput, error) UpdateChannelRequest(*chime.UpdateChannelInput) (*request.Request, *chime.UpdateChannelOutput) UpdateChannelMessage(*chime.UpdateChannelMessageInput) (*chime.UpdateChannelMessageOutput, error) UpdateChannelMessageWithContext(aws.Context, *chime.UpdateChannelMessageInput, ...request.Option) (*chime.UpdateChannelMessageOutput, error) UpdateChannelMessageRequest(*chime.UpdateChannelMessageInput) (*request.Request, *chime.UpdateChannelMessageOutput) UpdateChannelReadMarker(*chime.UpdateChannelReadMarkerInput) (*chime.UpdateChannelReadMarkerOutput, error) UpdateChannelReadMarkerWithContext(aws.Context, *chime.UpdateChannelReadMarkerInput, ...request.Option) (*chime.UpdateChannelReadMarkerOutput, error) UpdateChannelReadMarkerRequest(*chime.UpdateChannelReadMarkerInput) (*request.Request, *chime.UpdateChannelReadMarkerOutput) UpdateGlobalSettings(*chime.UpdateGlobalSettingsInput) (*chime.UpdateGlobalSettingsOutput, error) UpdateGlobalSettingsWithContext(aws.Context, *chime.UpdateGlobalSettingsInput, ...request.Option) (*chime.UpdateGlobalSettingsOutput, error) UpdateGlobalSettingsRequest(*chime.UpdateGlobalSettingsInput) (*request.Request, *chime.UpdateGlobalSettingsOutput) UpdatePhoneNumber(*chime.UpdatePhoneNumberInput) (*chime.UpdatePhoneNumberOutput, error) UpdatePhoneNumberWithContext(aws.Context, *chime.UpdatePhoneNumberInput, ...request.Option) (*chime.UpdatePhoneNumberOutput, error) UpdatePhoneNumberRequest(*chime.UpdatePhoneNumberInput) (*request.Request, *chime.UpdatePhoneNumberOutput) UpdatePhoneNumberSettings(*chime.UpdatePhoneNumberSettingsInput) (*chime.UpdatePhoneNumberSettingsOutput, error) UpdatePhoneNumberSettingsWithContext(aws.Context, *chime.UpdatePhoneNumberSettingsInput, ...request.Option) (*chime.UpdatePhoneNumberSettingsOutput, error) UpdatePhoneNumberSettingsRequest(*chime.UpdatePhoneNumberSettingsInput) (*request.Request, *chime.UpdatePhoneNumberSettingsOutput) UpdateProxySession(*chime.UpdateProxySessionInput) (*chime.UpdateProxySessionOutput, error) UpdateProxySessionWithContext(aws.Context, *chime.UpdateProxySessionInput, ...request.Option) (*chime.UpdateProxySessionOutput, error) UpdateProxySessionRequest(*chime.UpdateProxySessionInput) (*request.Request, *chime.UpdateProxySessionOutput) UpdateRoom(*chime.UpdateRoomInput) (*chime.UpdateRoomOutput, error) UpdateRoomWithContext(aws.Context, *chime.UpdateRoomInput, ...request.Option) (*chime.UpdateRoomOutput, error) UpdateRoomRequest(*chime.UpdateRoomInput) (*request.Request, *chime.UpdateRoomOutput) UpdateRoomMembership(*chime.UpdateRoomMembershipInput) (*chime.UpdateRoomMembershipOutput, error) UpdateRoomMembershipWithContext(aws.Context, *chime.UpdateRoomMembershipInput, ...request.Option) (*chime.UpdateRoomMembershipOutput, error) UpdateRoomMembershipRequest(*chime.UpdateRoomMembershipInput) (*request.Request, *chime.UpdateRoomMembershipOutput) UpdateSipMediaApplication(*chime.UpdateSipMediaApplicationInput) (*chime.UpdateSipMediaApplicationOutput, error) UpdateSipMediaApplicationWithContext(aws.Context, *chime.UpdateSipMediaApplicationInput, ...request.Option) (*chime.UpdateSipMediaApplicationOutput, error) UpdateSipMediaApplicationRequest(*chime.UpdateSipMediaApplicationInput) (*request.Request, *chime.UpdateSipMediaApplicationOutput) UpdateSipMediaApplicationCall(*chime.UpdateSipMediaApplicationCallInput) (*chime.UpdateSipMediaApplicationCallOutput, error) UpdateSipMediaApplicationCallWithContext(aws.Context, *chime.UpdateSipMediaApplicationCallInput, ...request.Option) (*chime.UpdateSipMediaApplicationCallOutput, error) UpdateSipMediaApplicationCallRequest(*chime.UpdateSipMediaApplicationCallInput) (*request.Request, *chime.UpdateSipMediaApplicationCallOutput) UpdateSipRule(*chime.UpdateSipRuleInput) (*chime.UpdateSipRuleOutput, error) UpdateSipRuleWithContext(aws.Context, *chime.UpdateSipRuleInput, ...request.Option) (*chime.UpdateSipRuleOutput, error) UpdateSipRuleRequest(*chime.UpdateSipRuleInput) (*request.Request, *chime.UpdateSipRuleOutput) UpdateUser(*chime.UpdateUserInput) (*chime.UpdateUserOutput, error) UpdateUserWithContext(aws.Context, *chime.UpdateUserInput, ...request.Option) (*chime.UpdateUserOutput, error) UpdateUserRequest(*chime.UpdateUserInput) (*request.Request, *chime.UpdateUserOutput) UpdateUserSettings(*chime.UpdateUserSettingsInput) (*chime.UpdateUserSettingsOutput, error) UpdateUserSettingsWithContext(aws.Context, *chime.UpdateUserSettingsInput, ...request.Option) (*chime.UpdateUserSettingsOutput, error) UpdateUserSettingsRequest(*chime.UpdateUserSettingsInput) (*request.Request, *chime.UpdateUserSettingsOutput) UpdateVoiceConnector(*chime.UpdateVoiceConnectorInput) (*chime.UpdateVoiceConnectorOutput, error) UpdateVoiceConnectorWithContext(aws.Context, *chime.UpdateVoiceConnectorInput, ...request.Option) (*chime.UpdateVoiceConnectorOutput, error) UpdateVoiceConnectorRequest(*chime.UpdateVoiceConnectorInput) (*request.Request, *chime.UpdateVoiceConnectorOutput) UpdateVoiceConnectorGroup(*chime.UpdateVoiceConnectorGroupInput) (*chime.UpdateVoiceConnectorGroupOutput, error) UpdateVoiceConnectorGroupWithContext(aws.Context, *chime.UpdateVoiceConnectorGroupInput, ...request.Option) (*chime.UpdateVoiceConnectorGroupOutput, error) UpdateVoiceConnectorGroupRequest(*chime.UpdateVoiceConnectorGroupInput) (*request.Request, *chime.UpdateVoiceConnectorGroupOutput) } var _ ChimeAPI = (*chime.Chime)(nil)
903
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package chimesdkidentity import ( "fmt" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) const opCreateAppInstance = "CreateAppInstance" // CreateAppInstanceRequest generates a "aws/request.Request" representing the // client's request for the CreateAppInstance operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateAppInstance for more information on using the CreateAppInstance // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateAppInstanceRequest method. // req, resp := client.CreateAppInstanceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/CreateAppInstance func (c *ChimeSDKIdentity) CreateAppInstanceRequest(input *CreateAppInstanceInput) (req *request.Request, output *CreateAppInstanceOutput) { op := &request.Operation{ Name: opCreateAppInstance, HTTPMethod: "POST", HTTPPath: "/app-instances", } if input == nil { input = &CreateAppInstanceInput{} } output = &CreateAppInstanceOutput{} req = c.newRequest(op, input, output) return } // CreateAppInstance API operation for Amazon Chime SDK Identity. // // Creates an Amazon Chime SDK messaging AppInstance under an AWS account. Only // SDK messaging customers use this API. CreateAppInstance supports idempotency // behavior as described in the AWS API Standard. // // identity // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime SDK Identity's // API operation CreateAppInstance for usage and error information. // // Returned Error Types: // * BadRequestException // The input parameters don't match the service's restrictions. // // * ConflictException // The request could not be processed because of conflict in the current state // of the resource. // // * ForbiddenException // The client is permanently forbidden from making the request. // // * ResourceLimitExceededException // The request exceeds the resource limit. // // * ThrottledClientException // The client exceeded its request rate limit. // // * UnauthorizedClientException // The client is not currently authorized to make the request. // // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/CreateAppInstance func (c *ChimeSDKIdentity) CreateAppInstance(input *CreateAppInstanceInput) (*CreateAppInstanceOutput, error) { req, out := c.CreateAppInstanceRequest(input) return out, req.Send() } // CreateAppInstanceWithContext is the same as CreateAppInstance with the addition of // the ability to pass a context and additional request options. // // See CreateAppInstance for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ChimeSDKIdentity) CreateAppInstanceWithContext(ctx aws.Context, input *CreateAppInstanceInput, opts ...request.Option) (*CreateAppInstanceOutput, error) { req, out := c.CreateAppInstanceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateAppInstanceAdmin = "CreateAppInstanceAdmin" // CreateAppInstanceAdminRequest generates a "aws/request.Request" representing the // client's request for the CreateAppInstanceAdmin operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateAppInstanceAdmin for more information on using the CreateAppInstanceAdmin // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateAppInstanceAdminRequest method. // req, resp := client.CreateAppInstanceAdminRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/CreateAppInstanceAdmin func (c *ChimeSDKIdentity) CreateAppInstanceAdminRequest(input *CreateAppInstanceAdminInput) (req *request.Request, output *CreateAppInstanceAdminOutput) { op := &request.Operation{ Name: opCreateAppInstanceAdmin, HTTPMethod: "POST", HTTPPath: "/app-instances/{appInstanceArn}/admins", } if input == nil { input = &CreateAppInstanceAdminInput{} } output = &CreateAppInstanceAdminOutput{} req = c.newRequest(op, input, output) return } // CreateAppInstanceAdmin API operation for Amazon Chime SDK Identity. // // Promotes an AppInstanceUser to an AppInstanceAdmin. The promoted user can // perform the following actions. // // * ChannelModerator actions across all channels in the AppInstance. // // * DeleteChannelMessage actions. // // Only an AppInstanceUser can be promoted to an AppInstanceAdmin role. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime SDK Identity's // API operation CreateAppInstanceAdmin for usage and error information. // // Returned Error Types: // * BadRequestException // The input parameters don't match the service's restrictions. // // * ConflictException // The request could not be processed because of conflict in the current state // of the resource. // // * ForbiddenException // The client is permanently forbidden from making the request. // // * ResourceLimitExceededException // The request exceeds the resource limit. // // * ThrottledClientException // The client exceeded its request rate limit. // // * UnauthorizedClientException // The client is not currently authorized to make the request. // // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/CreateAppInstanceAdmin func (c *ChimeSDKIdentity) CreateAppInstanceAdmin(input *CreateAppInstanceAdminInput) (*CreateAppInstanceAdminOutput, error) { req, out := c.CreateAppInstanceAdminRequest(input) return out, req.Send() } // CreateAppInstanceAdminWithContext is the same as CreateAppInstanceAdmin with the addition of // the ability to pass a context and additional request options. // // See CreateAppInstanceAdmin for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ChimeSDKIdentity) CreateAppInstanceAdminWithContext(ctx aws.Context, input *CreateAppInstanceAdminInput, opts ...request.Option) (*CreateAppInstanceAdminOutput, error) { req, out := c.CreateAppInstanceAdminRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateAppInstanceUser = "CreateAppInstanceUser" // CreateAppInstanceUserRequest generates a "aws/request.Request" representing the // client's request for the CreateAppInstanceUser operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateAppInstanceUser for more information on using the CreateAppInstanceUser // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateAppInstanceUserRequest method. // req, resp := client.CreateAppInstanceUserRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/CreateAppInstanceUser func (c *ChimeSDKIdentity) CreateAppInstanceUserRequest(input *CreateAppInstanceUserInput) (req *request.Request, output *CreateAppInstanceUserOutput) { op := &request.Operation{ Name: opCreateAppInstanceUser, HTTPMethod: "POST", HTTPPath: "/app-instance-users", } if input == nil { input = &CreateAppInstanceUserInput{} } output = &CreateAppInstanceUserOutput{} req = c.newRequest(op, input, output) return } // CreateAppInstanceUser API operation for Amazon Chime SDK Identity. // // Creates a user under an Amazon Chime AppInstance. The request consists of // a unique appInstanceUserId and Name for that user. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime SDK Identity's // API operation CreateAppInstanceUser for usage and error information. // // Returned Error Types: // * BadRequestException // The input parameters don't match the service's restrictions. // // * ConflictException // The request could not be processed because of conflict in the current state // of the resource. // // * ForbiddenException // The client is permanently forbidden from making the request. // // * ResourceLimitExceededException // The request exceeds the resource limit. // // * ThrottledClientException // The client exceeded its request rate limit. // // * UnauthorizedClientException // The client is not currently authorized to make the request. // // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/CreateAppInstanceUser func (c *ChimeSDKIdentity) CreateAppInstanceUser(input *CreateAppInstanceUserInput) (*CreateAppInstanceUserOutput, error) { req, out := c.CreateAppInstanceUserRequest(input) return out, req.Send() } // CreateAppInstanceUserWithContext is the same as CreateAppInstanceUser with the addition of // the ability to pass a context and additional request options. // // See CreateAppInstanceUser for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ChimeSDKIdentity) CreateAppInstanceUserWithContext(ctx aws.Context, input *CreateAppInstanceUserInput, opts ...request.Option) (*CreateAppInstanceUserOutput, error) { req, out := c.CreateAppInstanceUserRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteAppInstance = "DeleteAppInstance" // DeleteAppInstanceRequest generates a "aws/request.Request" representing the // client's request for the DeleteAppInstance operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteAppInstance for more information on using the DeleteAppInstance // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteAppInstanceRequest method. // req, resp := client.DeleteAppInstanceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/DeleteAppInstance func (c *ChimeSDKIdentity) DeleteAppInstanceRequest(input *DeleteAppInstanceInput) (req *request.Request, output *DeleteAppInstanceOutput) { op := &request.Operation{ Name: opDeleteAppInstance, HTTPMethod: "DELETE", HTTPPath: "/app-instances/{appInstanceArn}", } if input == nil { input = &DeleteAppInstanceInput{} } output = &DeleteAppInstanceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteAppInstance API operation for Amazon Chime SDK Identity. // // Deletes an AppInstance and all associated data asynchronously. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime SDK Identity's // API operation DeleteAppInstance for usage and error information. // // Returned Error Types: // * BadRequestException // The input parameters don't match the service's restrictions. // // * ForbiddenException // The client is permanently forbidden from making the request. // // * ResourceLimitExceededException // The request exceeds the resource limit. // // * ThrottledClientException // The client exceeded its request rate limit. // // * UnauthorizedClientException // The client is not currently authorized to make the request. // // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/DeleteAppInstance func (c *ChimeSDKIdentity) DeleteAppInstance(input *DeleteAppInstanceInput) (*DeleteAppInstanceOutput, error) { req, out := c.DeleteAppInstanceRequest(input) return out, req.Send() } // DeleteAppInstanceWithContext is the same as DeleteAppInstance with the addition of // the ability to pass a context and additional request options. // // See DeleteAppInstance for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ChimeSDKIdentity) DeleteAppInstanceWithContext(ctx aws.Context, input *DeleteAppInstanceInput, opts ...request.Option) (*DeleteAppInstanceOutput, error) { req, out := c.DeleteAppInstanceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteAppInstanceAdmin = "DeleteAppInstanceAdmin" // DeleteAppInstanceAdminRequest generates a "aws/request.Request" representing the // client's request for the DeleteAppInstanceAdmin operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteAppInstanceAdmin for more information on using the DeleteAppInstanceAdmin // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteAppInstanceAdminRequest method. // req, resp := client.DeleteAppInstanceAdminRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/DeleteAppInstanceAdmin func (c *ChimeSDKIdentity) DeleteAppInstanceAdminRequest(input *DeleteAppInstanceAdminInput) (req *request.Request, output *DeleteAppInstanceAdminOutput) { op := &request.Operation{ Name: opDeleteAppInstanceAdmin, HTTPMethod: "DELETE", HTTPPath: "/app-instances/{appInstanceArn}/admins/{appInstanceAdminArn}", } if input == nil { input = &DeleteAppInstanceAdminInput{} } output = &DeleteAppInstanceAdminOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteAppInstanceAdmin API operation for Amazon Chime SDK Identity. // // Demotes an AppInstanceAdmin to an AppInstanceUser. This action does not delete // the user. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime SDK Identity's // API operation DeleteAppInstanceAdmin for usage and error information. // // Returned Error Types: // * BadRequestException // The input parameters don't match the service's restrictions. // // * ConflictException // The request could not be processed because of conflict in the current state // of the resource. // // * ForbiddenException // The client is permanently forbidden from making the request. // // * ResourceLimitExceededException // The request exceeds the resource limit. // // * ThrottledClientException // The client exceeded its request rate limit. // // * UnauthorizedClientException // The client is not currently authorized to make the request. // // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/DeleteAppInstanceAdmin func (c *ChimeSDKIdentity) DeleteAppInstanceAdmin(input *DeleteAppInstanceAdminInput) (*DeleteAppInstanceAdminOutput, error) { req, out := c.DeleteAppInstanceAdminRequest(input) return out, req.Send() } // DeleteAppInstanceAdminWithContext is the same as DeleteAppInstanceAdmin with the addition of // the ability to pass a context and additional request options. // // See DeleteAppInstanceAdmin for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ChimeSDKIdentity) DeleteAppInstanceAdminWithContext(ctx aws.Context, input *DeleteAppInstanceAdminInput, opts ...request.Option) (*DeleteAppInstanceAdminOutput, error) { req, out := c.DeleteAppInstanceAdminRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteAppInstanceUser = "DeleteAppInstanceUser" // DeleteAppInstanceUserRequest generates a "aws/request.Request" representing the // client's request for the DeleteAppInstanceUser operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteAppInstanceUser for more information on using the DeleteAppInstanceUser // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteAppInstanceUserRequest method. // req, resp := client.DeleteAppInstanceUserRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/DeleteAppInstanceUser func (c *ChimeSDKIdentity) DeleteAppInstanceUserRequest(input *DeleteAppInstanceUserInput) (req *request.Request, output *DeleteAppInstanceUserOutput) { op := &request.Operation{ Name: opDeleteAppInstanceUser, HTTPMethod: "DELETE", HTTPPath: "/app-instance-users/{appInstanceUserArn}", } if input == nil { input = &DeleteAppInstanceUserInput{} } output = &DeleteAppInstanceUserOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteAppInstanceUser API operation for Amazon Chime SDK Identity. // // Deletes an AppInstanceUser. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime SDK Identity's // API operation DeleteAppInstanceUser for usage and error information. // // Returned Error Types: // * BadRequestException // The input parameters don't match the service's restrictions. // // * ConflictException // The request could not be processed because of conflict in the current state // of the resource. // // * ForbiddenException // The client is permanently forbidden from making the request. // // * ResourceLimitExceededException // The request exceeds the resource limit. // // * ThrottledClientException // The client exceeded its request rate limit. // // * UnauthorizedClientException // The client is not currently authorized to make the request. // // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/DeleteAppInstanceUser func (c *ChimeSDKIdentity) DeleteAppInstanceUser(input *DeleteAppInstanceUserInput) (*DeleteAppInstanceUserOutput, error) { req, out := c.DeleteAppInstanceUserRequest(input) return out, req.Send() } // DeleteAppInstanceUserWithContext is the same as DeleteAppInstanceUser with the addition of // the ability to pass a context and additional request options. // // See DeleteAppInstanceUser for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ChimeSDKIdentity) DeleteAppInstanceUserWithContext(ctx aws.Context, input *DeleteAppInstanceUserInput, opts ...request.Option) (*DeleteAppInstanceUserOutput, error) { req, out := c.DeleteAppInstanceUserRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeAppInstance = "DescribeAppInstance" // DescribeAppInstanceRequest generates a "aws/request.Request" representing the // client's request for the DescribeAppInstance operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeAppInstance for more information on using the DescribeAppInstance // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeAppInstanceRequest method. // req, resp := client.DescribeAppInstanceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/DescribeAppInstance func (c *ChimeSDKIdentity) DescribeAppInstanceRequest(input *DescribeAppInstanceInput) (req *request.Request, output *DescribeAppInstanceOutput) { op := &request.Operation{ Name: opDescribeAppInstance, HTTPMethod: "GET", HTTPPath: "/app-instances/{appInstanceArn}", } if input == nil { input = &DescribeAppInstanceInput{} } output = &DescribeAppInstanceOutput{} req = c.newRequest(op, input, output) return } // DescribeAppInstance API operation for Amazon Chime SDK Identity. // // Returns the full details of an AppInstance. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime SDK Identity's // API operation DescribeAppInstance for usage and error information. // // Returned Error Types: // * BadRequestException // The input parameters don't match the service's restrictions. // // * ForbiddenException // The client is permanently forbidden from making the request. // // * ThrottledClientException // The client exceeded its request rate limit. // // * UnauthorizedClientException // The client is not currently authorized to make the request. // // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/DescribeAppInstance func (c *ChimeSDKIdentity) DescribeAppInstance(input *DescribeAppInstanceInput) (*DescribeAppInstanceOutput, error) { req, out := c.DescribeAppInstanceRequest(input) return out, req.Send() } // DescribeAppInstanceWithContext is the same as DescribeAppInstance with the addition of // the ability to pass a context and additional request options. // // See DescribeAppInstance for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ChimeSDKIdentity) DescribeAppInstanceWithContext(ctx aws.Context, input *DescribeAppInstanceInput, opts ...request.Option) (*DescribeAppInstanceOutput, error) { req, out := c.DescribeAppInstanceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeAppInstanceAdmin = "DescribeAppInstanceAdmin" // DescribeAppInstanceAdminRequest generates a "aws/request.Request" representing the // client's request for the DescribeAppInstanceAdmin operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeAppInstanceAdmin for more information on using the DescribeAppInstanceAdmin // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeAppInstanceAdminRequest method. // req, resp := client.DescribeAppInstanceAdminRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/DescribeAppInstanceAdmin func (c *ChimeSDKIdentity) DescribeAppInstanceAdminRequest(input *DescribeAppInstanceAdminInput) (req *request.Request, output *DescribeAppInstanceAdminOutput) { op := &request.Operation{ Name: opDescribeAppInstanceAdmin, HTTPMethod: "GET", HTTPPath: "/app-instances/{appInstanceArn}/admins/{appInstanceAdminArn}", } if input == nil { input = &DescribeAppInstanceAdminInput{} } output = &DescribeAppInstanceAdminOutput{} req = c.newRequest(op, input, output) return } // DescribeAppInstanceAdmin API operation for Amazon Chime SDK Identity. // // Returns the full details of an AppInstanceAdmin. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime SDK Identity's // API operation DescribeAppInstanceAdmin for usage and error information. // // Returned Error Types: // * BadRequestException // The input parameters don't match the service's restrictions. // // * ForbiddenException // The client is permanently forbidden from making the request. // // * ThrottledClientException // The client exceeded its request rate limit. // // * UnauthorizedClientException // The client is not currently authorized to make the request. // // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/DescribeAppInstanceAdmin func (c *ChimeSDKIdentity) DescribeAppInstanceAdmin(input *DescribeAppInstanceAdminInput) (*DescribeAppInstanceAdminOutput, error) { req, out := c.DescribeAppInstanceAdminRequest(input) return out, req.Send() } // DescribeAppInstanceAdminWithContext is the same as DescribeAppInstanceAdmin with the addition of // the ability to pass a context and additional request options. // // See DescribeAppInstanceAdmin for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ChimeSDKIdentity) DescribeAppInstanceAdminWithContext(ctx aws.Context, input *DescribeAppInstanceAdminInput, opts ...request.Option) (*DescribeAppInstanceAdminOutput, error) { req, out := c.DescribeAppInstanceAdminRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeAppInstanceUser = "DescribeAppInstanceUser" // DescribeAppInstanceUserRequest generates a "aws/request.Request" representing the // client's request for the DescribeAppInstanceUser operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeAppInstanceUser for more information on using the DescribeAppInstanceUser // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeAppInstanceUserRequest method. // req, resp := client.DescribeAppInstanceUserRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/DescribeAppInstanceUser func (c *ChimeSDKIdentity) DescribeAppInstanceUserRequest(input *DescribeAppInstanceUserInput) (req *request.Request, output *DescribeAppInstanceUserOutput) { op := &request.Operation{ Name: opDescribeAppInstanceUser, HTTPMethod: "GET", HTTPPath: "/app-instance-users/{appInstanceUserArn}", } if input == nil { input = &DescribeAppInstanceUserInput{} } output = &DescribeAppInstanceUserOutput{} req = c.newRequest(op, input, output) return } // DescribeAppInstanceUser API operation for Amazon Chime SDK Identity. // // Returns the full details of an AppInstanceUser. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime SDK Identity's // API operation DescribeAppInstanceUser for usage and error information. // // Returned Error Types: // * BadRequestException // The input parameters don't match the service's restrictions. // // * ForbiddenException // The client is permanently forbidden from making the request. // // * ThrottledClientException // The client exceeded its request rate limit. // // * UnauthorizedClientException // The client is not currently authorized to make the request. // // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/DescribeAppInstanceUser func (c *ChimeSDKIdentity) DescribeAppInstanceUser(input *DescribeAppInstanceUserInput) (*DescribeAppInstanceUserOutput, error) { req, out := c.DescribeAppInstanceUserRequest(input) return out, req.Send() } // DescribeAppInstanceUserWithContext is the same as DescribeAppInstanceUser with the addition of // the ability to pass a context and additional request options. // // See DescribeAppInstanceUser for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ChimeSDKIdentity) DescribeAppInstanceUserWithContext(ctx aws.Context, input *DescribeAppInstanceUserInput, opts ...request.Option) (*DescribeAppInstanceUserOutput, error) { req, out := c.DescribeAppInstanceUserRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetAppInstanceRetentionSettings = "GetAppInstanceRetentionSettings" // GetAppInstanceRetentionSettingsRequest generates a "aws/request.Request" representing the // client's request for the GetAppInstanceRetentionSettings operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetAppInstanceRetentionSettings for more information on using the GetAppInstanceRetentionSettings // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetAppInstanceRetentionSettingsRequest method. // req, resp := client.GetAppInstanceRetentionSettingsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/GetAppInstanceRetentionSettings func (c *ChimeSDKIdentity) GetAppInstanceRetentionSettingsRequest(input *GetAppInstanceRetentionSettingsInput) (req *request.Request, output *GetAppInstanceRetentionSettingsOutput) { op := &request.Operation{ Name: opGetAppInstanceRetentionSettings, HTTPMethod: "GET", HTTPPath: "/app-instances/{appInstanceArn}/retention-settings", } if input == nil { input = &GetAppInstanceRetentionSettingsInput{} } output = &GetAppInstanceRetentionSettingsOutput{} req = c.newRequest(op, input, output) return } // GetAppInstanceRetentionSettings API operation for Amazon Chime SDK Identity. // // Gets the retention settings for an AppInstance. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime SDK Identity's // API operation GetAppInstanceRetentionSettings for usage and error information. // // Returned Error Types: // * BadRequestException // The input parameters don't match the service's restrictions. // // * ForbiddenException // The client is permanently forbidden from making the request. // // * ThrottledClientException // The client exceeded its request rate limit. // // * UnauthorizedClientException // The client is not currently authorized to make the request. // // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/GetAppInstanceRetentionSettings func (c *ChimeSDKIdentity) GetAppInstanceRetentionSettings(input *GetAppInstanceRetentionSettingsInput) (*GetAppInstanceRetentionSettingsOutput, error) { req, out := c.GetAppInstanceRetentionSettingsRequest(input) return out, req.Send() } // GetAppInstanceRetentionSettingsWithContext is the same as GetAppInstanceRetentionSettings with the addition of // the ability to pass a context and additional request options. // // See GetAppInstanceRetentionSettings for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ChimeSDKIdentity) GetAppInstanceRetentionSettingsWithContext(ctx aws.Context, input *GetAppInstanceRetentionSettingsInput, opts ...request.Option) (*GetAppInstanceRetentionSettingsOutput, error) { req, out := c.GetAppInstanceRetentionSettingsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opListAppInstanceAdmins = "ListAppInstanceAdmins" // ListAppInstanceAdminsRequest generates a "aws/request.Request" representing the // client's request for the ListAppInstanceAdmins operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListAppInstanceAdmins for more information on using the ListAppInstanceAdmins // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListAppInstanceAdminsRequest method. // req, resp := client.ListAppInstanceAdminsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/ListAppInstanceAdmins func (c *ChimeSDKIdentity) ListAppInstanceAdminsRequest(input *ListAppInstanceAdminsInput) (req *request.Request, output *ListAppInstanceAdminsOutput) { op := &request.Operation{ Name: opListAppInstanceAdmins, HTTPMethod: "GET", HTTPPath: "/app-instances/{appInstanceArn}/admins", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListAppInstanceAdminsInput{} } output = &ListAppInstanceAdminsOutput{} req = c.newRequest(op, input, output) return } // ListAppInstanceAdmins API operation for Amazon Chime SDK Identity. // // Returns a list of the administrators in the AppInstance. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime SDK Identity's // API operation ListAppInstanceAdmins for usage and error information. // // Returned Error Types: // * BadRequestException // The input parameters don't match the service's restrictions. // // * ForbiddenException // The client is permanently forbidden from making the request. // // * ResourceLimitExceededException // The request exceeds the resource limit. // // * ThrottledClientException // The client exceeded its request rate limit. // // * UnauthorizedClientException // The client is not currently authorized to make the request. // // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/ListAppInstanceAdmins func (c *ChimeSDKIdentity) ListAppInstanceAdmins(input *ListAppInstanceAdminsInput) (*ListAppInstanceAdminsOutput, error) { req, out := c.ListAppInstanceAdminsRequest(input) return out, req.Send() } // ListAppInstanceAdminsWithContext is the same as ListAppInstanceAdmins with the addition of // the ability to pass a context and additional request options. // // See ListAppInstanceAdmins for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ChimeSDKIdentity) ListAppInstanceAdminsWithContext(ctx aws.Context, input *ListAppInstanceAdminsInput, opts ...request.Option) (*ListAppInstanceAdminsOutput, error) { req, out := c.ListAppInstanceAdminsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListAppInstanceAdminsPages iterates over the pages of a ListAppInstanceAdmins operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListAppInstanceAdmins method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListAppInstanceAdmins operation. // pageNum := 0 // err := client.ListAppInstanceAdminsPages(params, // func(page *chimesdkidentity.ListAppInstanceAdminsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *ChimeSDKIdentity) ListAppInstanceAdminsPages(input *ListAppInstanceAdminsInput, fn func(*ListAppInstanceAdminsOutput, bool) bool) error { return c.ListAppInstanceAdminsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListAppInstanceAdminsPagesWithContext same as ListAppInstanceAdminsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ChimeSDKIdentity) ListAppInstanceAdminsPagesWithContext(ctx aws.Context, input *ListAppInstanceAdminsInput, fn func(*ListAppInstanceAdminsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListAppInstanceAdminsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListAppInstanceAdminsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListAppInstanceAdminsOutput), !p.HasNextPage()) { break } } return p.Err() } const opListAppInstanceUsers = "ListAppInstanceUsers" // ListAppInstanceUsersRequest generates a "aws/request.Request" representing the // client's request for the ListAppInstanceUsers operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListAppInstanceUsers for more information on using the ListAppInstanceUsers // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListAppInstanceUsersRequest method. // req, resp := client.ListAppInstanceUsersRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/ListAppInstanceUsers func (c *ChimeSDKIdentity) ListAppInstanceUsersRequest(input *ListAppInstanceUsersInput) (req *request.Request, output *ListAppInstanceUsersOutput) { op := &request.Operation{ Name: opListAppInstanceUsers, HTTPMethod: "GET", HTTPPath: "/app-instance-users", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListAppInstanceUsersInput{} } output = &ListAppInstanceUsersOutput{} req = c.newRequest(op, input, output) return } // ListAppInstanceUsers API operation for Amazon Chime SDK Identity. // // List all AppInstanceUsers created under a single AppInstance. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime SDK Identity's // API operation ListAppInstanceUsers for usage and error information. // // Returned Error Types: // * BadRequestException // The input parameters don't match the service's restrictions. // // * ForbiddenException // The client is permanently forbidden from making the request. // // * ThrottledClientException // The client exceeded its request rate limit. // // * UnauthorizedClientException // The client is not currently authorized to make the request. // // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/ListAppInstanceUsers func (c *ChimeSDKIdentity) ListAppInstanceUsers(input *ListAppInstanceUsersInput) (*ListAppInstanceUsersOutput, error) { req, out := c.ListAppInstanceUsersRequest(input) return out, req.Send() } // ListAppInstanceUsersWithContext is the same as ListAppInstanceUsers with the addition of // the ability to pass a context and additional request options. // // See ListAppInstanceUsers for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ChimeSDKIdentity) ListAppInstanceUsersWithContext(ctx aws.Context, input *ListAppInstanceUsersInput, opts ...request.Option) (*ListAppInstanceUsersOutput, error) { req, out := c.ListAppInstanceUsersRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListAppInstanceUsersPages iterates over the pages of a ListAppInstanceUsers operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListAppInstanceUsers method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListAppInstanceUsers operation. // pageNum := 0 // err := client.ListAppInstanceUsersPages(params, // func(page *chimesdkidentity.ListAppInstanceUsersOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *ChimeSDKIdentity) ListAppInstanceUsersPages(input *ListAppInstanceUsersInput, fn func(*ListAppInstanceUsersOutput, bool) bool) error { return c.ListAppInstanceUsersPagesWithContext(aws.BackgroundContext(), input, fn) } // ListAppInstanceUsersPagesWithContext same as ListAppInstanceUsersPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ChimeSDKIdentity) ListAppInstanceUsersPagesWithContext(ctx aws.Context, input *ListAppInstanceUsersInput, fn func(*ListAppInstanceUsersOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListAppInstanceUsersInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListAppInstanceUsersRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListAppInstanceUsersOutput), !p.HasNextPage()) { break } } return p.Err() } const opListAppInstances = "ListAppInstances" // ListAppInstancesRequest generates a "aws/request.Request" representing the // client's request for the ListAppInstances operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListAppInstances for more information on using the ListAppInstances // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListAppInstancesRequest method. // req, resp := client.ListAppInstancesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/ListAppInstances func (c *ChimeSDKIdentity) ListAppInstancesRequest(input *ListAppInstancesInput) (req *request.Request, output *ListAppInstancesOutput) { op := &request.Operation{ Name: opListAppInstances, HTTPMethod: "GET", HTTPPath: "/app-instances", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, } if input == nil { input = &ListAppInstancesInput{} } output = &ListAppInstancesOutput{} req = c.newRequest(op, input, output) return } // ListAppInstances API operation for Amazon Chime SDK Identity. // // Lists all Amazon Chime AppInstances created under a single AWS account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime SDK Identity's // API operation ListAppInstances for usage and error information. // // Returned Error Types: // * BadRequestException // The input parameters don't match the service's restrictions. // // * ForbiddenException // The client is permanently forbidden from making the request. // // * ThrottledClientException // The client exceeded its request rate limit. // // * UnauthorizedClientException // The client is not currently authorized to make the request. // // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/ListAppInstances func (c *ChimeSDKIdentity) ListAppInstances(input *ListAppInstancesInput) (*ListAppInstancesOutput, error) { req, out := c.ListAppInstancesRequest(input) return out, req.Send() } // ListAppInstancesWithContext is the same as ListAppInstances with the addition of // the ability to pass a context and additional request options. // // See ListAppInstances for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ChimeSDKIdentity) ListAppInstancesWithContext(ctx aws.Context, input *ListAppInstancesInput, opts ...request.Option) (*ListAppInstancesOutput, error) { req, out := c.ListAppInstancesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListAppInstancesPages iterates over the pages of a ListAppInstances operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListAppInstances method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListAppInstances operation. // pageNum := 0 // err := client.ListAppInstancesPages(params, // func(page *chimesdkidentity.ListAppInstancesOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *ChimeSDKIdentity) ListAppInstancesPages(input *ListAppInstancesInput, fn func(*ListAppInstancesOutput, bool) bool) error { return c.ListAppInstancesPagesWithContext(aws.BackgroundContext(), input, fn) } // ListAppInstancesPagesWithContext same as ListAppInstancesPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ChimeSDKIdentity) ListAppInstancesPagesWithContext(ctx aws.Context, input *ListAppInstancesInput, fn func(*ListAppInstancesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListAppInstancesInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListAppInstancesRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListAppInstancesOutput), !p.HasNextPage()) { break } } return p.Err() } const opPutAppInstanceRetentionSettings = "PutAppInstanceRetentionSettings" // PutAppInstanceRetentionSettingsRequest generates a "aws/request.Request" representing the // client's request for the PutAppInstanceRetentionSettings operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See PutAppInstanceRetentionSettings for more information on using the PutAppInstanceRetentionSettings // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the PutAppInstanceRetentionSettingsRequest method. // req, resp := client.PutAppInstanceRetentionSettingsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/PutAppInstanceRetentionSettings func (c *ChimeSDKIdentity) PutAppInstanceRetentionSettingsRequest(input *PutAppInstanceRetentionSettingsInput) (req *request.Request, output *PutAppInstanceRetentionSettingsOutput) { op := &request.Operation{ Name: opPutAppInstanceRetentionSettings, HTTPMethod: "PUT", HTTPPath: "/app-instances/{appInstanceArn}/retention-settings", } if input == nil { input = &PutAppInstanceRetentionSettingsInput{} } output = &PutAppInstanceRetentionSettingsOutput{} req = c.newRequest(op, input, output) return } // PutAppInstanceRetentionSettings API operation for Amazon Chime SDK Identity. // // Sets the amount of time in days that a given AppInstance retains data. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime SDK Identity's // API operation PutAppInstanceRetentionSettings for usage and error information. // // Returned Error Types: // * BadRequestException // The input parameters don't match the service's restrictions. // // * ForbiddenException // The client is permanently forbidden from making the request. // // * ThrottledClientException // The client exceeded its request rate limit. // // * UnauthorizedClientException // The client is not currently authorized to make the request. // // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/PutAppInstanceRetentionSettings func (c *ChimeSDKIdentity) PutAppInstanceRetentionSettings(input *PutAppInstanceRetentionSettingsInput) (*PutAppInstanceRetentionSettingsOutput, error) { req, out := c.PutAppInstanceRetentionSettingsRequest(input) return out, req.Send() } // PutAppInstanceRetentionSettingsWithContext is the same as PutAppInstanceRetentionSettings with the addition of // the ability to pass a context and additional request options. // // See PutAppInstanceRetentionSettings for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ChimeSDKIdentity) PutAppInstanceRetentionSettingsWithContext(ctx aws.Context, input *PutAppInstanceRetentionSettingsInput, opts ...request.Option) (*PutAppInstanceRetentionSettingsOutput, error) { req, out := c.PutAppInstanceRetentionSettingsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateAppInstance = "UpdateAppInstance" // UpdateAppInstanceRequest generates a "aws/request.Request" representing the // client's request for the UpdateAppInstance operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateAppInstance for more information on using the UpdateAppInstance // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateAppInstanceRequest method. // req, resp := client.UpdateAppInstanceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/UpdateAppInstance func (c *ChimeSDKIdentity) UpdateAppInstanceRequest(input *UpdateAppInstanceInput) (req *request.Request, output *UpdateAppInstanceOutput) { op := &request.Operation{ Name: opUpdateAppInstance, HTTPMethod: "PUT", HTTPPath: "/app-instances/{appInstanceArn}", } if input == nil { input = &UpdateAppInstanceInput{} } output = &UpdateAppInstanceOutput{} req = c.newRequest(op, input, output) return } // UpdateAppInstance API operation for Amazon Chime SDK Identity. // // Updates AppInstance metadata. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime SDK Identity's // API operation UpdateAppInstance for usage and error information. // // Returned Error Types: // * BadRequestException // The input parameters don't match the service's restrictions. // // * ConflictException // The request could not be processed because of conflict in the current state // of the resource. // // * ForbiddenException // The client is permanently forbidden from making the request. // // * ThrottledClientException // The client exceeded its request rate limit. // // * UnauthorizedClientException // The client is not currently authorized to make the request. // // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/UpdateAppInstance func (c *ChimeSDKIdentity) UpdateAppInstance(input *UpdateAppInstanceInput) (*UpdateAppInstanceOutput, error) { req, out := c.UpdateAppInstanceRequest(input) return out, req.Send() } // UpdateAppInstanceWithContext is the same as UpdateAppInstance with the addition of // the ability to pass a context and additional request options. // // See UpdateAppInstance for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ChimeSDKIdentity) UpdateAppInstanceWithContext(ctx aws.Context, input *UpdateAppInstanceInput, opts ...request.Option) (*UpdateAppInstanceOutput, error) { req, out := c.UpdateAppInstanceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateAppInstanceUser = "UpdateAppInstanceUser" // UpdateAppInstanceUserRequest generates a "aws/request.Request" representing the // client's request for the UpdateAppInstanceUser operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateAppInstanceUser for more information on using the UpdateAppInstanceUser // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateAppInstanceUserRequest method. // req, resp := client.UpdateAppInstanceUserRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/UpdateAppInstanceUser func (c *ChimeSDKIdentity) UpdateAppInstanceUserRequest(input *UpdateAppInstanceUserInput) (req *request.Request, output *UpdateAppInstanceUserOutput) { op := &request.Operation{ Name: opUpdateAppInstanceUser, HTTPMethod: "PUT", HTTPPath: "/app-instance-users/{appInstanceUserArn}", } if input == nil { input = &UpdateAppInstanceUserInput{} } output = &UpdateAppInstanceUserOutput{} req = c.newRequest(op, input, output) return } // UpdateAppInstanceUser API operation for Amazon Chime SDK Identity. // // Updates the details of an AppInstanceUser. You can update names and metadata. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime SDK Identity's // API operation UpdateAppInstanceUser for usage and error information. // // Returned Error Types: // * BadRequestException // The input parameters don't match the service's restrictions. // // * ConflictException // The request could not be processed because of conflict in the current state // of the resource. // // * ForbiddenException // The client is permanently forbidden from making the request. // // * ResourceLimitExceededException // The request exceeds the resource limit. // // * ThrottledClientException // The client exceeded its request rate limit. // // * UnauthorizedClientException // The client is not currently authorized to make the request. // // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/UpdateAppInstanceUser func (c *ChimeSDKIdentity) UpdateAppInstanceUser(input *UpdateAppInstanceUserInput) (*UpdateAppInstanceUserOutput, error) { req, out := c.UpdateAppInstanceUserRequest(input) return out, req.Send() } // UpdateAppInstanceUserWithContext is the same as UpdateAppInstanceUser with the addition of // the ability to pass a context and additional request options. // // See UpdateAppInstanceUser for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *ChimeSDKIdentity) UpdateAppInstanceUserWithContext(ctx aws.Context, input *UpdateAppInstanceUserInput, opts ...request.Option) (*UpdateAppInstanceUserOutput, error) { req, out := c.UpdateAppInstanceUserRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // The details of an AppInstance, an instance of an Amazon Chime SDK messaging // application. type AppInstance struct { _ struct{} `type:"structure"` // The ARN of the messaging instance. AppInstanceArn *string `min:"5" type:"string"` // The time at which an AppInstance was created. In epoch milliseconds. CreatedTimestamp *time.Time `type:"timestamp"` // The time an AppInstance was last updated. In epoch milliseconds. LastUpdatedTimestamp *time.Time `type:"timestamp"` // The metadata of an AppInstance. Metadata *string `type:"string" sensitive:"true"` // The name of an AppInstance. Name *string `min:"1" type:"string" sensitive:"true"` } // String returns the string representation func (s AppInstance) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AppInstance) GoString() string { return s.String() } // SetAppInstanceArn sets the AppInstanceArn field's value. func (s *AppInstance) SetAppInstanceArn(v string) *AppInstance { s.AppInstanceArn = &v return s } // SetCreatedTimestamp sets the CreatedTimestamp field's value. func (s *AppInstance) SetCreatedTimestamp(v time.Time) *AppInstance { s.CreatedTimestamp = &v return s } // SetLastUpdatedTimestamp sets the LastUpdatedTimestamp field's value. func (s *AppInstance) SetLastUpdatedTimestamp(v time.Time) *AppInstance { s.LastUpdatedTimestamp = &v return s } // SetMetadata sets the Metadata field's value. func (s *AppInstance) SetMetadata(v string) *AppInstance { s.Metadata = &v return s } // SetName sets the Name field's value. func (s *AppInstance) SetName(v string) *AppInstance { s.Name = &v return s } // The details of an AppInstanceAdmin. type AppInstanceAdmin struct { _ struct{} `type:"structure"` // The AppInstanceAdmin data. Admin *Identity `type:"structure"` // The ARN of the AppInstance for which the user is an administrator. AppInstanceArn *string `min:"5" type:"string"` // The time at which an administrator was created. CreatedTimestamp *time.Time `type:"timestamp"` } // String returns the string representation func (s AppInstanceAdmin) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AppInstanceAdmin) GoString() string { return s.String() } // SetAdmin sets the Admin field's value. func (s *AppInstanceAdmin) SetAdmin(v *Identity) *AppInstanceAdmin { s.Admin = v return s } // SetAppInstanceArn sets the AppInstanceArn field's value. func (s *AppInstanceAdmin) SetAppInstanceArn(v string) *AppInstanceAdmin { s.AppInstanceArn = &v return s } // SetCreatedTimestamp sets the CreatedTimestamp field's value. func (s *AppInstanceAdmin) SetCreatedTimestamp(v time.Time) *AppInstanceAdmin { s.CreatedTimestamp = &v return s } // Summary of the details of an AppInstanceAdmin. type AppInstanceAdminSummary struct { _ struct{} `type:"structure"` // The details of the AppInstanceAdmin. Admin *Identity `type:"structure"` } // String returns the string representation func (s AppInstanceAdminSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AppInstanceAdminSummary) GoString() string { return s.String() } // SetAdmin sets the Admin field's value. func (s *AppInstanceAdminSummary) SetAdmin(v *Identity) *AppInstanceAdminSummary { s.Admin = v return s } // The details of the data-retention settings for an AppInstance. type AppInstanceRetentionSettings struct { _ struct{} `type:"structure"` // The length of time in days to retain the messages in a channel. ChannelRetentionSettings *ChannelRetentionSettings `type:"structure"` } // String returns the string representation func (s AppInstanceRetentionSettings) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AppInstanceRetentionSettings) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *AppInstanceRetentionSettings) Validate() error { invalidParams := request.ErrInvalidParams{Context: "AppInstanceRetentionSettings"} if s.ChannelRetentionSettings != nil { if err := s.ChannelRetentionSettings.Validate(); err != nil { invalidParams.AddNested("ChannelRetentionSettings", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetChannelRetentionSettings sets the ChannelRetentionSettings field's value. func (s *AppInstanceRetentionSettings) SetChannelRetentionSettings(v *ChannelRetentionSettings) *AppInstanceRetentionSettings { s.ChannelRetentionSettings = v return s } // Summary of the data for an AppInstance. type AppInstanceSummary struct { _ struct{} `type:"structure"` // The AppInstance ARN. AppInstanceArn *string `min:"5" type:"string"` // The metadata of the AppInstance. Metadata *string `type:"string" sensitive:"true"` // The name of the AppInstance. Name *string `min:"1" type:"string" sensitive:"true"` } // String returns the string representation func (s AppInstanceSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AppInstanceSummary) GoString() string { return s.String() } // SetAppInstanceArn sets the AppInstanceArn field's value. func (s *AppInstanceSummary) SetAppInstanceArn(v string) *AppInstanceSummary { s.AppInstanceArn = &v return s } // SetMetadata sets the Metadata field's value. func (s *AppInstanceSummary) SetMetadata(v string) *AppInstanceSummary { s.Metadata = &v return s } // SetName sets the Name field's value. func (s *AppInstanceSummary) SetName(v string) *AppInstanceSummary { s.Name = &v return s } // The details of an AppInstanceUser. type AppInstanceUser struct { _ struct{} `type:"structure"` // The ARN of the AppInstanceUser. AppInstanceUserArn *string `min:"5" type:"string"` // The time at which the AppInstanceUser was created. CreatedTimestamp *time.Time `type:"timestamp"` // The time at which the AppInstanceUser was last updated. LastUpdatedTimestamp *time.Time `type:"timestamp"` // The metadata of the AppInstanceUser. Metadata *string `type:"string" sensitive:"true"` // The name of the AppInstanceUser. Name *string `min:"1" type:"string" sensitive:"true"` } // String returns the string representation func (s AppInstanceUser) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AppInstanceUser) GoString() string { return s.String() } // SetAppInstanceUserArn sets the AppInstanceUserArn field's value. func (s *AppInstanceUser) SetAppInstanceUserArn(v string) *AppInstanceUser { s.AppInstanceUserArn = &v return s } // SetCreatedTimestamp sets the CreatedTimestamp field's value. func (s *AppInstanceUser) SetCreatedTimestamp(v time.Time) *AppInstanceUser { s.CreatedTimestamp = &v return s } // SetLastUpdatedTimestamp sets the LastUpdatedTimestamp field's value. func (s *AppInstanceUser) SetLastUpdatedTimestamp(v time.Time) *AppInstanceUser { s.LastUpdatedTimestamp = &v return s } // SetMetadata sets the Metadata field's value. func (s *AppInstanceUser) SetMetadata(v string) *AppInstanceUser { s.Metadata = &v return s } // SetName sets the Name field's value. func (s *AppInstanceUser) SetName(v string) *AppInstanceUser { s.Name = &v return s } // Summary of the details of an AppInstanceUser. type AppInstanceUserSummary struct { _ struct{} `type:"structure"` // The ARN of the AppInstanceUser. AppInstanceUserArn *string `min:"5" type:"string"` // The metadata of the AppInstanceUser. Metadata *string `type:"string" sensitive:"true"` // The name of an AppInstanceUser. Name *string `min:"1" type:"string" sensitive:"true"` } // String returns the string representation func (s AppInstanceUserSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AppInstanceUserSummary) GoString() string { return s.String() } // SetAppInstanceUserArn sets the AppInstanceUserArn field's value. func (s *AppInstanceUserSummary) SetAppInstanceUserArn(v string) *AppInstanceUserSummary { s.AppInstanceUserArn = &v return s } // SetMetadata sets the Metadata field's value. func (s *AppInstanceUserSummary) SetMetadata(v string) *AppInstanceUserSummary { s.Metadata = &v return s } // SetName sets the Name field's value. func (s *AppInstanceUserSummary) SetName(v string) *AppInstanceUserSummary { s.Name = &v return s } // The input parameters don't match the service's restrictions. type BadRequestException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s BadRequestException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s BadRequestException) GoString() string { return s.String() } func newErrorBadRequestException(v protocol.ResponseMetadata) error { return &BadRequestException{ RespMetadata: v, } } // Code returns the exception type name. func (s *BadRequestException) Code() string { return "BadRequestException" } // Message returns the exception's message. func (s *BadRequestException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *BadRequestException) OrigErr() error { return nil } func (s *BadRequestException) Error() string { return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } // Status code returns the HTTP status code for the request's response error. func (s *BadRequestException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *BadRequestException) RequestID() string { return s.RespMetadata.RequestID } // The details of the retention settings for a channel. type ChannelRetentionSettings struct { _ struct{} `type:"structure"` // The time in days to retain the messages in a channel. RetentionDays *int64 `min:"1" type:"integer"` } // String returns the string representation func (s ChannelRetentionSettings) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ChannelRetentionSettings) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ChannelRetentionSettings) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ChannelRetentionSettings"} if s.RetentionDays != nil && *s.RetentionDays < 1 { invalidParams.Add(request.NewErrParamMinValue("RetentionDays", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetRetentionDays sets the RetentionDays field's value. func (s *ChannelRetentionSettings) SetRetentionDays(v int64) *ChannelRetentionSettings { s.RetentionDays = &v return s } // The request could not be processed because of conflict in the current state // of the resource. type ConflictException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s ConflictException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ConflictException) GoString() string { return s.String() } func newErrorConflictException(v protocol.ResponseMetadata) error { return &ConflictException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ConflictException) Code() string { return "ConflictException" } // Message returns the exception's message. func (s *ConflictException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ConflictException) OrigErr() error { return nil } func (s *ConflictException) Error() string { return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } // Status code returns the HTTP status code for the request's response error. func (s *ConflictException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ConflictException) RequestID() string { return s.RespMetadata.RequestID } type CreateAppInstanceAdminInput struct { _ struct{} `type:"structure"` // The ARN of the administrator of the current AppInstance. // // AppInstanceAdminArn is a required field AppInstanceAdminArn *string `min:"5" type:"string" required:"true"` // The ARN of the AppInstance. // // AppInstanceArn is a required field AppInstanceArn *string `location:"uri" locationName:"appInstanceArn" min:"5" type:"string" required:"true"` } // String returns the string representation func (s CreateAppInstanceAdminInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateAppInstanceAdminInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateAppInstanceAdminInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateAppInstanceAdminInput"} if s.AppInstanceAdminArn == nil { invalidParams.Add(request.NewErrParamRequired("AppInstanceAdminArn")) } if s.AppInstanceAdminArn != nil && len(*s.AppInstanceAdminArn) < 5 { invalidParams.Add(request.NewErrParamMinLen("AppInstanceAdminArn", 5)) } if s.AppInstanceArn == nil { invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) } if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAppInstanceAdminArn sets the AppInstanceAdminArn field's value. func (s *CreateAppInstanceAdminInput) SetAppInstanceAdminArn(v string) *CreateAppInstanceAdminInput { s.AppInstanceAdminArn = &v return s } // SetAppInstanceArn sets the AppInstanceArn field's value. func (s *CreateAppInstanceAdminInput) SetAppInstanceArn(v string) *CreateAppInstanceAdminInput { s.AppInstanceArn = &v return s } type CreateAppInstanceAdminOutput struct { _ struct{} `type:"structure"` // The name and ARN of the admin for the AppInstance. AppInstanceAdmin *Identity `type:"structure"` // The ARN of the of the admin for the AppInstance. AppInstanceArn *string `min:"5" type:"string"` } // String returns the string representation func (s CreateAppInstanceAdminOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateAppInstanceAdminOutput) GoString() string { return s.String() } // SetAppInstanceAdmin sets the AppInstanceAdmin field's value. func (s *CreateAppInstanceAdminOutput) SetAppInstanceAdmin(v *Identity) *CreateAppInstanceAdminOutput { s.AppInstanceAdmin = v return s } // SetAppInstanceArn sets the AppInstanceArn field's value. func (s *CreateAppInstanceAdminOutput) SetAppInstanceArn(v string) *CreateAppInstanceAdminOutput { s.AppInstanceArn = &v return s } type CreateAppInstanceInput struct { _ struct{} `type:"structure"` // The ClientRequestToken of the AppInstance. ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true" sensitive:"true"` // The metadata of the AppInstance. Limited to a 1KB string in UTF-8. Metadata *string `type:"string" sensitive:"true"` // The name of the AppInstance. // // Name is a required field Name *string `min:"1" type:"string" required:"true" sensitive:"true"` // Tags assigned to the AppInstanceUser. Tags []*Tag `min:"1" type:"list"` } // String returns the string representation func (s CreateAppInstanceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateAppInstanceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateAppInstanceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateAppInstanceInput"} if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 2 { invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 2)) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if s.Tags != nil && len(s.Tags) < 1 { invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) } if s.Tags != nil { for i, v := range s.Tags { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetClientRequestToken sets the ClientRequestToken field's value. func (s *CreateAppInstanceInput) SetClientRequestToken(v string) *CreateAppInstanceInput { s.ClientRequestToken = &v return s } // SetMetadata sets the Metadata field's value. func (s *CreateAppInstanceInput) SetMetadata(v string) *CreateAppInstanceInput { s.Metadata = &v return s } // SetName sets the Name field's value. func (s *CreateAppInstanceInput) SetName(v string) *CreateAppInstanceInput { s.Name = &v return s } // SetTags sets the Tags field's value. func (s *CreateAppInstanceInput) SetTags(v []*Tag) *CreateAppInstanceInput { s.Tags = v return s } type CreateAppInstanceOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Number (ARN) of the AppInstance. AppInstanceArn *string `min:"5" type:"string"` } // String returns the string representation func (s CreateAppInstanceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateAppInstanceOutput) GoString() string { return s.String() } // SetAppInstanceArn sets the AppInstanceArn field's value. func (s *CreateAppInstanceOutput) SetAppInstanceArn(v string) *CreateAppInstanceOutput { s.AppInstanceArn = &v return s } type CreateAppInstanceUserInput struct { _ struct{} `type:"structure"` // The ARN of the AppInstance request. // // AppInstanceArn is a required field AppInstanceArn *string `min:"5" type:"string" required:"true"` // The user ID of the AppInstance. // // AppInstanceUserId is a required field AppInstanceUserId *string `min:"1" type:"string" required:"true" sensitive:"true"` // The token assigned to the user requesting an AppInstance. ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true" sensitive:"true"` // The request's metadata. Limited to a 1KB string in UTF-8. Metadata *string `type:"string" sensitive:"true"` // The user's name. // // Name is a required field Name *string `min:"1" type:"string" required:"true" sensitive:"true"` // Tags assigned to the AppInstanceUser. Tags []*Tag `min:"1" type:"list"` } // String returns the string representation func (s CreateAppInstanceUserInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateAppInstanceUserInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateAppInstanceUserInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateAppInstanceUserInput"} if s.AppInstanceArn == nil { invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) } if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) } if s.AppInstanceUserId == nil { invalidParams.Add(request.NewErrParamRequired("AppInstanceUserId")) } if s.AppInstanceUserId != nil && len(*s.AppInstanceUserId) < 1 { invalidParams.Add(request.NewErrParamMinLen("AppInstanceUserId", 1)) } if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 2 { invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 2)) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if s.Tags != nil && len(s.Tags) < 1 { invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) } if s.Tags != nil { for i, v := range s.Tags { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAppInstanceArn sets the AppInstanceArn field's value. func (s *CreateAppInstanceUserInput) SetAppInstanceArn(v string) *CreateAppInstanceUserInput { s.AppInstanceArn = &v return s } // SetAppInstanceUserId sets the AppInstanceUserId field's value. func (s *CreateAppInstanceUserInput) SetAppInstanceUserId(v string) *CreateAppInstanceUserInput { s.AppInstanceUserId = &v return s } // SetClientRequestToken sets the ClientRequestToken field's value. func (s *CreateAppInstanceUserInput) SetClientRequestToken(v string) *CreateAppInstanceUserInput { s.ClientRequestToken = &v return s } // SetMetadata sets the Metadata field's value. func (s *CreateAppInstanceUserInput) SetMetadata(v string) *CreateAppInstanceUserInput { s.Metadata = &v return s } // SetName sets the Name field's value. func (s *CreateAppInstanceUserInput) SetName(v string) *CreateAppInstanceUserInput { s.Name = &v return s } // SetTags sets the Tags field's value. func (s *CreateAppInstanceUserInput) SetTags(v []*Tag) *CreateAppInstanceUserInput { s.Tags = v return s } type CreateAppInstanceUserOutput struct { _ struct{} `type:"structure"` // The user's ARN. AppInstanceUserArn *string `min:"5" type:"string"` } // String returns the string representation func (s CreateAppInstanceUserOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateAppInstanceUserOutput) GoString() string { return s.String() } // SetAppInstanceUserArn sets the AppInstanceUserArn field's value. func (s *CreateAppInstanceUserOutput) SetAppInstanceUserArn(v string) *CreateAppInstanceUserOutput { s.AppInstanceUserArn = &v return s } type DeleteAppInstanceAdminInput struct { _ struct{} `type:"structure"` // The ARN of the AppInstance's administrator. // // AppInstanceAdminArn is a required field AppInstanceAdminArn *string `location:"uri" locationName:"appInstanceAdminArn" min:"5" type:"string" required:"true"` // The ARN of the AppInstance. // // AppInstanceArn is a required field AppInstanceArn *string `location:"uri" locationName:"appInstanceArn" min:"5" type:"string" required:"true"` } // String returns the string representation func (s DeleteAppInstanceAdminInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteAppInstanceAdminInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteAppInstanceAdminInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteAppInstanceAdminInput"} if s.AppInstanceAdminArn == nil { invalidParams.Add(request.NewErrParamRequired("AppInstanceAdminArn")) } if s.AppInstanceAdminArn != nil && len(*s.AppInstanceAdminArn) < 5 { invalidParams.Add(request.NewErrParamMinLen("AppInstanceAdminArn", 5)) } if s.AppInstanceArn == nil { invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) } if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAppInstanceAdminArn sets the AppInstanceAdminArn field's value. func (s *DeleteAppInstanceAdminInput) SetAppInstanceAdminArn(v string) *DeleteAppInstanceAdminInput { s.AppInstanceAdminArn = &v return s } // SetAppInstanceArn sets the AppInstanceArn field's value. func (s *DeleteAppInstanceAdminInput) SetAppInstanceArn(v string) *DeleteAppInstanceAdminInput { s.AppInstanceArn = &v return s } type DeleteAppInstanceAdminOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteAppInstanceAdminOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteAppInstanceAdminOutput) GoString() string { return s.String() } type DeleteAppInstanceInput struct { _ struct{} `type:"structure"` // The ARN of the AppInstance. // // AppInstanceArn is a required field AppInstanceArn *string `location:"uri" locationName:"appInstanceArn" min:"5" type:"string" required:"true"` } // String returns the string representation func (s DeleteAppInstanceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteAppInstanceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteAppInstanceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteAppInstanceInput"} if s.AppInstanceArn == nil { invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) } if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAppInstanceArn sets the AppInstanceArn field's value. func (s *DeleteAppInstanceInput) SetAppInstanceArn(v string) *DeleteAppInstanceInput { s.AppInstanceArn = &v return s } type DeleteAppInstanceOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteAppInstanceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteAppInstanceOutput) GoString() string { return s.String() } type DeleteAppInstanceUserInput struct { _ struct{} `type:"structure"` // The ARN of the user request being deleted. // // AppInstanceUserArn is a required field AppInstanceUserArn *string `location:"uri" locationName:"appInstanceUserArn" min:"5" type:"string" required:"true"` } // String returns the string representation func (s DeleteAppInstanceUserInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteAppInstanceUserInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteAppInstanceUserInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteAppInstanceUserInput"} if s.AppInstanceUserArn == nil { invalidParams.Add(request.NewErrParamRequired("AppInstanceUserArn")) } if s.AppInstanceUserArn != nil && len(*s.AppInstanceUserArn) < 5 { invalidParams.Add(request.NewErrParamMinLen("AppInstanceUserArn", 5)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAppInstanceUserArn sets the AppInstanceUserArn field's value. func (s *DeleteAppInstanceUserInput) SetAppInstanceUserArn(v string) *DeleteAppInstanceUserInput { s.AppInstanceUserArn = &v return s } type DeleteAppInstanceUserOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteAppInstanceUserOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteAppInstanceUserOutput) GoString() string { return s.String() } type DescribeAppInstanceAdminInput struct { _ struct{} `type:"structure"` // The ARN of the AppInstanceAdmin. // // AppInstanceAdminArn is a required field AppInstanceAdminArn *string `location:"uri" locationName:"appInstanceAdminArn" min:"5" type:"string" required:"true"` // The ARN of the AppInstance. // // AppInstanceArn is a required field AppInstanceArn *string `location:"uri" locationName:"appInstanceArn" min:"5" type:"string" required:"true"` } // String returns the string representation func (s DescribeAppInstanceAdminInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeAppInstanceAdminInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeAppInstanceAdminInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeAppInstanceAdminInput"} if s.AppInstanceAdminArn == nil { invalidParams.Add(request.NewErrParamRequired("AppInstanceAdminArn")) } if s.AppInstanceAdminArn != nil && len(*s.AppInstanceAdminArn) < 5 { invalidParams.Add(request.NewErrParamMinLen("AppInstanceAdminArn", 5)) } if s.AppInstanceArn == nil { invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) } if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAppInstanceAdminArn sets the AppInstanceAdminArn field's value. func (s *DescribeAppInstanceAdminInput) SetAppInstanceAdminArn(v string) *DescribeAppInstanceAdminInput { s.AppInstanceAdminArn = &v return s } // SetAppInstanceArn sets the AppInstanceArn field's value. func (s *DescribeAppInstanceAdminInput) SetAppInstanceArn(v string) *DescribeAppInstanceAdminInput { s.AppInstanceArn = &v return s } type DescribeAppInstanceAdminOutput struct { _ struct{} `type:"structure"` // The ARN and name of the AppInstanceUser, the ARN of the AppInstance, and // the created and last-updated timestamps. All timestamps use epoch milliseconds. AppInstanceAdmin *AppInstanceAdmin `type:"structure"` } // String returns the string representation func (s DescribeAppInstanceAdminOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeAppInstanceAdminOutput) GoString() string { return s.String() } // SetAppInstanceAdmin sets the AppInstanceAdmin field's value. func (s *DescribeAppInstanceAdminOutput) SetAppInstanceAdmin(v *AppInstanceAdmin) *DescribeAppInstanceAdminOutput { s.AppInstanceAdmin = v return s } type DescribeAppInstanceInput struct { _ struct{} `type:"structure"` // The ARN of the AppInstance. // // AppInstanceArn is a required field AppInstanceArn *string `location:"uri" locationName:"appInstanceArn" min:"5" type:"string" required:"true"` } // String returns the string representation func (s DescribeAppInstanceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeAppInstanceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeAppInstanceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeAppInstanceInput"} if s.AppInstanceArn == nil { invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) } if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAppInstanceArn sets the AppInstanceArn field's value. func (s *DescribeAppInstanceInput) SetAppInstanceArn(v string) *DescribeAppInstanceInput { s.AppInstanceArn = &v return s } type DescribeAppInstanceOutput struct { _ struct{} `type:"structure"` // The ARN, metadata, created and last-updated timestamps, and the name of the // AppInstance. All timestamps use epoch milliseconds. AppInstance *AppInstance `type:"structure"` } // String returns the string representation func (s DescribeAppInstanceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeAppInstanceOutput) GoString() string { return s.String() } // SetAppInstance sets the AppInstance field's value. func (s *DescribeAppInstanceOutput) SetAppInstance(v *AppInstance) *DescribeAppInstanceOutput { s.AppInstance = v return s } type DescribeAppInstanceUserInput struct { _ struct{} `type:"structure"` // The ARN of the AppInstanceUser. // // AppInstanceUserArn is a required field AppInstanceUserArn *string `location:"uri" locationName:"appInstanceUserArn" min:"5" type:"string" required:"true"` } // String returns the string representation func (s DescribeAppInstanceUserInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeAppInstanceUserInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeAppInstanceUserInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeAppInstanceUserInput"} if s.AppInstanceUserArn == nil { invalidParams.Add(request.NewErrParamRequired("AppInstanceUserArn")) } if s.AppInstanceUserArn != nil && len(*s.AppInstanceUserArn) < 5 { invalidParams.Add(request.NewErrParamMinLen("AppInstanceUserArn", 5)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAppInstanceUserArn sets the AppInstanceUserArn field's value. func (s *DescribeAppInstanceUserInput) SetAppInstanceUserArn(v string) *DescribeAppInstanceUserInput { s.AppInstanceUserArn = &v return s } type DescribeAppInstanceUserOutput struct { _ struct{} `type:"structure"` // The name of the AppInstanceUser. AppInstanceUser *AppInstanceUser `type:"structure"` } // String returns the string representation func (s DescribeAppInstanceUserOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeAppInstanceUserOutput) GoString() string { return s.String() } // SetAppInstanceUser sets the AppInstanceUser field's value. func (s *DescribeAppInstanceUserOutput) SetAppInstanceUser(v *AppInstanceUser) *DescribeAppInstanceUserOutput { s.AppInstanceUser = v return s } // The client is permanently forbidden from making the request. type ForbiddenException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s ForbiddenException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ForbiddenException) GoString() string { return s.String() } func newErrorForbiddenException(v protocol.ResponseMetadata) error { return &ForbiddenException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ForbiddenException) Code() string { return "ForbiddenException" } // Message returns the exception's message. func (s *ForbiddenException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ForbiddenException) OrigErr() error { return nil } func (s *ForbiddenException) Error() string { return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } // Status code returns the HTTP status code for the request's response error. func (s *ForbiddenException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ForbiddenException) RequestID() string { return s.RespMetadata.RequestID } type GetAppInstanceRetentionSettingsInput struct { _ struct{} `type:"structure"` // The ARN of the AppInstance. // // AppInstanceArn is a required field AppInstanceArn *string `location:"uri" locationName:"appInstanceArn" min:"5" type:"string" required:"true"` } // String returns the string representation func (s GetAppInstanceRetentionSettingsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetAppInstanceRetentionSettingsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetAppInstanceRetentionSettingsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetAppInstanceRetentionSettingsInput"} if s.AppInstanceArn == nil { invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) } if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAppInstanceArn sets the AppInstanceArn field's value. func (s *GetAppInstanceRetentionSettingsInput) SetAppInstanceArn(v string) *GetAppInstanceRetentionSettingsInput { s.AppInstanceArn = &v return s } type GetAppInstanceRetentionSettingsOutput struct { _ struct{} `type:"structure"` // The retention settings for the AppInstance. AppInstanceRetentionSettings *AppInstanceRetentionSettings `type:"structure"` // The timestamp representing the time at which the specified items are retained, // in Epoch Seconds. InitiateDeletionTimestamp *time.Time `type:"timestamp"` } // String returns the string representation func (s GetAppInstanceRetentionSettingsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetAppInstanceRetentionSettingsOutput) GoString() string { return s.String() } // SetAppInstanceRetentionSettings sets the AppInstanceRetentionSettings field's value. func (s *GetAppInstanceRetentionSettingsOutput) SetAppInstanceRetentionSettings(v *AppInstanceRetentionSettings) *GetAppInstanceRetentionSettingsOutput { s.AppInstanceRetentionSettings = v return s } // SetInitiateDeletionTimestamp sets the InitiateDeletionTimestamp field's value. func (s *GetAppInstanceRetentionSettingsOutput) SetInitiateDeletionTimestamp(v time.Time) *GetAppInstanceRetentionSettingsOutput { s.InitiateDeletionTimestamp = &v return s } // The details of a user. type Identity struct { _ struct{} `type:"structure"` // The ARN in an Identity. Arn *string `min:"5" type:"string"` // The name in an Identity. Name *string `type:"string" sensitive:"true"` } // String returns the string representation func (s Identity) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Identity) GoString() string { return s.String() } // SetArn sets the Arn field's value. func (s *Identity) SetArn(v string) *Identity { s.Arn = &v return s } // SetName sets the Name field's value. func (s *Identity) SetName(v string) *Identity { s.Name = &v return s } type ListAppInstanceAdminsInput struct { _ struct{} `type:"structure"` // The ARN of the AppInstance. // // AppInstanceArn is a required field AppInstanceArn *string `location:"uri" locationName:"appInstanceArn" min:"5" type:"string" required:"true"` // The maximum number of administrators that you want to return. MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` // The token returned from previous API requests until the number of administrators // is reached. NextToken *string `location:"querystring" locationName:"next-token" type:"string" sensitive:"true"` } // String returns the string representation func (s ListAppInstanceAdminsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListAppInstanceAdminsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListAppInstanceAdminsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListAppInstanceAdminsInput"} if s.AppInstanceArn == nil { invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) } if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAppInstanceArn sets the AppInstanceArn field's value. func (s *ListAppInstanceAdminsInput) SetAppInstanceArn(v string) *ListAppInstanceAdminsInput { s.AppInstanceArn = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListAppInstanceAdminsInput) SetMaxResults(v int64) *ListAppInstanceAdminsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListAppInstanceAdminsInput) SetNextToken(v string) *ListAppInstanceAdminsInput { s.NextToken = &v return s } type ListAppInstanceAdminsOutput struct { _ struct{} `type:"structure"` // The information for each administrator. AppInstanceAdmins []*AppInstanceAdminSummary `type:"list"` // The ARN of the AppInstance. AppInstanceArn *string `min:"5" type:"string"` // The token returned from previous API requests until the number of administrators // is reached. NextToken *string `type:"string" sensitive:"true"` } // String returns the string representation func (s ListAppInstanceAdminsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListAppInstanceAdminsOutput) GoString() string { return s.String() } // SetAppInstanceAdmins sets the AppInstanceAdmins field's value. func (s *ListAppInstanceAdminsOutput) SetAppInstanceAdmins(v []*AppInstanceAdminSummary) *ListAppInstanceAdminsOutput { s.AppInstanceAdmins = v return s } // SetAppInstanceArn sets the AppInstanceArn field's value. func (s *ListAppInstanceAdminsOutput) SetAppInstanceArn(v string) *ListAppInstanceAdminsOutput { s.AppInstanceArn = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListAppInstanceAdminsOutput) SetNextToken(v string) *ListAppInstanceAdminsOutput { s.NextToken = &v return s } type ListAppInstanceUsersInput struct { _ struct{} `type:"structure"` // The ARN of the AppInstance. // // AppInstanceArn is a required field AppInstanceArn *string `location:"querystring" locationName:"app-instance-arn" min:"5" type:"string" required:"true"` // The maximum number of requests that you want returned. MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` // The token passed by previous API calls until all requested users are returned. NextToken *string `location:"querystring" locationName:"next-token" type:"string" sensitive:"true"` } // String returns the string representation func (s ListAppInstanceUsersInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListAppInstanceUsersInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListAppInstanceUsersInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListAppInstanceUsersInput"} if s.AppInstanceArn == nil { invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) } if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAppInstanceArn sets the AppInstanceArn field's value. func (s *ListAppInstanceUsersInput) SetAppInstanceArn(v string) *ListAppInstanceUsersInput { s.AppInstanceArn = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListAppInstanceUsersInput) SetMaxResults(v int64) *ListAppInstanceUsersInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListAppInstanceUsersInput) SetNextToken(v string) *ListAppInstanceUsersInput { s.NextToken = &v return s } type ListAppInstanceUsersOutput struct { _ struct{} `type:"structure"` // The ARN of the AppInstance. AppInstanceArn *string `min:"5" type:"string"` // The information for each requested AppInstanceUser. AppInstanceUsers []*AppInstanceUserSummary `type:"list"` // The token passed by previous API calls until all requested users are returned. NextToken *string `type:"string" sensitive:"true"` } // String returns the string representation func (s ListAppInstanceUsersOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListAppInstanceUsersOutput) GoString() string { return s.String() } // SetAppInstanceArn sets the AppInstanceArn field's value. func (s *ListAppInstanceUsersOutput) SetAppInstanceArn(v string) *ListAppInstanceUsersOutput { s.AppInstanceArn = &v return s } // SetAppInstanceUsers sets the AppInstanceUsers field's value. func (s *ListAppInstanceUsersOutput) SetAppInstanceUsers(v []*AppInstanceUserSummary) *ListAppInstanceUsersOutput { s.AppInstanceUsers = v return s } // SetNextToken sets the NextToken field's value. func (s *ListAppInstanceUsersOutput) SetNextToken(v string) *ListAppInstanceUsersOutput { s.NextToken = &v return s } type ListAppInstancesInput struct { _ struct{} `type:"structure"` // The maximum number of AppInstances that you want to return. MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` // The token passed by previous API requests until you reach the maximum number // of AppInstances. NextToken *string `location:"querystring" locationName:"next-token" type:"string" sensitive:"true"` } // String returns the string representation func (s ListAppInstancesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListAppInstancesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListAppInstancesInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListAppInstancesInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxResults sets the MaxResults field's value. func (s *ListAppInstancesInput) SetMaxResults(v int64) *ListAppInstancesInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListAppInstancesInput) SetNextToken(v string) *ListAppInstancesInput { s.NextToken = &v return s } type ListAppInstancesOutput struct { _ struct{} `type:"structure"` // The information for each AppInstance. AppInstances []*AppInstanceSummary `type:"list"` // The token passed by previous API requests until the maximum number of AppInstances // is reached. NextToken *string `type:"string" sensitive:"true"` } // String returns the string representation func (s ListAppInstancesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListAppInstancesOutput) GoString() string { return s.String() } // SetAppInstances sets the AppInstances field's value. func (s *ListAppInstancesOutput) SetAppInstances(v []*AppInstanceSummary) *ListAppInstancesOutput { s.AppInstances = v return s } // SetNextToken sets the NextToken field's value. func (s *ListAppInstancesOutput) SetNextToken(v string) *ListAppInstancesOutput { s.NextToken = &v return s } type PutAppInstanceRetentionSettingsInput struct { _ struct{} `type:"structure"` // The ARN of the AppInstance. // // AppInstanceArn is a required field AppInstanceArn *string `location:"uri" locationName:"appInstanceArn" min:"5" type:"string" required:"true"` // The time in days to retain data. Data type: number. // // AppInstanceRetentionSettings is a required field AppInstanceRetentionSettings *AppInstanceRetentionSettings `type:"structure" required:"true"` } // String returns the string representation func (s PutAppInstanceRetentionSettingsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s PutAppInstanceRetentionSettingsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *PutAppInstanceRetentionSettingsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "PutAppInstanceRetentionSettingsInput"} if s.AppInstanceArn == nil { invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) } if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) } if s.AppInstanceRetentionSettings == nil { invalidParams.Add(request.NewErrParamRequired("AppInstanceRetentionSettings")) } if s.AppInstanceRetentionSettings != nil { if err := s.AppInstanceRetentionSettings.Validate(); err != nil { invalidParams.AddNested("AppInstanceRetentionSettings", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAppInstanceArn sets the AppInstanceArn field's value. func (s *PutAppInstanceRetentionSettingsInput) SetAppInstanceArn(v string) *PutAppInstanceRetentionSettingsInput { s.AppInstanceArn = &v return s } // SetAppInstanceRetentionSettings sets the AppInstanceRetentionSettings field's value. func (s *PutAppInstanceRetentionSettingsInput) SetAppInstanceRetentionSettings(v *AppInstanceRetentionSettings) *PutAppInstanceRetentionSettingsInput { s.AppInstanceRetentionSettings = v return s } type PutAppInstanceRetentionSettingsOutput struct { _ struct{} `type:"structure"` // The time in days to retain data. Data type: number. AppInstanceRetentionSettings *AppInstanceRetentionSettings `type:"structure"` // The time at which the API deletes data. InitiateDeletionTimestamp *time.Time `type:"timestamp"` } // String returns the string representation func (s PutAppInstanceRetentionSettingsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s PutAppInstanceRetentionSettingsOutput) GoString() string { return s.String() } // SetAppInstanceRetentionSettings sets the AppInstanceRetentionSettings field's value. func (s *PutAppInstanceRetentionSettingsOutput) SetAppInstanceRetentionSettings(v *AppInstanceRetentionSettings) *PutAppInstanceRetentionSettingsOutput { s.AppInstanceRetentionSettings = v return s } // SetInitiateDeletionTimestamp sets the InitiateDeletionTimestamp field's value. func (s *PutAppInstanceRetentionSettingsOutput) SetInitiateDeletionTimestamp(v time.Time) *PutAppInstanceRetentionSettingsOutput { s.InitiateDeletionTimestamp = &v return s } // The request exceeds the resource limit. type ResourceLimitExceededException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s ResourceLimitExceededException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ResourceLimitExceededException) GoString() string { return s.String() } func newErrorResourceLimitExceededException(v protocol.ResponseMetadata) error { return &ResourceLimitExceededException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ResourceLimitExceededException) Code() string { return "ResourceLimitExceededException" } // Message returns the exception's message. func (s *ResourceLimitExceededException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ResourceLimitExceededException) OrigErr() error { return nil } func (s *ResourceLimitExceededException) Error() string { return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } // Status code returns the HTTP status code for the request's response error. func (s *ResourceLimitExceededException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ResourceLimitExceededException) RequestID() string { return s.RespMetadata.RequestID } // The service encountered an unexpected error. type ServiceFailureException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s ServiceFailureException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ServiceFailureException) GoString() string { return s.String() } func newErrorServiceFailureException(v protocol.ResponseMetadata) error { return &ServiceFailureException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ServiceFailureException) Code() string { return "ServiceFailureException" } // Message returns the exception's message. func (s *ServiceFailureException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ServiceFailureException) OrigErr() error { return nil } func (s *ServiceFailureException) Error() string { return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } // Status code returns the HTTP status code for the request's response error. func (s *ServiceFailureException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ServiceFailureException) RequestID() string { return s.RespMetadata.RequestID } // The service is currently unavailable. type ServiceUnavailableException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s ServiceUnavailableException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ServiceUnavailableException) GoString() string { return s.String() } func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { return &ServiceUnavailableException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ServiceUnavailableException) Code() string { return "ServiceUnavailableException" } // Message returns the exception's message. func (s *ServiceUnavailableException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ServiceUnavailableException) OrigErr() error { return nil } func (s *ServiceUnavailableException) Error() string { return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } // Status code returns the HTTP status code for the request's response error. func (s *ServiceUnavailableException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ServiceUnavailableException) RequestID() string { return s.RespMetadata.RequestID } // Describes a tag applied to a resource. type Tag struct { _ struct{} `type:"structure"` // The key of the tag. // // Key is a required field Key *string `min:"1" type:"string" required:"true" sensitive:"true"` // The value of the tag. // // Value is a required field Value *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation func (s Tag) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Tag) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *Tag) Validate() error { invalidParams := request.ErrInvalidParams{Context: "Tag"} if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } if s.Key != nil && len(*s.Key) < 1 { invalidParams.Add(request.NewErrParamMinLen("Key", 1)) } if s.Value == nil { invalidParams.Add(request.NewErrParamRequired("Value")) } if s.Value != nil && len(*s.Value) < 1 { invalidParams.Add(request.NewErrParamMinLen("Value", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetKey sets the Key field's value. func (s *Tag) SetKey(v string) *Tag { s.Key = &v return s } // SetValue sets the Value field's value. func (s *Tag) SetValue(v string) *Tag { s.Value = &v return s } // The client exceeded its request rate limit. type ThrottledClientException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s ThrottledClientException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ThrottledClientException) GoString() string { return s.String() } func newErrorThrottledClientException(v protocol.ResponseMetadata) error { return &ThrottledClientException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ThrottledClientException) Code() string { return "ThrottledClientException" } // Message returns the exception's message. func (s *ThrottledClientException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ThrottledClientException) OrigErr() error { return nil } func (s *ThrottledClientException) Error() string { return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } // Status code returns the HTTP status code for the request's response error. func (s *ThrottledClientException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ThrottledClientException) RequestID() string { return s.RespMetadata.RequestID } // The client is not currently authorized to make the request. type UnauthorizedClientException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation func (s UnauthorizedClientException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UnauthorizedClientException) GoString() string { return s.String() } func newErrorUnauthorizedClientException(v protocol.ResponseMetadata) error { return &UnauthorizedClientException{ RespMetadata: v, } } // Code returns the exception type name. func (s *UnauthorizedClientException) Code() string { return "UnauthorizedClientException" } // Message returns the exception's message. func (s *UnauthorizedClientException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *UnauthorizedClientException) OrigErr() error { return nil } func (s *UnauthorizedClientException) Error() string { return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } // Status code returns the HTTP status code for the request's response error. func (s *UnauthorizedClientException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *UnauthorizedClientException) RequestID() string { return s.RespMetadata.RequestID } type UpdateAppInstanceInput struct { _ struct{} `type:"structure"` // The ARN of the AppInstance. // // AppInstanceArn is a required field AppInstanceArn *string `location:"uri" locationName:"appInstanceArn" min:"5" type:"string" required:"true"` // The metadata that you want to change. // // Metadata is a required field Metadata *string `type:"string" required:"true" sensitive:"true"` // The name that you want to change. // // Name is a required field Name *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation func (s UpdateAppInstanceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateAppInstanceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateAppInstanceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateAppInstanceInput"} if s.AppInstanceArn == nil { invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) } if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) } if s.Metadata == nil { invalidParams.Add(request.NewErrParamRequired("Metadata")) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAppInstanceArn sets the AppInstanceArn field's value. func (s *UpdateAppInstanceInput) SetAppInstanceArn(v string) *UpdateAppInstanceInput { s.AppInstanceArn = &v return s } // SetMetadata sets the Metadata field's value. func (s *UpdateAppInstanceInput) SetMetadata(v string) *UpdateAppInstanceInput { s.Metadata = &v return s } // SetName sets the Name field's value. func (s *UpdateAppInstanceInput) SetName(v string) *UpdateAppInstanceInput { s.Name = &v return s } type UpdateAppInstanceOutput struct { _ struct{} `type:"structure"` // The ARN of the AppInstance. AppInstanceArn *string `min:"5" type:"string"` } // String returns the string representation func (s UpdateAppInstanceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateAppInstanceOutput) GoString() string { return s.String() } // SetAppInstanceArn sets the AppInstanceArn field's value. func (s *UpdateAppInstanceOutput) SetAppInstanceArn(v string) *UpdateAppInstanceOutput { s.AppInstanceArn = &v return s } type UpdateAppInstanceUserInput struct { _ struct{} `type:"structure"` // The ARN of the AppInstanceUser. // // AppInstanceUserArn is a required field AppInstanceUserArn *string `location:"uri" locationName:"appInstanceUserArn" min:"5" type:"string" required:"true"` // The metadata of the AppInstanceUser. // // Metadata is a required field Metadata *string `type:"string" required:"true" sensitive:"true"` // The name of the AppInstanceUser. // // Name is a required field Name *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation func (s UpdateAppInstanceUserInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateAppInstanceUserInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateAppInstanceUserInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateAppInstanceUserInput"} if s.AppInstanceUserArn == nil { invalidParams.Add(request.NewErrParamRequired("AppInstanceUserArn")) } if s.AppInstanceUserArn != nil && len(*s.AppInstanceUserArn) < 5 { invalidParams.Add(request.NewErrParamMinLen("AppInstanceUserArn", 5)) } if s.Metadata == nil { invalidParams.Add(request.NewErrParamRequired("Metadata")) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAppInstanceUserArn sets the AppInstanceUserArn field's value. func (s *UpdateAppInstanceUserInput) SetAppInstanceUserArn(v string) *UpdateAppInstanceUserInput { s.AppInstanceUserArn = &v return s } // SetMetadata sets the Metadata field's value. func (s *UpdateAppInstanceUserInput) SetMetadata(v string) *UpdateAppInstanceUserInput { s.Metadata = &v return s } // SetName sets the Name field's value. func (s *UpdateAppInstanceUserInput) SetName(v string) *UpdateAppInstanceUserInput { s.Name = &v return s } type UpdateAppInstanceUserOutput struct { _ struct{} `type:"structure"` // The ARN of the AppInstanceUser. AppInstanceUserArn *string `min:"5" type:"string"` } // String returns the string representation func (s UpdateAppInstanceUserOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateAppInstanceUserOutput) GoString() string { return s.String() } // SetAppInstanceUserArn sets the AppInstanceUserArn field's value. func (s *UpdateAppInstanceUserOutput) SetAppInstanceUserArn(v string) *UpdateAppInstanceUserOutput { s.AppInstanceUserArn = &v return s } const ( // ErrorCodeBadRequest is a ErrorCode enum value ErrorCodeBadRequest = "BadRequest" // ErrorCodeConflict is a ErrorCode enum value ErrorCodeConflict = "Conflict" // ErrorCodeForbidden is a ErrorCode enum value ErrorCodeForbidden = "Forbidden" // ErrorCodeNotFound is a ErrorCode enum value ErrorCodeNotFound = "NotFound" // ErrorCodePreconditionFailed is a ErrorCode enum value ErrorCodePreconditionFailed = "PreconditionFailed" // ErrorCodeResourceLimitExceeded is a ErrorCode enum value ErrorCodeResourceLimitExceeded = "ResourceLimitExceeded" // ErrorCodeServiceFailure is a ErrorCode enum value ErrorCodeServiceFailure = "ServiceFailure" // ErrorCodeAccessDenied is a ErrorCode enum value ErrorCodeAccessDenied = "AccessDenied" // ErrorCodeServiceUnavailable is a ErrorCode enum value ErrorCodeServiceUnavailable = "ServiceUnavailable" // ErrorCodeThrottled is a ErrorCode enum value ErrorCodeThrottled = "Throttled" // ErrorCodeThrottling is a ErrorCode enum value ErrorCodeThrottling = "Throttling" // ErrorCodeUnauthorized is a ErrorCode enum value ErrorCodeUnauthorized = "Unauthorized" // ErrorCodeUnprocessable is a ErrorCode enum value ErrorCodeUnprocessable = "Unprocessable" // ErrorCodeVoiceConnectorGroupAssociationsExist is a ErrorCode enum value ErrorCodeVoiceConnectorGroupAssociationsExist = "VoiceConnectorGroupAssociationsExist" // ErrorCodePhoneNumberAssociationsExist is a ErrorCode enum value ErrorCodePhoneNumberAssociationsExist = "PhoneNumberAssociationsExist" ) // ErrorCode_Values returns all elements of the ErrorCode enum func ErrorCode_Values() []string { return []string{ ErrorCodeBadRequest, ErrorCodeConflict, ErrorCodeForbidden, ErrorCodeNotFound, ErrorCodePreconditionFailed, ErrorCodeResourceLimitExceeded, ErrorCodeServiceFailure, ErrorCodeAccessDenied, ErrorCodeServiceUnavailable, ErrorCodeThrottled, ErrorCodeThrottling, ErrorCodeUnauthorized, ErrorCodeUnprocessable, ErrorCodeVoiceConnectorGroupAssociationsExist, ErrorCodePhoneNumberAssociationsExist, } }
4,107
session-manager-plugin
aws
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package chimesdkidentity provides the client and types for making API // requests to Amazon Chime SDK Identity. // // The Amazon Chime SDK Identity APIs in this section allow software developers // to create and manage unique instances of their messaging applications. These // APIs provide the overarching framework for creating and sending messages. // For more information about the identity APIs, refer to . // // See https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20 for more information on this service. // // See chimesdkidentity package documentation for more information. // https://docs.aws.amazon.com/sdk-for-go/api/service/chimesdkidentity/ // // Using the Client // // To contact Amazon Chime SDK Identity 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 Amazon Chime SDK Identity client ChimeSDKIdentity for more // information on creating client for this service. // https://docs.aws.amazon.com/sdk-for-go/api/service/chimesdkidentity/#New package chimesdkidentity
32