Amazon.DirectoryService.AmazonDirectoryServiceClient.CreateAlias C# (CSharp) Method

CreateAlias() public method

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.

/// A client exception has occurred. /// /// The specified entity already exists. /// /// The specified entity could not be found. /// /// One or more parameters are not valid. /// /// An exception has occurred in AWS Directory Service. ///
public CreateAlias ( CreateAliasRequest request ) : Amazon.DirectoryService.Model.CreateAliasResponse
request Amazon.DirectoryService.Model.CreateAliasRequest Container for the necessary parameters to execute the CreateAlias service method.
return Amazon.DirectoryService.Model.CreateAliasResponse
        public CreateAliasResponse CreateAlias(CreateAliasRequest request)
        {
            var marshaller = new CreateAliasRequestMarshaller();
            var unmarshaller = CreateAliasResponseUnmarshaller.Instance;

            return Invoke<CreateAliasRequest,CreateAliasResponse>(request, marshaller, unmarshaller);
        }
AmazonDirectoryServiceClient