AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

DirectoryService

import "github.com/aws/aws-sdk-go/service/directoryservice"

type DirectoryService struct { *client.Client }

DirectoryService provides the API operation methods for making requests to AWS Directory Service. See this package's package overview docs for details on the service.

DirectoryService methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

Client

Type: *client.Client

Method

AcceptSharedDirectory

func (c *DirectoryService) AcceptSharedDirectory(input *AcceptSharedDirectoryInput) (*AcceptSharedDirectoryOutput, error)

AcceptSharedDirectory API operation for AWS Directory Service.

Accepts a directory sharing request that was sent from the directory owner account.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Directory Service's API operation AcceptSharedDirectory for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more parameters are not valid.

  • ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" The specified entity could not be found.

  • ErrCodeDirectoryAlreadySharedException "DirectoryAlreadySharedException" The specified directory has already been shared with this AWS account.

  • ErrCodeClientException "ClientException" A client exception has occurred.

  • ErrCodeServiceException "ServiceException" An exception has occurred in AWS Directory Service.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/AcceptSharedDirectory

AcceptSharedDirectoryRequest

func (c *DirectoryService) AcceptSharedDirectoryRequest(input *AcceptSharedDirectoryInput) (req *request.Request, output *AcceptSharedDirectoryOutput)

AcceptSharedDirectoryRequest generates a "aws/request.Request" representing the client's request for the AcceptSharedDirectory operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See AcceptSharedDirectory for more information on using the AcceptSharedDirectory API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the AcceptSharedDirectoryRequest method. req, resp := client.AcceptSharedDirectoryRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/AcceptSharedDirectory

AcceptSharedDirectoryWithContext

func (c *DirectoryService) AcceptSharedDirectoryWithContext(ctx aws.Context, input *AcceptSharedDirectoryInput, opts ...request.Option) (*AcceptSharedDirectoryOutput, error)

AcceptSharedDirectoryWithContext is the same as AcceptSharedDirectory with the addition of the ability to pass a context and additional request options.

See AcceptSharedDirectory for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

AddIpRoutes

func (c *DirectoryService) AddIpRoutes(input *AddIpRoutesInput) (*AddIpRoutesOutput, error)

AddIpRoutes API operation for AWS Directory Service.

If the DNS server for your on-premises domain uses a publicly addressable IP address, you must add a CIDR address block to correctly route traffic to and from your Microsoft AD on Amazon Web Services. AddIpRoutes adds this address block. You can also use AddIpRoutes to facilitate routing traffic that uses public IP ranges from your Microsoft AD on AWS to a peer VPC.

Before you call AddIpRoutes, ensure that all of the required permissions have been explicitly granted through a policy. For details about what permissions are required to run the AddIpRoutes operation, see AWS Directory Service API Permissions: Actions, Resources, and Conditions Reference (https://docs.aws.amazon.com/directoryservice/latest/admin-guide/UsingWithDS_IAM_ResourcePermissions.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 the error.

See the AWS API reference guide for AWS Directory Service's API operation AddIpRoutes for usage and error information.

Returned Error Codes:

  • ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" The specified entity could not be found.

  • ErrCodeEntityAlreadyExistsException "EntityAlreadyExistsException" The specified entity already exists.

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more parameters are not valid.

  • ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" The specified directory is unavailable or could not be found.

  • ErrCodeIpRouteLimitExceededException "IpRouteLimitExceededException" The maximum allowed number of IP addresses was exceeded. The default limit is 100 IP address blocks.

  • ErrCodeClientException "ClientException" A client exception has occurred.

  • ErrCodeServiceException "ServiceException" An exception has occurred in AWS Directory Service.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/AddIpRoutes

AddIpRoutesRequest

func (c *DirectoryService) AddIpRoutesRequest(input *AddIpRoutesInput) (req *request.Request, output *AddIpRoutesOutput)

AddIpRoutesRequest generates a "aws/request.Request" representing the client's request for the AddIpRoutes operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See AddIpRoutes for more information on using the AddIpRoutes API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the AddIpRoutesRequest method. req, resp := client.AddIpRoutesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/AddIpRoutes

AddIpRoutesWithContext

func (c *DirectoryService) AddIpRoutesWithContext(ctx aws.Context, input *AddIpRoutesInput, opts ...request.Option) (*AddIpRoutesOutput, error)

AddIpRoutesWithContext is the same as AddIpRoutes with the addition of the ability to pass a context and additional request options.

See AddIpRoutes for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

AddTagsToResource

func (c *DirectoryService) AddTagsToResource(input *AddTagsToResourceInput) (*AddTagsToResourceOutput, error)

AddTagsToResource API operation for AWS Directory Service.

Adds or overwrites one or more tags for the specified directory. Each directory can have a maximum of 50 tags. Each tag consists of a key and optional value. Tag keys must be unique to each resource.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Directory Service's API operation AddTagsToResource for usage and error information.

Returned Error Codes:

  • ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" The specified entity could not be found.

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more parameters are not valid.

  • ErrCodeTagLimitExceededException "TagLimitExceededException" The maximum allowed number of tags was exceeded.

  • ErrCodeClientException "ClientException" A client exception has occurred.

  • ErrCodeServiceException "ServiceException" An exception has occurred in AWS Directory Service.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/AddTagsToResource

AddTagsToResourceRequest

func (c *DirectoryService) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *request.Request, output *AddTagsToResourceOutput)

AddTagsToResourceRequest generates a "aws/request.Request" representing the client's request for the AddTagsToResource operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

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.

// Example sending a request using the AddTagsToResourceRequest method. req, resp := client.AddTagsToResourceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/AddTagsToResource

AddTagsToResourceWithContext

func (c *DirectoryService) AddTagsToResourceWithContext(ctx aws.Context, input *AddTagsToResourceInput, opts ...request.Option) (*AddTagsToResourceOutput, error)

AddTagsToResourceWithContext is the same as AddTagsToResource with the addition of the ability to pass a context and additional request options.

See AddTagsToResource for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CancelSchemaExtension

func (c *DirectoryService) CancelSchemaExtension(input *CancelSchemaExtensionInput) (*CancelSchemaExtensionOutput, error)

CancelSchemaExtension API operation for AWS Directory Service.

Cancels an in-progress schema extension to a Microsoft AD directory. Once a schema extension has started replicating to all domain controllers, the task can no longer be canceled. A schema extension can be canceled during any of the following states; Initializing, CreatingSnapshot, and UpdatingSchema.

Returns awserr.Error for service API and SDK errors. Use runtime 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 CancelSchemaExtension for usage and error information.

Returned Error Codes:

  • ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" The specified entity could not be found.

  • ErrCodeClientException "ClientException" A client exception has occurred.

  • ErrCodeServiceException "ServiceException" An exception has occurred in AWS Directory Service.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CancelSchemaExtension

CancelSchemaExtensionRequest

func (c *DirectoryService) CancelSchemaExtensionRequest(input *CancelSchemaExtensionInput) (req *request.Request, output *CancelSchemaExtensionOutput)

CancelSchemaExtensionRequest generates a "aws/request.Request" representing the client's request for the CancelSchemaExtension operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CancelSchemaExtension for more information on using the CancelSchemaExtension API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CancelSchemaExtensionRequest method. req, resp := client.CancelSchemaExtensionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CancelSchemaExtension

CancelSchemaExtensionWithContext

func (c *DirectoryService) CancelSchemaExtensionWithContext(ctx aws.Context, input *CancelSchemaExtensionInput, opts ...request.Option) (*CancelSchemaExtensionOutput, error)

CancelSchemaExtensionWithContext is the same as CancelSchemaExtension with the addition of the ability to pass a context and additional request options.

See CancelSchemaExtension for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ConnectDirectory

func (c *DirectoryService) ConnectDirectory(input *ConnectDirectoryInput) (*ConnectDirectoryOutput, error)

ConnectDirectory API operation for AWS Directory Service.

Creates an AD Connector to connect to an on-premises directory.

Before you call ConnectDirectory, ensure that all of the required permissions have been explicitly granted through a policy. For details about what permissions are required to run the ConnectDirectory operation, see AWS Directory Service API Permissions: Actions, Resources, and Conditions Reference (https://docs.aws.amazon.com/directoryservice/latest/admin-guide/UsingWithDS_IAM_ResourcePermissions.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 the error.

See the AWS API reference guide for AWS Directory Service's API operation ConnectDirectory for usage and error information.

Returned Error Codes:

  • ErrCodeDirectoryLimitExceededException "DirectoryLimitExceededException" The maximum number of directories in the region has been reached. You can use the GetDirectoryLimits operation to determine your directory limits in the region.

  • 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.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ConnectDirectory

ConnectDirectoryRequest

func (c *DirectoryService) ConnectDirectoryRequest(input *ConnectDirectoryInput) (req *request.Request, output *ConnectDirectoryOutput)

ConnectDirectoryRequest generates a "aws/request.Request" representing the client's request for the ConnectDirectory operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ConnectDirectory for more information on using the ConnectDirectory API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ConnectDirectoryRequest method. req, resp := client.ConnectDirectoryRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ConnectDirectory

ConnectDirectoryWithContext

func (c *DirectoryService) ConnectDirectoryWithContext(ctx aws.Context, input *ConnectDirectoryInput, opts ...request.Option) (*ConnectDirectoryOutput, error)

ConnectDirectoryWithContext is the same as ConnectDirectory with the addition of the ability to pass a context and additional request options.

See ConnectDirectory for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateAlias

func (c *DirectoryService) CreateAlias(input *CreateAliasInput) (*CreateAliasOutput, error)

CreateAlias API operation for AWS Directory Service.

Creates an alias for a directory and assigns the alias to the directory. The alias is used to construct the access URL for the directory, such as http://<alias>.awsapps.com.

After an alias has been created, it cannot be deleted or reused, so this operation should only be used when absolutely necessary.

Returns awserr.Error for service API and SDK errors. Use runtime 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 CreateAlias for usage and error information.

Returned Error Codes:

  • ErrCodeEntityAlreadyExistsException "EntityAlreadyExistsException" The specified entity already exists.

  • ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" The specified entity could not be found.

  • 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.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateAlias

CreateAliasRequest

func (c *DirectoryService) CreateAliasRequest(input *CreateAliasInput) (req *request.Request, output *CreateAliasOutput)

CreateAliasRequest generates a "aws/request.Request" representing the client's request for the CreateAlias operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateAlias for more information on using the CreateAlias API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateAliasRequest method. req, resp := client.CreateAliasRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateAlias

CreateAliasWithContext

func (c *DirectoryService) CreateAliasWithContext(ctx aws.Context, input *CreateAliasInput, opts ...request.Option) (*CreateAliasOutput, error)

CreateAliasWithContext is the same as CreateAlias with the addition of the ability to pass a context and additional request options.

See CreateAlias for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateComputer

func (c *DirectoryService) CreateComputer(input *CreateComputerInput) (*CreateComputerOutput, error)

CreateComputer API operation for AWS Directory Service.

Creates a computer account in the specified directory, and joins the computer to the 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 CreateComputer for usage and error information.

Returned Error Codes:

  • ErrCodeAuthenticationFailedException "AuthenticationFailedException" An authentication error occurred.

  • ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" The specified directory is unavailable or could not be found.

  • ErrCodeEntityAlreadyExistsException "EntityAlreadyExistsException" The specified entity already exists.

  • ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" The specified entity could not be found.

  • 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.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateComputer

CreateComputerRequest

func (c *DirectoryService) CreateComputerRequest(input *CreateComputerInput) (req *request.Request, output *CreateComputerOutput)

CreateComputerRequest generates a "aws/request.Request" representing the client's request for the CreateComputer operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateComputer for more information on using the CreateComputer API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateComputerRequest method. req, resp := client.CreateComputerRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateComputer

CreateComputerWithContext

func (c *DirectoryService) CreateComputerWithContext(ctx aws.Context, input *CreateComputerInput, opts ...request.Option) (*CreateComputerOutput, error)

CreateComputerWithContext is the same as CreateComputer with the addition of the ability to pass a context and additional request options.

See CreateComputer for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateConditionalForwarder

func (c *DirectoryService) CreateConditionalForwarder(input *CreateConditionalForwarderInput) (*CreateConditionalForwarderOutput, error)

CreateConditionalForwarder API operation for AWS Directory Service.

Creates a conditional forwarder associated with your AWS directory. Conditional forwarders are required in order to set up a trust relationship with another domain. The conditional forwarder points to the trusted domain.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Directory Service's API operation CreateConditionalForwarder for usage and error information.

Returned Error Codes:

  • ErrCodeEntityAlreadyExistsException "EntityAlreadyExistsException" The specified entity already exists.

  • ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" The specified entity could not be found.

  • ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" The specified directory is unavailable or could not be found.

  • 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.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateConditionalForwarder

CreateConditionalForwarderRequest

func (c *DirectoryService) CreateConditionalForwarderRequest(input *CreateConditionalForwarderInput) (req *request.Request, output *CreateConditionalForwarderOutput)

CreateConditionalForwarderRequest generates a "aws/request.Request" representing the client's request for the CreateConditionalForwarder operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateConditionalForwarder for more information on using the CreateConditionalForwarder API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateConditionalForwarderRequest method. req, resp := client.CreateConditionalForwarderRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateConditionalForwarder

CreateConditionalForwarderWithContext

func (c *DirectoryService) CreateConditionalForwarderWithContext(ctx aws.Context, input *CreateConditionalForwarderInput, opts ...request.Option) (*CreateConditionalForwarderOutput, error)

CreateConditionalForwarderWithContext is the same as CreateConditionalForwarder with the addition of the ability to pass a context and additional request options.

See CreateConditionalForwarder for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateDirectory

func (c *DirectoryService) CreateDirectory(input *CreateDirectoryInput) (*CreateDirectoryOutput, error)

CreateDirectory API operation for AWS Directory Service.

Creates a Simple AD directory.

Before you call CreateDirectory, ensure that all of the required permissions have been explicitly granted through a policy. For details about what permissions are required to run the CreateDirectory operation, see AWS Directory Service API Permissions: Actions, Resources, and Conditions Reference (https://docs.aws.amazon.com/directoryservice/latest/admin-guide/UsingWithDS_IAM_ResourcePermissions.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 the error.

See the AWS API reference guide for AWS Directory Service's API operation CreateDirectory for usage and error information.

Returned Error Codes:

  • ErrCodeDirectoryLimitExceededException "DirectoryLimitExceededException" The maximum number of directories in the region has been reached. You can use the GetDirectoryLimits operation to determine your directory limits in the region.

  • 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.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateDirectory

CreateDirectoryRequest

func (c *DirectoryService) CreateDirectoryRequest(input *CreateDirectoryInput) (req *request.Request, output *CreateDirectoryOutput)

CreateDirectoryRequest generates a "aws/request.Request" representing the client's request for the CreateDirectory operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateDirectory for more information on using the CreateDirectory API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateDirectoryRequest method. req, resp := client.CreateDirectoryRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateDirectory

CreateDirectoryWithContext

func (c *DirectoryService) CreateDirectoryWithContext(ctx aws.Context, input *CreateDirectoryInput, opts ...request.Option) (*CreateDirectoryOutput, error)

CreateDirectoryWithContext is the same as CreateDirectory with the addition of the ability to pass a context and additional request options.

See CreateDirectory for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateLogSubscription

func (c *DirectoryService) CreateLogSubscription(input *CreateLogSubscriptionInput) (*CreateLogSubscriptionOutput, error)

CreateLogSubscription API operation for AWS Directory Service.

Creates a subscription to forward real time Directory Service domain controller security logs to the specified CloudWatch log group in your AWS account.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Directory Service's API operation CreateLogSubscription for usage and error information.

Returned Error Codes:

  • ErrCodeEntityAlreadyExistsException "EntityAlreadyExistsException" The specified entity already exists.

  • ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" The specified entity could not be found.

  • ErrCodeUnsupportedOperationException "UnsupportedOperationException" The operation is not supported.

  • ErrCodeInsufficientPermissionsException "InsufficientPermissionsException" The account does not have sufficient permission to perform the operation.

  • ErrCodeClientException "ClientException" A client exception has occurred.

  • ErrCodeServiceException "ServiceException" An exception has occurred in AWS Directory Service.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateLogSubscription

CreateLogSubscriptionRequest

func (c *DirectoryService) CreateLogSubscriptionRequest(input *CreateLogSubscriptionInput) (req *request.Request, output *CreateLogSubscriptionOutput)

CreateLogSubscriptionRequest generates a "aws/request.Request" representing the client's request for the CreateLogSubscription operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateLogSubscription for more information on using the CreateLogSubscription API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateLogSubscriptionRequest method. req, resp := client.CreateLogSubscriptionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateLogSubscription

CreateLogSubscriptionWithContext

func (c *DirectoryService) CreateLogSubscriptionWithContext(ctx aws.Context, input *CreateLogSubscriptionInput, opts ...request.Option) (*CreateLogSubscriptionOutput, error)

CreateLogSubscriptionWithContext is the same as CreateLogSubscription with the addition of the ability to pass a context and additional request options.

See CreateLogSubscription for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateMicrosoftAD

func (c *DirectoryService) CreateMicrosoftAD(input *CreateMicrosoftADInput) (*CreateMicrosoftADOutput, error)

CreateMicrosoftAD API operation for AWS Directory Service.

Creates an AWS Managed Microsoft AD directory.

Before you call CreateMicrosoftAD, ensure that all of the required permissions have been explicitly granted through a policy. For details about what permissions are required to run the CreateMicrosoftAD operation, see AWS Directory Service API Permissions: Actions, Resources, and Conditions Reference (https://docs.aws.amazon.com/directoryservice/latest/admin-guide/UsingWithDS_IAM_ResourcePermissions.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 the error.

See the AWS API reference guide for AWS Directory Service's API operation CreateMicrosoftAD for usage and error information.

Returned Error Codes:

  • ErrCodeDirectoryLimitExceededException "DirectoryLimitExceededException" The maximum number of directories in the region has been reached. You can use the GetDirectoryLimits operation to determine your directory limits in the region.

  • 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.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateMicrosoftAD

CreateMicrosoftADRequest

func (c *DirectoryService) CreateMicrosoftADRequest(input *CreateMicrosoftADInput) (req *request.Request, output *CreateMicrosoftADOutput)

CreateMicrosoftADRequest generates a "aws/request.Request" representing the client's request for the CreateMicrosoftAD operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateMicrosoftAD for more information on using the CreateMicrosoftAD API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateMicrosoftADRequest method. req, resp := client.CreateMicrosoftADRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateMicrosoftAD

CreateMicrosoftADWithContext

func (c *DirectoryService) CreateMicrosoftADWithContext(ctx aws.Context, input *CreateMicrosoftADInput, opts ...request.Option) (*CreateMicrosoftADOutput, error)

CreateMicrosoftADWithContext is the same as CreateMicrosoftAD with the addition of the ability to pass a context and additional request options.

See CreateMicrosoftAD for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateSnapshot

func (c *DirectoryService) CreateSnapshot(input *CreateSnapshotInput) (*CreateSnapshotOutput, error)

CreateSnapshot API operation for AWS Directory Service.

Creates a snapshot of a Simple AD or Microsoft AD directory in the AWS cloud.

You cannot take snapshots of AD Connector directories.

Returns awserr.Error for service API and SDK errors. Use runtime 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 CreateSnapshot for usage and error information.

Returned Error Codes:

  • ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" The specified entity could not be found.

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more parameters are not valid.

  • ErrCodeSnapshotLimitExceededException "SnapshotLimitExceededException" The maximum number of manual snapshots for the directory has been reached. You can use the GetSnapshotLimits operation to determine the snapshot limits for a directory.

  • ErrCodeClientException "ClientException" A client exception has occurred.

  • ErrCodeServiceException "ServiceException" An exception has occurred in AWS Directory Service.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateSnapshot

CreateSnapshotRequest

func (c *DirectoryService) CreateSnapshotRequest(input *CreateSnapshotInput) (req *request.Request, output *CreateSnapshotOutput)

CreateSnapshotRequest generates a "aws/request.Request" representing the client's request for the CreateSnapshot operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateSnapshot for more information on using the CreateSnapshot API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateSnapshotRequest method. req, resp := client.CreateSnapshotRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateSnapshot

CreateSnapshotWithContext

func (c *DirectoryService) CreateSnapshotWithContext(ctx aws.Context, input *CreateSnapshotInput, opts ...request.Option) (*CreateSnapshotOutput, error)

CreateSnapshotWithContext is the same as CreateSnapshot with the addition of the ability to pass a context and additional request options.

See CreateSnapshot for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateTrust

func (c *DirectoryService) CreateTrust(input *CreateTrustInput) (*CreateTrustOutput, error)

CreateTrust API operation for AWS Directory Service.

AWS Directory Service for Microsoft Active Directory allows you to configure trust relationships. For example, you can establish a trust between your AWS Managed Microsoft AD directory, and your existing on-premises Microsoft Active Directory. This would allow you to provide users and groups access to resources in either domain, with a single set of credentials.

This action initiates the creation of the AWS side of a trust relationship between an AWS Managed Microsoft AD directory and an external domain. You can create either a forest trust or an external trust.

Returns awserr.Error for service API and SDK errors. Use runtime 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 CreateTrust for usage and error information.

Returned Error Codes:

  • ErrCodeEntityAlreadyExistsException "EntityAlreadyExistsException" The specified entity already exists.

  • ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" The specified entity could not be found.

  • 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.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateTrust

CreateTrustRequest

func (c *DirectoryService) CreateTrustRequest(input *CreateTrustInput) (req *request.Request, output *CreateTrustOutput)

CreateTrustRequest generates a "aws/request.Request" representing the client's request for the CreateTrust operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateTrust for more information on using the CreateTrust API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateTrustRequest method. req, resp := client.CreateTrustRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateTrust

CreateTrustWithContext

func (c *DirectoryService) CreateTrustWithContext(ctx aws.Context, input *CreateTrustInput, opts ...request.Option) (*CreateTrustOutput, error)

CreateTrustWithContext is the same as CreateTrust with the addition of the ability to pass a context and additional request options.

See CreateTrust for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteConditionalForwarder

func (c *DirectoryService) DeleteConditionalForwarder(input *DeleteConditionalForwarderInput) (*DeleteConditionalForwarderOutput, error)

DeleteConditionalForwarder API operation for AWS Directory Service.

Deletes a conditional forwarder that has been set up for your AWS 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 DeleteConditionalForwarder 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.

  • 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.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeleteConditionalForwarder

DeleteConditionalForwarderRequest

func (c *DirectoryService) DeleteConditionalForwarderRequest(input *DeleteConditionalForwarderInput) (req *request.Request, output *DeleteConditionalForwarderOutput)

DeleteConditionalForwarderRequest generates a "aws/request.Request" representing the client's request for the DeleteConditionalForwarder operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteConditionalForwarder for more information on using the DeleteConditionalForwarder API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteConditionalForwarderRequest method. req, resp := client.DeleteConditionalForwarderRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeleteConditionalForwarder

DeleteConditionalForwarderWithContext

func (c *DirectoryService) DeleteConditionalForwarderWithContext(ctx aws.Context, input *DeleteConditionalForwarderInput, opts ...request.Option) (*DeleteConditionalForwarderOutput, error)

DeleteConditionalForwarderWithContext is the same as DeleteConditionalForwarder with the addition of the ability to pass a context and additional request options.

See DeleteConditionalForwarder for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteDirectory

func (c *DirectoryService) DeleteDirectory(input *DeleteDirectoryInput) (*DeleteDirectoryOutput, error)

DeleteDirectory API operation for AWS Directory Service.

Deletes an AWS Directory Service directory.

Before you call DeleteDirectory, ensure that all of the required permissions have been explicitly granted through a policy. For details about what permissions are required to run the DeleteDirectory operation, see AWS Directory Service API Permissions: Actions, Resources, and Conditions Reference (https://docs.aws.amazon.com/directoryservice/latest/admin-guide/UsingWithDS_IAM_ResourcePermissions.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 the error.

See the AWS API reference guide for AWS Directory Service's API operation DeleteDirectory for usage and error information.

Returned Error Codes:

  • ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" The specified entity could not be found.

  • ErrCodeClientException "ClientException" A client exception has occurred.

  • ErrCodeServiceException "ServiceException" An exception has occurred in AWS Directory Service.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeleteDirectory

DeleteDirectoryRequest

func (c *DirectoryService) DeleteDirectoryRequest(input *DeleteDirectoryInput) (req *request.Request, output *DeleteDirectoryOutput)

DeleteDirectoryRequest generates a "aws/request.Request" representing the client's request for the DeleteDirectory operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteDirectory for more information on using the DeleteDirectory API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteDirectoryRequest method. req, resp := client.DeleteDirectoryRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeleteDirectory

DeleteDirectoryWithContext

func (c *DirectoryService) DeleteDirectoryWithContext(ctx aws.Context, input *DeleteDirectoryInput, opts ...request.Option) (*DeleteDirectoryOutput, error)

DeleteDirectoryWithContext is the same as DeleteDirectory with the addition of the ability to pass a context and additional request options.

See DeleteDirectory for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteLogSubscription

func (c *DirectoryService) DeleteLogSubscription(input *DeleteLogSubscriptionInput) (*DeleteLogSubscriptionOutput, error)

DeleteLogSubscription API operation for AWS Directory Service.

Deletes the specified log subscription.

Returns awserr.Error for service API and SDK errors. Use runtime 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 DeleteLogSubscription for usage and error information.

Returned Error Codes:

  • ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" The specified entity could not be found.

  • ErrCodeUnsupportedOperationException "UnsupportedOperationException" The operation is not supported.

  • ErrCodeClientException "ClientException" A client exception has occurred.

  • ErrCodeServiceException "ServiceException" An exception has occurred in AWS Directory Service.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeleteLogSubscription

DeleteLogSubscriptionRequest

func (c *DirectoryService) DeleteLogSubscriptionRequest(input *DeleteLogSubscriptionInput) (req *request.Request, output *DeleteLogSubscriptionOutput)

DeleteLogSubscriptionRequest generates a "aws/request.Request" representing the client's request for the DeleteLogSubscription operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteLogSubscription for more information on using the DeleteLogSubscription API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteLogSubscriptionRequest method. req, resp := client.DeleteLogSubscriptionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeleteLogSubscription

DeleteLogSubscriptionWithContext

func (c *DirectoryService) DeleteLogSubscriptionWithContext(ctx aws.Context, input *DeleteLogSubscriptionInput, opts ...request.Option) (*DeleteLogSubscriptionOutput, error)

DeleteLogSubscriptionWithContext is the same as DeleteLogSubscription with the addition of the ability to pass a context and additional request options.

See DeleteLogSubscription for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteSnapshot

func (c *DirectoryService) DeleteSnapshot(input *DeleteSnapshotInput) (*DeleteSnapshotOutput, error)

DeleteSnapshot API operation for AWS Directory Service.

Deletes a directory snapshot.

Returns awserr.Error for service API and SDK errors. Use runtime 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 DeleteSnapshot for usage and error information.

Returned Error Codes:

  • ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" The specified entity could not be found.

  • 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.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeleteSnapshot

DeleteSnapshotRequest

func (c *DirectoryService) DeleteSnapshotRequest(input *DeleteSnapshotInput) (req *request.Request, output *DeleteSnapshotOutput)

DeleteSnapshotRequest generates a "aws/request.Request" representing the client's request for the DeleteSnapshot operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteSnapshot for more information on using the DeleteSnapshot API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteSnapshotRequest method. req, resp := client.DeleteSnapshotRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeleteSnapshot

DeleteSnapshotWithContext

func (c *DirectoryService) DeleteSnapshotWithContext(ctx aws.Context, input *DeleteSnapshotInput, opts ...request.Option) (*DeleteSnapshotOutput, error)

DeleteSnapshotWithContext is the same as DeleteSnapshot with the addition of the ability to pass a context and additional request options.

See DeleteSnapshot for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteTrust

func (c *DirectoryService) DeleteTrust(input *DeleteTrustInput) (*DeleteTrustOutput, error)

DeleteTrust API operation for AWS Directory Service.

Deletes an existing trust relationship between your AWS Managed Microsoft AD directory and an external domain.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Directory Service's API operation DeleteTrust for usage and error information.

Returned Error Codes:

  • ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" The specified entity could not be found.

  • 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.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeleteTrust

DeleteTrustRequest

func (c *DirectoryService) DeleteTrustRequest(input *DeleteTrustInput) (req *request.Request, output *DeleteTrustOutput)

DeleteTrustRequest generates a "aws/request.Request" representing the client's request for the DeleteTrust operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteTrust for more information on using the DeleteTrust API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteTrustRequest method. req, resp := client.DeleteTrustRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeleteTrust

DeleteTrustWithContext

func (c *DirectoryService) DeleteTrustWithContext(ctx aws.Context, input *DeleteTrustInput, opts ...request.Option) (*DeleteTrustOutput, error)

DeleteTrustWithContext is the same as DeleteTrust with the addition of the ability to pass a context and additional request options.

See DeleteTrust for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeregisterEventTopic

func (c *DirectoryService) DeregisterEventTopic(input *DeregisterEventTopicInput) (*DeregisterEventTopicOutput, error)

DeregisterEventTopic API operation for AWS Directory Service.

Removes the specified directory as a publisher to the specified SNS topic.

Returns awserr.Error for service API and SDK errors. Use runtime 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 DeregisterEventTopic for usage and error information.

Returned Error Codes:

  • ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" The specified entity could not be found.

  • 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.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeregisterEventTopic

DeregisterEventTopicRequest

func (c *DirectoryService) DeregisterEventTopicRequest(input *DeregisterEventTopicInput) (req *request.Request, output *DeregisterEventTopicOutput)

DeregisterEventTopicRequest generates a "aws/request.Request" representing the client's request for the DeregisterEventTopic operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeregisterEventTopic for more information on using the DeregisterEventTopic API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeregisterEventTopicRequest method. req, resp := client.DeregisterEventTopicRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeregisterEventTopic

DeregisterEventTopicWithContext

func (c *DirectoryService) DeregisterEventTopicWithContext(ctx aws.Context, input *DeregisterEventTopicInput, opts ...request.Option) (*DeregisterEventTopicOutput, error)

DeregisterEventTopicWithContext is the same as DeregisterEventTopic with the addition of the ability to pass a context and additional request options.

See DeregisterEventTopic for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeConditionalForwarders

func (c *DirectoryService) DescribeConditionalForwarders(input *DescribeConditionalForwardersInput) (*DescribeConditionalForwardersOutput, error)

DescribeConditionalForwarders API operation for AWS Directory Service.

Obtains information about the conditional forwarders for this account.

If no input parameters are provided for RemoteDomainNames, this request describes all conditional forwarders for the specified directory ID.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Directory Service's API operation DescribeConditionalForwarders 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.

  • 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.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeConditionalForwarders

DescribeConditionalForwardersRequest

func (c *DirectoryService) DescribeConditionalForwardersRequest(input *DescribeConditionalForwardersInput) (req *request.Request, output *DescribeConditionalForwardersOutput)

DescribeConditionalForwardersRequest generates a "aws/request.Request" representing the client's request for the DescribeConditionalForwarders operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeConditionalForwarders for more information on using the DescribeConditionalForwarders API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeConditionalForwardersRequest method. req, resp := client.DescribeConditionalForwardersRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeConditionalForwarders

DescribeConditionalForwardersWithContext

func (c *DirectoryService) DescribeConditionalForwardersWithContext(ctx aws.Context, input *DescribeConditionalForwardersInput, opts ...request.Option) (*DescribeConditionalForwardersOutput, error)

DescribeConditionalForwardersWithContext is the same as DescribeConditionalForwarders with the addition of the ability to pass a context and additional request options.

See DescribeConditionalForwarders for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeDirectories

func (c *DirectoryService) DescribeDirectories(input *DescribeDirectoriesInput) (*DescribeDirectoriesOutput, error)

DescribeDirectories API operation for AWS Directory Service.

Obtains information about the directories that belong to this account.

You can retrieve information about specific directories by passing the directory identifiers in the DirectoryIds parameter. Otherwise, all directories that belong to the current account are returned.

This operation supports pagination with the use of the NextToken request and response parameters. If more results are available, the DescribeDirectoriesResult.NextToken member contains a token that you pass in the next call to DescribeDirectories to retrieve the next set of items.

You can also specify a maximum number of return results with the Limit parameter.

Returns awserr.Error for service API and SDK errors. Use runtime 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 DescribeDirectories for usage and error information.

Returned Error Codes:

  • ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" The specified entity could not be found.

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more parameters are not valid.

  • ErrCodeInvalidNextTokenException "InvalidNextTokenException" The NextToken value is not valid.

  • ErrCodeClientException "ClientException" A client exception has occurred.

  • ErrCodeServiceException "ServiceException" An exception has occurred in AWS Directory Service.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeDirectories

DescribeDirectoriesRequest

func (c *DirectoryService) DescribeDirectoriesRequest(input *DescribeDirectoriesInput) (req *request.Request, output *DescribeDirectoriesOutput)

DescribeDirectoriesRequest generates a "aws/request.Request" representing the client's request for the DescribeDirectories operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeDirectories for more information on using the DescribeDirectories API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeDirectoriesRequest method. req, resp := client.DescribeDirectoriesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeDirectories

DescribeDirectoriesWithContext

func (c *DirectoryService) DescribeDirectoriesWithContext(ctx aws.Context, input *DescribeDirectoriesInput, opts ...request.Option) (*DescribeDirectoriesOutput, error)

DescribeDirectoriesWithContext is the same as DescribeDirectories with the addition of the ability to pass a context and additional request options.

See DescribeDirectories for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeDomainControllers

func (c *DirectoryService) DescribeDomainControllers(input *DescribeDomainControllersInput) (*DescribeDomainControllersOutput, error)

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.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeDomainControllers

DescribeDomainControllersPages

func (c *DirectoryService) DescribeDomainControllersPages(input *DescribeDomainControllersInput, fn func(*DescribeDomainControllersOutput, bool) bool) error

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 })

See Also

For more information about using this API, see AWS API Documentation.

DescribeDomainControllersPagesWithContext

func (c *DirectoryService) DescribeDomainControllersPagesWithContext(ctx aws.Context, input *DescribeDomainControllersInput, fn func(*DescribeDomainControllersOutput, bool) bool, opts ...request.Option) error

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.

See Also

For more information about using this API, see AWS API Documentation.

DescribeDomainControllersRequest

func (c *DirectoryService) DescribeDomainControllersRequest(input *DescribeDomainControllersInput) (req *request.Request, output *DescribeDomainControllersOutput)

DescribeDomainControllersRequest generates a "aws/request.Request" representing the client's request for the DescribeDomainControllers operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeDomainControllers for more information on using the DescribeDomainControllers API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// 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) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeDomainControllers

DescribeDomainControllersWithContext

func (c *DirectoryService) DescribeDomainControllersWithContext(ctx aws.Context, input *DescribeDomainControllersInput, opts ...request.Option) (*DescribeDomainControllersOutput, error)

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.

See Also

For more information about using this API, see AWS API Documentation.

DescribeEventTopics

func (c *DirectoryService) DescribeEventTopics(input *DescribeEventTopicsInput) (*DescribeEventTopicsOutput, error)

DescribeEventTopics API operation for AWS Directory Service.

Obtains information about which SNS topics receive status messages from the specified directory.

If no input parameters are provided, such as DirectoryId or TopicName, this request describes all of the associations in the account.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Directory Service's API operation DescribeEventTopics for usage and error information.

Returned Error Codes:

  • ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" The specified entity could not be found.

  • 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.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeEventTopics

DescribeEventTopicsRequest

func (c *DirectoryService) DescribeEventTopicsRequest(input *DescribeEventTopicsInput) (req *request.Request, output *DescribeEventTopicsOutput)

DescribeEventTopicsRequest generates a "aws/request.Request" representing the client's request for the DescribeEventTopics operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeEventTopics for more information on using the DescribeEventTopics API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeEventTopicsRequest method. req, resp := client.DescribeEventTopicsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeEventTopics

DescribeEventTopicsWithContext

func (c *DirectoryService) DescribeEventTopicsWithContext(ctx aws.Context, input *DescribeEventTopicsInput, opts ...request.Option) (*DescribeEventTopicsOutput, error)

DescribeEventTopicsWithContext is the same as DescribeEventTopics with the addition of the ability to pass a context and additional request options.

See DescribeEventTopics for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeSharedDirectories

func (c *DirectoryService) DescribeSharedDirectories(input *DescribeSharedDirectoriesInput) (*DescribeSharedDirectoriesOutput, error)

DescribeSharedDirectories API operation for AWS Directory Service.

Returns the shared directories in your account.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Directory Service's API operation DescribeSharedDirectories 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.

  • ErrCodeUnsupportedOperationException "UnsupportedOperationException" The operation is not supported.

  • ErrCodeClientException "ClientException" A client exception has occurred.

  • ErrCodeServiceException "ServiceException" An exception has occurred in AWS Directory Service.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeSharedDirectories

DescribeSharedDirectoriesRequest

func (c *DirectoryService) DescribeSharedDirectoriesRequest(input *DescribeSharedDirectoriesInput) (req *request.Request, output *DescribeSharedDirectoriesOutput)

DescribeSharedDirectoriesRequest generates a "aws/request.Request" representing the client's request for the DescribeSharedDirectories operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeSharedDirectories for more information on using the DescribeSharedDirectories API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeSharedDirectoriesRequest method. req, resp := client.DescribeSharedDirectoriesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeSharedDirectories

DescribeSharedDirectoriesWithContext

func (c *DirectoryService) DescribeSharedDirectoriesWithContext(ctx aws.Context, input *DescribeSharedDirectoriesInput, opts ...request.Option) (*DescribeSharedDirectoriesOutput, error)

DescribeSharedDirectoriesWithContext is the same as DescribeSharedDirectories with the addition of the ability to pass a context and additional request options.

See DescribeSharedDirectories for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeSnapshots

func (c *DirectoryService) DescribeSnapshots(input *DescribeSnapshotsInput) (*DescribeSnapshotsOutput, error)

DescribeSnapshots API operation for AWS Directory Service.

Obtains information about the directory snapshots that belong to this account.

This operation supports pagination with the use of the NextToken request and response parameters. If more results are available, the DescribeSnapshots.NextToken member contains a token that you pass in the next call to DescribeSnapshots to retrieve the next set of items.

You can also specify a maximum number of return results with the Limit parameter.

Returns awserr.Error for service API and SDK errors. Use runtime 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 DescribeSnapshots for usage and error information.

Returned Error Codes:

  • ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" The specified entity could not be found.

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more parameters are not valid.

  • ErrCodeInvalidNextTokenException "InvalidNextTokenException" The NextToken value is not valid.

  • ErrCodeClientException "ClientException" A client exception has occurred.

  • ErrCodeServiceException "ServiceException" An exception has occurred in AWS Directory Service.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeSnapshots

DescribeSnapshotsRequest

func (c *DirectoryService) DescribeSnapshotsRequest(input *DescribeSnapshotsInput) (req *request.Request, output *DescribeSnapshotsOutput)

DescribeSnapshotsRequest generates a "aws/request.Request" representing the client's request for the DescribeSnapshots operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeSnapshots for more information on using the DescribeSnapshots API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeSnapshotsRequest method. req, resp := client.DescribeSnapshotsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeSnapshots

DescribeSnapshotsWithContext

func (c *DirectoryService) DescribeSnapshotsWithContext(ctx aws.Context, input *DescribeSnapshotsInput, opts ...request.Option) (*DescribeSnapshotsOutput, error)

DescribeSnapshotsWithContext is the same as DescribeSnapshots with the addition of the ability to pass a context and additional request options.

See DescribeSnapshots for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeTrusts

func (c *DirectoryService) DescribeTrusts(input *DescribeTrustsInput) (*DescribeTrustsOutput, error)

DescribeTrusts API operation for AWS Directory Service.

Obtains information about the trust relationships for this account.

If no input parameters are provided, such as DirectoryId or TrustIds, this request describes all the trust relationships belonging to the account.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Directory Service's API operation DescribeTrusts 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.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeTrusts

DescribeTrustsRequest

func (c *DirectoryService) DescribeTrustsRequest(input *DescribeTrustsInput) (req *request.Request, output *DescribeTrustsOutput)

DescribeTrustsRequest generates a "aws/request.Request" representing the client's request for the DescribeTrusts operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeTrusts for more information on using the DescribeTrusts API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeTrustsRequest method. req, resp := client.DescribeTrustsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeTrusts

DescribeTrustsWithContext

func (c *DirectoryService) DescribeTrustsWithContext(ctx aws.Context, input *DescribeTrustsInput, opts ...request.Option) (*DescribeTrustsOutput, error)

DescribeTrustsWithContext is the same as DescribeTrusts with the addition of the ability to pass a context and additional request options.

See DescribeTrusts for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DisableRadius

func (c *DirectoryService) DisableRadius(input *DisableRadiusInput) (*DisableRadiusOutput, error)

DisableRadius API operation for AWS Directory Service.

Disables multi-factor authentication (MFA) with the Remote Authentication Dial In User Service (RADIUS) server for an AD Connector or Microsoft AD 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 DisableRadius for usage and error information.

Returned Error Codes:

  • ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" The specified entity could not be found.

  • ErrCodeClientException "ClientException" A client exception has occurred.

  • ErrCodeServiceException "ServiceException" An exception has occurred in AWS Directory Service.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DisableRadius

DisableRadiusRequest

func (c *DirectoryService) DisableRadiusRequest(input *DisableRadiusInput) (req *request.Request, output *DisableRadiusOutput)

DisableRadiusRequest generates a "aws/request.Request" representing the client's request for the DisableRadius operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DisableRadius for more information on using the DisableRadius API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DisableRadiusRequest method. req, resp := client.DisableRadiusRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DisableRadius

DisableRadiusWithContext

func (c *DirectoryService) DisableRadiusWithContext(ctx aws.Context, input *DisableRadiusInput, opts ...request.Option) (*DisableRadiusOutput, error)

DisableRadiusWithContext is the same as DisableRadius with the addition of the ability to pass a context and additional request options.

See DisableRadius for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DisableSso

func (c *DirectoryService) DisableSso(input *DisableSsoInput) (*DisableSsoOutput, error)

DisableSso API operation for AWS Directory Service.

Disables single-sign on for a 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 DisableSso for usage and error information.

Returned Error Codes:

  • ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" The specified entity could not be found.

  • ErrCodeInsufficientPermissionsException "InsufficientPermissionsException" The account does not have sufficient permission to perform the operation.

  • ErrCodeAuthenticationFailedException "AuthenticationFailedException" An authentication error occurred.

  • ErrCodeClientException "ClientException" A client exception has occurred.

  • ErrCodeServiceException "ServiceException" An exception has occurred in AWS Directory Service.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DisableSso

DisableSsoRequest

func (c *DirectoryService) DisableSsoRequest(input *DisableSsoInput) (req *request.Request, output *DisableSsoOutput)

DisableSsoRequest generates a "aws/request.Request" representing the client's request for the DisableSso operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DisableSso for more information on using the DisableSso API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DisableSsoRequest method. req, resp := client.DisableSsoRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DisableSso

DisableSsoWithContext

func (c *DirectoryService) DisableSsoWithContext(ctx aws.Context, input *DisableSsoInput, opts ...request.Option) (*DisableSsoOutput, error)

DisableSsoWithContext is the same as DisableSso with the addition of the ability to pass a context and additional request options.

See DisableSso for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

EnableRadius

func (c *DirectoryService) EnableRadius(input *EnableRadiusInput) (*EnableRadiusOutput, error)

EnableRadius API operation for AWS Directory Service.

Enables multi-factor authentication (MFA) with the Remote Authentication Dial In User Service (RADIUS) server for an AD Connector or Microsoft AD 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 EnableRadius for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more parameters are not valid.

  • ErrCodeEntityAlreadyExistsException "EntityAlreadyExistsException" The specified entity already exists.

  • ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" The specified entity could not be found.

  • ErrCodeClientException "ClientException" A client exception has occurred.

  • ErrCodeServiceException "ServiceException" An exception has occurred in AWS Directory Service.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/EnableRadius

EnableRadiusRequest

func (c *DirectoryService) EnableRadiusRequest(input *EnableRadiusInput) (req *request.Request, output *EnableRadiusOutput)

EnableRadiusRequest generates a "aws/request.Request" representing the client's request for the EnableRadius operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See EnableRadius for more information on using the EnableRadius API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the EnableRadiusRequest method. req, resp := client.EnableRadiusRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/EnableRadius

EnableRadiusWithContext

func (c *DirectoryService) EnableRadiusWithContext(ctx aws.Context, input *EnableRadiusInput, opts ...request.Option) (*EnableRadiusOutput, error)

EnableRadiusWithContext is the same as EnableRadius with the addition of the ability to pass a context and additional request options.

See EnableRadius for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

EnableSso

func (c *DirectoryService) EnableSso(input *EnableSsoInput) (*EnableSsoOutput, error)

EnableSso API operation for AWS Directory Service.

Enables single sign-on for a 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 EnableSso for usage and error information.

Returned Error Codes:

  • ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" The specified entity could not be found.

  • ErrCodeInsufficientPermissionsException "InsufficientPermissionsException" The account does not have sufficient permission to perform the operation.

  • ErrCodeAuthenticationFailedException "AuthenticationFailedException" An authentication error occurred.

  • ErrCodeClientException "ClientException" A client exception has occurred.

  • ErrCodeServiceException "ServiceException" An exception has occurred in AWS Directory Service.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/EnableSso

EnableSsoRequest

func (c *DirectoryService) EnableSsoRequest(input *EnableSsoInput) (req *request.Request, output *EnableSsoOutput)

EnableSsoRequest generates a "aws/request.Request" representing the client's request for the EnableSso operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See EnableSso for more information on using the EnableSso API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the EnableSsoRequest method. req, resp := client.EnableSsoRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/EnableSso

EnableSsoWithContext

func (c *DirectoryService) EnableSsoWithContext(ctx aws.Context, input *EnableSsoInput, opts ...request.Option) (*EnableSsoOutput, error)

EnableSsoWithContext is the same as EnableSso with the addition of the ability to pass a context and additional request options.

See EnableSso for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetDirectoryLimits

func (c *DirectoryService) GetDirectoryLimits(input *GetDirectoryLimitsInput) (*GetDirectoryLimitsOutput, error)

GetDirectoryLimits API operation for AWS Directory Service.

Obtains directory limit information for the current region.

Returns awserr.Error for service API and SDK errors. Use runtime 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 GetDirectoryLimits for usage and error information.

Returned Error Codes:

  • ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" The specified entity could not be found.

  • ErrCodeClientException "ClientException" A client exception has occurred.

  • ErrCodeServiceException "ServiceException" An exception has occurred in AWS Directory Service.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/GetDirectoryLimits

GetDirectoryLimitsRequest

func (c *DirectoryService) GetDirectoryLimitsRequest(input *GetDirectoryLimitsInput) (req *request.Request, output *GetDirectoryLimitsOutput)

GetDirectoryLimitsRequest generates a "aws/request.Request" representing the client's request for the GetDirectoryLimits operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetDirectoryLimits for more information on using the GetDirectoryLimits API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetDirectoryLimitsRequest method. req, resp := client.GetDirectoryLimitsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/GetDirectoryLimits

GetDirectoryLimitsWithContext

func (c *DirectoryService) GetDirectoryLimitsWithContext(ctx aws.Context, input *GetDirectoryLimitsInput, opts ...request.Option) (*GetDirectoryLimitsOutput, error)

GetDirectoryLimitsWithContext is the same as GetDirectoryLimits with the addition of the ability to pass a context and additional request options.

See GetDirectoryLimits for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetSnapshotLimits

func (c *DirectoryService) GetSnapshotLimits(input *GetSnapshotLimitsInput) (*GetSnapshotLimitsOutput, error)

GetSnapshotLimits API operation for AWS Directory Service.

Obtains the manual snapshot limits for a 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 GetSnapshotLimits for usage and error information.

Returned Error Codes:

  • ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" The specified entity could not be found.

  • ErrCodeClientException "ClientException" A client exception has occurred.

  • ErrCodeServiceException "ServiceException" An exception has occurred in AWS Directory Service.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/GetSnapshotLimits

GetSnapshotLimitsRequest

func (c *DirectoryService) GetSnapshotLimitsRequest(input *GetSnapshotLimitsInput) (req *request.Request, output *GetSnapshotLimitsOutput)

GetSnapshotLimitsRequest generates a "aws/request.Request" representing the client's request for the GetSnapshotLimits operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetSnapshotLimits for more information on using the GetSnapshotLimits API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetSnapshotLimitsRequest method. req, resp := client.GetSnapshotLimitsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/GetSnapshotLimits

GetSnapshotLimitsWithContext

func (c *DirectoryService) GetSnapshotLimitsWithContext(ctx aws.Context, input *GetSnapshotLimitsInput, opts ...request.Option) (*GetSnapshotLimitsOutput, error)

GetSnapshotLimitsWithContext is the same as GetSnapshotLimits with the addition of the ability to pass a context and additional request options.

See GetSnapshotLimits for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListIpRoutes

func (c *DirectoryService) ListIpRoutes(input *ListIpRoutesInput) (*ListIpRoutesOutput, error)

ListIpRoutes API operation for AWS Directory Service.

Lists the address blocks that you have added to a 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 ListIpRoutes 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.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ListIpRoutes

ListIpRoutesRequest

func (c *DirectoryService) ListIpRoutesRequest(input *ListIpRoutesInput) (req *request.Request, output *ListIpRoutesOutput)

ListIpRoutesRequest generates a "aws/request.Request" representing the client's request for the ListIpRoutes operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListIpRoutes for more information on using the ListIpRoutes API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListIpRoutesRequest method. req, resp := client.ListIpRoutesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ListIpRoutes

ListIpRoutesWithContext

func (c *DirectoryService) ListIpRoutesWithContext(ctx aws.Context, input *ListIpRoutesInput, opts ...request.Option) (*ListIpRoutesOutput, error)

ListIpRoutesWithContext is the same as ListIpRoutes with the addition of the ability to pass a context and additional request options.

See ListIpRoutes for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListLogSubscriptions

func (c *DirectoryService) ListLogSubscriptions(input *ListLogSubscriptionsInput) (*ListLogSubscriptionsOutput, error)

ListLogSubscriptions API operation for AWS Directory Service.

Lists the active log subscriptions for the AWS account.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Directory Service's API operation ListLogSubscriptions 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.

  • ErrCodeClientException "ClientException" A client exception has occurred.

  • ErrCodeServiceException "ServiceException" An exception has occurred in AWS Directory Service.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ListLogSubscriptions

ListLogSubscriptionsRequest

func (c *DirectoryService) ListLogSubscriptionsRequest(input *ListLogSubscriptionsInput) (req *request.Request, output *ListLogSubscriptionsOutput)

ListLogSubscriptionsRequest generates a "aws/request.Request" representing the client's request for the ListLogSubscriptions operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListLogSubscriptions for more information on using the ListLogSubscriptions API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListLogSubscriptionsRequest method. req, resp := client.ListLogSubscriptionsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ListLogSubscriptions

ListLogSubscriptionsWithContext

func (c *DirectoryService) ListLogSubscriptionsWithContext(ctx aws.Context, input *ListLogSubscriptionsInput, opts ...request.Option) (*ListLogSubscriptionsOutput, error)

ListLogSubscriptionsWithContext is the same as ListLogSubscriptions with the addition of the ability to pass a context and additional request options.

See ListLogSubscriptions for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListSchemaExtensions

func (c *DirectoryService) ListSchemaExtensions(input *ListSchemaExtensionsInput) (*ListSchemaExtensionsOutput, error)

ListSchemaExtensions API operation for AWS Directory Service.

Lists all schema extensions applied to a Microsoft AD 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 ListSchemaExtensions for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidNextTokenException "InvalidNextTokenException" The NextToken value is not valid.

  • ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" The specified entity could not be found.

  • ErrCodeClientException "ClientException" A client exception has occurred.

  • ErrCodeServiceException "ServiceException" An exception has occurred in AWS Directory Service.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ListSchemaExtensions

ListSchemaExtensionsRequest

func (c *DirectoryService) ListSchemaExtensionsRequest(input *ListSchemaExtensionsInput) (req *request.Request, output *ListSchemaExtensionsOutput)

ListSchemaExtensionsRequest generates a "aws/request.Request" representing the client's request for the ListSchemaExtensions operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListSchemaExtensions for more information on using the ListSchemaExtensions API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListSchemaExtensionsRequest method. req, resp := client.ListSchemaExtensionsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ListSchemaExtensions

ListSchemaExtensionsWithContext

func (c *DirectoryService) ListSchemaExtensionsWithContext(ctx aws.Context, input *ListSchemaExtensionsInput, opts ...request.Option) (*ListSchemaExtensionsOutput, error)

ListSchemaExtensionsWithContext is the same as ListSchemaExtensions with the addition of the ability to pass a context and additional request options.

See ListSchemaExtensions for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListTagsForResource

func (c *DirectoryService) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error)

ListTagsForResource API operation for AWS Directory Service.

Lists all tags on a 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 ListTagsForResource 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.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ListTagsForResource

ListTagsForResourceRequest

func (c *DirectoryService) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput)

ListTagsForResourceRequest generates a "aws/request.Request" representing the client's request for the ListTagsForResource operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListTagsForResource for more information on using the ListTagsForResource API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListTagsForResourceRequest method. req, resp := client.ListTagsForResourceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ListTagsForResource

ListTagsForResourceWithContext

func (c *DirectoryService) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error)

ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of the ability to pass a context and additional request options.

See ListTagsForResource for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

RegisterEventTopic

func (c *DirectoryService) RegisterEventTopic(input *RegisterEventTopicInput) (*RegisterEventTopicOutput, error)

RegisterEventTopic API operation for AWS Directory Service.

Associates a directory with an SNS topic. This establishes the directory as a publisher to the specified SNS topic. You can then receive email or text (SMS) messages when the status of your directory changes. You get notified if your directory goes from an Active status to an Impaired or Inoperable status. You also receive a notification when the directory returns to an Active status.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Directory Service's API operation RegisterEventTopic for usage and error information.

Returned Error Codes:

  • ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" The specified entity could not be found.

  • 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.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/RegisterEventTopic

RegisterEventTopicRequest

func (c *DirectoryService) RegisterEventTopicRequest(input *RegisterEventTopicInput) (req *request.Request, output *RegisterEventTopicOutput)

RegisterEventTopicRequest generates a "aws/request.Request" representing the client's request for the RegisterEventTopic operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See RegisterEventTopic for more information on using the RegisterEventTopic API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the RegisterEventTopicRequest method. req, resp := client.RegisterEventTopicRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/RegisterEventTopic

RegisterEventTopicWithContext

func (c *DirectoryService) RegisterEventTopicWithContext(ctx aws.Context, input *RegisterEventTopicInput, opts ...request.Option) (*RegisterEventTopicOutput, error)

RegisterEventTopicWithContext is the same as RegisterEventTopic with the addition of the ability to pass a context and additional request options.

See RegisterEventTopic for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

RejectSharedDirectory

func (c *DirectoryService) RejectSharedDirectory(input *RejectSharedDirectoryInput) (*RejectSharedDirectoryOutput, error)

RejectSharedDirectory API operation for AWS Directory Service.

Rejects a directory sharing request that was sent from the directory owner account.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Directory Service's API operation RejectSharedDirectory for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more parameters are not valid.

  • ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" The specified entity could not be found.

  • ErrCodeDirectoryAlreadySharedException "DirectoryAlreadySharedException" The specified directory has already been shared with this AWS account.

  • ErrCodeClientException "ClientException" A client exception has occurred.

  • ErrCodeServiceException "ServiceException" An exception has occurred in AWS Directory Service.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/RejectSharedDirectory

RejectSharedDirectoryRequest

func (c *DirectoryService) RejectSharedDirectoryRequest(input *RejectSharedDirectoryInput) (req *request.Request, output *RejectSharedDirectoryOutput)

RejectSharedDirectoryRequest generates a "aws/request.Request" representing the client's request for the RejectSharedDirectory operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See RejectSharedDirectory for more information on using the RejectSharedDirectory API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the RejectSharedDirectoryRequest method. req, resp := client.RejectSharedDirectoryRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/RejectSharedDirectory

RejectSharedDirectoryWithContext

func (c *DirectoryService) RejectSharedDirectoryWithContext(ctx aws.Context, input *RejectSharedDirectoryInput, opts ...request.Option) (*RejectSharedDirectoryOutput, error)

RejectSharedDirectoryWithContext is the same as RejectSharedDirectory with the addition of the ability to pass a context and additional request options.

See RejectSharedDirectory for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

RemoveIpRoutes

func (c *DirectoryService) RemoveIpRoutes(input *RemoveIpRoutesInput) (*RemoveIpRoutesOutput, error)

RemoveIpRoutes API operation for AWS Directory Service.

Removes IP address blocks from a 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 RemoveIpRoutes for usage and error information.

Returned Error Codes:

  • ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" The specified entity could not be found.

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more parameters are not valid.

  • ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" The specified directory is unavailable or could not be found.

  • ErrCodeClientException "ClientException" A client exception has occurred.

  • ErrCodeServiceException "ServiceException" An exception has occurred in AWS Directory Service.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/RemoveIpRoutes

RemoveIpRoutesRequest

func (c *DirectoryService) RemoveIpRoutesRequest(input *RemoveIpRoutesInput) (req *request.Request, output *RemoveIpRoutesOutput)

RemoveIpRoutesRequest generates a "aws/request.Request" representing the client's request for the RemoveIpRoutes operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See RemoveIpRoutes for more information on using the RemoveIpRoutes API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the RemoveIpRoutesRequest method. req, resp := client.RemoveIpRoutesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/RemoveIpRoutes

RemoveIpRoutesWithContext

func (c *DirectoryService) RemoveIpRoutesWithContext(ctx aws.Context, input *RemoveIpRoutesInput, opts ...request.Option) (*RemoveIpRoutesOutput, error)

RemoveIpRoutesWithContext is the same as RemoveIpRoutes with the addition of the ability to pass a context and additional request options.

See RemoveIpRoutes for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

RemoveTagsFromResource

func (c *DirectoryService) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error)

RemoveTagsFromResource API operation for AWS Directory Service.

Removes tags from a 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 RemoveTagsFromResource for usage and error information.

Returned Error Codes:

  • ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" The specified entity could not be found.

  • 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.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/RemoveTagsFromResource

RemoveTagsFromResourceRequest

func (c *DirectoryService) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput) (req *request.Request, output *RemoveTagsFromResourceOutput)

RemoveTagsFromResourceRequest generates a "aws/request.Request" representing the client's request for the RemoveTagsFromResource operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

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.

// Example sending a request using the RemoveTagsFromResourceRequest method. req, resp := client.RemoveTagsFromResourceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/RemoveTagsFromResource

RemoveTagsFromResourceWithContext

func (c *DirectoryService) RemoveTagsFromResourceWithContext(ctx aws.Context, input *RemoveTagsFromResourceInput, opts ...request.Option) (*RemoveTagsFromResourceOutput, error)

RemoveTagsFromResourceWithContext is the same as RemoveTagsFromResource with the addition of the ability to pass a context and additional request options.

See RemoveTagsFromResource for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ResetUserPassword

func (c *DirectoryService) ResetUserPassword(input *ResetUserPasswordInput) (*ResetUserPasswordOutput, error)

ResetUserPassword API operation for AWS Directory Service.

Resets the password for any user in your AWS Managed Microsoft AD or Simple AD 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 ResetUserPassword for usage and error information.

Returned Error Codes:

  • ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" The specified directory is unavailable or could not be found.

  • ErrCodeUserDoesNotExistException "UserDoesNotExistException" The user provided a username that does not exist in your directory.

  • ErrCodeInvalidPasswordException "InvalidPasswordException" The new password provided by the user does not meet the password complexity requirements defined in your directory.

  • ErrCodeUnsupportedOperationException "UnsupportedOperationException" The operation is not supported.

  • ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" The specified entity could not be found.

  • ErrCodeClientException "ClientException" A client exception has occurred.

  • ErrCodeServiceException "ServiceException" An exception has occurred in AWS Directory Service.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ResetUserPassword

ResetUserPasswordRequest

func (c *DirectoryService) ResetUserPasswordRequest(input *ResetUserPasswordInput) (req *request.Request, output *ResetUserPasswordOutput)

ResetUserPasswordRequest generates a "aws/request.Request" representing the client's request for the ResetUserPassword operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ResetUserPassword for more information on using the ResetUserPassword API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ResetUserPasswordRequest method. req, resp := client.ResetUserPasswordRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ResetUserPassword

ResetUserPasswordWithContext

func (c *DirectoryService) ResetUserPasswordWithContext(ctx aws.Context, input *ResetUserPasswordInput, opts ...request.Option) (*ResetUserPasswordOutput, error)

ResetUserPasswordWithContext is the same as ResetUserPassword with the addition of the ability to pass a context and additional request options.

See ResetUserPassword for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

RestoreFromSnapshot

func (c *DirectoryService) RestoreFromSnapshot(input *RestoreFromSnapshotInput) (*RestoreFromSnapshotOutput, error)

RestoreFromSnapshot API operation for AWS Directory Service.

Restores a directory using an existing directory snapshot.

When you restore a directory from a snapshot, any changes made to the directory after the snapshot date are overwritten.

This action returns as soon as the restore operation is initiated. You can monitor the progress of the restore operation by calling the DescribeDirectories operation with the directory identifier. When the DirectoryDescription.Stage value changes to Active, the restore operation is complete.

Returns awserr.Error for service API and SDK errors. Use runtime 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 RestoreFromSnapshot for usage and error information.

Returned Error Codes:

  • ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" The specified entity could not be found.

  • 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.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/RestoreFromSnapshot

RestoreFromSnapshotRequest

func (c *DirectoryService) RestoreFromSnapshotRequest(input *RestoreFromSnapshotInput) (req *request.Request, output *RestoreFromSnapshotOutput)

RestoreFromSnapshotRequest generates a "aws/request.Request" representing the client's request for the RestoreFromSnapshot operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See RestoreFromSnapshot for more information on using the RestoreFromSnapshot API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the RestoreFromSnapshotRequest method. req, resp := client.RestoreFromSnapshotRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/RestoreFromSnapshot

RestoreFromSnapshotWithContext

func (c *DirectoryService) RestoreFromSnapshotWithContext(ctx aws.Context, input *RestoreFromSnapshotInput, opts ...request.Option) (*RestoreFromSnapshotOutput, error)

RestoreFromSnapshotWithContext is the same as RestoreFromSnapshot with the addition of the ability to pass a context and additional request options.

See RestoreFromSnapshot for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ShareDirectory

func (c *DirectoryService) ShareDirectory(input *ShareDirectoryInput) (*ShareDirectoryOutput, error)

ShareDirectory API operation for AWS Directory Service.

Shares a specified directory (DirectoryId) in your AWS account (directory owner) with another AWS account (directory consumer). With this operation you can use your directory from any AWS account and from any Amazon VPC within an AWS Region.

When you share your AWS Managed Microsoft AD directory, AWS Directory Service creates a shared directory in the directory consumer account. This shared directory contains the metadata to provide access to the directory within the directory owner account. The shared directory is visible in all VPCs in the directory consumer account.

The ShareMethod parameter determines whether the specified directory can be shared between AWS accounts inside the same AWS organization (ORGANIZATIONS). It also determines whether you can share the directory with any other AWS account either inside or outside of the organization (HANDSHAKE).

The ShareNotes parameter is only used when HANDSHAKE is called, which sends a directory sharing request to the directory consumer.

Returns awserr.Error for service API and SDK errors. Use runtime 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 ShareDirectory for usage and error information.

Returned Error Codes:

  • ErrCodeDirectoryAlreadySharedException "DirectoryAlreadySharedException" The specified directory has already been shared with this AWS account.

  • ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" The specified entity could not be found.

  • ErrCodeInvalidTargetException "InvalidTargetException" The specified shared target is not valid.

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more parameters are not valid.

  • ErrCodeClientException "ClientException" A client exception has occurred.

  • ErrCodeShareLimitExceededException "ShareLimitExceededException" The maximum number of AWS accounts that you can share with this directory has been reached.

  • ErrCodeOrganizationsException "OrganizationsException" Exception encountered while trying to access your AWS organization.

  • ErrCodeAccessDeniedException "AccessDeniedException" You do not have sufficient access to perform this action.

  • ErrCodeUnsupportedOperationException "UnsupportedOperationException" The operation is not supported.

  • ErrCodeServiceException "ServiceException" An exception has occurred in AWS Directory Service.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ShareDirectory

ShareDirectoryRequest

func (c *DirectoryService) ShareDirectoryRequest(input *ShareDirectoryInput) (req *request.Request, output *ShareDirectoryOutput)

ShareDirectoryRequest generates a "aws/request.Request" representing the client's request for the ShareDirectory operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ShareDirectory for more information on using the ShareDirectory API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ShareDirectoryRequest method. req, resp := client.ShareDirectoryRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ShareDirectory

ShareDirectoryWithContext

func (c *DirectoryService) ShareDirectoryWithContext(ctx aws.Context, input *ShareDirectoryInput, opts ...request.Option) (*ShareDirectoryOutput, error)

ShareDirectoryWithContext is the same as ShareDirectory with the addition of the ability to pass a context and additional request options.

See ShareDirectory for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

StartSchemaExtension

func (c *DirectoryService) StartSchemaExtension(input *StartSchemaExtensionInput) (*StartSchemaExtensionOutput, error)

StartSchemaExtension API operation for AWS Directory Service.

Applies a schema extension to a Microsoft AD 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 StartSchemaExtension for usage and error information.

Returned Error Codes:

  • ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" The specified directory is unavailable or could not be found.

  • ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" The specified entity could not be found.

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more parameters are not valid.

  • ErrCodeSnapshotLimitExceededException "SnapshotLimitExceededException" The maximum number of manual snapshots for the directory has been reached. You can use the GetSnapshotLimits operation to determine the snapshot limits for a directory.

  • ErrCodeClientException "ClientException" A client exception has occurred.

  • ErrCodeServiceException "ServiceException" An exception has occurred in AWS Directory Service.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/StartSchemaExtension

StartSchemaExtensionRequest

func (c *DirectoryService) StartSchemaExtensionRequest(input *StartSchemaExtensionInput) (req *request.Request, output *StartSchemaExtensionOutput)

StartSchemaExtensionRequest generates a "aws/request.Request" representing the client's request for the StartSchemaExtension operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See StartSchemaExtension for more information on using the StartSchemaExtension API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the StartSchemaExtensionRequest method. req, resp := client.StartSchemaExtensionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/StartSchemaExtension

StartSchemaExtensionWithContext

func (c *DirectoryService) StartSchemaExtensionWithContext(ctx aws.Context, input *StartSchemaExtensionInput, opts ...request.Option) (*StartSchemaExtensionOutput, error)

StartSchemaExtensionWithContext is the same as StartSchemaExtension with the addition of the ability to pass a context and additional request options.

See StartSchemaExtension for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

UnshareDirectory

func (c *DirectoryService) UnshareDirectory(input *UnshareDirectoryInput) (*UnshareDirectoryOutput, error)

UnshareDirectory API operation for AWS Directory Service.

Stops the directory sharing between the directory owner and consumer accounts.

Returns awserr.Error for service API and SDK errors. Use runtime 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 UnshareDirectory for usage and error information.

Returned Error Codes:

  • ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" The specified entity could not be found.

  • ErrCodeInvalidTargetException "InvalidTargetException" The specified shared target is not valid.

  • ErrCodeDirectoryNotSharedException "DirectoryNotSharedException" The specified directory has not been shared with this AWS account.

  • ErrCodeClientException "ClientException" A client exception has occurred.

  • ErrCodeServiceException "ServiceException" An exception has occurred in AWS Directory Service.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/UnshareDirectory

UnshareDirectoryRequest

func (c *DirectoryService) UnshareDirectoryRequest(input *UnshareDirectoryInput) (req *request.Request, output *UnshareDirectoryOutput)

UnshareDirectoryRequest generates a "aws/request.Request" representing the client's request for the UnshareDirectory operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UnshareDirectory for more information on using the UnshareDirectory API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UnshareDirectoryRequest method. req, resp := client.UnshareDirectoryRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/UnshareDirectory

UnshareDirectoryWithContext

func (c *DirectoryService) UnshareDirectoryWithContext(ctx aws.Context, input *UnshareDirectoryInput, opts ...request.Option) (*UnshareDirectoryOutput, error)

UnshareDirectoryWithContext is the same as UnshareDirectory with the addition of the ability to pass a context and additional request options.

See UnshareDirectory for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

UpdateConditionalForwarder

func (c *DirectoryService) UpdateConditionalForwarder(input *UpdateConditionalForwarderInput) (*UpdateConditionalForwarderOutput, error)

UpdateConditionalForwarder API operation for AWS Directory Service.

Updates a conditional forwarder that has been set up for your AWS 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 UpdateConditionalForwarder 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.

  • 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.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/UpdateConditionalForwarder

UpdateConditionalForwarderRequest

func (c *DirectoryService) UpdateConditionalForwarderRequest(input *UpdateConditionalForwarderInput) (req *request.Request, output *UpdateConditionalForwarderOutput)

UpdateConditionalForwarderRequest generates a "aws/request.Request" representing the client's request for the UpdateConditionalForwarder operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateConditionalForwarder for more information on using the UpdateConditionalForwarder API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateConditionalForwarderRequest method. req, resp := client.UpdateConditionalForwarderRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/UpdateConditionalForwarder

UpdateConditionalForwarderWithContext

func (c *DirectoryService) UpdateConditionalForwarderWithContext(ctx aws.Context, input *UpdateConditionalForwarderInput, opts ...request.Option) (*UpdateConditionalForwarderOutput, error)

UpdateConditionalForwarderWithContext is the same as UpdateConditionalForwarder with the addition of the ability to pass a context and additional request options.

See UpdateConditionalForwarder for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

UpdateNumberOfDomainControllers

func (c *DirectoryService) UpdateNumberOfDomainControllers(input *UpdateNumberOfDomainControllersInput) (*UpdateNumberOfDomainControllersOutput, error)

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.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/UpdateNumberOfDomainControllers

UpdateNumberOfDomainControllersRequest

func (c *DirectoryService) UpdateNumberOfDomainControllersRequest(input *UpdateNumberOfDomainControllersInput) (req *request.Request, output *UpdateNumberOfDomainControllersOutput)

UpdateNumberOfDomainControllersRequest generates a "aws/request.Request" representing the client's request for the UpdateNumberOfDomainControllers operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateNumberOfDomainControllers for more information on using the UpdateNumberOfDomainControllers API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// 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) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/UpdateNumberOfDomainControllers

UpdateNumberOfDomainControllersWithContext

func (c *DirectoryService) UpdateNumberOfDomainControllersWithContext(ctx aws.Context, input *UpdateNumberOfDomainControllersInput, opts ...request.Option) (*UpdateNumberOfDomainControllersOutput, error)

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.

See Also

For more information about using this API, see AWS API Documentation.

UpdateRadius

func (c *DirectoryService) UpdateRadius(input *UpdateRadiusInput) (*UpdateRadiusOutput, error)

UpdateRadius API operation for AWS Directory Service.

Updates the Remote Authentication Dial In User Service (RADIUS) server information for an AD Connector or Microsoft AD 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 UpdateRadius for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidParameterException "InvalidParameterException" One or more parameters are not valid.

  • ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" The specified entity could not be found.

  • ErrCodeClientException "ClientException" A client exception has occurred.

  • ErrCodeServiceException "ServiceException" An exception has occurred in AWS Directory Service.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/UpdateRadius

UpdateRadiusRequest

func (c *DirectoryService) UpdateRadiusRequest(input *UpdateRadiusInput) (req *request.Request, output *UpdateRadiusOutput)

UpdateRadiusRequest generates a "aws/request.Request" representing the client's request for the UpdateRadius operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateRadius for more information on using the UpdateRadius API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateRadiusRequest method. req, resp := client.UpdateRadiusRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/UpdateRadius

UpdateRadiusWithContext

func (c *DirectoryService) UpdateRadiusWithContext(ctx aws.Context, input *UpdateRadiusInput, opts ...request.Option) (*UpdateRadiusOutput, error)

UpdateRadiusWithContext is the same as UpdateRadius with the addition of the ability to pass a context and additional request options.

See UpdateRadius for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

UpdateTrust

func (c *DirectoryService) UpdateTrust(input *UpdateTrustInput) (*UpdateTrustOutput, error)

UpdateTrust API operation for AWS Directory Service.

Updates the trust that has been set up between your AWS Managed Microsoft AD directory and an on-premises Active 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 UpdateTrust for usage and error information.

Returned Error Codes:

  • ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" The specified entity could not be found.

  • 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.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/UpdateTrust

UpdateTrustRequest

func (c *DirectoryService) UpdateTrustRequest(input *UpdateTrustInput) (req *request.Request, output *UpdateTrustOutput)

UpdateTrustRequest generates a "aws/request.Request" representing the client's request for the UpdateTrust operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateTrust for more information on using the UpdateTrust API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateTrustRequest method. req, resp := client.UpdateTrustRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/UpdateTrust

UpdateTrustWithContext

func (c *DirectoryService) UpdateTrustWithContext(ctx aws.Context, input *UpdateTrustInput, opts ...request.Option) (*UpdateTrustOutput, error)

UpdateTrustWithContext is the same as UpdateTrust with the addition of the ability to pass a context and additional request options.

See UpdateTrust for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

VerifyTrust

func (c *DirectoryService) VerifyTrust(input *VerifyTrustInput) (*VerifyTrustOutput, error)

VerifyTrust API operation for AWS Directory Service.

AWS Directory Service for Microsoft Active Directory allows you to configure and verify trust relationships.

This action verifies a trust relationship between your AWS Managed Microsoft AD directory and an external domain.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Directory Service's API operation VerifyTrust for usage and error information.

Returned Error Codes:

  • ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" The specified entity could not be found.

  • 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.

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/VerifyTrust

VerifyTrustRequest

func (c *DirectoryService) VerifyTrustRequest(input *VerifyTrustInput) (req *request.Request, output *VerifyTrustOutput)

VerifyTrustRequest generates a "aws/request.Request" representing the client's request for the VerifyTrust operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See VerifyTrust for more information on using the VerifyTrust API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the VerifyTrustRequest method. req, resp := client.VerifyTrustRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/VerifyTrust

VerifyTrustWithContext

func (c *DirectoryService) VerifyTrustWithContext(ctx aws.Context, input *VerifyTrustInput, opts ...request.Option) (*VerifyTrustOutput, error)

VerifyTrustWithContext is the same as VerifyTrust with the addition of the ability to pass a context and additional request options.

See VerifyTrust for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

On this page: