vendor: update all dependencies

This commit is contained in:
Nick Craig-Wood
2017-07-23 08:51:42 +01:00
parent 0b6fba34a3
commit eb87cf6f12
2008 changed files with 352617 additions and 1004734 deletions
+569
View File
@@ -1748,6 +1748,157 @@ func (c *DirectoryService) DescribeDirectoriesWithContext(ctx aws.Context, input
return out, req.Send()
}
const opDescribeDomainControllers = "DescribeDomainControllers"
// DescribeDomainControllersRequest generates a "aws/request.Request" representing the
// client's request for the DescribeDomainControllers operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// See DescribeDomainControllers for usage and error information.
//
// 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 DescribeDomainControllers method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DescribeDomainControllersRequest method.
// req, resp := client.DescribeDomainControllersRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeDomainControllers
func (c *DirectoryService) DescribeDomainControllersRequest(input *DescribeDomainControllersInput) (req *request.Request, output *DescribeDomainControllersOutput) {
op := &request.Operation{
Name: opDescribeDomainControllers,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
LimitToken: "Limit",
TruncationToken: "",
},
}
if input == nil {
input = &DescribeDomainControllersInput{}
}
output = &DescribeDomainControllersOutput{}
req = c.newRequest(op, input, output)
return
}
// DescribeDomainControllers API operation for AWS Directory Service.
//
// Provides information about any domain controllers in your directory.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Directory Service's
// API operation DescribeDomainControllers for usage and error information.
//
// Returned Error Codes:
// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException"
// The specified entity could not be found.
//
// * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
// The NextToken value is not valid.
//
// * ErrCodeInvalidParameterException "InvalidParameterException"
// One or more parameters are not valid.
//
// * ErrCodeClientException "ClientException"
// A client exception has occurred.
//
// * ErrCodeServiceException "ServiceException"
// An exception has occurred in AWS Directory Service.
//
// * ErrCodeUnsupportedOperationException "UnsupportedOperationException"
// The operation is not supported.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeDomainControllers
func (c *DirectoryService) DescribeDomainControllers(input *DescribeDomainControllersInput) (*DescribeDomainControllersOutput, error) {
req, out := c.DescribeDomainControllersRequest(input)
return out, req.Send()
}
// DescribeDomainControllersWithContext is the same as DescribeDomainControllers with the addition of
// the ability to pass a context and additional request options.
//
// See DescribeDomainControllers for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *DirectoryService) DescribeDomainControllersWithContext(ctx aws.Context, input *DescribeDomainControllersInput, opts ...request.Option) (*DescribeDomainControllersOutput, error) {
req, out := c.DescribeDomainControllersRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// DescribeDomainControllersPages iterates over the pages of a DescribeDomainControllers operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See DescribeDomainControllers method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
// // Example iterating over at most 3 pages of a DescribeDomainControllers operation.
// pageNum := 0
// err := client.DescribeDomainControllersPages(params,
// func(page *DescribeDomainControllersOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *DirectoryService) DescribeDomainControllersPages(input *DescribeDomainControllersInput, fn func(*DescribeDomainControllersOutput, bool) bool) error {
return c.DescribeDomainControllersPagesWithContext(aws.BackgroundContext(), input, fn)
}
// DescribeDomainControllersPagesWithContext same as DescribeDomainControllersPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *DirectoryService) DescribeDomainControllersPagesWithContext(ctx aws.Context, input *DescribeDomainControllersInput, fn func(*DescribeDomainControllersOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
var inCpy *DescribeDomainControllersInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.DescribeDomainControllersRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
cont := true
for p.Next() && cont {
cont = fn(p.Page().(*DescribeDomainControllersOutput), !p.HasNextPage())
}
return p.Err()
}
const opDescribeEventTopics = "DescribeEventTopics"
// DescribeEventTopicsRequest generates a "aws/request.Request" representing the
@@ -3411,6 +3562,110 @@ func (c *DirectoryService) UpdateConditionalForwarderWithContext(ctx aws.Context
return out, req.Send()
}
const opUpdateNumberOfDomainControllers = "UpdateNumberOfDomainControllers"
// UpdateNumberOfDomainControllersRequest generates a "aws/request.Request" representing the
// client's request for the UpdateNumberOfDomainControllers operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// See UpdateNumberOfDomainControllers for usage and error information.
//
// 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 UpdateNumberOfDomainControllers method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the UpdateNumberOfDomainControllersRequest method.
// req, resp := client.UpdateNumberOfDomainControllersRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/UpdateNumberOfDomainControllers
func (c *DirectoryService) UpdateNumberOfDomainControllersRequest(input *UpdateNumberOfDomainControllersInput) (req *request.Request, output *UpdateNumberOfDomainControllersOutput) {
op := &request.Operation{
Name: opUpdateNumberOfDomainControllers,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &UpdateNumberOfDomainControllersInput{}
}
output = &UpdateNumberOfDomainControllersOutput{}
req = c.newRequest(op, input, output)
return
}
// UpdateNumberOfDomainControllers API operation for AWS Directory Service.
//
// Adds or removes domain controllers to or from the directory. Based on the
// difference between current value and new value (provided through this API
// call), domain controllers will be added or removed. It may take up to 45
// minutes for any new domain controllers to become fully active once the requested
// number of domain controllers is updated. During this time, you cannot make
// another update request.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Directory Service's
// API operation UpdateNumberOfDomainControllers for usage and error information.
//
// Returned Error Codes:
// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException"
// The specified entity could not be found.
//
// * ErrCodeDirectoryUnavailableException "DirectoryUnavailableException"
// The specified directory is unavailable or could not be found.
//
// * ErrCodeDomainControllerLimitExceededException "DomainControllerLimitExceededException"
// The maximum allowed number of domain controllers per directory was exceeded.
// The default limit per directory is 20 domain controllers.
//
// * ErrCodeInvalidParameterException "InvalidParameterException"
// One or more parameters are not valid.
//
// * ErrCodeUnsupportedOperationException "UnsupportedOperationException"
// The operation is not supported.
//
// * ErrCodeClientException "ClientException"
// A client exception has occurred.
//
// * ErrCodeServiceException "ServiceException"
// An exception has occurred in AWS Directory Service.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/UpdateNumberOfDomainControllers
func (c *DirectoryService) UpdateNumberOfDomainControllers(input *UpdateNumberOfDomainControllersInput) (*UpdateNumberOfDomainControllersOutput, error) {
req, out := c.UpdateNumberOfDomainControllersRequest(input)
return out, req.Send()
}
// UpdateNumberOfDomainControllersWithContext is the same as UpdateNumberOfDomainControllers with the addition of
// the ability to pass a context and additional request options.
//
// See UpdateNumberOfDomainControllers for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *DirectoryService) UpdateNumberOfDomainControllersWithContext(ctx aws.Context, input *UpdateNumberOfDomainControllersInput, opts ...request.Option) (*UpdateNumberOfDomainControllersOutput, error) {
req, out := c.UpdateNumberOfDomainControllersRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opUpdateRadius = "UpdateRadius"
// UpdateRadiusRequest generates a "aws/request.Request" representing the
@@ -5430,6 +5685,109 @@ func (s *DescribeDirectoriesOutput) SetNextToken(v string) *DescribeDirectoriesO
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeDomainControllersRequest
type DescribeDomainControllersInput struct {
_ struct{} `type:"structure"`
// Identifier of the directory for which to retrieve the domain controller information.
//
// DirectoryId is a required field
DirectoryId *string `type:"string" required:"true"`
// A list of identifiers for the domain controllers whose information will be
// provided.
DomainControllerIds []*string `type:"list"`
// The maximum number of items to return.
Limit *int64 `type:"integer"`
// The DescribeDomainControllers.NextToken value from a previous call to DescribeDomainControllers.
// Pass null if this is the first call.
NextToken *string `type:"string"`
}
// String returns the string representation
func (s DescribeDomainControllersInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeDomainControllersInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeDomainControllersInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DescribeDomainControllersInput"}
if s.DirectoryId == nil {
invalidParams.Add(request.NewErrParamRequired("DirectoryId"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetDirectoryId sets the DirectoryId field's value.
func (s *DescribeDomainControllersInput) SetDirectoryId(v string) *DescribeDomainControllersInput {
s.DirectoryId = &v
return s
}
// SetDomainControllerIds sets the DomainControllerIds field's value.
func (s *DescribeDomainControllersInput) SetDomainControllerIds(v []*string) *DescribeDomainControllersInput {
s.DomainControllerIds = v
return s
}
// SetLimit sets the Limit field's value.
func (s *DescribeDomainControllersInput) SetLimit(v int64) *DescribeDomainControllersInput {
s.Limit = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *DescribeDomainControllersInput) SetNextToken(v string) *DescribeDomainControllersInput {
s.NextToken = &v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeDomainControllersResult
type DescribeDomainControllersOutput struct {
_ struct{} `type:"structure"`
// List of the DomainController objects that were retrieved.
DomainControllers []*DomainController `type:"list"`
// If not null, more results are available. Pass this value for the NextToken
// parameter in a subsequent call to DescribeDomainControllers retrieve the
// next set of items.
NextToken *string `type:"string"`
}
// String returns the string representation
func (s DescribeDomainControllersOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeDomainControllersOutput) GoString() string {
return s.String()
}
// SetDomainControllers sets the DomainControllers field's value.
func (s *DescribeDomainControllersOutput) SetDomainControllers(v []*DomainController) *DescribeDomainControllersOutput {
s.DomainControllers = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *DescribeDomainControllersOutput) SetNextToken(v string) *DescribeDomainControllersOutput {
s.NextToken = &v
return s
}
// Describes event topics.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeEventTopicsRequest
type DescribeEventTopicsInput struct {
@@ -5876,6 +6234,10 @@ type DirectoryDescription struct {
// The textual description for the directory.
Description *string `type:"string"`
// The desired number of domain controllers in the directory if the directory
// is Microsoft AD.
DesiredNumberOfDomainControllers *int64 `min:"2" type:"integer"`
// The directory identifier.
DirectoryId *string `type:"string"`
@@ -5961,6 +6323,12 @@ func (s *DirectoryDescription) SetDescription(v string) *DirectoryDescription {
return s
}
// SetDesiredNumberOfDomainControllers sets the DesiredNumberOfDomainControllers field's value.
func (s *DirectoryDescription) SetDesiredNumberOfDomainControllers(v int64) *DirectoryDescription {
s.DesiredNumberOfDomainControllers = &v
return s
}
// SetDirectoryId sets the DirectoryId field's value.
func (s *DirectoryDescription) SetDirectoryId(v string) *DirectoryDescription {
s.DirectoryId = &v
@@ -6399,6 +6767,112 @@ func (s DisableSsoOutput) GoString() string {
return s.String()
}
// Contains information about the domain controllers for a specified directory.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DomainController
type DomainController struct {
_ struct{} `type:"structure"`
// The Availability Zone where the domain controller is located.
AvailabilityZone *string `type:"string"`
// Identifier of the directory where the domain controller resides.
DirectoryId *string `type:"string"`
// The IP address of the domain controller.
DnsIpAddr *string `type:"string"`
// Identifies a specific domain controller in the directory.
DomainControllerId *string `type:"string"`
// Specifies when the domain controller was created.
LaunchTime *time.Time `type:"timestamp" timestampFormat:"unix"`
// The status of the domain controller.
Status *string `type:"string" enum:"DomainControllerStatus"`
// The date and time that the status was last updated.
StatusLastUpdatedDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
// A description of the domain controller state.
StatusReason *string `type:"string"`
// Identifier of the subnet in the VPC that contains the domain controller.
SubnetId *string `type:"string"`
// The identifier of the VPC that contains the domain controller.
VpcId *string `type:"string"`
}
// String returns the string representation
func (s DomainController) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DomainController) GoString() string {
return s.String()
}
// SetAvailabilityZone sets the AvailabilityZone field's value.
func (s *DomainController) SetAvailabilityZone(v string) *DomainController {
s.AvailabilityZone = &v
return s
}
// SetDirectoryId sets the DirectoryId field's value.
func (s *DomainController) SetDirectoryId(v string) *DomainController {
s.DirectoryId = &v
return s
}
// SetDnsIpAddr sets the DnsIpAddr field's value.
func (s *DomainController) SetDnsIpAddr(v string) *DomainController {
s.DnsIpAddr = &v
return s
}
// SetDomainControllerId sets the DomainControllerId field's value.
func (s *DomainController) SetDomainControllerId(v string) *DomainController {
s.DomainControllerId = &v
return s
}
// SetLaunchTime sets the LaunchTime field's value.
func (s *DomainController) SetLaunchTime(v time.Time) *DomainController {
s.LaunchTime = &v
return s
}
// SetStatus sets the Status field's value.
func (s *DomainController) SetStatus(v string) *DomainController {
s.Status = &v
return s
}
// SetStatusLastUpdatedDateTime sets the StatusLastUpdatedDateTime field's value.
func (s *DomainController) SetStatusLastUpdatedDateTime(v time.Time) *DomainController {
s.StatusLastUpdatedDateTime = &v
return s
}
// SetStatusReason sets the StatusReason field's value.
func (s *DomainController) SetStatusReason(v string) *DomainController {
s.StatusReason = &v
return s
}
// SetSubnetId sets the SubnetId field's value.
func (s *DomainController) SetSubnetId(v string) *DomainController {
s.SubnetId = &v
return s
}
// SetVpcId sets the VpcId field's value.
func (s *DomainController) SetVpcId(v string) *DomainController {
s.VpcId = &v
return s
}
// Contains the inputs for the EnableRadius operation.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/EnableRadiusRequest
type EnableRadiusInput struct {
@@ -8061,6 +8535,78 @@ func (s UpdateConditionalForwarderOutput) GoString() string {
return s.String()
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/UpdateNumberOfDomainControllersRequest
type UpdateNumberOfDomainControllersInput struct {
_ struct{} `type:"structure"`
// The number of domain controllers desired in the directory.
//
// DesiredNumber is a required field
DesiredNumber *int64 `min:"2" type:"integer" required:"true"`
// Identifier of the directory to which the domain controllers will be added
// or removed.
//
// DirectoryId is a required field
DirectoryId *string `type:"string" required:"true"`
}
// String returns the string representation
func (s UpdateNumberOfDomainControllersInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateNumberOfDomainControllersInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *UpdateNumberOfDomainControllersInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UpdateNumberOfDomainControllersInput"}
if s.DesiredNumber == nil {
invalidParams.Add(request.NewErrParamRequired("DesiredNumber"))
}
if s.DesiredNumber != nil && *s.DesiredNumber < 2 {
invalidParams.Add(request.NewErrParamMinValue("DesiredNumber", 2))
}
if s.DirectoryId == nil {
invalidParams.Add(request.NewErrParamRequired("DirectoryId"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetDesiredNumber sets the DesiredNumber field's value.
func (s *UpdateNumberOfDomainControllersInput) SetDesiredNumber(v int64) *UpdateNumberOfDomainControllersInput {
s.DesiredNumber = &v
return s
}
// SetDirectoryId sets the DirectoryId field's value.
func (s *UpdateNumberOfDomainControllersInput) SetDirectoryId(v string) *UpdateNumberOfDomainControllersInput {
s.DirectoryId = &v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/UpdateNumberOfDomainControllersResult
type UpdateNumberOfDomainControllersOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s UpdateNumberOfDomainControllersOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateNumberOfDomainControllersOutput) GoString() string {
return s.String()
}
// Contains the inputs for the UpdateRadius operation.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/UpdateRadiusRequest
type UpdateRadiusInput struct {
@@ -8256,6 +8802,29 @@ const (
DirectoryTypeMicrosoftAd = "MicrosoftAD"
)
const (
// DomainControllerStatusCreating is a DomainControllerStatus enum value
DomainControllerStatusCreating = "Creating"
// DomainControllerStatusActive is a DomainControllerStatus enum value
DomainControllerStatusActive = "Active"
// DomainControllerStatusImpaired is a DomainControllerStatus enum value
DomainControllerStatusImpaired = "Impaired"
// DomainControllerStatusRestoring is a DomainControllerStatus enum value
DomainControllerStatusRestoring = "Restoring"
// DomainControllerStatusDeleting is a DomainControllerStatus enum value
DomainControllerStatusDeleting = "Deleting"
// DomainControllerStatusDeleted is a DomainControllerStatus enum value
DomainControllerStatusDeleted = "Deleted"
// DomainControllerStatusFailed is a DomainControllerStatus enum value
DomainControllerStatusFailed = "Failed"
)
const (
// IpRouteStatusMsgAdding is a IpRouteStatusMsg enum value
IpRouteStatusMsgAdding = "Adding"
@@ -132,6 +132,13 @@ type DirectoryServiceAPI interface {
DescribeDirectoriesWithContext(aws.Context, *directoryservice.DescribeDirectoriesInput, ...request.Option) (*directoryservice.DescribeDirectoriesOutput, error)
DescribeDirectoriesRequest(*directoryservice.DescribeDirectoriesInput) (*request.Request, *directoryservice.DescribeDirectoriesOutput)
DescribeDomainControllers(*directoryservice.DescribeDomainControllersInput) (*directoryservice.DescribeDomainControllersOutput, error)
DescribeDomainControllersWithContext(aws.Context, *directoryservice.DescribeDomainControllersInput, ...request.Option) (*directoryservice.DescribeDomainControllersOutput, error)
DescribeDomainControllersRequest(*directoryservice.DescribeDomainControllersInput) (*request.Request, *directoryservice.DescribeDomainControllersOutput)
DescribeDomainControllersPages(*directoryservice.DescribeDomainControllersInput, func(*directoryservice.DescribeDomainControllersOutput, bool) bool) error
DescribeDomainControllersPagesWithContext(aws.Context, *directoryservice.DescribeDomainControllersInput, func(*directoryservice.DescribeDomainControllersOutput, bool) bool, ...request.Option) error
DescribeEventTopics(*directoryservice.DescribeEventTopicsInput) (*directoryservice.DescribeEventTopicsOutput, error)
DescribeEventTopicsWithContext(aws.Context, *directoryservice.DescribeEventTopicsInput, ...request.Option) (*directoryservice.DescribeEventTopicsOutput, error)
DescribeEventTopicsRequest(*directoryservice.DescribeEventTopicsInput) (*request.Request, *directoryservice.DescribeEventTopicsOutput)
@@ -204,6 +211,10 @@ type DirectoryServiceAPI interface {
UpdateConditionalForwarderWithContext(aws.Context, *directoryservice.UpdateConditionalForwarderInput, ...request.Option) (*directoryservice.UpdateConditionalForwarderOutput, error)
UpdateConditionalForwarderRequest(*directoryservice.UpdateConditionalForwarderInput) (*request.Request, *directoryservice.UpdateConditionalForwarderOutput)
UpdateNumberOfDomainControllers(*directoryservice.UpdateNumberOfDomainControllersInput) (*directoryservice.UpdateNumberOfDomainControllersOutput, error)
UpdateNumberOfDomainControllersWithContext(aws.Context, *directoryservice.UpdateNumberOfDomainControllersInput, ...request.Option) (*directoryservice.UpdateNumberOfDomainControllersOutput, error)
UpdateNumberOfDomainControllersRequest(*directoryservice.UpdateNumberOfDomainControllersInput) (*request.Request, *directoryservice.UpdateNumberOfDomainControllersOutput)
UpdateRadius(*directoryservice.UpdateRadiusInput) (*directoryservice.UpdateRadiusOutput, error)
UpdateRadiusWithContext(aws.Context, *directoryservice.UpdateRadiusInput, ...request.Option) (*directoryservice.UpdateRadiusOutput, error)
UpdateRadiusRequest(*directoryservice.UpdateRadiusInput) (*request.Request, *directoryservice.UpdateRadiusOutput)
+7
View File
@@ -30,6 +30,13 @@ const (
// The specified directory is unavailable or could not be found.
ErrCodeDirectoryUnavailableException = "DirectoryUnavailableException"
// ErrCodeDomainControllerLimitExceededException for service response error code
// "DomainControllerLimitExceededException".
//
// The maximum allowed number of domain controllers per directory was exceeded.
// The default limit per directory is 20 domain controllers.
ErrCodeDomainControllerLimitExceededException = "DomainControllerLimitExceededException"
// ErrCodeEntityAlreadyExistsException for service response error code
// "EntityAlreadyExistsException".
//
@@ -1,971 +0,0 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package directoryservice_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/directoryservice"
)
var _ time.Duration
var _ bytes.Buffer
func ExampleDirectoryService_AddIpRoutes() {
sess := session.Must(session.NewSession())
svc := directoryservice.New(sess)
params := &directoryservice.AddIpRoutesInput{
DirectoryId: aws.String("DirectoryId"), // Required
IpRoutes: []*directoryservice.IpRoute{ // Required
{ // Required
CidrIp: aws.String("CidrIp"),
Description: aws.String("Description"),
},
// More values...
},
UpdateSecurityGroupForDirectoryControllers: aws.Bool(true),
}
resp, err := svc.AddIpRoutes(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 ExampleDirectoryService_AddTagsToResource() {
sess := session.Must(session.NewSession())
svc := directoryservice.New(sess)
params := &directoryservice.AddTagsToResourceInput{
ResourceId: aws.String("ResourceId"), // Required
Tags: []*directoryservice.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 ExampleDirectoryService_CancelSchemaExtension() {
sess := session.Must(session.NewSession())
svc := directoryservice.New(sess)
params := &directoryservice.CancelSchemaExtensionInput{
DirectoryId: aws.String("DirectoryId"), // Required
SchemaExtensionId: aws.String("SchemaExtensionId"), // Required
}
resp, err := svc.CancelSchemaExtension(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 ExampleDirectoryService_ConnectDirectory() {
sess := session.Must(session.NewSession())
svc := directoryservice.New(sess)
params := &directoryservice.ConnectDirectoryInput{
ConnectSettings: &directoryservice.DirectoryConnectSettings{ // Required
CustomerDnsIps: []*string{ // Required
aws.String("IpAddr"), // Required
// More values...
},
CustomerUserName: aws.String("UserName"), // Required
SubnetIds: []*string{ // Required
aws.String("SubnetId"), // Required
// More values...
},
VpcId: aws.String("VpcId"), // Required
},
Name: aws.String("DirectoryName"), // Required
Password: aws.String("ConnectPassword"), // Required
Size: aws.String("DirectorySize"), // Required
Description: aws.String("Description"),
ShortName: aws.String("DirectoryShortName"),
}
resp, err := svc.ConnectDirectory(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 ExampleDirectoryService_CreateAlias() {
sess := session.Must(session.NewSession())
svc := directoryservice.New(sess)
params := &directoryservice.CreateAliasInput{
Alias: aws.String("AliasName"), // Required
DirectoryId: aws.String("DirectoryId"), // Required
}
resp, err := svc.CreateAlias(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 ExampleDirectoryService_CreateComputer() {
sess := session.Must(session.NewSession())
svc := directoryservice.New(sess)
params := &directoryservice.CreateComputerInput{
ComputerName: aws.String("ComputerName"), // Required
DirectoryId: aws.String("DirectoryId"), // Required
Password: aws.String("ComputerPassword"), // Required
ComputerAttributes: []*directoryservice.Attribute{
{ // Required
Name: aws.String("AttributeName"),
Value: aws.String("AttributeValue"),
},
// More values...
},
OrganizationalUnitDistinguishedName: aws.String("OrganizationalUnitDN"),
}
resp, err := svc.CreateComputer(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 ExampleDirectoryService_CreateConditionalForwarder() {
sess := session.Must(session.NewSession())
svc := directoryservice.New(sess)
params := &directoryservice.CreateConditionalForwarderInput{
DirectoryId: aws.String("DirectoryId"), // Required
DnsIpAddrs: []*string{ // Required
aws.String("IpAddr"), // Required
// More values...
},
RemoteDomainName: aws.String("RemoteDomainName"), // Required
}
resp, err := svc.CreateConditionalForwarder(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 ExampleDirectoryService_CreateDirectory() {
sess := session.Must(session.NewSession())
svc := directoryservice.New(sess)
params := &directoryservice.CreateDirectoryInput{
Name: aws.String("DirectoryName"), // Required
Password: aws.String("Password"), // Required
Size: aws.String("DirectorySize"), // Required
Description: aws.String("Description"),
ShortName: aws.String("DirectoryShortName"),
VpcSettings: &directoryservice.DirectoryVpcSettings{
SubnetIds: []*string{ // Required
aws.String("SubnetId"), // Required
// More values...
},
VpcId: aws.String("VpcId"), // Required
},
}
resp, err := svc.CreateDirectory(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 ExampleDirectoryService_CreateMicrosoftAD() {
sess := session.Must(session.NewSession())
svc := directoryservice.New(sess)
params := &directoryservice.CreateMicrosoftADInput{
Name: aws.String("DirectoryName"), // Required
Password: aws.String("Password"), // Required
VpcSettings: &directoryservice.DirectoryVpcSettings{ // Required
SubnetIds: []*string{ // Required
aws.String("SubnetId"), // Required
// More values...
},
VpcId: aws.String("VpcId"), // Required
},
Description: aws.String("Description"),
ShortName: aws.String("DirectoryShortName"),
}
resp, err := svc.CreateMicrosoftAD(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 ExampleDirectoryService_CreateSnapshot() {
sess := session.Must(session.NewSession())
svc := directoryservice.New(sess)
params := &directoryservice.CreateSnapshotInput{
DirectoryId: aws.String("DirectoryId"), // Required
Name: aws.String("SnapshotName"),
}
resp, err := svc.CreateSnapshot(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 ExampleDirectoryService_CreateTrust() {
sess := session.Must(session.NewSession())
svc := directoryservice.New(sess)
params := &directoryservice.CreateTrustInput{
DirectoryId: aws.String("DirectoryId"), // Required
RemoteDomainName: aws.String("RemoteDomainName"), // Required
TrustDirection: aws.String("TrustDirection"), // Required
TrustPassword: aws.String("TrustPassword"), // Required
ConditionalForwarderIpAddrs: []*string{
aws.String("IpAddr"), // Required
// More values...
},
TrustType: aws.String("TrustType"),
}
resp, err := svc.CreateTrust(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 ExampleDirectoryService_DeleteConditionalForwarder() {
sess := session.Must(session.NewSession())
svc := directoryservice.New(sess)
params := &directoryservice.DeleteConditionalForwarderInput{
DirectoryId: aws.String("DirectoryId"), // Required
RemoteDomainName: aws.String("RemoteDomainName"), // Required
}
resp, err := svc.DeleteConditionalForwarder(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 ExampleDirectoryService_DeleteDirectory() {
sess := session.Must(session.NewSession())
svc := directoryservice.New(sess)
params := &directoryservice.DeleteDirectoryInput{
DirectoryId: aws.String("DirectoryId"), // Required
}
resp, err := svc.DeleteDirectory(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 ExampleDirectoryService_DeleteSnapshot() {
sess := session.Must(session.NewSession())
svc := directoryservice.New(sess)
params := &directoryservice.DeleteSnapshotInput{
SnapshotId: aws.String("SnapshotId"), // Required
}
resp, err := svc.DeleteSnapshot(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 ExampleDirectoryService_DeleteTrust() {
sess := session.Must(session.NewSession())
svc := directoryservice.New(sess)
params := &directoryservice.DeleteTrustInput{
TrustId: aws.String("TrustId"), // Required
DeleteAssociatedConditionalForwarder: aws.Bool(true),
}
resp, err := svc.DeleteTrust(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 ExampleDirectoryService_DeregisterEventTopic() {
sess := session.Must(session.NewSession())
svc := directoryservice.New(sess)
params := &directoryservice.DeregisterEventTopicInput{
DirectoryId: aws.String("DirectoryId"), // Required
TopicName: aws.String("TopicName"), // Required
}
resp, err := svc.DeregisterEventTopic(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 ExampleDirectoryService_DescribeConditionalForwarders() {
sess := session.Must(session.NewSession())
svc := directoryservice.New(sess)
params := &directoryservice.DescribeConditionalForwardersInput{
DirectoryId: aws.String("DirectoryId"), // Required
RemoteDomainNames: []*string{
aws.String("RemoteDomainName"), // Required
// More values...
},
}
resp, err := svc.DescribeConditionalForwarders(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 ExampleDirectoryService_DescribeDirectories() {
sess := session.Must(session.NewSession())
svc := directoryservice.New(sess)
params := &directoryservice.DescribeDirectoriesInput{
DirectoryIds: []*string{
aws.String("DirectoryId"), // Required
// More values...
},
Limit: aws.Int64(1),
NextToken: aws.String("NextToken"),
}
resp, err := svc.DescribeDirectories(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 ExampleDirectoryService_DescribeEventTopics() {
sess := session.Must(session.NewSession())
svc := directoryservice.New(sess)
params := &directoryservice.DescribeEventTopicsInput{
DirectoryId: aws.String("DirectoryId"),
TopicNames: []*string{
aws.String("TopicName"), // Required
// More values...
},
}
resp, err := svc.DescribeEventTopics(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 ExampleDirectoryService_DescribeSnapshots() {
sess := session.Must(session.NewSession())
svc := directoryservice.New(sess)
params := &directoryservice.DescribeSnapshotsInput{
DirectoryId: aws.String("DirectoryId"),
Limit: aws.Int64(1),
NextToken: aws.String("NextToken"),
SnapshotIds: []*string{
aws.String("SnapshotId"), // Required
// More values...
},
}
resp, err := svc.DescribeSnapshots(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 ExampleDirectoryService_DescribeTrusts() {
sess := session.Must(session.NewSession())
svc := directoryservice.New(sess)
params := &directoryservice.DescribeTrustsInput{
DirectoryId: aws.String("DirectoryId"),
Limit: aws.Int64(1),
NextToken: aws.String("NextToken"),
TrustIds: []*string{
aws.String("TrustId"), // Required
// More values...
},
}
resp, err := svc.DescribeTrusts(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 ExampleDirectoryService_DisableRadius() {
sess := session.Must(session.NewSession())
svc := directoryservice.New(sess)
params := &directoryservice.DisableRadiusInput{
DirectoryId: aws.String("DirectoryId"), // Required
}
resp, err := svc.DisableRadius(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 ExampleDirectoryService_DisableSso() {
sess := session.Must(session.NewSession())
svc := directoryservice.New(sess)
params := &directoryservice.DisableSsoInput{
DirectoryId: aws.String("DirectoryId"), // Required
Password: aws.String("ConnectPassword"),
UserName: aws.String("UserName"),
}
resp, err := svc.DisableSso(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 ExampleDirectoryService_EnableRadius() {
sess := session.Must(session.NewSession())
svc := directoryservice.New(sess)
params := &directoryservice.EnableRadiusInput{
DirectoryId: aws.String("DirectoryId"), // Required
RadiusSettings: &directoryservice.RadiusSettings{ // Required
AuthenticationProtocol: aws.String("RadiusAuthenticationProtocol"),
DisplayLabel: aws.String("RadiusDisplayLabel"),
RadiusPort: aws.Int64(1),
RadiusRetries: aws.Int64(1),
RadiusServers: []*string{
aws.String("Server"), // Required
// More values...
},
RadiusTimeout: aws.Int64(1),
SharedSecret: aws.String("RadiusSharedSecret"),
UseSameUsername: aws.Bool(true),
},
}
resp, err := svc.EnableRadius(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 ExampleDirectoryService_EnableSso() {
sess := session.Must(session.NewSession())
svc := directoryservice.New(sess)
params := &directoryservice.EnableSsoInput{
DirectoryId: aws.String("DirectoryId"), // Required
Password: aws.String("ConnectPassword"),
UserName: aws.String("UserName"),
}
resp, err := svc.EnableSso(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 ExampleDirectoryService_GetDirectoryLimits() {
sess := session.Must(session.NewSession())
svc := directoryservice.New(sess)
var params *directoryservice.GetDirectoryLimitsInput
resp, err := svc.GetDirectoryLimits(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 ExampleDirectoryService_GetSnapshotLimits() {
sess := session.Must(session.NewSession())
svc := directoryservice.New(sess)
params := &directoryservice.GetSnapshotLimitsInput{
DirectoryId: aws.String("DirectoryId"), // Required
}
resp, err := svc.GetSnapshotLimits(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 ExampleDirectoryService_ListIpRoutes() {
sess := session.Must(session.NewSession())
svc := directoryservice.New(sess)
params := &directoryservice.ListIpRoutesInput{
DirectoryId: aws.String("DirectoryId"), // Required
Limit: aws.Int64(1),
NextToken: aws.String("NextToken"),
}
resp, err := svc.ListIpRoutes(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 ExampleDirectoryService_ListSchemaExtensions() {
sess := session.Must(session.NewSession())
svc := directoryservice.New(sess)
params := &directoryservice.ListSchemaExtensionsInput{
DirectoryId: aws.String("DirectoryId"), // Required
Limit: aws.Int64(1),
NextToken: aws.String("NextToken"),
}
resp, err := svc.ListSchemaExtensions(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 ExampleDirectoryService_ListTagsForResource() {
sess := session.Must(session.NewSession())
svc := directoryservice.New(sess)
params := &directoryservice.ListTagsForResourceInput{
ResourceId: aws.String("ResourceId"), // Required
Limit: aws.Int64(1),
NextToken: aws.String("NextToken"),
}
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 ExampleDirectoryService_RegisterEventTopic() {
sess := session.Must(session.NewSession())
svc := directoryservice.New(sess)
params := &directoryservice.RegisterEventTopicInput{
DirectoryId: aws.String("DirectoryId"), // Required
TopicName: aws.String("TopicName"), // Required
}
resp, err := svc.RegisterEventTopic(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 ExampleDirectoryService_RemoveIpRoutes() {
sess := session.Must(session.NewSession())
svc := directoryservice.New(sess)
params := &directoryservice.RemoveIpRoutesInput{
CidrIps: []*string{ // Required
aws.String("CidrIp"), // Required
// More values...
},
DirectoryId: aws.String("DirectoryId"), // Required
}
resp, err := svc.RemoveIpRoutes(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 ExampleDirectoryService_RemoveTagsFromResource() {
sess := session.Must(session.NewSession())
svc := directoryservice.New(sess)
params := &directoryservice.RemoveTagsFromResourceInput{
ResourceId: aws.String("ResourceId"), // Required
TagKeys: []*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)
}
func ExampleDirectoryService_RestoreFromSnapshot() {
sess := session.Must(session.NewSession())
svc := directoryservice.New(sess)
params := &directoryservice.RestoreFromSnapshotInput{
SnapshotId: aws.String("SnapshotId"), // Required
}
resp, err := svc.RestoreFromSnapshot(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 ExampleDirectoryService_StartSchemaExtension() {
sess := session.Must(session.NewSession())
svc := directoryservice.New(sess)
params := &directoryservice.StartSchemaExtensionInput{
CreateSnapshotBeforeSchemaExtension: aws.Bool(true), // Required
Description: aws.String("Description"), // Required
DirectoryId: aws.String("DirectoryId"), // Required
LdifContent: aws.String("LdifContent"), // Required
}
resp, err := svc.StartSchemaExtension(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 ExampleDirectoryService_UpdateConditionalForwarder() {
sess := session.Must(session.NewSession())
svc := directoryservice.New(sess)
params := &directoryservice.UpdateConditionalForwarderInput{
DirectoryId: aws.String("DirectoryId"), // Required
DnsIpAddrs: []*string{ // Required
aws.String("IpAddr"), // Required
// More values...
},
RemoteDomainName: aws.String("RemoteDomainName"), // Required
}
resp, err := svc.UpdateConditionalForwarder(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 ExampleDirectoryService_UpdateRadius() {
sess := session.Must(session.NewSession())
svc := directoryservice.New(sess)
params := &directoryservice.UpdateRadiusInput{
DirectoryId: aws.String("DirectoryId"), // Required
RadiusSettings: &directoryservice.RadiusSettings{ // Required
AuthenticationProtocol: aws.String("RadiusAuthenticationProtocol"),
DisplayLabel: aws.String("RadiusDisplayLabel"),
RadiusPort: aws.Int64(1),
RadiusRetries: aws.Int64(1),
RadiusServers: []*string{
aws.String("Server"), // Required
// More values...
},
RadiusTimeout: aws.Int64(1),
SharedSecret: aws.String("RadiusSharedSecret"),
UseSameUsername: aws.Bool(true),
},
}
resp, err := svc.UpdateRadius(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 ExampleDirectoryService_VerifyTrust() {
sess := session.Must(session.NewSession())
svc := directoryservice.New(sess)
params := &directoryservice.VerifyTrustInput{
TrustId: aws.String("TrustId"), // Required
}
resp, err := svc.VerifyTrust(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)
}