mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-09 22:39:53 +00:00
Upgrade AWS SDK to the latest version
This commit is contained in:
+2
-2
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package acmiface provides an interface to enable mocking the AWS Certificate Manager service client
|
||||
// for testing your code.
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
//
|
||||
// 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 the SDK's request pipeline.
|
||||
// to inject custom request handlers into the SDK's request pipeline.
|
||||
//
|
||||
// // myFunc uses an SDK service client to make a request to
|
||||
// // AWS Certificate Manager.
|
||||
|
||||
+117
-105
@@ -1,6 +1,5 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package acm provides a client for AWS Certificate Manager.
|
||||
package acm
|
||||
|
||||
import (
|
||||
@@ -18,19 +17,18 @@ const opAddTagsToCertificate = "AddTagsToCertificate"
|
||||
|
||||
// AddTagsToCertificateRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the AddTagsToCertificate operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See AddTagsToCertificate for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the AddTagsToCertificate method directly
|
||||
// instead.
|
||||
// See AddTagsToCertificate for more information on using the AddTagsToCertificate
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the AddTagsToCertificateRequest method.
|
||||
// req, resp := client.AddTagsToCertificateRequest(params)
|
||||
@@ -127,19 +125,18 @@ const opDeleteCertificate = "DeleteCertificate"
|
||||
|
||||
// DeleteCertificateRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteCertificate operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DeleteCertificate for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteCertificate method directly
|
||||
// instead.
|
||||
// See DeleteCertificate for more information on using the DeleteCertificate
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteCertificateRequest method.
|
||||
// req, resp := client.DeleteCertificateRequest(params)
|
||||
@@ -225,19 +222,18 @@ const opDescribeCertificate = "DescribeCertificate"
|
||||
|
||||
// DescribeCertificateRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeCertificate operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeCertificate for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeCertificate method directly
|
||||
// instead.
|
||||
// See DescribeCertificate for more information on using the DescribeCertificate
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeCertificateRequest method.
|
||||
// req, resp := client.DescribeCertificateRequest(params)
|
||||
@@ -309,19 +305,18 @@ const opGetCertificate = "GetCertificate"
|
||||
|
||||
// GetCertificateRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetCertificate operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See GetCertificate for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetCertificate method directly
|
||||
// instead.
|
||||
// See GetCertificate for more information on using the GetCertificate
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetCertificateRequest method.
|
||||
// req, resp := client.GetCertificateRequest(params)
|
||||
@@ -405,19 +400,18 @@ const opImportCertificate = "ImportCertificate"
|
||||
|
||||
// ImportCertificateRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ImportCertificate operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See ImportCertificate for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ImportCertificate method directly
|
||||
// instead.
|
||||
// See ImportCertificate for more information on using the ImportCertificate
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ImportCertificateRequest method.
|
||||
// req, resp := client.ImportCertificateRequest(params)
|
||||
@@ -518,19 +512,18 @@ const opListCertificates = "ListCertificates"
|
||||
|
||||
// ListCertificatesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListCertificates operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See ListCertificates for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListCertificates method directly
|
||||
// instead.
|
||||
// See ListCertificates for more information on using the ListCertificates
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListCertificatesRequest method.
|
||||
// req, resp := client.ListCertificatesRequest(params)
|
||||
@@ -628,8 +621,12 @@ func (c *ACM) ListCertificatesPages(input *ListCertificatesInput, fn func(*ListC
|
||||
func (c *ACM) ListCertificatesPagesWithContext(ctx aws.Context, input *ListCertificatesInput, fn func(*ListCertificatesOutput, bool) bool, opts ...request.Option) error {
|
||||
p := request.Pagination{
|
||||
NewRequest: func() (*request.Request, error) {
|
||||
inCpy := *input
|
||||
req, _ := c.ListCertificatesRequest(&inCpy)
|
||||
var inCpy *ListCertificatesInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.ListCertificatesRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
@@ -647,19 +644,18 @@ const opListTagsForCertificate = "ListTagsForCertificate"
|
||||
|
||||
// ListTagsForCertificateRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListTagsForCertificate operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See ListTagsForCertificate for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListTagsForCertificate method directly
|
||||
// instead.
|
||||
// See ListTagsForCertificate for more information on using the ListTagsForCertificate
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListTagsForCertificateRequest method.
|
||||
// req, resp := client.ListTagsForCertificateRequest(params)
|
||||
@@ -734,19 +730,18 @@ const opRemoveTagsFromCertificate = "RemoveTagsFromCertificate"
|
||||
|
||||
// RemoveTagsFromCertificateRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the RemoveTagsFromCertificate operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See RemoveTagsFromCertificate for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the RemoveTagsFromCertificate method directly
|
||||
// instead.
|
||||
// See RemoveTagsFromCertificate for more information on using the RemoveTagsFromCertificate
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the RemoveTagsFromCertificateRequest method.
|
||||
// req, resp := client.RemoveTagsFromCertificateRequest(params)
|
||||
@@ -831,19 +826,18 @@ const opRequestCertificate = "RequestCertificate"
|
||||
|
||||
// RequestCertificateRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the RequestCertificate operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See RequestCertificate for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the RequestCertificate method directly
|
||||
// instead.
|
||||
// See RequestCertificate for more information on using the RequestCertificate
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the RequestCertificateRequest method.
|
||||
// req, resp := client.RequestCertificateRequest(params)
|
||||
@@ -924,19 +918,18 @@ const opResendValidationEmail = "ResendValidationEmail"
|
||||
|
||||
// ResendValidationEmailRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ResendValidationEmail operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See ResendValidationEmail for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ResendValidationEmail method directly
|
||||
// instead.
|
||||
// See ResendValidationEmail for more information on using the ResendValidationEmail
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ResendValidationEmailRequest method.
|
||||
// req, resp := client.ResendValidationEmailRequest(params)
|
||||
@@ -976,6 +969,8 @@ func (c *ACM) ResendValidationEmailRequest(input *ResendValidationEmailInput) (r
|
||||
// the mail be resent within 72 hours of requesting the ACM Certificate. If
|
||||
// more than 72 hours have elapsed since your original request or since your
|
||||
// last attempt to resend validation mail, you must request a new certificate.
|
||||
// For more information about setting up your contact email addresses, see Configure
|
||||
// Email for your Domain (http://docs.aws.amazon.com/acm/latest/userguide/setup-email.html).
|
||||
//
|
||||
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
||||
// with awserr.Error's Code and Message methods to get detailed information about
|
||||
@@ -2178,6 +2173,20 @@ type RequestCertificateInput struct {
|
||||
// a wildcard certificate that protects several sites in the same domain. For
|
||||
// example, *.example.com protects www.example.com, site.example.com, and images.example.com.
|
||||
//
|
||||
// The maximum length of a DNS name is 253 octets. The name is made up of multiple
|
||||
// labels separated by periods. No label can be longer than 63 octets. Consider
|
||||
// the following examples:
|
||||
//
|
||||
// (63 octets).(63 octets).(63 octets).(61 octets) is legal because the total
|
||||
// length is 253 octets (63+1+63+1+63+1+61) and no label exceeds 63 octets.
|
||||
//
|
||||
// (64 octets).(63 octets).(63 octets).(61 octets) is not legal because the
|
||||
// total length exceeds 253 octets (64+1+63+1+63+1+61) and the first label exceeds
|
||||
// 63 octets.
|
||||
//
|
||||
// (63 octets).(63 octets).(63 octets).(62 octets) is not legal because the
|
||||
// total length of the DNS name (63+1+63+1+63+1+62) exceeds 253 octets.
|
||||
//
|
||||
// DomainName is a required field
|
||||
DomainName *string `min:"1" type:"string" required:"true"`
|
||||
|
||||
@@ -2196,7 +2205,10 @@ type RequestCertificateInput struct {
|
||||
// Additional FQDNs to be included in the Subject Alternative Name extension
|
||||
// of the ACM Certificate. For example, add the name www.example.net to a certificate
|
||||
// for which the DomainName field is www.example.com if users can reach your
|
||||
// site by using either name.
|
||||
// site by using either name. The maximum number of domain names that you can
|
||||
// add to an ACM Certificate is 100. However, the initial limit is 10 domain
|
||||
// names. If you need more than 10 names, you must request a limit increase.
|
||||
// For more information, see Limits (http://docs.aws.amazon.com/acm/latest/userguide/acm-limits.html).
|
||||
SubjectAlternativeNames []*string `min:"1" type:"list"`
|
||||
}
|
||||
|
||||
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package acm provides the client and types for making API
|
||||
// requests to AWS Certificate Manager.
|
||||
//
|
||||
// Welcome to the AWS Certificate Manager (ACM) API documentation.
|
||||
//
|
||||
// You can use ACM to manage SSL/TLS certificates for your AWS-based websites
|
||||
// and applications. For general information about using ACM, see the AWS Certificate
|
||||
// Manager User Guide (http://docs.aws.amazon.com/acm/latest/userguide/).
|
||||
//
|
||||
// See https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08 for more information on this service.
|
||||
//
|
||||
// See acm package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/acm/
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To AWS Certificate 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 Certificate Manager client ACM for more
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/acm/#New
|
||||
package acm
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package acm
|
||||
|
||||
|
||||
-262
@@ -1,262 +0,0 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
|
||||
package acm_test
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/session"
|
||||
"github.com/aws/aws-sdk-go/service/acm"
|
||||
)
|
||||
|
||||
var _ time.Duration
|
||||
var _ bytes.Buffer
|
||||
|
||||
func ExampleACM_AddTagsToCertificate() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := acm.New(sess)
|
||||
|
||||
params := &acm.AddTagsToCertificateInput{
|
||||
CertificateArn: aws.String("Arn"), // Required
|
||||
Tags: []*acm.Tag{ // Required
|
||||
{ // Required
|
||||
Key: aws.String("TagKey"), // Required
|
||||
Value: aws.String("TagValue"),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.AddTagsToCertificate(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleACM_DeleteCertificate() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := acm.New(sess)
|
||||
|
||||
params := &acm.DeleteCertificateInput{
|
||||
CertificateArn: aws.String("Arn"), // Required
|
||||
}
|
||||
resp, err := svc.DeleteCertificate(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleACM_DescribeCertificate() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := acm.New(sess)
|
||||
|
||||
params := &acm.DescribeCertificateInput{
|
||||
CertificateArn: aws.String("Arn"), // Required
|
||||
}
|
||||
resp, err := svc.DescribeCertificate(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleACM_GetCertificate() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := acm.New(sess)
|
||||
|
||||
params := &acm.GetCertificateInput{
|
||||
CertificateArn: aws.String("Arn"), // Required
|
||||
}
|
||||
resp, err := svc.GetCertificate(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleACM_ImportCertificate() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := acm.New(sess)
|
||||
|
||||
params := &acm.ImportCertificateInput{
|
||||
Certificate: []byte("PAYLOAD"), // Required
|
||||
PrivateKey: []byte("PAYLOAD"), // Required
|
||||
CertificateArn: aws.String("Arn"),
|
||||
CertificateChain: []byte("PAYLOAD"),
|
||||
}
|
||||
resp, err := svc.ImportCertificate(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleACM_ListCertificates() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := acm.New(sess)
|
||||
|
||||
params := &acm.ListCertificatesInput{
|
||||
CertificateStatuses: []*string{
|
||||
aws.String("CertificateStatus"), // Required
|
||||
// More values...
|
||||
},
|
||||
MaxItems: aws.Int64(1),
|
||||
NextToken: aws.String("NextToken"),
|
||||
}
|
||||
resp, err := svc.ListCertificates(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleACM_ListTagsForCertificate() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := acm.New(sess)
|
||||
|
||||
params := &acm.ListTagsForCertificateInput{
|
||||
CertificateArn: aws.String("Arn"), // Required
|
||||
}
|
||||
resp, err := svc.ListTagsForCertificate(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleACM_RemoveTagsFromCertificate() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := acm.New(sess)
|
||||
|
||||
params := &acm.RemoveTagsFromCertificateInput{
|
||||
CertificateArn: aws.String("Arn"), // Required
|
||||
Tags: []*acm.Tag{ // Required
|
||||
{ // Required
|
||||
Key: aws.String("TagKey"), // Required
|
||||
Value: aws.String("TagValue"),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.RemoveTagsFromCertificate(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleACM_RequestCertificate() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := acm.New(sess)
|
||||
|
||||
params := &acm.RequestCertificateInput{
|
||||
DomainName: aws.String("DomainNameString"), // Required
|
||||
DomainValidationOptions: []*acm.DomainValidationOption{
|
||||
{ // Required
|
||||
DomainName: aws.String("DomainNameString"), // Required
|
||||
ValidationDomain: aws.String("DomainNameString"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
IdempotencyToken: aws.String("IdempotencyToken"),
|
||||
SubjectAlternativeNames: []*string{
|
||||
aws.String("DomainNameString"), // Required
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.RequestCertificate(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleACM_ResendValidationEmail() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := acm.New(sess)
|
||||
|
||||
params := &acm.ResendValidationEmailInput{
|
||||
CertificateArn: aws.String("Arn"), // Required
|
||||
Domain: aws.String("DomainNameString"), // Required
|
||||
ValidationDomain: aws.String("DomainNameString"), // Required
|
||||
}
|
||||
resp, err := svc.ResendValidationEmail(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
+6
-8
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package acm
|
||||
|
||||
@@ -11,14 +11,12 @@ import (
|
||||
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
|
||||
)
|
||||
|
||||
// Welcome to the AWS Certificate Manager (ACM) API documentation.
|
||||
// ACM provides the API operation methods for making requests to
|
||||
// AWS Certificate Manager. See this package's package overview docs
|
||||
// for details on the service.
|
||||
//
|
||||
// You can use ACM to manage SSL/TLS certificates for your AWS-based websites
|
||||
// and applications. For general information about using ACM, see the AWS Certificate
|
||||
// Manager User Guide (http://docs.aws.amazon.com/acm/latest/userguide/).
|
||||
// The service client's operations are safe to be used concurrently.
|
||||
// It is not safe to mutate any of the client's properties though.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08
|
||||
// ACM methods are safe to use concurrently. It is not safe to
|
||||
// modify mutate any of the struct's properties though.
|
||||
type ACM struct {
|
||||
*client.Client
|
||||
}
|
||||
|
||||
+4076
-1264
File diff suppressed because it is too large
Load Diff
+42
-2
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package apigatewayiface provides an interface to enable mocking the Amazon API Gateway service client
|
||||
// for testing your code.
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
//
|
||||
// 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 the SDK's request pipeline.
|
||||
// to inject custom request handlers into the SDK's request pipeline.
|
||||
//
|
||||
// // myFunc uses an SDK service client to make a request to
|
||||
// // Amazon API Gateway.
|
||||
@@ -92,6 +92,10 @@ type APIGatewayAPI interface {
|
||||
CreateModelWithContext(aws.Context, *apigateway.CreateModelInput, ...request.Option) (*apigateway.Model, error)
|
||||
CreateModelRequest(*apigateway.CreateModelInput) (*request.Request, *apigateway.Model)
|
||||
|
||||
CreateRequestValidator(*apigateway.CreateRequestValidatorInput) (*apigateway.UpdateRequestValidatorOutput, error)
|
||||
CreateRequestValidatorWithContext(aws.Context, *apigateway.CreateRequestValidatorInput, ...request.Option) (*apigateway.UpdateRequestValidatorOutput, error)
|
||||
CreateRequestValidatorRequest(*apigateway.CreateRequestValidatorInput) (*request.Request, *apigateway.UpdateRequestValidatorOutput)
|
||||
|
||||
CreateResource(*apigateway.CreateResourceInput) (*apigateway.Resource, error)
|
||||
CreateResourceWithContext(aws.Context, *apigateway.CreateResourceInput, ...request.Option) (*apigateway.Resource, error)
|
||||
CreateResourceRequest(*apigateway.CreateResourceInput) (*request.Request, *apigateway.Resource)
|
||||
@@ -144,6 +148,10 @@ type APIGatewayAPI interface {
|
||||
DeleteDomainNameWithContext(aws.Context, *apigateway.DeleteDomainNameInput, ...request.Option) (*apigateway.DeleteDomainNameOutput, error)
|
||||
DeleteDomainNameRequest(*apigateway.DeleteDomainNameInput) (*request.Request, *apigateway.DeleteDomainNameOutput)
|
||||
|
||||
DeleteGatewayResponse(*apigateway.DeleteGatewayResponseInput) (*apigateway.DeleteGatewayResponseOutput, error)
|
||||
DeleteGatewayResponseWithContext(aws.Context, *apigateway.DeleteGatewayResponseInput, ...request.Option) (*apigateway.DeleteGatewayResponseOutput, error)
|
||||
DeleteGatewayResponseRequest(*apigateway.DeleteGatewayResponseInput) (*request.Request, *apigateway.DeleteGatewayResponseOutput)
|
||||
|
||||
DeleteIntegration(*apigateway.DeleteIntegrationInput) (*apigateway.DeleteIntegrationOutput, error)
|
||||
DeleteIntegrationWithContext(aws.Context, *apigateway.DeleteIntegrationInput, ...request.Option) (*apigateway.DeleteIntegrationOutput, error)
|
||||
DeleteIntegrationRequest(*apigateway.DeleteIntegrationInput) (*request.Request, *apigateway.DeleteIntegrationOutput)
|
||||
@@ -164,6 +172,10 @@ type APIGatewayAPI interface {
|
||||
DeleteModelWithContext(aws.Context, *apigateway.DeleteModelInput, ...request.Option) (*apigateway.DeleteModelOutput, error)
|
||||
DeleteModelRequest(*apigateway.DeleteModelInput) (*request.Request, *apigateway.DeleteModelOutput)
|
||||
|
||||
DeleteRequestValidator(*apigateway.DeleteRequestValidatorInput) (*apigateway.DeleteRequestValidatorOutput, error)
|
||||
DeleteRequestValidatorWithContext(aws.Context, *apigateway.DeleteRequestValidatorInput, ...request.Option) (*apigateway.DeleteRequestValidatorOutput, error)
|
||||
DeleteRequestValidatorRequest(*apigateway.DeleteRequestValidatorInput) (*request.Request, *apigateway.DeleteRequestValidatorOutput)
|
||||
|
||||
DeleteResource(*apigateway.DeleteResourceInput) (*apigateway.DeleteResourceOutput, error)
|
||||
DeleteResourceWithContext(aws.Context, *apigateway.DeleteResourceInput, ...request.Option) (*apigateway.DeleteResourceOutput, error)
|
||||
DeleteResourceRequest(*apigateway.DeleteResourceInput) (*request.Request, *apigateway.DeleteResourceOutput)
|
||||
@@ -283,6 +295,14 @@ type APIGatewayAPI interface {
|
||||
GetExportWithContext(aws.Context, *apigateway.GetExportInput, ...request.Option) (*apigateway.GetExportOutput, error)
|
||||
GetExportRequest(*apigateway.GetExportInput) (*request.Request, *apigateway.GetExportOutput)
|
||||
|
||||
GetGatewayResponse(*apigateway.GetGatewayResponseInput) (*apigateway.UpdateGatewayResponseOutput, error)
|
||||
GetGatewayResponseWithContext(aws.Context, *apigateway.GetGatewayResponseInput, ...request.Option) (*apigateway.UpdateGatewayResponseOutput, error)
|
||||
GetGatewayResponseRequest(*apigateway.GetGatewayResponseInput) (*request.Request, *apigateway.UpdateGatewayResponseOutput)
|
||||
|
||||
GetGatewayResponses(*apigateway.GetGatewayResponsesInput) (*apigateway.GetGatewayResponsesOutput, error)
|
||||
GetGatewayResponsesWithContext(aws.Context, *apigateway.GetGatewayResponsesInput, ...request.Option) (*apigateway.GetGatewayResponsesOutput, error)
|
||||
GetGatewayResponsesRequest(*apigateway.GetGatewayResponsesInput) (*request.Request, *apigateway.GetGatewayResponsesOutput)
|
||||
|
||||
GetIntegration(*apigateway.GetIntegrationInput) (*apigateway.Integration, error)
|
||||
GetIntegrationWithContext(aws.Context, *apigateway.GetIntegrationInput, ...request.Option) (*apigateway.Integration, error)
|
||||
GetIntegrationRequest(*apigateway.GetIntegrationInput) (*request.Request, *apigateway.Integration)
|
||||
@@ -314,6 +334,14 @@ type APIGatewayAPI interface {
|
||||
GetModelsPages(*apigateway.GetModelsInput, func(*apigateway.GetModelsOutput, bool) bool) error
|
||||
GetModelsPagesWithContext(aws.Context, *apigateway.GetModelsInput, func(*apigateway.GetModelsOutput, bool) bool, ...request.Option) error
|
||||
|
||||
GetRequestValidator(*apigateway.GetRequestValidatorInput) (*apigateway.UpdateRequestValidatorOutput, error)
|
||||
GetRequestValidatorWithContext(aws.Context, *apigateway.GetRequestValidatorInput, ...request.Option) (*apigateway.UpdateRequestValidatorOutput, error)
|
||||
GetRequestValidatorRequest(*apigateway.GetRequestValidatorInput) (*request.Request, *apigateway.UpdateRequestValidatorOutput)
|
||||
|
||||
GetRequestValidators(*apigateway.GetRequestValidatorsInput) (*apigateway.GetRequestValidatorsOutput, error)
|
||||
GetRequestValidatorsWithContext(aws.Context, *apigateway.GetRequestValidatorsInput, ...request.Option) (*apigateway.GetRequestValidatorsOutput, error)
|
||||
GetRequestValidatorsRequest(*apigateway.GetRequestValidatorsInput) (*request.Request, *apigateway.GetRequestValidatorsOutput)
|
||||
|
||||
GetResource(*apigateway.GetResourceInput) (*apigateway.Resource, error)
|
||||
GetResourceWithContext(aws.Context, *apigateway.GetResourceInput, ...request.Option) (*apigateway.Resource, error)
|
||||
GetResourceRequest(*apigateway.GetResourceInput) (*request.Request, *apigateway.Resource)
|
||||
@@ -397,6 +425,10 @@ type APIGatewayAPI interface {
|
||||
ImportRestApiWithContext(aws.Context, *apigateway.ImportRestApiInput, ...request.Option) (*apigateway.RestApi, error)
|
||||
ImportRestApiRequest(*apigateway.ImportRestApiInput) (*request.Request, *apigateway.RestApi)
|
||||
|
||||
PutGatewayResponse(*apigateway.PutGatewayResponseInput) (*apigateway.UpdateGatewayResponseOutput, error)
|
||||
PutGatewayResponseWithContext(aws.Context, *apigateway.PutGatewayResponseInput, ...request.Option) (*apigateway.UpdateGatewayResponseOutput, error)
|
||||
PutGatewayResponseRequest(*apigateway.PutGatewayResponseInput) (*request.Request, *apigateway.UpdateGatewayResponseOutput)
|
||||
|
||||
PutIntegration(*apigateway.PutIntegrationInput) (*apigateway.Integration, error)
|
||||
PutIntegrationWithContext(aws.Context, *apigateway.PutIntegrationInput, ...request.Option) (*apigateway.Integration, error)
|
||||
PutIntegrationRequest(*apigateway.PutIntegrationInput) (*request.Request, *apigateway.Integration)
|
||||
@@ -461,6 +493,10 @@ type APIGatewayAPI interface {
|
||||
UpdateDomainNameWithContext(aws.Context, *apigateway.UpdateDomainNameInput, ...request.Option) (*apigateway.DomainName, error)
|
||||
UpdateDomainNameRequest(*apigateway.UpdateDomainNameInput) (*request.Request, *apigateway.DomainName)
|
||||
|
||||
UpdateGatewayResponse(*apigateway.UpdateGatewayResponseInput) (*apigateway.UpdateGatewayResponseOutput, error)
|
||||
UpdateGatewayResponseWithContext(aws.Context, *apigateway.UpdateGatewayResponseInput, ...request.Option) (*apigateway.UpdateGatewayResponseOutput, error)
|
||||
UpdateGatewayResponseRequest(*apigateway.UpdateGatewayResponseInput) (*request.Request, *apigateway.UpdateGatewayResponseOutput)
|
||||
|
||||
UpdateIntegration(*apigateway.UpdateIntegrationInput) (*apigateway.Integration, error)
|
||||
UpdateIntegrationWithContext(aws.Context, *apigateway.UpdateIntegrationInput, ...request.Option) (*apigateway.Integration, error)
|
||||
UpdateIntegrationRequest(*apigateway.UpdateIntegrationInput) (*request.Request, *apigateway.Integration)
|
||||
@@ -481,6 +517,10 @@ type APIGatewayAPI interface {
|
||||
UpdateModelWithContext(aws.Context, *apigateway.UpdateModelInput, ...request.Option) (*apigateway.Model, error)
|
||||
UpdateModelRequest(*apigateway.UpdateModelInput) (*request.Request, *apigateway.Model)
|
||||
|
||||
UpdateRequestValidator(*apigateway.UpdateRequestValidatorInput) (*apigateway.UpdateRequestValidatorOutput, error)
|
||||
UpdateRequestValidatorWithContext(aws.Context, *apigateway.UpdateRequestValidatorInput, ...request.Option) (*apigateway.UpdateRequestValidatorOutput, error)
|
||||
UpdateRequestValidatorRequest(*apigateway.UpdateRequestValidatorInput) (*request.Request, *apigateway.UpdateRequestValidatorOutput)
|
||||
|
||||
UpdateResource(*apigateway.UpdateResourceInput) (*apigateway.Resource, error)
|
||||
UpdateResourceWithContext(aws.Context, *apigateway.UpdateResourceInput, ...request.Option) (*apigateway.Resource, error)
|
||||
UpdateResourceRequest(*apigateway.UpdateResourceInput) (*request.Request, *apigateway.Resource)
|
||||
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package apigateway provides the client and types for making API
|
||||
// requests to Amazon API Gateway.
|
||||
//
|
||||
// Amazon API Gateway helps developers deliver robust, secure, and scalable
|
||||
// mobile and web application back ends. Amazon API Gateway allows developers
|
||||
// to securely connect mobile and web applications to APIs that run on AWS Lambda,
|
||||
// Amazon EC2, or other publicly addressable web services that are hosted outside
|
||||
// of AWS.
|
||||
//
|
||||
// See apigateway package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/apigateway/
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To Amazon API Gateway 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 API Gateway client APIGateway for more
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/apigateway/#New
|
||||
package apigateway
|
||||
+19
-1
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package apigateway
|
||||
|
||||
@@ -6,29 +6,47 @@ const (
|
||||
|
||||
// ErrCodeBadRequestException for service response error code
|
||||
// "BadRequestException".
|
||||
//
|
||||
// The submitted request is not valid, for example, the input is incomplete
|
||||
// or incorrect. See the accompanying error message for details.
|
||||
ErrCodeBadRequestException = "BadRequestException"
|
||||
|
||||
// ErrCodeConflictException for service response error code
|
||||
// "ConflictException".
|
||||
//
|
||||
// The request configuration has conflicts. For details, see the accompanying
|
||||
// error message.
|
||||
ErrCodeConflictException = "ConflictException"
|
||||
|
||||
// ErrCodeLimitExceededException for service response error code
|
||||
// "LimitExceededException".
|
||||
//
|
||||
// The request exceeded the rate limit. Retry after the specified time period.
|
||||
ErrCodeLimitExceededException = "LimitExceededException"
|
||||
|
||||
// ErrCodeNotFoundException for service response error code
|
||||
// "NotFoundException".
|
||||
//
|
||||
// The requested resource is not found. Make sure that the request URI is correct.
|
||||
ErrCodeNotFoundException = "NotFoundException"
|
||||
|
||||
// ErrCodeServiceUnavailableException for service response error code
|
||||
// "ServiceUnavailableException".
|
||||
//
|
||||
// The requested service is not available. For details see the accompanying
|
||||
// error message. Retry after the specified time period.
|
||||
ErrCodeServiceUnavailableException = "ServiceUnavailableException"
|
||||
|
||||
// ErrCodeTooManyRequestsException for service response error code
|
||||
// "TooManyRequestsException".
|
||||
//
|
||||
// The request has reached its throttling limit. Retry after the specified time
|
||||
// period.
|
||||
ErrCodeTooManyRequestsException = "TooManyRequestsException"
|
||||
|
||||
// ErrCodeUnauthorizedException for service response error code
|
||||
// "UnauthorizedException".
|
||||
//
|
||||
// The request is denied because the caller has insufficient permissions.
|
||||
ErrCodeUnauthorizedException = "UnauthorizedException"
|
||||
)
|
||||
|
||||
-2635
File diff suppressed because it is too large
Load Diff
+7
-8
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package apigateway
|
||||
|
||||
@@ -11,13 +11,12 @@ import (
|
||||
"github.com/aws/aws-sdk-go/private/protocol/restjson"
|
||||
)
|
||||
|
||||
// Amazon API Gateway helps developers deliver robust, secure, and scalable
|
||||
// mobile and web application back ends. Amazon API Gateway allows developers
|
||||
// to securely connect mobile and web applications to APIs that run on AWS Lambda,
|
||||
// Amazon EC2, or other publicly addressable web services that are hosted outside
|
||||
// of AWS.
|
||||
// The service client's operations are safe to be used concurrently.
|
||||
// It is not safe to mutate any of the client's properties though.
|
||||
// APIGateway provides the API operation methods for making requests to
|
||||
// Amazon API Gateway. See this package's package overview docs
|
||||
// for details on the service.
|
||||
//
|
||||
// APIGateway methods are safe to use concurrently. It is not safe to
|
||||
// modify mutate any of the struct's properties though.
|
||||
type APIGateway struct {
|
||||
*client.Client
|
||||
}
|
||||
|
||||
+755
-102
File diff suppressed because it is too large
Load Diff
Generated
Vendored
+2
-2
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// 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.
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
//
|
||||
// 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 the SDK's request pipeline.
|
||||
// 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.
|
||||
|
||||
+63
@@ -0,0 +1,63 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package applicationautoscaling provides the client and types for making API
|
||||
// requests to Application Auto Scaling.
|
||||
//
|
||||
// With Application Auto Scaling, you can automatically scale your AWS resources.
|
||||
// The experience similar to that of Auto Scaling (https://aws.amazon.com/autoscaling/).
|
||||
// You can use Application Auto Scaling to accomplish the following tasks:
|
||||
//
|
||||
// * Define scaling policies to automatically scale your AWS resources
|
||||
//
|
||||
// * Scale your resources in response to CloudWatch alarms
|
||||
//
|
||||
// * View the history of your scaling events
|
||||
//
|
||||
// Application Auto Scaling can scale the following AWS resources:
|
||||
//
|
||||
// * Amazon ECS services. For more information, see Service Auto Scaling
|
||||
// (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-auto-scaling.html)
|
||||
// in the Amazon EC2 Container Service Developer Guide.
|
||||
//
|
||||
// * Amazon EC2 Spot fleets. For more information, see Automatic Scaling
|
||||
// for Spot Fleet (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/fleet-auto-scaling.html)
|
||||
// in the Amazon EC2 User Guide.
|
||||
//
|
||||
// * Amazon EMR clusters. For more information, see Using Automatic Scaling
|
||||
// in Amazon EMR (http://docs.aws.amazon.com/ElasticMapReduce/latest/ManagementGuide/emr-automatic-scaling.html)
|
||||
// in the Amazon EMR Management Guide.
|
||||
//
|
||||
// * AppStream 2.0 fleets. For more information, see Fleet Auto Scaling for
|
||||
// Amazon AppStream 2.0 (http://docs.aws.amazon.com/appstream2/latest/developerguide/autoscaling.html)
|
||||
// in the Amazon AppStream 2.0 Developer Guide.
|
||||
//
|
||||
// * Provisioned read and write capacity for Amazon DynamoDB tables and global
|
||||
// secondary indexes. For more information, see Managing Throughput Capacity
|
||||
// Automatically with DynamoDB Auto Scaling (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/AutoScaling.html)
|
||||
// in the Amazon DynamoDB Developer Guide.
|
||||
//
|
||||
// For a list of supported regions, see AWS Regions and Endpoints: Application
|
||||
// Auto Scaling (http://docs.aws.amazon.com/general/latest/gr/rande.html#as-app_region)
|
||||
// in the AWS General Reference.
|
||||
//
|
||||
// See https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06 for more information on this service.
|
||||
//
|
||||
// See applicationautoscaling package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/applicationautoscaling/
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To Application 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 Application Auto Scaling client ApplicationAutoScaling for more
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/applicationautoscaling/#New
|
||||
package applicationautoscaling
|
||||
+6
-7
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package applicationautoscaling
|
||||
|
||||
@@ -14,12 +14,11 @@ const (
|
||||
// ErrCodeFailedResourceAccessException for service response error code
|
||||
// "FailedResourceAccessException".
|
||||
//
|
||||
// Failed access to resources caused an exception. This exception currently
|
||||
// only applies to DescribeScalingPolicies. It is thrown when Application Auto
|
||||
// Scaling is unable to retrieve the alarms associated with a scaling policy
|
||||
// due to a client error, for example, if the role ARN specified for a scalable
|
||||
// target does not have the proper permissions to call the CloudWatch DescribeAlarms
|
||||
// (http://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html)
|
||||
// Failed access to resources caused an exception. This exception is thrown
|
||||
// when Application Auto Scaling is unable to retrieve the alarms associated
|
||||
// with a scaling policy due to a client error, for example, if the role ARN
|
||||
// specified for a scalable target does not have permission to call the CloudWatch
|
||||
// DescribeAlarms (http://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html)
|
||||
// API operation on behalf of your account.
|
||||
ErrCodeFailedResourceAccessException = "FailedResourceAccessException"
|
||||
|
||||
|
||||
+332
-135
@@ -1,210 +1,407 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package applicationautoscaling_test
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"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 _ bytes.Buffer
|
||||
|
||||
func ExampleApplicationAutoScaling_DeleteScalingPolicy() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := applicationautoscaling.New(sess)
|
||||
|
||||
params := &applicationautoscaling.DeleteScalingPolicyInput{
|
||||
PolicyName: aws.String("ResourceIdMaxLen1600"), // Required
|
||||
ResourceId: aws.String("ResourceIdMaxLen1600"), // Required
|
||||
ScalableDimension: aws.String("ScalableDimension"), // Required
|
||||
ServiceNamespace: aws.String("ServiceNamespace"), // Required
|
||||
}
|
||||
resp, err := svc.DeleteScalingPolicy(params)
|
||||
var _ strings.Reader
|
||||
var _ aws.Config
|
||||
|
||||
func parseTime(layout, value string) *time.Time {
|
||||
t, err := time.Parse(layout, value)
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
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
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
fmt.Println(result)
|
||||
}
|
||||
|
||||
func ExampleApplicationAutoScaling_DeregisterScalableTarget() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := applicationautoscaling.New(sess)
|
||||
|
||||
params := &applicationautoscaling.DeregisterScalableTargetInput{
|
||||
ResourceId: aws.String("ResourceIdMaxLen1600"), // Required
|
||||
ScalableDimension: aws.String("ScalableDimension"), // Required
|
||||
ServiceNamespace: aws.String("ServiceNamespace"), // Required
|
||||
// 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"),
|
||||
}
|
||||
resp, err := svc.DeregisterScalableTarget(params)
|
||||
|
||||
result, err := svc.DeregisterScalableTarget(input)
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
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
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
fmt.Println(result)
|
||||
}
|
||||
|
||||
func ExampleApplicationAutoScaling_DescribeScalableTargets() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := applicationautoscaling.New(sess)
|
||||
|
||||
params := &applicationautoscaling.DescribeScalableTargetsInput{
|
||||
ServiceNamespace: aws.String("ServiceNamespace"), // Required
|
||||
MaxResults: aws.Int64(1),
|
||||
NextToken: aws.String("XmlString"),
|
||||
ResourceIds: []*string{
|
||||
aws.String("ResourceIdMaxLen1600"), // Required
|
||||
// More values...
|
||||
},
|
||||
ScalableDimension: aws.String("ScalableDimension"),
|
||||
// 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"),
|
||||
}
|
||||
resp, err := svc.DescribeScalableTargets(params)
|
||||
|
||||
result, err := svc.DescribeScalableTargets(input)
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
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
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
fmt.Println(result)
|
||||
}
|
||||
|
||||
func ExampleApplicationAutoScaling_DescribeScalingActivities() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := applicationautoscaling.New(sess)
|
||||
|
||||
params := &applicationautoscaling.DescribeScalingActivitiesInput{
|
||||
ServiceNamespace: aws.String("ServiceNamespace"), // Required
|
||||
MaxResults: aws.Int64(1),
|
||||
NextToken: aws.String("XmlString"),
|
||||
ResourceId: aws.String("ResourceIdMaxLen1600"),
|
||||
ScalableDimension: aws.String("ScalableDimension"),
|
||||
// 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"),
|
||||
}
|
||||
resp, err := svc.DescribeScalingActivities(params)
|
||||
|
||||
result, err := svc.DescribeScalingActivities(input)
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
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
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
fmt.Println(result)
|
||||
}
|
||||
|
||||
func ExampleApplicationAutoScaling_DescribeScalingPolicies() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := applicationautoscaling.New(sess)
|
||||
|
||||
params := &applicationautoscaling.DescribeScalingPoliciesInput{
|
||||
ServiceNamespace: aws.String("ServiceNamespace"), // Required
|
||||
MaxResults: aws.Int64(1),
|
||||
NextToken: aws.String("XmlString"),
|
||||
PolicyNames: []*string{
|
||||
aws.String("ResourceIdMaxLen1600"), // Required
|
||||
// More values...
|
||||
},
|
||||
ResourceId: aws.String("ResourceIdMaxLen1600"),
|
||||
ScalableDimension: aws.String("ScalableDimension"),
|
||||
// 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"),
|
||||
}
|
||||
resp, err := svc.DescribeScalingPolicies(params)
|
||||
|
||||
result, err := svc.DescribeScalingPolicies(input)
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
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
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
fmt.Println(result)
|
||||
}
|
||||
|
||||
func ExampleApplicationAutoScaling_PutScalingPolicy() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := applicationautoscaling.New(sess)
|
||||
|
||||
params := &applicationautoscaling.PutScalingPolicyInput{
|
||||
PolicyName: aws.String("PolicyName"), // Required
|
||||
ResourceId: aws.String("ResourceIdMaxLen1600"), // Required
|
||||
ScalableDimension: aws.String("ScalableDimension"), // Required
|
||||
ServiceNamespace: aws.String("ServiceNamespace"), // Required
|
||||
PolicyType: aws.String("PolicyType"),
|
||||
// To apply a scaling policy to an Amazon ECS service
|
||||
//
|
||||
// This example applies a scaling policy to an Amazon ECS service called web-app in
|
||||
// the default cluster. The policy increases the desired count of the service by 200%,
|
||||
// with a cool down period of 60 seconds.
|
||||
func ExampleApplicationAutoScaling_PutScalingPolicy_shared00() {
|
||||
svc := applicationautoscaling.New(session.New())
|
||||
input := &applicationautoscaling.PutScalingPolicyInput{
|
||||
PolicyName: aws.String("web-app-cpu-gt-75"),
|
||||
PolicyType: aws.String("StepScaling"),
|
||||
ResourceId: aws.String("service/default/web-app"),
|
||||
ScalableDimension: aws.String("ecs:service:DesiredCount"),
|
||||
ServiceNamespace: aws.String("ecs"),
|
||||
StepScalingPolicyConfiguration: &applicationautoscaling.StepScalingPolicyConfiguration{
|
||||
AdjustmentType: aws.String("AdjustmentType"),
|
||||
Cooldown: aws.Int64(1),
|
||||
MetricAggregationType: aws.String("MetricAggregationType"),
|
||||
MinAdjustmentMagnitude: aws.Int64(1),
|
||||
AdjustmentType: aws.String("PercentChangeInCapacity"),
|
||||
Cooldown: aws.Int64(60),
|
||||
StepAdjustments: []*applicationautoscaling.StepAdjustment{
|
||||
{ // Required
|
||||
ScalingAdjustment: aws.Int64(1), // Required
|
||||
MetricIntervalLowerBound: aws.Float64(1.0),
|
||||
MetricIntervalUpperBound: aws.Float64(1.0),
|
||||
{
|
||||
MetricIntervalLowerBound: aws.Float64(0.000000),
|
||||
ScalingAdjustment: aws.Int64(200),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
},
|
||||
}
|
||||
resp, err := svc.PutScalingPolicy(params)
|
||||
|
||||
result, err := svc.PutScalingPolicy(input)
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
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
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
fmt.Println(result)
|
||||
}
|
||||
|
||||
func ExampleApplicationAutoScaling_RegisterScalableTarget() {
|
||||
sess := session.Must(session.NewSession())
|
||||
// To apply a scaling policy to an Amazon EC2 Spot fleet
|
||||
//
|
||||
// This example applies a scaling policy to an Amazon EC2 Spot fleet. The policy increases
|
||||
// the target capacity of the spot fleet by 200%, with a cool down period of 180 seconds.",
|
||||
//
|
||||
//
|
||||
func ExampleApplicationAutoScaling_PutScalingPolicy_shared01() {
|
||||
svc := applicationautoscaling.New(session.New())
|
||||
input := &applicationautoscaling.PutScalingPolicyInput{
|
||||
PolicyName: aws.String("fleet-cpu-gt-75"),
|
||||
PolicyType: aws.String("StepScaling"),
|
||||
ResourceId: aws.String("spot-fleet-request/sfr-45e69d8a-be48-4539-bbf3-3464e99c50c3"),
|
||||
ScalableDimension: aws.String("ec2:spot-fleet-request:TargetCapacity"),
|
||||
ServiceNamespace: aws.String("ec2"),
|
||||
StepScalingPolicyConfiguration: &applicationautoscaling.StepScalingPolicyConfiguration{
|
||||
AdjustmentType: aws.String("PercentChangeInCapacity"),
|
||||
Cooldown: aws.Int64(180),
|
||||
StepAdjustments: []*applicationautoscaling.StepAdjustment{
|
||||
{
|
||||
MetricIntervalLowerBound: aws.Float64(0.000000),
|
||||
ScalingAdjustment: aws.Int64(200),
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
svc := applicationautoscaling.New(sess)
|
||||
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
|
||||
}
|
||||
|
||||
params := &applicationautoscaling.RegisterScalableTargetInput{
|
||||
ResourceId: aws.String("ResourceIdMaxLen1600"), // Required
|
||||
ScalableDimension: aws.String("ScalableDimension"), // Required
|
||||
ServiceNamespace: aws.String("ServiceNamespace"), // Required
|
||||
MaxCapacity: aws.Int64(1),
|
||||
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),
|
||||
RoleARN: aws.String("ResourceIdMaxLen1600"),
|
||||
ResourceId: aws.String("service/default/web-app"),
|
||||
RoleARN: aws.String("arn:aws:iam::012345678910:role/ApplicationAutoscalingECSRole"),
|
||||
ScalableDimension: aws.String("ecs:service:DesiredCount"),
|
||||
ServiceNamespace: aws.String("ecs"),
|
||||
}
|
||||
resp, err := svc.RegisterScalableTarget(params)
|
||||
|
||||
result, err := svc.RegisterScalableTarget(input)
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
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
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
fmt.Println(result)
|
||||
}
|
||||
|
||||
// To register an EC2 Spot fleet as a scalable target
|
||||
//
|
||||
// This example registers a scalable target from an Amazon EC2 Spot fleet with a minimum
|
||||
// target capacity of 1 and a maximum of 10.
|
||||
func ExampleApplicationAutoScaling_RegisterScalableTarget_shared01() {
|
||||
svc := applicationautoscaling.New(session.New())
|
||||
input := &applicationautoscaling.RegisterScalableTargetInput{
|
||||
MaxCapacity: aws.Int64(10),
|
||||
MinCapacity: aws.Int64(1),
|
||||
ResourceId: aws.String("spot-fleet-request/sfr-45e69d8a-be48-4539-bbf3-3464e99c50c3"),
|
||||
RoleARN: aws.String("arn:aws:iam::012345678910:role/ApplicationAutoscalingSpotRole"),
|
||||
ScalableDimension: aws.String("ec2:spot-fleet-request:TargetCapacity"),
|
||||
ServiceNamespace: aws.String("ec2"),
|
||||
}
|
||||
|
||||
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)
|
||||
}
|
||||
|
||||
+6
-30
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package applicationautoscaling
|
||||
|
||||
@@ -11,36 +11,12 @@ import (
|
||||
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
|
||||
)
|
||||
|
||||
// With Application Auto Scaling, you can automatically scale your AWS resources.
|
||||
// The experience similar to that of Auto Scaling (https://aws.amazon.com/autoscaling/).
|
||||
// You can use Application Auto Scaling to accomplish the following tasks:
|
||||
// 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.
|
||||
//
|
||||
// * Define scaling policies to automatically scale your AWS resources
|
||||
//
|
||||
// * Scale your resources in response to CloudWatch alarms
|
||||
//
|
||||
// * View the history of your scaling events
|
||||
//
|
||||
// Application Auto Scaling can scale the following AWS resources:
|
||||
//
|
||||
// * Amazon ECS services. For more information, see Service Auto Scaling
|
||||
// (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-auto-scaling.html)
|
||||
// in the Amazon EC2 Container Service Developer Guide.
|
||||
//
|
||||
// * Amazon EC2 Spot fleets. For more information, see Automatic Scaling
|
||||
// for Spot Fleet (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/fleet-auto-scaling.html)
|
||||
// in the Amazon EC2 User Guide.
|
||||
//
|
||||
// * Amazon EMR clusters. For more information, see Using Automatic Scaling
|
||||
// in Amazon EMR (http://docs.aws.amazon.com/ElasticMapReduce/latest/ManagementGuide/emr-automatic-scaling.html)
|
||||
// in the Amazon EMR Management Guide.
|
||||
//
|
||||
// For a list of supported regions, see AWS Regions and Endpoints: Application
|
||||
// Auto Scaling (http://docs.aws.amazon.com/general/latest/gr/rande.html#as-app_region)
|
||||
// in the AWS General Reference.
|
||||
// The service client's operations are safe to be used concurrently.
|
||||
// It is not safe to mutate any of the client's properties though.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06
|
||||
// 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
|
||||
}
|
||||
|
||||
+765
-257
File diff suppressed because it is too large
Load Diff
Generated
Vendored
+10
-2
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// 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.
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
//
|
||||
// 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 the SDK's request pipeline.
|
||||
// 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.
|
||||
@@ -92,6 +92,10 @@ type ApplicationDiscoveryServiceAPI interface {
|
||||
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)
|
||||
|
||||
DescribeTags(*applicationdiscoveryservice.DescribeTagsInput) (*applicationdiscoveryservice.DescribeTagsOutput, error)
|
||||
DescribeTagsWithContext(aws.Context, *applicationdiscoveryservice.DescribeTagsInput, ...request.Option) (*applicationdiscoveryservice.DescribeTagsOutput, error)
|
||||
DescribeTagsRequest(*applicationdiscoveryservice.DescribeTagsInput) (*request.Request, *applicationdiscoveryservice.DescribeTagsOutput)
|
||||
@@ -120,6 +124,10 @@ type ApplicationDiscoveryServiceAPI interface {
|
||||
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)
|
||||
|
||||
StopDataCollectionByAgentIds(*applicationdiscoveryservice.StopDataCollectionByAgentIdsInput) (*applicationdiscoveryservice.StopDataCollectionByAgentIdsOutput, error)
|
||||
StopDataCollectionByAgentIdsWithContext(aws.Context, *applicationdiscoveryservice.StopDataCollectionByAgentIdsInput, ...request.Option) (*applicationdiscoveryservice.StopDataCollectionByAgentIdsOutput, error)
|
||||
StopDataCollectionByAgentIdsRequest(*applicationdiscoveryservice.StopDataCollectionByAgentIdsInput) (*request.Request, *applicationdiscoveryservice.StopDataCollectionByAgentIdsOutput)
|
||||
|
||||
+87
@@ -0,0 +1,87 @@
|
||||
// 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
|
||||
// by automatically identifying servers, virtual machines (VMs), software, and
|
||||
// software dependencies running in your on-premises data centers. Application
|
||||
// Discovery Service also collects application performance data, which can help
|
||||
// you assess the outcome of your migration. The data collected by Application
|
||||
// Discovery Service is securely retained in an Amazon-hosted and managed database
|
||||
// in the cloud. You can export the data as a CSV or XML file into your preferred
|
||||
// visualization tool or cloud-migration solution to plan your migration. For
|
||||
// more information, see the Application Discovery Service FAQ (http://aws.amazon.com/application-discovery/faqs/).
|
||||
//
|
||||
// Application Discovery Service offers two modes of operation.
|
||||
//
|
||||
// * Agentless discovery mode is recommended for environments that use VMware
|
||||
// vCenter Server. This mode doesn't require you to install an agent on each
|
||||
// host. 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 software and software dependencies. It also doesn't work in non-VMware
|
||||
// environments. We recommend that you use agent-based discovery for non-VMware
|
||||
// environments and if you want to collect information about software and
|
||||
// software dependencies. You can also run agent-based and agentless discovery
|
||||
// simultaneously. Use agentless discovery to quickly complete the initial
|
||||
// infrastructure assessment and then install agents on select hosts to gather
|
||||
// information about software and software dependencies.
|
||||
//
|
||||
// * Agent-based discovery mode collects a richer set of data than agentless
|
||||
// discovery by using Amazon software, 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 installed software applications, system and process performance, resource
|
||||
// utilization, and network dependencies between workloads. The information
|
||||
// collected by agents is secured at rest and in transit to the Application
|
||||
// Discovery Service database in the cloud.
|
||||
//
|
||||
// Application Discovery Service integrates with application discovery solutions
|
||||
// from AWS Partner Network (APN) partners. Third-party application discovery
|
||||
// tools can query Application Discovery Service and write to the Application
|
||||
// Discovery Service database using a public API. You can then import the data
|
||||
// into either a visualization tool or cloud-migration solution.
|
||||
//
|
||||
// Application Discovery Service doesn't gather sensitive information. All data
|
||||
// is handled according to the AWS Privacy Policy (http://aws.amazon.com/privacy/).
|
||||
// You can operate Application Discovery Service using offline mode to inspect
|
||||
// collected data before it is shared with the service.
|
||||
//
|
||||
// Your AWS account must be granted access to Application Discovery Service,
|
||||
// a process called whitelisting. This is true for AWS partners and customers
|
||||
// alike. To request access, sign up for AWS Application Discovery Service here
|
||||
// (http://aws.amazon.com/application-discovery/preview/). We send you information
|
||||
// about how to get started.
|
||||
//
|
||||
// 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).
|
||||
//
|
||||
// This guide is intended for use with the AWS Application Discovery Service
|
||||
// User Guide (http://docs.aws.amazon.com/application-discovery/latest/userguide/).
|
||||
//
|
||||
// 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 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
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package applicationdiscoveryservice
|
||||
|
||||
|
||||
Generated
Vendored
-471
@@ -1,471 +0,0 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
|
||||
package applicationdiscoveryservice_test
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/session"
|
||||
"github.com/aws/aws-sdk-go/service/applicationdiscoveryservice"
|
||||
)
|
||||
|
||||
var _ time.Duration
|
||||
var _ bytes.Buffer
|
||||
|
||||
func ExampleApplicationDiscoveryService_AssociateConfigurationItemsToApplication() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := applicationdiscoveryservice.New(sess)
|
||||
|
||||
params := &applicationdiscoveryservice.AssociateConfigurationItemsToApplicationInput{
|
||||
ApplicationConfigurationId: aws.String("ApplicationId"), // Required
|
||||
ConfigurationIds: []*string{ // Required
|
||||
aws.String("ConfigurationId"), // Required
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.AssociateConfigurationItemsToApplication(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleApplicationDiscoveryService_CreateApplication() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := applicationdiscoveryservice.New(sess)
|
||||
|
||||
params := &applicationdiscoveryservice.CreateApplicationInput{
|
||||
Name: aws.String("String"), // Required
|
||||
Description: aws.String("String"),
|
||||
}
|
||||
resp, err := svc.CreateApplication(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleApplicationDiscoveryService_CreateTags() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := applicationdiscoveryservice.New(sess)
|
||||
|
||||
params := &applicationdiscoveryservice.CreateTagsInput{
|
||||
ConfigurationIds: []*string{ // Required
|
||||
aws.String("ConfigurationId"), // Required
|
||||
// More values...
|
||||
},
|
||||
Tags: []*applicationdiscoveryservice.Tag{ // Required
|
||||
{ // Required
|
||||
Key: aws.String("TagKey"), // Required
|
||||
Value: aws.String("TagValue"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.CreateTags(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleApplicationDiscoveryService_DeleteApplications() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := applicationdiscoveryservice.New(sess)
|
||||
|
||||
params := &applicationdiscoveryservice.DeleteApplicationsInput{
|
||||
ConfigurationIds: []*string{ // Required
|
||||
aws.String("ApplicationId"), // Required
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.DeleteApplications(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleApplicationDiscoveryService_DeleteTags() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := applicationdiscoveryservice.New(sess)
|
||||
|
||||
params := &applicationdiscoveryservice.DeleteTagsInput{
|
||||
ConfigurationIds: []*string{ // Required
|
||||
aws.String("ConfigurationId"), // Required
|
||||
// More values...
|
||||
},
|
||||
Tags: []*applicationdiscoveryservice.Tag{
|
||||
{ // Required
|
||||
Key: aws.String("TagKey"), // Required
|
||||
Value: aws.String("TagValue"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.DeleteTags(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleApplicationDiscoveryService_DescribeAgents() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := applicationdiscoveryservice.New(sess)
|
||||
|
||||
params := &applicationdiscoveryservice.DescribeAgentsInput{
|
||||
AgentIds: []*string{
|
||||
aws.String("AgentId"), // Required
|
||||
// More values...
|
||||
},
|
||||
Filters: []*applicationdiscoveryservice.Filter{
|
||||
{ // Required
|
||||
Condition: aws.String("Condition"), // Required
|
||||
Name: aws.String("String"), // Required
|
||||
Values: []*string{ // Required
|
||||
aws.String("FilterValue"), // Required
|
||||
// More values...
|
||||
},
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
MaxResults: aws.Int64(1),
|
||||
NextToken: aws.String("NextToken"),
|
||||
}
|
||||
resp, err := svc.DescribeAgents(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleApplicationDiscoveryService_DescribeConfigurations() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := applicationdiscoveryservice.New(sess)
|
||||
|
||||
params := &applicationdiscoveryservice.DescribeConfigurationsInput{
|
||||
ConfigurationIds: []*string{ // Required
|
||||
aws.String("ConfigurationId"), // Required
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.DescribeConfigurations(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleApplicationDiscoveryService_DescribeExportConfigurations() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := applicationdiscoveryservice.New(sess)
|
||||
|
||||
params := &applicationdiscoveryservice.DescribeExportConfigurationsInput{
|
||||
ExportIds: []*string{
|
||||
aws.String("ConfigurationsExportId"), // Required
|
||||
// More values...
|
||||
},
|
||||
MaxResults: aws.Int64(1),
|
||||
NextToken: aws.String("NextToken"),
|
||||
}
|
||||
resp, err := svc.DescribeExportConfigurations(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleApplicationDiscoveryService_DescribeTags() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := applicationdiscoveryservice.New(sess)
|
||||
|
||||
params := &applicationdiscoveryservice.DescribeTagsInput{
|
||||
Filters: []*applicationdiscoveryservice.TagFilter{
|
||||
{ // Required
|
||||
Name: aws.String("FilterName"), // Required
|
||||
Values: []*string{ // Required
|
||||
aws.String("FilterValue"), // Required
|
||||
// More values...
|
||||
},
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
MaxResults: aws.Int64(1),
|
||||
NextToken: aws.String("NextToken"),
|
||||
}
|
||||
resp, err := svc.DescribeTags(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleApplicationDiscoveryService_DisassociateConfigurationItemsFromApplication() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := applicationdiscoveryservice.New(sess)
|
||||
|
||||
params := &applicationdiscoveryservice.DisassociateConfigurationItemsFromApplicationInput{
|
||||
ApplicationConfigurationId: aws.String("ApplicationId"), // Required
|
||||
ConfigurationIds: []*string{ // Required
|
||||
aws.String("ConfigurationId"), // Required
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.DisassociateConfigurationItemsFromApplication(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleApplicationDiscoveryService_ExportConfigurations() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := applicationdiscoveryservice.New(sess)
|
||||
|
||||
var params *applicationdiscoveryservice.ExportConfigurationsInput
|
||||
resp, err := svc.ExportConfigurations(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleApplicationDiscoveryService_GetDiscoverySummary() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := applicationdiscoveryservice.New(sess)
|
||||
|
||||
var params *applicationdiscoveryservice.GetDiscoverySummaryInput
|
||||
resp, err := svc.GetDiscoverySummary(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleApplicationDiscoveryService_ListConfigurations() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := applicationdiscoveryservice.New(sess)
|
||||
|
||||
params := &applicationdiscoveryservice.ListConfigurationsInput{
|
||||
ConfigurationType: aws.String("ConfigurationItemType"), // Required
|
||||
Filters: []*applicationdiscoveryservice.Filter{
|
||||
{ // Required
|
||||
Condition: aws.String("Condition"), // Required
|
||||
Name: aws.String("String"), // Required
|
||||
Values: []*string{ // Required
|
||||
aws.String("FilterValue"), // Required
|
||||
// More values...
|
||||
},
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
MaxResults: aws.Int64(1),
|
||||
NextToken: aws.String("NextToken"),
|
||||
OrderBy: []*applicationdiscoveryservice.OrderByElement{
|
||||
{ // Required
|
||||
FieldName: aws.String("String"), // Required
|
||||
SortOrder: aws.String("orderString"),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.ListConfigurations(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleApplicationDiscoveryService_ListServerNeighbors() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := applicationdiscoveryservice.New(sess)
|
||||
|
||||
params := &applicationdiscoveryservice.ListServerNeighborsInput{
|
||||
ConfigurationId: aws.String("ConfigurationId"), // Required
|
||||
MaxResults: aws.Int64(1),
|
||||
NeighborConfigurationIds: []*string{
|
||||
aws.String("ConfigurationId"), // Required
|
||||
// More values...
|
||||
},
|
||||
NextToken: aws.String("String"),
|
||||
PortInformationNeeded: aws.Bool(true),
|
||||
}
|
||||
resp, err := svc.ListServerNeighbors(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleApplicationDiscoveryService_StartDataCollectionByAgentIds() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := applicationdiscoveryservice.New(sess)
|
||||
|
||||
params := &applicationdiscoveryservice.StartDataCollectionByAgentIdsInput{
|
||||
AgentIds: []*string{ // Required
|
||||
aws.String("AgentId"), // Required
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.StartDataCollectionByAgentIds(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleApplicationDiscoveryService_StopDataCollectionByAgentIds() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := applicationdiscoveryservice.New(sess)
|
||||
|
||||
params := &applicationdiscoveryservice.StopDataCollectionByAgentIdsInput{
|
||||
AgentIds: []*string{ // Required
|
||||
aws.String("AgentId"), // Required
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.StopDataCollectionByAgentIds(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleApplicationDiscoveryService_UpdateApplication() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := applicationdiscoveryservice.New(sess)
|
||||
|
||||
params := &applicationdiscoveryservice.UpdateApplicationInput{
|
||||
ConfigurationId: aws.String("ApplicationId"), // Required
|
||||
Description: aws.String("String"),
|
||||
Name: aws.String("String"),
|
||||
}
|
||||
resp, err := svc.UpdateApplication(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
+6
-63
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package applicationdiscoveryservice
|
||||
|
||||
@@ -11,69 +11,12 @@ import (
|
||||
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
|
||||
)
|
||||
|
||||
// AWS Application Discovery Service helps you plan application migration projects
|
||||
// by automatically identifying servers, virtual machines (VMs), software, and
|
||||
// software dependencies running in your on-premises data centers. Application
|
||||
// Discovery Service also collects application performance data, which can help
|
||||
// you assess the outcome of your migration. The data collected by Application
|
||||
// Discovery Service is securely retained in an Amazon-hosted and managed database
|
||||
// in the cloud. You can export the data as a CSV or XML file into your preferred
|
||||
// visualization tool or cloud-migration solution to plan your migration. For
|
||||
// more information, see the Application Discovery Service FAQ (http://aws.amazon.com/application-discovery/faqs/).
|
||||
// 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.
|
||||
//
|
||||
// Application Discovery Service offers two modes of operation.
|
||||
//
|
||||
// * Agentless discovery mode is recommended for environments that use VMware
|
||||
// vCenter Server. This mode doesn't require you to install an agent on each
|
||||
// host. 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 software and software dependencies. It also doesn't work in non-VMware
|
||||
// environments. We recommend that you use agent-based discovery for non-VMware
|
||||
// environments and if you want to collect information about software and
|
||||
// software dependencies. You can also run agent-based and agentless discovery
|
||||
// simultaneously. Use agentless discovery to quickly complete the initial
|
||||
// infrastructure assessment and then install agents on select hosts to gather
|
||||
// information about software and software dependencies.
|
||||
//
|
||||
// * Agent-based discovery mode collects a richer set of data than agentless
|
||||
// discovery by using Amazon software, 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 installed software applications, system and process performance, resource
|
||||
// utilization, and network dependencies between workloads. The information
|
||||
// collected by agents is secured at rest and in transit to the Application
|
||||
// Discovery Service database in the cloud.
|
||||
//
|
||||
// Application Discovery Service integrates with application discovery solutions
|
||||
// from AWS Partner Network (APN) partners. Third-party application discovery
|
||||
// tools can query the Application Discovery Service and write to the Application
|
||||
// Discovery Service database using a public API. You can then import the data
|
||||
// into either a visualization tool or cloud-migration solution.
|
||||
//
|
||||
// Application Discovery Service doesn't gather sensitive information. All data
|
||||
// is handled according to the AWS Privacy Policy (http://aws.amazon.com/privacy/).
|
||||
// You can operate Application Discovery Service using offline mode to inspect
|
||||
// collected data before it is shared with the service.
|
||||
//
|
||||
// Your AWS account must be granted access to Application Discovery Service,
|
||||
// a process called whitelisting. This is true for AWS partners and customers
|
||||
// alike. To request access, sign up for the AWS Application Discovery Service
|
||||
// here (http://aws.amazon.com/application-discovery/preview/). We will send
|
||||
// you information about how to get started.
|
||||
//
|
||||
// This API reference provides descriptions, syntax, and usage examples for
|
||||
// each of the actions and data types for the 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).
|
||||
//
|
||||
// This guide is intended for use with the AWS Application Discovery Service
|
||||
// User Guide (http://docs.aws.amazon.com/application-discovery/latest/userguide/).
|
||||
// The service client's operations are safe to be used concurrently.
|
||||
// It is not safe to mutate any of the client's properties though.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01
|
||||
// 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
|
||||
}
|
||||
|
||||
+1557
-241
File diff suppressed because it is too large
Load Diff
+18
-2
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// 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.
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
//
|
||||
// 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 the SDK's request pipeline.
|
||||
// to inject custom request handlers into the SDK's request pipeline.
|
||||
//
|
||||
// // myFunc uses an SDK service client to make a request to
|
||||
// // Amazon AppStream.
|
||||
@@ -64,6 +64,10 @@ type AppStreamAPI interface {
|
||||
AssociateFleetWithContext(aws.Context, *appstream.AssociateFleetInput, ...request.Option) (*appstream.AssociateFleetOutput, error)
|
||||
AssociateFleetRequest(*appstream.AssociateFleetInput) (*request.Request, *appstream.AssociateFleetOutput)
|
||||
|
||||
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)
|
||||
@@ -76,6 +80,10 @@ type AppStreamAPI interface {
|
||||
CreateStreamingURLWithContext(aws.Context, *appstream.CreateStreamingURLInput, ...request.Option) (*appstream.CreateStreamingURLOutput, error)
|
||||
CreateStreamingURLRequest(*appstream.CreateStreamingURLInput) (*request.Request, *appstream.CreateStreamingURLOutput)
|
||||
|
||||
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)
|
||||
@@ -84,6 +92,10 @@ type AppStreamAPI interface {
|
||||
DeleteStackWithContext(aws.Context, *appstream.DeleteStackInput, ...request.Option) (*appstream.DeleteStackOutput, error)
|
||||
DeleteStackRequest(*appstream.DeleteStackInput) (*request.Request, *appstream.DeleteStackOutput)
|
||||
|
||||
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)
|
||||
@@ -124,6 +136,10 @@ type AppStreamAPI interface {
|
||||
StopFleetWithContext(aws.Context, *appstream.StopFleetInput, ...request.Option) (*appstream.StopFleetOutput, error)
|
||||
StopFleetRequest(*appstream.StopFleetInput) (*request.Request, *appstream.StopFleetOutput)
|
||||
|
||||
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)
|
||||
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
// 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.
|
||||
//
|
||||
// API documentation for Amazon AppStream 2.0.
|
||||
//
|
||||
// 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 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
|
||||
+19
-1
@@ -1,9 +1,27 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package appstream
|
||||
|
||||
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 does not support storage connectors.
|
||||
ErrCodeIncompatibleImageException = "IncompatibleImageException"
|
||||
|
||||
// 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".
|
||||
//
|
||||
|
||||
-453
@@ -1,453 +0,0 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
|
||||
package appstream_test
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/session"
|
||||
"github.com/aws/aws-sdk-go/service/appstream"
|
||||
)
|
||||
|
||||
var _ time.Duration
|
||||
var _ bytes.Buffer
|
||||
|
||||
func ExampleAppStream_AssociateFleet() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := appstream.New(sess)
|
||||
|
||||
params := &appstream.AssociateFleetInput{
|
||||
FleetName: aws.String("String"), // Required
|
||||
StackName: aws.String("String"), // Required
|
||||
}
|
||||
resp, err := svc.AssociateFleet(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleAppStream_CreateFleet() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := appstream.New(sess)
|
||||
|
||||
params := &appstream.CreateFleetInput{
|
||||
ComputeCapacity: &appstream.ComputeCapacity{ // Required
|
||||
DesiredInstances: aws.Int64(1), // Required
|
||||
},
|
||||
ImageName: aws.String("String"), // Required
|
||||
InstanceType: aws.String("String"), // Required
|
||||
Name: aws.String("Name"), // Required
|
||||
Description: aws.String("Description"),
|
||||
DisconnectTimeoutInSeconds: aws.Int64(1),
|
||||
DisplayName: aws.String("DisplayName"),
|
||||
MaxUserDurationInSeconds: aws.Int64(1),
|
||||
VpcConfig: &appstream.VpcConfig{
|
||||
SubnetIds: []*string{ // Required
|
||||
aws.String("String"), // Required
|
||||
// More values...
|
||||
},
|
||||
},
|
||||
}
|
||||
resp, err := svc.CreateFleet(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleAppStream_CreateStack() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := appstream.New(sess)
|
||||
|
||||
params := &appstream.CreateStackInput{
|
||||
Name: aws.String("String"), // Required
|
||||
Description: aws.String("Description"),
|
||||
DisplayName: aws.String("DisplayName"),
|
||||
}
|
||||
resp, err := svc.CreateStack(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleAppStream_CreateStreamingURL() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := appstream.New(sess)
|
||||
|
||||
params := &appstream.CreateStreamingURLInput{
|
||||
FleetName: aws.String("String"), // Required
|
||||
StackName: aws.String("String"), // Required
|
||||
UserId: aws.String("UserId"), // Required
|
||||
ApplicationId: aws.String("String"),
|
||||
SessionContext: aws.String("String"),
|
||||
Validity: aws.Int64(1),
|
||||
}
|
||||
resp, err := svc.CreateStreamingURL(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleAppStream_DeleteFleet() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := appstream.New(sess)
|
||||
|
||||
params := &appstream.DeleteFleetInput{
|
||||
Name: aws.String("String"), // Required
|
||||
}
|
||||
resp, err := svc.DeleteFleet(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleAppStream_DeleteStack() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := appstream.New(sess)
|
||||
|
||||
params := &appstream.DeleteStackInput{
|
||||
Name: aws.String("String"), // Required
|
||||
}
|
||||
resp, err := svc.DeleteStack(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleAppStream_DescribeFleets() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := appstream.New(sess)
|
||||
|
||||
params := &appstream.DescribeFleetsInput{
|
||||
Names: []*string{
|
||||
aws.String("String"), // Required
|
||||
// More values...
|
||||
},
|
||||
NextToken: aws.String("String"),
|
||||
}
|
||||
resp, err := svc.DescribeFleets(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleAppStream_DescribeImages() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := appstream.New(sess)
|
||||
|
||||
params := &appstream.DescribeImagesInput{
|
||||
Names: []*string{
|
||||
aws.String("String"), // Required
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.DescribeImages(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleAppStream_DescribeSessions() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := appstream.New(sess)
|
||||
|
||||
params := &appstream.DescribeSessionsInput{
|
||||
FleetName: aws.String("String"), // Required
|
||||
StackName: aws.String("String"), // Required
|
||||
Limit: aws.Int64(1),
|
||||
NextToken: aws.String("String"),
|
||||
UserId: aws.String("UserId"),
|
||||
}
|
||||
resp, err := svc.DescribeSessions(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleAppStream_DescribeStacks() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := appstream.New(sess)
|
||||
|
||||
params := &appstream.DescribeStacksInput{
|
||||
Names: []*string{
|
||||
aws.String("String"), // Required
|
||||
// More values...
|
||||
},
|
||||
NextToken: aws.String("String"),
|
||||
}
|
||||
resp, err := svc.DescribeStacks(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleAppStream_DisassociateFleet() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := appstream.New(sess)
|
||||
|
||||
params := &appstream.DisassociateFleetInput{
|
||||
FleetName: aws.String("String"), // Required
|
||||
StackName: aws.String("String"), // Required
|
||||
}
|
||||
resp, err := svc.DisassociateFleet(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleAppStream_ExpireSession() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := appstream.New(sess)
|
||||
|
||||
params := &appstream.ExpireSessionInput{
|
||||
SessionId: aws.String("String"), // Required
|
||||
}
|
||||
resp, err := svc.ExpireSession(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleAppStream_ListAssociatedFleets() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := appstream.New(sess)
|
||||
|
||||
params := &appstream.ListAssociatedFleetsInput{
|
||||
StackName: aws.String("String"), // Required
|
||||
NextToken: aws.String("String"),
|
||||
}
|
||||
resp, err := svc.ListAssociatedFleets(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleAppStream_ListAssociatedStacks() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := appstream.New(sess)
|
||||
|
||||
params := &appstream.ListAssociatedStacksInput{
|
||||
FleetName: aws.String("String"), // Required
|
||||
NextToken: aws.String("String"),
|
||||
}
|
||||
resp, err := svc.ListAssociatedStacks(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleAppStream_StartFleet() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := appstream.New(sess)
|
||||
|
||||
params := &appstream.StartFleetInput{
|
||||
Name: aws.String("String"), // Required
|
||||
}
|
||||
resp, err := svc.StartFleet(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleAppStream_StopFleet() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := appstream.New(sess)
|
||||
|
||||
params := &appstream.StopFleetInput{
|
||||
Name: aws.String("String"), // Required
|
||||
}
|
||||
resp, err := svc.StopFleet(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleAppStream_UpdateFleet() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := appstream.New(sess)
|
||||
|
||||
params := &appstream.UpdateFleetInput{
|
||||
Name: aws.String("String"), // Required
|
||||
ComputeCapacity: &appstream.ComputeCapacity{
|
||||
DesiredInstances: aws.Int64(1), // Required
|
||||
},
|
||||
DeleteVpcConfig: aws.Bool(true),
|
||||
Description: aws.String("Description"),
|
||||
DisconnectTimeoutInSeconds: aws.Int64(1),
|
||||
DisplayName: aws.String("DisplayName"),
|
||||
ImageName: aws.String("String"),
|
||||
InstanceType: aws.String("String"),
|
||||
MaxUserDurationInSeconds: aws.Int64(1),
|
||||
VpcConfig: &appstream.VpcConfig{
|
||||
SubnetIds: []*string{ // Required
|
||||
aws.String("String"), // Required
|
||||
// More values...
|
||||
},
|
||||
},
|
||||
}
|
||||
resp, err := svc.UpdateFleet(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleAppStream_UpdateStack() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := appstream.New(sess)
|
||||
|
||||
params := &appstream.UpdateStackInput{
|
||||
Name: aws.String("String"), // Required
|
||||
Description: aws.String("Description"),
|
||||
DisplayName: aws.String("DisplayName"),
|
||||
}
|
||||
resp, err := svc.UpdateStack(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
+7
-5
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package appstream
|
||||
|
||||
@@ -11,10 +11,12 @@ import (
|
||||
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
|
||||
)
|
||||
|
||||
// API documentation for Amazon AppStream 2.0.
|
||||
// The service client's operations are safe to be used concurrently.
|
||||
// It is not safe to mutate any of the client's properties though.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01
|
||||
// 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
|
||||
}
|
||||
|
||||
+21
-11
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package appstream
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
|
||||
// WaitUntilFleetStarted uses the Amazon AppStream API operation
|
||||
// DescribeFleets to wait for a condition to be met before returning.
|
||||
// If the condition is not meet within the max attempt window an error will
|
||||
// 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)
|
||||
@@ -33,23 +33,28 @@ func (c *AppStream) WaitUntilFleetStartedWithContext(ctx aws.Context, input *Des
|
||||
Acceptors: []request.WaiterAcceptor{
|
||||
{
|
||||
State: request.SuccessWaiterState,
|
||||
Matcher: request.PathAllWaiterMatch, Argument: "fleets[].state",
|
||||
Matcher: request.PathAllWaiterMatch, Argument: "Fleets[].State",
|
||||
Expected: "ACTIVE",
|
||||
},
|
||||
{
|
||||
State: request.FailureWaiterState,
|
||||
Matcher: request.PathAnyWaiterMatch, Argument: "fleets[].state",
|
||||
Matcher: request.PathAnyWaiterMatch, Argument: "Fleets[].State",
|
||||
Expected: "PENDING_DEACTIVATE",
|
||||
},
|
||||
{
|
||||
State: request.FailureWaiterState,
|
||||
Matcher: request.PathAnyWaiterMatch, Argument: "fleets[].state",
|
||||
Matcher: request.PathAnyWaiterMatch, Argument: "Fleets[].State",
|
||||
Expected: "INACTIVE",
|
||||
},
|
||||
},
|
||||
Logger: c.Config.Logger,
|
||||
NewRequest: func(opts []request.Option) (*request.Request, error) {
|
||||
req, _ := c.DescribeFleetsRequest(input)
|
||||
var inCpy *DescribeFleetsInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.DescribeFleetsRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
@@ -62,7 +67,7 @@ func (c *AppStream) WaitUntilFleetStartedWithContext(ctx aws.Context, input *Des
|
||||
|
||||
// WaitUntilFleetStopped uses the Amazon AppStream API operation
|
||||
// DescribeFleets to wait for a condition to be met before returning.
|
||||
// If the condition is not meet within the max attempt window an error will
|
||||
// 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)
|
||||
@@ -84,23 +89,28 @@ func (c *AppStream) WaitUntilFleetStoppedWithContext(ctx aws.Context, input *Des
|
||||
Acceptors: []request.WaiterAcceptor{
|
||||
{
|
||||
State: request.SuccessWaiterState,
|
||||
Matcher: request.PathAllWaiterMatch, Argument: "fleets[].state",
|
||||
Matcher: request.PathAllWaiterMatch, Argument: "Fleets[].State",
|
||||
Expected: "INACTIVE",
|
||||
},
|
||||
{
|
||||
State: request.FailureWaiterState,
|
||||
Matcher: request.PathAnyWaiterMatch, Argument: "fleets[].state",
|
||||
Matcher: request.PathAnyWaiterMatch, Argument: "Fleets[].State",
|
||||
Expected: "PENDING_ACTIVATE",
|
||||
},
|
||||
{
|
||||
State: request.FailureWaiterState,
|
||||
Matcher: request.PathAnyWaiterMatch, Argument: "fleets[].state",
|
||||
Matcher: request.PathAnyWaiterMatch, Argument: "Fleets[].State",
|
||||
Expected: "ACTIVE",
|
||||
},
|
||||
},
|
||||
Logger: c.Config.Logger,
|
||||
NewRequest: func(opts []request.Option) (*request.Request, error) {
|
||||
req, _ := c.DescribeFleetsRequest(input)
|
||||
var inCpy *DescribeFleetsInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.DescribeFleetsRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
|
||||
+2738
File diff suppressed because it is too large
Load Diff
+117
@@ -0,0 +1,117 @@
|
||||
// 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)
|
||||
|
||||
CreateNamedQuery(*athena.CreateNamedQueryInput) (*athena.CreateNamedQueryOutput, error)
|
||||
CreateNamedQueryWithContext(aws.Context, *athena.CreateNamedQueryInput, ...request.Option) (*athena.CreateNamedQueryOutput, error)
|
||||
CreateNamedQueryRequest(*athena.CreateNamedQueryInput) (*request.Request, *athena.CreateNamedQueryOutput)
|
||||
|
||||
DeleteNamedQuery(*athena.DeleteNamedQueryInput) (*athena.DeleteNamedQueryOutput, error)
|
||||
DeleteNamedQueryWithContext(aws.Context, *athena.DeleteNamedQueryInput, ...request.Option) (*athena.DeleteNamedQueryOutput, error)
|
||||
DeleteNamedQueryRequest(*athena.DeleteNamedQueryInput) (*request.Request, *athena.DeleteNamedQueryOutput)
|
||||
|
||||
GetNamedQuery(*athena.GetNamedQueryInput) (*athena.GetNamedQueryOutput, error)
|
||||
GetNamedQueryWithContext(aws.Context, *athena.GetNamedQueryInput, ...request.Option) (*athena.GetNamedQueryOutput, error)
|
||||
GetNamedQueryRequest(*athena.GetNamedQueryInput) (*request.Request, *athena.GetNamedQueryOutput)
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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)
|
||||
}
|
||||
|
||||
var _ AthenaAPI = (*athena.Athena)(nil)
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// 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.
|
||||
//
|
||||
// For code samples using the AWS 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.
|
||||
//
|
||||
// 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 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
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package athena
|
||||
|
||||
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"
|
||||
|
||||
// ErrCodeTooManyRequestsException for service response error code
|
||||
// "TooManyRequestsException".
|
||||
//
|
||||
// Indicates that the request was throttled.
|
||||
ErrCodeTooManyRequestsException = "TooManyRequestsException"
|
||||
)
|
||||
+95
@@ -0,0 +1,95 @@
|
||||
// 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/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" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
)
|
||||
|
||||
// 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:
|
||||
// // 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.Endpoint, c.SigningRegion, c.SigningName)
|
||||
}
|
||||
|
||||
// newClient creates, initializes and returns a new service client instance.
|
||||
func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *Athena {
|
||||
svc := &Athena{
|
||||
Client: client.New(
|
||||
cfg,
|
||||
metadata.ClientInfo{
|
||||
ServiceName: ServiceName,
|
||||
SigningName: signingName,
|
||||
SigningRegion: signingRegion,
|
||||
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(jsonrpc.UnmarshalErrorHandler)
|
||||
|
||||
// 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
|
||||
}
|
||||
+1121
-699
File diff suppressed because it is too large
Load Diff
Generated
Vendored
+2
-2
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// 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.
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
//
|
||||
// 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 the SDK's request pipeline.
|
||||
// to inject custom request handlers into the SDK's request pipeline.
|
||||
//
|
||||
// // myFunc uses an SDK service client to make a request to
|
||||
// // Auto Scaling.
|
||||
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
// 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.
|
||||
//
|
||||
// Auto Scaling is designed to automatically launch or terminate EC2 instances
|
||||
// based on user-defined policies, schedules, and health checks. Use this service
|
||||
// in conjunction with the Amazon CloudWatch and Elastic Load Balancing services.
|
||||
//
|
||||
// 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 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
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package autoscaling
|
||||
|
||||
|
||||
+1557
-1004
File diff suppressed because it is too large
Load Diff
+7
-7
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package autoscaling
|
||||
|
||||
@@ -11,12 +11,12 @@ import (
|
||||
"github.com/aws/aws-sdk-go/private/protocol/query"
|
||||
)
|
||||
|
||||
// Auto Scaling is designed to automatically launch or terminate EC2 instances
|
||||
// based on user-defined policies, schedules, and health checks. Use this service
|
||||
// in conjunction with the Amazon CloudWatch and Elastic Load Balancing services.
|
||||
// The service client's operations are safe to be used concurrently.
|
||||
// It is not safe to mutate any of the client's properties though.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01
|
||||
// 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
|
||||
}
|
||||
|
||||
+22
-7
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package autoscaling
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
|
||||
// WaitUntilGroupExists uses the Auto Scaling API operation
|
||||
// DescribeAutoScalingGroups to wait for a condition to be met before returning.
|
||||
// If the condition is not meet within the max attempt window an error will
|
||||
// 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)
|
||||
@@ -44,7 +44,12 @@ func (c *AutoScaling) WaitUntilGroupExistsWithContext(ctx aws.Context, input *De
|
||||
},
|
||||
Logger: c.Config.Logger,
|
||||
NewRequest: func(opts []request.Option) (*request.Request, error) {
|
||||
req, _ := c.DescribeAutoScalingGroupsRequest(input)
|
||||
var inCpy *DescribeAutoScalingGroupsInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.DescribeAutoScalingGroupsRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
@@ -57,7 +62,7 @@ func (c *AutoScaling) WaitUntilGroupExistsWithContext(ctx aws.Context, input *De
|
||||
|
||||
// WaitUntilGroupInService uses the Auto Scaling API operation
|
||||
// DescribeAutoScalingGroups to wait for a condition to be met before returning.
|
||||
// If the condition is not meet within the max attempt window an error will
|
||||
// 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)
|
||||
@@ -90,7 +95,12 @@ func (c *AutoScaling) WaitUntilGroupInServiceWithContext(ctx aws.Context, input
|
||||
},
|
||||
Logger: c.Config.Logger,
|
||||
NewRequest: func(opts []request.Option) (*request.Request, error) {
|
||||
req, _ := c.DescribeAutoScalingGroupsRequest(input)
|
||||
var inCpy *DescribeAutoScalingGroupsInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.DescribeAutoScalingGroupsRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
@@ -103,7 +113,7 @@ func (c *AutoScaling) WaitUntilGroupInServiceWithContext(ctx aws.Context, input
|
||||
|
||||
// WaitUntilGroupNotExists uses the Auto Scaling API operation
|
||||
// DescribeAutoScalingGroups to wait for a condition to be met before returning.
|
||||
// If the condition is not meet within the max attempt window an error will
|
||||
// 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)
|
||||
@@ -136,7 +146,12 @@ func (c *AutoScaling) WaitUntilGroupNotExistsWithContext(ctx aws.Context, input
|
||||
},
|
||||
Logger: c.Config.Logger,
|
||||
NewRequest: func(opts []request.Option) (*request.Request, error) {
|
||||
req, _ := c.DescribeAutoScalingGroupsRequest(input)
|
||||
var inCpy *DescribeAutoScalingGroupsInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.DescribeAutoScalingGroupsRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
|
||||
+433
-190
@@ -1,6 +1,5 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package batch provides a client for AWS Batch.
|
||||
package batch
|
||||
|
||||
import (
|
||||
@@ -15,19 +14,18 @@ const opCancelJob = "CancelJob"
|
||||
|
||||
// CancelJobRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CancelJob operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See CancelJob for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CancelJob method directly
|
||||
// instead.
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CancelJobRequest method.
|
||||
// req, resp := client.CancelJobRequest(params)
|
||||
@@ -104,19 +102,18 @@ const opCreateComputeEnvironment = "CreateComputeEnvironment"
|
||||
|
||||
// CreateComputeEnvironmentRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateComputeEnvironment operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See CreateComputeEnvironment for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateComputeEnvironment method directly
|
||||
// instead.
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateComputeEnvironmentRequest method.
|
||||
// req, resp := client.CreateComputeEnvironmentRequest(params)
|
||||
@@ -145,16 +142,16 @@ func (c *Batch) CreateComputeEnvironmentRequest(input *CreateComputeEnvironmentI
|
||||
|
||||
// CreateComputeEnvironment API operation for AWS Batch.
|
||||
//
|
||||
// Creates an AWS Batch compute environment. You can create MANAGED or UNMANAGEDcompute
|
||||
// environments.
|
||||
// Creates an AWS Batch compute environment. You can create MANAGED or UNMANAGED
|
||||
// compute environments.
|
||||
//
|
||||
// In a managed compute environment, AWS Batch manages the compute resources
|
||||
// within the environment, based on the compute resources that you specify.
|
||||
// Instances launched into a managed compute environment use the latest Amazon
|
||||
// ECS-optimized AMI. You can choose to use Amazon EC2 On-Demand instances in
|
||||
// your managed compute environment, or you can use Amazon EC2 Spot instances
|
||||
// that only launch when the Spot bid price is below a specified percentage
|
||||
// of the On-Demand price.
|
||||
// Instances launched into a managed compute environment use a recent, approved
|
||||
// version of the Amazon ECS-optimized AMI. You can choose to use Amazon EC2
|
||||
// On-Demand instances in your managed compute environment, or you can use Amazon
|
||||
// EC2 Spot instances that only launch when the Spot bid price is below a specified
|
||||
// percentage of the On-Demand price.
|
||||
//
|
||||
// In an unmanaged compute environment, you can manage your own compute resources.
|
||||
// This provides more compute resource configuration options, such as using
|
||||
@@ -210,19 +207,18 @@ const opCreateJobQueue = "CreateJobQueue"
|
||||
|
||||
// CreateJobQueueRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateJobQueue operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See CreateJobQueue for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateJobQueue method directly
|
||||
// instead.
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateJobQueueRequest method.
|
||||
// req, resp := client.CreateJobQueueRequest(params)
|
||||
@@ -303,19 +299,18 @@ const opDeleteComputeEnvironment = "DeleteComputeEnvironment"
|
||||
|
||||
// DeleteComputeEnvironmentRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteComputeEnvironment operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DeleteComputeEnvironment for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteComputeEnvironment method directly
|
||||
// instead.
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteComputeEnvironmentRequest method.
|
||||
// req, resp := client.DeleteComputeEnvironmentRequest(params)
|
||||
@@ -392,19 +387,18 @@ const opDeleteJobQueue = "DeleteJobQueue"
|
||||
|
||||
// DeleteJobQueueRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteJobQueue operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DeleteJobQueue for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteJobQueue method directly
|
||||
// instead.
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteJobQueueRequest method.
|
||||
// req, resp := client.DeleteJobQueueRequest(params)
|
||||
@@ -434,8 +428,8 @@ func (c *Batch) DeleteJobQueueRequest(input *DeleteJobQueueInput) (req *request.
|
||||
// DeleteJobQueue API operation for AWS Batch.
|
||||
//
|
||||
// Deletes the specified job queue. You must first disable submissions for a
|
||||
// queue with the UpdateJobQueue operation and terminate any jobs that have
|
||||
// not completed with the TerminateJob.
|
||||
// queue with the UpdateJobQueue operation. All jobs in the queue are terminated
|
||||
// when you delete a job queue.
|
||||
//
|
||||
// It is not necessary to disassociate compute environments from a queue before
|
||||
// submitting a DeleteJobQueue request.
|
||||
@@ -482,19 +476,18 @@ const opDeregisterJobDefinition = "DeregisterJobDefinition"
|
||||
|
||||
// DeregisterJobDefinitionRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeregisterJobDefinition operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DeregisterJobDefinition for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeregisterJobDefinition method directly
|
||||
// instead.
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeregisterJobDefinitionRequest method.
|
||||
// req, resp := client.DeregisterJobDefinitionRequest(params)
|
||||
@@ -567,19 +560,18 @@ const opDescribeComputeEnvironments = "DescribeComputeEnvironments"
|
||||
|
||||
// DescribeComputeEnvironmentsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeComputeEnvironments operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeComputeEnvironments for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeComputeEnvironments method directly
|
||||
// instead.
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeComputeEnvironmentsRequest method.
|
||||
// req, resp := client.DescribeComputeEnvironmentsRequest(params)
|
||||
@@ -656,19 +648,18 @@ const opDescribeJobDefinitions = "DescribeJobDefinitions"
|
||||
|
||||
// DescribeJobDefinitionsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeJobDefinitions operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeJobDefinitions for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeJobDefinitions method directly
|
||||
// instead.
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeJobDefinitionsRequest method.
|
||||
// req, resp := client.DescribeJobDefinitionsRequest(params)
|
||||
@@ -742,19 +733,18 @@ const opDescribeJobQueues = "DescribeJobQueues"
|
||||
|
||||
// DescribeJobQueuesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeJobQueues operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeJobQueues for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeJobQueues method directly
|
||||
// instead.
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeJobQueuesRequest method.
|
||||
// req, resp := client.DescribeJobQueuesRequest(params)
|
||||
@@ -827,19 +817,18 @@ const opDescribeJobs = "DescribeJobs"
|
||||
|
||||
// DescribeJobsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeJobs operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeJobs for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeJobs method directly
|
||||
// instead.
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeJobsRequest method.
|
||||
// req, resp := client.DescribeJobsRequest(params)
|
||||
@@ -912,19 +901,18 @@ const opListJobs = "ListJobs"
|
||||
|
||||
// ListJobsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListJobs operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See ListJobs for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListJobs method directly
|
||||
// instead.
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListJobsRequest method.
|
||||
// req, resp := client.ListJobsRequest(params)
|
||||
@@ -954,7 +942,8 @@ func (c *Batch) ListJobsRequest(input *ListJobsInput) (req *request.Request, out
|
||||
// ListJobs API operation for AWS Batch.
|
||||
//
|
||||
// Returns a list of task jobs for a specified job queue. You can filter the
|
||||
// results by job status with the jobStatus parameter.
|
||||
// results by job status with the jobStatus parameter. If you do not 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
|
||||
@@ -998,19 +987,18 @@ const opRegisterJobDefinition = "RegisterJobDefinition"
|
||||
|
||||
// RegisterJobDefinitionRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the RegisterJobDefinition operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See RegisterJobDefinition for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the RegisterJobDefinition method directly
|
||||
// instead.
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the RegisterJobDefinitionRequest method.
|
||||
// req, resp := client.RegisterJobDefinitionRequest(params)
|
||||
@@ -1083,19 +1071,18 @@ const opSubmitJob = "SubmitJob"
|
||||
|
||||
// SubmitJobRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the SubmitJob operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See SubmitJob for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the SubmitJob method directly
|
||||
// instead.
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the SubmitJobRequest method.
|
||||
// req, resp := client.SubmitJobRequest(params)
|
||||
@@ -1169,19 +1156,18 @@ const opTerminateJob = "TerminateJob"
|
||||
|
||||
// TerminateJobRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the TerminateJob operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See TerminateJob for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the TerminateJob method directly
|
||||
// instead.
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the TerminateJobRequest method.
|
||||
// req, resp := client.TerminateJobRequest(params)
|
||||
@@ -1256,19 +1242,18 @@ const opUpdateComputeEnvironment = "UpdateComputeEnvironment"
|
||||
|
||||
// UpdateComputeEnvironmentRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UpdateComputeEnvironment operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See UpdateComputeEnvironment for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the UpdateComputeEnvironment method directly
|
||||
// instead.
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the UpdateComputeEnvironmentRequest method.
|
||||
// req, resp := client.UpdateComputeEnvironmentRequest(params)
|
||||
@@ -1341,19 +1326,18 @@ const opUpdateJobQueue = "UpdateJobQueue"
|
||||
|
||||
// UpdateJobQueueRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UpdateJobQueue operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See UpdateJobQueue for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the UpdateJobQueue method directly
|
||||
// instead.
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the UpdateJobQueueRequest method.
|
||||
// req, resp := client.UpdateJobQueueRequest(params)
|
||||
@@ -1422,6 +1406,127 @@ func (c *Batch) UpdateJobQueueWithContext(ctx aws.Context, input *UpdateJobQueue
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
// An object representing the details of a container that is part of a job attempt.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/AttemptContainerDetail
|
||||
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 AWS 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"`
|
||||
|
||||
// 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 is associated
|
||||
// with the job attempt.
|
||||
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
|
||||
}
|
||||
|
||||
// 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.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/AttemptDetail
|
||||
type AttemptDetail struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// Details about the container in this job attempt.
|
||||
Container *AttemptContainerDetail `locationName:"container" type:"structure"`
|
||||
|
||||
// The Unix timestamp for when the attempt was started (when the task transitioned
|
||||
// from the PENDING 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 for when the attempt was stopped (when the task transitioned
|
||||
// from the RUNNING state to the STOPPED state).
|
||||
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
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CancelJobRequest
|
||||
type CancelJobInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
@@ -1674,8 +1779,15 @@ type ComputeResource struct {
|
||||
// The EC2 key pair that is used for instances launched in the compute environment.
|
||||
Ec2KeyPair *string `locationName:"ec2KeyPair" type:"string"`
|
||||
|
||||
// The Amazon ECS instance role applied to Amazon EC2 instances in a compute
|
||||
// The Amazon Machine Image (AMI) ID used for instances launched in the compute
|
||||
// environment.
|
||||
ImageId *string `locationName:"imageId" 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 (http://docs.aws.amazon.com/batch/latest/userguide/instance_IAM_role.html)
|
||||
// in the AWS Batch User Guide.
|
||||
//
|
||||
// InstanceRole is a required field
|
||||
InstanceRole *string `locationName:"instanceRole" type:"string" required:"true"`
|
||||
@@ -1779,6 +1891,12 @@ func (s *ComputeResource) SetEc2KeyPair(v string) *ComputeResource {
|
||||
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
|
||||
@@ -1901,6 +2019,11 @@ type ContainerDetail struct {
|
||||
// The Amazon Resource Name (ARN) associated with the job upon execution.
|
||||
JobRoleArn *string `locationName:"jobRoleArn" type:"string"`
|
||||
|
||||
// The name of the CloudWatch Logs log stream associated with the container.
|
||||
// The log group for AWS 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 number of MiB of memory reserved for the job.
|
||||
Memory *int64 `locationName:"memory" type:"integer"`
|
||||
|
||||
@@ -1919,6 +2042,10 @@ type ContainerDetail struct {
|
||||
// details about a running or stopped container.
|
||||
Reason *string `locationName:"reason" type:"string"`
|
||||
|
||||
// The Amazon Resource Name (ARN) of the Amazon ECS task that is associated
|
||||
// with the container job.
|
||||
TaskArn *string `locationName:"taskArn" type:"string"`
|
||||
|
||||
// A list of ulimit values to set in the container.
|
||||
Ulimits []*Ulimit `locationName:"ulimits" type:"list"`
|
||||
|
||||
@@ -1978,6 +2105,12 @@ func (s *ContainerDetail) SetJobRoleArn(v string) *ContainerDetail {
|
||||
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
|
||||
@@ -2008,6 +2141,12 @@ func (s *ContainerDetail) SetReason(v string) *ContainerDetail {
|
||||
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
|
||||
@@ -2146,6 +2285,7 @@ type ContainerProperties struct {
|
||||
// parameter maps to Memory in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container)
|
||||
// section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_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.
|
||||
//
|
||||
// Memory is a required field
|
||||
Memory *int64 `locationName:"memory" type:"integer" required:"true"`
|
||||
@@ -2186,7 +2326,8 @@ type ContainerProperties struct {
|
||||
// in the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container)
|
||||
// section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_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.
|
||||
// Each vCPU is equivalent to 1,024 CPU shares. You must specify at least 1
|
||||
// vCPU.
|
||||
//
|
||||
// Vcpus is a required field
|
||||
Vcpus *int64 `locationName:"vcpus" type:"integer" required:"true"`
|
||||
@@ -2323,6 +2464,16 @@ type CreateComputeEnvironmentInput struct {
|
||||
// The full Amazon Resource Name (ARN) of the IAM role that allows AWS Batch
|
||||
// to make calls to other AWS services on your behalf.
|
||||
//
|
||||
// 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 AWS Batch service role, its ARN may contain
|
||||
// the service-role path prefix. When you only specify the name of the service
|
||||
// role, AWS Batch assumes that your ARN does not 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 is a required field
|
||||
ServiceRole *string `locationName:"serviceRole" type:"string" required:"true"`
|
||||
|
||||
@@ -2452,11 +2603,11 @@ type CreateJobQueueInput struct {
|
||||
// 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 lower
|
||||
// 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 same compute environment. Priority is determined in ascending order,
|
||||
// for example, a job queue with a priority value of 1 is given scheduling preference
|
||||
// over a job queue with a priority value of 10.
|
||||
// with 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.
|
||||
//
|
||||
// Priority is a required field
|
||||
Priority *int64 `locationName:"priority" type:"integer" required:"true"`
|
||||
@@ -3146,6 +3297,10 @@ type JobDefinition struct {
|
||||
// from the job definition.
|
||||
Parameters map[string]*string `locationName:"parameters" type:"map"`
|
||||
|
||||
// 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
|
||||
@@ -3194,6 +3349,12 @@ func (s *JobDefinition) SetParameters(v map[string]*string) *JobDefinition {
|
||||
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
|
||||
@@ -3242,6 +3403,9 @@ func (s *JobDependency) SetJobId(v string) *JobDependency {
|
||||
type JobDetail struct {
|
||||
_ struct{} `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 is associated with
|
||||
// the job.
|
||||
Container *ContainerDetail `locationName:"container" type:"structure"`
|
||||
@@ -3278,6 +3442,9 @@ type JobDetail struct {
|
||||
// definition.
|
||||
Parameters map[string]*string `locationName:"parameters" type:"map"`
|
||||
|
||||
// The retry strategy to use for this job if an attempt fails.
|
||||
RetryStrategy *RetryStrategy `locationName:"retryStrategy" type:"structure"`
|
||||
|
||||
// The Unix timestamp for when the job was started (when the task transitioned
|
||||
// from the PENDING state to the RUNNING state).
|
||||
//
|
||||
@@ -3308,6 +3475,12 @@ func (s JobDetail) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// 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
|
||||
@@ -3356,6 +3529,12 @@ func (s *JobDetail) SetParameters(v map[string]*string) *JobDetail {
|
||||
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
|
||||
@@ -3556,7 +3735,8 @@ type ListJobsInput struct {
|
||||
// JobQueue is a required field
|
||||
JobQueue *string `locationName:"jobQueue" type:"string" required:"true"`
|
||||
|
||||
// The job status with which to filter jobs in the specified queue.
|
||||
// The job status with which to filter jobs in the specified queue. If you do
|
||||
// not 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
|
||||
@@ -3663,7 +3843,8 @@ func (s *ListJobsOutput) SetNextToken(v string) *ListJobsOutput {
|
||||
return s
|
||||
}
|
||||
|
||||
// Details on a volume mount point that is used in a job's container properties.
|
||||
// Details on a Docker volume mount point that is used in a job's container
|
||||
// properties.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/MountPoint
|
||||
type MountPoint struct {
|
||||
_ struct{} `type:"structure"`
|
||||
@@ -3715,7 +3896,8 @@ type RegisterJobDefinitionInput struct {
|
||||
// parameter is required if the type parameter is container.
|
||||
ContainerProperties *ContainerProperties `locationName:"containerProperties" type:"structure"`
|
||||
|
||||
// The name of the job definition to register.
|
||||
// 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"`
|
||||
@@ -3725,6 +3907,11 @@ type RegisterJobDefinitionInput struct {
|
||||
// request override any corresponding parameter defaults from the job definition.
|
||||
Parameters map[string]*string `locationName:"parameters" type:"map"`
|
||||
|
||||
// The retry strategy to use for failed jobs that are submitted with this job
|
||||
// definition. Any retry strategy that is specified during a SubmitJob operation
|
||||
// overrides the retry strategy defined here.
|
||||
RetryStrategy *RetryStrategy `locationName:"retryStrategy" type:"structure"`
|
||||
|
||||
// The type of job definition.
|
||||
//
|
||||
// Type is a required field
|
||||
@@ -3780,6 +3967,12 @@ func (s *RegisterJobDefinitionInput) SetParameters(v map[string]*string) *Regist
|
||||
return s
|
||||
}
|
||||
|
||||
// SetRetryStrategy sets the RetryStrategy field's value.
|
||||
func (s *RegisterJobDefinitionInput) SetRetryStrategy(v *RetryStrategy) *RegisterJobDefinitionInput {
|
||||
s.RetryStrategy = v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetType sets the Type field's value.
|
||||
func (s *RegisterJobDefinitionInput) SetType(v string) *RegisterJobDefinitionInput {
|
||||
s.Type = &v
|
||||
@@ -3834,6 +4027,33 @@ func (s *RegisterJobDefinitionOutput) SetRevision(v int64) *RegisterJobDefinitio
|
||||
return s
|
||||
}
|
||||
|
||||
// The retry strategy associated with a job.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/RetryStrategy
|
||||
type RetryStrategy struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The number of times to move a job to the RUNNABLE status. You may specify
|
||||
// between 1 and 10 attempts. If attempts is greater than one, the job is retried
|
||||
// if it fails until it has moved to RUNNABLE that many times.
|
||||
Attempts *int64 `locationName:"attempts" type:"integer"`
|
||||
}
|
||||
|
||||
// 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()
|
||||
}
|
||||
|
||||
// SetAttempts sets the Attempts field's value.
|
||||
func (s *RetryStrategy) SetAttempts(v int64) *RetryStrategy {
|
||||
s.Attempts = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/SubmitJobRequest
|
||||
type SubmitJobInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
@@ -3847,8 +4067,8 @@ type SubmitJobInput struct {
|
||||
// an environment override.
|
||||
ContainerOverrides *ContainerOverrides `locationName:"containerOverrides" type:"structure"`
|
||||
|
||||
// A list of job names or IDs on which this job depends. A job can depend upon
|
||||
// a maximum of 100 jobs.
|
||||
// A list of job IDs on which this job depends. A job can depend upon a maximum
|
||||
// of 20 jobs.
|
||||
DependsOn []*JobDependency `locationName:"dependsOn" type:"list"`
|
||||
|
||||
// The job definition used by this job. This value can be either a name:revision
|
||||
@@ -3857,7 +4077,9 @@ type SubmitJobInput struct {
|
||||
// JobDefinition is a required field
|
||||
JobDefinition *string `locationName:"jobDefinition" type:"string" required:"true"`
|
||||
|
||||
// The name of the job.
|
||||
// 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"`
|
||||
@@ -3873,6 +4095,11 @@ type SubmitJobInput struct {
|
||||
// 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"`
|
||||
|
||||
// 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"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
@@ -3940,6 +4167,12 @@ func (s *SubmitJobInput) SetParameters(v map[string]*string) *SubmitJobInput {
|
||||
return s
|
||||
}
|
||||
|
||||
// SetRetryStrategy sets the RetryStrategy field's value.
|
||||
func (s *SubmitJobInput) SetRetryStrategy(v *RetryStrategy) *SubmitJobInput {
|
||||
s.RetryStrategy = v
|
||||
return s
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/SubmitJobResponse
|
||||
type SubmitJobOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
@@ -4129,8 +4362,18 @@ type UpdateComputeEnvironmentInput struct {
|
||||
// for a managed compute environment.
|
||||
ComputeResources *ComputeResourceUpdate `locationName:"computeResources" type:"structure"`
|
||||
|
||||
// The name or full Amazon Resource Name (ARN) of the IAM role that allows AWS
|
||||
// Batch to make calls to ECS, Auto Scaling, and EC2 on your behalf.
|
||||
// The full Amazon Resource Name (ARN) of the IAM role that allows AWS Batch
|
||||
// to make calls to other AWS services on your behalf.
|
||||
//
|
||||
// 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 AWS Batch service role, its ARN may contain
|
||||
// the service-role path prefix. When you only specify the name of the service
|
||||
// role, AWS Batch assumes that your ARN does not 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
|
||||
@@ -4233,11 +4476,11 @@ type UpdateJobQueueInput struct {
|
||||
// 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 lower
|
||||
// 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 same compute environment. Priority is determined in ascending order,
|
||||
// for example, a job queue with a priority value of 1 is given scheduling preference
|
||||
// over a job queue with a priority value of 10.
|
||||
// with 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.
|
||||
Priority *int64 `locationName:"priority" type:"integer"`
|
||||
|
||||
// Describes the queue's ability to accept new jobs.
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// 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.
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
//
|
||||
// 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 the SDK's request pipeline.
|
||||
// to inject custom request handlers into the SDK's request pipeline.
|
||||
//
|
||||
// // myFunc uses an SDK service client to make a request to
|
||||
// // AWS Batch.
|
||||
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
// 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.
|
||||
//
|
||||
// AWS Batch enables you to run batch computing workloads on the AWS Cloud.
|
||||
// Batch computing is a common way for developers, scientists, and engineers
|
||||
// to access large amounts of compute resources, and AWS Batch removes the undifferentiated
|
||||
// heavy lifting of configuring and managing the required infrastructure. AWS
|
||||
// Batch will be familiar to users of traditional batch computing software.
|
||||
// This service can efficiently provision resources in response to jobs submitted
|
||||
// in order to eliminate capacity constraints, reduce compute costs, and deliver
|
||||
// results quickly.
|
||||
//
|
||||
// As a fully managed service, AWS Batch enables developers, scientists, and
|
||||
// engineers to run batch computing workloads of any scale. AWS Batch automatically
|
||||
// provisions compute resources and optimizes the workload distribution based
|
||||
// on the quantity and scale of the workloads. With AWS Batch, there is no need
|
||||
// to install or manage batch computing software, which allows you to focus
|
||||
// on analyzing results and solving problems. AWS Batch reduces operational
|
||||
// complexities, saves time, and reduces costs, which makes it easy for developers,
|
||||
// scientists, and engineers to run their batch jobs in the AWS Cloud.
|
||||
//
|
||||
// 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 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
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package batch
|
||||
|
||||
|
||||
+579
-365
File diff suppressed because it is too large
Load Diff
+6
-20
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package batch
|
||||
|
||||
@@ -11,26 +11,12 @@ import (
|
||||
"github.com/aws/aws-sdk-go/private/protocol/restjson"
|
||||
)
|
||||
|
||||
// AWS Batch enables you to run batch computing workloads on the AWS Cloud.
|
||||
// Batch computing is a common way for developers, scientists, and engineers
|
||||
// to access large amounts of compute resources, and AWS Batch removes the undifferentiated
|
||||
// heavy lifting of configuring and managing the required infrastructure. AWS
|
||||
// Batch will be familiar to users of traditional batch computing software.
|
||||
// This service can efficiently provision resources in response to jobs submitted
|
||||
// in order to eliminate capacity constraints, reduce compute costs, and deliver
|
||||
// results quickly.
|
||||
// Batch provides the API operation methods for making requests to
|
||||
// AWS Batch. See this package's package overview docs
|
||||
// for details on the service.
|
||||
//
|
||||
// As a fully managed service, AWS Batch enables developers, scientists, and
|
||||
// engineers to run batch computing workloads of any scale. AWS Batch automatically
|
||||
// provisions compute resources and optimizes the workload distribution based
|
||||
// on the quantity and scale of the workloads. With AWS Batch, there is no need
|
||||
// to install or manage batch computing software, which allows you to focus
|
||||
// on analyzing results and solving problems. AWS Batch reduces operational
|
||||
// complexities, saves time, and reduces costs, which makes it easy for developers,
|
||||
// scientists, and engineers to run their batch jobs in the AWS Cloud.
|
||||
// The service client's operations are safe to be used concurrently.
|
||||
// It is not safe to mutate any of the client's properties though.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10
|
||||
// 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
|
||||
}
|
||||
|
||||
+190
-170
@@ -1,6 +1,5 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package budgets provides a client for AWS Budgets.
|
||||
package budgets
|
||||
|
||||
import (
|
||||
@@ -16,19 +15,18 @@ const opCreateBudget = "CreateBudget"
|
||||
|
||||
// CreateBudgetRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateBudget operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See CreateBudget for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateBudget method directly
|
||||
// instead.
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateBudgetRequest method.
|
||||
// req, resp := client.CreateBudgetRequest(params)
|
||||
@@ -105,19 +103,18 @@ const opCreateNotification = "CreateNotification"
|
||||
|
||||
// CreateNotificationRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateNotification operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See CreateNotification for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateNotification method directly
|
||||
// instead.
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateNotificationRequest method.
|
||||
// req, resp := client.CreateNotificationRequest(params)
|
||||
@@ -198,19 +195,18 @@ const opCreateSubscriber = "CreateSubscriber"
|
||||
|
||||
// CreateSubscriberRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateSubscriber operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See CreateSubscriber for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateSubscriber method directly
|
||||
// instead.
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateSubscriberRequest method.
|
||||
// req, resp := client.CreateSubscriberRequest(params)
|
||||
@@ -291,19 +287,18 @@ const opDeleteBudget = "DeleteBudget"
|
||||
|
||||
// DeleteBudgetRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteBudget operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DeleteBudget for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteBudget method directly
|
||||
// instead.
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteBudgetRequest method.
|
||||
// req, resp := client.DeleteBudgetRequest(params)
|
||||
@@ -376,19 +371,18 @@ const opDeleteNotification = "DeleteNotification"
|
||||
|
||||
// DeleteNotificationRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteNotification operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DeleteNotification for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteNotification method directly
|
||||
// instead.
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteNotificationRequest method.
|
||||
// req, resp := client.DeleteNotificationRequest(params)
|
||||
@@ -461,19 +455,18 @@ const opDeleteSubscriber = "DeleteSubscriber"
|
||||
|
||||
// DeleteSubscriberRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteSubscriber operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DeleteSubscriber for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteSubscriber method directly
|
||||
// instead.
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteSubscriberRequest method.
|
||||
// req, resp := client.DeleteSubscriberRequest(params)
|
||||
@@ -546,19 +539,18 @@ const opDescribeBudget = "DescribeBudget"
|
||||
|
||||
// DescribeBudgetRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeBudget operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeBudget for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeBudget method directly
|
||||
// instead.
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeBudgetRequest method.
|
||||
// req, resp := client.DescribeBudgetRequest(params)
|
||||
@@ -631,19 +623,18 @@ const opDescribeBudgets = "DescribeBudgets"
|
||||
|
||||
// DescribeBudgetsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeBudgets operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeBudgets for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeBudgets method directly
|
||||
// instead.
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeBudgetsRequest method.
|
||||
// req, resp := client.DescribeBudgetsRequest(params)
|
||||
@@ -723,19 +714,18 @@ const opDescribeNotificationsForBudget = "DescribeNotificationsForBudget"
|
||||
|
||||
// DescribeNotificationsForBudgetRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeNotificationsForBudget operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeNotificationsForBudget for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeNotificationsForBudget method directly
|
||||
// instead.
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeNotificationsForBudgetRequest method.
|
||||
// req, resp := client.DescribeNotificationsForBudgetRequest(params)
|
||||
@@ -815,19 +805,18 @@ const opDescribeSubscribersForNotification = "DescribeSubscribersForNotification
|
||||
|
||||
// DescribeSubscribersForNotificationRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeSubscribersForNotification operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeSubscribersForNotification for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeSubscribersForNotification method directly
|
||||
// instead.
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeSubscribersForNotificationRequest method.
|
||||
// req, resp := client.DescribeSubscribersForNotificationRequest(params)
|
||||
@@ -907,19 +896,18 @@ const opUpdateBudget = "UpdateBudget"
|
||||
|
||||
// UpdateBudgetRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UpdateBudget operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See UpdateBudget for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the UpdateBudget method directly
|
||||
// instead.
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the UpdateBudgetRequest method.
|
||||
// req, resp := client.UpdateBudgetRequest(params)
|
||||
@@ -992,19 +980,18 @@ const opUpdateNotification = "UpdateNotification"
|
||||
|
||||
// UpdateNotificationRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UpdateNotification operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See UpdateNotification for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the UpdateNotification method directly
|
||||
// instead.
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the UpdateNotificationRequest method.
|
||||
// req, resp := client.UpdateNotificationRequest(params)
|
||||
@@ -1052,6 +1039,10 @@ func (c *Budgets) UpdateNotificationRequest(input *UpdateNotificationInput) (req
|
||||
// This exception is thrown if a requested entity is not found. E.g., if a budget
|
||||
// id doesn't exist for an account ID.
|
||||
//
|
||||
// * ErrCodeDuplicateRecordException "DuplicateRecordException"
|
||||
// The exception is thrown when customer tries to create a record (e.g. budget)
|
||||
// that already exists.
|
||||
//
|
||||
func (c *Budgets) UpdateNotification(input *UpdateNotificationInput) (*UpdateNotificationOutput, error) {
|
||||
req, out := c.UpdateNotificationRequest(input)
|
||||
return out, req.Send()
|
||||
@@ -1077,19 +1068,18 @@ const opUpdateSubscriber = "UpdateSubscriber"
|
||||
|
||||
// UpdateSubscriberRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UpdateSubscriber operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See UpdateSubscriber for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the UpdateSubscriber method directly
|
||||
// instead.
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the UpdateSubscriberRequest method.
|
||||
// req, resp := client.UpdateSubscriberRequest(params)
|
||||
@@ -1137,6 +1127,10 @@ func (c *Budgets) UpdateSubscriberRequest(input *UpdateSubscriberInput) (req *re
|
||||
// This exception is thrown if a requested entity is not found. E.g., if a budget
|
||||
// id doesn't exist for an account ID.
|
||||
//
|
||||
// * ErrCodeDuplicateRecordException "DuplicateRecordException"
|
||||
// The exception is thrown when customer tries to create a record (e.g. budget)
|
||||
// that already exists.
|
||||
//
|
||||
func (c *Budgets) UpdateSubscriber(input *UpdateSubscriberInput) (*UpdateSubscriberOutput, error) {
|
||||
req, out := c.UpdateSubscriberRequest(input)
|
||||
return out, req.Send()
|
||||
@@ -1162,26 +1156,26 @@ func (c *Budgets) UpdateSubscriberWithContext(ctx aws.Context, input *UpdateSubs
|
||||
type Budget struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// A structure represent either a cost spend or usage spend. Contains an amount
|
||||
// and a unit.
|
||||
// A structure that represents either a cost spend or usage spend. Contains
|
||||
// an amount and a unit.
|
||||
//
|
||||
// BudgetLimit is a required field
|
||||
BudgetLimit *Spend `type:"structure" required:"true"`
|
||||
|
||||
// A string represents the budget name. No ":" character is allowed.
|
||||
// A string represents the budget name. No ":" and "\" character is allowed.
|
||||
//
|
||||
// BudgetName is a required field
|
||||
BudgetName *string `type:"string" required:"true"`
|
||||
|
||||
// The type of a budget. Can be COST or USAGE.
|
||||
// The type of a budget. It should be COST, USAGE, or RI_UTILIZATION.
|
||||
//
|
||||
// BudgetType is a required field
|
||||
BudgetType *string `type:"string" required:"true" enum:"BudgetType"`
|
||||
|
||||
// A structure holds the actual and forecasted spend for a budget.
|
||||
// A structure that holds the actual and forecasted spend for a budget.
|
||||
CalculatedSpend *CalculatedSpend `type:"structure"`
|
||||
|
||||
// A map represents the cost filters applied to the budget.
|
||||
// A map that represents the cost filters applied to the budget.
|
||||
CostFilters map[string][]*string `type:"map"`
|
||||
|
||||
// This includes the options for getting the cost of a budget.
|
||||
@@ -1189,12 +1183,12 @@ type Budget struct {
|
||||
// CostTypes is a required field
|
||||
CostTypes *CostTypes `type:"structure" required:"true"`
|
||||
|
||||
// A time period indicated the start date and end date of a budget.
|
||||
// A time period indicating the start date and end date of a budget.
|
||||
//
|
||||
// TimePeriod is a required field
|
||||
TimePeriod *TimePeriod `type:"structure" required:"true"`
|
||||
|
||||
// The time unit of the budget. e.g. weekly, monthly, etc.
|
||||
// The time unit of the budget. e.g. MONTHLY, QUARTERLY, etc.
|
||||
//
|
||||
// TimeUnit is a required field
|
||||
TimeUnit *string `type:"string" required:"true" enum:"TimeUnit"`
|
||||
@@ -1306,18 +1300,18 @@ func (s *Budget) SetTimeUnit(v string) *Budget {
|
||||
return s
|
||||
}
|
||||
|
||||
// A structure holds the actual and forecasted spend for a budget.
|
||||
// A structure that holds the actual and forecasted spend for a budget.
|
||||
type CalculatedSpend struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// A structure represent either a cost spend or usage spend. Contains an amount
|
||||
// and a unit.
|
||||
// A structure that represents either a cost spend or usage spend. Contains
|
||||
// an amount and a unit.
|
||||
//
|
||||
// ActualSpend is a required field
|
||||
ActualSpend *Spend `type:"structure" required:"true"`
|
||||
|
||||
// A structure represent either a cost spend or usage spend. Contains an amount
|
||||
// and a unit.
|
||||
// A structure that represents either a cost spend or usage spend. Contains
|
||||
// an amount and a unit.
|
||||
ForecastedSpend *Spend `type:"structure"`
|
||||
}
|
||||
|
||||
@@ -1537,7 +1531,7 @@ type CreateNotificationInput struct {
|
||||
// AccountId is a required field
|
||||
AccountId *string `min:"12" type:"string" required:"true"`
|
||||
|
||||
// A string represents the budget name. No ":" character is allowed.
|
||||
// A string represents the budget name. No ":" and "\" character is allowed.
|
||||
//
|
||||
// BudgetName is a required field
|
||||
BudgetName *string `type:"string" required:"true"`
|
||||
@@ -1655,7 +1649,7 @@ type CreateSubscriberInput struct {
|
||||
// AccountId is a required field
|
||||
AccountId *string `min:"12" type:"string" required:"true"`
|
||||
|
||||
// A string represents the budget name. No ":" character is allowed.
|
||||
// A string represents the budget name. No ":" and "\" character is allowed.
|
||||
//
|
||||
// BudgetName is a required field
|
||||
BudgetName *string `type:"string" required:"true"`
|
||||
@@ -1766,7 +1760,7 @@ type DeleteBudgetInput struct {
|
||||
// AccountId is a required field
|
||||
AccountId *string `min:"12" type:"string" required:"true"`
|
||||
|
||||
// A string represents the budget name. No ":" character is allowed.
|
||||
// A string represents the budget name. No ":" and "\" character is allowed.
|
||||
//
|
||||
// BudgetName is a required field
|
||||
BudgetName *string `type:"string" required:"true"`
|
||||
@@ -1837,7 +1831,7 @@ type DeleteNotificationInput struct {
|
||||
// AccountId is a required field
|
||||
AccountId *string `min:"12" type:"string" required:"true"`
|
||||
|
||||
// A string represents the budget name. No ":" character is allowed.
|
||||
// A string represents the budget name. No ":" and "\" character is allowed.
|
||||
//
|
||||
// BudgetName is a required field
|
||||
BudgetName *string `type:"string" required:"true"`
|
||||
@@ -1928,7 +1922,7 @@ type DeleteSubscriberInput struct {
|
||||
// AccountId is a required field
|
||||
AccountId *string `min:"12" type:"string" required:"true"`
|
||||
|
||||
// A string represents the budget name. No ":" character is allowed.
|
||||
// A string represents the budget name. No ":" and "\" character is allowed.
|
||||
//
|
||||
// BudgetName is a required field
|
||||
BudgetName *string `type:"string" required:"true"`
|
||||
@@ -2039,7 +2033,7 @@ type DescribeBudgetInput struct {
|
||||
// AccountId is a required field
|
||||
AccountId *string `min:"12" type:"string" required:"true"`
|
||||
|
||||
// A string represents the budget name. No ":" character is allowed.
|
||||
// A string represents the budget name. No ":" and "\" character is allowed.
|
||||
//
|
||||
// BudgetName is a required field
|
||||
BudgetName *string `type:"string" required:"true"`
|
||||
@@ -2119,8 +2113,8 @@ type DescribeBudgetsInput struct {
|
||||
// AccountId is a required field
|
||||
AccountId *string `min:"12" type:"string" required:"true"`
|
||||
|
||||
// An integer to represent how many entries should a pagianted response contains.
|
||||
// Maxium is set to 100.
|
||||
// An integer to represent how many entries a paginated response contains. Maximum
|
||||
// is set to 100.
|
||||
MaxResults *int64 `min:"1" type:"integer"`
|
||||
|
||||
// A generic String.
|
||||
@@ -2216,13 +2210,13 @@ type DescribeNotificationsForBudgetInput struct {
|
||||
// AccountId is a required field
|
||||
AccountId *string `min:"12" type:"string" required:"true"`
|
||||
|
||||
// A string represents the budget name. No ":" character is allowed.
|
||||
// A string represents the budget name. No ":" and "\" character is allowed.
|
||||
//
|
||||
// BudgetName is a required field
|
||||
BudgetName *string `type:"string" required:"true"`
|
||||
|
||||
// An integer to represent how many entries should a pagianted response contains.
|
||||
// Maxium is set to 100.
|
||||
// An integer to represent how many entries a paginated response contains. Maximum
|
||||
// is set to 100.
|
||||
MaxResults *int64 `min:"1" type:"integer"`
|
||||
|
||||
// A generic String.
|
||||
@@ -2327,13 +2321,13 @@ type DescribeSubscribersForNotificationInput struct {
|
||||
// AccountId is a required field
|
||||
AccountId *string `min:"12" type:"string" required:"true"`
|
||||
|
||||
// A string represents the budget name. No ":" character is allowed.
|
||||
// A string represents the budget name. No ":" and "\" character is allowed.
|
||||
//
|
||||
// BudgetName is a required field
|
||||
BudgetName *string `type:"string" required:"true"`
|
||||
|
||||
// An integer to represent how many entries should a pagianted response contains.
|
||||
// Maxium is set to 100.
|
||||
// An integer to represent how many entries a paginated response contains. Maximum
|
||||
// is set to 100.
|
||||
MaxResults *int64 `min:"1" type:"integer"`
|
||||
|
||||
// A generic String.
|
||||
@@ -2465,11 +2459,13 @@ type Notification struct {
|
||||
// NotificationType is a required field
|
||||
NotificationType *string `type:"string" required:"true" enum:"NotificationType"`
|
||||
|
||||
// The threshold of the a notification. It should be a number between 0 and
|
||||
// 100.
|
||||
// The threshold of a notification. It should be a number between 0 and 1,000,000,000.
|
||||
//
|
||||
// Threshold is a required field
|
||||
Threshold *float64 `min:"0.1" type:"double" required:"true"`
|
||||
|
||||
// The type of threshold for a notification. It can be PERCENTAGE or ABSOLUTE_VALUE.
|
||||
ThresholdType *string `type:"string" enum:"ThresholdType"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
@@ -2522,6 +2518,12 @@ func (s *Notification) SetThreshold(v float64) *Notification {
|
||||
return s
|
||||
}
|
||||
|
||||
// SetThresholdType sets the ThresholdType field's value.
|
||||
func (s *Notification) SetThresholdType(v string) *Notification {
|
||||
s.ThresholdType = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// A structure to relate notification and a list of subscribers who belong to
|
||||
// the notification.
|
||||
type NotificationWithSubscribers struct {
|
||||
@@ -2595,8 +2597,8 @@ func (s *NotificationWithSubscribers) SetSubscribers(v []*Subscriber) *Notificat
|
||||
return s
|
||||
}
|
||||
|
||||
// A structure represent either a cost spend or usage spend. Contains an amount
|
||||
// and a unit.
|
||||
// A structure that represents either a cost spend or usage spend. Contains
|
||||
// an amount and a unit.
|
||||
type Spend struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -2605,10 +2607,10 @@ type Spend struct {
|
||||
// Amount is a required field
|
||||
Amount *string `type:"string" required:"true"`
|
||||
|
||||
// A generic String.
|
||||
// A string to represent budget spend unit. It should be not null and not empty.
|
||||
//
|
||||
// Unit is a required field
|
||||
Unit *string `type:"string" required:"true"`
|
||||
Unit *string `min:"1" type:"string" required:"true"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
@@ -2630,6 +2632,9 @@ func (s *Spend) Validate() error {
|
||||
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
|
||||
@@ -2703,7 +2708,7 @@ func (s *Subscriber) SetSubscriptionType(v string) *Subscriber {
|
||||
return s
|
||||
}
|
||||
|
||||
// A time period indicated the start date and end date of a budget.
|
||||
// A time period indicating the start date and end date of a budget.
|
||||
type TimePeriod struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -2841,7 +2846,7 @@ type UpdateNotificationInput struct {
|
||||
// AccountId is a required field
|
||||
AccountId *string `min:"12" type:"string" required:"true"`
|
||||
|
||||
// A string represents the budget name. No ":" character is allowed.
|
||||
// A string represents the budget name. No ":" and "\" character is allowed.
|
||||
//
|
||||
// BudgetName is a required field
|
||||
BudgetName *string `type:"string" required:"true"`
|
||||
@@ -2952,7 +2957,7 @@ type UpdateSubscriberInput struct {
|
||||
// AccountId is a required field
|
||||
AccountId *string `min:"12" type:"string" required:"true"`
|
||||
|
||||
// A string represents the budget name. No ":" character is allowed.
|
||||
// A string represents the budget name. No ":" and "\" character is allowed.
|
||||
//
|
||||
// BudgetName is a required field
|
||||
BudgetName *string `type:"string" required:"true"`
|
||||
@@ -3074,13 +3079,16 @@ func (s UpdateSubscriberOutput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// The type of a budget. Can be COST or USAGE.
|
||||
// The type of a budget. It should be COST, USAGE, or RI_UTILIZATION.
|
||||
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"
|
||||
)
|
||||
|
||||
// The comparison operator of a notification. Currently we support less than,
|
||||
@@ -3114,8 +3122,20 @@ const (
|
||||
SubscriptionTypeEmail = "EMAIL"
|
||||
)
|
||||
|
||||
// The time unit of the budget. e.g. weekly, monthly, etc.
|
||||
// The type of threshold for a notification. It can be PERCENTAGE or ABSOLUTE_VALUE.
|
||||
const (
|
||||
// ThresholdTypePercentage is a ThresholdType enum value
|
||||
ThresholdTypePercentage = "PERCENTAGE"
|
||||
|
||||
// ThresholdTypeAbsoluteValue is a ThresholdType enum value
|
||||
ThresholdTypeAbsoluteValue = "ABSOLUTE_VALUE"
|
||||
)
|
||||
|
||||
// The time unit of the budget. e.g. MONTHLY, QUARTERLY, etc.
|
||||
const (
|
||||
// TimeUnitDaily is a TimeUnit enum value
|
||||
TimeUnitDaily = "DAILY"
|
||||
|
||||
// TimeUnitMonthly is a TimeUnit enum value
|
||||
TimeUnitMonthly = "MONTHLY"
|
||||
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// 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.
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
//
|
||||
// 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 the SDK's request pipeline.
|
||||
// to inject custom request handlers into the SDK's request pipeline.
|
||||
//
|
||||
// // myFunc uses an SDK service client to make a request to
|
||||
// // AWS Budgets.
|
||||
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
// 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.
|
||||
//
|
||||
// All public APIs for AWS Budgets
|
||||
//
|
||||
// See budgets package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/budgets/
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To 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
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package budgets
|
||||
|
||||
|
||||
-455
@@ -1,455 +0,0 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
|
||||
package budgets_test
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/session"
|
||||
"github.com/aws/aws-sdk-go/service/budgets"
|
||||
)
|
||||
|
||||
var _ time.Duration
|
||||
var _ bytes.Buffer
|
||||
|
||||
func ExampleBudgets_CreateBudget() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := budgets.New(sess)
|
||||
|
||||
params := &budgets.CreateBudgetInput{
|
||||
AccountId: aws.String("AccountId"), // Required
|
||||
Budget: &budgets.Budget{ // Required
|
||||
BudgetLimit: &budgets.Spend{ // Required
|
||||
Amount: aws.String("NumericValue"), // Required
|
||||
Unit: aws.String("GenericString"), // Required
|
||||
},
|
||||
BudgetName: aws.String("BudgetName"), // Required
|
||||
BudgetType: aws.String("BudgetType"), // Required
|
||||
CostTypes: &budgets.CostTypes{ // Required
|
||||
IncludeSubscription: aws.Bool(true), // Required
|
||||
IncludeTax: aws.Bool(true), // Required
|
||||
UseBlended: aws.Bool(true), // Required
|
||||
},
|
||||
TimePeriod: &budgets.TimePeriod{ // Required
|
||||
End: aws.Time(time.Now()), // Required
|
||||
Start: aws.Time(time.Now()), // Required
|
||||
},
|
||||
TimeUnit: aws.String("TimeUnit"), // Required
|
||||
CalculatedSpend: &budgets.CalculatedSpend{
|
||||
ActualSpend: &budgets.Spend{ // Required
|
||||
Amount: aws.String("NumericValue"), // Required
|
||||
Unit: aws.String("GenericString"), // Required
|
||||
},
|
||||
ForecastedSpend: &budgets.Spend{
|
||||
Amount: aws.String("NumericValue"), // Required
|
||||
Unit: aws.String("GenericString"), // Required
|
||||
},
|
||||
},
|
||||
CostFilters: map[string][]*string{
|
||||
"Key": { // Required
|
||||
aws.String("GenericString"), // Required
|
||||
// More values...
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
},
|
||||
NotificationsWithSubscribers: []*budgets.NotificationWithSubscribers{
|
||||
{ // Required
|
||||
Notification: &budgets.Notification{ // Required
|
||||
ComparisonOperator: aws.String("ComparisonOperator"), // Required
|
||||
NotificationType: aws.String("NotificationType"), // Required
|
||||
Threshold: aws.Float64(1.0), // Required
|
||||
},
|
||||
Subscribers: []*budgets.Subscriber{ // Required
|
||||
{ // Required
|
||||
Address: aws.String("GenericString"), // Required
|
||||
SubscriptionType: aws.String("SubscriptionType"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.CreateBudget(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleBudgets_CreateNotification() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := budgets.New(sess)
|
||||
|
||||
params := &budgets.CreateNotificationInput{
|
||||
AccountId: aws.String("AccountId"), // Required
|
||||
BudgetName: aws.String("BudgetName"), // Required
|
||||
Notification: &budgets.Notification{ // Required
|
||||
ComparisonOperator: aws.String("ComparisonOperator"), // Required
|
||||
NotificationType: aws.String("NotificationType"), // Required
|
||||
Threshold: aws.Float64(1.0), // Required
|
||||
},
|
||||
Subscribers: []*budgets.Subscriber{ // Required
|
||||
{ // Required
|
||||
Address: aws.String("GenericString"), // Required
|
||||
SubscriptionType: aws.String("SubscriptionType"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.CreateNotification(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleBudgets_CreateSubscriber() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := budgets.New(sess)
|
||||
|
||||
params := &budgets.CreateSubscriberInput{
|
||||
AccountId: aws.String("AccountId"), // Required
|
||||
BudgetName: aws.String("BudgetName"), // Required
|
||||
Notification: &budgets.Notification{ // Required
|
||||
ComparisonOperator: aws.String("ComparisonOperator"), // Required
|
||||
NotificationType: aws.String("NotificationType"), // Required
|
||||
Threshold: aws.Float64(1.0), // Required
|
||||
},
|
||||
Subscriber: &budgets.Subscriber{ // Required
|
||||
Address: aws.String("GenericString"), // Required
|
||||
SubscriptionType: aws.String("SubscriptionType"), // Required
|
||||
},
|
||||
}
|
||||
resp, err := svc.CreateSubscriber(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleBudgets_DeleteBudget() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := budgets.New(sess)
|
||||
|
||||
params := &budgets.DeleteBudgetInput{
|
||||
AccountId: aws.String("AccountId"), // Required
|
||||
BudgetName: aws.String("BudgetName"), // Required
|
||||
}
|
||||
resp, err := svc.DeleteBudget(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleBudgets_DeleteNotification() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := budgets.New(sess)
|
||||
|
||||
params := &budgets.DeleteNotificationInput{
|
||||
AccountId: aws.String("AccountId"), // Required
|
||||
BudgetName: aws.String("BudgetName"), // Required
|
||||
Notification: &budgets.Notification{ // Required
|
||||
ComparisonOperator: aws.String("ComparisonOperator"), // Required
|
||||
NotificationType: aws.String("NotificationType"), // Required
|
||||
Threshold: aws.Float64(1.0), // Required
|
||||
},
|
||||
}
|
||||
resp, err := svc.DeleteNotification(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleBudgets_DeleteSubscriber() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := budgets.New(sess)
|
||||
|
||||
params := &budgets.DeleteSubscriberInput{
|
||||
AccountId: aws.String("AccountId"), // Required
|
||||
BudgetName: aws.String("BudgetName"), // Required
|
||||
Notification: &budgets.Notification{ // Required
|
||||
ComparisonOperator: aws.String("ComparisonOperator"), // Required
|
||||
NotificationType: aws.String("NotificationType"), // Required
|
||||
Threshold: aws.Float64(1.0), // Required
|
||||
},
|
||||
Subscriber: &budgets.Subscriber{ // Required
|
||||
Address: aws.String("GenericString"), // Required
|
||||
SubscriptionType: aws.String("SubscriptionType"), // Required
|
||||
},
|
||||
}
|
||||
resp, err := svc.DeleteSubscriber(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleBudgets_DescribeBudget() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := budgets.New(sess)
|
||||
|
||||
params := &budgets.DescribeBudgetInput{
|
||||
AccountId: aws.String("AccountId"), // Required
|
||||
BudgetName: aws.String("BudgetName"), // Required
|
||||
}
|
||||
resp, err := svc.DescribeBudget(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleBudgets_DescribeBudgets() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := budgets.New(sess)
|
||||
|
||||
params := &budgets.DescribeBudgetsInput{
|
||||
AccountId: aws.String("AccountId"), // Required
|
||||
MaxResults: aws.Int64(1),
|
||||
NextToken: aws.String("GenericString"),
|
||||
}
|
||||
resp, err := svc.DescribeBudgets(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleBudgets_DescribeNotificationsForBudget() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := budgets.New(sess)
|
||||
|
||||
params := &budgets.DescribeNotificationsForBudgetInput{
|
||||
AccountId: aws.String("AccountId"), // Required
|
||||
BudgetName: aws.String("BudgetName"), // Required
|
||||
MaxResults: aws.Int64(1),
|
||||
NextToken: aws.String("GenericString"),
|
||||
}
|
||||
resp, err := svc.DescribeNotificationsForBudget(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleBudgets_DescribeSubscribersForNotification() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := budgets.New(sess)
|
||||
|
||||
params := &budgets.DescribeSubscribersForNotificationInput{
|
||||
AccountId: aws.String("AccountId"), // Required
|
||||
BudgetName: aws.String("BudgetName"), // Required
|
||||
Notification: &budgets.Notification{ // Required
|
||||
ComparisonOperator: aws.String("ComparisonOperator"), // Required
|
||||
NotificationType: aws.String("NotificationType"), // Required
|
||||
Threshold: aws.Float64(1.0), // Required
|
||||
},
|
||||
MaxResults: aws.Int64(1),
|
||||
NextToken: aws.String("GenericString"),
|
||||
}
|
||||
resp, err := svc.DescribeSubscribersForNotification(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleBudgets_UpdateBudget() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := budgets.New(sess)
|
||||
|
||||
params := &budgets.UpdateBudgetInput{
|
||||
AccountId: aws.String("AccountId"), // Required
|
||||
NewBudget: &budgets.Budget{ // Required
|
||||
BudgetLimit: &budgets.Spend{ // Required
|
||||
Amount: aws.String("NumericValue"), // Required
|
||||
Unit: aws.String("GenericString"), // Required
|
||||
},
|
||||
BudgetName: aws.String("BudgetName"), // Required
|
||||
BudgetType: aws.String("BudgetType"), // Required
|
||||
CostTypes: &budgets.CostTypes{ // Required
|
||||
IncludeSubscription: aws.Bool(true), // Required
|
||||
IncludeTax: aws.Bool(true), // Required
|
||||
UseBlended: aws.Bool(true), // Required
|
||||
},
|
||||
TimePeriod: &budgets.TimePeriod{ // Required
|
||||
End: aws.Time(time.Now()), // Required
|
||||
Start: aws.Time(time.Now()), // Required
|
||||
},
|
||||
TimeUnit: aws.String("TimeUnit"), // Required
|
||||
CalculatedSpend: &budgets.CalculatedSpend{
|
||||
ActualSpend: &budgets.Spend{ // Required
|
||||
Amount: aws.String("NumericValue"), // Required
|
||||
Unit: aws.String("GenericString"), // Required
|
||||
},
|
||||
ForecastedSpend: &budgets.Spend{
|
||||
Amount: aws.String("NumericValue"), // Required
|
||||
Unit: aws.String("GenericString"), // Required
|
||||
},
|
||||
},
|
||||
CostFilters: map[string][]*string{
|
||||
"Key": { // Required
|
||||
aws.String("GenericString"), // Required
|
||||
// More values...
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
},
|
||||
}
|
||||
resp, err := svc.UpdateBudget(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleBudgets_UpdateNotification() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := budgets.New(sess)
|
||||
|
||||
params := &budgets.UpdateNotificationInput{
|
||||
AccountId: aws.String("AccountId"), // Required
|
||||
BudgetName: aws.String("BudgetName"), // Required
|
||||
NewNotification: &budgets.Notification{ // Required
|
||||
ComparisonOperator: aws.String("ComparisonOperator"), // Required
|
||||
NotificationType: aws.String("NotificationType"), // Required
|
||||
Threshold: aws.Float64(1.0), // Required
|
||||
},
|
||||
OldNotification: &budgets.Notification{ // Required
|
||||
ComparisonOperator: aws.String("ComparisonOperator"), // Required
|
||||
NotificationType: aws.String("NotificationType"), // Required
|
||||
Threshold: aws.Float64(1.0), // Required
|
||||
},
|
||||
}
|
||||
resp, err := svc.UpdateNotification(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleBudgets_UpdateSubscriber() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := budgets.New(sess)
|
||||
|
||||
params := &budgets.UpdateSubscriberInput{
|
||||
AccountId: aws.String("AccountId"), // Required
|
||||
BudgetName: aws.String("BudgetName"), // Required
|
||||
NewSubscriber: &budgets.Subscriber{ // Required
|
||||
Address: aws.String("GenericString"), // Required
|
||||
SubscriptionType: aws.String("SubscriptionType"), // Required
|
||||
},
|
||||
Notification: &budgets.Notification{ // Required
|
||||
ComparisonOperator: aws.String("ComparisonOperator"), // Required
|
||||
NotificationType: aws.String("NotificationType"), // Required
|
||||
Threshold: aws.Float64(1.0), // Required
|
||||
},
|
||||
OldSubscriber: &budgets.Subscriber{ // Required
|
||||
Address: aws.String("GenericString"), // Required
|
||||
SubscriptionType: aws.String("SubscriptionType"), // Required
|
||||
},
|
||||
}
|
||||
resp, err := svc.UpdateSubscriber(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
+7
-4
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package budgets
|
||||
|
||||
@@ -11,9 +11,12 @@ import (
|
||||
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
|
||||
)
|
||||
|
||||
// All public APIs for AWS Budgets
|
||||
// The service client's operations are safe to be used concurrently.
|
||||
// It is not safe to mutate any of the client's properties though.
|
||||
// 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
|
||||
}
|
||||
|
||||
+5895
-864
File diff suppressed because it is too large
Load Diff
Generated
Vendored
+48
-2
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package clouddirectoryiface provides an interface to enable mocking the Amazon CloudDirectory service client
|
||||
// for testing your code.
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
//
|
||||
// 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 the SDK's request pipeline.
|
||||
// to inject custom request handlers into the SDK's request pipeline.
|
||||
//
|
||||
// // myFunc uses an SDK service client to make a request to
|
||||
// // Amazon CloudDirectory.
|
||||
@@ -80,6 +80,10 @@ type CloudDirectoryAPI interface {
|
||||
AttachToIndexWithContext(aws.Context, *clouddirectory.AttachToIndexInput, ...request.Option) (*clouddirectory.AttachToIndexOutput, error)
|
||||
AttachToIndexRequest(*clouddirectory.AttachToIndexInput) (*request.Request, *clouddirectory.AttachToIndexOutput)
|
||||
|
||||
AttachTypedLink(*clouddirectory.AttachTypedLinkInput) (*clouddirectory.AttachTypedLinkOutput, error)
|
||||
AttachTypedLinkWithContext(aws.Context, *clouddirectory.AttachTypedLinkInput, ...request.Option) (*clouddirectory.AttachTypedLinkOutput, error)
|
||||
AttachTypedLinkRequest(*clouddirectory.AttachTypedLinkInput) (*request.Request, *clouddirectory.AttachTypedLinkOutput)
|
||||
|
||||
BatchRead(*clouddirectory.BatchReadInput) (*clouddirectory.BatchReadOutput, error)
|
||||
BatchReadWithContext(aws.Context, *clouddirectory.BatchReadInput, ...request.Option) (*clouddirectory.BatchReadOutput, error)
|
||||
BatchReadRequest(*clouddirectory.BatchReadInput) (*request.Request, *clouddirectory.BatchReadOutput)
|
||||
@@ -108,6 +112,10 @@ type CloudDirectoryAPI interface {
|
||||
CreateSchemaWithContext(aws.Context, *clouddirectory.CreateSchemaInput, ...request.Option) (*clouddirectory.CreateSchemaOutput, error)
|
||||
CreateSchemaRequest(*clouddirectory.CreateSchemaInput) (*request.Request, *clouddirectory.CreateSchemaOutput)
|
||||
|
||||
CreateTypedLinkFacet(*clouddirectory.CreateTypedLinkFacetInput) (*clouddirectory.CreateTypedLinkFacetOutput, error)
|
||||
CreateTypedLinkFacetWithContext(aws.Context, *clouddirectory.CreateTypedLinkFacetInput, ...request.Option) (*clouddirectory.CreateTypedLinkFacetOutput, error)
|
||||
CreateTypedLinkFacetRequest(*clouddirectory.CreateTypedLinkFacetInput) (*request.Request, *clouddirectory.CreateTypedLinkFacetOutput)
|
||||
|
||||
DeleteDirectory(*clouddirectory.DeleteDirectoryInput) (*clouddirectory.DeleteDirectoryOutput, error)
|
||||
DeleteDirectoryWithContext(aws.Context, *clouddirectory.DeleteDirectoryInput, ...request.Option) (*clouddirectory.DeleteDirectoryOutput, error)
|
||||
DeleteDirectoryRequest(*clouddirectory.DeleteDirectoryInput) (*request.Request, *clouddirectory.DeleteDirectoryOutput)
|
||||
@@ -124,6 +132,10 @@ type CloudDirectoryAPI interface {
|
||||
DeleteSchemaWithContext(aws.Context, *clouddirectory.DeleteSchemaInput, ...request.Option) (*clouddirectory.DeleteSchemaOutput, error)
|
||||
DeleteSchemaRequest(*clouddirectory.DeleteSchemaInput) (*request.Request, *clouddirectory.DeleteSchemaOutput)
|
||||
|
||||
DeleteTypedLinkFacet(*clouddirectory.DeleteTypedLinkFacetInput) (*clouddirectory.DeleteTypedLinkFacetOutput, error)
|
||||
DeleteTypedLinkFacetWithContext(aws.Context, *clouddirectory.DeleteTypedLinkFacetInput, ...request.Option) (*clouddirectory.DeleteTypedLinkFacetOutput, error)
|
||||
DeleteTypedLinkFacetRequest(*clouddirectory.DeleteTypedLinkFacetInput) (*request.Request, *clouddirectory.DeleteTypedLinkFacetOutput)
|
||||
|
||||
DetachFromIndex(*clouddirectory.DetachFromIndexInput) (*clouddirectory.DetachFromIndexOutput, error)
|
||||
DetachFromIndexWithContext(aws.Context, *clouddirectory.DetachFromIndexInput, ...request.Option) (*clouddirectory.DetachFromIndexOutput, error)
|
||||
DetachFromIndexRequest(*clouddirectory.DetachFromIndexInput) (*request.Request, *clouddirectory.DetachFromIndexOutput)
|
||||
@@ -136,6 +148,10 @@ type CloudDirectoryAPI interface {
|
||||
DetachPolicyWithContext(aws.Context, *clouddirectory.DetachPolicyInput, ...request.Option) (*clouddirectory.DetachPolicyOutput, error)
|
||||
DetachPolicyRequest(*clouddirectory.DetachPolicyInput) (*request.Request, *clouddirectory.DetachPolicyOutput)
|
||||
|
||||
DetachTypedLink(*clouddirectory.DetachTypedLinkInput) (*clouddirectory.DetachTypedLinkOutput, error)
|
||||
DetachTypedLinkWithContext(aws.Context, *clouddirectory.DetachTypedLinkInput, ...request.Option) (*clouddirectory.DetachTypedLinkOutput, error)
|
||||
DetachTypedLinkRequest(*clouddirectory.DetachTypedLinkInput) (*request.Request, *clouddirectory.DetachTypedLinkOutput)
|
||||
|
||||
DisableDirectory(*clouddirectory.DisableDirectoryInput) (*clouddirectory.DisableDirectoryOutput, error)
|
||||
DisableDirectoryWithContext(aws.Context, *clouddirectory.DisableDirectoryInput, ...request.Option) (*clouddirectory.DisableDirectoryOutput, error)
|
||||
DisableDirectoryRequest(*clouddirectory.DisableDirectoryInput) (*request.Request, *clouddirectory.DisableDirectoryOutput)
|
||||
@@ -160,6 +176,10 @@ type CloudDirectoryAPI interface {
|
||||
GetSchemaAsJsonWithContext(aws.Context, *clouddirectory.GetSchemaAsJsonInput, ...request.Option) (*clouddirectory.GetSchemaAsJsonOutput, error)
|
||||
GetSchemaAsJsonRequest(*clouddirectory.GetSchemaAsJsonInput) (*request.Request, *clouddirectory.GetSchemaAsJsonOutput)
|
||||
|
||||
GetTypedLinkFacetInformation(*clouddirectory.GetTypedLinkFacetInformationInput) (*clouddirectory.GetTypedLinkFacetInformationOutput, error)
|
||||
GetTypedLinkFacetInformationWithContext(aws.Context, *clouddirectory.GetTypedLinkFacetInformationInput, ...request.Option) (*clouddirectory.GetTypedLinkFacetInformationOutput, error)
|
||||
GetTypedLinkFacetInformationRequest(*clouddirectory.GetTypedLinkFacetInformationInput) (*request.Request, *clouddirectory.GetTypedLinkFacetInformationOutput)
|
||||
|
||||
ListAppliedSchemaArns(*clouddirectory.ListAppliedSchemaArnsInput) (*clouddirectory.ListAppliedSchemaArnsOutput, error)
|
||||
ListAppliedSchemaArnsWithContext(aws.Context, *clouddirectory.ListAppliedSchemaArnsInput, ...request.Option) (*clouddirectory.ListAppliedSchemaArnsOutput, error)
|
||||
ListAppliedSchemaArnsRequest(*clouddirectory.ListAppliedSchemaArnsInput) (*request.Request, *clouddirectory.ListAppliedSchemaArnsOutput)
|
||||
@@ -202,6 +222,10 @@ type CloudDirectoryAPI interface {
|
||||
ListFacetNamesPages(*clouddirectory.ListFacetNamesInput, func(*clouddirectory.ListFacetNamesOutput, bool) bool) error
|
||||
ListFacetNamesPagesWithContext(aws.Context, *clouddirectory.ListFacetNamesInput, func(*clouddirectory.ListFacetNamesOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListIncomingTypedLinks(*clouddirectory.ListIncomingTypedLinksInput) (*clouddirectory.ListIncomingTypedLinksOutput, error)
|
||||
ListIncomingTypedLinksWithContext(aws.Context, *clouddirectory.ListIncomingTypedLinksInput, ...request.Option) (*clouddirectory.ListIncomingTypedLinksOutput, error)
|
||||
ListIncomingTypedLinksRequest(*clouddirectory.ListIncomingTypedLinksInput) (*request.Request, *clouddirectory.ListIncomingTypedLinksOutput)
|
||||
|
||||
ListIndex(*clouddirectory.ListIndexInput) (*clouddirectory.ListIndexOutput, error)
|
||||
ListIndexWithContext(aws.Context, *clouddirectory.ListIndexInput, ...request.Option) (*clouddirectory.ListIndexOutput, error)
|
||||
ListIndexRequest(*clouddirectory.ListIndexInput) (*request.Request, *clouddirectory.ListIndexOutput)
|
||||
@@ -244,6 +268,10 @@ type CloudDirectoryAPI interface {
|
||||
ListObjectPoliciesPages(*clouddirectory.ListObjectPoliciesInput, func(*clouddirectory.ListObjectPoliciesOutput, bool) bool) error
|
||||
ListObjectPoliciesPagesWithContext(aws.Context, *clouddirectory.ListObjectPoliciesInput, func(*clouddirectory.ListObjectPoliciesOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListOutgoingTypedLinks(*clouddirectory.ListOutgoingTypedLinksInput) (*clouddirectory.ListOutgoingTypedLinksOutput, error)
|
||||
ListOutgoingTypedLinksWithContext(aws.Context, *clouddirectory.ListOutgoingTypedLinksInput, ...request.Option) (*clouddirectory.ListOutgoingTypedLinksOutput, error)
|
||||
ListOutgoingTypedLinksRequest(*clouddirectory.ListOutgoingTypedLinksInput) (*request.Request, *clouddirectory.ListOutgoingTypedLinksOutput)
|
||||
|
||||
ListPolicyAttachments(*clouddirectory.ListPolicyAttachmentsInput) (*clouddirectory.ListPolicyAttachmentsOutput, error)
|
||||
ListPolicyAttachmentsWithContext(aws.Context, *clouddirectory.ListPolicyAttachmentsInput, ...request.Option) (*clouddirectory.ListPolicyAttachmentsOutput, error)
|
||||
ListPolicyAttachmentsRequest(*clouddirectory.ListPolicyAttachmentsInput) (*request.Request, *clouddirectory.ListPolicyAttachmentsOutput)
|
||||
@@ -265,6 +293,20 @@ type CloudDirectoryAPI interface {
|
||||
ListTagsForResourcePages(*clouddirectory.ListTagsForResourceInput, func(*clouddirectory.ListTagsForResourceOutput, bool) bool) error
|
||||
ListTagsForResourcePagesWithContext(aws.Context, *clouddirectory.ListTagsForResourceInput, func(*clouddirectory.ListTagsForResourceOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListTypedLinkFacetAttributes(*clouddirectory.ListTypedLinkFacetAttributesInput) (*clouddirectory.ListTypedLinkFacetAttributesOutput, error)
|
||||
ListTypedLinkFacetAttributesWithContext(aws.Context, *clouddirectory.ListTypedLinkFacetAttributesInput, ...request.Option) (*clouddirectory.ListTypedLinkFacetAttributesOutput, error)
|
||||
ListTypedLinkFacetAttributesRequest(*clouddirectory.ListTypedLinkFacetAttributesInput) (*request.Request, *clouddirectory.ListTypedLinkFacetAttributesOutput)
|
||||
|
||||
ListTypedLinkFacetAttributesPages(*clouddirectory.ListTypedLinkFacetAttributesInput, func(*clouddirectory.ListTypedLinkFacetAttributesOutput, bool) bool) error
|
||||
ListTypedLinkFacetAttributesPagesWithContext(aws.Context, *clouddirectory.ListTypedLinkFacetAttributesInput, func(*clouddirectory.ListTypedLinkFacetAttributesOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListTypedLinkFacetNames(*clouddirectory.ListTypedLinkFacetNamesInput) (*clouddirectory.ListTypedLinkFacetNamesOutput, error)
|
||||
ListTypedLinkFacetNamesWithContext(aws.Context, *clouddirectory.ListTypedLinkFacetNamesInput, ...request.Option) (*clouddirectory.ListTypedLinkFacetNamesOutput, error)
|
||||
ListTypedLinkFacetNamesRequest(*clouddirectory.ListTypedLinkFacetNamesInput) (*request.Request, *clouddirectory.ListTypedLinkFacetNamesOutput)
|
||||
|
||||
ListTypedLinkFacetNamesPages(*clouddirectory.ListTypedLinkFacetNamesInput, func(*clouddirectory.ListTypedLinkFacetNamesOutput, bool) bool) error
|
||||
ListTypedLinkFacetNamesPagesWithContext(aws.Context, *clouddirectory.ListTypedLinkFacetNamesInput, func(*clouddirectory.ListTypedLinkFacetNamesOutput, bool) bool, ...request.Option) error
|
||||
|
||||
LookupPolicy(*clouddirectory.LookupPolicyInput) (*clouddirectory.LookupPolicyOutput, error)
|
||||
LookupPolicyWithContext(aws.Context, *clouddirectory.LookupPolicyInput, ...request.Option) (*clouddirectory.LookupPolicyOutput, error)
|
||||
LookupPolicyRequest(*clouddirectory.LookupPolicyInput) (*request.Request, *clouddirectory.LookupPolicyOutput)
|
||||
@@ -303,6 +345,10 @@ type CloudDirectoryAPI interface {
|
||||
UpdateSchema(*clouddirectory.UpdateSchemaInput) (*clouddirectory.UpdateSchemaOutput, error)
|
||||
UpdateSchemaWithContext(aws.Context, *clouddirectory.UpdateSchemaInput, ...request.Option) (*clouddirectory.UpdateSchemaOutput, error)
|
||||
UpdateSchemaRequest(*clouddirectory.UpdateSchemaInput) (*request.Request, *clouddirectory.UpdateSchemaOutput)
|
||||
|
||||
UpdateTypedLinkFacet(*clouddirectory.UpdateTypedLinkFacetInput) (*clouddirectory.UpdateTypedLinkFacetOutput, error)
|
||||
UpdateTypedLinkFacetWithContext(aws.Context, *clouddirectory.UpdateTypedLinkFacetInput, ...request.Option) (*clouddirectory.UpdateTypedLinkFacetOutput, error)
|
||||
UpdateTypedLinkFacetRequest(*clouddirectory.UpdateTypedLinkFacetInput) (*request.Request, *clouddirectory.UpdateTypedLinkFacetOutput)
|
||||
}
|
||||
|
||||
var _ CloudDirectoryAPI = (*clouddirectory.CloudDirectory)(nil)
|
||||
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package clouddirectory provides the client and types for making API
|
||||
// requests to Amazon CloudDirectory.
|
||||
//
|
||||
// Amazon Cloud Directory is a component of the AWS Directory Service that simplifies
|
||||
// the development and management of cloud-scale web, mobile, and IoT applications.
|
||||
// This guide describes the Cloud Directory operations that you can call programmatically
|
||||
// and includes detailed information on data types and errors. For information
|
||||
// about AWS Directory Services features, see AWS Directory Service (https://aws.amazon.com/directoryservice/)
|
||||
// and the AWS Directory Service Administration Guide (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/what_is.html).
|
||||
//
|
||||
// See https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10 for more information on this service.
|
||||
//
|
||||
// See clouddirectory package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/clouddirectory/
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To Amazon CloudDirectory 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 CloudDirectory client CloudDirectory for more
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/clouddirectory/#New
|
||||
package clouddirectory
|
||||
+18
-17
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package clouddirectory
|
||||
|
||||
@@ -32,8 +32,8 @@ const (
|
||||
// ErrCodeDirectoryDeletedException for service response error code
|
||||
// "DirectoryDeletedException".
|
||||
//
|
||||
// A directory that has been deleted has been attempted to be accessed. Note:
|
||||
// The requested resource will eventually cease to exist.
|
||||
// A directory that has been deleted and to which access has been attempted.
|
||||
// Note: The requested resource will eventually cease to exist.
|
||||
ErrCodeDirectoryDeletedException = "DirectoryDeletedException"
|
||||
|
||||
// ErrCodeDirectoryNotDisabledException for service response error code
|
||||
@@ -57,7 +57,7 @@ const (
|
||||
// ErrCodeFacetInUseException for service response error code
|
||||
// "FacetInUseException".
|
||||
//
|
||||
// Occurs when deleting a facet that contains an attribute which is a target
|
||||
// Occurs when deleting a facet that contains an attribute that is a target
|
||||
// to an attribute reference in a different facet.
|
||||
ErrCodeFacetInUseException = "FacetInUseException"
|
||||
|
||||
@@ -70,8 +70,8 @@ const (
|
||||
// ErrCodeFacetValidationException for service response error code
|
||||
// "FacetValidationException".
|
||||
//
|
||||
// The Facet you provided was not well formed or could not be validated with
|
||||
// the schema.
|
||||
// The Facet that you provided was not well formed or could not be validated
|
||||
// with the schema.
|
||||
ErrCodeFacetValidationException = "FacetValidationException"
|
||||
|
||||
// ErrCodeIndexedAttributeMissingException for service response error code
|
||||
@@ -100,8 +100,8 @@ const (
|
||||
// "InvalidAttachmentException".
|
||||
//
|
||||
// Indicates that an attempt to attach an object with the same link name or
|
||||
// to apply a schema with same name has occurred. Rename the link or the schema
|
||||
// and then try again.
|
||||
// to apply a schema with the same name has occurred. Rename the link or the
|
||||
// schema and then try again.
|
||||
ErrCodeInvalidAttachmentException = "InvalidAttachmentException"
|
||||
|
||||
// ErrCodeInvalidFacetUpdateException for service response error code
|
||||
@@ -139,7 +139,7 @@ const (
|
||||
// ErrCodeLimitExceededException for service response error code
|
||||
// "LimitExceededException".
|
||||
//
|
||||
// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html)
|
||||
// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html)
|
||||
// for more information.
|
||||
ErrCodeLimitExceededException = "LimitExceededException"
|
||||
|
||||
@@ -153,32 +153,32 @@ const (
|
||||
// ErrCodeNotIndexException for service response error code
|
||||
// "NotIndexException".
|
||||
//
|
||||
// Indicates the requested operation can only operate on index objects.
|
||||
// Indicates that the requested operation can only operate on index objects.
|
||||
ErrCodeNotIndexException = "NotIndexException"
|
||||
|
||||
// ErrCodeNotNodeException for service response error code
|
||||
// "NotNodeException".
|
||||
//
|
||||
// Occurs when any invalid operations are performed on an object which is not
|
||||
// Occurs when any invalid operations are performed on an object that is not
|
||||
// a node, such as calling ListObjectChildren for a leaf node object.
|
||||
ErrCodeNotNodeException = "NotNodeException"
|
||||
|
||||
// ErrCodeNotPolicyException for service response error code
|
||||
// "NotPolicyException".
|
||||
//
|
||||
// Indicates the requested operation can only operate on policy objects.
|
||||
// Indicates that the requested operation can only operate on policy objects.
|
||||
ErrCodeNotPolicyException = "NotPolicyException"
|
||||
|
||||
// ErrCodeObjectAlreadyDetachedException for service response error code
|
||||
// "ObjectAlreadyDetachedException".
|
||||
//
|
||||
// Indicates the object is not attached to the index.
|
||||
// Indicates that the object is not attached to the index.
|
||||
ErrCodeObjectAlreadyDetachedException = "ObjectAlreadyDetachedException"
|
||||
|
||||
// ErrCodeObjectNotDetachedException for service response error code
|
||||
// "ObjectNotDetachedException".
|
||||
//
|
||||
// Indicates the requested operation cannot be completed because the object
|
||||
// Indicates that the requested operation cannot be completed because the object
|
||||
// has not been detached from the tree.
|
||||
ErrCodeObjectNotDetachedException = "ObjectNotDetachedException"
|
||||
|
||||
@@ -209,7 +209,7 @@ const (
|
||||
// ErrCodeSchemaAlreadyPublishedException for service response error code
|
||||
// "SchemaAlreadyPublishedException".
|
||||
//
|
||||
// Indicates a schema is already published.
|
||||
// Indicates that a schema is already published.
|
||||
ErrCodeSchemaAlreadyPublishedException = "SchemaAlreadyPublishedException"
|
||||
|
||||
// ErrCodeStillContainsLinksException for service response error code
|
||||
@@ -222,12 +222,13 @@ const (
|
||||
// ErrCodeUnsupportedIndexTypeException for service response error code
|
||||
// "UnsupportedIndexTypeException".
|
||||
//
|
||||
// Indicates the requested index type is not supported.
|
||||
// Indicates that the requested index type is not supported.
|
||||
ErrCodeUnsupportedIndexTypeException = "UnsupportedIndexTypeException"
|
||||
|
||||
// ErrCodeValidationException for service response error code
|
||||
// "ValidationException".
|
||||
//
|
||||
// Indicates your request is malformed in some manner. See the exception message.
|
||||
// Indicates that your request is malformed in some manner. See the exception
|
||||
// message.
|
||||
ErrCodeValidationException = "ValidationException"
|
||||
)
|
||||
|
||||
-1502
File diff suppressed because it is too large
Load Diff
+7
-10
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package clouddirectory
|
||||
|
||||
@@ -11,15 +11,12 @@ import (
|
||||
"github.com/aws/aws-sdk-go/private/protocol/restjson"
|
||||
)
|
||||
|
||||
// Amazon Cloud Directory is a component of the AWS Directory Service that simplifies
|
||||
// the development and management of cloud-scale web, mobile and IoT applications.
|
||||
// This guide describes the Cloud Directory operations that you can call programatically
|
||||
// and includes detailed information on data types and errors. For information
|
||||
// about AWS Directory Services features, see AWS Directory Service (https://aws.amazon.com/directoryservice/)
|
||||
// and the AWS Directory Service Administration Guide (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/what_is.html).
|
||||
// The service client's operations are safe to be used concurrently.
|
||||
// It is not safe to mutate any of the client's properties though.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10
|
||||
// CloudDirectory provides the API operation methods for making requests to
|
||||
// Amazon CloudDirectory. See this package's package overview docs
|
||||
// for details on the service.
|
||||
//
|
||||
// CloudDirectory methods are safe to use concurrently. It is not safe to
|
||||
// modify mutate any of the struct's properties though.
|
||||
type CloudDirectory struct {
|
||||
*client.Client
|
||||
}
|
||||
|
||||
+4765
-315
File diff suppressed because it is too large
Load Diff
Generated
Vendored
+67
-2
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package cloudformationiface provides an interface to enable mocking the AWS CloudFormation service client
|
||||
// for testing your code.
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
//
|
||||
// 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 the SDK's request pipeline.
|
||||
// to inject custom request handlers into the SDK's request pipeline.
|
||||
//
|
||||
// // myFunc uses an SDK service client to make a request to
|
||||
// // AWS CloudFormation.
|
||||
@@ -76,6 +76,14 @@ type CloudFormationAPI interface {
|
||||
CreateStackWithContext(aws.Context, *cloudformation.CreateStackInput, ...request.Option) (*cloudformation.CreateStackOutput, error)
|
||||
CreateStackRequest(*cloudformation.CreateStackInput) (*request.Request, *cloudformation.CreateStackOutput)
|
||||
|
||||
CreateStackInstances(*cloudformation.CreateStackInstancesInput) (*cloudformation.CreateStackInstancesOutput, error)
|
||||
CreateStackInstancesWithContext(aws.Context, *cloudformation.CreateStackInstancesInput, ...request.Option) (*cloudformation.CreateStackInstancesOutput, error)
|
||||
CreateStackInstancesRequest(*cloudformation.CreateStackInstancesInput) (*request.Request, *cloudformation.CreateStackInstancesOutput)
|
||||
|
||||
CreateStackSet(*cloudformation.CreateStackSetInput) (*cloudformation.CreateStackSetOutput, error)
|
||||
CreateStackSetWithContext(aws.Context, *cloudformation.CreateStackSetInput, ...request.Option) (*cloudformation.CreateStackSetOutput, error)
|
||||
CreateStackSetRequest(*cloudformation.CreateStackSetInput) (*request.Request, *cloudformation.CreateStackSetOutput)
|
||||
|
||||
DeleteChangeSet(*cloudformation.DeleteChangeSetInput) (*cloudformation.DeleteChangeSetOutput, error)
|
||||
DeleteChangeSetWithContext(aws.Context, *cloudformation.DeleteChangeSetInput, ...request.Option) (*cloudformation.DeleteChangeSetOutput, error)
|
||||
DeleteChangeSetRequest(*cloudformation.DeleteChangeSetInput) (*request.Request, *cloudformation.DeleteChangeSetOutput)
|
||||
@@ -84,6 +92,14 @@ type CloudFormationAPI interface {
|
||||
DeleteStackWithContext(aws.Context, *cloudformation.DeleteStackInput, ...request.Option) (*cloudformation.DeleteStackOutput, error)
|
||||
DeleteStackRequest(*cloudformation.DeleteStackInput) (*request.Request, *cloudformation.DeleteStackOutput)
|
||||
|
||||
DeleteStackInstances(*cloudformation.DeleteStackInstancesInput) (*cloudformation.DeleteStackInstancesOutput, error)
|
||||
DeleteStackInstancesWithContext(aws.Context, *cloudformation.DeleteStackInstancesInput, ...request.Option) (*cloudformation.DeleteStackInstancesOutput, error)
|
||||
DeleteStackInstancesRequest(*cloudformation.DeleteStackInstancesInput) (*request.Request, *cloudformation.DeleteStackInstancesOutput)
|
||||
|
||||
DeleteStackSet(*cloudformation.DeleteStackSetInput) (*cloudformation.DeleteStackSetOutput, error)
|
||||
DeleteStackSetWithContext(aws.Context, *cloudformation.DeleteStackSetInput, ...request.Option) (*cloudformation.DeleteStackSetOutput, error)
|
||||
DeleteStackSetRequest(*cloudformation.DeleteStackSetInput) (*request.Request, *cloudformation.DeleteStackSetOutput)
|
||||
|
||||
DescribeAccountLimits(*cloudformation.DescribeAccountLimitsInput) (*cloudformation.DescribeAccountLimitsOutput, error)
|
||||
DescribeAccountLimitsWithContext(aws.Context, *cloudformation.DescribeAccountLimitsInput, ...request.Option) (*cloudformation.DescribeAccountLimitsOutput, error)
|
||||
DescribeAccountLimitsRequest(*cloudformation.DescribeAccountLimitsInput) (*request.Request, *cloudformation.DescribeAccountLimitsOutput)
|
||||
@@ -99,6 +115,10 @@ type CloudFormationAPI interface {
|
||||
DescribeStackEventsPages(*cloudformation.DescribeStackEventsInput, func(*cloudformation.DescribeStackEventsOutput, bool) bool) error
|
||||
DescribeStackEventsPagesWithContext(aws.Context, *cloudformation.DescribeStackEventsInput, func(*cloudformation.DescribeStackEventsOutput, bool) bool, ...request.Option) error
|
||||
|
||||
DescribeStackInstance(*cloudformation.DescribeStackInstanceInput) (*cloudformation.DescribeStackInstanceOutput, error)
|
||||
DescribeStackInstanceWithContext(aws.Context, *cloudformation.DescribeStackInstanceInput, ...request.Option) (*cloudformation.DescribeStackInstanceOutput, error)
|
||||
DescribeStackInstanceRequest(*cloudformation.DescribeStackInstanceInput) (*request.Request, *cloudformation.DescribeStackInstanceOutput)
|
||||
|
||||
DescribeStackResource(*cloudformation.DescribeStackResourceInput) (*cloudformation.DescribeStackResourceOutput, error)
|
||||
DescribeStackResourceWithContext(aws.Context, *cloudformation.DescribeStackResourceInput, ...request.Option) (*cloudformation.DescribeStackResourceOutput, error)
|
||||
DescribeStackResourceRequest(*cloudformation.DescribeStackResourceInput) (*request.Request, *cloudformation.DescribeStackResourceOutput)
|
||||
@@ -107,6 +127,14 @@ type CloudFormationAPI interface {
|
||||
DescribeStackResourcesWithContext(aws.Context, *cloudformation.DescribeStackResourcesInput, ...request.Option) (*cloudformation.DescribeStackResourcesOutput, error)
|
||||
DescribeStackResourcesRequest(*cloudformation.DescribeStackResourcesInput) (*request.Request, *cloudformation.DescribeStackResourcesOutput)
|
||||
|
||||
DescribeStackSet(*cloudformation.DescribeStackSetInput) (*cloudformation.DescribeStackSetOutput, error)
|
||||
DescribeStackSetWithContext(aws.Context, *cloudformation.DescribeStackSetInput, ...request.Option) (*cloudformation.DescribeStackSetOutput, error)
|
||||
DescribeStackSetRequest(*cloudformation.DescribeStackSetInput) (*request.Request, *cloudformation.DescribeStackSetOutput)
|
||||
|
||||
DescribeStackSetOperation(*cloudformation.DescribeStackSetOperationInput) (*cloudformation.DescribeStackSetOperationOutput, error)
|
||||
DescribeStackSetOperationWithContext(aws.Context, *cloudformation.DescribeStackSetOperationInput, ...request.Option) (*cloudformation.DescribeStackSetOperationOutput, error)
|
||||
DescribeStackSetOperationRequest(*cloudformation.DescribeStackSetOperationInput) (*request.Request, *cloudformation.DescribeStackSetOperationOutput)
|
||||
|
||||
DescribeStacks(*cloudformation.DescribeStacksInput) (*cloudformation.DescribeStacksOutput, error)
|
||||
DescribeStacksWithContext(aws.Context, *cloudformation.DescribeStacksInput, ...request.Option) (*cloudformation.DescribeStacksOutput, error)
|
||||
DescribeStacksRequest(*cloudformation.DescribeStacksInput) (*request.Request, *cloudformation.DescribeStacksOutput)
|
||||
@@ -142,10 +170,20 @@ type CloudFormationAPI interface {
|
||||
ListExportsWithContext(aws.Context, *cloudformation.ListExportsInput, ...request.Option) (*cloudformation.ListExportsOutput, error)
|
||||
ListExportsRequest(*cloudformation.ListExportsInput) (*request.Request, *cloudformation.ListExportsOutput)
|
||||
|
||||
ListExportsPages(*cloudformation.ListExportsInput, func(*cloudformation.ListExportsOutput, bool) bool) error
|
||||
ListExportsPagesWithContext(aws.Context, *cloudformation.ListExportsInput, func(*cloudformation.ListExportsOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListImports(*cloudformation.ListImportsInput) (*cloudformation.ListImportsOutput, error)
|
||||
ListImportsWithContext(aws.Context, *cloudformation.ListImportsInput, ...request.Option) (*cloudformation.ListImportsOutput, error)
|
||||
ListImportsRequest(*cloudformation.ListImportsInput) (*request.Request, *cloudformation.ListImportsOutput)
|
||||
|
||||
ListImportsPages(*cloudformation.ListImportsInput, func(*cloudformation.ListImportsOutput, bool) bool) error
|
||||
ListImportsPagesWithContext(aws.Context, *cloudformation.ListImportsInput, func(*cloudformation.ListImportsOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListStackInstances(*cloudformation.ListStackInstancesInput) (*cloudformation.ListStackInstancesOutput, error)
|
||||
ListStackInstancesWithContext(aws.Context, *cloudformation.ListStackInstancesInput, ...request.Option) (*cloudformation.ListStackInstancesOutput, error)
|
||||
ListStackInstancesRequest(*cloudformation.ListStackInstancesInput) (*request.Request, *cloudformation.ListStackInstancesOutput)
|
||||
|
||||
ListStackResources(*cloudformation.ListStackResourcesInput) (*cloudformation.ListStackResourcesOutput, error)
|
||||
ListStackResourcesWithContext(aws.Context, *cloudformation.ListStackResourcesInput, ...request.Option) (*cloudformation.ListStackResourcesOutput, error)
|
||||
ListStackResourcesRequest(*cloudformation.ListStackResourcesInput) (*request.Request, *cloudformation.ListStackResourcesOutput)
|
||||
@@ -153,6 +191,18 @@ type CloudFormationAPI interface {
|
||||
ListStackResourcesPages(*cloudformation.ListStackResourcesInput, func(*cloudformation.ListStackResourcesOutput, bool) bool) error
|
||||
ListStackResourcesPagesWithContext(aws.Context, *cloudformation.ListStackResourcesInput, func(*cloudformation.ListStackResourcesOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListStackSetOperationResults(*cloudformation.ListStackSetOperationResultsInput) (*cloudformation.ListStackSetOperationResultsOutput, error)
|
||||
ListStackSetOperationResultsWithContext(aws.Context, *cloudformation.ListStackSetOperationResultsInput, ...request.Option) (*cloudformation.ListStackSetOperationResultsOutput, error)
|
||||
ListStackSetOperationResultsRequest(*cloudformation.ListStackSetOperationResultsInput) (*request.Request, *cloudformation.ListStackSetOperationResultsOutput)
|
||||
|
||||
ListStackSetOperations(*cloudformation.ListStackSetOperationsInput) (*cloudformation.ListStackSetOperationsOutput, error)
|
||||
ListStackSetOperationsWithContext(aws.Context, *cloudformation.ListStackSetOperationsInput, ...request.Option) (*cloudformation.ListStackSetOperationsOutput, error)
|
||||
ListStackSetOperationsRequest(*cloudformation.ListStackSetOperationsInput) (*request.Request, *cloudformation.ListStackSetOperationsOutput)
|
||||
|
||||
ListStackSets(*cloudformation.ListStackSetsInput) (*cloudformation.ListStackSetsOutput, error)
|
||||
ListStackSetsWithContext(aws.Context, *cloudformation.ListStackSetsInput, ...request.Option) (*cloudformation.ListStackSetsOutput, error)
|
||||
ListStackSetsRequest(*cloudformation.ListStackSetsInput) (*request.Request, *cloudformation.ListStackSetsOutput)
|
||||
|
||||
ListStacks(*cloudformation.ListStacksInput) (*cloudformation.ListStacksOutput, error)
|
||||
ListStacksWithContext(aws.Context, *cloudformation.ListStacksInput, ...request.Option) (*cloudformation.ListStacksOutput, error)
|
||||
ListStacksRequest(*cloudformation.ListStacksInput) (*request.Request, *cloudformation.ListStacksOutput)
|
||||
@@ -168,14 +218,29 @@ type CloudFormationAPI interface {
|
||||
SignalResourceWithContext(aws.Context, *cloudformation.SignalResourceInput, ...request.Option) (*cloudformation.SignalResourceOutput, error)
|
||||
SignalResourceRequest(*cloudformation.SignalResourceInput) (*request.Request, *cloudformation.SignalResourceOutput)
|
||||
|
||||
StopStackSetOperation(*cloudformation.StopStackSetOperationInput) (*cloudformation.StopStackSetOperationOutput, error)
|
||||
StopStackSetOperationWithContext(aws.Context, *cloudformation.StopStackSetOperationInput, ...request.Option) (*cloudformation.StopStackSetOperationOutput, error)
|
||||
StopStackSetOperationRequest(*cloudformation.StopStackSetOperationInput) (*request.Request, *cloudformation.StopStackSetOperationOutput)
|
||||
|
||||
UpdateStack(*cloudformation.UpdateStackInput) (*cloudformation.UpdateStackOutput, error)
|
||||
UpdateStackWithContext(aws.Context, *cloudformation.UpdateStackInput, ...request.Option) (*cloudformation.UpdateStackOutput, error)
|
||||
UpdateStackRequest(*cloudformation.UpdateStackInput) (*request.Request, *cloudformation.UpdateStackOutput)
|
||||
|
||||
UpdateStackSet(*cloudformation.UpdateStackSetInput) (*cloudformation.UpdateStackSetOutput, error)
|
||||
UpdateStackSetWithContext(aws.Context, *cloudformation.UpdateStackSetInput, ...request.Option) (*cloudformation.UpdateStackSetOutput, error)
|
||||
UpdateStackSetRequest(*cloudformation.UpdateStackSetInput) (*request.Request, *cloudformation.UpdateStackSetOutput)
|
||||
|
||||
UpdateTerminationProtection(*cloudformation.UpdateTerminationProtectionInput) (*cloudformation.UpdateTerminationProtectionOutput, error)
|
||||
UpdateTerminationProtectionWithContext(aws.Context, *cloudformation.UpdateTerminationProtectionInput, ...request.Option) (*cloudformation.UpdateTerminationProtectionOutput, error)
|
||||
UpdateTerminationProtectionRequest(*cloudformation.UpdateTerminationProtectionInput) (*request.Request, *cloudformation.UpdateTerminationProtectionOutput)
|
||||
|
||||
ValidateTemplate(*cloudformation.ValidateTemplateInput) (*cloudformation.ValidateTemplateOutput, error)
|
||||
ValidateTemplateWithContext(aws.Context, *cloudformation.ValidateTemplateInput, ...request.Option) (*cloudformation.ValidateTemplateOutput, error)
|
||||
ValidateTemplateRequest(*cloudformation.ValidateTemplateInput) (*request.Request, *cloudformation.ValidateTemplateOutput)
|
||||
|
||||
WaitUntilChangeSetCreateComplete(*cloudformation.DescribeChangeSetInput) error
|
||||
WaitUntilChangeSetCreateCompleteWithContext(aws.Context, *cloudformation.DescribeChangeSetInput, ...request.WaiterOption) error
|
||||
|
||||
WaitUntilStackCreateComplete(*cloudformation.DescribeStacksInput) error
|
||||
WaitUntilStackCreateCompleteWithContext(aws.Context, *cloudformation.DescribeStacksInput, ...request.WaiterOption) error
|
||||
|
||||
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package cloudformation provides the client and types for making API
|
||||
// requests to AWS CloudFormation.
|
||||
//
|
||||
// AWS CloudFormation allows you to create and manage AWS infrastructure deployments
|
||||
// predictably and repeatedly. You can use AWS CloudFormation to leverage AWS
|
||||
// products, such as Amazon Elastic Compute Cloud, Amazon Elastic Block Store,
|
||||
// Amazon Simple Notification Service, Elastic Load Balancing, and Auto Scaling
|
||||
// to build highly-reliable, highly scalable, cost-effective applications without
|
||||
// creating or configuring the underlying AWS infrastructure.
|
||||
//
|
||||
// With AWS CloudFormation, you declare all of your resources and dependencies
|
||||
// in a template file. The template defines a collection of resources as a single
|
||||
// unit called a stack. AWS CloudFormation creates and deletes all member resources
|
||||
// of the stack together and manages all dependencies between the resources
|
||||
// for you.
|
||||
//
|
||||
// For more information about AWS CloudFormation, see the AWS CloudFormation
|
||||
// Product Page (http://aws.amazon.com/cloudformation/).
|
||||
//
|
||||
// Amazon CloudFormation makes use of other AWS products. If you need additional
|
||||
// technical information about a specific AWS product, you can find the product's
|
||||
// technical documentation at docs.aws.amazon.com (http://docs.aws.amazon.com/).
|
||||
//
|
||||
// See https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15 for more information on this service.
|
||||
//
|
||||
// See cloudformation package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/cloudformation/
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To AWS CloudFormation 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 CloudFormation client CloudFormation for more
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/cloudformation/#New
|
||||
package cloudformation
|
||||
+78
-6
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package cloudformation
|
||||
|
||||
@@ -7,7 +7,7 @@ const (
|
||||
// ErrCodeAlreadyExistsException for service response error code
|
||||
// "AlreadyExistsException".
|
||||
//
|
||||
// Resource with the name requested already exists.
|
||||
// The resource with the name requested already exists.
|
||||
ErrCodeAlreadyExistsException = "AlreadyExistsException"
|
||||
|
||||
// ErrCodeChangeSetNotFoundException for service response error code
|
||||
@@ -17,24 +17,96 @@ const (
|
||||
// for a stack, use the ListChangeSets action.
|
||||
ErrCodeChangeSetNotFoundException = "ChangeSetNotFound"
|
||||
|
||||
// ErrCodeCreatedButModifiedException for service response error code
|
||||
// "CreatedButModifiedException".
|
||||
//
|
||||
// The specified resource exists, but has been changed.
|
||||
ErrCodeCreatedButModifiedException = "CreatedButModifiedException"
|
||||
|
||||
// ErrCodeInsufficientCapabilitiesException for service response error code
|
||||
// "InsufficientCapabilitiesException".
|
||||
//
|
||||
// The template contains resources with capabilities that were not specified
|
||||
// The template contains resources with capabilities that weren't specified
|
||||
// in the Capabilities parameter.
|
||||
ErrCodeInsufficientCapabilitiesException = "InsufficientCapabilitiesException"
|
||||
|
||||
// ErrCodeInvalidChangeSetStatusException for service response error code
|
||||
// "InvalidChangeSetStatus".
|
||||
//
|
||||
// The specified change set cannot be used to update the stack. For example,
|
||||
// the change set status might be CREATE_IN_PROGRESS or the stack status might
|
||||
// The specified change set can't be used to update the stack. For example,
|
||||
// the change set status might be CREATE_IN_PROGRESS, or the stack status might
|
||||
// be UPDATE_IN_PROGRESS.
|
||||
ErrCodeInvalidChangeSetStatusException = "InvalidChangeSetStatus"
|
||||
|
||||
// ErrCodeInvalidOperationException for service response error code
|
||||
// "InvalidOperationException".
|
||||
//
|
||||
// The specified operation isn't valid.
|
||||
ErrCodeInvalidOperationException = "InvalidOperationException"
|
||||
|
||||
// ErrCodeLimitExceededException for service response error code
|
||||
// "LimitExceededException".
|
||||
//
|
||||
// Quota for the resource has already been reached.
|
||||
// The quota for the resource has already been reached.
|
||||
//
|
||||
// For information on stack set limitations, see Limitations of StackSets (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-limitations.html).
|
||||
ErrCodeLimitExceededException = "LimitExceededException"
|
||||
|
||||
// ErrCodeNameAlreadyExistsException for service response error code
|
||||
// "NameAlreadyExistsException".
|
||||
//
|
||||
// The specified name is already in use.
|
||||
ErrCodeNameAlreadyExistsException = "NameAlreadyExistsException"
|
||||
|
||||
// ErrCodeOperationIdAlreadyExistsException for service response error code
|
||||
// "OperationIdAlreadyExistsException".
|
||||
//
|
||||
// The specified operation ID already exists.
|
||||
ErrCodeOperationIdAlreadyExistsException = "OperationIdAlreadyExistsException"
|
||||
|
||||
// ErrCodeOperationInProgressException for service response error code
|
||||
// "OperationInProgressException".
|
||||
//
|
||||
// Another operation is currently in progress for this stack set. Only one operation
|
||||
// can be performed for a stack set at a given time.
|
||||
ErrCodeOperationInProgressException = "OperationInProgressException"
|
||||
|
||||
// ErrCodeOperationNotFoundException for service response error code
|
||||
// "OperationNotFoundException".
|
||||
//
|
||||
// The specified ID refers to an operation that doesn't exist.
|
||||
ErrCodeOperationNotFoundException = "OperationNotFoundException"
|
||||
|
||||
// ErrCodeStackInstanceNotFoundException for service response error code
|
||||
// "StackInstanceNotFoundException".
|
||||
//
|
||||
// The specified stack instance doesn't exist.
|
||||
ErrCodeStackInstanceNotFoundException = "StackInstanceNotFoundException"
|
||||
|
||||
// ErrCodeStackSetNotEmptyException for service response error code
|
||||
// "StackSetNotEmptyException".
|
||||
//
|
||||
// You can't yet delete this stack set, because it still contains one or more
|
||||
// stack instances. Delete all stack instances from the stack set before deleting
|
||||
// the stack set.
|
||||
ErrCodeStackSetNotEmptyException = "StackSetNotEmptyException"
|
||||
|
||||
// ErrCodeStackSetNotFoundException for service response error code
|
||||
// "StackSetNotFoundException".
|
||||
//
|
||||
// The specified stack set doesn't exist.
|
||||
ErrCodeStackSetNotFoundException = "StackSetNotFoundException"
|
||||
|
||||
// ErrCodeStaleRequestException for service response error code
|
||||
// "StaleRequestException".
|
||||
//
|
||||
// Another operation has been performed on this stack set since the specified
|
||||
// operation was performed.
|
||||
ErrCodeStaleRequestException = "StaleRequestException"
|
||||
|
||||
// ErrCodeTokenAlreadyExistsException for service response error code
|
||||
// "TokenAlreadyExistsException".
|
||||
//
|
||||
// A client request token already exists.
|
||||
ErrCodeTokenAlreadyExistsException = "TokenAlreadyExistsException"
|
||||
)
|
||||
|
||||
-712
@@ -1,712 +0,0 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
|
||||
package cloudformation_test
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/session"
|
||||
"github.com/aws/aws-sdk-go/service/cloudformation"
|
||||
)
|
||||
|
||||
var _ time.Duration
|
||||
var _ bytes.Buffer
|
||||
|
||||
func ExampleCloudFormation_CancelUpdateStack() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudformation.New(sess)
|
||||
|
||||
params := &cloudformation.CancelUpdateStackInput{
|
||||
StackName: aws.String("StackName"), // Required
|
||||
}
|
||||
resp, err := svc.CancelUpdateStack(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudFormation_ContinueUpdateRollback() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudformation.New(sess)
|
||||
|
||||
params := &cloudformation.ContinueUpdateRollbackInput{
|
||||
StackName: aws.String("StackNameOrId"), // Required
|
||||
ResourcesToSkip: []*string{
|
||||
aws.String("ResourceToSkip"), // Required
|
||||
// More values...
|
||||
},
|
||||
RoleARN: aws.String("RoleARN"),
|
||||
}
|
||||
resp, err := svc.ContinueUpdateRollback(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudFormation_CreateChangeSet() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudformation.New(sess)
|
||||
|
||||
params := &cloudformation.CreateChangeSetInput{
|
||||
ChangeSetName: aws.String("ChangeSetName"), // Required
|
||||
StackName: aws.String("StackNameOrId"), // Required
|
||||
Capabilities: []*string{
|
||||
aws.String("Capability"), // Required
|
||||
// More values...
|
||||
},
|
||||
ChangeSetType: aws.String("ChangeSetType"),
|
||||
ClientToken: aws.String("ClientToken"),
|
||||
Description: aws.String("Description"),
|
||||
NotificationARNs: []*string{
|
||||
aws.String("NotificationARN"), // Required
|
||||
// More values...
|
||||
},
|
||||
Parameters: []*cloudformation.Parameter{
|
||||
{ // Required
|
||||
ParameterKey: aws.String("ParameterKey"),
|
||||
ParameterValue: aws.String("ParameterValue"),
|
||||
UsePreviousValue: aws.Bool(true),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
ResourceTypes: []*string{
|
||||
aws.String("ResourceType"), // Required
|
||||
// More values...
|
||||
},
|
||||
RoleARN: aws.String("RoleARN"),
|
||||
Tags: []*cloudformation.Tag{
|
||||
{ // Required
|
||||
Key: aws.String("TagKey"),
|
||||
Value: aws.String("TagValue"),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
TemplateBody: aws.String("TemplateBody"),
|
||||
TemplateURL: aws.String("TemplateURL"),
|
||||
UsePreviousTemplate: aws.Bool(true),
|
||||
}
|
||||
resp, err := svc.CreateChangeSet(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudFormation_CreateStack() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudformation.New(sess)
|
||||
|
||||
params := &cloudformation.CreateStackInput{
|
||||
StackName: aws.String("StackName"), // Required
|
||||
Capabilities: []*string{
|
||||
aws.String("Capability"), // Required
|
||||
// More values...
|
||||
},
|
||||
DisableRollback: aws.Bool(true),
|
||||
NotificationARNs: []*string{
|
||||
aws.String("NotificationARN"), // Required
|
||||
// More values...
|
||||
},
|
||||
OnFailure: aws.String("OnFailure"),
|
||||
Parameters: []*cloudformation.Parameter{
|
||||
{ // Required
|
||||
ParameterKey: aws.String("ParameterKey"),
|
||||
ParameterValue: aws.String("ParameterValue"),
|
||||
UsePreviousValue: aws.Bool(true),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
ResourceTypes: []*string{
|
||||
aws.String("ResourceType"), // Required
|
||||
// More values...
|
||||
},
|
||||
RoleARN: aws.String("RoleARN"),
|
||||
StackPolicyBody: aws.String("StackPolicyBody"),
|
||||
StackPolicyURL: aws.String("StackPolicyURL"),
|
||||
Tags: []*cloudformation.Tag{
|
||||
{ // Required
|
||||
Key: aws.String("TagKey"),
|
||||
Value: aws.String("TagValue"),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
TemplateBody: aws.String("TemplateBody"),
|
||||
TemplateURL: aws.String("TemplateURL"),
|
||||
TimeoutInMinutes: aws.Int64(1),
|
||||
}
|
||||
resp, err := svc.CreateStack(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudFormation_DeleteChangeSet() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudformation.New(sess)
|
||||
|
||||
params := &cloudformation.DeleteChangeSetInput{
|
||||
ChangeSetName: aws.String("ChangeSetNameOrId"), // Required
|
||||
StackName: aws.String("StackNameOrId"),
|
||||
}
|
||||
resp, err := svc.DeleteChangeSet(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudFormation_DeleteStack() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudformation.New(sess)
|
||||
|
||||
params := &cloudformation.DeleteStackInput{
|
||||
StackName: aws.String("StackName"), // Required
|
||||
RetainResources: []*string{
|
||||
aws.String("LogicalResourceId"), // Required
|
||||
// More values...
|
||||
},
|
||||
RoleARN: aws.String("RoleARN"),
|
||||
}
|
||||
resp, err := svc.DeleteStack(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudFormation_DescribeAccountLimits() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudformation.New(sess)
|
||||
|
||||
params := &cloudformation.DescribeAccountLimitsInput{
|
||||
NextToken: aws.String("NextToken"),
|
||||
}
|
||||
resp, err := svc.DescribeAccountLimits(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudFormation_DescribeChangeSet() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudformation.New(sess)
|
||||
|
||||
params := &cloudformation.DescribeChangeSetInput{
|
||||
ChangeSetName: aws.String("ChangeSetNameOrId"), // Required
|
||||
NextToken: aws.String("NextToken"),
|
||||
StackName: aws.String("StackNameOrId"),
|
||||
}
|
||||
resp, err := svc.DescribeChangeSet(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudFormation_DescribeStackEvents() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudformation.New(sess)
|
||||
|
||||
params := &cloudformation.DescribeStackEventsInput{
|
||||
NextToken: aws.String("NextToken"),
|
||||
StackName: aws.String("StackName"),
|
||||
}
|
||||
resp, err := svc.DescribeStackEvents(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudFormation_DescribeStackResource() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudformation.New(sess)
|
||||
|
||||
params := &cloudformation.DescribeStackResourceInput{
|
||||
LogicalResourceId: aws.String("LogicalResourceId"), // Required
|
||||
StackName: aws.String("StackName"), // Required
|
||||
}
|
||||
resp, err := svc.DescribeStackResource(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudFormation_DescribeStackResources() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudformation.New(sess)
|
||||
|
||||
params := &cloudformation.DescribeStackResourcesInput{
|
||||
LogicalResourceId: aws.String("LogicalResourceId"),
|
||||
PhysicalResourceId: aws.String("PhysicalResourceId"),
|
||||
StackName: aws.String("StackName"),
|
||||
}
|
||||
resp, err := svc.DescribeStackResources(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudFormation_DescribeStacks() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudformation.New(sess)
|
||||
|
||||
params := &cloudformation.DescribeStacksInput{
|
||||
NextToken: aws.String("NextToken"),
|
||||
StackName: aws.String("StackName"),
|
||||
}
|
||||
resp, err := svc.DescribeStacks(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudFormation_EstimateTemplateCost() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudformation.New(sess)
|
||||
|
||||
params := &cloudformation.EstimateTemplateCostInput{
|
||||
Parameters: []*cloudformation.Parameter{
|
||||
{ // Required
|
||||
ParameterKey: aws.String("ParameterKey"),
|
||||
ParameterValue: aws.String("ParameterValue"),
|
||||
UsePreviousValue: aws.Bool(true),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
TemplateBody: aws.String("TemplateBody"),
|
||||
TemplateURL: aws.String("TemplateURL"),
|
||||
}
|
||||
resp, err := svc.EstimateTemplateCost(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudFormation_ExecuteChangeSet() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudformation.New(sess)
|
||||
|
||||
params := &cloudformation.ExecuteChangeSetInput{
|
||||
ChangeSetName: aws.String("ChangeSetNameOrId"), // Required
|
||||
StackName: aws.String("StackNameOrId"),
|
||||
}
|
||||
resp, err := svc.ExecuteChangeSet(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudFormation_GetStackPolicy() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudformation.New(sess)
|
||||
|
||||
params := &cloudformation.GetStackPolicyInput{
|
||||
StackName: aws.String("StackName"), // Required
|
||||
}
|
||||
resp, err := svc.GetStackPolicy(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudFormation_GetTemplate() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudformation.New(sess)
|
||||
|
||||
params := &cloudformation.GetTemplateInput{
|
||||
ChangeSetName: aws.String("ChangeSetNameOrId"),
|
||||
StackName: aws.String("StackName"),
|
||||
TemplateStage: aws.String("TemplateStage"),
|
||||
}
|
||||
resp, err := svc.GetTemplate(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudFormation_GetTemplateSummary() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudformation.New(sess)
|
||||
|
||||
params := &cloudformation.GetTemplateSummaryInput{
|
||||
StackName: aws.String("StackNameOrId"),
|
||||
TemplateBody: aws.String("TemplateBody"),
|
||||
TemplateURL: aws.String("TemplateURL"),
|
||||
}
|
||||
resp, err := svc.GetTemplateSummary(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudFormation_ListChangeSets() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudformation.New(sess)
|
||||
|
||||
params := &cloudformation.ListChangeSetsInput{
|
||||
StackName: aws.String("StackNameOrId"), // Required
|
||||
NextToken: aws.String("NextToken"),
|
||||
}
|
||||
resp, err := svc.ListChangeSets(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudFormation_ListExports() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudformation.New(sess)
|
||||
|
||||
params := &cloudformation.ListExportsInput{
|
||||
NextToken: aws.String("NextToken"),
|
||||
}
|
||||
resp, err := svc.ListExports(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudFormation_ListImports() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudformation.New(sess)
|
||||
|
||||
params := &cloudformation.ListImportsInput{
|
||||
ExportName: aws.String("ExportName"), // Required
|
||||
NextToken: aws.String("NextToken"),
|
||||
}
|
||||
resp, err := svc.ListImports(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudFormation_ListStackResources() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudformation.New(sess)
|
||||
|
||||
params := &cloudformation.ListStackResourcesInput{
|
||||
StackName: aws.String("StackName"), // Required
|
||||
NextToken: aws.String("NextToken"),
|
||||
}
|
||||
resp, err := svc.ListStackResources(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudFormation_ListStacks() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudformation.New(sess)
|
||||
|
||||
params := &cloudformation.ListStacksInput{
|
||||
NextToken: aws.String("NextToken"),
|
||||
StackStatusFilter: []*string{
|
||||
aws.String("StackStatus"), // Required
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.ListStacks(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudFormation_SetStackPolicy() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudformation.New(sess)
|
||||
|
||||
params := &cloudformation.SetStackPolicyInput{
|
||||
StackName: aws.String("StackName"), // Required
|
||||
StackPolicyBody: aws.String("StackPolicyBody"),
|
||||
StackPolicyURL: aws.String("StackPolicyURL"),
|
||||
}
|
||||
resp, err := svc.SetStackPolicy(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudFormation_SignalResource() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudformation.New(sess)
|
||||
|
||||
params := &cloudformation.SignalResourceInput{
|
||||
LogicalResourceId: aws.String("LogicalResourceId"), // Required
|
||||
StackName: aws.String("StackNameOrId"), // Required
|
||||
Status: aws.String("ResourceSignalStatus"), // Required
|
||||
UniqueId: aws.String("ResourceSignalUniqueId"), // Required
|
||||
}
|
||||
resp, err := svc.SignalResource(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudFormation_UpdateStack() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudformation.New(sess)
|
||||
|
||||
params := &cloudformation.UpdateStackInput{
|
||||
StackName: aws.String("StackName"), // Required
|
||||
Capabilities: []*string{
|
||||
aws.String("Capability"), // Required
|
||||
// More values...
|
||||
},
|
||||
NotificationARNs: []*string{
|
||||
aws.String("NotificationARN"), // Required
|
||||
// More values...
|
||||
},
|
||||
Parameters: []*cloudformation.Parameter{
|
||||
{ // Required
|
||||
ParameterKey: aws.String("ParameterKey"),
|
||||
ParameterValue: aws.String("ParameterValue"),
|
||||
UsePreviousValue: aws.Bool(true),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
ResourceTypes: []*string{
|
||||
aws.String("ResourceType"), // Required
|
||||
// More values...
|
||||
},
|
||||
RoleARN: aws.String("RoleARN"),
|
||||
StackPolicyBody: aws.String("StackPolicyBody"),
|
||||
StackPolicyDuringUpdateBody: aws.String("StackPolicyDuringUpdateBody"),
|
||||
StackPolicyDuringUpdateURL: aws.String("StackPolicyDuringUpdateURL"),
|
||||
StackPolicyURL: aws.String("StackPolicyURL"),
|
||||
Tags: []*cloudformation.Tag{
|
||||
{ // Required
|
||||
Key: aws.String("TagKey"),
|
||||
Value: aws.String("TagValue"),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
TemplateBody: aws.String("TemplateBody"),
|
||||
TemplateURL: aws.String("TemplateURL"),
|
||||
UsePreviousTemplate: aws.Bool(true),
|
||||
}
|
||||
resp, err := svc.UpdateStack(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudFormation_ValidateTemplate() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudformation.New(sess)
|
||||
|
||||
params := &cloudformation.ValidateTemplateInput{
|
||||
TemplateBody: aws.String("TemplateBody"),
|
||||
TemplateURL: aws.String("TemplateURL"),
|
||||
}
|
||||
resp, err := svc.ValidateTemplate(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
+6
-22
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package cloudformation
|
||||
|
||||
@@ -11,28 +11,12 @@ import (
|
||||
"github.com/aws/aws-sdk-go/private/protocol/query"
|
||||
)
|
||||
|
||||
// AWS CloudFormation allows you to create and manage AWS infrastructure deployments
|
||||
// predictably and repeatedly. You can use AWS CloudFormation to leverage AWS
|
||||
// products, such as Amazon Elastic Compute Cloud, Amazon Elastic Block Store,
|
||||
// Amazon Simple Notification Service, Elastic Load Balancing, and Auto Scaling
|
||||
// to build highly-reliable, highly scalable, cost-effective applications without
|
||||
// creating or configuring the underlying AWS infrastructure.
|
||||
// CloudFormation provides the API operation methods for making requests to
|
||||
// AWS CloudFormation. See this package's package overview docs
|
||||
// for details on the service.
|
||||
//
|
||||
// With AWS CloudFormation, you declare all of your resources and dependencies
|
||||
// in a template file. The template defines a collection of resources as a single
|
||||
// unit called a stack. AWS CloudFormation creates and deletes all member resources
|
||||
// of the stack together and manages all dependencies between the resources
|
||||
// for you.
|
||||
//
|
||||
// For more information about AWS CloudFormation, see the AWS CloudFormation
|
||||
// Product Page (http://aws.amazon.com/cloudformation/).
|
||||
//
|
||||
// Amazon CloudFormation makes use of other AWS products. For additional technical
|
||||
// information about a specific AWS product, see its technical documentation
|
||||
// (http://docs.aws.amazon.com/).
|
||||
// The service client's operations are safe to be used concurrently.
|
||||
// It is not safe to mutate any of the client's properties though.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15
|
||||
// CloudFormation methods are safe to use concurrently. It is not safe to
|
||||
// modify mutate any of the struct's properties though.
|
||||
type CloudFormation struct {
|
||||
*client.Client
|
||||
}
|
||||
|
||||
+85
-9
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package cloudformation
|
||||
|
||||
@@ -9,9 +9,65 @@ import (
|
||||
"github.com/aws/aws-sdk-go/aws/request"
|
||||
)
|
||||
|
||||
// WaitUntilChangeSetCreateComplete uses the AWS CloudFormation API operation
|
||||
// DescribeChangeSet 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 *CloudFormation) WaitUntilChangeSetCreateComplete(input *DescribeChangeSetInput) error {
|
||||
return c.WaitUntilChangeSetCreateCompleteWithContext(aws.BackgroundContext(), input)
|
||||
}
|
||||
|
||||
// WaitUntilChangeSetCreateCompleteWithContext is an extended version of WaitUntilChangeSetCreateComplete.
|
||||
// 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 *CloudFormation) WaitUntilChangeSetCreateCompleteWithContext(ctx aws.Context, input *DescribeChangeSetInput, opts ...request.WaiterOption) error {
|
||||
w := request.Waiter{
|
||||
Name: "WaitUntilChangeSetCreateComplete",
|
||||
MaxAttempts: 120,
|
||||
Delay: request.ConstantWaiterDelay(30 * time.Second),
|
||||
Acceptors: []request.WaiterAcceptor{
|
||||
{
|
||||
State: request.SuccessWaiterState,
|
||||
Matcher: request.PathWaiterMatch, Argument: "Status",
|
||||
Expected: "CREATE_COMPLETE",
|
||||
},
|
||||
{
|
||||
State: request.FailureWaiterState,
|
||||
Matcher: request.PathWaiterMatch, Argument: "Status",
|
||||
Expected: "FAILED",
|
||||
},
|
||||
{
|
||||
State: request.FailureWaiterState,
|
||||
Matcher: request.ErrorWaiterMatch,
|
||||
Expected: "ValidationError",
|
||||
},
|
||||
},
|
||||
Logger: c.Config.Logger,
|
||||
NewRequest: func(opts []request.Option) (*request.Request, error) {
|
||||
var inCpy *DescribeChangeSetInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.DescribeChangeSetRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
},
|
||||
}
|
||||
w.ApplyOptions(opts...)
|
||||
|
||||
return w.WaitWithContext(ctx)
|
||||
}
|
||||
|
||||
// WaitUntilStackCreateComplete uses the AWS CloudFormation API operation
|
||||
// DescribeStacks to wait for a condition to be met before returning.
|
||||
// If the condition is not meet within the max attempt window an error will
|
||||
// If the condition is not met within the max attempt window, an error will
|
||||
// be returned.
|
||||
func (c *CloudFormation) WaitUntilStackCreateComplete(input *DescribeStacksInput) error {
|
||||
return c.WaitUntilStackCreateCompleteWithContext(aws.BackgroundContext(), input)
|
||||
@@ -69,7 +125,12 @@ func (c *CloudFormation) WaitUntilStackCreateCompleteWithContext(ctx aws.Context
|
||||
},
|
||||
Logger: c.Config.Logger,
|
||||
NewRequest: func(opts []request.Option) (*request.Request, error) {
|
||||
req, _ := c.DescribeStacksRequest(input)
|
||||
var inCpy *DescribeStacksInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.DescribeStacksRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
@@ -82,7 +143,7 @@ func (c *CloudFormation) WaitUntilStackCreateCompleteWithContext(ctx aws.Context
|
||||
|
||||
// WaitUntilStackDeleteComplete uses the AWS CloudFormation API operation
|
||||
// DescribeStacks to wait for a condition to be met before returning.
|
||||
// If the condition is not meet within the max attempt window an error will
|
||||
// If the condition is not met within the max attempt window, an error will
|
||||
// be returned.
|
||||
func (c *CloudFormation) WaitUntilStackDeleteComplete(input *DescribeStacksInput) error {
|
||||
return c.WaitUntilStackDeleteCompleteWithContext(aws.BackgroundContext(), input)
|
||||
@@ -140,7 +201,12 @@ func (c *CloudFormation) WaitUntilStackDeleteCompleteWithContext(ctx aws.Context
|
||||
},
|
||||
Logger: c.Config.Logger,
|
||||
NewRequest: func(opts []request.Option) (*request.Request, error) {
|
||||
req, _ := c.DescribeStacksRequest(input)
|
||||
var inCpy *DescribeStacksInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.DescribeStacksRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
@@ -153,7 +219,7 @@ func (c *CloudFormation) WaitUntilStackDeleteCompleteWithContext(ctx aws.Context
|
||||
|
||||
// WaitUntilStackExists uses the AWS CloudFormation API operation
|
||||
// DescribeStacks to wait for a condition to be met before returning.
|
||||
// If the condition is not meet within the max attempt window an error will
|
||||
// If the condition is not met within the max attempt window, an error will
|
||||
// be returned.
|
||||
func (c *CloudFormation) WaitUntilStackExists(input *DescribeStacksInput) error {
|
||||
return c.WaitUntilStackExistsWithContext(aws.BackgroundContext(), input)
|
||||
@@ -186,7 +252,12 @@ func (c *CloudFormation) WaitUntilStackExistsWithContext(ctx aws.Context, input
|
||||
},
|
||||
Logger: c.Config.Logger,
|
||||
NewRequest: func(opts []request.Option) (*request.Request, error) {
|
||||
req, _ := c.DescribeStacksRequest(input)
|
||||
var inCpy *DescribeStacksInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.DescribeStacksRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
@@ -199,7 +270,7 @@ func (c *CloudFormation) WaitUntilStackExistsWithContext(ctx aws.Context, input
|
||||
|
||||
// WaitUntilStackUpdateComplete uses the AWS CloudFormation API operation
|
||||
// DescribeStacks to wait for a condition to be met before returning.
|
||||
// If the condition is not meet within the max attempt window an error will
|
||||
// If the condition is not met within the max attempt window, an error will
|
||||
// be returned.
|
||||
func (c *CloudFormation) WaitUntilStackUpdateComplete(input *DescribeStacksInput) error {
|
||||
return c.WaitUntilStackUpdateCompleteWithContext(aws.BackgroundContext(), input)
|
||||
@@ -247,7 +318,12 @@ func (c *CloudFormation) WaitUntilStackUpdateCompleteWithContext(ctx aws.Context
|
||||
},
|
||||
Logger: c.Config.Logger,
|
||||
NewRequest: func(opts []request.Option) (*request.Request, error) {
|
||||
req, _ := c.DescribeStacksRequest(input)
|
||||
var inCpy *DescribeStacksInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.DescribeStacksRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
|
||||
+592
-518
File diff suppressed because it is too large
Load Diff
+2
-2
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package cloudfrontiface provides an interface to enable mocking the Amazon CloudFront service client
|
||||
// for testing your code.
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
//
|
||||
// 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 the SDK's request pipeline.
|
||||
// to inject custom request handlers into the SDK's request pipeline.
|
||||
//
|
||||
// // myFunc uses an SDK service client to make a request to
|
||||
// // Amazon CloudFront.
|
||||
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package cloudfront provides the client and types for making API
|
||||
// requests to Amazon CloudFront.
|
||||
//
|
||||
// This is the Amazon CloudFront API Reference. This guide is for developers
|
||||
// who need detailed information about the CloudFront API actions, data types,
|
||||
// and errors. For detailed information about CloudFront features and their
|
||||
// associated API calls, see the Amazon CloudFront Developer Guide.
|
||||
//
|
||||
// See https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-03-25 for more information on this service.
|
||||
//
|
||||
// See cloudfront package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/cloudfront/
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To Amazon CloudFront 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 CloudFront client CloudFront for more
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/cloudfront/#New
|
||||
package cloudfront
|
||||
+9
-1
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package cloudfront
|
||||
|
||||
@@ -107,6 +107,14 @@ const (
|
||||
// The origin access identity is not valid or doesn't exist.
|
||||
ErrCodeInvalidOriginAccessIdentity = "InvalidOriginAccessIdentity"
|
||||
|
||||
// ErrCodeInvalidOriginKeepaliveTimeout for service response error code
|
||||
// "InvalidOriginKeepaliveTimeout".
|
||||
ErrCodeInvalidOriginKeepaliveTimeout = "InvalidOriginKeepaliveTimeout"
|
||||
|
||||
// ErrCodeInvalidOriginReadTimeout for service response error code
|
||||
// "InvalidOriginReadTimeout".
|
||||
ErrCodeInvalidOriginReadTimeout = "InvalidOriginReadTimeout"
|
||||
|
||||
// ErrCodeInvalidProtocolSettings for service response error code
|
||||
// "InvalidProtocolSettings".
|
||||
//
|
||||
|
||||
+863
-1217
File diff suppressed because it is too large
Load Diff
+8
-9
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package cloudfront
|
||||
|
||||
@@ -11,13 +11,12 @@ import (
|
||||
"github.com/aws/aws-sdk-go/private/protocol/restxml"
|
||||
)
|
||||
|
||||
// This is the Amazon CloudFront API Reference. This guide is for developers
|
||||
// who need detailed information about the CloudFront API actions, data types,
|
||||
// and errors. For detailed information about CloudFront features and their
|
||||
// associated API calls, see the Amazon CloudFront Developer Guide.
|
||||
// The service client's operations are safe to be used concurrently.
|
||||
// It is not safe to mutate any of the client's properties though.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2016-11-25
|
||||
// CloudFront provides the API operation methods for making requests to
|
||||
// Amazon CloudFront. See this package's package overview docs
|
||||
// for details on the service.
|
||||
//
|
||||
// CloudFront methods are safe to use concurrently. It is not safe to
|
||||
// modify mutate any of the struct's properties though.
|
||||
type CloudFront struct {
|
||||
*client.Client
|
||||
}
|
||||
@@ -59,7 +58,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
||||
SigningName: signingName,
|
||||
SigningRegion: signingRegion,
|
||||
Endpoint: endpoint,
|
||||
APIVersion: "2016-11-25",
|
||||
APIVersion: "2017-03-25",
|
||||
},
|
||||
handlers,
|
||||
),
|
||||
|
||||
+3
-3
@@ -81,7 +81,7 @@ func NewCookieSigner(keyID string, privKey *rsa.PrivateKey, opts ...func(*Cookie
|
||||
// server's response.
|
||||
//
|
||||
// Example:
|
||||
// s := NewCookieSigner(keyID, privKey)
|
||||
// s := sign.NewCookieSigner(keyID, privKey)
|
||||
//
|
||||
// // Get Signed cookies for a resource that will expire in 1 hour
|
||||
// cookies, err := s.Sign("*", time.Now().Add(1 * time.Hour))
|
||||
@@ -150,14 +150,14 @@ func cookieURLScheme(u string) (string, error) {
|
||||
// server's response.
|
||||
//
|
||||
// Example:
|
||||
// s := NewCookieSigner(keyID, privKey)
|
||||
// s := sign.NewCookieSigner(keyID, privKey)
|
||||
//
|
||||
// policy := &sign.Policy{
|
||||
// Statements: []sign.Statement{
|
||||
// {
|
||||
// // Read the provided documentation on how to set this
|
||||
// // correctly, you'll probably want to use wildcards.
|
||||
// Resource: RawCloudFrontURL,
|
||||
// Resource: rawCloudFrontURL,
|
||||
// Condition: sign.Condition{
|
||||
// // Optional IP source address range
|
||||
// IPAddress: &sign.IPAddress{SourceIP: "192.0.2.0/24"},
|
||||
|
||||
+22
-7
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package cloudfront
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
|
||||
// WaitUntilDistributionDeployed uses the CloudFront API operation
|
||||
// GetDistribution to wait for a condition to be met before returning.
|
||||
// If the condition is not meet within the max attempt window an error will
|
||||
// If the condition is not met within the max attempt window, an error will
|
||||
// be returned.
|
||||
func (c *CloudFront) WaitUntilDistributionDeployed(input *GetDistributionInput) error {
|
||||
return c.WaitUntilDistributionDeployedWithContext(aws.BackgroundContext(), input)
|
||||
@@ -39,7 +39,12 @@ func (c *CloudFront) WaitUntilDistributionDeployedWithContext(ctx aws.Context, i
|
||||
},
|
||||
Logger: c.Config.Logger,
|
||||
NewRequest: func(opts []request.Option) (*request.Request, error) {
|
||||
req, _ := c.GetDistributionRequest(input)
|
||||
var inCpy *GetDistributionInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.GetDistributionRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
@@ -52,7 +57,7 @@ func (c *CloudFront) WaitUntilDistributionDeployedWithContext(ctx aws.Context, i
|
||||
|
||||
// WaitUntilInvalidationCompleted uses the CloudFront API operation
|
||||
// GetInvalidation to wait for a condition to be met before returning.
|
||||
// If the condition is not meet within the max attempt window an error will
|
||||
// If the condition is not met within the max attempt window, an error will
|
||||
// be returned.
|
||||
func (c *CloudFront) WaitUntilInvalidationCompleted(input *GetInvalidationInput) error {
|
||||
return c.WaitUntilInvalidationCompletedWithContext(aws.BackgroundContext(), input)
|
||||
@@ -80,7 +85,12 @@ func (c *CloudFront) WaitUntilInvalidationCompletedWithContext(ctx aws.Context,
|
||||
},
|
||||
Logger: c.Config.Logger,
|
||||
NewRequest: func(opts []request.Option) (*request.Request, error) {
|
||||
req, _ := c.GetInvalidationRequest(input)
|
||||
var inCpy *GetInvalidationInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.GetInvalidationRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
@@ -93,7 +103,7 @@ func (c *CloudFront) WaitUntilInvalidationCompletedWithContext(ctx aws.Context,
|
||||
|
||||
// WaitUntilStreamingDistributionDeployed uses the CloudFront API operation
|
||||
// GetStreamingDistribution to wait for a condition to be met before returning.
|
||||
// If the condition is not meet within the max attempt window an error will
|
||||
// If the condition is not met within the max attempt window, an error will
|
||||
// be returned.
|
||||
func (c *CloudFront) WaitUntilStreamingDistributionDeployed(input *GetStreamingDistributionInput) error {
|
||||
return c.WaitUntilStreamingDistributionDeployedWithContext(aws.BackgroundContext(), input)
|
||||
@@ -121,7 +131,12 @@ func (c *CloudFront) WaitUntilStreamingDistributionDeployedWithContext(ctx aws.C
|
||||
},
|
||||
Logger: c.Config.Logger,
|
||||
NewRequest: func(opts []request.Option) (*request.Request, error) {
|
||||
req, _ := c.GetStreamingDistributionRequest(input)
|
||||
var inCpy *GetStreamingDistributionInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.GetStreamingDistributionRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
|
||||
+181
-202
@@ -1,6 +1,5 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package cloudhsm provides a client for Amazon CloudHSM.
|
||||
package cloudhsm
|
||||
|
||||
import (
|
||||
@@ -15,19 +14,18 @@ const opAddTagsToResource = "AddTagsToResource"
|
||||
|
||||
// AddTagsToResourceRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the AddTagsToResource operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See AddTagsToResource for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the AddTagsToResource method directly
|
||||
// instead.
|
||||
// See AddTagsToResource for more information on using the AddTagsToResource
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the AddTagsToResourceRequest method.
|
||||
// req, resp := client.AddTagsToResourceRequest(params)
|
||||
@@ -103,19 +101,18 @@ const opCreateHapg = "CreateHapg"
|
||||
|
||||
// CreateHapgRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateHapg operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See CreateHapg for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateHapg method directly
|
||||
// instead.
|
||||
// See CreateHapg for more information on using the CreateHapg
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateHapgRequest method.
|
||||
// req, resp := client.CreateHapgRequest(params)
|
||||
@@ -190,19 +187,18 @@ const opCreateHsm = "CreateHsm"
|
||||
|
||||
// CreateHsmRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateHsm operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See CreateHsm for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateHsm method directly
|
||||
// instead.
|
||||
// See CreateHsm for more information on using the CreateHsm
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateHsmRequest method.
|
||||
// req, resp := client.CreateHsmRequest(params)
|
||||
@@ -286,19 +282,18 @@ const opCreateLunaClient = "CreateLunaClient"
|
||||
|
||||
// CreateLunaClientRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateLunaClient operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See CreateLunaClient for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateLunaClient method directly
|
||||
// instead.
|
||||
// See CreateLunaClient for more information on using the CreateLunaClient
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateLunaClientRequest method.
|
||||
// req, resp := client.CreateLunaClientRequest(params)
|
||||
@@ -372,19 +367,18 @@ const opDeleteHapg = "DeleteHapg"
|
||||
|
||||
// DeleteHapgRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteHapg operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DeleteHapg for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteHapg method directly
|
||||
// instead.
|
||||
// See DeleteHapg for more information on using the DeleteHapg
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteHapgRequest method.
|
||||
// req, resp := client.DeleteHapgRequest(params)
|
||||
@@ -458,19 +452,18 @@ const opDeleteHsm = "DeleteHsm"
|
||||
|
||||
// DeleteHsmRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteHsm operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DeleteHsm for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteHsm method directly
|
||||
// instead.
|
||||
// See DeleteHsm for more information on using the DeleteHsm
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteHsmRequest method.
|
||||
// req, resp := client.DeleteHsmRequest(params)
|
||||
@@ -545,19 +538,18 @@ const opDeleteLunaClient = "DeleteLunaClient"
|
||||
|
||||
// DeleteLunaClientRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteLunaClient operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DeleteLunaClient for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteLunaClient method directly
|
||||
// instead.
|
||||
// See DeleteLunaClient for more information on using the DeleteLunaClient
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteLunaClientRequest method.
|
||||
// req, resp := client.DeleteLunaClientRequest(params)
|
||||
@@ -631,19 +623,18 @@ const opDescribeHapg = "DescribeHapg"
|
||||
|
||||
// DescribeHapgRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeHapg operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeHapg for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeHapg method directly
|
||||
// instead.
|
||||
// See DescribeHapg for more information on using the DescribeHapg
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeHapgRequest method.
|
||||
// req, resp := client.DescribeHapgRequest(params)
|
||||
@@ -717,19 +708,18 @@ const opDescribeHsm = "DescribeHsm"
|
||||
|
||||
// DescribeHsmRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeHsm operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeHsm for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeHsm method directly
|
||||
// instead.
|
||||
// See DescribeHsm for more information on using the DescribeHsm
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeHsmRequest method.
|
||||
// req, resp := client.DescribeHsmRequest(params)
|
||||
@@ -804,19 +794,18 @@ const opDescribeLunaClient = "DescribeLunaClient"
|
||||
|
||||
// DescribeLunaClientRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeLunaClient operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeLunaClient for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeLunaClient method directly
|
||||
// instead.
|
||||
// See DescribeLunaClient for more information on using the DescribeLunaClient
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeLunaClientRequest method.
|
||||
// req, resp := client.DescribeLunaClientRequest(params)
|
||||
@@ -890,19 +879,18 @@ const opGetConfig = "GetConfig"
|
||||
|
||||
// GetConfigRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetConfig operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See GetConfig for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetConfig method directly
|
||||
// instead.
|
||||
// See GetConfig for more information on using the GetConfig
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetConfigRequest method.
|
||||
// req, resp := client.GetConfigRequest(params)
|
||||
@@ -977,19 +965,18 @@ const opListAvailableZones = "ListAvailableZones"
|
||||
|
||||
// ListAvailableZonesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListAvailableZones operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See ListAvailableZones for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListAvailableZones method directly
|
||||
// instead.
|
||||
// See ListAvailableZones for more information on using the ListAvailableZones
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListAvailableZonesRequest method.
|
||||
// req, resp := client.ListAvailableZonesRequest(params)
|
||||
@@ -1063,19 +1050,18 @@ const opListHapgs = "ListHapgs"
|
||||
|
||||
// ListHapgsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListHapgs operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See ListHapgs for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListHapgs method directly
|
||||
// instead.
|
||||
// See ListHapgs for more information on using the ListHapgs
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListHapgsRequest method.
|
||||
// req, resp := client.ListHapgsRequest(params)
|
||||
@@ -1154,19 +1140,18 @@ const opListHsms = "ListHsms"
|
||||
|
||||
// ListHsmsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListHsms operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See ListHsms for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListHsms method directly
|
||||
// instead.
|
||||
// See ListHsms for more information on using the ListHsms
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListHsmsRequest method.
|
||||
// req, resp := client.ListHsmsRequest(params)
|
||||
@@ -1246,19 +1231,18 @@ const opListLunaClients = "ListLunaClients"
|
||||
|
||||
// ListLunaClientsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListLunaClients operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See ListLunaClients for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListLunaClients method directly
|
||||
// instead.
|
||||
// See ListLunaClients for more information on using the ListLunaClients
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListLunaClientsRequest method.
|
||||
// req, resp := client.ListLunaClientsRequest(params)
|
||||
@@ -1337,19 +1321,18 @@ const opListTagsForResource = "ListTagsForResource"
|
||||
|
||||
// ListTagsForResourceRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListTagsForResource operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See ListTagsForResource for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListTagsForResource method directly
|
||||
// instead.
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListTagsForResourceRequest method.
|
||||
// req, resp := client.ListTagsForResourceRequest(params)
|
||||
@@ -1423,19 +1406,18 @@ const opModifyHapg = "ModifyHapg"
|
||||
|
||||
// ModifyHapgRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ModifyHapg operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See ModifyHapg for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ModifyHapg method directly
|
||||
// instead.
|
||||
// See ModifyHapg for more information on using the ModifyHapg
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ModifyHapgRequest method.
|
||||
// req, resp := client.ModifyHapgRequest(params)
|
||||
@@ -1509,19 +1491,18 @@ const opModifyHsm = "ModifyHsm"
|
||||
|
||||
// ModifyHsmRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ModifyHsm operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See ModifyHsm for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ModifyHsm method directly
|
||||
// instead.
|
||||
// See ModifyHsm for more information on using the ModifyHsm
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ModifyHsmRequest method.
|
||||
// req, resp := client.ModifyHsmRequest(params)
|
||||
@@ -1601,19 +1582,18 @@ const opModifyLunaClient = "ModifyLunaClient"
|
||||
|
||||
// ModifyLunaClientRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ModifyLunaClient operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See ModifyLunaClient for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ModifyLunaClient method directly
|
||||
// instead.
|
||||
// See ModifyLunaClient for more information on using the ModifyLunaClient
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ModifyLunaClientRequest method.
|
||||
// req, resp := client.ModifyLunaClientRequest(params)
|
||||
@@ -1684,19 +1664,18 @@ const opRemoveTagsFromResource = "RemoveTagsFromResource"
|
||||
|
||||
// RemoveTagsFromResourceRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the RemoveTagsFromResource operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See RemoveTagsFromResource for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the RemoveTagsFromResource method directly
|
||||
// instead.
|
||||
// See RemoveTagsFromResource for more information on using the RemoveTagsFromResource
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the RemoveTagsFromResourceRequest method.
|
||||
// req, resp := client.RemoveTagsFromResourceRequest(params)
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package cloudhsmiface provides an interface to enable mocking the Amazon CloudHSM service client
|
||||
// for testing your code.
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
//
|
||||
// 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 the SDK's request pipeline.
|
||||
// to inject custom request handlers into the SDK's request pipeline.
|
||||
//
|
||||
// // myFunc uses an SDK service client to make a request to
|
||||
// // Amazon CloudHSM.
|
||||
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package cloudhsm provides the client and types for making API
|
||||
// requests to Amazon CloudHSM.
|
||||
//
|
||||
// AWS CloudHSM Service
|
||||
//
|
||||
// See https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30 for more information on this service.
|
||||
//
|
||||
// See cloudhsm package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/cloudhsm/
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To Amazon CloudHSM 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 CloudHSM client CloudHSM for more
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/cloudhsm/#New
|
||||
package cloudhsm
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package cloudhsm
|
||||
|
||||
|
||||
-471
@@ -1,471 +0,0 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
|
||||
package cloudhsm_test
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/session"
|
||||
"github.com/aws/aws-sdk-go/service/cloudhsm"
|
||||
)
|
||||
|
||||
var _ time.Duration
|
||||
var _ bytes.Buffer
|
||||
|
||||
func ExampleCloudHSM_AddTagsToResource() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudhsm.New(sess)
|
||||
|
||||
params := &cloudhsm.AddTagsToResourceInput{
|
||||
ResourceArn: aws.String("String"), // Required
|
||||
TagList: []*cloudhsm.Tag{ // Required
|
||||
{ // Required
|
||||
Key: aws.String("TagKey"), // Required
|
||||
Value: aws.String("TagValue"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.AddTagsToResource(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudHSM_CreateHapg() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudhsm.New(sess)
|
||||
|
||||
params := &cloudhsm.CreateHapgInput{
|
||||
Label: aws.String("Label"), // Required
|
||||
}
|
||||
resp, err := svc.CreateHapg(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudHSM_CreateHsm() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudhsm.New(sess)
|
||||
|
||||
params := &cloudhsm.CreateHsmInput{
|
||||
IamRoleArn: aws.String("IamRoleArn"), // Required
|
||||
SshKey: aws.String("SshKey"), // Required
|
||||
SubnetId: aws.String("SubnetId"), // Required
|
||||
SubscriptionType: aws.String("SubscriptionType"), // Required
|
||||
ClientToken: aws.String("ClientToken"),
|
||||
EniIp: aws.String("IpAddress"),
|
||||
ExternalId: aws.String("ExternalId"),
|
||||
SyslogIp: aws.String("IpAddress"),
|
||||
}
|
||||
resp, err := svc.CreateHsm(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudHSM_CreateLunaClient() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudhsm.New(sess)
|
||||
|
||||
params := &cloudhsm.CreateLunaClientInput{
|
||||
Certificate: aws.String("Certificate"), // Required
|
||||
Label: aws.String("ClientLabel"),
|
||||
}
|
||||
resp, err := svc.CreateLunaClient(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudHSM_DeleteHapg() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudhsm.New(sess)
|
||||
|
||||
params := &cloudhsm.DeleteHapgInput{
|
||||
HapgArn: aws.String("HapgArn"), // Required
|
||||
}
|
||||
resp, err := svc.DeleteHapg(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudHSM_DeleteHsm() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudhsm.New(sess)
|
||||
|
||||
params := &cloudhsm.DeleteHsmInput{
|
||||
HsmArn: aws.String("HsmArn"), // Required
|
||||
}
|
||||
resp, err := svc.DeleteHsm(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudHSM_DeleteLunaClient() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudhsm.New(sess)
|
||||
|
||||
params := &cloudhsm.DeleteLunaClientInput{
|
||||
ClientArn: aws.String("ClientArn"), // Required
|
||||
}
|
||||
resp, err := svc.DeleteLunaClient(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudHSM_DescribeHapg() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudhsm.New(sess)
|
||||
|
||||
params := &cloudhsm.DescribeHapgInput{
|
||||
HapgArn: aws.String("HapgArn"), // Required
|
||||
}
|
||||
resp, err := svc.DescribeHapg(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudHSM_DescribeHsm() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudhsm.New(sess)
|
||||
|
||||
params := &cloudhsm.DescribeHsmInput{
|
||||
HsmArn: aws.String("HsmArn"),
|
||||
HsmSerialNumber: aws.String("HsmSerialNumber"),
|
||||
}
|
||||
resp, err := svc.DescribeHsm(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudHSM_DescribeLunaClient() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudhsm.New(sess)
|
||||
|
||||
params := &cloudhsm.DescribeLunaClientInput{
|
||||
CertificateFingerprint: aws.String("CertificateFingerprint"),
|
||||
ClientArn: aws.String("ClientArn"),
|
||||
}
|
||||
resp, err := svc.DescribeLunaClient(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudHSM_GetConfig() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudhsm.New(sess)
|
||||
|
||||
params := &cloudhsm.GetConfigInput{
|
||||
ClientArn: aws.String("ClientArn"), // Required
|
||||
ClientVersion: aws.String("ClientVersion"), // Required
|
||||
HapgList: []*string{ // Required
|
||||
aws.String("HapgArn"), // Required
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.GetConfig(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudHSM_ListAvailableZones() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudhsm.New(sess)
|
||||
|
||||
var params *cloudhsm.ListAvailableZonesInput
|
||||
resp, err := svc.ListAvailableZones(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudHSM_ListHapgs() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudhsm.New(sess)
|
||||
|
||||
params := &cloudhsm.ListHapgsInput{
|
||||
NextToken: aws.String("PaginationToken"),
|
||||
}
|
||||
resp, err := svc.ListHapgs(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudHSM_ListHsms() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudhsm.New(sess)
|
||||
|
||||
params := &cloudhsm.ListHsmsInput{
|
||||
NextToken: aws.String("PaginationToken"),
|
||||
}
|
||||
resp, err := svc.ListHsms(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudHSM_ListLunaClients() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudhsm.New(sess)
|
||||
|
||||
params := &cloudhsm.ListLunaClientsInput{
|
||||
NextToken: aws.String("PaginationToken"),
|
||||
}
|
||||
resp, err := svc.ListLunaClients(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudHSM_ListTagsForResource() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudhsm.New(sess)
|
||||
|
||||
params := &cloudhsm.ListTagsForResourceInput{
|
||||
ResourceArn: aws.String("String"), // Required
|
||||
}
|
||||
resp, err := svc.ListTagsForResource(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudHSM_ModifyHapg() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudhsm.New(sess)
|
||||
|
||||
params := &cloudhsm.ModifyHapgInput{
|
||||
HapgArn: aws.String("HapgArn"), // Required
|
||||
Label: aws.String("Label"),
|
||||
PartitionSerialList: []*string{
|
||||
aws.String("PartitionSerial"), // Required
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.ModifyHapg(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudHSM_ModifyHsm() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudhsm.New(sess)
|
||||
|
||||
params := &cloudhsm.ModifyHsmInput{
|
||||
HsmArn: aws.String("HsmArn"), // Required
|
||||
EniIp: aws.String("IpAddress"),
|
||||
ExternalId: aws.String("ExternalId"),
|
||||
IamRoleArn: aws.String("IamRoleArn"),
|
||||
SubnetId: aws.String("SubnetId"),
|
||||
SyslogIp: aws.String("IpAddress"),
|
||||
}
|
||||
resp, err := svc.ModifyHsm(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudHSM_ModifyLunaClient() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudhsm.New(sess)
|
||||
|
||||
params := &cloudhsm.ModifyLunaClientInput{
|
||||
Certificate: aws.String("Certificate"), // Required
|
||||
ClientArn: aws.String("ClientArn"), // Required
|
||||
}
|
||||
resp, err := svc.ModifyLunaClient(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudHSM_RemoveTagsFromResource() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudhsm.New(sess)
|
||||
|
||||
params := &cloudhsm.RemoveTagsFromResourceInput{
|
||||
ResourceArn: aws.String("String"), // Required
|
||||
TagKeyList: []*string{ // Required
|
||||
aws.String("TagKey"), // Required
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.RemoveTagsFromResource(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
+7
-4
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package cloudhsm
|
||||
|
||||
@@ -11,9 +11,12 @@ import (
|
||||
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
|
||||
)
|
||||
|
||||
// The service client's operations are safe to be used concurrently.
|
||||
// It is not safe to mutate any of the client's properties though.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30
|
||||
// CloudHSM provides the API operation methods for making requests to
|
||||
// Amazon CloudHSM. See this package's package overview docs
|
||||
// for details on the service.
|
||||
//
|
||||
// CloudHSM methods are safe to use concurrently. It is not safe to
|
||||
// modify mutate any of the struct's properties though.
|
||||
type CloudHSM struct {
|
||||
*client.Client
|
||||
}
|
||||
|
||||
+2503
File diff suppressed because it is too large
Load Diff
+113
@@ -0,0 +1,113 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package cloudhsmv2iface provides an interface to enable mocking the AWS CloudHSM V2 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 cloudhsmv2iface
|
||||
|
||||
import (
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/request"
|
||||
"github.com/aws/aws-sdk-go/service/cloudhsmv2"
|
||||
)
|
||||
|
||||
// CloudHSMV2API provides an interface to enable mocking the
|
||||
// cloudhsmv2.CloudHSMV2 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 CloudHSM V2.
|
||||
// func myFunc(svc cloudhsmv2iface.CloudHSMV2API) bool {
|
||||
// // Make svc.CreateCluster request
|
||||
// }
|
||||
//
|
||||
// func main() {
|
||||
// sess := session.New()
|
||||
// svc := cloudhsmv2.New(sess)
|
||||
//
|
||||
// myFunc(svc)
|
||||
// }
|
||||
//
|
||||
// In your _test.go file:
|
||||
//
|
||||
// // Define a mock struct to be used in your unit tests of myFunc.
|
||||
// type mockCloudHSMV2Client struct {
|
||||
// cloudhsmv2iface.CloudHSMV2API
|
||||
// }
|
||||
// func (m *mockCloudHSMV2Client) CreateCluster(input *cloudhsmv2.CreateClusterInput) (*cloudhsmv2.CreateClusterOutput, error) {
|
||||
// // mock response/functionality
|
||||
// }
|
||||
//
|
||||
// func TestMyFunc(t *testing.T) {
|
||||
// // Setup Test
|
||||
// mockSvc := &mockCloudHSMV2Client{}
|
||||
//
|
||||
// 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 CloudHSMV2API interface {
|
||||
CreateCluster(*cloudhsmv2.CreateClusterInput) (*cloudhsmv2.CreateClusterOutput, error)
|
||||
CreateClusterWithContext(aws.Context, *cloudhsmv2.CreateClusterInput, ...request.Option) (*cloudhsmv2.CreateClusterOutput, error)
|
||||
CreateClusterRequest(*cloudhsmv2.CreateClusterInput) (*request.Request, *cloudhsmv2.CreateClusterOutput)
|
||||
|
||||
CreateHsm(*cloudhsmv2.CreateHsmInput) (*cloudhsmv2.CreateHsmOutput, error)
|
||||
CreateHsmWithContext(aws.Context, *cloudhsmv2.CreateHsmInput, ...request.Option) (*cloudhsmv2.CreateHsmOutput, error)
|
||||
CreateHsmRequest(*cloudhsmv2.CreateHsmInput) (*request.Request, *cloudhsmv2.CreateHsmOutput)
|
||||
|
||||
DeleteCluster(*cloudhsmv2.DeleteClusterInput) (*cloudhsmv2.DeleteClusterOutput, error)
|
||||
DeleteClusterWithContext(aws.Context, *cloudhsmv2.DeleteClusterInput, ...request.Option) (*cloudhsmv2.DeleteClusterOutput, error)
|
||||
DeleteClusterRequest(*cloudhsmv2.DeleteClusterInput) (*request.Request, *cloudhsmv2.DeleteClusterOutput)
|
||||
|
||||
DeleteHsm(*cloudhsmv2.DeleteHsmInput) (*cloudhsmv2.DeleteHsmOutput, error)
|
||||
DeleteHsmWithContext(aws.Context, *cloudhsmv2.DeleteHsmInput, ...request.Option) (*cloudhsmv2.DeleteHsmOutput, error)
|
||||
DeleteHsmRequest(*cloudhsmv2.DeleteHsmInput) (*request.Request, *cloudhsmv2.DeleteHsmOutput)
|
||||
|
||||
DescribeBackups(*cloudhsmv2.DescribeBackupsInput) (*cloudhsmv2.DescribeBackupsOutput, error)
|
||||
DescribeBackupsWithContext(aws.Context, *cloudhsmv2.DescribeBackupsInput, ...request.Option) (*cloudhsmv2.DescribeBackupsOutput, error)
|
||||
DescribeBackupsRequest(*cloudhsmv2.DescribeBackupsInput) (*request.Request, *cloudhsmv2.DescribeBackupsOutput)
|
||||
|
||||
DescribeBackupsPages(*cloudhsmv2.DescribeBackupsInput, func(*cloudhsmv2.DescribeBackupsOutput, bool) bool) error
|
||||
DescribeBackupsPagesWithContext(aws.Context, *cloudhsmv2.DescribeBackupsInput, func(*cloudhsmv2.DescribeBackupsOutput, bool) bool, ...request.Option) error
|
||||
|
||||
DescribeClusters(*cloudhsmv2.DescribeClustersInput) (*cloudhsmv2.DescribeClustersOutput, error)
|
||||
DescribeClustersWithContext(aws.Context, *cloudhsmv2.DescribeClustersInput, ...request.Option) (*cloudhsmv2.DescribeClustersOutput, error)
|
||||
DescribeClustersRequest(*cloudhsmv2.DescribeClustersInput) (*request.Request, *cloudhsmv2.DescribeClustersOutput)
|
||||
|
||||
DescribeClustersPages(*cloudhsmv2.DescribeClustersInput, func(*cloudhsmv2.DescribeClustersOutput, bool) bool) error
|
||||
DescribeClustersPagesWithContext(aws.Context, *cloudhsmv2.DescribeClustersInput, func(*cloudhsmv2.DescribeClustersOutput, bool) bool, ...request.Option) error
|
||||
|
||||
InitializeCluster(*cloudhsmv2.InitializeClusterInput) (*cloudhsmv2.InitializeClusterOutput, error)
|
||||
InitializeClusterWithContext(aws.Context, *cloudhsmv2.InitializeClusterInput, ...request.Option) (*cloudhsmv2.InitializeClusterOutput, error)
|
||||
InitializeClusterRequest(*cloudhsmv2.InitializeClusterInput) (*request.Request, *cloudhsmv2.InitializeClusterOutput)
|
||||
|
||||
ListTags(*cloudhsmv2.ListTagsInput) (*cloudhsmv2.ListTagsOutput, error)
|
||||
ListTagsWithContext(aws.Context, *cloudhsmv2.ListTagsInput, ...request.Option) (*cloudhsmv2.ListTagsOutput, error)
|
||||
ListTagsRequest(*cloudhsmv2.ListTagsInput) (*request.Request, *cloudhsmv2.ListTagsOutput)
|
||||
|
||||
ListTagsPages(*cloudhsmv2.ListTagsInput, func(*cloudhsmv2.ListTagsOutput, bool) bool) error
|
||||
ListTagsPagesWithContext(aws.Context, *cloudhsmv2.ListTagsInput, func(*cloudhsmv2.ListTagsOutput, bool) bool, ...request.Option) error
|
||||
|
||||
TagResource(*cloudhsmv2.TagResourceInput) (*cloudhsmv2.TagResourceOutput, error)
|
||||
TagResourceWithContext(aws.Context, *cloudhsmv2.TagResourceInput, ...request.Option) (*cloudhsmv2.TagResourceOutput, error)
|
||||
TagResourceRequest(*cloudhsmv2.TagResourceInput) (*request.Request, *cloudhsmv2.TagResourceOutput)
|
||||
|
||||
UntagResource(*cloudhsmv2.UntagResourceInput) (*cloudhsmv2.UntagResourceOutput, error)
|
||||
UntagResourceWithContext(aws.Context, *cloudhsmv2.UntagResourceInput, ...request.Option) (*cloudhsmv2.UntagResourceOutput, error)
|
||||
UntagResourceRequest(*cloudhsmv2.UntagResourceInput) (*request.Request, *cloudhsmv2.UntagResourceOutput)
|
||||
}
|
||||
|
||||
var _ CloudHSMV2API = (*cloudhsmv2.CloudHSMV2)(nil)
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package cloudhsmv2 provides the client and types for making API
|
||||
// requests to AWS CloudHSM V2.
|
||||
//
|
||||
// For more information about AWS CloudHSM, see AWS CloudHSM (http://aws.amazon.com/cloudhsm/)
|
||||
// and the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/).
|
||||
//
|
||||
// See https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28 for more information on this service.
|
||||
//
|
||||
// See cloudhsmv2 package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/cloudhsmv2/
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To AWS CloudHSM V2 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 CloudHSM V2 client CloudHSMV2 for more
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/cloudhsmv2/#New
|
||||
package cloudhsmv2
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package cloudhsmv2
|
||||
|
||||
const (
|
||||
|
||||
// ErrCodeCloudHsmAccessDeniedException for service response error code
|
||||
// "CloudHsmAccessDeniedException".
|
||||
//
|
||||
// The request was rejected because the requester does not have permission to
|
||||
// perform the requested operation.
|
||||
ErrCodeCloudHsmAccessDeniedException = "CloudHsmAccessDeniedException"
|
||||
|
||||
// ErrCodeCloudHsmInternalFailureException for service response error code
|
||||
// "CloudHsmInternalFailureException".
|
||||
//
|
||||
// The request was rejected because of an AWS CloudHSM internal failure. The
|
||||
// request can be retried.
|
||||
ErrCodeCloudHsmInternalFailureException = "CloudHsmInternalFailureException"
|
||||
|
||||
// ErrCodeCloudHsmInvalidRequestException for service response error code
|
||||
// "CloudHsmInvalidRequestException".
|
||||
//
|
||||
// The request was rejected because it is not a valid request.
|
||||
ErrCodeCloudHsmInvalidRequestException = "CloudHsmInvalidRequestException"
|
||||
|
||||
// ErrCodeCloudHsmResourceNotFoundException for service response error code
|
||||
// "CloudHsmResourceNotFoundException".
|
||||
//
|
||||
// The request was rejected because it refers to a resource that cannot be found.
|
||||
ErrCodeCloudHsmResourceNotFoundException = "CloudHsmResourceNotFoundException"
|
||||
|
||||
// ErrCodeCloudHsmServiceException for service response error code
|
||||
// "CloudHsmServiceException".
|
||||
//
|
||||
// The request was rejected because an error occurred.
|
||||
ErrCodeCloudHsmServiceException = "CloudHsmServiceException"
|
||||
)
|
||||
+98
@@ -0,0 +1,98 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package cloudhsmv2
|
||||
|
||||
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/jsonrpc"
|
||||
)
|
||||
|
||||
// CloudHSMV2 provides the API operation methods for making requests to
|
||||
// AWS CloudHSM V2. See this package's package overview docs
|
||||
// for details on the service.
|
||||
//
|
||||
// CloudHSMV2 methods are safe to use concurrently. It is not safe to
|
||||
// modify mutate any of the struct's properties though.
|
||||
type CloudHSMV2 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 = "cloudhsmv2" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
)
|
||||
|
||||
// New creates a new instance of the CloudHSMV2 client with a session.
|
||||
// If additional configuration is needed for the client instance use the optional
|
||||
// aws.Config parameter to add your extra config.
|
||||
//
|
||||
// Example:
|
||||
// // Create a CloudHSMV2 client from just a session.
|
||||
// svc := cloudhsmv2.New(mySession)
|
||||
//
|
||||
// // Create a CloudHSMV2 client with additional configuration
|
||||
// svc := cloudhsmv2.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
|
||||
func New(p client.ConfigProvider, cfgs ...*aws.Config) *CloudHSMV2 {
|
||||
c := p.ClientConfig(EndpointsID, cfgs...)
|
||||
return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
|
||||
}
|
||||
|
||||
// newClient creates, initializes and returns a new service client instance.
|
||||
func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *CloudHSMV2 {
|
||||
if len(signingName) == 0 {
|
||||
signingName = "cloudhsm"
|
||||
}
|
||||
svc := &CloudHSMV2{
|
||||
Client: client.New(
|
||||
cfg,
|
||||
metadata.ClientInfo{
|
||||
ServiceName: ServiceName,
|
||||
SigningName: signingName,
|
||||
SigningRegion: signingRegion,
|
||||
Endpoint: endpoint,
|
||||
APIVersion: "2017-04-28",
|
||||
JSONVersion: "1.1",
|
||||
TargetPrefix: "BaldrApiService",
|
||||
},
|
||||
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(jsonrpc.UnmarshalErrorHandler)
|
||||
|
||||
// Run custom client initialization if present
|
||||
if initClient != nil {
|
||||
initClient(svc.Client)
|
||||
}
|
||||
|
||||
return svc
|
||||
}
|
||||
|
||||
// newRequest creates a new request for a CloudHSMV2 operation and runs any
|
||||
// custom request initialization.
|
||||
func (c *CloudHSMV2) 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
|
||||
}
|
||||
+217
-242
@@ -1,6 +1,5 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package cloudsearch provides a client for Amazon CloudSearch.
|
||||
package cloudsearch
|
||||
|
||||
import (
|
||||
@@ -15,19 +14,18 @@ const opBuildSuggesters = "BuildSuggesters"
|
||||
|
||||
// BuildSuggestersRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the BuildSuggesters operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See BuildSuggesters for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the BuildSuggesters method directly
|
||||
// instead.
|
||||
// See BuildSuggesters for more information on using the BuildSuggesters
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the BuildSuggestersRequest method.
|
||||
// req, resp := client.BuildSuggestersRequest(params)
|
||||
@@ -102,19 +100,18 @@ const opCreateDomain = "CreateDomain"
|
||||
|
||||
// CreateDomainRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateDomain operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See CreateDomain for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateDomain method directly
|
||||
// instead.
|
||||
// See CreateDomain for more information on using the CreateDomain
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateDomainRequest method.
|
||||
// req, resp := client.CreateDomainRequest(params)
|
||||
@@ -188,19 +185,18 @@ const opDefineAnalysisScheme = "DefineAnalysisScheme"
|
||||
|
||||
// DefineAnalysisSchemeRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DefineAnalysisScheme operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DefineAnalysisScheme for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DefineAnalysisScheme method directly
|
||||
// instead.
|
||||
// See DefineAnalysisScheme for more information on using the DefineAnalysisScheme
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DefineAnalysisSchemeRequest method.
|
||||
// req, resp := client.DefineAnalysisSchemeRequest(params)
|
||||
@@ -282,19 +278,18 @@ const opDefineExpression = "DefineExpression"
|
||||
|
||||
// DefineExpressionRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DefineExpression operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DefineExpression for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DefineExpression method directly
|
||||
// instead.
|
||||
// See DefineExpression for more information on using the DefineExpression
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DefineExpressionRequest method.
|
||||
// req, resp := client.DefineExpressionRequest(params)
|
||||
@@ -376,19 +371,18 @@ const opDefineIndexField = "DefineIndexField"
|
||||
|
||||
// DefineIndexFieldRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DefineIndexField operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DefineIndexField for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DefineIndexField method directly
|
||||
// instead.
|
||||
// See DefineIndexField for more information on using the DefineIndexField
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DefineIndexFieldRequest method.
|
||||
// req, resp := client.DefineIndexFieldRequest(params)
|
||||
@@ -474,19 +468,18 @@ const opDefineSuggester = "DefineSuggester"
|
||||
|
||||
// DefineSuggesterRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DefineSuggester operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DefineSuggester for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DefineSuggester method directly
|
||||
// instead.
|
||||
// See DefineSuggester for more information on using the DefineSuggester
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DefineSuggesterRequest method.
|
||||
// req, resp := client.DefineSuggesterRequest(params)
|
||||
@@ -570,19 +563,18 @@ const opDeleteAnalysisScheme = "DeleteAnalysisScheme"
|
||||
|
||||
// DeleteAnalysisSchemeRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteAnalysisScheme operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DeleteAnalysisScheme for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteAnalysisScheme method directly
|
||||
// instead.
|
||||
// See DeleteAnalysisScheme for more information on using the DeleteAnalysisScheme
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteAnalysisSchemeRequest method.
|
||||
// req, resp := client.DeleteAnalysisSchemeRequest(params)
|
||||
@@ -660,19 +652,18 @@ const opDeleteDomain = "DeleteDomain"
|
||||
|
||||
// DeleteDomainRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteDomain operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DeleteDomain for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteDomain method directly
|
||||
// instead.
|
||||
// See DeleteDomain for more information on using the DeleteDomain
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteDomainRequest method.
|
||||
// req, resp := client.DeleteDomainRequest(params)
|
||||
@@ -744,19 +735,18 @@ const opDeleteExpression = "DeleteExpression"
|
||||
|
||||
// DeleteExpressionRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteExpression operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DeleteExpression for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteExpression method directly
|
||||
// instead.
|
||||
// See DeleteExpression for more information on using the DeleteExpression
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteExpressionRequest method.
|
||||
// req, resp := client.DeleteExpressionRequest(params)
|
||||
@@ -834,19 +824,18 @@ const opDeleteIndexField = "DeleteIndexField"
|
||||
|
||||
// DeleteIndexFieldRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteIndexField operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DeleteIndexField for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteIndexField method directly
|
||||
// instead.
|
||||
// See DeleteIndexField for more information on using the DeleteIndexField
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteIndexFieldRequest method.
|
||||
// req, resp := client.DeleteIndexFieldRequest(params)
|
||||
@@ -924,19 +913,18 @@ const opDeleteSuggester = "DeleteSuggester"
|
||||
|
||||
// DeleteSuggesterRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteSuggester operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DeleteSuggester for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteSuggester method directly
|
||||
// instead.
|
||||
// See DeleteSuggester for more information on using the DeleteSuggester
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteSuggesterRequest method.
|
||||
// req, resp := client.DeleteSuggesterRequest(params)
|
||||
@@ -1014,19 +1002,18 @@ const opDescribeAnalysisSchemes = "DescribeAnalysisSchemes"
|
||||
|
||||
// DescribeAnalysisSchemesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeAnalysisSchemes operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeAnalysisSchemes for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeAnalysisSchemes method directly
|
||||
// instead.
|
||||
// See DescribeAnalysisSchemes for more information on using the DescribeAnalysisSchemes
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeAnalysisSchemesRequest method.
|
||||
// req, resp := client.DescribeAnalysisSchemesRequest(params)
|
||||
@@ -1105,19 +1092,18 @@ const opDescribeAvailabilityOptions = "DescribeAvailabilityOptions"
|
||||
|
||||
// DescribeAvailabilityOptionsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeAvailabilityOptions operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeAvailabilityOptions for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeAvailabilityOptions method directly
|
||||
// instead.
|
||||
// See DescribeAvailabilityOptions for more information on using the DescribeAvailabilityOptions
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeAvailabilityOptionsRequest method.
|
||||
// req, resp := client.DescribeAvailabilityOptionsRequest(params)
|
||||
@@ -1203,19 +1189,18 @@ const opDescribeDomains = "DescribeDomains"
|
||||
|
||||
// DescribeDomainsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeDomains operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeDomains for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeDomains method directly
|
||||
// instead.
|
||||
// See DescribeDomains for more information on using the DescribeDomains
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeDomainsRequest method.
|
||||
// req, resp := client.DescribeDomainsRequest(params)
|
||||
@@ -1289,19 +1274,18 @@ const opDescribeExpressions = "DescribeExpressions"
|
||||
|
||||
// DescribeExpressionsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeExpressions operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeExpressions for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeExpressions method directly
|
||||
// instead.
|
||||
// See DescribeExpressions for more information on using the DescribeExpressions
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeExpressionsRequest method.
|
||||
// req, resp := client.DescribeExpressionsRequest(params)
|
||||
@@ -1379,19 +1363,18 @@ const opDescribeIndexFields = "DescribeIndexFields"
|
||||
|
||||
// DescribeIndexFieldsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeIndexFields operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeIndexFields for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeIndexFields method directly
|
||||
// instead.
|
||||
// See DescribeIndexFields for more information on using the DescribeIndexFields
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeIndexFieldsRequest method.
|
||||
// req, resp := client.DescribeIndexFieldsRequest(params)
|
||||
@@ -1469,19 +1452,18 @@ const opDescribeScalingParameters = "DescribeScalingParameters"
|
||||
|
||||
// DescribeScalingParametersRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeScalingParameters operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeScalingParameters for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeScalingParameters method directly
|
||||
// instead.
|
||||
// See DescribeScalingParameters for more information on using the DescribeScalingParameters
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeScalingParametersRequest method.
|
||||
// req, resp := client.DescribeScalingParametersRequest(params)
|
||||
@@ -1557,19 +1539,18 @@ const opDescribeServiceAccessPolicies = "DescribeServiceAccessPolicies"
|
||||
|
||||
// DescribeServiceAccessPoliciesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeServiceAccessPolicies operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeServiceAccessPolicies for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeServiceAccessPolicies method directly
|
||||
// instead.
|
||||
// See DescribeServiceAccessPolicies for more information on using the DescribeServiceAccessPolicies
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeServiceAccessPoliciesRequest method.
|
||||
// req, resp := client.DescribeServiceAccessPoliciesRequest(params)
|
||||
@@ -1647,19 +1628,18 @@ const opDescribeSuggesters = "DescribeSuggesters"
|
||||
|
||||
// DescribeSuggestersRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeSuggesters operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeSuggesters for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeSuggesters method directly
|
||||
// instead.
|
||||
// See DescribeSuggesters for more information on using the DescribeSuggesters
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeSuggestersRequest method.
|
||||
// req, resp := client.DescribeSuggestersRequest(params)
|
||||
@@ -1738,19 +1718,18 @@ const opIndexDocuments = "IndexDocuments"
|
||||
|
||||
// IndexDocumentsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the IndexDocuments operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See IndexDocuments for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the IndexDocuments method directly
|
||||
// instead.
|
||||
// See IndexDocuments for more information on using the IndexDocuments
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the IndexDocumentsRequest method.
|
||||
// req, resp := client.IndexDocumentsRequest(params)
|
||||
@@ -1825,19 +1804,18 @@ const opListDomainNames = "ListDomainNames"
|
||||
|
||||
// ListDomainNamesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListDomainNames operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See ListDomainNames for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListDomainNames method directly
|
||||
// instead.
|
||||
// See ListDomainNames for more information on using the ListDomainNames
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListDomainNamesRequest method.
|
||||
// req, resp := client.ListDomainNamesRequest(params)
|
||||
@@ -1902,19 +1880,18 @@ const opUpdateAvailabilityOptions = "UpdateAvailabilityOptions"
|
||||
|
||||
// UpdateAvailabilityOptionsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UpdateAvailabilityOptions operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See UpdateAvailabilityOptions for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the UpdateAvailabilityOptions method directly
|
||||
// instead.
|
||||
// See UpdateAvailabilityOptions for more information on using the UpdateAvailabilityOptions
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the UpdateAvailabilityOptionsRequest method.
|
||||
// req, resp := client.UpdateAvailabilityOptionsRequest(params)
|
||||
@@ -2001,19 +1978,18 @@ const opUpdateScalingParameters = "UpdateScalingParameters"
|
||||
|
||||
// UpdateScalingParametersRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UpdateScalingParameters operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See UpdateScalingParameters for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the UpdateScalingParameters method directly
|
||||
// instead.
|
||||
// See UpdateScalingParameters for more information on using the UpdateScalingParameters
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the UpdateScalingParametersRequest method.
|
||||
// req, resp := client.UpdateScalingParametersRequest(params)
|
||||
@@ -2099,19 +2075,18 @@ const opUpdateServiceAccessPolicies = "UpdateServiceAccessPolicies"
|
||||
|
||||
// UpdateServiceAccessPoliciesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UpdateServiceAccessPolicies operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See UpdateServiceAccessPolicies for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the UpdateServiceAccessPolicies method directly
|
||||
// instead.
|
||||
// See UpdateServiceAccessPolicies for more information on using the UpdateServiceAccessPolicies
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the UpdateServiceAccessPoliciesRequest method.
|
||||
// req, resp := client.UpdateServiceAccessPoliciesRequest(params)
|
||||
|
||||
Generated
Vendored
+2
-2
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package cloudsearchiface provides an interface to enable mocking the Amazon CloudSearch service client
|
||||
// for testing your code.
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
//
|
||||
// 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 the SDK's request pipeline.
|
||||
// to inject custom request handlers into the SDK's request pipeline.
|
||||
//
|
||||
// // myFunc uses an SDK service client to make a request to
|
||||
// // Amazon CloudSearch.
|
||||
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package cloudsearch provides the client and types for making API
|
||||
// requests to Amazon CloudSearch.
|
||||
//
|
||||
// You use the Amazon CloudSearch configuration service to create, configure,
|
||||
// and manage search domains. Configuration service requests are submitted using
|
||||
// the AWS Query protocol. AWS Query requests are HTTP or HTTPS requests submitted
|
||||
// via HTTP GET or POST with a query parameter named Action.
|
||||
//
|
||||
// The endpoint for configuration service requests is region-specific: cloudsearch.region.amazonaws.com.
|
||||
// For example, cloudsearch.us-east-1.amazonaws.com. For a current list of supported
|
||||
// regions and endpoints, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#cloudsearch_region).
|
||||
//
|
||||
// See cloudsearch package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/cloudsearch/
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To Amazon CloudSearch 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 CloudSearch client CloudSearch for more
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/cloudsearch/#New
|
||||
package cloudsearch
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package cloudsearch
|
||||
|
||||
|
||||
-664
@@ -1,664 +0,0 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
|
||||
package cloudsearch_test
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/session"
|
||||
"github.com/aws/aws-sdk-go/service/cloudsearch"
|
||||
)
|
||||
|
||||
var _ time.Duration
|
||||
var _ bytes.Buffer
|
||||
|
||||
func ExampleCloudSearch_BuildSuggesters() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudsearch.New(sess)
|
||||
|
||||
params := &cloudsearch.BuildSuggestersInput{
|
||||
DomainName: aws.String("DomainName"), // Required
|
||||
}
|
||||
resp, err := svc.BuildSuggesters(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudSearch_CreateDomain() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudsearch.New(sess)
|
||||
|
||||
params := &cloudsearch.CreateDomainInput{
|
||||
DomainName: aws.String("DomainName"), // Required
|
||||
}
|
||||
resp, err := svc.CreateDomain(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudSearch_DefineAnalysisScheme() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudsearch.New(sess)
|
||||
|
||||
params := &cloudsearch.DefineAnalysisSchemeInput{
|
||||
AnalysisScheme: &cloudsearch.AnalysisScheme{ // Required
|
||||
AnalysisSchemeLanguage: aws.String("AnalysisSchemeLanguage"), // Required
|
||||
AnalysisSchemeName: aws.String("StandardName"), // Required
|
||||
AnalysisOptions: &cloudsearch.AnalysisOptions{
|
||||
AlgorithmicStemming: aws.String("AlgorithmicStemming"),
|
||||
JapaneseTokenizationDictionary: aws.String("String"),
|
||||
StemmingDictionary: aws.String("String"),
|
||||
Stopwords: aws.String("String"),
|
||||
Synonyms: aws.String("String"),
|
||||
},
|
||||
},
|
||||
DomainName: aws.String("DomainName"), // Required
|
||||
}
|
||||
resp, err := svc.DefineAnalysisScheme(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudSearch_DefineExpression() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudsearch.New(sess)
|
||||
|
||||
params := &cloudsearch.DefineExpressionInput{
|
||||
DomainName: aws.String("DomainName"), // Required
|
||||
Expression: &cloudsearch.Expression{ // Required
|
||||
ExpressionName: aws.String("StandardName"), // Required
|
||||
ExpressionValue: aws.String("ExpressionValue"), // Required
|
||||
},
|
||||
}
|
||||
resp, err := svc.DefineExpression(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudSearch_DefineIndexField() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudsearch.New(sess)
|
||||
|
||||
params := &cloudsearch.DefineIndexFieldInput{
|
||||
DomainName: aws.String("DomainName"), // Required
|
||||
IndexField: &cloudsearch.IndexField{ // Required
|
||||
IndexFieldName: aws.String("DynamicFieldName"), // Required
|
||||
IndexFieldType: aws.String("IndexFieldType"), // Required
|
||||
DateArrayOptions: &cloudsearch.DateArrayOptions{
|
||||
DefaultValue: aws.String("FieldValue"),
|
||||
FacetEnabled: aws.Bool(true),
|
||||
ReturnEnabled: aws.Bool(true),
|
||||
SearchEnabled: aws.Bool(true),
|
||||
SourceFields: aws.String("FieldNameCommaList"),
|
||||
},
|
||||
DateOptions: &cloudsearch.DateOptions{
|
||||
DefaultValue: aws.String("FieldValue"),
|
||||
FacetEnabled: aws.Bool(true),
|
||||
ReturnEnabled: aws.Bool(true),
|
||||
SearchEnabled: aws.Bool(true),
|
||||
SortEnabled: aws.Bool(true),
|
||||
SourceField: aws.String("FieldName"),
|
||||
},
|
||||
DoubleArrayOptions: &cloudsearch.DoubleArrayOptions{
|
||||
DefaultValue: aws.Float64(1.0),
|
||||
FacetEnabled: aws.Bool(true),
|
||||
ReturnEnabled: aws.Bool(true),
|
||||
SearchEnabled: aws.Bool(true),
|
||||
SourceFields: aws.String("FieldNameCommaList"),
|
||||
},
|
||||
DoubleOptions: &cloudsearch.DoubleOptions{
|
||||
DefaultValue: aws.Float64(1.0),
|
||||
FacetEnabled: aws.Bool(true),
|
||||
ReturnEnabled: aws.Bool(true),
|
||||
SearchEnabled: aws.Bool(true),
|
||||
SortEnabled: aws.Bool(true),
|
||||
SourceField: aws.String("FieldName"),
|
||||
},
|
||||
IntArrayOptions: &cloudsearch.IntArrayOptions{
|
||||
DefaultValue: aws.Int64(1),
|
||||
FacetEnabled: aws.Bool(true),
|
||||
ReturnEnabled: aws.Bool(true),
|
||||
SearchEnabled: aws.Bool(true),
|
||||
SourceFields: aws.String("FieldNameCommaList"),
|
||||
},
|
||||
IntOptions: &cloudsearch.IntOptions{
|
||||
DefaultValue: aws.Int64(1),
|
||||
FacetEnabled: aws.Bool(true),
|
||||
ReturnEnabled: aws.Bool(true),
|
||||
SearchEnabled: aws.Bool(true),
|
||||
SortEnabled: aws.Bool(true),
|
||||
SourceField: aws.String("FieldName"),
|
||||
},
|
||||
LatLonOptions: &cloudsearch.LatLonOptions{
|
||||
DefaultValue: aws.String("FieldValue"),
|
||||
FacetEnabled: aws.Bool(true),
|
||||
ReturnEnabled: aws.Bool(true),
|
||||
SearchEnabled: aws.Bool(true),
|
||||
SortEnabled: aws.Bool(true),
|
||||
SourceField: aws.String("FieldName"),
|
||||
},
|
||||
LiteralArrayOptions: &cloudsearch.LiteralArrayOptions{
|
||||
DefaultValue: aws.String("FieldValue"),
|
||||
FacetEnabled: aws.Bool(true),
|
||||
ReturnEnabled: aws.Bool(true),
|
||||
SearchEnabled: aws.Bool(true),
|
||||
SourceFields: aws.String("FieldNameCommaList"),
|
||||
},
|
||||
LiteralOptions: &cloudsearch.LiteralOptions{
|
||||
DefaultValue: aws.String("FieldValue"),
|
||||
FacetEnabled: aws.Bool(true),
|
||||
ReturnEnabled: aws.Bool(true),
|
||||
SearchEnabled: aws.Bool(true),
|
||||
SortEnabled: aws.Bool(true),
|
||||
SourceField: aws.String("FieldName"),
|
||||
},
|
||||
TextArrayOptions: &cloudsearch.TextArrayOptions{
|
||||
AnalysisScheme: aws.String("Word"),
|
||||
DefaultValue: aws.String("FieldValue"),
|
||||
HighlightEnabled: aws.Bool(true),
|
||||
ReturnEnabled: aws.Bool(true),
|
||||
SourceFields: aws.String("FieldNameCommaList"),
|
||||
},
|
||||
TextOptions: &cloudsearch.TextOptions{
|
||||
AnalysisScheme: aws.String("Word"),
|
||||
DefaultValue: aws.String("FieldValue"),
|
||||
HighlightEnabled: aws.Bool(true),
|
||||
ReturnEnabled: aws.Bool(true),
|
||||
SortEnabled: aws.Bool(true),
|
||||
SourceField: aws.String("FieldName"),
|
||||
},
|
||||
},
|
||||
}
|
||||
resp, err := svc.DefineIndexField(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudSearch_DefineSuggester() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudsearch.New(sess)
|
||||
|
||||
params := &cloudsearch.DefineSuggesterInput{
|
||||
DomainName: aws.String("DomainName"), // Required
|
||||
Suggester: &cloudsearch.Suggester{ // Required
|
||||
DocumentSuggesterOptions: &cloudsearch.DocumentSuggesterOptions{ // Required
|
||||
SourceField: aws.String("FieldName"), // Required
|
||||
FuzzyMatching: aws.String("SuggesterFuzzyMatching"),
|
||||
SortExpression: aws.String("String"),
|
||||
},
|
||||
SuggesterName: aws.String("StandardName"), // Required
|
||||
},
|
||||
}
|
||||
resp, err := svc.DefineSuggester(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudSearch_DeleteAnalysisScheme() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudsearch.New(sess)
|
||||
|
||||
params := &cloudsearch.DeleteAnalysisSchemeInput{
|
||||
AnalysisSchemeName: aws.String("StandardName"), // Required
|
||||
DomainName: aws.String("DomainName"), // Required
|
||||
}
|
||||
resp, err := svc.DeleteAnalysisScheme(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudSearch_DeleteDomain() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudsearch.New(sess)
|
||||
|
||||
params := &cloudsearch.DeleteDomainInput{
|
||||
DomainName: aws.String("DomainName"), // Required
|
||||
}
|
||||
resp, err := svc.DeleteDomain(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudSearch_DeleteExpression() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudsearch.New(sess)
|
||||
|
||||
params := &cloudsearch.DeleteExpressionInput{
|
||||
DomainName: aws.String("DomainName"), // Required
|
||||
ExpressionName: aws.String("StandardName"), // Required
|
||||
}
|
||||
resp, err := svc.DeleteExpression(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudSearch_DeleteIndexField() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudsearch.New(sess)
|
||||
|
||||
params := &cloudsearch.DeleteIndexFieldInput{
|
||||
DomainName: aws.String("DomainName"), // Required
|
||||
IndexFieldName: aws.String("DynamicFieldName"), // Required
|
||||
}
|
||||
resp, err := svc.DeleteIndexField(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudSearch_DeleteSuggester() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudsearch.New(sess)
|
||||
|
||||
params := &cloudsearch.DeleteSuggesterInput{
|
||||
DomainName: aws.String("DomainName"), // Required
|
||||
SuggesterName: aws.String("StandardName"), // Required
|
||||
}
|
||||
resp, err := svc.DeleteSuggester(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudSearch_DescribeAnalysisSchemes() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudsearch.New(sess)
|
||||
|
||||
params := &cloudsearch.DescribeAnalysisSchemesInput{
|
||||
DomainName: aws.String("DomainName"), // Required
|
||||
AnalysisSchemeNames: []*string{
|
||||
aws.String("StandardName"), // Required
|
||||
// More values...
|
||||
},
|
||||
Deployed: aws.Bool(true),
|
||||
}
|
||||
resp, err := svc.DescribeAnalysisSchemes(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudSearch_DescribeAvailabilityOptions() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudsearch.New(sess)
|
||||
|
||||
params := &cloudsearch.DescribeAvailabilityOptionsInput{
|
||||
DomainName: aws.String("DomainName"), // Required
|
||||
Deployed: aws.Bool(true),
|
||||
}
|
||||
resp, err := svc.DescribeAvailabilityOptions(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudSearch_DescribeDomains() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudsearch.New(sess)
|
||||
|
||||
params := &cloudsearch.DescribeDomainsInput{
|
||||
DomainNames: []*string{
|
||||
aws.String("DomainName"), // Required
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.DescribeDomains(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudSearch_DescribeExpressions() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudsearch.New(sess)
|
||||
|
||||
params := &cloudsearch.DescribeExpressionsInput{
|
||||
DomainName: aws.String("DomainName"), // Required
|
||||
Deployed: aws.Bool(true),
|
||||
ExpressionNames: []*string{
|
||||
aws.String("StandardName"), // Required
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.DescribeExpressions(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudSearch_DescribeIndexFields() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudsearch.New(sess)
|
||||
|
||||
params := &cloudsearch.DescribeIndexFieldsInput{
|
||||
DomainName: aws.String("DomainName"), // Required
|
||||
Deployed: aws.Bool(true),
|
||||
FieldNames: []*string{
|
||||
aws.String("DynamicFieldName"), // Required
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.DescribeIndexFields(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudSearch_DescribeScalingParameters() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudsearch.New(sess)
|
||||
|
||||
params := &cloudsearch.DescribeScalingParametersInput{
|
||||
DomainName: aws.String("DomainName"), // Required
|
||||
}
|
||||
resp, err := svc.DescribeScalingParameters(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudSearch_DescribeServiceAccessPolicies() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudsearch.New(sess)
|
||||
|
||||
params := &cloudsearch.DescribeServiceAccessPoliciesInput{
|
||||
DomainName: aws.String("DomainName"), // Required
|
||||
Deployed: aws.Bool(true),
|
||||
}
|
||||
resp, err := svc.DescribeServiceAccessPolicies(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudSearch_DescribeSuggesters() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudsearch.New(sess)
|
||||
|
||||
params := &cloudsearch.DescribeSuggestersInput{
|
||||
DomainName: aws.String("DomainName"), // Required
|
||||
Deployed: aws.Bool(true),
|
||||
SuggesterNames: []*string{
|
||||
aws.String("StandardName"), // Required
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.DescribeSuggesters(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudSearch_IndexDocuments() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudsearch.New(sess)
|
||||
|
||||
params := &cloudsearch.IndexDocumentsInput{
|
||||
DomainName: aws.String("DomainName"), // Required
|
||||
}
|
||||
resp, err := svc.IndexDocuments(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudSearch_ListDomainNames() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudsearch.New(sess)
|
||||
|
||||
var params *cloudsearch.ListDomainNamesInput
|
||||
resp, err := svc.ListDomainNames(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudSearch_UpdateAvailabilityOptions() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudsearch.New(sess)
|
||||
|
||||
params := &cloudsearch.UpdateAvailabilityOptionsInput{
|
||||
DomainName: aws.String("DomainName"), // Required
|
||||
MultiAZ: aws.Bool(true), // Required
|
||||
}
|
||||
resp, err := svc.UpdateAvailabilityOptions(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudSearch_UpdateScalingParameters() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudsearch.New(sess)
|
||||
|
||||
params := &cloudsearch.UpdateScalingParametersInput{
|
||||
DomainName: aws.String("DomainName"), // Required
|
||||
ScalingParameters: &cloudsearch.ScalingParameters{ // Required
|
||||
DesiredInstanceType: aws.String("PartitionInstanceType"),
|
||||
DesiredPartitionCount: aws.Int64(1),
|
||||
DesiredReplicationCount: aws.Int64(1),
|
||||
},
|
||||
}
|
||||
resp, err := svc.UpdateScalingParameters(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudSearch_UpdateServiceAccessPolicies() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudsearch.New(sess)
|
||||
|
||||
params := &cloudsearch.UpdateServiceAccessPoliciesInput{
|
||||
AccessPolicies: aws.String("PolicyDocument"), // Required
|
||||
DomainName: aws.String("DomainName"), // Required
|
||||
}
|
||||
resp, err := svc.UpdateServiceAccessPolicies(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
+6
-10
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package cloudsearch
|
||||
|
||||
@@ -11,16 +11,12 @@ import (
|
||||
"github.com/aws/aws-sdk-go/private/protocol/query"
|
||||
)
|
||||
|
||||
// You use the Amazon CloudSearch configuration service to create, configure,
|
||||
// and manage search domains. Configuration service requests are submitted using
|
||||
// the AWS Query protocol. AWS Query requests are HTTP or HTTPS requests submitted
|
||||
// via HTTP GET or POST with a query parameter named Action.
|
||||
// CloudSearch provides the API operation methods for making requests to
|
||||
// Amazon CloudSearch. See this package's package overview docs
|
||||
// for details on the service.
|
||||
//
|
||||
// The endpoint for configuration service requests is region-specific: cloudsearch.region.amazonaws.com.
|
||||
// For example, cloudsearch.us-east-1.amazonaws.com. For a current list of supported
|
||||
// regions and endpoints, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#cloudsearch_region).
|
||||
// The service client's operations are safe to be used concurrently.
|
||||
// It is not safe to mutate any of the client's properties though.
|
||||
// CloudSearch methods are safe to use concurrently. It is not safe to
|
||||
// modify mutate any of the struct's properties though.
|
||||
type CloudSearch struct {
|
||||
*client.Client
|
||||
}
|
||||
|
||||
+28
-33
@@ -1,6 +1,5 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package cloudsearchdomain provides a client for Amazon CloudSearch Domain.
|
||||
package cloudsearchdomain
|
||||
|
||||
import (
|
||||
@@ -15,19 +14,18 @@ const opSearch = "Search"
|
||||
|
||||
// SearchRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the Search operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See Search for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the Search method directly
|
||||
// instead.
|
||||
// See Search for more information on using the Search
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the SearchRequest method.
|
||||
// req, resp := client.SearchRequest(params)
|
||||
@@ -112,19 +110,18 @@ const opSuggest = "Suggest"
|
||||
|
||||
// SuggestRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the Suggest operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See Suggest for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the Suggest method directly
|
||||
// instead.
|
||||
// See Suggest for more information on using the Suggest
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the SuggestRequest method.
|
||||
// req, resp := client.SuggestRequest(params)
|
||||
@@ -205,19 +202,18 @@ const opUploadDocuments = "UploadDocuments"
|
||||
|
||||
// UploadDocumentsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UploadDocuments operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See UploadDocuments for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the UploadDocuments method directly
|
||||
// instead.
|
||||
// See UploadDocuments for more information on using the UploadDocuments
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the UploadDocumentsRequest method.
|
||||
// req, resp := client.UploadDocumentsRequest(params)
|
||||
@@ -856,7 +852,6 @@ type SearchInput struct {
|
||||
// * dismax: search using the simplified subset of the Apache Lucene query
|
||||
// parser syntax defined by the DisMax query parser. For more information,
|
||||
// see DisMax Query Parser Syntax (http://wiki.apache.org/solr/DisMaxQParserPlugin#Query_Syntax).
|
||||
//
|
||||
QueryParser *string `location:"querystring" locationName:"q.parser" type:"string" enum:"QueryParser"`
|
||||
|
||||
// Specifies the field and expression values to include in the response. Multiple
|
||||
|
||||
Generated
Vendored
+2
-2
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package cloudsearchdomainiface provides an interface to enable mocking the Amazon CloudSearch Domain service client
|
||||
// for testing your code.
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
//
|
||||
// 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 the SDK's request pipeline.
|
||||
// to inject custom request handlers into the SDK's request pipeline.
|
||||
//
|
||||
// // myFunc uses an SDK service client to make a request to
|
||||
// // Amazon CloudSearch Domain.
|
||||
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package cloudsearchdomain provides the client and types for making API
|
||||
// requests to Amazon CloudSearch Domain.
|
||||
//
|
||||
// You use the AmazonCloudSearch2013 API to upload documents to a search domain
|
||||
// and search those documents.
|
||||
//
|
||||
// The endpoints for submitting UploadDocuments, Search, and Suggest requests
|
||||
// are domain-specific. To get the endpoints for your domain, use the Amazon
|
||||
// CloudSearch configuration service DescribeDomains action. The domain endpoints
|
||||
// are also displayed on the domain dashboard in the Amazon CloudSearch console.
|
||||
// You submit suggest requests to the search endpoint.
|
||||
//
|
||||
// For more information, see the Amazon CloudSearch Developer Guide (http://docs.aws.amazon.com/cloudsearch/latest/developerguide).
|
||||
//
|
||||
// See cloudsearchdomain package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/cloudsearchdomain/
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To Amazon CloudSearch Domain 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 CloudSearch Domain client CloudSearchDomain for more
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/cloudsearchdomain/#New
|
||||
package cloudsearchdomain
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package cloudsearchdomain
|
||||
|
||||
|
||||
-95
@@ -1,95 +0,0 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
|
||||
package cloudsearchdomain_test
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/session"
|
||||
"github.com/aws/aws-sdk-go/service/cloudsearchdomain"
|
||||
)
|
||||
|
||||
var _ time.Duration
|
||||
var _ bytes.Buffer
|
||||
|
||||
func ExampleCloudSearchDomain_Search() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudsearchdomain.New(sess)
|
||||
|
||||
params := &cloudsearchdomain.SearchInput{
|
||||
Query: aws.String("Query"), // Required
|
||||
Cursor: aws.String("Cursor"),
|
||||
Expr: aws.String("Expr"),
|
||||
Facet: aws.String("Facet"),
|
||||
FilterQuery: aws.String("FilterQuery"),
|
||||
Highlight: aws.String("Highlight"),
|
||||
Partial: aws.Bool(true),
|
||||
QueryOptions: aws.String("QueryOptions"),
|
||||
QueryParser: aws.String("QueryParser"),
|
||||
Return: aws.String("Return"),
|
||||
Size: aws.Int64(1),
|
||||
Sort: aws.String("Sort"),
|
||||
Start: aws.Int64(1),
|
||||
Stats: aws.String("Stat"),
|
||||
}
|
||||
resp, err := svc.Search(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudSearchDomain_Suggest() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudsearchdomain.New(sess)
|
||||
|
||||
params := &cloudsearchdomain.SuggestInput{
|
||||
Query: aws.String("Query"), // Required
|
||||
Suggester: aws.String("Suggester"), // Required
|
||||
Size: aws.Int64(1),
|
||||
}
|
||||
resp, err := svc.Suggest(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCloudSearchDomain_UploadDocuments() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cloudsearchdomain.New(sess)
|
||||
|
||||
params := &cloudsearchdomain.UploadDocumentsInput{
|
||||
ContentType: aws.String("ContentType"), // Required
|
||||
Documents: bytes.NewReader([]byte("PAYLOAD")), // Required
|
||||
}
|
||||
resp, err := svc.UploadDocuments(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
+6
-12
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package cloudsearchdomain
|
||||
|
||||
@@ -11,18 +11,12 @@ import (
|
||||
"github.com/aws/aws-sdk-go/private/protocol/restjson"
|
||||
)
|
||||
|
||||
// You use the AmazonCloudSearch2013 API to upload documents to a search domain
|
||||
// and search those documents.
|
||||
// CloudSearchDomain provides the API operation methods for making requests to
|
||||
// Amazon CloudSearch Domain. See this package's package overview docs
|
||||
// for details on the service.
|
||||
//
|
||||
// The endpoints for submitting UploadDocuments, Search, and Suggest requests
|
||||
// are domain-specific. To get the endpoints for your domain, use the Amazon
|
||||
// CloudSearch configuration service DescribeDomains action. The domain endpoints
|
||||
// are also displayed on the domain dashboard in the Amazon CloudSearch console.
|
||||
// You submit suggest requests to the search endpoint.
|
||||
//
|
||||
// For more information, see the Amazon CloudSearch Developer Guide (http://docs.aws.amazon.com/cloudsearch/latest/developerguide).
|
||||
// The service client's operations are safe to be used concurrently.
|
||||
// It is not safe to mutate any of the client's properties though.
|
||||
// CloudSearchDomain methods are safe to use concurrently. It is not safe to
|
||||
// modify mutate any of the struct's properties though.
|
||||
type CloudSearchDomain struct {
|
||||
*client.Client
|
||||
}
|
||||
|
||||
+171
-147
@@ -1,6 +1,5 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package cloudtrail provides a client for AWS CloudTrail.
|
||||
package cloudtrail
|
||||
|
||||
import (
|
||||
@@ -16,19 +15,18 @@ const opAddTags = "AddTags"
|
||||
|
||||
// AddTagsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the AddTags operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See AddTags for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the AddTags method directly
|
||||
// instead.
|
||||
// See AddTags for more information on using the AddTags
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the AddTagsRequest method.
|
||||
// req, resp := client.AddTagsRequest(params)
|
||||
@@ -141,19 +139,18 @@ const opCreateTrail = "CreateTrail"
|
||||
|
||||
// CreateTrailRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateTrail operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See CreateTrail for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateTrail method directly
|
||||
// instead.
|
||||
// See CreateTrail for more information on using the CreateTrail
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateTrailRequest method.
|
||||
// req, resp := client.CreateTrailRequest(params)
|
||||
@@ -300,19 +297,18 @@ const opDeleteTrail = "DeleteTrail"
|
||||
|
||||
// DeleteTrailRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteTrail operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DeleteTrail for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteTrail method directly
|
||||
// instead.
|
||||
// See DeleteTrail for more information on using the DeleteTrail
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteTrailRequest method.
|
||||
// req, resp := client.DeleteTrailRequest(params)
|
||||
@@ -402,19 +398,18 @@ const opDescribeTrails = "DescribeTrails"
|
||||
|
||||
// DescribeTrailsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeTrails operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeTrails for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeTrails method directly
|
||||
// instead.
|
||||
// See DescribeTrails for more information on using the DescribeTrails
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeTrailsRequest method.
|
||||
// req, resp := client.DescribeTrailsRequest(params)
|
||||
@@ -486,19 +481,18 @@ const opGetEventSelectors = "GetEventSelectors"
|
||||
|
||||
// GetEventSelectorsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetEventSelectors operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See GetEventSelectors for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetEventSelectors method directly
|
||||
// instead.
|
||||
// See GetEventSelectors for more information on using the GetEventSelectors
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetEventSelectorsRequest method.
|
||||
// req, resp := client.GetEventSelectorsRequest(params)
|
||||
@@ -600,19 +594,18 @@ const opGetTrailStatus = "GetTrailStatus"
|
||||
|
||||
// GetTrailStatusRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetTrailStatus operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See GetTrailStatus for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetTrailStatus method directly
|
||||
// instead.
|
||||
// See GetTrailStatus for more information on using the GetTrailStatus
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetTrailStatusRequest method.
|
||||
// req, resp := client.GetTrailStatusRequest(params)
|
||||
@@ -700,19 +693,18 @@ const opListPublicKeys = "ListPublicKeys"
|
||||
|
||||
// ListPublicKeysRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListPublicKeys operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See ListPublicKeys for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListPublicKeys method directly
|
||||
// instead.
|
||||
// See ListPublicKeys for more information on using the ListPublicKeys
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListPublicKeysRequest method.
|
||||
// req, resp := client.ListPublicKeysRequest(params)
|
||||
@@ -797,19 +789,18 @@ const opListTags = "ListTags"
|
||||
|
||||
// ListTagsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListTags operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See ListTags for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListTags method directly
|
||||
// instead.
|
||||
// See ListTags for more information on using the ListTags
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListTagsRequest method.
|
||||
// req, resp := client.ListTagsRequest(params)
|
||||
@@ -912,19 +903,18 @@ const opLookupEvents = "LookupEvents"
|
||||
|
||||
// LookupEventsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the LookupEvents operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See LookupEvents for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the LookupEvents method directly
|
||||
// instead.
|
||||
// See LookupEvents for more information on using the LookupEvents
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the LookupEventsRequest method.
|
||||
// req, resp := client.LookupEventsRequest(params)
|
||||
@@ -1061,8 +1051,12 @@ func (c *CloudTrail) LookupEventsPages(input *LookupEventsInput, fn func(*Lookup
|
||||
func (c *CloudTrail) LookupEventsPagesWithContext(ctx aws.Context, input *LookupEventsInput, fn func(*LookupEventsOutput, bool) bool, opts ...request.Option) error {
|
||||
p := request.Pagination{
|
||||
NewRequest: func() (*request.Request, error) {
|
||||
inCpy := *input
|
||||
req, _ := c.LookupEventsRequest(&inCpy)
|
||||
var inCpy *LookupEventsInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.LookupEventsRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
@@ -1080,19 +1074,18 @@ const opPutEventSelectors = "PutEventSelectors"
|
||||
|
||||
// PutEventSelectorsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the PutEventSelectors operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See PutEventSelectors for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the PutEventSelectors method directly
|
||||
// instead.
|
||||
// See PutEventSelectors for more information on using the PutEventSelectors
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the PutEventSelectorsRequest method.
|
||||
// req, resp := client.PutEventSelectorsRequest(params)
|
||||
@@ -1225,19 +1218,18 @@ const opRemoveTags = "RemoveTags"
|
||||
|
||||
// RemoveTagsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the RemoveTags operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See RemoveTags for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the RemoveTags method directly
|
||||
// instead.
|
||||
// See RemoveTags for more information on using the RemoveTags
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the RemoveTagsRequest method.
|
||||
// req, resp := client.RemoveTagsRequest(params)
|
||||
@@ -1341,19 +1333,18 @@ const opStartLogging = "StartLogging"
|
||||
|
||||
// StartLoggingRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the StartLogging operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See StartLogging for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the StartLogging method directly
|
||||
// instead.
|
||||
// See StartLogging for more information on using the StartLogging
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the StartLoggingRequest method.
|
||||
// req, resp := client.StartLoggingRequest(params)
|
||||
@@ -1445,19 +1436,18 @@ const opStopLogging = "StopLogging"
|
||||
|
||||
// StopLoggingRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the StopLogging operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See StopLogging for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the StopLogging method directly
|
||||
// instead.
|
||||
// See StopLogging for more information on using the StopLogging
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the StopLoggingRequest method.
|
||||
// req, resp := client.StopLoggingRequest(params)
|
||||
@@ -1551,19 +1541,18 @@ const opUpdateTrail = "UpdateTrail"
|
||||
|
||||
// UpdateTrailRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UpdateTrail operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See UpdateTrail for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the UpdateTrail method directly
|
||||
// instead.
|
||||
// See UpdateTrail for more information on using the UpdateTrail
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the UpdateTrailRequest method.
|
||||
// req, resp := client.UpdateTrailRequest(params)
|
||||
@@ -2464,7 +2453,9 @@ type GetEventSelectorsInput struct {
|
||||
// If you specify a trail ARN, it must be in the format:
|
||||
//
|
||||
// arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail
|
||||
TrailName *string `type:"string"`
|
||||
//
|
||||
// TrailName is a required field
|
||||
TrailName *string `type:"string" required:"true"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
@@ -2477,6 +2468,19 @@ func (s GetEventSelectorsInput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Validate inspects the fields of the type to determine if they are valid.
|
||||
func (s *GetEventSelectorsInput) Validate() error {
|
||||
invalidParams := request.ErrInvalidParams{Context: "GetEventSelectorsInput"}
|
||||
if s.TrailName == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("TrailName"))
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetTrailName sets the TrailName field's value.
|
||||
func (s *GetEventSelectorsInput) SetTrailName(v string) *GetEventSelectorsInput {
|
||||
s.TrailName = &v
|
||||
@@ -3173,7 +3177,9 @@ type PutEventSelectorsInput struct {
|
||||
|
||||
// Specifies the settings for your event selectors. You can configure up to
|
||||
// five event selectors for a trail.
|
||||
EventSelectors []*EventSelector `type:"list"`
|
||||
//
|
||||
// EventSelectors is a required field
|
||||
EventSelectors []*EventSelector `type:"list" required:"true"`
|
||||
|
||||
// Specifies the name of the trail or trail ARN. If you specify a trail name,
|
||||
// the string must meet the following requirements:
|
||||
@@ -3193,7 +3199,9 @@ type PutEventSelectorsInput struct {
|
||||
// If you specify a trail ARN, it must be in the format:
|
||||
//
|
||||
// arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail
|
||||
TrailName *string `type:"string"`
|
||||
//
|
||||
// TrailName is a required field
|
||||
TrailName *string `type:"string" required:"true"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
@@ -3206,6 +3214,22 @@ func (s PutEventSelectorsInput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Validate inspects the fields of the type to determine if they are valid.
|
||||
func (s *PutEventSelectorsInput) Validate() error {
|
||||
invalidParams := request.ErrInvalidParams{Context: "PutEventSelectorsInput"}
|
||||
if s.EventSelectors == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("EventSelectors"))
|
||||
}
|
||||
if s.TrailName == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("TrailName"))
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetEventSelectors sets the EventSelectors field's value.
|
||||
func (s *PutEventSelectorsInput) SetEventSelectors(v []*EventSelector) *PutEventSelectorsInput {
|
||||
s.EventSelectors = v
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user